/* ============================================
   FMSPORTFEST 2026 - Main Stylesheet
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
    --color-primary: #2d6a30;      /* Green from logo */
    --color-primary-light: #4a8f3f;
    --color-primary-dark: #1a4d1d;
    --color-accent: #e8a725;       /* Gold/yellow from logo */
    --color-accent-light: #f0c04a;
    --color-dark: #1a1a1a;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-bg-dark: #1a1a1a;
    --color-grizzlyman: #3d7a2a;
    --color-aquabike: #1a6fa8;
    --color-duathlon: #c0392b;
    --color-kodiacek: #e67e22;
    --color-shrekman: #5d8a1a;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-height: 80px;
    --transition: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    content-visibility: auto;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-dark);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container--wide {
    max-width: 1400px;
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: box-shadow var(--transition), background var(--transition);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
}

.navbar__logo img {
    height: 48px;
    width: auto;
}

.navbar__date {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.navbar__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.navbar__nav a {
    display: block;
    padding: 8px 16px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-radius: 6px;
    transition: all var(--transition);
}

.navbar__nav a:hover {
    color: var(--color-primary);
    background: rgba(45, 106, 48, 0.06);
}

.navbar__cta {
    display: inline-block;
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff !important;
    background: var(--color-primary);
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition);
}

.navbar__cta:hover,
.navbar__cta:focus {
    background: #b6e2b8;
    color: #1a4d1c !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 106, 48, 0.3);
}

/* Hero CTA */
.hero__cta {
    display: inline-block;
    margin-top: 28px;
    padding: 14px 40px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-primary);
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    transition: all var(--transition);
    border: 2px solid #fff;
}

.hero__cta:hover,
.hero__cta:focus {
    background: #fff;
    color: #1a4d1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Hamburger */
.navbar__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.navbar__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: all var(--transition);
}

.navbar__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar__hamburger.active span:nth-child(2) {
    opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-bg-dark);
}

.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.35) 50%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
}

.hero__logo {
    width: 320px;
    max-width: 70vw;
    margin-bottom: 24px;
    drop-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    animation: fadeInDown 1s ease;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 16px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero__subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    margin-bottom: 12px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero__date {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 600;
    color: var(--color-accent-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s ease infinite;
}

.hero__scroll svg {
    width: 32px;
    height: 32px;
    fill: rgba(255, 255, 255, 0.6);
}

/* ---------- Section Styles ---------- */
.section {
    padding: 100px 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section--dark {
    background: var(--color-bg-dark);
    color: #fff;
}

.section--dark h2,
.section--dark h3 {
    color: #fff;
}

.section__header {
    text-align: center;
    margin-bottom: 64px;
}

.section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section--dark .section__subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- Schedule / Race Cards ---------- */
.schedule-day {
    margin-bottom: 64px;
}

.schedule-day:last-child {
    margin-bottom: 0;
}

.schedule-day__title {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 48px;
    position: relative;
}

.schedule-day__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

.race-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.race-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform var(--transition);
}

.race-card:hover {
    transform: translateY(-8px);
    color: inherit;
}

.race-card__circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.race-card:hover .race-card__circle {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.race-card__circle svg {
    width: 80px;
    height: 80px;
}

.race-card__svg {
    width: 80%;
    height: 80%;
}

.race-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.race-card__circle--grizzlyman {
    background: linear-gradient(135deg, #5aa02c, #3d7a2a);
}

.race-card__circle--aquabike {
    background: linear-gradient(135deg, #2196F3, #1565C0);
}

.race-card__circle--duathlon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.race-card__circle--kodiacek {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.race-card__circle--shrekman {
    background: linear-gradient(135deg, #8bc34a, #558b2f);
}

.race-card__circle--shrekman-adult {
    background: linear-gradient(135deg, #6d9b2a, #3e6b15);
}

.race-card__name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.race-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

/* Harmonogram tabulka */
.harmonogram-table {
    max-width: 700px;
    margin: 48px auto 0;
    border-collapse: collapse;
    width: 100%;
}

.harmonogram-table th,
.harmonogram-table td {
    padding: 12px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.harmonogram-table th {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-light);
    background: var(--color-bg-alt);
}

.harmonogram-table td:first-child {
    font-family: var(--font-heading);
    font-weight: 700;
    white-space: nowrap;
    width: 80px;
}

.harmonogram-table tr:hover {
    background: rgba(45, 106, 48, 0.03);
}

.harmonogram-table a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
    transition: color var(--transition);
}

.harmonogram-table a:hover {
    color: var(--color-dark);
}

/* ---------- Media / Gallery Section ---------- */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.media-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
}

.media-card picture {
    display: block;
    width: 100%;
    height: 100%;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.media-card img,
.media-card picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.media-card:hover img {
    transform: scale(1.05);
}

.media-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px 24px 24px;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, 0.85) 100%);
    color: #fff;
}

.media-card__label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.media-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.media-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.media-card:hover .media-card__play {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.media-card__play svg {
    width: 24px;
    height: 24px;
    fill: var(--color-dark);
    margin-left: 3px;
}

.media-actions {
    text-align: center;
    margin-top: 48px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 36px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--color-primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--color-primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 106, 48, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn--white {
    background: #fff;
    color: var(--color-dark);
}

.btn--white:hover {
    background: var(--color-bg-alt);
    color: var(--color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.btn--sm {
    padding: 10px 24px;
    font-size: 0.8rem;
}

/* ---------- Map / Místo konání ---------- */
.map-wrap {
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 700 / 466;
}

.map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

/* ---------- Partners ---------- */
.partners-tier {
    margin-bottom: 56px;
    text-align: center;
}

.partners-tier:last-child {
    margin-bottom: 0;
}

.partners-tier__title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-text-light);
    margin-bottom: 32px;
}

.partners-tier__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    align-items: center;
    gap: 24px 32px;
    max-width: 900px;
    margin: 0 auto;
}

.partners-tier__grid--main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
    max-width: 50%;
    margin: 0 auto;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80px;
    padding: 8px 12px;
    transition: all var(--transition);
}

.partner-logo:hover {
    transform: scale(1.05);
}

.partner-logo img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.partner-logo--main {
    height: auto;
    padding: 12px;
}

.partner-logo--main img {
    max-height: 100px;
}

.partner-logo--general {
    height: auto;
    padding: 12px;
}

.partner-logo--general img {
    max-height: 140px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
}

.footer__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer__brand img {
    height: 40px;
    margin-bottom: 16px;
}

.footer__brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 16px;
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: 8px;
}

.footer__links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer__links a:hover {
    color: #fff;
}

.footer__social {
    display: flex;
    gap: 16px;
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition);
}

.footer__social a:hover {
    background: var(--color-primary);
    color: #fff;
}

.footer__social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
}

.footer__bottom a {
    color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a:hover {
    color: #fff;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ---------- Subpage Styles ---------- */
.page-header {
    padding-top: calc(var(--nav-height) + 60px);
    padding-bottom: 60px;
    background: var(--color-bg-alt);
    text-align: center;
}

.page-header__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.page-header__desc {
    font-size: 1.15rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

.page-content {
    padding: 80px 0;
}

.page-content .container {
    max-width: 800px;
}

.page-content h2 {
    font-size: 1.8rem;
    margin-top: 48px;
    margin-bottom: 16px;
}

.page-content h3 {
    font-size: 1.3rem;
    margin-top: 32px;
    margin-bottom: 12px;
}

.page-content p {
    margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.page-content li {
    margin-bottom: 8px;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.page-content table th,
.page-content table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.page-content table th {
    background: var(--color-bg-alt);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-content table tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.page-content .video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    margin: 32px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-content .video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.page-content .hero-image {
    width: 100%;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Info box */
.info-box {
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-primary);
    padding: 24px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
}

.info-box h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .navbar__nav {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 48px;
        gap: 8px;
    }

    .navbar__nav.open {
        display: flex;
    }

    .navbar__nav a {
        font-size: 1.1rem;
        padding: 12px 24px;
    }

    .navbar__hamburger {
        display: flex;
    }

    .hero__title {
        letter-spacing: 2px;
    }

    .race-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 24px;
    }

    .race-card__circle {
        width: 130px;
        height: 130px;
    }

    .race-card__circle svg {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 576px) {
    :root {
        --nav-height: 64px;
    }

    .navbar__logo img {
        height: 36px;
    }

    .navbar__date {
        display: none;
    }

    .section {
        padding: 64px 0;
    }

    .section__header {
        margin-bottom: 40px;
    }

    .race-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .race-card__circle {
        width: 110px;
        height: 110px;
    }

    .race-card__circle svg {
        width: 50px;
        height: 50px;
    }

    .race-card__name {
        font-size: 0.85rem;
    }

    .race-card__desc {
        font-size: 0.8rem;
    }

    .media-grid {
        grid-template-columns: 1fr;
    }

    .harmonogram-table th,
    .harmonogram-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .partners-tier__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 24px;
    }

    .partners-tier__grid--main {
        max-width: 80%;
    }

    .partner-logo {
        height: 60px;
    }

    .partner-logo--main img {
        max-height: 60px;
    }

    .partner-logo--general img {
        max-height: 80px;
    }
}

/* ---------- Registration Modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fff;
    border-radius: 16px;
    padding: 48px 40px 40px;
    max-width: 620px;
    width: 100%;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition);
}

.modal__close:hover {
    color: var(--color-dark);
}

.modal__title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 8px;
    text-align: center;
}

.modal__subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 32px;
}

.modal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.modal__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal__group-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.modal__link {
    display: block;
    padding: 12px 16px;
    background: #f5f7f5;
    border-radius: 10px;
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all var(--transition);
    border: 2px solid transparent;
}

.modal__link:hover {
    background: rgba(45, 106, 48, 0.08);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateX(4px);
}

@media (max-width: 576px) {
    .modal {
        padding: 36px 24px 28px;
    }

    .modal__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal__title {
        font-size: 1.3rem;
    }
}
