/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #57643F;
    --secondary-green: #9CAC78;
    --background-light: #FBF6EE;
    --background-medium: #F5ECE1;
    --white: #FFFFFF;
    --blue: #128CCF;
    --red: #C63134;
    --green: #ADC534;
    --scale: 2.1;
    --base-gap: 15px;
    --base-padding: 30px;
    --base-border-radius: 10px;
    --base-content-width: 562px;
    --base-content-height: 569px;
}

body {
    font-family: 'Nunito', sans-serif;
    background: var(--background-light);
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Fixed Header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px 20px;
    display: flex;
    justify-content: center;
}

.fixed-header__wrapper {
    width: 100%;
    max-width: 2390px;
    padding: 10px 10px 10px 20px;
    background: #F5ECE1;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fixed-header__logo {
    color: #57643F;
    font-size: 18px;
    font-family: Nunito;
    font-weight: 700;
    line-height: 15.30px;
}

.fixed-header__nav {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #57643F;
    font-size: 18px;
    font-family: Nunito;
    font-weight: 400;
    line-height: 14.40px;
    text-decoration: none;
}

.fixed-header__button {
    height: 35px;
    padding: 20px;
    background: #9CAC78;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.fixed-header__button span {
    color: white;
    font-size: 12px;
    font-family: Nunito;
    font-weight: 500;
    line-height: 10.20px;
}

.button-circle {
    width: 10px;
    height: 10px;
    transform: rotate(180deg);
    background: #57643F;
    border-radius: 9999px;
}

.link {
    text-decoration: none;
    color: white;
}

@media screen and (min-width: 1920px) and (max-width: 2559px) {
    .fixed-header {
        margin-left: 0px;
    }

    .fixed-header__wrapper {
        width: 99%;
    }
}

@media screen and (min-width: 1280px) and (max-width: 1919px) {
    .fixed-header {
        margin-left: 0px;
    }

    .fixed-header__wrapper {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
    }
}



/* Hide header on mobile */
@media screen and (max-width: 768px) {
    .fixed-header {
        display: none;
    }
}


/* Мобильное меню */
.mobile-menu-button {
    display: none;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1000;
    width: 40px;
    height: 40px;
}

.mobile-menu-button img {
    width: 100%;
    height: 100%;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    visibility: hidden;
    transition: visibility 0s linear 0.3s;
}

.mobile-menu.active {
    visibility: visible;
    transition-delay: 0s;
}

.mobile-menu__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(0);
    transition: backdrop-filter 0.3s ease-in-out;
}

.mobile-menu.active .mobile-menu__overlay {
    backdrop-filter: blur(2px);
}

.mobile-menu__content {
    position: absolute;
    top: 0;
    right: 0;
    width: 285px;
    height: 100%;
    background: #9CAC78;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active .mobile-menu__content {
    transform: translateX(0);
}

.mobile-menu__nav {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-menu__link {
    color: white;
    font-size: 24px;
    font-family: Nunito;
    font-weight: 600;
    line-height: 28.80px;
    text-decoration: none;
}

.mobile-menu__link.active {
    text-decoration: underline;
}

.mobile-menu__footer {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.mobile-menu__contact-button {
    padding: 15px 30px;
    background: white;
    border: none;
    border-radius: 100px;
    color: #57643F;
    font-size: 14px;
    font-family: Nunito;
    font-weight: 500;
    line-height: 11.90px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu__social {
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
}

.mobile-menu__social-link img {
    width: 44px;
    height: 44px;
}

/* Медиа-запросы для мобильного меню */
@media screen and (min-width: 375px) and (max-width: 440px) {
    .mobile-menu-button {
        display: block;
    }
}

@media screen and (max-width: 374px), (min-width: 441px) {
    .mobile-menu-button {
        display: none;
    }
    .mobile-menu {
        display: none !important;
    }
}

/* Hero section */
.hero-container {
    width: 100%;
    height: 100vh;
    background: var(--background-light);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 0 15px;
    margin-top: 30px;
}

.hero-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: calc(var(--base-gap) * var(--scale));
    padding: calc(var(--base-gap) * var(--scale));
}

.hero-content {
    width: calc(var(--base-content-width) * var(--scale));
    height: calc(var(--base-content-height) * var(--scale));
    padding: calc(var(--base-padding) * var(--scale));
    background: var(--background-medium);
    border-radius: calc(var(--base-border-radius) * var(--scale));
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: calc(117px * var(--scale));
}

.hero-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: calc(150px * var(--scale));
    height: auto;
}

.tg-icon {
    width: calc(50px * var(--scale));
    height: calc(50px * var(--scale));
}

.hero-main {
    display: flex;
    flex-direction: column;
    gap: calc(14px * var(--scale));
}

.hero-title {
    display: flex;
    flex-direction: column;
    transform: translateY(calc(-20px * var(--scale)));
}

.hero-title-primary,
.hero-title-secondary {
    font-size: calc(45px * var(--scale));
    font-weight: 700;
    line-height: 0.9;
}

.hero-title-primary {
    color: var(--primary-green);
}

.hero-title-secondary {
    color: var(--secondary-green);
}

.hero-button {
    width: calc(260px * var(--scale));
    height: calc(54px * var(--scale));
    align-self: flex-start;
    padding: calc(20px * var(--scale)) calc(30px * var(--scale));
    background: var(--secondary-green);
    border-radius: calc(100px * var(--scale));
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: calc(10px * var(--scale));
    margin-top: calc(-20px * var(--scale));
    position: relative;
    overflow: hidden;
}

.hero-button-text {
    color: var(--white);
    font-size: calc(14px * var(--scale));
    font-weight: 500;
    line-height: 2;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.hero-button-icon {
    width: calc(12px * var(--scale));
    height: calc(12px * var(--scale));
    background: var(--primary-green);
    border-radius: 50%;
    transform: rotate(180deg);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease-out;
}

.hero-quote {
    color: var(--primary-green);
    font-size: calc(18px * var(--scale));
    font-weight: 400;
    line-height: calc(18px * var(--scale));
    transform: translateY(calc(110px * var(--scale)));
}

.hero-image {
    width: calc(var(--base-content-width) * var(--scale));
    height: calc(var(--base-content-height) * var(--scale));
    border-radius: calc(var(--base-border-radius) * var(--scale));
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    border-radius: calc(var(--base-border-radius) * var(--scale));
}

/* Медиа-запросы */

/* Full HD */
@media screen and (min-width: 1920px) and (max-width: 2400px) {
    .hero-container {
        width: 100%;
        height: auto;
        min-height: 94vh;
        display: flex;
        justify-content: center;
        padding: 0px 15px;
        margin-top: 80px;
        overflow: hidden;
    }

    .hero-wrapper {
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        margin: 0 auto;
        flex-direction: row;
        align-items: center;
        padding: 0px 15px;
        justify-content: center;
    }

    .hero-title-primary {
        font-size: 80px;
        line-height: 1.2;
    }

    .hero-title-secondary {
        font-size: 75px;
    }

    .hero-quote {
        transform: translateY(calc(130px * var(--scale)));
    }
}

/* HD */
@media screen and (min-width: 1280px) and (max-width: 1919px) {
    .hero-container {
        width: 100%;
        height: auto;
        min-height: 100vh;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0px 15px;
    }

    .hero-wrapper {
        width: 1265px;
        max-width: 1265px;
        min-width: 1255px;
        margin: 0 auto;
        flex-direction: row;
        align-items: center;
        padding: 0px 15px;
        justify-content: center;
    }

    .hero-content {
        width: 620px;
        height: auto;
        padding: 30px;
        gap: 40px;
        transform: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hero-title-primary,
    .hero-title-secondary {
        font-size: 42px;
        line-height: 1.2;
    }

    .hero-title {
        transform: none;
        margin-bottom: 20px;
    }

    .hero-button {
        transform: none;
        width: 280px;
        height: 54px;
        padding: 15px 30px;
        margin-top: 0;
    }

    .hero-quote {
        transform: none;
        font-size: 16px;
        line-height: 1.4;
        margin-top: 20px;
    }

    .hero-image {
        width: 620px;
        height: 620px;
    }

    .hero-button-text {
        font-size: 14px;
        font-family: Nunito;
    }

    .hero-button-icon {
        width: 12px;
        height: 12px;
    }

    .hero-main {
        gap: calc(34px * var(--scale));
    }

    .logo {
        width: 150px;
        height: auto;
    }

    .tg-icon {
        width: 50px;
        height: 50px;
    }
}

/* Скрываем на десктопе */
.hero-stats {
    display: none;
}


/* Мобильные устройства (iPhone 16 Pro Max - 440px) */
@media screen and (min-width: 375px) and (max-width: 440px){
    .hero-container {
        width: 100%;
        height: auto;
        min-height: 94vh;
        padding: 0px 15px;
        overflow: hidden;
    }

    .hero-wrapper {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }

    .hero-content {
        width: 100%;
        height: auto;
        padding: 0;
        gap: 25px;
        background: none;
    }

    .hero-header {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        display: none;
    }

    .logo {
        width: 120px;
        height: auto;
    }

    .tg-icon {
        width: 40px;
        height: 40px;
    }

    .hero-main {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: 
            "title"
            "quote"
            "button";
        align-items: center;
        gap: 15px;
        text-align: center;
    }

    .hero-title {
        grid-area: title;
        transform: none;
        margin-bottom: 0;
    }

    .hero-title-primary,
    .hero-title-secondary {
        font-size: 32px;
        text-align: center;
    }

    .hero-image {
        width: 100%;
        height: 320px;
        margin: 0;
        order: -1;
    }

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }

    .hero-button {
        grid-area: button;
        width: 100%;
        height: auto;
        padding: 15px 20px;
        margin: 0;
        border-radius: 100px;
    }

    .hero-button-text {
        font-size: 14px;
        line-height: 1.2;
    }

    .hero-button-icon {
        width: 12px;
        height: 12px;
    }

    .hero-quote {
        grid-area: quote;
        transform: none;
        font-size: 14px;
        line-height: 1.4;
        text-align: center;
        font-weight: 500;
        padding: 0;
        margin-top: 10px;
        color: var(--primary-green);
        opacity: 0.8;
    }

    .hero-stats {
        display: flex !important;
        width: 100%;
        gap: 10px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .stat-card {
        flex: 1;
        padding: 25px;
        background: var(--background-medium);
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 15px;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        padding: 9px 6px;
        position: relative;
        background: var(--secondary-green);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .stat-number {
        color: var(--white);
        font-size: 20px;
        font-weight: 700;
    }

    .stat-text {
        width: 128px;
        color: var(--primary-green);
        font-size: 14px;
        font-weight: 500;
        line-height: 14.4px;
        text-align: left;
    }
}

/* Science Path Section */

.science-path {
    width: 100%;
    min-height: 100vh;
    padding: 100px 0px;
    background: var(--background-light);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.science-path__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(50px * var(--scale)); 
    transform-origin: center center;
}

.science-path__header {
    width: 100%;
    max-width: calc(1140px * var(--scale));
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: calc(150px * var(--scale));
}

.science-path__title {
    color: var(--primary-green);
    font-size: calc(40px * var(--scale));
    font-weight: 700;
    line-height: calc(44px * var(--scale));
}

.science-path__badge {  
    padding: calc(20px * var(--scale)) calc(30px * var(--scale));
    background: var(--secondary-green);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.science-path__badge span {
    color: var(--white);
    font-size: calc(14px * var(--scale));
    font-weight: 500;
    line-height: calc(11.9px * var(--scale));
}

.science-path__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(15px * var(--scale));
    margin-top: calc(-25px * var(--scale));
}

.science-path__grid {
    width: 100%;
    max-width: calc(1140px * var(--scale));
    display: flex;
    flex-wrap: wrap;
    gap: calc(15px * var(--scale));
}

.experience-card {
    /* Расчет: 
    - Общая ширина контейнера: 1140px (max-width у science-path__grid)
    - Отступы между карточками: 15px * 2 = 30px (два отступа между тремя карточками)
    - Количество карточек в ряду: 3
    */
    width: calc((1140px - 30px) * var(--scale) / 3);
    height: calc(247px * var(--scale));
    padding: calc(30px * var(--scale));
    background: var(--background-medium);
    border-radius: 10px;
    outline: 1px solid #FFF4E5;
    display: flex;
    flex-direction: column;
    gap: calc(30px * var(--scale));
}

.experience-card__header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.experience-card__date {
    padding: calc(10px * var(--scale)) calc(20px * var(--scale));
    background: #FFFBF3;
    border-radius: 10px;
    color: var(--primary-green);
    font-size: calc(14px * var(--scale));
    font-weight: 400;
    line-height: calc(16.8px * var(--scale));
}

.experience-card__icon {
    width: calc(41px * var(--scale));
    height: calc(40px * var(--scale));
}

.experience-card__syngenta {
    width: calc(82px * var(--scale));
    height: calc(41px * var(--scale));
}


.experience-card__icon-placeholder {
    width: calc(40px * var(--scale));
    height: calc(40px * var(--scale));
    background: var(--primary-green);
}

.experience-card__content {
    display: flex;
    flex-direction: column;
    gap: calc(12px * var(--scale));
}

.experience-card__title {
    color: var(--primary-green);
    font-size: calc(18px * var(--scale));
    font-weight: 700;
    line-height: calc(19.8px * var(--scale));
}

.experience-card__text {
    color: var(--primary-green);
    font-size: calc(14px * var(--scale));
    font-weight: 500;
    line-height: calc(16.8px * var(--scale));
}

.science-path__button {
    height: calc(54px * var(--scale));
    padding: calc(20px * var(--scale)) calc(30px * var(--scale));
    background: var(--secondary-green);
    border-radius: 100px;
    border: none;
    display: flex;
    align-items: center;
    gap: calc(15px * var(--scale));
    cursor: pointer;
}

.science-path__button span {
    color: var(--white);
    font-size: calc(14px * var(--scale));
    font-weight: 500;
    line-height: calc(11.9px * var(--scale));
}

.science-path__button-icon {
    width: calc(14px * var(--scale));
    height: calc(14px * var(--scale));
    background: var(--primary-green);
    border-radius: 50%;
    transform: rotate(180deg);
}

/* Медиа-запросы */

/* Full HD */
@media screen and (min-width: 1920px) and (max-width: 2559px) {
    .science-path {
        min-width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        margin-top: 100px;
        padding: 0 15px;
    }

    .science-path__wrapper {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
        transform: none;
    }

    .science-path__content {
        margin: 0 auto;
        display: flex;
        transform: none;
        width: 100%;
    }

    .science-path__grid {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 30px;
    }

    .experience-card {
        width: 100%;
        height: 380px;
        min-height: 200px;
        display: flex;
        flex-direction: column;
        padding: 30px;
    }

    .experience-card__header {
        width: 100%;
        gap: 20px;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 30px;
    }

    .experience-card__content {
        width: 100%;
        gap: 15px;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        justify-content: flex-start;
    }

    .experience-card__title {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .experience-card__text {
        font-size: 16px;
        line-height: 1.5;
    }
}

/* HD */
@media screen and (min-width: 1280px) and (max-width: 1919px) {
    .science-path {
        min-width: 100%;
        margin-top: 100px;
        padding: 0 30px;
        transform: none;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .science-path__wrapper {
        max-width: 1280px;
        min-width: 1225px;
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        transform: none;
        gap: 100px;
    }

    .science-path__content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: none;
        gap: 30px;
    }

    .science-path__header {
        display: flex;
        align-items: center;
    }

    .science-path__badge {
        height: 64px;
        width: 300px;
        padding: 15px 25px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .science-path__badge span {
        font-size: 14px;
        line-height: 11.9px;
    }

    .science-path__grid {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, auto);
        gap: 20px;
    }

    .experience-card {
        width: 100%;
        height: 260px;
        padding: 20px;
        gap: 15px;
    }

    .experience-card__header {
        margin-bottom: 15px;
    }

    .experience-card__date {
        padding: 8px 15px;
        font-size: 13px;
    }

    .experience-card__icon,
    .experience-card__syngenta {
        width: 35px;
        height: 35px;
    }

    .experience-card__title {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .experience-card__text {
        font-size: 14px;
        line-height: 1.4;
    }

    .science-path__title {
        font-size: 48px;
    }
    
    .science-path__button {
        transform: scale(0.8);
    }
}


/* Мобильные устройства (iPhone 16 Pro Max - 430px) */
@media screen and (min-width: 375px) and (max-width: 440px) {
    .science-path {
        padding: 0px 15px;
        min-height: auto;
        width: 100%;
        overflow: visible;
    }

    .science-path__wrapper {
        width: 100%;
        padding: 0px;
        transform: none;
        margin-top: 25px;
        gap: 30px;
    }

    .science-path__header {
        width: 100%;
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 10px;
        margin-top: 50px;
    }

    .science-path__badge {
        height: 44px;
        width: 200px;
        padding: 20px 20px; 
    }

    .science-path__title {
        font-size: 36px;
        line-height: 36px;
    }

    .science-path__badge span {
        font-size: 12px;
        line-height: 10.2px;
    }

    .science-path__content {
        width: 100%;
        gap: 15px;
        overflow: visible;
        margin-top: 3px;
    }

    .science-path__grid {
        width: 100%;
        flex-direction: column;
        gap: 15px;
        overflow: visible;
    }

    .experience-card {
        width: 100%;
        height: auto;
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }

    .experience-card__header {
        width: 100%;
    }

    .experience-card__date {
        padding: 10px 20px;
        font-size: 14px;
        line-height: 16.8px;
    }

    .experience-card__icon {
        width: 41px;
        height: 40px;
    }

    .experience-card__syngenta {
        width: 133px;
        height: 40px;
    }

    .experience-card__content {
        width: 100%;
    }

    .experience-card__title {
        width: 305px;
        font-size: 18px;
        line-height: 19.8px;
    }

    .experience-card__text {
        width: 305px;
        font-size: 14px;
        line-height: 16.8px;
    }

    .science-path__button {
        width: 345px;
        height: 54px;
        padding: 15px 45px;
        margin-top: 15px;
    }

    .science-path__button span {
        font-size: 14px;
        line-height: 11.9px;
    }

    .science-path__button-icon {
        width: 14px;
        height: 14px;
    }
}

/* Modal styles for certificate */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    overflow: visible;
    margin-top: 25px;
    display: flex;
    align-items: center;
}

.certificate-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.certificate-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.certificate-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: all;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.slider-arrow:hover {
    opacity: 0.8;
}

.slider-arrow img {
    width: 100%;
    height: 100%;
}

.slider-arrow-left {
    left: -60px;
}

.slider-arrow-right {
    right: -60px;
}

.modal-close {
    position: absolute;
    left: 50%;
    top: calc(50% - 300px);
    transform: translate(-50%, -50%);
    width: 51px;
    height: 51px;
    cursor: pointer;
    z-index: 1001;
}

.modal-close img {
    width: 100%;
    height: 100%;
}

.certificate-container {
    width: 100%;
    height: 100%;
    padding: 30px;
    background: #F5ECE1;
    border-radius: 10px;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    display: inline-flex;
}

.certificate-container img {
    flex: 1 1 0;
    height: 384.50px;
    transform-origin: top center;
}

.certificate-info {
    flex: 1 1 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
    display: inline-flex;
}

.certificate-info__content {
    align-self: stretch;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 10px;
    display: flex;
}

.certificate-title {
    align-self: stretch;
    color: #57643F;
    font-size: 29px;
    font-family: Nunito;
    font-weight: 600;
    line-height: 29px;
    word-wrap: break-word;
}

.certificate-subtitle {
    align-self: stretch;
    color: #57643F;
    font-size: 18px;
    font-family: Nunito;
    font-weight: 400;
    line-height: 18px;
    word-wrap: break-word;
}

@media screen and (max-width: 768px) {
    .certificate-container {
        flex-direction: column;
    }

    .modal-close {
        scale: 0.8;
        position: absolute;
        margin-top: 70px;
    }

    .modal-content {
        scale: 0.8;
    }
    
    .certificate-container img {
        width: 100%;
        height: auto;
        transform: none;
    }
    
    .certificate-title {
        font-size: 24px;
        line-height: 24px;
    }
    
    .certificate-subtitle {
        font-size: 16px;
        line-height: 16px;
    }
}

/* Consultation Section */
.consultation-section {
    width: 100%;
    height: 98vh;
    min-height: 100vh;
    margin-top: 300px;
    background: var(--background-light);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.consultation-image-mobile {
    display: none;
}

.consultation-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    transform: scale(2.1);
    transform-origin: center center;
}

.consultation-tabs {
    width: 100%;
    height: 54px;
    padding: 5px;
    background: var(--secondary-green);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.consultation-tab {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    background: var(--secondary-green);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    line-height: 11.9px;
    cursor: pointer;
}

.consultation-tab.active {
    background: var(--primary-green);
}

.consultation-content {
    width: 1139px;
    height: 500px;
    padding: 5px;
    background: var(--background-medium);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
}

.consultation-info {
    width: 520px;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 30px;
}

.consultation-info__header {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.consultation-info__title {
    color: var(--primary-green);
    font-size: 33px;
    font-weight: 600;
    line-height: 33px;
}

.consultation-info__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.feature-item__icons {
    display: flex;
    gap: 2px;
}

.feature-icon-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.feature-item__text {
    flex: 1;
    color: var(--primary-green);
    font-size: 18px;
    font-weight: 400;
    line-height: 18px;
}

.consultation-info__footer {
    display: flex;
    align-items: center;
    gap: 51px;
    margin-top: auto;
    padding-bottom: 7px;
}

.price-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-amount {
    color: var(--primary-green);
    font-size: 45px;
    font-weight: 700;
    line-height: 38.25px;
    white-space: nowrap;
}

.consultation-button {
    width: 305px;
    height: 54px;
    padding: 0 20px 0 30px;
    margin-right: -20px;
    background: var(--secondary-green);
    border: none;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.consultation-button span {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    line-height: 11.9px;
    white-space: nowrap; 
    position: relative;
    z-index: 2;
}

.consultation-button .consultation-button-icon {
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    background: var(--primary-green);
    border-radius: 50%;
    transform: rotate(180deg);
    position: relative;
    z-index: 2;
}

.consultation-image {
    width: 620px;
    height: 423px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 30px;
}

.consultation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 10px;
}

.consultation-info.hidden {
    display: none;
}

/* Медиа-запросы */

/* Full HD */
@media screen and (min-width: 1920px) and (max-width: 2559px) {
    .consultation-section {
        min-width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 450px;
        padding: 0 15px;
    }

    .consultation-wrapper {
        max-width: 1845px;
        height: 100%;
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        transform: none;
        gap: 30px;
    }

    .consultation-tabs {
        width: 100%;
        height: 64px;
    }

    .consultation-tab {
        font-size: 16px;
        padding: 20px 35px;
    }

    .consultation-content {
        width: 100%;
        height: 100%;
        padding: 15px;
        gap: 40px;
    }

    .consultation-info {
        width: 50%;
        padding: 40px;
    }

    .consultation-info__header {
        gap: 40px;
    }

    .consultation-info__title {
        font-size: 64px;
        line-height: 1.2;
    }

    .consultation-info__features {
        gap: 20px;
    }

    .feature-item {
        gap: 15px;
    }

    .feature-icon-circle {
        width: 55px;
        height: 55px;
    }

    .feature-item__text {
        font-size: 32px;
        line-height: 1;
    }

    .consultation-info__footer {
        gap: 40px;
        padding-bottom: 15px;
    }

    .price-amount {
        font-size: 85px;
    }


    .consultation-button {
        width: 460px;
        height: 94px;
        padding: 0 45px;
        align-items: center;
    }

    .consultation-button span {
        font-size: 24px;
    }

    .consultation-button .consultation-button-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
    }

    .consultation-image {
        width: 50%;
        height: 100%;
        margin-top: 0;
    }
}

/* HD */
@media screen and (min-width: 1280px) and (max-width: 1919px) {
    .consultation-section {
        width: 100%;
        height: auto;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0px 15px;
        margin-top: 80px;
        overflow: hidden;
    }

    .consultation-wrapper {
        max-width: 1280px;
        min-width: 1255px;
        width: 100%;
        transform: none;
        margin-top: 350px;
        gap: 30px;
    }

    .consultation-content {
        width: 100%;
        height: 100%;
        padding: 30px;
        gap: 40px;
        transform: none;
        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .consultation-info {
        height: 680px;
        padding: 30px;
        background: #F5ECE1;
        border-radius: 10px; 
    }

    .consultation-info__header {
        gap: 20px;
    }

    .consultation-info__title {
        font-size: 42px;
        line-height: 1.2;
    }

    .consultation-info__features {
        gap: 15px;
    }

    .feature-item {
        gap: 10px;
    }

    .feature-item__text {
        font-size: 18px;
        line-height: 1.2;
    }

    .feature-icon-circle {
        width: 40px;
        height: 40px;
    }

    .certificate-info__footer {
        gap: 20px;
    }

    .price-amount {
        font-size: 60px;
    }

    .consultation-title-primary,
    .consultation-title-secondary {
        font-size: 42px;
        line-height: 1.2;
    }

    .consultation-title {
        transform: none;
        margin-bottom: 20px;
    }

    .consultation-button {
        transform: none;
        width: 280px;
        height: 54px;
        padding: 15px 30px;
        margin-top: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .consultation-button span {
        font-size: 12px;
    }

    .consultation-quote {
        transform: none;
        font-size: 16px;
        line-height: 1.4;
        margin-top: 20px;
    }

    .consultation-image {
        width: 620px;
        height: 620px;
    }

    .consultation-button-text {
        font-size: 14px;
        font-family: Nunito;
    }

    .consultation-button-icon {
        width: 12px;
        height: 12px;
    }

    .consultation-main {
        gap: calc(34px * var(--scale));
    }

    .logo {
        width: 150px;
        height: auto;
    }

    .tg-icon {
        width: 50px;
        height: 50px;
    }
}



/* Мобильные устройства (iPhone 16 Pro Max - 430px) */
@media screen and (min-width: 375px) and (max-width: 440px){
    .consultation-section {
        padding: 0px 15px;
        min-height: auto;
        width: 100%;
        overflow: visible;
        margin-top: 0px;
    }

    .consultation-wrapper {
        width: 100%;
        margin: 14px 0;
        transform: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .consultation-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .consultation-image-mobile {
        display: block;
        width: 108.11px;
        height: 108.11px;
        min-height: 108.11px;
        border-radius: 10px;
        overflow: hidden;
    }

    .consultation-image-mobile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .consultation-image {
        display: none;
    }

    .consultation-tabs {
        width: 100%;
        display: flex;
        gap: 10px;
        margin-bottom: 15px;
        padding: 0 30px;
        background: none;
        margin-left: 11px;
    }

    .consultation-tab {
        height: 44px;
        border-radius: 10px;
        justify-content: center;
        align-items: center;
        border: none;
        flex: 1;
        cursor: pointer;
        background: var(--secondary-green);
    }

    .consultation-tab.active {
        background: var(--primary-green);
    }

    .consultation-tab span {
        color: white;
        font-size: 12px;
        font-weight: 500;
        line-height: 10.2px;
        white-space: nowrap;
    }

    .consultation-info {
        width: 100%;
        padding: 25px 20px;
        background: #F5ECE1;
        border-radius: 10px;
        position: relative;
        z-index: 0;
    }

    .consultation-info__header {
        margin-bottom: 20px;
    }

    .consultation-info__title {
        color: var(--primary-green);
        font-size: 24px;
        font-weight: 600;
        line-height: 24px;
        margin-bottom: 15px;
    }

    .consultation-info__features {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .feature-item {
        display: inline-flex;
        align-items: flex-start;
        gap: 7px;
    }

    .feature-item__icons {
        display: flex;
        gap: 7px;
    }

    .feature-icon-circle {
        width: 28px;
        height: 28px;
    }

    .feature-item__text {
        width: 269.72px;
        color: var(--primary-green);
        font-size: 14px;
        font-weight: 400;
        line-height: 14px;
    }

    .consultation-info__footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .price-amount {
        color: var(--primary-green);
        font-size: 45px;
        font-weight: 700;
        line-height: 38.25px;
        text-align: center;
    }

    .consultation-button {
        width: 305px;
        display: flex;
        justify-content: center;
        background: var(--secondary-green);
        border-radius: 100px;
    }

    .consultation-button-icon {
        margin-left: 15px;
    }

    .consultation-button span {
        color: white;
        font-size: 14px;
        font-weight: 500;
        line-height: 11.9px;
    }
}

/* Telegram Channels Section */
.telegram-channels {
    width: 100%;
    min-height: 100vh;
    padding: 100px 50px;
    background: var(--background-light);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.telegram-channels__wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    transform: scale(2.1);
    transform-origin: center center;
    margin-top: 750px;
}

.telegram-channels__header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.telegram-channels__title {
    color: var(--primary-green);
    font-size: 40px;
    font-weight: 700;
    line-height: 44px;
}

.telegram-channels__badge {
    padding: 20px 30px;
    background: var(--secondary-green);
    border-radius: 10px;
}

.telegram-channels__badge span {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    line-height: 11.9px;
}

.telegram-channels__content {
    display: flex;
    gap: 15px;
    width: 1139px;
}

.telegram-channel {
    width: 562px;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.telegram-channel--free {
    background: var(--background-medium);
    outline: 1px solid #FFF4E5;
}

.telegram-channel--paid {
    background: var(--primary-green);
    outline: 1px solid var(--secondary-green);
    position: relative;
    overflow: hidden;
}


.telegram-channel--free .telegram-channel__price {
    color: white;
    font-size: 45px;
    font-family: Nunito;
    font-weight: 700;
    line-height: 38.25px;
    word-wrap: break-word;
    margin-top: -20px; 
    align-self: center;
    position: relative;
    z-index: 1;
    visibility: hidden;
}

.telegram-channel--paid .telegram-channel__price {
    color: white;
    font-size: 45px;
    font-family: Nunito;
    font-weight: 700;
    line-height: 38.25px;
    word-wrap: break-word;
    margin-top: -20px; 
    align-self: center;
    position: relative;
    z-index: 1;
}

.telegram-channel__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.telegram-channel__background img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: bottom right;
    transform: scale(1);
}

.telegram-channel--paid .telegram-channel__header,
.telegram-channel--paid .telegram-channel__features,
.telegram-channel--paid .telegram-channel__button {
    position: relative;
    z-index: 1;
}

.telegram-channel__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
    margin-bottom: -10px;
}

.telegram-channel__title {
    width: 345px;
    font-size: 33px;
    font-weight: 600;
    line-height: 33px;
}

.telegram-channel--free .telegram-channel__title {
    color: var(--primary-green);
}

.telegram-channel--paid .telegram-channel__title {
    color: var(--white);
    white-space: nowrap;
}

.telegram-channel__icon {
    width: 60px;
    height: 60px;
}

.telegram-channel__features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 320px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 7px;
}

.feature__icons {
    display: flex;
    gap: 2px;
}

.feature__icon-circle {
    width: 20px;
    height: 20px;
    transform: rotate(-45deg);
    border-radius: 50%;
}

.telegram-channel--free .feature__icon-circle {
    outline: 2px solid var(--primary-green);
}

.telegram-channel--paid .feature__icon-circle {
    outline: 2px solid var(--white);
}

.feature__icon-check {
    width: 18.79px;
    height: 13.13px;
    border-radius: 1px;
}

.telegram-channel--free .feature__icon-check {
    outline: 2.5px solid var(--primary-green);
}

.telegram-channel--paid .feature__icon-check {
    outline: 2.5px solid var(--white);
}

.feature__content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 19.8px;
}

.feature__text {
    font-size: 18px;
    font-weight: 400;
    line-height: 18px;
}

.telegram-channel--free .feature__title,
.telegram-channel--free .feature__text {
    color: var(--primary-green);
}

.telegram-channel--paid .feature__title,
.telegram-channel--paid .feature__text {
    color: var(--white);
}

.telegram-channel--paid .telegram-channel__button span {
    color: var(--background-light);
}

.telegram-channel--paid .telegram-channel__button {
    background: var(--secondary-green);
}

.telegram-channel--paid .telegram-channel__button .button-icon {
    background: var(--background-light);
}

.telegram-channel__button {
    height: 54px;
    padding: 20px 30px;
    background: var(--secondary-green);
    border: none;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.telegram-channel__button span {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    line-height: 11.9px;
    transition: color 0.3s ease;
    font-family: Nunito;
}

.telegram-channel--paid .telegram-channel__button:hover span {
    color: var(--secondary-green);
}

.telegram-channel__button .button-icon {
    width: 14px;
    height: 14px;
    background: var(--primary-green);
    border-radius: 50%;
    transform: rotate(180deg);
}

/* Медиа запросы */

/* Full HD */
@media screen and (min-width: 1920px) and (max-width: 2559px) {
    .telegram-channels {
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 450px;
        padding: 0 15px;
    }

    .telegram-channels__wrapper {
        transform: none;
        max-width: 1875px;
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
    }

    .telegram-channels__content {
        width: 100%;
        display: flex;
        gap: 30px;
        align-items: center;
        justify-content: center;
        transform: none;
    }

    .telegram-channel {
        width: 962px;
        height: 962px;
        padding: 30px;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        position: relative;
        overflow: hidden;
    }

    .telegram-channel__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 80px;
        margin-bottom: 40px;
    }

    .telegram-channel__title {
        font-size: 48px;
        line-height: 1.2;
        width: 600px;
        display: flex;
    }

    .telegram-channel__icon {
        width: 90px;
        height: 90px;
    }

    .telegram-channels__title {
        font-size: 64px;
        line-height: 1.2;
        margin-bottom: 30px;
    }

    .telegram-channels__badge {
        padding: 20px 40px;
        border-radius: 12px;
    }

    .telegram-channels__badge span {
        font-size: 24px;
    }

    .telegram-channel__features {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 25px;
        overflow-y: auto;
        margin: 20px 0;
        padding-right: 10px;
    }

    .telegram-channel__features::-webkit-scrollbar {
        width: 5px;
    }

    .telegram-channel__features::-webkit-scrollbar-track {
        background: transparent;
    }

    .telegram-channel__features::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
    }

    .feature-icon-circle {
        width: 55px;
        height: 55px;
    }

    .feature__content {
        gap: 8px;
    }

    .feature__title {
        font-size: 32px;
        line-height: 1.1;
        margin-bottom: 8px;
    }

    .feature__text {
        font-size: 28px;
        line-height: 1.2;
    }

    .telegram-channel__price {
        margin: 15px 0;
    }

    .telegram-channel__button {
        width: 100%;
        height: 74px;
        min-height: 74px;
        margin-top: auto;
        position: relative;
        bottom: 0;
    }

    .telegram-channel__button span {
        line-height: 1;
    }

    .button-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
        min-height: 24px;
    }
}

/* HD */
@media screen and (min-width: 1280px) and (max-width: 1919px) {
    .telegram-channels {
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 450px;
        padding: 0 15px;
    }

    .telegram-channels__content {
        width: 100%;
        display: flex;
        gap: 45px;
        align-items: center;
        justify-content: center;
        transform: none;
    }

    .telegram-channels__wrapper {
        max-width: 1280px;
        min-width: 1225px;
        width: 99%;
        margin: 0 auto;
        transform: none;
    }

    .telegram-channel {
        width: 100%;
        height: 100%;
        padding: 30px;
        border-radius: 10px;
        display: flex;
    }
}



/* iPhone 16 Pro Max */
@media screen and (min-width: 375px) and (max-width: 440px) {
    /* Telegram Channels Section */
    .telegram-channels {
        padding: 0px 15px;
        min-height: auto;
        width: 100%;
        overflow: visible;
    }

    .telegram-channels__wrapper {
        width: 100%;
        margin: 15px 0;
        transform: none;
    }

    .telegram-channels__header {
        margin-bottom: 15px;
        gap: 15px;
        white-space: nowrap;
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .telegram-channels__title {
        font-size: 32px;
        line-height: 27.20px;
        font-weight: 700;
    }

    .telegram-channel__icon {
        display: none;
    }

    .telegram-channels__badge {
        height: 44px;
        width: auto;
        padding: 10px 20px;
        border-radius: 10px;
    }

    .telegram-channels__content {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    .telegram-channel__features {
        gap: 15px;
        height: auto;
    }

    .telegram-channel {
        width: 100%;
    }

    .telegram-channel--free {
        margin-bottom: 15px;
    }

    .telegram-channel--paid {
        margin-top: 0;
    }
        
    .telegram-channel--free .telegram-channel__price {
        font-size: 32px;
        line-height: 27.2px;
        margin-top: -10px;
        visibility: hidden;
    }

    .telegram-channel--paid .telegram-channel__price {
        font-size: 32px;
        line-height: 27.2px;
        margin-top: -10px;
    }

}

/* Releases Section */
.releases {
    width: 100%;
    min-height: 100vh;
    padding: 100px 15px;
    margin-top: 450px;
    background: var(--background-light);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

/* Скрываем кнопку expand на десктопе */
.releases__expand-button {
    display: none;
}

.releases__wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    transform: scale(2.1);
    transform-origin: center center;
    margin-top: 750px;
}

.releases__header {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.releases__title {
    color: var(--primary-green);
    font-size: 40px;
    font-weight: 700;
    line-height: 44px;
    text-align: center;
}

.releases__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 1139px;
}

.releases__grid {
    width: 1139px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.release-card {
    width: 274px;
    padding: 15px;
    background: var(--background-medium);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.release-card__title {
    color: var(--primary-green);
    font-size: 18px;
    font-weight: 700;
    line-height: 19.8px;
    word-wrap: break-word;
    height: 40px;
    display: flex;
    align-items: flex-start;
}

.release-card__video {
    width: 100%;
    height: 244px;
    border-radius: 10px;
    overflow: hidden;
}

.video-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
    cursor: pointer;
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: #D9D9D9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.video-placeholder::before {
    content: '▶';
    font-size: 48px;
    color: var(--primary-green);
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 3;
    position: relative;
}

.video-placeholder:hover {
    background: #C8C8C8;
}

.video-placeholder:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

/* Стили для превью видео */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
    z-index: 1;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: var(--primary-green);
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-placeholder:hover .video-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.video-placeholder:hover .video-play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 3;
}

.releases__button {
    height: 54px;
    padding: 20px 30px;
    background: var(--secondary-green);
    border: none;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.releases__button span {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    line-height: 11.9px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.releases__button .button-icon {
    width: 14px;
    height: 14px;
    background: var(--primary-green);
    border-radius: 50%;
    transform: rotate(180deg);
    position: relative;
    z-index: 2;
}

/* Модальное окно для видео */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.video-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.video-modal__content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 80%;
    max-height: 800px;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.video-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-modal__close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.video-modal__player {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    font-size: 18px;
    color: var(--primary-green);
}

.embed-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
}

.embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-green);
    padding: 20px;
}

.video-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    text-align: center;
}

.video-fallback p {
    margin: 0;
    font-size: 16px;
    color: var(--text-dark);
}

.video-fallback-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--primary-green);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.video-fallback-link:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
}

/* Scientific Works Section */
.scientific-works {
    width: 100%;
    min-height: 100vh;
    padding: 100px 30px;
    background: var(--background-light);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.scientific-works__wrapper {
    display: flex;
    flex-direction: column;
    gap: 70px;
    transform: scale(2.1);
    transform-origin: center center;
    margin-top: 1050px;
}

.scientific-works__header {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.scientific-works__title {
    color: var(--primary-green);
    font-size: 40px;
    font-weight: 700;
    line-height: 44px;
}

.scientific-works__steps {
    display: flex;
    gap: 15px;
}

.step-card {
    padding: 30px;
    border-radius: 10px;
    outline: 2px var(--primary-green) solid;
    outline-offset: -2px;
    width: 370px;
}

.step-card--dark {
    position: relative;
    overflow: hidden;
    background: var(--primary-green);
}


.step-card__content {
    width: 310px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.step-card__header {
    height: 60px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.step-card__title {
    flex: 1;
    color: var(--primary-green);
    font-size: 18px;
    font-weight: 700;
    line-height: 19.8px;
}

.step-card--dark .step-card__title {
    color: var(--white);
}

.step-card__number-wrapper {
    display: flex;
    align-items: center;
}

.step-card__circle {
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    border-radius: 50%;
}

.step-card--dark .step-card__circle {
    background: var(--white);
}

.step-card__number {
    width: 50px;
    height: 50px;
    color: var(--white);
    font-size: 30px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: -50px;
}

.step-card--dark .step-card__number {
    color: var(--primary-green);
}

.step-card__text {
    color: var(--primary-green);
    font-size: 14px;
    font-weight: 400;
    line-height: 16.8px;
}

.step-card--dark .step-card__text {
    color: var(--white);
}

.scientific-works__form {
    width: 1140px;
    height: 450px;
    padding: 45px;
    background: var(--secondary-green);
    border-radius: 10px;
    display: flex;
    gap: 30px;
    position: relative;
    overflow: visible;
}

.step-card--dark .scientific-works__background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.step-card--dark .scientific-works__background img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
    transform-origin: center right;
}

.form-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
    z-index: 1;
}

.form-header {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-title {
    color: var(--white);
    font-size: 33px;
    font-weight: 600;
    line-height: 33px;
}

.form-quote {
    color: var(--white);
    font-size: 18px;
    font-weight: 400;
    line-height: 18px;
}

.form-fields {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px;
}

.form-input,
.form-select {
    width: 100%;
    height: 100%;
    padding: 20px;
    background: var(--white);
    border-radius: 10px;
    border: none;
    color: rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-weight: 400;
    line-height: 16.8px;
}

.form-button {
    width: 100%;
    padding: 15px 30px;
    background: var(--primary-green);
    border: none;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.form-button span {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    line-height: 11.9px;
    transition: color 0.7s ease;
}

.form-button:hover span {
    color: var(--primary-green);
}

.form-button .button-icon {
    width: 14px;
    height: 14px;
    background: var(--background-medium);
    border-radius: 50%;
    transform: rotate(180deg);
}

.form-disclaimer {
    width: 240px;
    color: var(--white);
    font-size: 12px;
    font-weight: 400;
    line-height: 14.4px;
}

.form-image {
    width: 442px;
    height: 489px;
    overflow: visible;
}

.form-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    margin-left: 80px;
    margin-top: -84px;
}

.form-content__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.form-content__background img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.1);
}

.scientific-works__mobile-image {
    display: none;
}

/* Медиа запросы для выпусков */
/* iPhone 16 Pro Max */
@media screen and (min-width: 375px) and (max-width: 440px) {
    /* Releases Section */
    .releases {
        padding: 50px 15px;
        min-height: auto;
        margin-top: 0;
        width: 100%;
        overflow: visible;
    }

    .releases__wrapper {
        width: 100%;
        margin: 15px 0;
        transform: none;
        gap: 20px;
    }

    .releases__header {
        margin-bottom: 15px;
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
    }

    .releases__title {
        font-size: 28px;
        line-height: 32px;
        font-weight: 700;
        text-align: center;
    }

    .releases__content {
        width: 100%;
        gap: 20px;
    }

    .releases__grid {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .release-card {
        width: 100%;
        padding: 12px;
    }

    .release-card__title {
        font-size: 18px;
        line-height: 18px;
        height: auto;
        margin-bottom: 10px;
    }

    .release-card__video {
        height: 400px;
    }

    .video-placeholder::before {
        font-size: 36px;
    }

    .video-play-button {
        font-size: 36px;
    }

    .releases__button {
        height: 48px;
        padding: 15px 25px;
        font-size: 13px;
    }

    .releases__button span {
        font-size: 13px;
        line-height: 1;
    }

    .releases__button .button-icon {
        width: 12px;
        height: 12px;
    }

    /* Скрытие карточек с 4 по 8 изначально */
    .release-card:nth-child(n+4) {
        display: none;
    }

    /* Показать все карточки когда активен класс expanded */
    .releases__grid.expanded .release-card:nth-child(n+4) {
        display: flex;
    }

    /* Контейнер для кнопок */
    .releases__buttons {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    /* Кнопка "показать еще" */
    .releases__expand-button {
        width: 48px;
        height: 48px;
        background: var(--background-medium);
        border: none;
        border-radius: 50%;
        display: flex !important; /* Показываем на мобильных */
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .releases__expand-button:hover {
        background: var(--primary-green);
    }

    .releases__expand-button::before {
        content: '↓';
        font-size: 18px;
        color: var(--primary-green);
        font-weight: bold;
        transition: all 0.3s ease;
    }

    .releases__expand-button:hover::before {
        color: var(--white);
    }

    /* Поворот стрелки когда развернуто */
    .releases__grid.expanded + .releases__buttons .releases__expand-button::before {
        content: '↑';
    }

}


/* Медиа запросы */

/* Full HD */
@media screen and (min-width: 1920px) and (max-width: 2559px) {
    .scientific-works {
        width: 100%;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: scale(1.62);
        margin-top: 450px;
    }

    .scientific-works__wrapper {
        width: 100%;
        margin: 0 auto;
        transform: none;
        gap: 30px;
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* HD */
@media screen and (min-width: 1280px) and (max-width: 1919px) {
    .scientific-works {
        width: 100%;
        margin: 0 auto;
        display: flex;
        align-items: center;
        margin-top: 250px;
    }
    
    .scientific-works__wrapper {
        max-width: 1280px;
        min-width: 1250px;
        width: 100%;
        margin: 0 auto;
        transform: none;
        gap: 60px;
        padding: 0 15px;
    }

    .scientific-works__header {
        width: 100%;
        gap: 30px;
    }   

    .scientific-works__title {
        font-size: 32px;
        line-height: 27.20px;
        font-weight: 700;
    }

    .scientific-works__steps {
        display: flex;
        gap: 30px;
    }

    .step-card {
        width: 100%;
    }

    .scientific-works__form {
        width: 100%;
        display: flex;
        position: relative;
        overflow: visible;
    }

}

/* iPhone 16 Pro Max */
@media screen and (min-width: 375px) and (max-width: 440px) {
    /* Card Section */
    .scientific-works {
        padding: 100px 15px;
        min-height: auto;
        width: 100%;
        overflow: visible;
    }

    .scientific-works__wrapper {
        width: 100%;
        margin: 15px 0;
        transform: none;
        gap: 30px;
    }

    .scientific-works__header {
        width: 100%;
        gap: 30px;
    }

    .scientific-works__title {
        font-size: 32px;
        line-height: 27.20px;
        font-weight: 700;
    }

    .scientific-works__steps {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }

    .step-card {
        width: 100%;
        padding: 20px;
        gap: 20px;
    }

    .step-card__content {
        width: 360px;
        gap: 20px;
    }

    .step-card__header {
        width: 360px;
        height: auto;
        justify-content: space-between;
        gap: 0;
    }

    .step-card__title {
        width: 211.92px;
        font-size: 18px;
        line-height: 19.80px;
    }

    .step-card__text {
        width: 360px;
        font-size: 14px;
        font-weight: 500;
        line-height: 16.80px;
    }

    .step-card__number-wrapper {
        display: flex;
        align-items: center;
    }

    .step-card__circle {
        width: 50px;
        height: 50px;
    }

    .step-card__number {
        width: 50px;
        height: 50px;
        font-size: 30px;
        margin-left: -50px;
    }

    /* Form styles */
    .scientific-works__form {
        width: 100%;
        height: auto;
        padding: 25px 20px;
        flex-direction: column;
        gap: 30px;
        background: var(--secondary-green);
        border-radius: 10px;
        position: relative;
        overflow: hidden;
    }

    .form-content__background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .form-content__background img {
        display: none;
    }

    .form-content__background::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('../images/background_science_mob.svg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    .form-image {
        display: none;
    }

    .form-content {
        width: 100%;
        gap: 30px;
    }

    .form-header {
        gap: 8px;
    }

    .form-title {
        font-size: 24px;
        line-height: 24px;
    }

    .form-quote {
        font-size: 14px;
        line-height: 16.80px;
        font-weight: 500;
    }

    .form-fields {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .form-button {
        width: 100%;
        padding: 15px 30px;
    }
    
    .form-input,
    .form-select {
        width: 100%;
        height: 100%;
    }

    .form-disclaimer {
        width: 345px;
        font-size: 11px;
        line-height: 13.20px;
        font-weight: 400;
        margin: 0 auto;
        text-align: left;
    }
    

    /* Add mobile image before form */
    .scientific-works__mobile-image {
        display: block;
        width: 108.11px;
        height: 108.11px;
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 8px;
    }

    .scientific-works__mobile-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Free Materials Section */
.free-materials {
    width: 100%;
    min-height: 100vh;
    padding: 100px 30px;
    background: var(--background-light);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.free-materials__wrapper {
    width: 1140px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transform: scale(2.1);
    transform-origin: center center;
    margin-top: 1050px;
}

.free-materials__header {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.free-materials__title {
    color: var(--primary-green);
    font-size: 40px;
    font-weight: 700;
    line-height: 44px;
}

.free-materials__tabs {
    width: 100%;
    height: 54px;
    padding: 5px;
    background: var(--secondary-green);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.materials-tab {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    background: var(--secondary-green);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    line-height: 11.9px;
    cursor: pointer;
    font-family: Nunito;
}

.materials-tab.active {
    background: var(--primary-green);
}

.free-materials__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.material-card {
    width: 562px;
    padding: 30px;
    background: var(--background-medium);
    border-radius: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
}

.material-card__content {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.material-card__text {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.material-card__title {
    color: var(--primary-green);
    font-size: 18px;
    font-weight: 700;
    line-height: 19.8px;
}

.material-card__description {
    color: var(--primary-green);
    font-size: 14px;
    font-weight: 400;
    line-height: 16.8px;
}

.material-card__button {
    height: 54px;
    padding: 20px 30px;
    background: var(--secondary-green);
    border: none;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.material-card__button span {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    line-height: 11.9px;
    font-family: Nunito;
}

.material-card__button .button-icon {
    width: 14px;
    height: 14px;
    background: var(--primary-green);
    border-radius: 50%;
    transform: rotate(180deg);
}

.material-card__image {
    width: 192px;
    align-self: stretch;
    border-radius: 10px;
    object-fit: cover;
}

.materials-content {
    display: none;
    width: 100%;
}

.materials-content.active {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* iPhone 16 Pro Max */
@media screen and (min-width: 375px) and (max-width: 440px) {
    .materials-content.active {
        flex-direction: column;
        align-items: center;
    }
}


/* Медиа запросы */


/* Full HD */
@media screen and (min-width: 1920px) and (max-width: 2559px) {
    .free-materials {
        width: 100%;
        min-height: 100vh;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 450px;
    }

    .free-materials__wrapper {
        width: 1152px;
        transform: scale(1.6);
        margin-top: 450px;
    }

    .material-card {
        width: 568px;
    }
}

/* HD */
@media screen and (min-width: 1280px) and (max-width: 1919px) {
    .free-materials {
        width: 100%;
        min-height: 100vh;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 250px;
    }

    .free-materials__wrapper {
        width: 1255px;
        min-height: 100vh;
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: none;
        gap: 30px;
        margin-top: 450px;
    }

    .free-materials__header {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .free-materials__title {
        font-size: 32px;
        line-height: 27.20px;
        font-weight: 700;
        word-wrap: break-word;
    }
    
    .free-materials__grid {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .materials-content {
        width: 100%;
    }

    .materials-content.active {
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .material-card {
        width: 605px;
    }
}

/* iPhone 16 Pro Max */
@media screen and (min-width: 375px) and (max-width: 440px) {
    /* Free Materials Section */
    .free-materials {
        padding: 100px 15px;
        min-height: auto;
        width: 100%;
        overflow: visible;
    }

    .free-materials__wrapper {
        width: 100%;
        margin: 15px 0;
        transform: none;
        margin-top: -75px;
    }

    .free-materials__grid {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 0;
    }

    .material-card {
        width: 100%;
        max-width: 400px;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: 
            "text"
            "image"
            "button";
        align-items: center;
        gap: 15px;
        margin: 0 auto;
        padding: 20px;
        background: var(--secondary-green);
    }

    .material-card__content {
        width: 100%;
        display: contents;
    }

    .material-card__text {
        grid-area: text;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .material-card__image {
        grid-area: image;
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

    .material-card__button {
        grid-area: button;
        width: 100%;
        background: var(--white);
    }

    .material-card__title {
        color: var(--white);
        width: 100%;
        text-align: left;
    }

    .material-card__button span {
        color: var(--primary-green);
    }

    .material-card__button .button-icon {
        background: var(--primary-green);
    }
    
    .free-materials__title {
        font-size: 32px;
        line-height: 27.20px;
        font-weight: 700;
        word-wrap: break-word;
    }

    .free-materials__tabs {
        display: none;
    }

    .material-card__description {
        display: none;
    }
}

/* FAQ Section */
.faq {
    width: 100%;
    min-height: 100vh;
    padding: 100px 30px;
    margin-top: 450px;
    background: var(--background-light);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.faq__wrapper {
    width: 1140px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transform: scale(2.1);
    transform-origin: center center;
    margin-top: 600px;
}

.faq__header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.faq__title {
    color: var(--primary-green);
    font-size: 40px;
    font-weight: 700;
    line-height: 44px;
}

.faq__telegram-button {
    padding: 20px 30px;
    background: var(--secondary-green);
    border: none;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.faq__telegram-button span {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    line-height: 11.9px;
    font-family: Nunito;
}

.faq__grid {
    display: flex;
    gap: 15px;
}

.faq__column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    width: 100%;
}

.faq-question {
    width: 100%;
    padding: 30px;
    background: var(--background-medium);
    border: none;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    cursor: pointer;
    transition: border-radius 0.3s ease;
}

.faq-question.active {
    border-radius: 10px 10px 0 0;
}

.faq-question__text {
    color: var(--primary-green);
    font-size: 18px;
    font-weight: 700;
    line-height: 19.8px;
    text-align: left;
    flex: 1;
    font-family: 'Nunito', sans-serif;
}

.button-icon {
    width: 22px;
    height: 22px;
    background: var(--primary-green);
    border-radius: 50%;
    display: none;
}

.faq-question__icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-question__icon {
    transform: rotate(45deg);
}

.faq-answer {
    background: var(--background-medium);
    border-radius: 0 0 10px 10px;
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
}

.faq-answer.active {
    padding: 20px 30px;
    max-height: 1000px;
    opacity: 1;
}

.faq-answer p {
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

/* Медиа запросы */

/* Full HD */
@media screen and (min-width: 1920px) and (max-width: 2559px) {
    .faq {
        width: 100%;
        min-height: 100vh;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .faq__wrapper {
        width: 1152px;
        transform: scale(1.6);
        margin-top: 450px;
    }
}

/* HD */
@media screen and (min-width: 1280px) and (max-width: 1919px) {
    .faq {
        width: 100%;
        min-height: 100vh;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-top: 250px;
    }
    
}

/* iPhone 16 Pro Max */
@media screen and (min-width: 375px) and (max-width: 440px) {
    .faq {
        padding: 100px 15px;
        min-height: auto;
        width: 100%;
        overflow: visible;
        margin-top: 0px;
    }

    .faq__wrapper {
        width: 100%;
        max-width: 400px;
        margin: 15px auto;
        margin-top: -75px;
        transform: none;
        display: grid;
        grid-template-areas:
            "title"
            "questions"
            "button";
        gap: 15px;
    }

    .faq__header {
        display: contents;
    }

    .faq__title {
        grid-area: title;
        font-size: 32px;
        line-height: 27.20px;
        text-align: left;
        width: 100%;
    }

    .faq__grid {
        grid-area: questions;
        flex-direction: column;
        width: 100%;
    }

    .faq__column {
        width: 100%;
    }

    .faq__telegram-button {
        grid-area: button;
        padding: 15px 20px;
        width: 287px;
        height: 54px;
        border-radius: 100px;
        max-width: 400px;
        margin: 0 auto;
    }

    .faq-question {
        padding: 15px;
        margin: 0 auto;
    }

    .faq-question__text {
        font-size: 14px;
        line-height: 16.8px;
        font-weight: 600;
    }

    .button-icon {
        width: 14px;
        height: 14px;
        display: flex
    }

    .faq-question__icon {
        width: 24px;
        height: 24px;
    }

    .faq-answer {
        padding: 0 15px;
    }

    .faq-answer.active {
        padding: 15px;
    }

    .faq-answer p {
        font-size: 14px;
    }
}

/* Footer */
.footer {
    width: 100%;
    min-height: 455px;
    padding: 0 30px;
    margin-top: 450px;
    background: var(--background-light);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
}

.footer__wrapper {
    width: 1140px;
    padding: 30px;
    background: var(--background-medium);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    transform: scale(2.1);
    transform-origin: center center;
    margin-top: 600px;
}

.footer__title {
    width: 575px;
    margin: 0 auto;
    color: var(--primary-green);
    font-size: 33px;
    font-weight: 600;
    line-height: 33px;
    text-align: center;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 10px;
}

.footer__menu {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.menu-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.menu-section__title {
    color: var(--primary-green);
    font-size: 18px;
    font-weight: 700;
    line-height: 19.8px;
}

.menu-section__links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-link {
    color: var(--primary-green);
    font-size: 14px;
    font-weight: 400;
    line-height: 16.8px;
    text-decoration: none;
}

.scroll-top {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.footer__photo {
    width: 200px;
    height: 230px;
    border-radius: 10px;
    overflow: hidden;
}

.footer__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer__contacts {
    width: 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 59px;
}

.contacts-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacts-section__title {
    color: var(--primary-green);
    font-size: 18px;
    font-weight: 700;
    line-height: 19.8px;
    text-align: right;
}

.contacts-section__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contacts-section__phone {
    color: var(--primary-green);
    font-size: 22px;
    font-weight: 700;
    line-height: 24.2px;
    text-align: right;
}

.contacts-section__email {
    color: var(--primary-green);
    font-size: 14px;
    font-weight: 400;
    line-height: 16.8px;
    text-align: right;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-icon {
    width: 22px;
    height: 18px;
}

.social-link span {
    color: var(--primary-green);
    font-size: 14px;
    font-weight: 400;
    line-height: 16.8px;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 10px;
    margin-top: 45px;
    gap: 116px;
}

.footer__bottom-texts {
    display: contents;
}

.footer__policy,
.footer__credits {
    color: var(--primary-green);
    font-size: 12px;
    font-weight: 400;
    line-height: 14.4px;
}

.footer__telegram-button {
    height: 54px;
    padding: 20px 30px;
    background: var(--secondary-green);
    border: none;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    margin-left: -150px;
}

.footer__telegram-button span {
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    line-height: 11.9px;
}

.footer__telegram-button .button-icon {
    width: 14px;
    height: 14px;
    background: var(--primary-green);
    border-radius: 50%;
    transform: rotate(180deg);
}

.footer__mobile-photo {
    display: none;
}

.footer__telegram-button {
    display: none;
}

.mobile-scroll-top {
    display: none;
}

/* Медиа запросы */

/* Full HD */
@media screen and (min-width: 1920px) and (max-width: 2559px) {
    .footer {
        width: 100%;
        min-height: 100vh;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer__wrapper {
        width: 1152px;
        transform: scale(1.6);
        margin-top: 450px;
    }
}

/* iPhone 16 Pro Max */
@media screen and (min-width: 375px) and (max-width: 440px) {
    .footer {
        padding: 15px;
        min-height: auto;
        width: 100%;
        overflow: visible;
        display: flex;
        justify-content: center;
        margin-top: 0px;
    }

    .footer__wrapper {  
        width: 100%;
        max-width: 400px;
        margin: 15px 0;
        padding: 15px;
        transform: none;
        gap: 20px;
        background: var(--background-medium);
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer__mobile-photo {
        display: block;
        width: 108.11px;
        height: 108.11px;
        border-radius: 10px;
        overflow: hidden;
        margin: 0 auto;
    }

    .footer__mobile-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .footer__photo {
        display: none;
    }

    .footer__title {
        width: 100%;
        text-align: center;
        font-size: 24px;
        line-height: 24px;
        margin: 0;
        padding: 0;
    }

    .footer__telegram-button {
        width: 100%;
        max-width: 229px;
        padding: 15px 30px;
        margin: 0;
        display: flex;
    }

    .footer__content {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
        padding: 0;
    }

    .footer__menu {
        width: 148px;
        align-items: flex-start;
        gap: 12px;
    }

    .menu-section__title {
        font-size: 18px;
        line-height: 19.8px;
    }

    .menu-link {
        font-size: 14px;
        line-height: 16.8px;
    }

    .footer__contacts {
        width: 147px;
        align-items: flex-end;
        gap: 20px;
    }

    .contacts-section__title {
        text-align: right;
        font-size: 18px;
        line-height: 19.8px;
    }

    .contacts-section__phone {
        font-size: 14px;
        line-height: 16.8px;
    }

    .contacts-section__email {
        font-size: 11px;
        line-height: 13.2px;
    }

    .social-links {
        width: 96px;
        gap: 12px;
    }

    /* Только для мобильной версии группируем тексты */
    .footer__bottom-texts {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .social-link {
        justify-content: flex-end;
    }

    .social-icon {
        width: 21.72px;
        height: 18px;
    }

    .footer__bottom {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        margin-top: auto;
    }

    .footer__policy,
    .footer__credits {
        font-size: 11px;
        line-height: 13.2px;
    }

    .scroll-top {
        width: 30px;
        height: 30px;
        background: var(--secondary-green);
        border-radius: 50%;
        margin-left: auto;
        display: none;
    }

    /* Кнопка скролла справа только для мобильной */
    .mobile-scroll-top {
        width: 30px;
        height: 30px;
        background: var(--secondary-green);
        border-radius: 50%;
        margin-left: auto;
        display: block;
    }
}

/* iPhone 16 Pro Max */
@media screen and (min-width: 375px) and (max-width: 440px) {
    /* Скрываем пустой div с отступом */
    div[style*="height: 350px"] {
        display: none !important;
    }
}





