/* =========================================================
   =============== ROOT / GLOBAL VARIABLES =================
   ========================================================= */
:root {
    --hero-bg-start: #f5e6ff;
    --hero-bg-end: #f7d6e6;
    --brand-primary: #7c5cff;
    --brand-primary-hover: #6b4af5;
    --text-dark: #1e2230;
    --text-muted: #4d5566;
    --shadow-lg: 0 20px 50px rgba(124, 92, 255, .25);

    --lav-100: #f5e9ff;
    --lav-200: #e9c9f7;
    --lav-300: #e6c6ff;
    --lav-400: #dcb3ff;
    --ink: #2a2f45;

    --next-bg: #e9c9f7;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text-dark);
}


.wave {
    width: 100%;
    /*height: 100%;*/
    display: block;
}

.wave-1 path {
    fill: #fff;
}

.wave-2 path {
    fill: #fff;
    opacity: .9;
    transform: translateY(4px);
}

.wave-separator svg {
    width: 100%;
    height: 100%;
    display: block;
}

.py-hero {
    padding-block: clamp(3rem, 6vw, 6rem);
}

.next {
    background: var(--next-bg);
}

/* =========================================================
   ========================= HERO ==========================
   ========================================================= */
.hero {
    position: relative;
    overflow: hidden; /* финальный */
    background: linear-gradient(180deg, #e7c6f5 0%, #f8d7f3 40%, #fff 100%);
    min-height: auto;
    display: grid;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../img/bg_20.png") center center / cover no-repeat;
    opacity: .55;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% center,
    rgba(255, 255, 255, .9) 0%,
    rgba(255, 255, 255, .6) 5%,
    rgba(255, 255, 255, .2) 30%,
    transparent 75%);
    pointer-events: none;
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-logo {
    position: absolute;
    top: 20px;
    left: 40px;
    z-index: 10;
}

.hero-logo img {
    height: 60px;
    width: auto;
}

.hero .wave {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0;
    line-height: 0;
    z-index: 4;
}

.hero .wave svg {
    width: 100%;
    height: 180px;
    display: block;
}

.hero .wave svg path:last-of-type {
    fill: var(--next-bg);
}

.section-badge {
    display: inline-block;
    padding: .35rem .65rem;
    border-radius: 999px;
    font-size: .825rem;
    font-weight: 600;
    background: rgba(124, 92, 255, .12);
    color: #5e46d6;
    backdrop-filter: saturate(120%);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .3px;
    color: #7d65c9;
    margin: 0 0 .75rem;
    white-space: nowrap;
    width: 100%;
    font-size: 3rem;
    display: block;
}

.hero-lead {
    font-size: clamp(1rem, .9rem + .5vw, 1.15rem);
    color: var(--text-muted);
    max-width: 48ch;
}

.cta-btn {
    margin-top: 1.5rem;
    padding: .9rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    border: none;
    background: #e683c4 !important;
    color: #fff;
    box-shadow: var(--shadow-lg);
    transition: transform .15s ease, box-shadow .2s ease, background .15s ease;
}

.cta-btn:hover {
    background: var(--brand-primary-hover);
    transform: translateY(-1px);
}

.cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 10px 28px rgba(124, 92, 255, .2);
}

.btn.cta-btn {
    display: inline-block;
    background: linear-gradient(90deg, #e456b4, #f38edc);
    color: #fff;
    padding: 15px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(228, 86, 180, 0.4);
    transition: all .3s ease;
}

.btn.cta-btn:hover {
    background: linear-gradient(90deg, #d947a6, #f071c7);
    box-shadow: 0 6px 12px rgba(228, 86, 180, 0.5);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    min-height: 420px;
}

.gymnast {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: auto;
    display: block;
    margin-inline: auto;
    transform: translateY(6px);
    filter: drop-shadow(0 35px 35px rgba(122, 98, 201, .25));
}

.hero-visual img{
    width: auto;
    max-height: 500px;
}

.gymnast-shadow {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 33%;
    height: 10px;
    background: radial-gradient(ellipse at center,
    rgba(112, 25, 199, .25) 0%,
    rgba(99, 47, 154, .1) 40%,
    rgba(30, 28, 98, 0) 100%);
    filter: blur(6px);
    pointer-events: none;
    z-index: 1;
}

/* =========================================================
   ======================= COUNTRIES =======================
   ========================================================= */
.countries {
    background: #e9c9f7;
    position: relative;
    overflow: hidden;
    height: auto;
    top: -1px;
}

.country-card {
    position: relative;
    border-radius: 24px;
    background: linear-gradient(140deg, rgba(244, 90, 248, 0.32), rgba(250, 221, 252, 0));
    padding: 28px 24px 20px;
    min-height: 280px;
}

.country-title {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    color: #7d65c9;
    font-size: clamp(1.4rem, 1rem + 1.8vw, 2rem);
    line-height: 1.1;
    text-align: center;
}

.country-gymnast {
    left: 12px;
    bottom: -6px;
    width: clamp(140px, 38vw, 260px);
    filter: drop-shadow(0 25px 28px rgba(122, 98, 201, .25));
    pointer-events: none;
    display: block;
    margin: 0 auto;
}

.flag-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-items: center;
    align-items: center;
}

.flag-grid img {
    width: 100px;
    height: auto;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .1);
    transition: transform .25s ease, box-shadow .25s ease;
}

.flag-grid img:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .15);
}

.country-info {
    font-size: 1.05rem;
    color: #4d5566;
    line-height: 1.6;
}


/* =========================================================
   ======================= SCHEDULE ========================
   ========================================================= */
.schedule-softpink {
    height: auto;
    position: relative;
    background: #e9c9f7;
    overflow: hidden;
    top: 0;
}

.schedule-softpink .wave-top {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 90px;
    pointer-events: none;
}

.schedule-softpink .wave-top svg {
    width: 100%;
    height: 100%;
    display: block;
}

.schedule-softpink .wave-top path {
    fill: #fff;
}

.script-title {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    color: #7d65c9;
    font-size: clamp(1.4rem, 1rem + 1.8vw, 2rem);
    line-height: 1.1;
    text-align: center;
}

.schedule-tab {
    border-radius: 18px;
    padding: .75rem 1.2rem;
    font-weight: 700;
    background: linear-gradient(180deg, rgba(124, 92, 255, .18), rgba(124, 92, 255, .10));
    color: #4e49b7;
    border: 1px solid rgba(124, 92, 255, .25);
}

.schedule-tab.active {
    color: #fff;
    background: linear-gradient(180deg, #7c5cff, #6b4af5);
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(124, 92, 255, .28);
}

.day-card {
    max-width: 560px;
    border-radius: 22px;
    padding: 18px 20px 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .78));
    box-shadow: 0 18px 40px rgba(124, 92, 255, .12);
}

.day-head {
    margin-bottom: .6rem;
    color: #5b3fe7;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.day-head .day {
    font-weight: 800;
    letter-spacing: .2px;
    font-size: clamp(1.05rem, .8rem + 1vw, 1.2rem);
}

.day-head .date {
    font-weight: 700;
    font-size: clamp(1.05rem, .8rem + 1vw, 1.2rem);
}

.events {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.events li {
    display: grid;
    grid-template-columns:56px 1fr;
    align-items: center;
    column-gap: .5rem;
    min-height: 38px;
}

.events .time {
    justify-self: start;
    width: 56px;
    text-align: left;
    font-weight: 800;
    color: #6a56c9;
    letter-spacing: .2px;
}

.events .icon {
    width: 56px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #6a56c9;
}

.events .label {
    color: #2a2f45;
    font-weight: 600;
}

/* =========================================================
   ========================= JURY ==========================
   ========================================================= */
.jury-section {
    position: relative;
    z-index: 1;
    background: #fff;
    text-align: center;
}

.jury-section .wave-top path {
    fill: #e9c9f7;
}

.jury-title {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    color: #7d65c9;
    font-size: clamp(1.4rem, 1rem + 1.8vw, 2rem);
    line-height: 1.1;
    text-align: center;
}


.jury-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px 25px;
    text-align: center;
}

.jury-member {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .08);
    padding: 15px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.jury-member:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .1);
}

.jury-member h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #3b2a5a;
    margin-bottom: 5px;
}

.jury-member p {
    color: #7a66a4;
    font-size: .9rem;
    margin: 0;
}


.head-judge-country {
    color: #7a66a4;
    font-size: 1rem;
    margin-bottom: .25rem;
}



.jury-subtitle{
    font-weight: 800;
    letter-spacing: .2px;
    color: #6b4af5;
    margin-bottom: 12px;
}


.head-judge-wrap{
    display: grid;
    place-items: center;
    margin-bottom: 24px;
}


.head-judge-card{
    background:#fff;
    border-radius:14px;
    padding: 15px 15px;
    min-width: min(240px, 92%);
    box-shadow:
            0 6px 18px rgba(0,0,0,.06),
            0 18px 40px rgba(124,92,255,.14);
    border: 1px solid rgba(124,92,255,.18);
    text-align:center;
}

.head-judge-name{
    font-size:1rem;
    font-weight:800;
    color:#3b2a5a;
    margin: 0 0 4px;
}

.head-judge-country{
    color:#7a66a4;
    margin:0 0 2px;
}

.head-judge-role {
    font-weight: 600;
    font-size: 0.8rem;
    color: #3b2a5a;
    text-transform: uppercase;
    letter-spacing:.12em;
    margin:0;
}


@media (max-width: 576px){
    .head-judge-card{ padding:18px 20px; min-width: 100%; }
    .head-judge-name{ font-size:1.3rem; }
}


/* =========================================================
   ========================= STREAM ========================
   ========================================================= */
.stream-section {
    position: relative;
    background: linear-gradient(
            to bottom,
            #ffdbfb 0%,
            #ffffff 100%
    );
    overflow: hidden;
}

.stream-section .wave-top {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
    z-index: 0;
}

.stream-section .wave-top svg {
    width: 100%;
    height: 100%;
    display: block;
}

.stream-section .wave-top path {
    fill: #e9c9f7;
}

.stream-title {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    color: #7d65c9;
    font-size: clamp(1.4rem, 1rem + 1.8vw, 2rem);
    line-height: 1.1;
    text-align: center;
}

.stream-subtitle {
    color: #514b6a;
    opacity: .85;
}

.video-card {
    position: relative;
    max-width: 960px;
    border-radius: 22px;
    padding: 18px 18px 22px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .82));
    box-shadow: 0 0 60px rgba(124, 92, 255, .25);
    border: 1px solid rgba(124, 92, 255, .18);
    overflow: hidden;
}

.video-card::before {
    content: "";
    position: absolute;
    inset: auto 12% -18% 12%;
    height: 36%;
    background: radial-gradient(60% 100% at 50% 0%, rgba(124, 92, 255, .35), rgba(124, 92, 255, 0) 70%);
    filter: blur(16px);
    pointer-events: none;
    z-index: 0;
}

.video-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 4px 6px 12px;
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff3b3b;
    box-shadow: 0 0 0 4px rgba(255, 59, 59, .15);
}

.live-text {
    font-weight: 800;
    color: #ff3b3b;
    letter-spacing: .2px;
}

.yt-link {
    margin-left: auto;
    font-weight: 700;
    text-decoration: none;
    color: #5b3fe7;
}

.yt-link:hover {
    text-decoration: underline;
}

.video-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    z-index: 1;
    box-shadow: 0 18px 40px rgba(124, 92, 255, .18);
}

.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.video-thumb {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    z-index: 1;
    box-shadow: 0 18px 40px rgba(124, 92, 255, .18);
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-thumb .play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}

.video-thumb .play::before {
    content: "";
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
}

.video-thumb .play::after {
    content: "";
    position: absolute;
    border-style: solid;
    border-width: 14px 0 14px 22px;
    border-color: transparent transparent transparent #5b3fe7;
    transform: translateX(3px);
}

/* =========================================================
   ======================== SPONSORS =======================
   ========================================================= */
.sponsors-section {
    position: relative;
    background: #fff;
    overflow: hidden;
    isolation: isolate;
    height: auto;
}

.sponsors-section .wave-top {
    position: absolute;

    right: 0;
    height: 120px;
    pointer-events: none;
    z-index: 2;
}

.sponsors-section .wave-top svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sponsors-section .wave-top path {
    fill: #ffdbfb !important;
}

.sponsors-title {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    color: #7d65c9;
    font-size: clamp(1.4rem, 1rem + 1.8vw, 2rem);
    line-height: 1.1;
    text-align: center;
}

/* Бегущая строка логотипов */
.logos-marquee {
    --gap: 48px;
    --duration: 28s;
    display: flex;
    gap: var(--gap);
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
    padding-block: 8px;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: var(--gap);
    flex-shrink: 0;
    animation: marquee var(--duration) linear infinite;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 10px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .8));
    box-shadow: 0 10px 24px rgba(124, 92, 255, .12);
    border: 1px solid rgba(124, 92, 255, .14);
}

.logo img {
    height: 90px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* =========================================================
   ======================== LOCATION =======================
   ========================================================= */

.location-section {
    position: relative;
    background: #e9c9f7;
    overflow: hidden;
}

.location-section .wave-top {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    pointer-events: none;
    z-index: 0;
}

.location-section .wave-top svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Заголовок */
.loc-title {
    font-family: "Libre Baskerville", serif;
    font-weight: 700;
    color: #7d65c9;
    font-size: clamp(1.4rem, 1rem + 1.8vw, 2rem);
    line-height: 1.1;
    text-align: center;
}

.loc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}


@media (min-width: 992px) {
    .loc-grid {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }

    .loc-box,
    .map-frame {
        height: 100%;
    }
}

.loc-box {
    border-radius: 22px;
    padding: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .88));
    box-shadow: 0 2px 50px rgba(124, 92, 255, .22);
    border: 1px solid rgba(124, 92, 255, .18);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.place {
    margin: 0 0 6px;
    font-weight: 800;
    color: #2a2f45;
    font-size: 1.25rem;
}

.addr {
    margin: 0 0 8px;
    color: #5a5a72;
}

.loc-note {
    color: #7a66a4;
    font-style: italic;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.loc-list {
    margin: 0 0 10px;
    padding-left: 1rem;
    color: #2f2f45;
}

.loc-list li {
    margin: .25rem 0;
}

.loc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.route-btn {
    padding: .65rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    background: linear-gradient(180deg, #7c5cff, #6b4af5);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(124, 92, 255, .25);
    transition: all 0.3s ease;
}

.route-btn:hover {
    background: linear-gradient(180deg, #6b4af5, #5b3fe7);
    transform: translateY(-1px);
}

.ghost-btn {
    padding: .65rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid rgba(124, 92, 255, .35);
    color: #4e49b7;
    text-decoration: none;
    background: rgba(255, 255, 255, .85);
    transition: all 0.3s ease;
}

.ghost-btn:hover {
    background: #fff;
    transform: translateY(-1px);
}

.map-frame {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 2px 50px rgba(124, 92, 255, .22);
    border: 1px solid rgba(124, 92, 255, .18);
    aspect-ratio: 16 / 9;
}

.map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}




/* =========================================================
   ========================= FOOTER ========================
   ========================================================= */
.site-footer {
    position: relative;
    color: #04053a;
    background-image: url("../img/footer.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.site-footer .footer-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.site-footer .wave-top {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 1;
    pointer-events: none;
}

.site-footer .wave-top svg {
    width: 100%;
    height: 100%;
    display: block;
}

.ft-title {
    color: #7d65c9;
    font-weight: 800;
    letter-spacing: .2px;
    margin-bottom: .6rem;
}

.ft-text {
    opacity: .95;
    color: #514b6a;
}

.ft-link {
    color: #f4f0ff;
    text-decoration: none;
}

.ft-link:hover {
    text-decoration: underline;
}

.ft-list, .social-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ft-list li {
    margin: .25rem 0;
}

.social-list li {
    margin: .35rem 0;
    color: #514b6a;
}

.social-list a {
    color: #514b6a;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}

.social-list svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    opacity: .95;
}

.btn-main-site {
    display: inline-block;
    margin-top: .5rem;
    padding: .55rem .9rem;
    border-radius: 999px;
    font-weight: 700;
    background: linear-gradient(180deg, #7c5cff, #6b4af5);
    color: #fff !important;
    box-shadow: 0 10px 24px rgba(124, 92, 255, .25);
}

.ft-sep {
    border-color: rgba(255, 255, 255, .18);
    opacity: 1;
}
.ft-copy{
    color: #514b6a;
}

/* =========================================================
   ======================== MEDIA QUERIES ==================
   ========================================================= */


/* --- XL: до 1200px --- */
@media (max-width: 1200px) {
    .jury-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .flag-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px 5px !important;

    }

    .countries {
        height: auto;
    }
    .schedule-softpink {
        height: auto;
    }
    .hero-title {
        font-size: 3.5vw;
    }

}


/* --- LG: до 992px --- */
@media (max-width: 992px) {
    .hero .wave {
        bottom: 0;
    }


    .hero-visual img {
        width: auto;
        max-height: 400px !important;
        margin-bottom: 70px;
    }

    .hero-logo {
        left: 90%;
    }

    .gymnast-shadow {
        bottom: 14px;

        .flag-grid {
            grid-template-columns: repeat(3, 1fr);
        }

        .btn-container {
            text-align: center;
        }
    }

    .countries {
        height: auto;
    }

    .jury-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-title {
        font-size: 4vw;
    }



}


/* --- ≥ LG: сетка Location и карта --- */
@media (min-width: 992px) {
    .loc-grid {
        grid-template-columns: 1fr 1.2fr;
        align-items: stretch;
    }

    .map-frame {
        height: auto;
        aspect-ratio: auto;
        min-height: 360px;
    }
}


/* --- SM/MD: до 768px --- */
@media (max-width: 768px) {
    .jury-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .hero-logo {
        left: 80%;
    }

    .countries {
        height: auto;
    }

    .schedule-softpink {
        height: auto;
    }
    .btn-container {
        text-align: center;
    }
    .hero-title {
        font-size: 4.5vw;
    }

}

/* --- XS: до 576px --- */
@media (max-width: 576px) {
    .hero-lead {
        max-width: 100%;
    }
    .hero-logo {
        left: 80% !important;
    }

    .events li {
        grid-template-columns:64px 1fr;
    }

    .events .time, .events .icon {
        width: 64px;
    }

    .logo {
        height: 120px;
        padding: 8px 12px;
    }

    .logo img {
        height: 80px;
    }

    .logos-marquee {
        --gap: 28px;
        --duration: 24s;
    }

    .social-list a span {
        display: none;
    }
    .jury-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .btn-container {
        text-align: center;
    }
    .hero-title {
        font-size: 4rem;
        white-space: normal;
    }
}



@media (max-width: 486px) {
    .jury-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .flag-grid img {
        width: 80px;
    }
    .flag-grid {
        gap: 5px 5px !important;
    }

    .wave-top img, svg
        {
             vertical-align: auto !important;
        }

    .btn-container {
        text-align: center;
    }

    }

@media (max-width: 360px) {


    .jury-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .btn-container {
        text-align: center;
    }
}


#snow-canvas{
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

@media (prefers-reduced-motion: reduce) {
    :root { --snow-motion-scale: 0.4; }
}
:root { --snow-motion-scale: 1; }

/* ============================
   ГЛОБАЛЬНОЕ УСТРАНЕНИЕ ЛИНИЙ
   ============================ */

/* Все ВЕРХНИЕ волны */
.jury-section .wave-top{
    transform: translateY(-4px);
    left: 0;
    right: 0;
    top: 0 !important;
    z-index: 10;
}

.schedule-softpink .wave-top,
.stream-section .wave-top,
.sponsors-section .wave-top,
.location-section .wave-top,
.site-footer .wave-top {
    transform: translateY(-2px) !important;
    left: 0;
    right: 0;
    z-index: 99999999999910;
}


.hero .wave {
    left: 0;
    right: 0;
    z-index: 10;
}

.countries{
    top: -1px;
}
