/* ============ ГЛАВНАЯ СТРАНИЦА ============

   Страница собрана из белых полос-разделов на общей подложке сайта.
   Так решаются сразу две задачи: текст на фотографии-фоне читается плохо,
   а ровные широкие полосы с крупными отступами выглядят как сайт конторы,
   а не как набор карточек, наваленных на картинку.

   Фон, шапка и подвал здесь намеренно не трогаются — они общие для всего
   сайта и живут в common.css.

   Правила для .header-container, .cart-button, .user-section-container,
   footer и .notification убраны: этих элементов на странице нет, common.js
   удаляет свои копии ещё до запуска скриптов страницы. */

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: url('/Photo/Fondlyasaqta.jpg');
    background-size: cover;
    background-attachment: fixed;
}

.page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 26px 20px 60px;
}

/* ============ ОБЩЕЕ ДЛЯ РАЗДЕЛОВ ============ */

.panel {
    background: rgba(255, 255, 255, .96);
    border-radius: 26px;
    padding: 64px 56px;
    margin-bottom: 28px;
    box-shadow: 0 12px 34px rgba(16, 24, 64, .09);
}

.kicker {
    display: block;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
    font-weight: 700;
    color: #8a90a3;
    margin-bottom: 14px;
}

.sec-head {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.sec-head h2 {
    font-size: clamp(26px, 2.6vw, 36px);
    line-height: 1.2;
    color: var(--zauna-blue, #0b0b8f);
    margin: 0 0 14px;
}

.sec-head p {
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    color: #5a6072;
}

.sec-head a {
    color: var(--zauna-blue, #0b0b8f);
    font-weight: 600;
}

.sec-foot {
    margin-top: 40px;
    text-align: center;
}

.placeholder {
    grid-column: 1 / -1;
    background: #f7f8fd;
    border-radius: 18px;
    padding: 40px;
    text-align: center;
    color: #8a90a3;
}

/* ============ КНОПКИ ============ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    transition: background-color .2s ease, color .2s ease, transform .2s ease,
                box-shadow .2s ease, border-color .2s ease;
}

.btn--lg {
    padding: 17px 34px;
    font-size: 17px;
    border-radius: 14px;
}

.btn--primary {
    background: var(--zauna-blue, #0b0b8f);
    color: #fff;
    box-shadow: 0 10px 24px rgba(11, 11, 143, .22);
}

.btn--primary:hover {
    background: #00008b;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(11, 11, 143, .28);
}

.btn--ghost {
    background: #fff;
    color: var(--zauna-blue, #0b0b8f);
    border-color: #dfe3f6;
}

.btn--ghost:hover {
    border-color: var(--zauna-blue, #0b0b8f);
    transform: translateY(-2px);
}

/* ============ ПЕРВЫЙ ЭКРАН ============ */

.hero {
    text-align: center;
    padding: 84px 56px 64px;
}

.hero h1 {
    font-size: clamp(32px, 4.2vw, 54px);
    line-height: 1.14;
    color: var(--zauna-blue, #0b0b8f);
    margin: 0 0 22px;
    letter-spacing: -.01em;
}

.hero h1 span {
    color: #4f6dff;
}

.hero__lead {
    max-width: 720px;
    margin: 0 auto 36px;
    font-size: 18px;
    line-height: 1.7;
    color: #5a6072;
}

.hero__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* Полоса с цифрами под кнопками */
.facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid #eef0f8;
}

.fact b {
    display: block;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.1;
    color: var(--zauna-blue, #0b0b8f);
    margin-bottom: 6px;
}

.fact span {
    font-size: 14px;
    color: #8a90a3;
    line-height: 1.4;
}

/* ============ РАЗДЕЛЫ КАТАЛОГА ============ */

.cats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}

.cat {
    background: #f7f8fd;
    border: 1px solid #eceffa;
    border-radius: 20px;
    padding: 32px 26px;
    text-decoration: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform .22s ease, box-shadow .22s ease,
                border-color .22s ease, background-color .22s ease;
}

.cat:hover {
    background: #fff;
    transform: translateY(-4px);
    border-color: #d7dcf3;
    box-shadow: 0 16px 32px rgba(16, 24, 64, .12);
}

.cat img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 6px;
}

.cat__name {
    font-weight: 600;
    color: #1b1f3b;
    font-size: 17px;
}

.cat__note {
    font-size: 14px;
    color: #8a90a3;
    line-height: 1.5;
    flex: 1;
}

.cat__from {
    font-size: 16px;
    font-weight: 700;
    color: var(--zauna-blue, #0b0b8f);
    margin-top: 6px;
}

/* ============ ТОВАРЫ СО СКИДКОЙ ============ */

.deals {
    display: grid;
    /* Ровно три в ряд: шесть карточек ложатся как 3+3. При автоподборе
       колонок получалось 4+2 — второй ряд выглядел обрубком. */
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

@media (max-width: 1100px) {
    .deals {
        grid-template-columns: repeat(2, 1fr);
    }
}

.deal-card {
    background: #fff;
    border: 1px solid #eceffa;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(16, 24, 64, .06);
    transition: transform .22s ease, box-shadow .22s ease;
}

.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(16, 24, 64, .13);
}

.deal-card__media {
    position: relative;
    background: #f4f6fd;
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
}

.deal-card__media img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.deal-card__off {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #ff4d6a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
}

.deal-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.deal-card__name {
    font-weight: 600;
    font-size: 16px;
    color: #1b1f3b;
    overflow-wrap: anywhere;
}

.deal-card__prices {
    display: flex;
    align-items: baseline;
    gap: 9px;
    flex-wrap: wrap;
}

.deal-card__price {
    font-size: 21px;
    font-weight: 700;
    color: var(--zauna-blue, #0b0b8f);
}

.deal-card__old {
    font-size: 14px;
    color: #a7adc0;
    text-decoration: line-through;
}

.deal-card__actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.deal-card__actions .btn {
    flex: 1;
    padding: 11px 12px;
    font-size: 14px;
    border-radius: 10px;
}

/* ============ КАК ЭТО РАБОТАЕТ ============ */

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
}

.step {
    background: #f7f8fd;
    border-radius: 20px;
    padding: 32px 28px;
}

.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--zauna-blue, #0b0b8f);
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 18px;
}

.step h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #1b1f3b;
}

.step p {
    margin: 0;
    color: #5a6072;
    line-height: 1.65;
    font-size: 15px;
}

/* ============ ПОЧЕМУ НАМ ДОВЕРЯЮТ ============ */

.pros {
    display: grid;
    /* Две в ряд: четыре карточки ложатся как 2+2 и получают больше места
       под текст. При автоподборе выходило 3+1 — последняя висела одна. */
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

@media (max-width: 760px) {
    .pros {
        grid-template-columns: 1fr;
    }
}

.pro {
    padding: 30px 30px 30px 26px;
    border-left: 3px solid #4f6dff;
    background: #f7f8fd;
    border-radius: 0 18px 18px 0;
}

.pro h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--zauna-blue, #0b0b8f);
}

.pro p {
    margin: 0;
    color: #5a6072;
    line-height: 1.65;
    font-size: 15px;
}

/* ============ ОТЗЫВЫ ============ */

.reviews {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 26px;
    align-items: start;
}

.score {
    background: #f7f8fd;
    border-radius: 20px;
    padding: 34px 26px;
    text-align: center;
}

.score__value {
    display: block;
    font-size: 54px;
    line-height: 1;
    font-weight: 700;
    color: var(--zauna-blue, #0b0b8f);
}

.score__stars {
    display: block;
    color: #ffb400;
    font-size: 20px;
    letter-spacing: 3px;
    margin: 10px 0 6px;
}

.score__count {
    display: block;
    color: #8a90a3;
    font-size: 14px;
    margin-bottom: 22px;
}

.quotes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.quote {
    background: #f7f8fd;
    border-radius: 20px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quote__stars {
    color: #ffb400;
    font-size: 15px;
    letter-spacing: 2px;
}

.quote__text {
    margin: 0;
    color: #3b4054;
    line-height: 1.65;
    flex: 1;
    overflow-wrap: anywhere;
}

.quote__foot {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #e6e9f5;
    padding-top: 14px;
}

.quote__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #eef1ff;
    flex-shrink: 0;
}

.quote__who {
    font-weight: 600;
    color: #1b1f3b;
    font-size: 15px;
}

.quote__meta {
    font-size: 13px;
    color: #8a90a3;
}

/* ============ ЧАСТЫЕ ВОПРОСЫ ============ */

.faq {
    max-width: 860px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid #eceffa;
}

.faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 24px 44px 24px 0;
    font-size: 17px;
    font-weight: 600;
    color: #1b1f3b;
    position: relative;
    transition: color .18s ease;
}

/* убираем треугольник браузера, рисуем свой знак */
.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #8a90a3;
    border-bottom: 2px solid #8a90a3;
    transform: translateY(-70%) rotate(45deg);
    transition: transform .22s ease, border-color .22s ease;
}

.faq__item[open] summary,
.faq__item summary:hover {
    color: var(--zauna-blue, #0b0b8f);
}

.faq__item[open] summary::after {
    transform: translateY(-30%) rotate(225deg);
    border-color: var(--zauna-blue, #0b0b8f);
}

.faq__item p {
    margin: 0 0 24px;
    padding-right: 44px;
    color: #5a6072;
    line-height: 1.7;
    font-size: 16px;
}

/* ============ ПОСЛЕДНИЙ ПРИЗЫВ ============ */

.final {
    text-align: center;
    padding: 72px 56px;
}

.final h2 {
    margin: 0 0 14px;
    color: var(--zauna-blue, #0b0b8f);
    font-size: clamp(26px, 2.6vw, 36px);
}

.final p {
    margin: 0 auto 34px;
    color: #5a6072;
    max-width: 560px;
    line-height: 1.7;
    font-size: 17px;
}

.final__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============ УЗКИЕ ЭКРАНЫ ============ */

@media (max-width: 1000px) {
    .panel {
        padding: 44px 32px;
    }

    .hero {
        padding: 56px 32px 44px;
    }

    .reviews {
        grid-template-columns: 1fr;
    }

    .facts {
        grid-template-columns: repeat(2, 1fr);
        gap: 26px;
    }
}

@media (max-width: 600px) {
    .page {
        padding: 16px 12px 40px;
    }

    .panel {
        padding: 34px 22px;
        border-radius: 20px;
        margin-bottom: 18px;
    }

    .hero {
        padding: 44px 22px 34px;
    }

    .sec-head {
        margin-bottom: 32px;
    }

    .btn,
    .btn--lg {
        width: 100%;
    }

    .deals {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .deal-card__media {
        min-height: 130px;
        padding: 16px;
    }

    .deal-card__body {
        padding: 14px;
    }

    .deal-card__actions {
        flex-direction: column;
    }

    .pro {
        padding: 24px 22px 24px 20px;
    }

    .faq__item summary {
        font-size: 16px;
        padding-right: 36px;
    }

    .faq__item p {
        padding-right: 0;
    }
}
