@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

/* --- Footer Styling --- */
.site-footer {
    width: 100%;
    background-color: #168f482a;
    margin-top: 2rem;
    padding: 2rem 1rem 1rem 1rem;
    line-height: 2.1;
    font-size: 0.8rem;

}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.footer-col {
    color: #fff;
    margin-bottom: 1rem;
    color: #b85c2a;
}

.footer-col a {
    color: #4da3ff;
    text-decoration: underline;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #b85c2a;
}

@media (max-width: 900px) {
    .footer-columns {
        flex-direction: column;
        gap: 1.1rem;
    }

    .footer-col {
        min-width: unset;
        flex: 1 1 100%;
    }
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

/* Responsive: Make participants table horizontally scrollable on mobile/tablet */
@media (max-width: 900px) {
    .participants-table-wrapper {
        width: 100vw;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0;
        padding-bottom: 1rem;
    }

    .participants-table {
        min-width: 600px;
        width: max-content;
        max-width: unset;
        display: block;
    }
}

@media (max-width: 600px) {
    .participants-table-wrapper {
        width: 100vw;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -8px;
        padding-bottom: 1rem;
    }

    .participants-table {
        min-width: 500px;
        width: max-content;
        max-width: unset;
        display: block;
    }
}

/* --- Enhanced Mobile/Tablet Responsiveness --- */
@media (max-width: 600px) {
    body {
        font-size: 1rem;
        padding: 0;
    }

    .container,
    .main-content {
        padding: 0.5rem !important;
    }

    .registration-form {
        padding: 0.5rem;
        max-width: 100vw;
    }

    .form-section {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0.75rem;
    }

    .form-group label {
        font-size: 1rem;
    }

    .form-group input,
    .form-group select {
        font-size: 1rem;
        padding: 0.6rem;
    }

    .form-actions {
        grid-template-columns: 1fr !important;
        gap: 0.5rem;
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .btn {
        width: 100%;
        font-size: 1.1rem;
        padding: 1rem 0.5rem;
    }

    .modal-content {
        width: 99vw !important;
        min-width: unset;
        padding: 0.5rem !important;
        left: 0;
        right: 0;
        border-radius: 8px;
        max-height: 90vh;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .modal-btn-group {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding: 0.5rem 0 0.25rem 0;
        z-index: 2;
        margin-top: 1rem;
    }

    h1 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .participants-table-wrapper {
        border-radius: 0;
        border: none;
        margin: 0 -0.5rem;
    }

    .participants-table th,
    .participants-table td {
        padding: 0.5rem 0.3rem;
        font-size: 0.95rem;
    }

    .price-info {
        padding: 0.75rem;
        font-size: 1rem;
    }

    .cookie-banner {
        flex-direction: column;
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 400px) {
    .modal-content {
        width: 100vw !important;
        padding: 0.2rem !important;
    }

    .form-section {
        padding: 0.4rem;
    }

    .btn {
        font-size: 1rem;
        padding: 0.7rem 0.2rem;
    }

    .participants-table th,
    .participants-table td {
        font-size: 0.85rem;
    }
}

.nav-language-item {
    margin-left: auto;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.2rem 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.language-switcher__button {
    border: none;
    background: transparent;
    color: rgba(255, 247, 238, 0.72);
    font: inherit;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.language-switcher__button:hover {
    color: #fff;
}

.language-switcher__button.is-active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.language-switcher__separator {
    color: rgba(255, 247, 238, 0.55);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .nav-language-item {
        margin-left: 0;
    }

    .language-switcher {
        width: 100%;
        justify-content: center;
        padding: 0.35rem;
    }

    .language-switcher__button {
        flex: 1 1 0;
    }
}

/* Modal button group styling */
.modal-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.modal-btn-group .btn {
    min-width: 180px;
    padding: 1rem 2rem;
    font-size: 1.15rem;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(139, 92, 42, 0.10);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.modal-btn-group .btn-primary {
    background-color: #8B5C2A;
    color: #fff;
    border: none;
}

.modal-btn-group .btn-primary:hover {
    background-color: #6e431e;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 16px rgba(139, 92, 42, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --text-color: #333;
    --light-bg: #ecf0f1;
    --border-color: #bdc3c7;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('img/tyras_map.png') center center/cover no-repeat fixed, var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    background-color: #168f482a;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1520px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-shell {
    width: min(1520px, calc(100% - 2rem));
    margin: 0 auto;
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: opacity 0.3s;
}

.logo-container:hover {
    opacity: 0.8;
}

.logo-image {
    height: 40px;
    width: auto;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    color: white;
    font-size: 1.3rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Main Content */
.main-content {
    max-width: none;
    margin: 0 auto;
    /* Removed padding to avoid double-padding with .container */
    position: relative;
    z-index: 4;
}

.container {
    background-color: transparent;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: none;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
}

/* Form Styles */
.registration-form {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    gap: 1.15rem;
}

.form-section {
    border: 1px solid rgba(139, 92, 42, 0.14);
    border-radius: 18px;
    padding: 1.35rem 1.4rem 1.2rem;
    margin-bottom: 0;
    box-shadow: 0 14px 34px rgba(44, 62, 80, 0.08);
}

.form-section legend {
    font-size: 0.88rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6e431e;
    padding: 0 0.65rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem 1.15rem;
    margin-bottom: 0.85rem;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.96rem;
}

.required {
    color: var(--accent-color);
    margin-left: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(44, 62, 80, 0.14);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s, transform 0.25s;
    background: rgba(255, 255, 255, 0.815);
    box-shadow: inset 0 1px 2px rgba(44, 62, 80, 0.05);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8B5C2A;
    box-shadow: 0 0 0 4px rgba(139, 92, 42, 0.12);
    background: #fff;
    transform: translateY(-1px);
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
    font: inherit;
}

.form-group input[readonly] {
    background-color: rgba(242, 244, 246, 0.95);
    cursor: not-allowed;
}

/* Price Information */
.price-info {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.95) 0%, rgba(97, 64, 33, 0.94) 100%);
    padding: 1.2rem 1.35rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    box-shadow: 0 12px 28px rgba(44, 62, 80, 0.16);
}

.price-info p {
    margin: 0;
}

.price-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: #f3d6aa;
}

.price-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.45rem;
}

.paysera-methods-section {
    width: min(100%, 640px);
    justify-self: center;
    padding: 1rem 1.25rem 0.9rem;
    background: rgba(255, 248, 238, 0.7);
    border: 1px solid rgba(139, 92, 42, 0.18);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(139, 92, 42, 0.08);
}

.paysera-methods-title {
    margin-bottom: 0.55rem;
    font-weight: 700;
    color: #6e431e;
    font-size: 0.95rem;
}

.paysera-methods-status {
    margin-bottom: 0.8rem;
    font-size: 0.86rem;
    color: rgba(75, 58, 40, 0.8);
}

.paysera-methods-frame {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 120px;
    border: none;
    overflow: hidden;
    background: transparent;
}

/* cleaned up unused payment disclaimer styles */


/* Form Actions */
.form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem 1.35rem;
    align-items: start;
    margin-top: 0.15rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid rgba(139, 92, 42, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 28px rgba(44, 62, 80, 0.07);
}

.form-consent {
    display: flex;
    align-items: flex-start;
    min-width: 0;
}

.consent-label {

    font-weight: 600;
    color: #4b3a28;
    line-height: 1.5;
    width: 100%;
    font-size: 0.97rem;
}

.consent-label a {
    color: #8B5C2A;
    font-weight: 700;
    text-underline-offset: 0.14em;
}

.consent-label a:hover {
    color: #6e431e;
}

.consent-checkbox {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #8B5C2A;
    flex-shrink: 0;
    margin-top: 0.18rem;
}

.form-buttons {
    display: flex;
    gap: 0.85rem;
    justify-content: flex-end;
    align-items: stretch;
    flex-wrap: wrap;
}

.btn {
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s;
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.08);
}


.form-buttons .btn {
    min-width: 190px;
    min-height: 52px;
}

.btn-primary {
    background-color: #8B5C2A;
    color: white;
}

.btn-primary:hover {
    background-color: #6e431e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(139, 92, 42, 0.3);
}

.btn-secondary {
    background-color: #a97c50;
    color: white;
}

.btn-secondary:hover {
    background-color: #7a5832;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 242, 235, 0.94) 100%);
    margin: 8vh auto 0;
    padding: 1.4rem;
    border-radius: 24px;
    width: min(560px, calc(100vw - 2rem));
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 24px 60px rgba(44, 62, 80, 0.24);
    border: 1px solid rgba(139, 92, 42, 0.16);
    position: relative;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-success {
    border-top: 5px solid var(--success-color);
    text-align: left;
}

.modal-success h2 {
    color: var(--success-color);
    margin-bottom: 0.25rem;
    font-size: 1.8rem;
    text-align: left;
}

.confirmation-letter {
    background: rgba(255, 255, 255, 0.72);
    padding: 1.25rem;
    border-radius: 18px;
    text-align: left;
    border: 1px solid rgba(139, 92, 42, 0.12);
}

.confirmation-intro {
    color: #4b3a28;
    margin-bottom: 0.9rem;
    font-size: 1rem;
}

.receipt-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: rgba(39, 174, 96, 0.14);
    color: #1e8449;
    font-weight: 700;
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.receipt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.receipt-item {
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(44, 62, 80, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.receipt-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(75, 58, 40, 0.72);
}

.receipt-value {
    font-size: 1rem;
    color: #2c3e50;
}

.confirmation-note {
    margin-top: 1rem;
    color: #6e431e;
    font-weight: 600;
}

.confirmation-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0;
}

.confirmation-brand-row+.confirmation-brand-row {
    border-top: 1px solid rgba(139, 92, 42, 0.1);
}

.confirmation-brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(44, 62, 80, 0.08);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.08);
    overflow: hidden;
    flex-shrink: 0;
}

.confirmation-brand-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    display: block;
}

.confirmation-brand-socials {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: auto;
}

.brand-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #6e431e;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(139, 92, 42, 0.16);
    box-shadow: 0 8px 18px rgba(139, 92, 42, 0.08);
    transition: transform 0.2s, box-shadow 0.2s, color 0.2s;
}

.brand-social-link:hover {
    transform: translateY(-2px);
    color: #8B5C2A;
    box-shadow: 0 12px 22px rgba(139, 92, 42, 0.14);
}

.brand-social-link.is-disabled {
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.brand-social-icon {
    width: 18px;
    height: 18px;
}

.close {
    color: rgba(44, 62, 80, 0.58);
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #2c3e50;
}

.modal h2 {
    color: var(--primary-color);
}

.participant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Participants Table */
.participants-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.participants-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.participants-table thead {
    background: url('img/navbar.jpg') center center/cover no-repeat, var(--primary-color);
    color: white;
}

.participants-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.participants-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--light-bg);
    background-color: #fff;
    color: #222;
}

#participantsTable th.participants-paid-col,
#participantsTable td.participants-paid-col {
    width: 92px;
    min-width: 92px;
    text-align: center;
    white-space: nowrap;
}

#participantsTable td.participants-paid-col {
    color: #2e7d32;
    font-weight: 700;
}

.participants-table tbody tr:hover {
    background-color: var(--light-bg);
}

.participants-table tbody tr:last-child td {
    border-bottom: none;
}

.empty-message {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    font-style: italic;
}

/* Info and Rules Content */
.info-content,
.rules-content,
.results-content {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 6px;
    line-height: 1.8;
    opacity: 1;
    color: #000;
    background-color: rgba(255, 255, 255, 0.6) !important;
}

.rules-content,
.rules-content * {
    color: #000 !important;
}


.rules-content p,
.rules-content pre,
.rules-content span,
.rules-content li,
.rules-content h1,
.rules-content h2,
.rules-content h3,
.rules-content h4,
.rules-content h5,
.rules-content h6 {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        grid-template-columns: 1fr;
    }

    .form-buttons {
        width: 100%;
        flex-direction: column;
    }

    .form-buttons .btn {
        width: 100%;
        min-width: 0;
    }

    .participant-header {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 12vh auto 0;
    }

    h1 {
        font-size: 1.5rem;
    }

    .container {
        padding: 1rem;
    }

    .main-content {
        padding: 1rem;
    }

    .receipt-grid {
        grid-template-columns: 1fr;
    }

    .paysera-methods-section {
        width: 100%;
        justify-self: stretch;
    }

    .confirmation-brand-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .confirmation-brand-socials {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }


    .participant-info {
        grid-template-columns: 1fr;
    }
}

/* Sponsors Sidebar */
.sponsors-sidebar {
    width: 200px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem 1rem;
    background: white;
    border-radius: 8px;
    background: none !important;
    border-radius: 0 !important;
    top: 100px;
    height: fit-content;
}

.sponsors-sidebar h3 {
    color: var(--primary-color);
    font-size: 1rem;
    text-align: center;
    font-weight: 600;
    border-bottom: none;
    padding-bottom: 0.75rem;
    background: transparent;
}

.sponsors-slider {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    opacity: 1;
    background: rgba(255, 255, 255, 0.3);
}



.sponsors-slider::-webkit-scrollbar-track {
    background: var(--light-bg);
    border-radius: 3px;
}



.sponsors-slider::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: transparent !important;
    border-radius: 6px;
    border: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 120px;
}

.sponsor-item:hover {
    background: #fff3cd;
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.sponsor-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1 !important;
}

@media (max-width: 1200px) {
    .sponsors-sidebar {
        width: 150px;
        padding: 1rem 0.5rem;
    }

    .sponsor-item {
        min-height: 100px;
        padding: 0.75rem;
    }
}

/* Cookie banner style */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    flex: 1 1 auto;
    font-size: 0.9rem;
}

.cookie-banner a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.cookie-banner button {
    margin-left: 1rem;
}

@media (max-width: 768px) {
    .sponsors-sidebar {
        display: none;
    }
}

/* --- 2026 Responsive Refresh --- */
:root {
    --primary-color: #173037;
    --secondary-color: #2d8f6f;
    --accent-color: #c56536;
    --success-color: #1f8f59;
    --warning-color: #d89b28;
    --text-color: #203038;
    --light-bg: #edf3ef;
    --border-color: rgba(23, 48, 55, 0.12);
    --shadow: 0 24px 60px rgba(19, 38, 43, 0.14);
    --surface-color: rgba(255, 250, 244, 0.74);
    --surface-strong: rgba(255, 255, 255, 0.84);
    --surface-dark: rgba(13, 31, 35, 0.74);
}

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    background:
        linear-gradient(180deg, rgba(232, 241, 233, 0.28) 0%, rgba(245, 236, 223, 0.42) 100%),
        url('img/tyras_map.png') center center / cover no-repeat fixed,
        var(--light-bg);
    color: var(--text-color);
}

.navbar {
    padding: 0.9rem 0 0;
    background: linear-gradient(180deg, rgba(6, 19, 22, 0.78) 0%, rgba(6, 19, 22, 0.18) 100%);
    box-shadow: none;
}

.nav-container {
    width: min(1520px, calc(100% - 1.5rem));
    padding: 0.95rem 1.3rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(14, 35, 40, 0.9) 0%, rgba(52, 41, 30, 0.72) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 22px 36px rgba(10, 23, 26, 0.18);
    backdrop-filter: blur(16px);
}

.logo-container {
    cursor: pointer;
    gap: 0.95rem;
}

.logo-image {
    height: 48px;
    width: 48px;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.logo-text {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.45rem;
    letter-spacing: 0.01em;
}

.nav-links {
    gap: 0.7rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links li {
    display: flex;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    color: rgba(255, 247, 238, 0.95);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid transparent;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.18);
}

.nav-register-link {
    min-width: 168px;
}

.page-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.8rem;
    align-items: start;
    width: min(1520px, calc(100% - 1.5rem));
    padding: 1.4rem 0 2.4rem;
}

.main-content {
    min-width: 0;
}

.container {
    padding: 1.25rem;
}

h1 {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(2rem, 3vw, 3.35rem);
    letter-spacing: -0.03em;
    color: #173037;
}

.registration-form {
    gap: 1.2rem;
}

.form-section {
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.form-section legend {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
}

.form-group input,
.form-group select,
.admin-inline-input {
    min-height: 52px;
    font-family: inherit;
}

.form-group small,
.form-hint {
    display: block;
    margin-top: 0.55rem;
    color: rgba(32, 48, 56, 0.72);
    font-style: italic;
    line-height: 1.55;
}

.form-hint-link {
    color: #0d6f82;
    text-decoration: none;
    font-weight: 600;
}

.form-hint-link:hover {
    text-decoration: underline;
}

.paysera-methods-section,
.form-actions,
.info-content,
.rules-content,
.results-content,
.participants-table-wrapper,
.cookie-banner,
.sponsors-sidebar {
    backdrop-filter: blur(18px);
}

.info-content,
.rules-content,
.results-content {
    background: var(--surface-color) !important;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.participants-table-wrapper {
    border: 1px solid rgba(23, 48, 55, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 42px rgba(20, 37, 43, 0.12);
}

.participants-table {
    background: transparent;
}

.participants-table td {
    background-color: rgba(255, 255, 255, 0.82);
}

.section-toolbar,
.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.section-toolbar-title {
    margin: 0;
}

.toolbar-button {
    padding: 0.85rem 1.3rem;
    font-size: 0.95rem;
}

.admin-divider {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid rgba(23, 48, 55, 0.12);
}

.admin-inline-form {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.admin-inline-form .form-group {
    min-width: 150px;
    margin-bottom: 0;
}

.admin-inline-input {
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(23, 48, 55, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 2px rgba(44, 62, 80, 0.05);
}

.admin-inline-input--narrow {
    width: 120px;
}

.admin-card {
    padding: 1.35rem 1.4rem;
    border: 1px solid rgba(23, 48, 55, 0.1);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 250, 247, 0.86) 100%);
    box-shadow: 0 18px 38px rgba(20, 37, 43, 0.09);
}

.admin-card--panel {
    padding: 1.45rem;
}

.admin-hero {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 1.4rem;
}

.admin-eyebrow {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6e431e;
    font-weight: 800;
}

.admin-hero h2 {
    margin: 0 0 0.35rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.admin-stat-card {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(23, 48, 55, 0.94) 0%, rgba(92, 62, 35, 0.88) 100%);
    color: #fff;
    box-shadow: 0 16px 28px rgba(20, 37, 43, 0.14);
}

.admin-stat-label {
    display: block;
    font-size: 0.82rem;
    opacity: 0.78;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-stat-value {
    display: block;
    margin-top: 0.4rem;
    font-size: 1.9rem;
    font-weight: 800;
}

.admin-card-note {
    font-size: 0.88rem;
    color: rgba(32, 48, 56, 0.72);
}

.admin-discount-table td:first-child strong {
    letter-spacing: 0.03em;
}

.admin-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.68rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.admin-status-badge.is-active {
    background: rgba(31, 143, 89, 0.12);
    color: #1f8f59;
}

.admin-status-badge.is-exhausted {
    background: rgba(180, 67, 45, 0.12);
    color: #b4432d;
}

.admin-inline-form--discount {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    align-items: end;
}

.admin-inline-form--discount .btn {
    min-height: 46px;
}

.admin-discount-form-actions {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    align-items: center;
}

.admin-history-panel {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(23, 48, 55, 0.1);
    background: rgba(250, 252, 250, 0.95);
}

.admin-history-list {
    display: grid;
    gap: 0.8rem;
}

.admin-history-item {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(23, 48, 55, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 22px rgba(20, 37, 43, 0.06);
}

.admin-history-item-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.55rem;
}

.admin-history-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.admin-history-meta span {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(23, 48, 55, 0.06);
    color: rgba(32, 48, 56, 0.84);
    font-size: 0.88rem;
}

.admin-history-empty {
    margin: 0;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    color: rgba(32, 48, 56, 0.72);
}

.admin-mailer-form {
    display: grid;
    gap: 1rem;
}

.admin-template-bar,
.admin-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    align-items: end;
}

.admin-template-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-self: end;
}

.admin-recipient-picker {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(23, 48, 55, 0.1);
    border-radius: 16px;
    background: rgba(246, 250, 247, 0.9);
}

.admin-recipient-toolbar {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-recipient-actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.admin-recipient-count {
    font-size: 0.9rem;
    color: rgba(32, 48, 56, 0.72);
}

.admin-recipient-list {
    display: grid;
    gap: 0.7rem;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.admin-recipient-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(23, 48, 55, 0.09);
    background: rgba(255, 255, 255, 0.92);
}

.admin-recipient-item input {
    margin-top: 0.15rem;
}

.admin-recipient-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: #203038;
}

.admin-recipient-text span {
    font-size: 0.9rem;
    color: rgba(32, 48, 56, 0.72);
}

.admin-recipient-empty {
    margin: 0;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: rgba(32, 48, 56, 0.72);
}

.admin-preview {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(23, 48, 55, 0.1);
    border-radius: 16px;
    background: rgba(255, 252, 247, 0.9);
}

.admin-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-preview-list {
    display: grid;
    gap: 0.7rem;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.admin-preview-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(23, 48, 55, 0.09);
}

.admin-preview-item span {
    font-size: 0.9rem;
    color: rgba(32, 48, 56, 0.72);
}

.admin-mailer-option {
    justify-content: flex-start;
}

.admin-mailer-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-mail-status {
    min-height: 1.5rem;
    font-size: 0.95rem;
    color: rgba(32, 48, 56, 0.72);
}

.admin-mail-status.is-success {
    color: #1f8f59;
}

.admin-mail-status.is-error {
    color: #b4432d;
}

@media (max-width: 768px) {

    .admin-hero {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-template-actions,
    .admin-recipient-toolbar,
    .admin-recipient-actions,
    .admin-preview-header,
    .admin-history-item-head,
    .admin-mailer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-inline-form--discount,
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-template-actions .btn,
    .admin-recipient-actions .btn,
    .admin-mailer-actions .btn {
        width: 100%;
    }
}

.sponsors-sidebar {
    width: 220px;
    padding: 1.2rem;
    border-radius: 28px !important;
    background: rgba(255, 248, 241, 0.62) !important;
    border: 1px solid rgba(255, 255, 255, 0.58);
    box-shadow: var(--shadow);
    position: sticky;
    top: 110px;
}

.sponsors-sidebar h3 {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.15rem;
    color: #173037;
}

.sponsors-slider {
    gap: 0.85rem;
    padding: 0;
    border: none;
    background: transparent;
}

.sponsor-item {
    min-height: 110px;
    padding: 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82) !important;
    box-shadow: 0 12px 24px rgba(20, 37, 43, 0.08);
}

.sponsor-item:hover {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: transparent;
    transform: translateY(-4px);
}

.cookie-banner {
    width: min(1120px, calc(100% - 1rem));
    left: 50%;
    right: auto;
    bottom: 0.75rem;
    transform: translateX(-50%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(13, 31, 35, 0.92);
    box-shadow: 0 18px 40px rgba(5, 15, 18, 0.28);
}

.cookie-banner button {
    margin-left: 0;
}

@media (max-width: 1200px) {
    .page-shell {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .sponsors-sidebar {
        width: 100%;
        position: static;
        top: auto;
    }

    .sponsors-slider {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(170px, 1fr);
        overflow-x: auto;
        padding-bottom: 0.2rem;
    }
}

@media (max-width: 900px) {
    .navbar {
        padding-top: 0.7rem;
    }

    .sponsors-sidebar {
        display: flex;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.5rem 0.65rem 0.45rem;
        margin: 0;
        border-radius: 16px !important;
        background: rgba(255, 248, 241, 0.82) !important;
        border: 1px solid rgba(255, 255, 255, 0.55);
        box-shadow: 0 10px 22px rgba(20, 37, 43, 0.1);
        order: -1;
        overflow: hidden;
    }

    .sponsors-sidebar h3 {
        text-align: left;
        font-size: 0.72rem;
        line-height: 1;
        padding-bottom: 0;
        margin: 0;
    }

    .nav-container {
        width: calc(100% - 1rem);
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.9rem;
    }

    .nav-links {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.2rem;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links li {
        flex: 0 0 auto;
    }

    .page-shell {
        width: calc(100% - 1rem);
        gap: 0.85rem;
    }

    .registration-form,
    .form-section,
    .form-actions,
    .paysera-methods-section,
    .price-info {
        background: transparent !important;
        box-shadow: none;
        backdrop-filter: none;
    }

    .sponsors-slider {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        gap: 0.55rem;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0.02rem 0.02rem 0.08rem;
        border: none;
        border-radius: 0;
        background: transparent;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .sponsors-slider::-webkit-scrollbar {
        height: 6px;
    }

    .sponsor-item {
        flex: 0 0 82px;
        width: 82px;
        min-width: 82px;
        min-height: 68px;
        padding: 0.25rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.88) !important;
        box-shadow: 0 6px 14px rgba(20, 37, 43, 0.08);
        scroll-snap-align: start;
    }

    .sponsor-item a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    .sponsor-item img {
        width: 60px;
        height: 60px;
        max-width: 60px;
        max-height: 60px;
        object-fit: contain;
    }

    .container {
        padding: 0.75rem;
    }

    .form-row,
    .form-actions,
    .receipt-grid {
        grid-template-columns: 1fr;
    }

    .form-buttons {
        width: 100%;
    }

    .form-buttons .btn {
        flex: 1 1 0;
        min-width: 0;
    }

    .participants-table-wrapper {
        overflow-x: auto;
    }

    .participants-table {
        min-width: 760px;
    }

    .admin-inline-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 160px auto;
    }
}

@media (max-width: 640px) {
    body {
        background-attachment: scroll;
    }

    .sponsors-sidebar {
        padding: 0.42rem 0.52rem 0.4rem;
        border-radius: 14px !important;
    }

    .sponsors-sidebar h3 {
        font-size: 0.68rem;
    }

    .sponsors-slider {
        gap: 0.42rem;
        padding-bottom: 0.06rem;
    }

    .sponsor-item {
        flex-basis: 78px;
        width: 78px;
        min-width: 78px;
        min-height: 64px;
        padding: 0.2rem;
        border-radius: 12px;
    }

    .main-content,
    .container {
        padding: 0.35rem !important;
    }

    .logo-image {
        height: 42px;
        width: 42px;
    }

    .logo-text {
        font-size: 1.18rem;
    }

    .nav-links a {
        padding: 0.7rem 0.95rem;
        font-size: 0.92rem;
    }

    .nav-register-link {
        min-width: auto;
    }

    .page-shell {
        width: calc(100% - 0.75rem);
        padding-top: 1rem;
    }

    .container {
        padding: 0.35rem;
    }

    h1 {
        font-size: clamp(1.8rem, 8vw, 2.35rem);
        margin-bottom: 1.35rem;
    }

    .registration-form {
        gap: 0.9rem;
        padding: 0;
        max-width: 100%;
        background: transparent !important;
    }

    .form-section,
    .form-actions,
    .paysera-methods-section,
    .info-content,
    .rules-content,
    .results-content,
    .participants-table-wrapper {
        border-radius: 20px;
    }

    .form-section {
        padding: 1rem 0.95rem 0.95rem;
        background: transparent !important;
    }

    .price-info,
    .form-actions,
    .paysera-methods-section {
        padding: 1rem;
        background: transparent !important;
        box-shadow: none;
        backdrop-filter: none;
    }

    .form-buttons {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .btn,
    .form-buttons .btn,
    .toolbar-button {
        width: 100%;
    }

    .section-toolbar,
    .admin-toolbar {
        align-items: stretch;
    }

    .modal-content {
        width: calc(100vw - 1rem) !important;
        margin-top: 4vh;
        padding: 1rem !important;
        border-radius: 22px;
    }

    .confirmation-letter {
        padding: 1rem;
    }

    .participants-table {
        min-width: 680px;
    }

    .participants-table-wrapper {
        width: 100%;
        margin: 0;
    }

    .admin-inline-form {
        grid-template-columns: 1fr;
    }

    .admin-inline-input--narrow {
        width: 100%;
    }

    .cookie-banner {
        width: calc(100% - 0.75rem);
        padding: 1rem;
        bottom: 0.4rem;
        gap: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        border-radius: 20px;
    }

    .sponsors-sidebar {
        display: flex;
    }

    .sponsors-slider {
        gap: 0.35rem;
        padding-bottom: 0.04rem;
    }

    .sponsors-sidebar {
        padding: 0.36rem 0.42rem 0.34rem;
    }

    .sponsor-item {
        flex-basis: 74px;
        width: 74px;
        min-width: 74px;
        min-height: 62px;
        padding: 0.12rem;
    }

    .participants-table {
        min-width: 620px;
    }

    .cookie-banner p {
        font-size: 0.85rem;
    }
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    flex-direction: column;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(10, 23, 26, 0.18);
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-container.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-container.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-container.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.content-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.9fr);
    gap: 1.25rem;
    align-items: stretch;
    margin-bottom: 1.4rem;
}

.info-content {
    display: grid;
    gap: 1.5rem;
}

.info-top-cta {
    display: flex;
    justify-content: flex-end;
}

.info-content .content-hero {
    position: relative;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(214, 160, 96, 0.16), transparent 30%),
        rgba(255, 255, 255, 0.8);
    box-shadow: 0 24px 48px rgba(20, 37, 43, 0.1);
    overflow: hidden;
}

.info-content .content-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 45%);
    pointer-events: none;
}

.info-content .content-hero>div {
    position: relative;
    z-index: 1;
}

.event-spotlight {
    --event-accent: #b85f1f;
    --event-deep: #173037;
    --event-soft: rgba(255, 248, 241, 0.92);
    display: grid;
    gap: 1rem;
}

.event-spotlight__hero,
.event-pillars,
.event-info-grid {
    display: grid;
    gap: 1rem;
}

.event-spotlight__hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.85fr);
    padding: 1.75rem;
    border-radius: 32px;
    background:
        radial-gradient(circle at top left, rgba(255, 214, 169, 0.4), transparent 36%),
        linear-gradient(145deg, rgba(23, 48, 55, 0.98), rgba(35, 67, 72, 0.95));
    box-shadow: 0 26px 54px rgba(17, 31, 36, 0.2);
    color: #f7f0e8;
    overflow: hidden;
}

.event-spotlight__hero .content-eyebrow,
.event-pillar-card .content-eyebrow,
.event-info-card .content-eyebrow {
    color: var(--event-accent);
}

.event-spotlight__hero h2 {
    font-size: clamp(2rem, 4.5vw, 3.6rem);
    line-height: 0.98;
    color: #fff7f1;
}

.event-spotlight__hero .content-lead {
    max-width: 44rem;
    color: rgba(255, 244, 236, 0.88);
}

.event-spotlight__aside,
.event-pillar-card,
.event-info-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    backdrop-filter: blur(8px);
}

.event-spotlight__aside {
    align-self: stretch;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.08);
}

.event-spotlight__tagline,
.event-pillar-copy,
.event-location,
.event-prize-groups p,
.event-prize-notes p,
.event-info-note,
.event-schedule-grid span:nth-child(even) {
    color: rgba(23, 48, 55, 0.78);
}

.event-spotlight__hero .event-spotlight__tagline,
.event-spotlight__hero .event-checklist li,
.event-spotlight__meeting {
    color: #fff4eb;
}

.event-spotlight__meeting {
    margin-top: 1rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.event-checklist,
.event-experience-list,
.event-distance-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.event-checklist {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.event-checklist li,
.event-experience-list li {
    position: relative;
    padding-left: 1.7rem;
    line-height: 1.55;
}

.event-checklist li::before,
.event-experience-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--event-accent);
    font-weight: 800;
}

.event-checklist--tight {
    gap: 0.55rem;
    margin-top: 0.7rem;
}

.event-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-pillar-card,
.event-info-card {
    padding: 1.35rem;
    background:
        radial-gradient(circle at top right, rgba(231, 174, 110, 0.16), transparent 34%),
        var(--event-soft);
    box-shadow: 0 18px 38px rgba(20, 37, 43, 0.12);
}

.event-register-button {
    margin-top: 1rem;
    width: fit-content;
}

.event-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.event-info-card {
    gap: 0.9rem;
}

.event-info-card__header h3 {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.1;
    color: var(--event-deep);
}

.event-distance-list {
    display: grid;
    gap: 0.75rem;
}

.event-distance-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--event-deep);
}

.event-distance-list strong,
.event-prize-groups strong {
    color: var(--event-deep);
}

.event-distance-list span {
    text-align: right;
    color: rgba(23, 48, 55, 0.72);
}

.event-route-points,
.event-prize-notes {
    display: grid;
    gap: 0.55rem;
}

.event-route-points span,
.event-prize-notes p {
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.66);
}

.event-experience-list {
    display: grid;
    gap: 0.8rem;
}

.event-info-card--schedule,
.event-info-card--prizes {
    grid-column: 1 / -1;
}

.event-schedule-grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem 1rem;
    margin-top: 0.8rem;
}

.event-schedule-grid span:nth-child(odd) {
    font-weight: 800;
    color: var(--event-deep);
}

.event-info-note {
    margin-top: 0.85rem;
    line-height: 1.6;
}

.event-info-note--accent {
    color: var(--event-accent);
    font-weight: 700;
}

.event-prize-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 0.85rem;
}

.event-prize-groups div {
    padding: 0.95rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.event-prize-groups p {
    margin-top: 0.35rem;
    line-height: 1.45;
}

.content-hero--rules {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.95fr);
}

.content-eyebrow {
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #b36634;
}

.content-hero h2,
.content-card h3,
.highlight-card h3,
.mini-card h3,
.rules-section-card summary {
    font-family: "Fraunces", Georgia, serif;
}

.content-hero h2 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.08;
    color: #173037;
}

.content-lead {
    margin-top: 0.85rem;
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(23, 48, 55, 0.82);
}

.hero-stat-grid,
.rules-quick-grid,
.content-section-grid,
.rules-highlight-grid,
.rules-columns {
    display: grid;
    gap: 1rem;
}

.hero-stat-grid,
.rules-quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-stat-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-stat-card,
.rule-quick-card,
.content-card,
.highlight-card,
.mini-card,
.rules-section-card {
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 20px 44px rgba(20, 37, 43, 0.1);
}

.hero-stat-card,
.rule-quick-card {
    min-height: 150px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-stat-value {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.65rem, 4vw, 2.6rem);
    color: #173037;
}

.hero-stat-note {
    margin: 0;
    color: rgba(23, 48, 55, 0.72);
    line-height: 1.5;
}

.hero-stat-label,
.rule-quick-card span {
    color: rgba(23, 48, 55, 0.7);
    line-height: 1.45;
}

.rule-quick-card strong {
    color: #b36634;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.content-section-grid,
.rules-highlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1.2rem;
}

.content-card,
.highlight-card,
.mini-card {
    padding: 1.35rem;
}

.content-card h3 {
    margin-bottom: 0.9rem;
}

.info-card-intro {
    margin: 0 0 1rem;
    color: rgba(23, 48, 55, 0.78);
    line-height: 1.65;
}

.info-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(23, 48, 55, 0.06);
    color: #173037;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.info-chip::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #b36634;
    box-shadow: 0 0 0 4px rgba(179, 102, 52, 0.12);
}

.info-chip--group::before {
    background: #173037;
    box-shadow: 0 0 0 4px rgba(23, 48, 55, 0.12);
}

.info-chip--award::before {
    background: #d0a160;
    box-shadow: 0 0 0 4px rgba(208, 161, 96, 0.18);
}

.content-card--accent {
    background: linear-gradient(135deg, rgba(20, 47, 53, 0.92) 0%, rgba(104, 72, 37, 0.88) 100%);
    color: #fff;
}

.content-card--accent h3,
.content-card--accent .content-card-label,
.content-card--accent strong,
.content-card--accent span {
    color: inherit;
}

.content-card-label {
    margin-bottom: 0.55rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #b36634;
}

.distance-list,
.contact-stack,
.rules-accordion {
    display: grid;
    gap: 0.85rem;
}

.distance-item {
    display: grid;
    gap: 0.28rem;
    padding: 0.9rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.distance-item:first-child {
    border-top: none;
    padding-top: 0.2rem;
}

.distance-item strong {
    font-size: 1.1rem;
}

.content-list {
    margin: 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.7rem;
    line-height: 1.6;
    color: rgba(23, 48, 55, 0.84);
}

.content-card--accent .content-list {
    color: rgba(255, 255, 255, 0.9);
}

.age-groups-grid {
    margin-top: 0.15rem;
    grid-template-columns: minmax(0, 1.15fr) repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
    align-items: start;
}

.age-group-block+.age-group-block {
    margin-top: 1rem;
}

.age-group-block {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(247, 250, 248, 0.88);
    border: 1px solid rgba(23, 48, 55, 0.06);
}

.info-group-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 0.65rem;
    margin-bottom: 0.15rem;
    border-bottom: 1px solid rgba(23, 48, 55, 0.08);
}

.info-group-heading .content-card-label {
    margin-bottom: 0;
}

.info-group-heading strong {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.2;
    color: #173037;
}

.age-group-list {
    margin: 0.45rem 0 0;
    padding-left: 1.15rem;
    display: grid;
    gap: 0.55rem;
    line-height: 1.6;
    color: rgba(23, 48, 55, 0.84);
}

.age-group-list li::marker {
    color: #b36634;
}

.age-group-list strong {
    color: #173037;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(23, 48, 55, 0.08);
    color: #173037;
    text-decoration: none;
    font-weight: 700;
}

.contact-pill:hover {
    background: rgba(23, 48, 55, 0.12);
}

.content-highlight-band {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.info-footer-panel {
    display: grid;
    gap: 1.2rem;
    margin-top: 0.35rem;
}

.info-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 20px 44px rgba(20, 37, 43, 0.1);
}

.info-register-button {
    min-width: 220px;
}

.info-social-links {
    margin-left: 0;
    gap: 0.8rem;
    padding-left: 0.5rem;
}

.info-map-card {
    display: grid;
    gap: 1rem;
    padding: 1.45rem;
}

.info-map-card h3 {
    margin-bottom: 0;
}

.info-map-lead {
    margin: 0;
}

.info-map-embed {
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(23, 48, 55, 0.08);
    min-height: 360px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
    background: rgba(244, 247, 245, 0.85);
}

.info-map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 360px;
    border: 0;
}

.rules-accordion {
    margin-top: 1.2rem;
}

.rules-section-card {
    overflow: hidden;
}

.rules-section-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.3rem;
    cursor: pointer;
    list-style: none;
    font-size: 1.2rem;
    color: #173037;
}

.rules-section-card summary::-webkit-details-marker {
    display: none;
}

.rules-section-card summary::after {
    content: "+";
    font-size: 1.5rem;
    color: #b36634;
}

.rules-section-card[open] summary::after {
    content: "−";
}

.rules-section-body {
    padding: 0 1.3rem 1.3rem;
}

.mini-card p,
.highlight-card p,
.rules-section-body p {
    color: rgba(23, 48, 55, 0.8);
    line-height: 1.65;
}

@media (max-width: 1180px) {
    .age-groups-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .age-groups-grid .content-card:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    body.nav-open {
        overflow: hidden;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-container {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .nav-links {
        grid-column: 1 / -1;
        display: none;
        margin-top: 0.85rem;
        padding: 0.85rem;
        border-radius: 20px;
        background: rgba(8, 23, 27, 0.94);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 18px 34px rgba(10, 23, 26, 0.24);
    }

    .nav-container.is-open .nav-links {
        display: grid;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a,
    .nav-register-link {
        width: 100%;
    }

    .content-hero,
    .content-hero--rules,
    .content-section-grid,
    .content-highlight-band,
    .rules-highlight-grid,
    .hero-stat-grid,
    .rules-quick-grid,
    .rules-columns,
    .event-spotlight__hero,
    .event-pillars,
    .event-info-grid,
    .event-prize-groups {
        grid-template-columns: 1fr;
    }

    .hero-stat-card,
    .rule-quick-card {
        min-height: 120px;
    }

    .info-chip-row {
        margin-bottom: 0.85rem;
    }

    .info-content .content-hero {
        padding: 1.15rem;
        border-radius: 22px;
    }

    .info-top-cta {
        justify-content: stretch;
    }

    .event-spotlight__hero,
    .event-pillar-card,
    .event-info-card {
        padding: 1.1rem;
        border-radius: 22px;
    }

    .event-distance-list li {
        align-items: flex-start;
    }

    .event-prize-groups div {
        padding: 0.85rem;
    }

    .info-footer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .info-register-button {
        width: 100%;
    }

    .info-social-links {
        justify-content: center;
        padding-left: 0;
    }
}

@media (max-width: 640px) {

    .content-hero,
    .content-card,
    .highlight-card,
    .mini-card,
    .rules-section-card {
        border-radius: 20px;
    }

    .content-hero h2 {
        font-size: 1.7rem;
    }

    .event-spotlight__hero h2 {
        font-size: 2rem;
    }

    .event-distance-list li {
        flex-direction: column;
        gap: 0.35rem;
    }

    .event-distance-list span {
        text-align: left;
    }

    .event-schedule-grid {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .event-schedule-grid span:nth-child(odd) {
        margin-top: 0.65rem;
    }

    .event-register-button {
        width: 100%;
    }

    .content-card,
    .highlight-card,
    .mini-card {
        padding: 1rem;
    }

    .rules-section-card summary {
        padding: 1rem;
        font-size: 1.05rem;
    }

    .rules-section-body {
        padding: 0 1rem 1rem;
    }
}

@media (max-width: 420px) {
    .page-shell {
        width: calc(100% - 0.45rem);
        gap: 0.55rem;
    }

    .main-content,
    .container {
        padding: 0.2rem !important;
    }

    .info-content {
        gap: 0.85rem;
    }

    .info-content .content-hero,
    .event-spotlight__hero,
    .event-pillar-card,
    .event-info-card,
    .info-footer-actions,
    .info-map-card {
        padding: 0.95rem;
        border-radius: 18px;
    }

    .event-spotlight__aside,
    .event-prize-groups div,
    .event-route-points span,
    .event-distance-list li {
        padding: 0.8rem;
        border-radius: 16px;
    }

    .event-spotlight__hero h2 {
        font-size: clamp(1.75rem, 9vw, 1.95rem);
        line-height: 1.02;
    }

    .content-hero h2,
    .event-info-card__header h3 {
        font-size: 1.45rem;
    }

    .content-lead,
    .event-pillar-copy,
    .event-location,
    .event-info-note,
    .event-prize-groups p,
    .event-prize-notes p,
    .event-schedule-grid span:nth-child(even) {
        font-size: 0.96rem;
        line-height: 1.55;
    }

    .event-checklist li,
    .event-experience-list li {
        padding-left: 1.45rem;
    }

    .hero-stat-card {
        min-height: auto;
        padding: 0.95rem;
    }

    .hero-stat-value {
        font-size: clamp(1.45rem, 7vw, 1.85rem);
    }

    .event-schedule-grid span:nth-child(odd) {
        margin-top: 0.5rem;
        font-size: 0.95rem;
    }

    .info-register-button,
    .event-register-button {
        min-width: 0;
    }

    .brand-social-link {
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 901px) {
    body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .navbar {
        background: url('img/navbar.jpg') center center/cover no-repeat, var(--primary-color);
        padding: 1rem 0;
        box-shadow: var(--shadow);
    }

    .nav-container {
        width: auto;
        max-width: 1520px;
        margin: 0 auto;
        padding: 0 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-radius: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }

    .nav-links {
        gap: 2rem;
        flex-wrap: nowrap;
        overflow: visible;
        padding-bottom: 0;
    }

    .logo-container {
        gap: 0.75rem;
    }

    .logo-image {
        height: 40px;
        width: auto;
        border-radius: 50%;
        box-shadow: none;
    }

    .logo-text {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size: 1.3rem;
        font-weight: bold;
        letter-spacing: 0;
    }

    .nav-links a {
        min-height: 0;
        padding: 0;
        border-radius: 0;
        color: white;
        background: transparent;
        border: none;
        font-weight: 500;
    }

    .nav-links a:hover {
        color: var(--secondary-color);
        background: transparent;
        border-color: transparent;
    }

    .nav-register-link {
        min-width: 0;
        margin-left: 1rem;
        padding: 0.85rem 1.5rem;
        border-radius: 12px;
        background-color: #8B5C2A;
        color: white;
    }

    .page-shell {
        display: flex;
        gap: 2rem;
        align-items: flex-start;
        width: min(1520px, calc(100% - 2rem));
        margin: 0 auto;
        padding: 0;
    }

    .main-content {
        flex: 1 1 0;
        max-width: none;
        margin: 0 auto;
    }

    .container {
        padding: 2rem;
    }

    h1 {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size: 2rem;
        letter-spacing: 0;
        color: var(--primary-color);
    }

    .form-section {
        background: transparent;
        border: 1px solid rgba(139, 92, 42, 0.14);
        box-shadow: 0 14px 34px rgba(44, 62, 80, 0.08);
        backdrop-filter: none;
    }

    .paysera-methods-section,
    .form-actions,
    .info-content,
    .rules-content,
    .results-content,
    .participants-table-wrapper,
    .cookie-banner,
    .sponsors-sidebar {
        backdrop-filter: none;
    }

    .info-content,
    .rules-content,
    .results-content {
        background-color: rgba(255, 255, 255, 0.6) !important;
        border: none;
        border-radius: 6px;
        box-shadow: none;
    }

    .participants-table-wrapper {
        border: 1px solid var(--border-color);
        border-radius: 6px;
        background: transparent;
        box-shadow: none;
    }

    .participants-table td {
        background-color: #fff;
    }

    .section-toolbar-title {
        margin: 0;
    }

    .toolbar-button {
        padding: 10px 20px;
        font-size: 14px;
        width: auto;
    }

    .admin-inline-input {
        border-radius: 0;
        background: #fff;
        box-shadow: none;
    }

    .sponsors-sidebar {
        width: 200px;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1rem;
        background: none !important;
        border-radius: 0 !important;
        border: none;
        box-shadow: none;
        position: static;
        top: auto;
        height: fit-content;
    }

    .sponsors-sidebar h3 {
        font-family: inherit;
        font-size: 1rem;
        text-align: center;
        font-weight: 600;
        color: var(--primary-color);
    }

    .sponsors-slider {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        overflow-x: auto;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.3);
    }

    .sponsor-item {
        min-height: 120px;
        padding: 1rem;
        border-radius: 6px;
        background: transparent !important;
        box-shadow: none;
    }

    .sponsor-item:hover {
        background: #fff3cd;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }

    .cookie-banner {
        width: auto;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        border-radius: 0;
        border: none;
        background: rgba(44, 62, 80, 0.95);
        box-shadow: none;
        padding: 1rem 2rem;
    }

    .cookie-banner button {
        margin-left: 1rem;
    }
}

.sponsors-carousel {
    --sponsor-visible-count: 6;
    --sponsor-gap: 0.85rem;
    --sponsor-card-width: 220px;
    --sponsor-card-height: 110px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: center;
}

.sponsors-viewport {
    width: min(100%, var(--sponsor-card-width));
    max-width: var(--sponsor-card-width);
    height: calc((var(--sponsor-card-height) * var(--sponsor-visible-count)) + (var(--sponsor-gap) * (var(--sponsor-visible-count) - 1)));
    margin: 0 auto;
    overflow: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sponsors-viewport::-webkit-scrollbar {
    display: none;
}

.sponsors-slider {
    display: flex;
    flex-direction: column;
    gap: var(--sponsor-gap);
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    will-change: auto;
    touch-action: none;
}

.sponsor-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex: 0 0 var(--sponsor-card-height);
    min-width: 100%;
    min-height: var(--sponsor-card-height);
    margin: 0;
}

.sponsor-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.sponsor-item img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sponsors-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.sponsors-dot {
    width: 0.65rem;
    height: 0.65rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(23, 48, 55, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.sponsors-dot:hover,
.sponsors-dot.is-active {
    background: #173037;
    transform: scale(1.08);
}

.sponsors-dot:focus-visible {
    outline: 2px solid rgba(23, 48, 55, 0.45);
    outline-offset: 2px;
}

@media (max-width: 1200px) {
    .sponsors-carousel {
        align-items: center;
    }
}

@media (max-width: 900px) {
    .sponsors-carousel {
        --sponsor-visible-count: 5;
        --sponsor-gap: 0.32rem;
        --sponsor-card-width: 72px;
        --sponsor-card-height: 62px;
        width: 100%;
        align-items: stretch;
        gap: 0.5rem;
    }

    .sponsors-sidebar h3 {
        width: 100%;
        padding-left: 0.1rem;
    }

    .sponsors-slider {
        flex-direction: row;
        width: max-content;
        align-items: stretch;
    }

    .sponsors-viewport {
        width: min(100%, calc((var(--sponsor-card-width) * var(--sponsor-visible-count)) + (var(--sponsor-gap) * (var(--sponsor-visible-count) - 1))));
        max-width: 100%;
        height: var(--sponsor-card-height);
        margin: 0 auto;
        overflow: hidden;
    }

    .sponsor-item {
        flex: 0 0 var(--sponsor-card-width);
        width: 100%;
        min-height: var(--sponsor-card-height);
        padding: 0.25rem;
        border-radius: 12px;
    }

    .sponsor-item img {
        display: block;
        width: 52px;
        height: 52px;
        max-width: 52px;
        max-height: 52px;
        margin: 0 auto;
    }

    .sponsors-pagination {
        width: 100%;
        justify-content: center;
        margin-top: 0.05rem;
    }

    .sponsors-dot {
        width: 0.5rem;
        height: 0.5rem;
    }
}

@media (max-width: 640px) {
    .sponsors-carousel {
        --sponsor-gap: 0.28rem;
        --sponsor-card-width: 64px;
        --sponsor-card-height: 56px;
    }

    .sponsors-slider {
        width: max-content;
    }

    .sponsor-item {
        min-width: var(--sponsor-card-width);
        min-height: var(--sponsor-card-height);
        padding: 0.2rem;
    }

    .sponsor-item img {
        width: 46px;
        height: 46px;
        max-width: 46px;
        max-height: 46px;
    }
}

@media (max-width: 480px) {
    .sponsors-carousel {
        --sponsor-gap: 0.22rem;
        --sponsor-card-width: 56px;
        --sponsor-card-height: 50px;
    }

    .sponsors-slider {
        width: max-content;
    }

    .sponsor-item {
        min-width: var(--sponsor-card-width);
        min-height: var(--sponsor-card-height);
        padding: 0.12rem;
    }

    .sponsor-item img {
        width: 40px;
        height: 40px;
        max-width: 40px;
        max-height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .sponsors-dot {
        transition: none;
    }
}