/*
Theme Name: NABITEK — Кухни на заказ
Theme URI: https://example.com/
Description: Custom WordPress theme based on the supplied NABITEK website mockup and brandbook.
Version: 1.4.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nabitek
*/


/* =========================================================
   1. Переменные
   ========================================================= */

:root {
    --olive: #59624a;
    --terracotta: #9e3813;
    --sand: #d5c5af;
    --milk: #ebd8ca;
    --graphite: #262827;
    --white: #ffffff;

    --container: min(1200px, calc(100% - 70px));

    --transition: 0.2s ease;
}


/* =========================================================
   2. Базовые стили
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--milk);
    color: var(--graphite);

    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

figure {
    margin: 0;
}


/* =========================================================
   3. Общие элементы
   ========================================================= */

.container {
    width: var(--container);
    margin-inline: auto;
}

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
    border: 0;
}

.display {
    margin-top: 0;

    color: var(--terracotta);

    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    line-height: 1.02;
}

.display.green {
    color: var(--olive);
}


/* =========================================================
   4. Шапка
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;

    overflow: hidden;

    background: var(--terracotta);
    color: var(--white);
}

.header-inner {
    position: relative;
    z-index: 3;

    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* ---------------------------------------------------------
   Монограмма за логотипом
   --------------------------------------------------------- */

.header-monogram-img {
    position: absolute;
    z-index: 1;

    left: -110px;
    top: -18px;

    width: 275px;
    height: auto;

    display: block;

    pointer-events: none;
    user-select: none;
}


/* ---------------------------------------------------------
   Логотип
   --------------------------------------------------------- */

.site-logo {
    position: relative;
    z-index: 3;

    display: block;

    flex-shrink: 0;
    margin-left: 25px;
}

.site-logo img {
    position: relative;
    z-index: 3;

    display: block;

    width: 190px;
    height: auto;

    max-height: 58px;
}


/* ---------------------------------------------------------
   Навигация
   --------------------------------------------------------- */

.site-nav {
    position: relative;
    z-index: 3;

    display: flex;
    align-items: center;

    gap: 30px;

    font-size: 15px;
    font-weight: 500;
}

.site-nav a {
    transition: opacity var(--transition);
}

.site-nav a:hover {
    opacity: 0.72;
}


/* ---------------------------------------------------------
   Мобильная кнопка
   --------------------------------------------------------- */

.nav-toggle {
    position: relative;
    z-index: 4;

    display: none;

    padding: 4px;

    border: 0;
    background: transparent;

    color: var(--white);

    font-size: 30px;
    line-height: 1;
}


/* =========================================================
   5. Первый экран / HERO
   ========================================================= */

.hero {
    position: relative;

    overflow: hidden;

    background: var(--milk);
}

.hero .hero-inner {
    display: grid;

    grid-template-columns: 50% 50%;

    min-height: 440px;
}


/* ---------------------------------------------------------
   Левая часть
   --------------------------------------------------------- */

.hero-copy {
    position: relative;
    z-index: 5;

    width: calc(100% + 120px);

    padding: 42px 25px 34px 0;
}

.hero-copy h1 {
    max-width: 590px;

    margin: 0 0 18px;

    font-size: clamp(42px, 4.1vw, 60px);
    line-height: 0.98;
}


/* ---------------------------------------------------------
   Основной текст
   --------------------------------------------------------- */

.hero-copy .lead {
    max-width: 500px;

    margin: 0 0 16px;

    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
}


/* ---------------------------------------------------------
   Вторичный текст
   --------------------------------------------------------- */

.hero-copy .sublead {
    max-width: 480px;

    margin: 0 0 21px;

    font-size: 15px;
    line-height: 1.25;
    font-weight: 700;
}

.story-years {
    font-style: italic;
}


/* ---------------------------------------------------------
   Кнопки
   --------------------------------------------------------- */

.hero-actions {
    position: relative;
    z-index: 6;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 22px;
}

.btn {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 20px;

    border: 1px solid var(--olive);

    background: var(--olive);
    color: var(--white);

    font-size: 20px;
    line-height: 1;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn.secondary {
    min-height: 40px;
    padding: 0 20px;

    border: 3px solid var(--olive);

    background: transparent;
    color: var(--olive);

    font-size: 20px;
    font-weight: 500;
}

.btn.secondary:hover {
    background: var(--olive);
    color: var(--white);
}


/* ---------------------------------------------------------
   Факты: 35 дней / 2 года
   --------------------------------------------------------- */

.hero-facts {
    display: flex;
    align-items: flex-start;

    gap: 54px;
}

.fact {
    display: flex;
    flex-direction: column;
}

.fact strong {
    display: block;

    margin: 0;

    color: var(--terracotta);

    font-family: "Playfair Display", Georgia, serif;
    font-size: 34px;
    font-weight: 500;
    line-height: 1;
}

.fact span {
    display: block;

    max-width: 115px;

    margin-top: 4px;

    font-size: 11px;
    line-height: 1.18;
    font-weight: 700;
}


/* ---------------------------------------------------------
   Фотография справа
   --------------------------------------------------------- */

.hero-image {
    position: relative;
    z-index: 1;

    min-height: 440px;

    background-image: url("assets/images/hero-kitchen.jpg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}


/* ---------------------------------------------------------
   Плавное объединение фотографии и молочного фона
   --------------------------------------------------------- */

.hero-image::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            var(--milk) 0%,
            rgba(243, 238, 229, 0.95) 4%,
            rgba(243, 238, 229, 0.55) 13%,
            rgba(243, 238, 229, 0.12) 27%,
            transparent 45%
        );

    pointer-events: none;
}


/* =========================================================
   6. История / Основатели
   ========================================================= */

.story {
    position: relative;

    overflow: hidden;

    background: var(--terracotta);
    color: var(--white);
}

.story-inner {
    position: relative;

    min-height: 380px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    align-items: center;
}

.story-monogram-img {
    position: absolute;
    z-index: 1;

    left: -320px;
    top: 2px;

    width: 850px;
    height: auto;

    pointer-events: none;
    user-select: none;
}

.story-photo {
    position: relative;
    z-index: 2;

    align-self: end;

    min-height: 380px;

    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.story-photo img {
    display: block;

    width: min(100%, 560px);
    height: auto;
}

.story-copy {
    position: relative;
    z-index: 2;

    padding: 38px 0;
}

.story-copy h2 {
    margin: 0 0 16px;

    color: var(--white);

    font-size: clamp(38px, 3.8vw, 54px);
}

.story-copy h3 {
    margin: 0 0 14px;

    font-size: 15px;
    line-height: 1.3;
    font-weight: 400;
}

.story-copy h3 strong {
    font-weight: 700 !important;
}

.story-role {
    font-style: italic;
    font-weight: 400;
}

.story-copy p {
    max-width: 500px;

    margin: 8px 0;

    font-size: 14px;
    line-height: 1.35;
}


/* =========================================================
   7. Статистика
   ========================================================= */

.stats {
    padding: 30px 0;

    background: var(--milk);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.stat {
    position: relative;

    padding: 6px 24px;

    text-align: center;
}

.stat:not(:last-child)::after {
    content: "";

    position: absolute;
    top: 30px;
    right: 0;
    bottom: 30px;

    width: 1px;

    background: rgba(194, 58, 21, 0.45);
}

.stat strong {
    display: block;

    color: var(--terracotta);

    font-family: "Playfair Display", Georgia, serif;
    font-size: 70px;
    font-weight: 600;
    line-height: 1;
}

.stat-unit {
    margin-left: 0.08em;

    font-size: 0.45em;
    font-weight: 600;
    vertical-align: baseline;
    line-height: 1;
}

.stat span {
    display: block;

    max-width: 280px;

    margin: 30px auto 0;

    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}


/* =========================================================
   8. Услуги
   ========================================================= */

.service-section {
    padding: 8px 0 28px;

    background: var(--milk);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 12px;
}

.service-card {
    position: relative;

    height: 380px;
    min-height: 380px;

    overflow: hidden;

    background-color: var(--olive);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;

    color: var(--white);
}

.service-card::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            120deg,
            rgba(44, 52, 38, 0.86),
            rgba(44, 52, 38, 0.28)
        );
}

.service-card.kitchen {
    background-image: url("assets/images/kitchen-2.jpg");
}

.service-card.kitchen::before,
.service-card.materials::before {
    background: linear-gradient(
        90deg,
        var(--olive) 0%,
        var(--olive) 29%,
        var(--olive) 29%,
        var(--olive) 38%,
        rgba(89, 98, 74, 0.84) 50%,
        rgba(89, 98, 74, 0.64) 62%,
        rgba(89, 98, 74, 0.42) 74%,
        rgba(89, 98, 74, 0.2) 87%,
        rgba(89, 98, 74, 0) 100%
    );
}

.service-card.materials {
    background-image: url("assets/images/materials.jpg");
}

.service-content {
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    width: 50%;
    min-height: 100%;

    padding: 36px 32px 28px;
}

.service-card.kitchen .service-content p {
    margin: 0;
}

.service-card.kitchen .service-content p:first-of-type {
    margin-bottom: 25px;
}

.service-content h3 {
    margin: 0 0 25px;

    color: var(--white);

    font-size: 34px;
}

.service-card.kitchen .service-content h3 {
    width: max-content;
    max-width: none;

    line-height: 1.3;
    white-space: nowrap;
}

.service-content p,
.service-content li {
    font-size: 16px;
    line-height: 1.2;
}

.nowrap {
    white-space: nowrap;
}

.facade-line {
    display: inline-block;
    white-space: nowrap;
}

.service-content ul {
    margin: 8px 0 18px;
    padding-left: 18px;
}

.service-card.materials .service-content ul {
    margin-bottom: 15px;
}

.service-card.materials .service-content p {
    margin: 0;
}

.service-content .btn {
    position: absolute;
    right: 32px;
    bottom: 28px;
    left: 32px;

    height: 46px;
    min-height: 46px;
    flex-shrink: 0;

    width: auto;
    padding: 0 24px;

    background: var(--white);
    border-color: var(--white);

    color: var(--olive);

    font-size: 15px;
    font-weight: 700;
}


/* =========================================================
   9. Секции
   ========================================================= */

.section {
    padding: 42px 0;
}

.section-title {
    margin: 0 0 22px;

    font-size: 38px;
}


/* =========================================================
   10. Проекты
   ========================================================= */

.projects-carousel {
    position: relative;
    width: 100%;
    overflow: visible;
}

.projects-grid {
    display: flex;
    gap: 15px;

    width: 100%;
    min-width: 0;

    overflow-x: auto;

    scroll-behavior: smooth;
    scrollbar-width: none;

    padding: 0;
    margin: 0;
}

.projects-grid::-webkit-scrollbar {
    display: none;
}

.projects-grid .project-card {
    flex: 0 0 calc((100% - 45px) / 4);
    min-width: 0;
}

.project-card {
    display: block;

    min-width: 0;
    overflow: hidden;

    background: transparent;
    color: inherit;
    text-decoration: none;
}

.project-image {
    width: 100%;
    aspect-ratio: 1.55;

    overflow: hidden;

    background: #ddd;
}

.project-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.04);
}

.project-image-empty {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    color: var(--olive);

    font-size: 14px;
    line-height: 1.2;
    text-align: center;
}

.project-card-title {
    display: block;

    min-height: 58px;

    padding: 12px 4px 0;

    color: #000000;

    font-size: 20px;
    font-weight: 600;
    line-height: 1.08;

    text-align: center;
}


/* =========================================================
   КНОПКИ КАРУСЕЛИ
   ========================================================= */

.projects-control {
    position: absolute;
    top: 31%;
    z-index: 20;

    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: 0;
    border-radius: 50%;

    background: #ffffff;
    color: var(--olive);

    cursor: pointer;

    transform: translateY(-50%);

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        color 0.2s ease;
}

.projects-control-icon {
    display: block;

    width: 22px;
    height: 22px;

    max-width: none;

    color: var(--olive);

    transition: color var(--transition);
}

.projects-control:hover:not(:disabled) .projects-control-icon {
    color: var(--terracotta);
}

.projects-control-prev {
    left: -28px;
}

.projects-control-next {
    right: -28px;
}

.projects-control:disabled {
    opacity: 0.35;
    cursor: default;
}

.projects-control:hover:not(:disabled) {
    transform: translateY(-50%) scale(1.05);
}


/* =========================================================
   ОТДЕЛЬНАЯ СТРАНИЦА ПРОЕКТА
   ========================================================= */

.project-single {
    padding: 42px 0 70px;
}

.project-back {
    display: inline-block;

    margin-bottom: 20px;

    color: var(--olive);
    font-weight: 700;
}

.project-single-header {
    margin-bottom: 28px;
}

.project-single-header h1 {
    margin-bottom: 0;
    white-space: nowrap;
    font-size: clamp(28px, 4vw, 56px);
    line-height: 1.1;
}

.project-single-cover {
    max-height: 620px;

    overflow: hidden;

    margin-bottom: 30px;
}

.project-single-cover img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.project-single-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 0.8fr);

    gap: 42px;

    align-items: start;
}

.project-single-content {
    font-size: 17px;
    line-height: 1.55;
}

.project-gallery {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;
}

.project-gallery-slide {
    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.project-gallery-slide img {
    display: block;

    width: 100%;

    aspect-ratio: 1.2;

    object-fit: cover;
}

.project-gallery-slide.is-active img,
.project-gallery-slide:hover img {
    outline: 3px solid var(--olive);
    outline-offset: -3px;
}


/* =========================================================
   11. Почему НАБИТЕК
   ========================================================= */

.why {
    padding: 34px 0 48px;

    background: var(--milk);
}

.why .section-title {
    margin-bottom: 46px;

    font-size: clamp(34px, 3.2vw, 48px);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 32px;
}

.why-item {
    min-width: 0;

    text-align: center;
}

.why-item img {
    width: auto;
    height: 100px;

    display: block;

    margin: 0 auto 24px;
}

.why-item:nth-child(1) img {
    transform: scale(1.5);
}

.why-item:nth-child(2) img {
    transform: scale(1);
}

.why-item:nth-child(3) img {
    transform: scale(1.5);
}

.why-item:nth-child(4) img {
    transform: scale(1.2);
}

.why-item h3 {
    margin: 0 0 4px;
    color: #000000;

    width: 100%;

    font-size: 18px;
    line-height: 1.1;
    font-weight: 800;
    text-align: center;
    white-space: normal;
}

.why-item:first-child h3 {
    white-space: nowrap;
}

.why-item p {
    max-width: 270px;
    width: 100%;

    margin: 0;
    margin-inline: auto;

    color: #000000;

    font-size: 16px;
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
}

.why-line {
    display: block;
    width: 100%;
    white-space: nowrap;
    text-align: center;
}


/* =========================================================
   12. Блок доверия
   ========================================================= */

.trust {
    background: var(--terracotta);
    color: var(--white);
}

.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1.35fr;

    gap: 36px;

    padding: 28px 0 34px;
}

.trust-col {
    min-width: 0;
    padding-right: 28px;

    border-right: 1px solid rgba(255, 255, 255, 0.3);
}

.trust-col:last-child {
    border-right: 0;
}

.trust-col h3 {
    margin: 0 0 20px;
    color: var(--white);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
}

.materials-title {
    white-space: nowrap;
}

.trust-col p,
.trust-col li,
.trust-col a,
.trust-col button,
.faq-question,
.faq-answer,
.trust-review-button,
.faq-all-link {
    font-size: 13px;
    line-height: 1.35;
}

.trust-col > .faq {
    margin-top: 0;
}

.mini-avatars {
    display: flex;

    margin-top: 28px;
}

.mini-avatar {
    width: 64px;
    height: 64px;

    display: block;
    flex: 0 0 64px;

    margin-right: -10px;

    border: 2px solid var(--terracotta);
    border-radius: 50%;
    overflow: hidden;
}

.mini-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    transform: scale(1.35);
}

.mini-avatar:nth-child(1) img {
    object-position: 50% 45%;
}

.mini-avatar:nth-child(2) img {
    object-position: 50% 42%;
}

.mini-avatar:nth-child(3) img {
    object-position: 50% 45%;
}

.video-review-image {
    width: 100%;
    max-width: 260px;
    height: 145px;

    display: block;

    margin: 18px 0 0;

    border-radius: 16px;
    object-fit: cover;
}

.trust-review-action {
    margin: 0 0 18px;
}

.trust-review-button {
    min-height: 4px;

    padding: 0;

    border-color: var(--terracotta);
    background: var(--terracotta);
    color: var(--white);

    font-weight: 500;
}


/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */

.faq {
    margin: 0;
    padding: 0;
    list-style: none;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.faq-question {
    width: 100%;
    padding: 10px 0;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    border: 0;
    background: transparent;
    color: inherit;

    font: inherit;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;

    cursor: pointer;
}

.faq-question span:first-child {
    flex: 1;
}

.faq-icon {
    flex-shrink: 0;
    font-size: 22px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;

    padding: 0;
    font-size: 13px;
    line-height: 1.35;

    transition:
        max-height 0.3s ease,
        opacity 0.25s ease,
        padding 0.3s ease;
}

.faq-item.is-open .faq-answer {
    max-height: 500px;
    opacity: 1;
    padding: 0 0 12px;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 16px;

    color: var(--white);

    font-size: 13px;
    font-weight: 500;

    transition: opacity var(--transition);
}

.faq-all-link:hover {
    opacity: 0.72;
}


/* ---------------------------------------------------------
   Логотипы материалов
   --------------------------------------------------------- */

.materials-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 215px;
}

.materials-logo {
    grid-column: span 2;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px 6px;
    background: #fff;
    overflow: hidden;
}

.materials-logo-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.materials-logo:nth-child(7),
.materials-logo:nth-child(8) {
    grid-column: span 3;
    height: 42px;
    padding: 5px 8px;
}


/* =========================================================
   13. CTA
   ========================================================= */

.cta {
    padding: 0;
    background: var(--milk);
}

.cta-inner {
    position: relative;

    min-height: 345px;

    display: grid;
    grid-template-columns: 50% 50%;

    align-items: center;

    background-color: var(--milk);
    background-image: url("assets/images/cta-kitchen.jpg");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 50% 100%;
}

.cta-inner::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;

    background: linear-gradient(
        270deg,
        var(--milk) 0%,
        rgba(235, 216, 202, 0.95) 20%,
        rgba(235, 216, 202, 0.75) 40%,
        rgba(235, 216, 202, 0.50) 60%,
        rgba(235, 216, 202, 0.25) 80%,
        rgba(235, 216, 202, 0) 100%
    );

    z-index: 5;
    pointer-events: none;
}

.cta-copy {
    position: relative;
    z-index: 10;

    grid-column: 2;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;

    padding: 45px 30px 45px 45px;

    text-align: right;
}

.cta-copy h2 {
    position: relative;
    z-index: 12;

    margin: 0 0 26px;

    color: var(--terracotta);

    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 500;
    line-height: 1.05;
    white-space: nowrap;
}

.cta-copy p {
    max-width: 560px;

    margin: 0;

    color: #000000;

    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;

    text-align: right;
}

.cta-copy .btn {
    width: 310px;
    max-width: 100%;
    min-height: 50px;

    margin-top: 42px;
    padding: 0 25px;

    background: var(--olive);
    border-color: var(--olive);
    color: var(--white);

    font-size: 16px;
    font-weight: 600;
}


/* =========================================================
   14. Footer
   ========================================================= */

.site-footer {
    position: relative;
    overflow: hidden;

    min-height: 300px;

    background:
        url("assets/images/pattern-olive.png")
        center center / cover
        no-repeat;

    background-color: var(--olive);
    color: var(--white);
}

.footer-inner {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 80px;

    min-height: 300px;
    padding: 42px 0 38px;
}

.footer-title {
    margin: 0 0 12px;

    color: var(--white);

    font-family: "Playfair Display", Georgia, serif;
    font-size: 25px;
    font-weight: 500;
    line-height: 1.1;
}

.footer-text,
.footer-address {
    margin: 3px 0;

    color: var(--white);

    font-size: 13px;
    line-height: 1.2;
    font-weight: 300;
}

.footer-salon-address {
    white-space: nowrap;
}

.footer-address-column {
    padding-left: 300px;
}

.footer-address strong {
    font-weight: 700;
}

.footer-production {
    margin-top: 32px;
}

.socials {
    display: flex;
    gap: 10px;

    margin-top: 32px;
}

.socials a {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--white);
    color: var(--olive);

    font-family: Georgia, serif;
    font-size: 15px;
    font-weight: 700;
}

.footer-inner > div:first-child {
    padding-left: 75px;
}


/* =========================================================
   15. Модальное окно
   ========================================================= */

.modal {
    position: fixed;
    inset: 0;

    z-index: 100;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.5);
}

.modal.is-open {
    display: flex;
}

.modal-card {
    position: relative;

    width: min(600px, 100%);

    padding: 28px;

    background: var(--milk);
}

.modal-close {
    position: absolute;

    top: 10px;
    right: 12px;

    border: 0;

    background: transparent;

    font-size: 26px;
    line-height: 1;
}

.form-grid {
    display: grid;

    gap: 12px;
}

.form-grid label {
    display: block;

    font-size: 13px;
}

.form-grid input,
.form-grid textarea {
    width: 100%;

    margin-top: 5px;
    padding: 11px 12px;

    border: 1px solid var(--sand);

    background: var(--white);

    color: var(--graphite);

    font: inherit;
}

.form-grid textarea {
    min-height: 120px;

    resize: vertical;
}

.form-status {
    margin-top: 10px;

    font-size: 13px;
}


/* =========================================================
   16. HERO — десктопная версия
   ========================================================= */

@media (min-width: 721px) {

    .hero {
        position: relative;
        overflow: hidden;
    }

    .hero .hero-inner {
        position: relative;

        display: grid;
        grid-template-columns: 50% 50%;

        min-height: 440px;
    }

    .hero-copy {
        position: relative;
        z-index: 10;

        width: calc(100% + 180px);

        padding: 42px 0 34px 0;
    }

    .hero-copy h1 {
        position: relative;
        z-index: 11;

        width: 720px;
        max-width: none;

        margin: 0 0 18px;

        font-size: clamp(42px, 4.1vw, 60px);
        line-height: 0.98;
    }

    .hero-copy .lead,
    .hero-copy .sublead {
        position: relative;
        z-index: 11;
    }

    .hero-actions {
        position: relative;
        z-index: 12;

        display: flex;
        align-items: center;

        width: max-content;

        gap: 15px;

        margin-bottom: 22px;
    }

    .hero-actions .btn {
        position: relative;
        z-index: 13;

        white-space: nowrap;
    }

    .hero-image {
        position: relative;
        z-index: 1;

        min-height: 440px;

        background-image: url("assets/images/hero-kitchen.jpg");
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
    }

    .hero-image::before {
        content: "";

        position: absolute;
        inset: 0;

        z-index: 2;

        background: linear-gradient(
            90deg,
            var(--milk) 0%,
            rgba(235, 216, 202, 0.95) 5%,
            rgba(235, 216, 202, 0.55) 14%,
            rgba(235, 216, 202, 0.15) 28%,
            transparent 45%
        );

        pointer-events: none;
    }
}


/* =========================================================
   17. СТРАНИЦА «НАШИ ПРОЕКТЫ»
   ========================================================= */

.projects-page {
    background: var(--milk);
}

.projects-hero {
    padding: 22px 0 18px;
    background: var(--milk);
}

.projects-container {
    max-width: 1200px;
}

.projects-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 6px;
    color: #262827;
    font-size: 13px;
    line-height: 1.2;
}

.projects-breadcrumbs a:hover {
    opacity: .7;
}

.projects-page-title {
    margin: 0 0 8px;
    color: var(--terracotta);
    font-size: clamp(48px, 5.3vw, 70px);
    line-height: .98;
}

.projects-page-lead {
    margin: 0 0 6px;
    color: #111;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 500;
}

.projects-page-sublead {
    margin: 0 0 17px;
    color: #262827;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 400;
}

.projects-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 20px;
}

.projects-filter {
    min-height: 42px;
    padding: 7px 16px;
    border: 2px solid var(--olive);
    background: transparent;
    color: var(--olive);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1;
    transition: background var(--transition), color var(--transition);
}

.projects-filter.is-active {
    background: var(--olive);
    color: var(--white);
}

.projects-filter:hover {
    background: var(--olive);
    color: var(--white);
}

.projects-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 20px;
    align-items: start;
}

.projects-page-card {
    min-width: 0;
}

.projects-page-card.is-extra-project {
    display: none;
}

.projects-page-card.is-extra-project.is-revealed {
    display: block;
}

.projects-page-card.is-filter-hidden {
    display: none;
}

.projects-page-card-image-link {
    display: block;
}

.projects-page-card-image {
    width: 100%;
    aspect-ratio: 1.62;
    overflow: hidden;
    background: #ddd;
}

.projects-page-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.projects-page-card-image-link:hover img {
    transform: scale(1.025);
}

.projects-page-card-title {
    margin: 8px 0 2px;
    color: var(--terracotta);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
}

.projects-page-card-location {
    margin: 0;
    color: #262827;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 450;
}

.projects-page-card-details {
    margin: 3px 0 0;
    color: #262827;
    font-size: 15px;
    line-height: 1.2;
}

.projects-page-card-button {
    width: 200px;
    min-height: 38px;
    margin-top: 9px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: var(--olive);
    border: 1px solid var(--olive);
    color: var(--white);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    transition: background var(--transition), transform var(--transition);
}

.projects-page-card-button:hover {
    background: #4d5640;
    transform: translateY(-1px);
}

.projects-load-more {
    width: 275px;
    min-height: 40px;
    margin: 18px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--olive);
    background: transparent;
    color: var(--olive);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1;
    transition: background var(--transition), color var(--transition);
}

.projects-load-more:hover {
    background: var(--olive);
    color: var(--white);
}

.projects-load-more.is-hidden {
    display: none;
}

.projects-filter-empty {
    margin: 22px 0 0;
    text-align: center;
    color: #262827;
    font-size: 15px;
}

.projects-page-cta {
    margin-top: 0;
}

.site-nav a.is-active {
    position: relative;
}

.site-nav a.is-active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 1px;
    background: currentColor;
}


/* =========================================================
   18. СТРАНИЦА «ОТЗЫВЫ»
   ========================================================= */

.reviews-page {
    background: var(--milk);
}

.reviews-hero {
    padding: 22px 0 30px;
    background: var(--milk);
}

.reviews-container {
    max-width: 1200px;
}

.reviews-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 8px;
    color: #4c4c46;
    font-size: 13px;
    line-height: 1.2;
}

.reviews-breadcrumbs a {
    transition: opacity var(--transition);
}

.reviews-breadcrumbs a:hover {
    opacity: .65;
}

.reviews-page-title {
    margin: 0 0 10px;
    font-size: clamp(46px, 5.1vw, 68px);
    line-height: .98;
}

.reviews-page-lead {
    margin: 0;
    color: #111;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 500;
}

.reviews-section-title {
    margin: 28px 0 12px;
    font-size: clamp(34px, 3.1vw, 47px);
    line-height: 1;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
    row-gap: 25px;
    align-items: start;
}

.review-card {
    min-width: 0;
}

.review-card.is-extra-review {
    display: none;
}

.review-card.is-extra-review.is-revealed {
    display: block;
}

.review-card-media {
    position: relative;
    display: block;
    aspect-ratio: 1.62;
    overflow: hidden;
    background: #d9d9d3;
}

.review-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.review-card-media:hover img {
    transform: scale(1.02);
}

.review-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(255, 255, 255, .93);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
}

.review-play span {
    width: 0;
    height: 0;
    margin-left: 5px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid var(--olive);
}

.review-card-label {
    margin-top: 9px;
    color: #64645c;
    font-size: 13px;
    line-height: 1.15;
}

.review-card-title {
    margin: 3px 0 3px;
    color: var(--terracotta);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 31px;
    font-weight: 500;
    line-height: 1.05;
}

.review-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #50564a;
    font-size: 15px;
    line-height: 1.2;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity var(--transition);
}

.review-card-link:hover {
    opacity: .72;
}

.reviews-load-more {
    width: 255px;
    min-height: 44px;
    margin: 22px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #676e5c;
    background: transparent;
    color: #676e5c;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.1;
    transition: background var(--transition), color var(--transition);
}

.reviews-load-more:hover {
    background: #676e5c;
    color: var(--white);
}

.reviews-load-more.is-hidden {
    display: none;
}

.reviews-banner {
    position: relative;
    overflow: hidden;
    background: var(--terracotta);
    color: var(--white);
}

.reviews-banner-monogram {
    position: absolute;
    z-index: 1;

    left: -100px;
    top: 0;

    right: auto;
    bottom: auto;

    width: 400px;
    height: auto;

    display: block;
    margin: 0;

    opacity: 1;

    transform: none;

    pointer-events: none;
    user-select: none;
}

.reviews-banner-inner {
    position: relative;
    z-index: 2;
    min-height: 165px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 22px 0;
}

.reviews-banner-content {
    position: relative;
    z-index: 1;
}

.reviews-banner-button {
    position: relative;
    z-index: 1;

    flex: 0 0 350px;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 26px;
    border: 2px solid var(--white);
    background: transparent;
    color: var(--white);
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    transition: background var(--transition), color var(--transition);
}

.reviews-banner h2 {
    margin: 0 0 9px;
    color: var(--white);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(34px, 3.2vw, 49px);
    font-weight: 500;
    line-height: 1.03;
}

.reviews-banner p {
    margin: 0;
    color: var(--white);
    font-size: 19px;
    line-height: 1.15;
    font-weight: 400;
}

.reviews-banner-button:hover {
    background: var(--white);
    color: var(--terracotta);
}

.reviews-page-cta {
    margin-top: 0;
}

.review-single-page {
    background: var(--milk);
    padding: 26px 0 48px;
}

.review-single-container {
    max-width: 1000px;
}

.review-single-title {
    margin: 0 0 22px;
    font-size: clamp(42px, 5vw, 66px);
}

.review-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.review-video-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.review-video-link-wrap {
    margin-bottom: 25px;
}

.review-single-content {
    margin-top: 25px;
    font-size: 18px;
    line-height: 1.5;
}

.review-single-content p:first-child {
    margin-top: 0;
}

.review-back-link {
    display: inline-block;
    margin-top: 24px;
    color: #565d4f;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.video-review-link {
    display: block;
}

.reviews-banner.project-page-final-banner .project-page-final-banner-subtitle {
    margin: 5px 0 0;
    color: var(--white);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
}


/* =========================================================
   19. Общая адаптация
   ========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

img {
    height: auto;
}


/* =========================================================
   20. Планшеты — 1024px и меньше
   ========================================================= */

@media (max-width: 1024px) {

    :root {
        --container: calc(100% - 48px);
    }

    /* ------------------------------
       Header
       ------------------------------ */

    .header-inner {
        gap: 18px;
    }

    .site-logo img {
        width: 175px;
        max-height: 54px;
    }

    .site-nav {
        gap: 16px;
        font-size: 14px;
    }

    .header-monogram-img {
        left: -55px;
        top: +10px;
        width: 220px;
    }


    /* ------------------------------
       Hero
       ------------------------------ */

    .hero .hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        min-height: 400px;
    }

    .hero-copy {
        width: 100%;
        padding: 34px 20px 30px 0;
    }

    .hero-copy h1 {
        width: auto;
        max-width: 100%;
        font-size: clamp(38px, 5.4vw, 52px);
        line-height: 1;
        overflow-wrap: anywhere;
    }

    .hero-copy .lead {
        max-width: 100%;
        font-size: 17px;
    }

    .hero-copy .sublead {
        max-width: 100%;
        font-size: 14px;
    }

    .hero-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 10px;
    }

    .hero-actions .btn,
    .hero-actions .btn.secondary {
        min-height: 44px;
        padding-inline: 16px;
        font-size: 16px;
    }

    .hero-image {
        min-height: 400px;
    }


    /* ------------------------------
       Story
       ------------------------------ */

    .story-inner {
        min-height: 350px;
    }

    .story-photo {
        min-height: 350px;
    }

    .story-copy {
        padding: 34px 0;
    }

    .story-copy h2 {
        font-size: clamp(38px, 4.8vw, 48px);
        overflow-wrap: anywhere;
    }

    .story-monogram-img {
        left: -80px;
        top: -25px;
        width: 560px;
    }


    /* ------------------------------
       Statistics
       ------------------------------ */

    .stats-grid {
        column-gap: 10px;
    }

    .stat {
        padding-inline: 14px;
    }

    .stat strong {
        font-size: clamp(52px, 7vw, 66px);
    }

    .stat span {
        margin-top: 18px;
        font-size: 17px;
    }


    /* ------------------------------
       Services
       ------------------------------ */

    .service-grid {
        gap: 12px;
    }

    .service-card {
        min-height: 360px;
        height: 360px;
    }

    .service-content {
        width: 70%;
        min-height: 100%;
        padding: 28px 24px 26px;
    }

    .service-card.kitchen .service-content h3,
    .service-content h3 {
        width: auto;
        max-width: 100%;
        white-space: normal;
        font-size: clamp(28px, 3.4vw, 34px);
        overflow-wrap: anywhere;
    }

    .service-content p,
    .service-content li {
        font-size: 14px;
    }

    .service-content .btn {
        right: 24px;
        bottom: 24px;
        left: 24px;
    }


    /* ------------------------------
       Projects carousel
       ------------------------------ */

    .projects-grid {
        gap: 14px;
        scroll-snap-type: x proximity;
    }

    .projects-grid .project-card {
        flex: 0 0 calc((100% - 14px) / 2);
        scroll-snap-align: start;
    }

    .projects-control {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 50px;
        height: 50px;

        top: 38%;

        z-index: 30;
    }

    .projects-control-prev {
        left: 6px;
    }

    .projects-control-next {
        right: 6px;
    }

    .projects-control-icon {
        width: 20px;
        height: 20px;
    }

    .project-card-title {
        min-height: 54px;
        font-size: 18px;
        overflow-wrap: anywhere;
    }


    /* ------------------------------
       Why
       ------------------------------ */

    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 28px;
    }

    .why-item h3,
    .why-item p {
        max-width: 100%;
        overflow-wrap: anywhere;
    }


    /* ------------------------------
       Trust
       ------------------------------ */

    .trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }


    /* ------------------------------
       Footer
       ------------------------------ */

    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 34px;
    }

    .footer-inner > div:first-child,
    .footer-address-column {
        padding-left: 0;
    }

    .footer-salon-address {
        white-space: normal;
    }


    /* ------------------------------
       CTA
       ------------------------------ */

    .cta-inner {
        min-height: 330px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        background-size: 50% 100%;
    }

    .cta-copy {
        padding: 36px 20px 36px 30px;
    }

    .cta-copy h2 {
        max-width: 100%;
        white-space: normal;
        font-size: clamp(30px, 4vw, 40px);
        overflow-wrap: anywhere;
    }

    .cta-copy p {
        max-width: 100%;
        font-size: 19px;
    }

    .cta-copy .btn {
        width: min(310px, 100%);
        margin-top: 28px;
    }


    /* ------------------------------
       Modal
       ------------------------------ */

    .modal {
        padding: 16px;
    }

    .modal-card {
        width: min(600px, 100%);
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }


    /* ------------------------------
       Archive projects
       ------------------------------ */

    .projects-page-title {
        font-size: clamp(48px, 6vw, 60px);
        overflow-wrap: anywhere;
    }

    .projects-page-lead {
        font-size: 19px;
    }

    .projects-page-sublead {
        font-size: 16px;
    }

    .projects-filters {
        gap: 10px;
    }

    .projects-filter {
        min-height: 44px;
        padding-inline: 10px;
        font-size: 14px;
    }

    .projects-page-card-title {
        font-size: clamp(24px, 3vw, 30px);
        overflow-wrap: anywhere;
    }

    .projects-page-card-location,
    .projects-page-card-details {
        overflow-wrap: anywhere;
    }


    /* ------------------------------
       Reviews
       ------------------------------ */

    .reviews-page-title {
        font-size: clamp(46px, 6vw, 55px);
    }

    .reviews-page-lead {
        font-size: 19px;
    }

    .reviews-section-title {
        margin-top: 25px;
        font-size: 40px;
    }

    .review-card-title {
        font-size: 25px;
    }

    .reviews-banner-inner {
        min-height: 165px;
    }

    .reviews-banner-button {
        flex-basis: 285px;
        font-size: 18px;
    }

    .reviews-banner h2 {
        font-size: 38px;
    }

    .reviews-banner p {
        font-size: 16px;
    }


    /* ------------------------------
       Монограммы
       ------------------------------ */

    .reviews-banner-monogram {
        left: -70px;
        top: auto;
        right: auto;
        bottom: -105px;
        width: 340px;
        opacity: .32;
    }

    .projects-page-banner .reviews-banner-monogram {
        left: -70px;
        top: auto;
        right: auto;
        bottom: -105px;
        width: 340px;
        opacity: .28;
    }


    /* ------------------------------
       Старый шаблон project-single
       ------------------------------ */

    .project-single-layout {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(240px, 0.8fr);

        gap: 28px;
    }
}


/* =========================================================
   21. Мобильные — 768px и меньше
   ========================================================= */

@media (max-width: 768px) {

    :root {
        --container: calc(100% - 28px);
    }


    /* ------------------------------
       Header
       ------------------------------ */

    .site-header {
        position: relative;
        overflow: visible;
    }

    .header-inner {
        min-height: 68px;
    }

    .site-logo {
        margin-left: 8px;
    }

    .site-logo img {
        width: 165px;
        max-height: 52px;
    }

    .header-monogram-img {
        left: -30px;
        top: -12px;
        width: 140px;
    }

    .nav-toggle {
        display: block;
        flex: 0 0 auto;
        margin-left: auto;
        font-size: 28px;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 8px 14px 14px;

        background: var(--terracotta);
        box-shadow: 0 8px 18px rgba(0, 0, 0, .12);

        font-size: 16px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        display: flex;
        align-items: center;

        min-height: 44px;
        padding: 8px;

        border-bottom: 1px solid rgba(255,255,255,.16);
    }

    .site-nav a:last-child {
        border-bottom: 0;
    }

    .site-nav a.is-active::after {
        right: 8px;
        bottom: 5px;
        left: 8px;
    }


    /* ------------------------------
       Hero
       ------------------------------ */

    .hero .hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-image {
        order: -1;
        min-height: clamp(260px, 52vw, 360px);
    }

    .hero-copy {
        width: 100%;
        padding: 28px 0 30px;
    }

    .hero-copy h1 {
        max-width: 100%;
        margin-bottom: 14px;
        font-size: clamp(36px, 9vw, 46px);
        line-height: 1;
    }

    .hero-copy .lead {
        font-size: 17px;
        line-height: 1.25;
    }

    .hero-copy .sublead {
        font-size: 14px;
        line-height: 1.3;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;

        width: 100%;
        gap: 10px;
    }

    .hero-actions .btn,
    .hero-actions .btn.secondary {
        width: 100%;
        min-height: 46px;
        padding-inline: 16px;
        font-size: 16px;
    }

    .hero-facts {
        gap: 24px;
        flex-wrap: wrap;
    }

    .fact strong {
        font-size: 30px;
    }


    /* ------------------------------
       Story
       ------------------------------ */

    .story-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .story-photo {
        min-height: auto;
        padding-top: 12px;
    }

    .story-photo img {
        width: min(100%, 520px);
    }

    .story-monogram-img {
        left: -15px;
        top: -10px;
        width: 768px;
    }

    .story-copy {
        padding: 28px 0 34px;
    }

    .story-copy h2 {
        font-size: clamp(36px, 8vw, 45px);
    }

    .story-copy p {
        max-width: 100%;
        font-size: 14px;
        overflow-wrap: anywhere;
    }


    /* ------------------------------
       Statistics
       ------------------------------ */

    .stats {
        padding: 18px 0 22px;
    }

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

    .stat {
        padding: 14px 18px 18px;

        border-right: 0;
        border-bottom: 1px solid rgba(193, 94, 66, .35);
    }

    .stat:not(:last-child)::after {
        display: none;
    }

    .stat:last-child {
        border-bottom: 0;
    }

    .stat strong {
        font-size: 54px;
    }

    .stat span {
        max-width: 260px;
        margin-top: 8px;
        font-size: 17px;
    }


    /* ------------------------------
       Services
       ------------------------------ */

    .service-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .service-card {
        height: auto;
        min-height: 390px;
    }

    .service-card::before {
        background: linear-gradient(
            90deg,
            rgba(44, 52, 38, .96) 0%,
            rgba(44, 52, 38, .88) 55%,
            rgba(44, 52, 38, .48) 100%
        );
    }

    .service-card.kitchen::before,
    .service-card.materials::before {
        background: linear-gradient(
            90deg,
            rgba(89, 98, 74, .96) 0%,
            rgba(89, 98, 74, .88) 55%,
            rgba(89, 98, 74, .50) 100%
        );
    }

    .service-content {
        width: 100%;
        min-height: 390px;
        padding: 28px 24px 76px;
    }

    .service-card.kitchen .service-content h3,
    .service-content h3 {
        width: auto;
        max-width: 100%;
        white-space: normal;
        font-size: 31px;
    }

    .service-content p,
    .service-content li {
        font-size: 15px;
        line-height: 1.3;
    }

    .service-content .btn {
        right: 24px;
        bottom: 22px;
        left: 24px;

        min-height: 46px;

        font-size: 15px;
    }


    /* ------------------------------
       Projects carousel
       ------------------------------ */

    .projects-grid {
        gap: 12px;

        padding-right: 4px;

        overflow-x: auto;

        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
    }

    .projects-grid .project-card {
        flex: 0 0 100%;
        scroll-snap-align: center;
    }

    .projects-control {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 48px;
        height: 48px;

        top: 38%;

        z-index: 30;
    }

    .projects-control-prev {
        left: 5px;
    }

    .projects-control-next {
        right: 5px;
    }

    .projects-control-icon {
        width: 19px;
        height: 19px;
    }

    .project-image {
        aspect-ratio: 1.55;
    }

    .project-card-title {
        min-height: 0;

        padding: 10px 4px 0;

        font-size: 18px;
        line-height: 1.2;
    }


    /* ------------------------------
       Why
       ------------------------------ */

    .why {
        padding: 28px 0 38px;
    }

    .why .section-title,
    .section-title {
        margin-bottom: 22px;
        font-size: clamp(30px, 8vw, 36px);
        line-height: 1.05;
        overflow-wrap: anywhere;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .why-item img {
        margin-bottom: 14px;
    }

    .why-item h3 {
        font-size: 18px;
        line-height: 1.2;
    }

    .why-item p {
        font-size: 15px;
        line-height: 1.35;
    }

    .why-line {
        white-space: normal;
    }


    /* ------------------------------
       Trust
       ------------------------------ */

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .trust-col {
        padding: 0 0 24px;

        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.3);
    }

    .trust-col:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .trust-col h3 {
        font-size: 22px;
    }


    /* ------------------------------
       Reviews
       ------------------------------ */

    .reviews-hero {
        padding: 20px 0 24px;
    }

    .reviews-page-title {
        margin-bottom: 12px;

        font-size: 42px;
        line-height: 1;

        overflow-wrap: anywhere;
    }

    .reviews-page-lead {
        font-size: 17px;
    }

    .reviews-section-title {
        margin-top: 24px;

        font-size: 34px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    .review-card-title {
        font-size: 29px;
    }

    .review-play {
        width: 58px;
        height: 58px;
    }

    .review-play span {
        border-top-width: 9px;
        border-bottom-width: 9px;
        border-left-width: 13px;
    }

    .reviews-load-more {
        width: 240px;
        min-height: 42px;

        margin-top: 21px;

        font-size: 15px;
    }

    .reviews-banner-monogram {
        left: -30px;
        top: 0px;
        right: auto;
        bottom: -88px;

        width: 410px;

        opacity: 1;
    }

    .reviews-banner-inner {
        min-height: 220px;

        flex-direction: column;
        justify-content: center;
        align-items: center;

        gap: 12px;

        padding: 26px 0;

        text-align: center;
    }

    .reviews-banner-content {
        width: 100%;

        align-items: center;
        text-align: center;
    }

    .reviews-banner h2 {
        width: 100%;

        font-size: clamp(30px, 7.5vw, 38px);
        line-height: 1.05;

        text-align: center;

        overflow-wrap: anywhere;
    }

    .reviews-banner p {
        width: 100%;

        font-size: 16px;
        line-height: 1.25;

        text-align: center;
    }

    .reviews-banner-button {
        width: 100%;

        flex: 0 1 auto;

        min-height: 48px;

        padding-inline: 18px;

        font-size: 17px;
    }


    /* ------------------------------
       Баннер проектов
       ------------------------------ */

    .projects-page-banner .reviews-banner-monogram {
        left: -30px;
        top: 0px;
        right: auto;
        bottom: -88px;

        width: 410px;

        opacity: 1;
    }


    /* ------------------------------
       CTA
       ------------------------------ */

    .cta-inner {
        display: block;

        min-height: auto;

        padding-top: 185px;

        background-size: 100% 185px;
        background-position: center top;
    }

    .cta-inner::before {
        width: 100%;
        height: 185px;

        background: linear-gradient(
            180deg,
            rgba(235,216,202,0) 0%,
            rgba(235,216,202,.60) 68%,
            var(--milk) 100%
        );
    }

    .cta-copy {
        grid-column: auto;

        align-items: center;

        padding: 28px 0 34px;

        background: var(--milk);

        text-align: center;
    }

    .cta-copy h2 {
        max-width: 100%;

        margin-bottom: 16px;

        font-size: clamp(30px, 8vw, 36px);
        line-height: 1.08;

        text-align: center;

        white-space: normal;
    }

    .cta-copy p {
        font-size: 17px;
        line-height: 1.35;

        text-align: center;
    }

    .cta-copy .btn {
        width: 100%;
        max-width: 340px;

        min-height: 48px;

        margin-top: 24px;
    }


    /* ------------------------------
       Footer
       ------------------------------ */

    .footer-inner {
        grid-template-columns: 1fr;

        gap: 24px;

        min-height: auto;

        padding: 34px 0 30px;
    }

    .footer-inner > div:first-child,
    .footer-address-column {
        padding-left: 0;
    }

    .footer-production {
        margin-top: 20px;
    }

    .socials {
        margin-top: 22px;
    }

    .socials a {
        width: 46px;
        height: 46px;
    }


    /* ------------------------------
       Modal
       ------------------------------ */

    .modal {
        align-items: flex-start;

        padding: 12px;

        overflow-y: auto;
    }

    .modal-card {
        width: 100%;

        max-height: calc(100vh - 24px);

        padding: 22px 18px 20px;
    }


    /* ------------------------------
       Архив проектов
       ------------------------------ */

    .projects-hero {
        padding: 20px 0 16px;
    }

    .projects-page-title {
        font-size: clamp(38px, 9vw, 46px);
        line-height: 1;
    }

    .projects-page-lead {
        font-size: 17px;
        line-height: 1.25;
    }

    .projects-page-sublead {
        margin-bottom: 14px;

        font-size: 14px;
        line-height: 1.3;
    }

    .projects-filters {
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 8px;
    }

    .projects-filter {
        min-height: 44px;

        padding: 7px 8px;

        font-size: 13px;
        line-height: 1.15;
    }

    .projects-page-grid {
        grid-template-columns: 1fr;
        row-gap: 22px;
    }

    .projects-page-card-title {
        font-size: 24px;
        line-height: 1.15;
    }

    .projects-page-card-location,
    .projects-page-card-details {
        font-size: 15px;
        line-height: 1.3;
    }

    .projects-page-card-button {
        width: 100%;
        max-width: 250px;

        min-height: 42px;

        font-size: 13px;
    }

    .projects-load-more {
        width: 100%;
        max-width: 250px;

        min-height: 44px;

        font-size: 15px;
    }


    /* ------------------------------
       Старый project-single
       ------------------------------ */

    .project-single {
        padding: 30px 0 50px;
    }

    .project-single-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .project-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-single-header h1 {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}


/* =========================================================
   22. Маленькие телефоны — 480px и меньше
   ========================================================= */

@media (max-width: 480px) {

    /* ------------------------------
       Header monogram
       ------------------------------ */

    .site-logo img {
        width: 148px;
    }

    .header-monogram-img {
        left: -18px;
        top: -22px;
        width: 190px;
    }

    .nav-toggle {
        font-size: 26px;
    }


    /* ------------------------------
       Hero
       ------------------------------ */

    .hero-image {
        min-height: 240px;
    }

    .hero-copy h1 {
        font-size: 36px;
    }

    .hero-copy .lead {
        font-size: 16px;
    }

    .hero-facts {
        gap: 20px;
    }

    .fact strong {
        font-size: 27px;
    }

    .fact span {
        max-width: 120px;
        font-size: 11px;
    }


    /* ------------------------------
       Story / founders monogram
       ------------------------------ */

    .story-monogram-img {
        left: -70px;
        top: +30px;
        width: 430px;
    }

    .story-copy h2 {
        font-size: 34px;
    }


    /* ------------------------------
       Projects carousel controls
       ------------------------------ */

    .projects-control {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 44px;
        height: 44px;

        top: 38%;

        z-index: 30;
    }

    .projects-control-prev {
        left: 4px;
    }

    .projects-control-next {
        right: 4px;
    }

    .projects-control-icon {
        width: 17px;
        height: 17px;
    }


    /* ------------------------------
       Services
       ------------------------------ */

    .service-card {
        min-height: 370px;
    }

    .service-content {
        min-height: 370px;

        padding: 24px 20px 24px;
    }

    .service-card.kitchen .service-content h3,
    .service-content h3 {
        font-size: 29px;
    }

    .service-content p,
    .service-content li {
        font-size: 14px;
    }

    .service-content .btn {
        position: static;

        width: 100%;

        margin-top: 22px;

        min-height: 46px;
    }


    /* ------------------------------
       Общие секции
       ------------------------------ */

    .section {
        padding: 34px 0;
    }


    /* ------------------------------
       Архив проектов
       ------------------------------ */

    .projects-page-title {
        font-size: 38px;
    }

    .projects-page-lead {
        font-size: 16px;
    }

    .projects-page-sublead {
        font-size: 14px;
    }

    .projects-filters {
        grid-template-columns: 1fr;
    }

    .projects-page-card-title {
        font-size: 23px;
    }


    /* ------------------------------
       Отзывы
       ------------------------------ */

    .reviews-breadcrumbs {
        font-size: 12px;
    }

    .reviews-page-title {
        font-size: 36px;
    }

    .reviews-page-lead {
        font-size: 16px;
    }

    .reviews-section-title {
        font-size: 31px;
    }

    .review-card-title {
        font-size: 26px;
    }

    .reviews-banner-inner {
        min-height: 205px;

        padding: 24px 0;
    }

    .reviews-banner h2 {
        font-size: 30px;
    }

    .reviews-banner p {
        font-size: 15px;
    }

    .reviews-banner-button {
        font-size: 16px;
    }


    /* ------------------------------
       Монограмма баннера отзывов
       ------------------------------ */

    .reviews-banner .reviews-banner-monogram {
        left: -75px;
        top: 0px;
        right: auto;
        bottom: -105px;

        width: 360px;

        opacity: 1;
    }


    /* ------------------------------
       Монограмма баннера проектов
       ------------------------------ */

    .projects-page-banner .reviews-banner-monogram {
        left: -75px;
        top: 0px;
        right: auto;
        bottom: -105px;

        width: 360px;

        opacity: 1;
    }


    /* ------------------------------
       Старый project-single
       ------------------------------ */

    .project-single-header h1 {
        font-size: 35px;
    }

    .project-gallery {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   FIX — ВОПРОСЫ И ОТВЕТЫ
   ========================================================= */

.trust .faq,
.trust .faq-item,
.trust .faq-question,
.trust .faq-answer {
    background: transparent !important;
}

.trust .faq-question {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    padding: 10px 0;
    margin: 0;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    color: var(--white) !important;

    box-shadow: none !important;

    font: inherit;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;
}

.trust .faq-question span,
.trust .faq-question .faq-icon {
    color: var(--white) !important;
}

.trust .faq-item {
    background: transparent !important;

    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.trust .faq-answer {
    background: transparent !important;
    color: var(--white) !important;

    box-shadow: none !important;
}

.trust .faq-question:hover,
.trust .faq-question:focus,
.trust .faq-question:active {
    background: transparent !important;
    color: var(--white) !important;
    box-shadow: none !important;
}

.trust .faq-question:focus-visible {
    outline: 1px solid rgba(255, 255, 255, 0.7);
    outline-offset: 2px;
}
