html, body {
    background: #85867d;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; 
    height: 70%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%; 
    object-fit: cover;
    opacity: 0.5;

    transform: translateZ(0);
    backface-visibility: hidden;
}

.video-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, #85867d 10%, transparent 100%);
    z-index: 2;
}

.wrap {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
    position: relative;
    z-index: 3;
    overflow-x: hidden;
    overflow-y: auto; /* Изменено с hidden на auto */
}

.header_grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: 1fr;
    width: clamp(900px, 80vw, 1200px);
    gap: 20px;
}

.logo {
    display: flex;
}

.logo img {
    width: 100%;
}

.main_title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.main_title h1 {
    font-size: clamp(26px, 3vw, 40px);
    font-family: 'Kanit';
    font-weight: 800;
    color: rgb(255, 255, 255);
    margin: 0px;
    filter: drop-shadow(0 0px 10px rgba(255, 255, 255, 0.3)); 
}

.main_title h2 {
    font-size: clamp(18px, 2vw, 30px);
    font-family: 'Kanit';
    font-weight: 600;
    color: #ffd12a;
    margin-top: -16px;
    filter: drop-shadow(0 0px 10px rgba(255, 255, 255, 0.3)); 
}

.sign_button1 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sign_button1 button {
    display: flex;
    align-items: center;  
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    width: 85%;
    border-radius: 12px;
    padding: 18px 26px;
    font-family: 'Chivo';
    font-weight: 500;
    font-size: clamp(16px, 1vw, 20px);
    cursor: pointer;
    transition: box-shadow 0.2s ease, background-color 0.2s ease; /* Ускорено */
}

.sign_button1 button img {
    width: 24px;
    height: 24px;
    padding-right: 8px;
}

.sign_button1 button:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); 
    background-color: rgb(0, 0, 0)
}

.content_grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    grid-template-rows: 1fr;
    width: clamp(700px, 70vw, 1000px);
    gap: 8px;
    position: relative;
    
    border-top-left-radius: 26px;
    border-bottom-left-radius: 26px;

    background: linear-gradient(to right, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
    background-position: 20% 0;
    background-size: 100% 100%;
    background-repeat: no-repeat;  
}

.poster {
    margin: 12px;
    width: 16vw;
    aspect-ratio: 10 / 16; 
    height: auto;    
    background-position: center;
    border-radius: 20px;
    background-repeat: no-repeat;
    background-size: cover;
    filter: drop-shadow(0 0px 10px rgba(0, 0, 0, 0.8));
    cursor: pointer;
}

.pers {
    position: relative;
    overflow: visible;
    z-index: 2;
}

.floating-person {
    position: absolute;
    width: auto;
    height: 110%;
    object-fit: contain;
    bottom: -12%;
    left: -50%;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0)); 
    transform-origin: center center;
    filter: drop-shadow(-10px -10px 15px rgba(255, 255, 255, 0.2));
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.floating-shadow {
    position: absolute;
    width: 180%;
    height: auto;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
    transform-origin: center center;
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}







.info_default {
    display: flex;
    justify-content: flex-start;
    align-items: left;
    flex-direction: column;
    z-index: 1;
    position: relative;
    font-family: 'Kanit';
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    padding-top: 20px;
    padding-bottom: 30px;
}



.info_default  h1 {
    font-family: 'Kanit';
    color: #000000;
    font-size: 36px;
    font-weight: 800;
    margin: 10px 0 0 0;
    line-height: 0.8;
}

.info_default  h2 {
    width: 75%;
    padding-top: 20px;
    font-family: 'Kanit';
    color: #ffffff;
    font-size: 22px;
    font-weight: 400;
    margin: 0px 0 0 0;
    line-height: 1;
}

.info_default  h3 {
    font-family: 'Kanit';
    color: #000000;
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0 0 0;
}












.info {
    display: flex;
    justify-content: flex-start;
    align-items: left;
    flex-direction: column;
    z-index: 1;
    position: relative;
    font-family: 'Kanit';
    color: #fff;
    font-size: 20px;
    font-weight: 400;
    padding-bottom: 30px;
}




.info h1 {
    font-family: 'Kanit';
    color: #000000;
    font-size: 36px;
    font-weight: 800;
    margin: 10px 0 0 0;
    line-height: 30px;
}

.info h2 {
    font-family: 'Kanit';
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0px 0 0 0;
}

.info h3 {
    font-family: 'Kanit';
    color: #000000;
    font-size: 20px;
    font-weight: 600;
    margin: 10px 0 0 0;
}

.info span {
    line-height: 20px;
    white-space: nowrap;
}

.info img {
    height: 20px;
    width: 20px; 
}

.rating {
    display: flex;
    flex-direction: row;
    gap: 6px;
}

.corner-decor {
    position: absolute;
    top: 20px;
    left: -34px;
    width: 40px;
    height: 40px;
}

.signup {
    position: relative;
    width: Auto;
    font-family: 'Kanit';
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    color: #fff;
    overflow: visible; 
    margin-top: 40px;
    text-align: center;
}

.signup p {
    white-space: nowrap;
    display: inline-block;
}

.first-line, .second-line {
    display: inline-block;
}

.first-line::after {
    content: " ";
}

.sign_button2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
}

.sign_button2 button {
    display: flex;
    align-items: center;  
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffca02;
    border: none;
    width: clamp(280px, 85vw, 500px);
    border-radius: 12px;
    padding: 18px 26px;
    font-family: 'Chivo';
    font-weight: 500;
    font-size: clamp(18px, 1.4vw, 24px);
    cursor: pointer;
    transition: box-shadow 0.2s ease, background-color 0.2s ease; /* Ускорено */
}

.sign_button2 button img {
    width: 24px;
    height: 24px;
    padding-right: 8px;
}

.sign_button2 button:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); 
    background-color: rgb(0, 0, 0)
}

.features-container {
    display: grid;
    grid-template-columns: 32% 26% 32%; 
    justify-content: center;
    max-width: 1400px;
    margin: -40px auto;
    padding: 10px;
    box-sizing: border-box;
    gap: 0;
    border-bottom: 1px solid #ffffff1d;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
}

.feature-icon {
    margin-right: 15px;
    flex-shrink: 0;
    width: 90px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

.feature-text {
    font-family: 'Chivo';
    font-size: 16px;
    line-height: 1;
    font-weight: 500;
    color: #fff;
}

.media {
    margin-top: 100px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    width: clamp(300px, 80vw, 900px);
}

.media1 {
    display: flex;
    border-radius: 14px;
    border: 1px solid #ffffff5b;
    padding: 10px;
    justify-content: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Ускорено */
}

.media1:hover {
    border: 1px solid #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.media1 img {
    width: 80%;
    padding-top: 3px;
}

.media2 {
    display: flex;
    border-radius: 14px;
    border: 1px solid #ffffff5b;
    padding: 14px;
    justify-content: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Ускорено */
}

.media2 img {
    width: 100%;
    height: 100%;
    padding-top: 2px;
}

.media2:hover {
    border: 1px solid #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.footer {
    width: 90%;
    display: flex;
    flex-direction: column;
    text-align: center;
    font-family: 'Chivo';
    font-size: 18px;
    color: #000000;
    font-weight: 300;
    margin-bottom: 60px;
    margin-top: 100px;
}

.footer span {
    margin-top: 10px;
}

.links {
    margin-top: 10px;
    font-family: 'Chivo';
    font-size: 18px;
    color: #0000001a;
    font-weight: 300;
    transition: border-color 0.3s; /* Ускорено */
}

.links span {
    white-space: nowrap;
}

.links a {
    color: #ffffffc5;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease; /* Добавлено */
}

.links a:hover {
    color: #ffffff;
    font-weight: 500;
}


@media (prefers-reduced-motion: reduce) {
    .floating-person, .floating-shadow {
        animation: none !important;
        transform: none !important;
        will-change: auto;
    }
    
    .sign_button1 button, .sign_button2 button, .media1, .media2, .links a {
        transition: none !important;
    }
    
    * {
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 768px) {
    .floating-person {
        animation: simple-float 4s ease-in-out infinite;
    }
    
    .floating-shadow {
        animation: simple-shadow 4s ease-in-out infinite;
    }
    
    @keyframes simple-float {
        0%, 100% { transform: translateY(0px); }
        50% { transform: translateY(-8px); }
    }
    
    @keyframes simple-shadow {
        0%, 100% { 
            transform: translateX(-50%) scale(1);
            opacity: 0.6;
        }
        50% { 
            transform: translateX(-50%) scale(0.95);
            opacity: 0.5;
        }
    }
}

@media screen and (max-width: 899px) {



    .content_grid.default-view {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .content_grid.default-view .poster {
        grid-column: 1;
        grid-row: 1;
        width: 45vw;
        margin: 10px;
        justify-self: center;
    }
    
    .content_grid.default-view .pers {
        grid-column: 2;
        grid-row: 1;
    }
    
    .content_grid.default-view .info_default {
        grid-column: 1 / 3; /* Объединяем обе нижние ячейки */
        grid-row: 2;
        padding: 15px;
        text-align: center;
    }


    .info_default  h2 {
        width: 100%;
        padding-top: 20px;
        font-family: 'Kanit';
        color: #ffffff;
        font-size: 22px;
        font-weight: 400;
        margin: 0px 0 0 0;
        line-height: 1;
    }

    .media {
        margin-top: 100px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        gap: 8px;
        width: clamp(300px, 80vw, 900px);
    }

    .signup {
        margin-top: 10px;
    }

    .header_grid {
        width: 95%;
        margin-top: 20px;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
    }
    
    .logo {
        grid-column: 1 / 3;
        grid-row: 1;
        justify-content: center;
        margin-bottom: 5px;
    }
    
    .logo img {
        width: auto;
        max-width: 220px;
    }
    
    .main_title {
        grid-column: 1;
        grid-row: 2;
        text-align: center;
    }
    
    .main_title h1 {
        font-size: 26px;
    }
    
    .main_title h2 {
        font-size: 20px;
        margin-top: -10px;
    }
    
    .sign_button1 {
        grid-column: 2;
        grid-row: 2;
        padding-left: 10px;
    }
    
    .sign_button1 button {
        width: 100%;
        padding: 18px 10px;
        font-size: 18px;
    }
    
    .sign_button1 button img {
        width: 18px;
        height: 18px;
    }

    .content_grid {
        width: 95%;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 15px;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
        border-radius: 26px;
    }
      
    .poster {
        grid-column: 1;
        grid-row: 1;
        width: 45vw;
        margin: 10px;
        justify-self: center;
    }
      
    .pers {
        grid-column: 2;
        grid-row: 1;
    }
      
    .floating-person {
        left: -70%;
        bottom: -8%;
        height: 120%;
    }
      
    .floating-shadow {
        bottom: -80px;
        width: 150%;
    }
      
    .info {
        grid-column: 1 / 3;
        grid-row: 2;
        padding: 15px;
        display: flex;
        flex-direction: column;
    }
      
    .info h1 {
        text-align: left;
        font-size: 32px;
        margin: -20px 0 5px 0;
    }
      
    .info h2 {
        text-align: left;
        margin: 0 0 15px 0;
    }

    /* Стили для мобильной версии с новой структурой */
    .info-content {
        display: flex;
        gap: 20px;
        margin-top: 10px;
    }

    .info-left {
        flex: 1;
    }

    .info-right {
        flex: 1;
    }
      
    .info h3 {
        margin: 0 0 5px 0;
        font-size: 20px;
    }
      
    .info span {
        font-size: 18px;
        display: block;
        margin-bottom: 3px;
        line-height: 1.2;
    }

    .info .rating {
        display: flex;
        gap: 6px;
        margin-top: 5px;
    }

    .corner-decor {
        top: 8px;
        left: -30px;
        width: 30px;
        height: 30px;
    }
}

@media screen and (max-width: 960px) {
    .features-container {
        display: grid;
        grid-template-columns: 1fr; 
        grid-template-rows: auto auto auto; 
        width: 80%;
    }
}

/* Для очень маленьких экранов */
@media screen and (max-width: 600px) {
    .feature-item {
        width: 100%; 
        margin-bottom: 20px;
        padding: 0px;
    }

    .corner-decor {
        top: 14px;
        left: -10px;
        width: 30px;
        height: 30px;
    }
    
    .first-line, .second-line {
        display: block;
    }

    .header_grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .logo {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: -10px;
    }
    
    .main_title {
        grid-column: 1;
        grid-row: 2;
    }
    
    .sign_button1 {
        grid-column: 1;
        grid-row: 3;
        padding-left: 0;
    }
    
    .sign_button1 button {
        width: 80%;
        margin-top: -5px;
    }
}