:root {
    
    --faq-scale: 1;
}

@media screen and (min-width: 7680px) {
    :root {
        --faq-scale: 4;
    }
}

@media screen and (min-width: 5760px) and (max-width: 7679px) {
    :root {
        --faq-scale: 3;
    }
}

@media screen and (min-width: 3840px) and (max-width: 5759px) {
    :root {
        --faq-scale: 2;
    }
}

@media screen and (min-width: 2880px) and (max-width: 3839px) {
    :root {
        --faq-scale: 1.5;
    }
}

@media screen and (min-width: 2560px) and (max-width: 2879px) {
    :root {
        --faq-scale: 1.333;
    }
}

@media screen and (min-width: 2400px) and (max-width: 2559px) {
    :root {
        --faq-scale: 1.25;
    }
}

@media screen and (min-width: 2133px) and (max-width: 2399px) {
    :root {
        --faq-scale: 1.111;
    }
}

@media screen and (min-width: 1920px) and (max-width: 2132px) {
    :root {
        --faq-scale: 1;
    }
}

@media screen and (min-width: 1728px) and (max-width: 1919px) {
    :root {
        --faq-scale: 0.9;
    }
}

@media screen and (min-width: 1600px) and (max-width: 1727px) {
    :root {
        --faq-scale: 0.833;
    }
}

@media screen and (min-width: 1536px) and (max-width: 1599px) {
    :root {
        --faq-scale: 0.8;
    }
}

@media screen and (min-width: 1366px) and (max-width: 1535px) {
    :root {
        --faq-scale: 0.711;
    }
}

@media screen and (min-width: 1280px) and (max-width: 1365px) {
    :root {
        --faq-scale: 0.667;
    }
}

@media screen and (min-width: 1097px) and (max-width: 1279px) {
    :root {
        --faq-scale: 0.571;
    }
}

@media screen and (min-width: 1024px) and (max-width: 1096px) {
    :root {
        --faq-scale: 0.533;
    }
}

@media screen and (min-width: 960px) and (max-width: 1023px) {
    :root {
        --faq-scale: 0.5;
    }
}

@media screen and (min-width: 769px) and (max-width: 959px) {
    :root {
        --faq-scale: 0.4;
    }
}

/* Заголовок h1 FAQ */
.faq-main-title {
    font-family: 'Russo One', sans-serif;
    font-size: calc(40px * var(--faq-scale));
    color: white;
    margin: calc(120px * var(--faq-scale)) 0 0 calc(200px * var(--faq-scale));
    position: absolute;
}

/* Фото FAQ */
.faq-photo {
    width: calc(580px * var(--faq-scale));
    height: calc(580px * var(--faq-scale));
    object-fit: cover;
    margin: calc(250px * var(--faq-scale)) 0 0 calc(100px * var(--faq-scale));
}

/* Контейнер для вопросов */
.faq-questions {
    margin: calc(220px * var(--faq-scale)) calc(200px * var(--faq-scale)) 0 0;
    width: 100%;
    max-width: calc(800px * var(--faq-scale));
    float: right;
}

/* Вопросы */
.faq-question {
    font-family: 'Golos Text', sans-serif;
    font-size: calc(20px * var(--faq-scale));
    color: white;
    font-weight: bold;
    margin: 0;
    padding: calc(20px * var(--faq-scale)) 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

/* Первый вопрос */
.faq-question:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* Иконка крестика */
.faq-toggle {
    width: calc(40px * var(--faq-scale));
    height: calc(40px * var(--faq-scale));
    background-image: url('/images/faq/plus.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: calc(20px * var(--faq-scale));
}

/* Повернутая иконка (крестик) */
.faq-toggle.active {
    transform: rotate(45deg);
}

/* Ответы */
.faq-answer {
    font-family: 'Golos Text', sans-serif;
    font-size: calc(17px * var(--faq-scale));
    color: white;
    line-height: 1.4;
    margin: 0;
    padding: 0 0 calc(30px * var(--faq-scale)) 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Активный ответ */
.faq-answer.active {
    max-height: calc(500px * var(--faq-scale));
    opacity: 1;
    padding-top: calc(15px * var(--faq-scale));
}

/* Раздел 2: Форма */
.faq-form-section {
    padding-top: calc(50px * var(--faq-scale));
    clear: both;
}

/* Заголовок в разделе формы */
.faq-form-title {
    font-family: 'Russo One', sans-serif;
    font-size: calc(40px * var(--faq-scale));
    color: white;
    text-align: center;
    margin: 0;
}

/* Сферы */
.faq-orb {
    position: absolute;   
    width: calc(500px * var(--faq-scale));
    height: calc(500px * var(--faq-scale));
    border-radius: 50%;
    filter: blur(calc(60px * var(--faq-scale)));
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

/* Сферы в Hero */
.orb-1 {
    width: calc(1000px * var(--faq-scale));
    height: calc(800px * var(--faq-scale));
    background: radial-gradient(circle, 
        #0cc9b9 0%,
        #22d3d3 24%,
        #63e7e1 61%,
        transparent 70%);
    top: calc(-180px * var(--faq-scale));
    right: calc(-30px * var(--faq-scale));
}

.orb-2 {
    width: calc(800px * var(--faq-scale));
    height: calc(500px * var(--faq-scale));
    background: radial-gradient(circle, 
        #0cc9b9 0%,
        #22d3d3 24%,
        #63e7e1 61%,
        transparent 70%);
    top: calc(-180px * var(--faq-scale));
    left: calc(-100px * var(--faq-scale));
}

/* МОБИЛЬНАЯ ВЕРСИЯ (до 768px) */
@media screen and (max-width: 768px) {
    /* Отступ для шапки */
    .faq-main {
        padding-top: 80px;
    }

    /* Секция с FAQ */
    .faq-section {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    /* ЗАГОЛОВОК H1 */
    .faq-main-title {
        font-family: 'Russo One', sans-serif;
        font-size: 32px;
        color: white;
        margin: 0 15px 25px 15px !important;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        order: 1;
    }

    /* ФОТО */
    .faq-photo {
        width: 280px;
        height: 280px;
        object-fit: cover;
        margin: 0 0 30px 15px !important;
        order: 2;
    }

    /* КОНТЕЙНЕР ВОПРОСОВ */
    .faq-questions {
        margin: 0 15px 40px 15px !important;
        max-width: 100%;
        order: 3;
        float: none;
        width: calc(100% - 30px); 
    }

    /* ВОПРОСЫ */
    .faq-question {
        font-family: 'Golos Text', sans-serif;
        font-size: 16px;
        color: white;
        font-weight: bold;
        padding: 15px 0;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
        width: 100%; 
        box-sizing: border-box; 
    }

    .faq-question:first-child {
        padding-top: 0;
    }

    /* Иконка плюсика */
    .faq-toggle {
        width: 30px;
        height: 30px;
        background-image: url('/images/faq/plus.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        transition: transform 0.3s ease;
        flex-shrink: 0; 
        margin-left: 15px; 
        margin-right: 0; 
    }

    /* Повернутая иконка (крестик) */
    .faq-toggle.active {
        transform: rotate(45deg);
    }

    /* Текст вопроса */
    .faq-question span {
        flex: 1; 
        word-break: break-word; 
        padding-right: 10px; 
    }

    /* ОТВЕТЫ - по умолчанию СКРЫТЫ */
    .faq-answer {
        font-family: 'Golos Text', sans-serif;
        font-size: 14px;
        color: white;
        line-height: 1.5;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        padding: 0;
        transition: all 0.3s ease;
    }

    /* Активный ответ - ПОКАЗЫВАЕМ */
    .faq-answer.active {
        max-height: 500px;
        opacity: 1;
        padding-top: 10px;
        padding-bottom: 15px;
    }

    /* ЗАГОЛОВОК ФОРМЫ */
    .faq-form-title {
        font-family: 'Russo One', sans-serif;
        font-size: 28px;
        color: white;
        text-align: left;
        margin: 0 15px 20px 15px !important;
    }

    /* СЕКЦИЯ С ФОРМОЙ */
    .faq-form-section {
        padding: 0 15px 40px 15px !important;
        clear: both;
    }

    /* Сферы */
    .faq-orb {
        position: absolute;   
        width: 200px;
        height: 200px;
        border-radius: 50%;
        filter: blur(60px);
        opacity: 0.6;
        z-index: -1;
        pointer-events: none;
    }

    /* Сферы в Hero */
    .orb-1 {
        width: 400px;
        height: 320px;
        background: radial-gradient(circle, 
        #0cc9b9 0%,
        #22d3d3 24%,
        #63e7e1 61%,
        transparent 70%);
        top: -72px;
        right: -12px;
    }

    .orb-2 {
        width: 320px;
        height: 200px;
        background: radial-gradient(circle, 
        #0cc9b9 0%,
        #22d3d3 24%,
        #63e7e1 61%,
        transparent 70%);
        top: -72px;
        left: -40px;
    }
}

/* Для очень маленьких экранов (до 480px) */
@media screen and (max-width: 480px) {
    .faq-main-title {
        font-size: 28px !important;
        margin: 0 10px 20px 10px !important;
    }

    .faq-photo {
        width: 240px;
        height: 240px;
        margin: 0 0 25px 10px !important;
    }

    .faq-questions {
        margin: 0 10px 30px 10px !important;
        width: calc(100% - 20px);
    }

    .faq-question {
        font-size: 14px;
        padding: 12px 0;
    }

    .faq-toggle {
        width: 25px;
        height: 25px;
        margin-left: 10px; 
    }

    .faq-answer {
        font-size: 13px;
    }

    .faq-answer.active {
        padding-top: 8px;
        padding-bottom: 12px;
    }

    .faq-form-title {
        font-size: 24px !important;
        margin: 0 10px 15px 10px !important;
    }

    .faq-form-section {
        padding: 0 10px 30px 10px !important;
    }
}