* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    
}

body {
    background: #000;
    font-family: 'Jost', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#snow-canvas {
    position: absolute;
    inset: 0;              /* растягиваем на весь .hero */
    width: 100%;
    height: 100%;
    pointer-events: none;  /* чтобы снег не мешал кликам по форме */
    z-index: 18;           /* выше флагов (1,5) и текста (6), ниже формы (9999) и лого (20) */
}

/* =====================================
   HERO
===================================== */

.hero {
    position: relative;
    min-height: 853px;
    height: 100vh;
    overflow: hidden;
    background: url("../img/bg.webp") left center / cover no-repeat;
}



/* Сетка под правую часть (но txt.png мы убрали отсюда!) */
.hero-inner {
    position: relative;
    width: 100%;
    z-index: 5;
    height: 100%;
}

/* =====================================
   ЛОГО
===================================== */

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

.hero-logo img {
    display: block;
}

/* =====================================
   TXT (txt.png) — независимый, абсолютный
===================================== */

.hero-title-image {
    position: absolute;
    left: 35%;
    top: 340px;
    z-index: 6; /* выше overlay, ниже формы если нужно */
}

.hero-title-image img {
    width: 479px;
    height: auto;
    display: block;
}

/* =====================================
   ФОРМА справа
===================================== */

.hero-right {
    position: absolute;
    right: 120px;
    top: 200px;     /* подгони под макет, потом можем уточнить */
    z-index:9999;
}

.signup-frame {
    width: 420px;
    min-height: 635px;
    border: 8px solid #FFFFFF;
    border-radius: 16px;
    background: transparent;
}

/* =====================================
   Нижний текст
===================================== */

.hero-bottom {
    position: absolute;
    left: 58px;
    bottom: 40px;
    z-index: 20;
}

.hero-bottom-text {
    display: flex;
    align-items: center;
    gap: 14px;

    font-weight: 700;
    font-size: 28px;
    text-transform: uppercase;
    line-height: 0.83;
    color: #fff;
}

.hero-star img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* =====================================
   ФЛАГИ
===================================== */

.flag {
    position: absolute;
    pointer-events: none;
    height: auto;
}

/* Флаг снизу */
.flag--back {
    z-index: 1;
    width: 50.3vw;
    max-width: 965px;
    right: 0vw;
    bottom: 0vh;
}

/* Флаг сверху */
.flag--front {
    z-index: 5;
    width: 33.2vw;
    max-width: 637px;
    right: 0vw;
    bottom: 0vh;
}

.flag3 {
    display: none;
    }

.hero-title-image2{
    display: none;
    }
/* =====================================
   АДАПТИВ (при необходимости)
===================================== */

@media (max-width: 1600px) {
.hero-title-image img {
    width: 360px;
}

.signup-frame {
    width: 360px;
}
.hero-right {
    right: 60px;
}
}

@media (max-width: 1400px) {
    .hero-title-image {
    left: 40%;
}
.hero-right {
    top: 140px;
}

.hero-bottom-text {
    font-size: 20px;
    }
    .hero-star img {
    width: 16px;
    height: 16px;
}

}

@media (max-width: 1320px) {
.hero-title-image img {
    width: 290px;
   
}

    .hero-title-image {
    left: 41%;
     top: 340px;
}


}


@media (max-width: 1220px) {
.hero {
    min-height: 768px;
}
.hero-right {
    right: 20px;
     top: 100px;
}

.signup-frame {
    min-height: 570px;
    }
}

@media (max-width: 1100px) {
    .hero {
    background: url("../img/bg2.webp") left center / cover no-repeat;
    min-height: 1170px;
}
.hero-logo {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.hero-bottom {
    display: flex;
    left: 50%;
    bottom: 620px;
    transform: translateX(-50%);
    text-align: center;
  
}


.hero-right {
    translate: 50%;
    right: 50%;
    top: 570px;
}

    .hero-title-image {
        left: 50%;
transform: translateX(-50%);
top: 300px;
    }

    .signup-frame {
    background: #00000038;
}

.flag--back {
    z-index: 1;
    width: 70.3vw;
    max-width: 965px;
    right: 0vw;
    bottom: 0vh;
}

.flag--front {
    z-index: 5;
    width: 46.2vw;
    max-width: 637px;
    right: 0vw;
    bottom: 0vh;
}

.form-header-hero {
    text-shadow: 1px 1px black;
}

.form-header-accent-green {
    color: #1CCB6C;
    text-shadow: 1px 1px black;
}
.form-header-accent-red {
    color: #FF4136;
    text-shadow: 1px 1px black;
}

    .hero-bottom-text {
        font-size: 16px;
        gap: 4px;
        min-width: 475px;
        
    }

    
        .hero-star img {
        width: 13px;
        height: 13px;
    }

}

@media (max-width: 768px) {
    .hero {
    background: url("../img/bg3.webp") left center / cover no-repeat;
    min-height: 979px;
}

    .hero-logo {
        top: 20px;

    }

    .hero-bottom-text {
        text-align: center;
        min-width: 325px;
    }


.hero-title-image img {
    width: 240px;
   
}

.hero-title-image2 {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 60px;
    z-index: 6; 
}
.hero-title-image2 img {
    width: 323px;
    height: auto;
    display: block;
}

.hero-title-image {
    top: 160px;
}

.hero-right {
        top: 395px;
    }

        .hero-bottom {

        bottom: 600px;

    }

.flag {
    display: none;
}


.flag3 {
    display: block;
    position: absolute;
    pointer-events: none;
    height: auto;
}


/* Флаг сверху */
.flag--front2 {
    z-index: 5;
    width: 375px;
    right: 0vw;
    bottom: 0vh;
}
.signup-frame {
        min-height: auto;
    }
}
