/* =========================
   CSS VARIABLES
========================= */
:root {
    --bg-light:      #F7F6F3;
    --bg-dark:       #111;
    --text:          #1C1C1C;
    --accent:        #9A8468;
    --header-height: 80px;
}

/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg-light);
    overflow-x: hidden;
}

/* =========================
   TYPOGRAPHY
========================= */
h1, h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

h1 { font-size: 41px; line-height: 1.25; }
h2 { font-size: 38px; }

/* =========================
   LAYOUT
========================= */
.container {
    padding: 90px 12%;
}

.container.narrow {
    max-width: 900px;
    margin: 0 auto;
}

.section.light {
    background: var(--bg-light);
}

/* Смещение при якорном скролле, чтобы контент не прятался за хедер */
section[id] {
    scroll-margin-top: var(--header-height);
}

/* =========================
   SITE HEADER (sticky)
========================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    padding: 0 5%;
    transition: background 0.35s, box-shadow 0.35s;
}

.site-header.scrolled {
    background: rgba(28, 28, 28, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 24px;
}

.header-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.header-logo-img {
    height: 54px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.25s;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--accent);
}

/* Эти ссылки дублируют header-right — показываем только в мобильном меню */
.nav-phone,
.nav-cta {
    display: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.header-phone {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.25s;
}

.header-phone:hover {
    color: var(--accent);
}

/* Маленькая версия кнопки для хедера */
.btn-sm {
    padding: 10px 24px !important;
    font-size: 12px !important;
    margin-top: 0 !important;
}

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-shrink: 0;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    min-height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('99.webp') center / cover no-repeat;
    filter: brightness(0.55);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.subtitle {
    font-size: 18px;
    max-width: 560px;
    margin-top: 56px;
}

.accent {
    color: var(--accent);
}

/* В герое «частных домов» чуть светлее — цвет акцента, адаптированный под тёмный фон */
.hero h1 .accent {
    color: #c4a882;
}

/* Hero: текст по центру, логотип — декоративно в правом углу */
/* Hero с лого справа */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(40px, 8vw, 200px);
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    max-width: 640px;
}

.hero-text .btn-primary {
    margin-top: 40px;
}

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

.hero-logo img {
    width: 420px;
    max-width: 100%;
    opacity: 0.9;
    filter: grayscale(100%) contrast(1.1);
}

/* Логотип в хедере скрыт пока виден hero-logo */
.header-logo-link {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.header-logo-link.logo-visible {
    opacity: 1;
    pointer-events: auto;
}


/* =========================
   BUTTONS
========================= */
.btn-primary,
.btn-secondary {
    display: inline-block;
    margin-top: 28px;
    padding: 15px 38px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* Блик-анимация */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0)    0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0)    100%
    );
    animation: shine 4s infinite;
}

@keyframes shine {
    0%   { left: -100%; }
    25%  { left:  100%; }
    100% { left:  100%; }
}

.btn-primary:hover { background: #7f6b54; }

.btn-secondary {
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
}

.btn-secondary:hover {
    background: var(--accent);
    color: #fff;
}

/* =========================
   LIST
========================= */
.list {
    list-style: none;
    margin-top: 24px;
}

.list li {
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    font-size: 16px;
}

.list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* =========================
   SPLIT GRID
========================= */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px 48px;
    align-items: center;
}

.split-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* =========================
   PORTFOLIO
========================= */
/* Две карточки — широкие */
.portfolio--two {
    grid-template-columns: repeat(2, 1fr);
}
.portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.portfolio figure {
    overflow: hidden;
}

.portfolio img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio figure:hover img {
    transform: scale(1.04);
}

.portfolio figcaption {
    margin-top: 12px;
    font-size: 15px;
    opacity: 0.7;
    line-height: 1.5;
}

/* Карточка-кнопка открытия галереи */
.portfolio-item {
    cursor: pointer;
    position: relative;
}

.portfolio-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Оверлей при наведении */
.portfolio-overlay {
    position: absolute;
    inset: 0 0 auto 0; /* поверх изображения */
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    pointer-events: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.portfolio-item:hover .portfolio-overlay,
.portfolio-item:focus-visible .portfolio-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.45);
}

/* =========================
   LIGHTBOX
========================= */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.93);
    align-items: center;
    justify-content: center;
}

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

/* Кнопка закрытия */
.lb-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    padding: 8px;
    z-index: 10;
    line-height: 0;
    transition: color 0.2s, transform 0.2s;
}

.lb-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* Стрелки влево / вправо */
.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    padding: 18px 12px;
    z-index: 10;
    line-height: 0;
    transition: background 0.2s, color 0.2s;
}

.lb-arrow:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.lb-prev { left: 16px; }
.lb-next { right: 16px; }

/* Область с картинкой */
.lb-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 80px 80px;
}

.lb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.6);
    animation: lb-appear 0.22s ease;
}

@keyframes lb-appear {
    from { opacity: 0.3; transform: scale(0.97); }
    to   { opacity: 1;   transform: scale(1); }
}

/* Нижняя строка: название + счётчик */
.lb-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    pointer-events: none;
}

.lb-title   { opacity: 0.85; }
.lb-counter { opacity: 0.55; font-size: 13px; }

/* =========================
   SECTION CTA (после секции)
========================= */
.section-subtitle {
    font-size: 16px;
    opacity: 0.72;
    max-width: 700px;
    margin-top: 12px;
    line-height: 1.6;
}

.section-cta {
    text-align: center;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.section-cta p {
    font-size: 16px;
    opacity: 0.8;
}

.section-cta .btn-primary,
.section-cta .btn-secondary {
    margin-top: 20px;
}

/* =========================
   PROCESS CARDS
========================= */
.process-grid.two-lines {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 36px;
    margin-top: 56px;
}

.process-card {
    display: flex;
    flex-direction: column;
}

.process-media {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.process-media img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* Квадратный карман под номер */
.process-media::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(220px, 32%);
    height: min(220px, 32%);
    background: var(--bg-light);
    z-index: 2;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.06);
}

.process-number {
    position: absolute;
    left: 28px;
    bottom: 28px;
    z-index: 3;
    font-family: 'Playfair Display', serif;
    font-size: 52px;
    line-height: 1;
    color: var(--accent);
    pointer-events: none;
}

.process-card h3 {
    margin-top: 12px;
    font-size: 19px;
}

.process-card p {
    margin-top: 8px;
    font-size: 15px;
    opacity: 0.8;
}

/* =========================
   RESULT — SNAKE LAYOUT
========================= */
.result-full {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 6%;
    padding-right: 6%;
}

.result-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr);
    row-gap: 60px;
    margin-top: 56px;
}

/* Центральная ось */
.result-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(0, 0, 0, 0.12);
    transform: translateX(-50%);
}

/* Точки на оси */
.result-dot {
    position: absolute;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    transform: translateX(-50%);
}

.result-dot:nth-child(1) { top:  4%; }
.result-dot:nth-child(2) { top: 26%; }
.result-dot:nth-child(3) { top: 50%; }
.result-dot:nth-child(4) { top: 74%; }
.result-dot:nth-child(5) { top: 96%; }

.result-item {
    display: flex;
    max-width: 100%;
}

.result-item.left {
    grid-column: 1;
    justify-content: flex-end;
    padding-right: 60px;
    text-align: right;
}

.result-item.right {
    grid-column: 3;
    justify-content: flex-start;
    padding-left: 60px;
    text-align: left;
}

.result-content {
    max-width: 520px;
}

.result-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
}

.result-content p {
    margin-top: 10px;
    font-size: 15px;
    opacity: 0.85;
    line-height: 1.65;
}

/* =========================
   AUDIENCE + TRUST
========================= */
.audience-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;                 /* gap убран — разделитель даёт визуальный отступ */
    align-items: start;
    position: relative;
}

/* Вертикальная линия-разделитель */
.audience-trust::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: rgba(0, 0, 0, 0.1);
    transform: translateX(-50%);
}

/* Акцентная точка на линии */
.audience-trust::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Внутренние отступы у каждой половины вместо gap.
   min-width: 0 — запрещает ячейке Grid вырасти шире своей 1fr доли */
.audience-block {
    padding-right: 60px;
    min-width: 0;
}

.trust-block {
    padding-left: 60px;
    min-width: 0;
}

.audience-block h2 { margin-bottom: 24px; }

.audience-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.audience-list li strong {
    display: block;
    font-size: 16px;
    margin-bottom: 2px;
}

.audience-list li span {
    font-size: 14px;
    opacity: 0.72;
    line-height: 1.5;
}

.trust-block h2 { margin-bottom: 24px; }

.trust-points {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.trust-number {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    line-height: 1;
    color: var(--accent);
    flex-shrink: 0;
}

.trust-item p {
    font-size: 14px;
    opacity: 0.78;
    line-height: 1.5;
}

/* =========================
   SECTION DIVIDER
========================= */
.section-divider {
    position: relative;
    margin: 0 auto;
    max-width: 900px;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.section-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* =========================
   PRICING
========================= */
.prices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.price-card {
    background: #fff;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s, transform 0.3s;
}

.price-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Выделенная (средняя) карточка */
.price-card--featured {
    border-color: var(--accent);
    transform: translateY(-8px);
}

.price-card--featured:hover {
    transform: translateY(-12px);
}

.price-badge {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
}

.price-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
}

.price-amount {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
}

.price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.price-features li {
    font-size: 15px;
    padding-left: 20px;
    position: relative;
    opacity: 0.8;
}

.price-features li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.price-term {
    font-size: 14px;
    opacity: 0.55;
    font-style: italic;
}

.price-card .btn-primary,
.price-card .btn-secondary {
    margin-top: 0;
    text-align: center;
    display: block;
}

.prices-disclaimer {
    margin-top: 24px;
    font-size: 13px;
    opacity: 0.5;
    font-style: italic;
}

/* Уменьшенный отступ между «Стоимость» и «Отзывы» */
#prices .container  { padding-bottom: 40px; }
#reviews .container { padding-top:    40px; }

/* =========================
   REVIEWS
========================= */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.review-card {
    background: #fff;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-left: 3px solid var(--accent);
}

.review-stars {
    color: var(--accent);
    font-size: 18px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 14px;
    line-height: 1.65;
    opacity: 0.85;
    font-style: normal;
    flex: 1;
}

.review-author {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 16px;
}

.review-name {
    font-weight: 600;
    font-size: 15px;
}

.review-meta {
    font-size: 13px;
    opacity: 0.6;
    margin-top: 4px;
}

/* =========================
   CONTACT FORM
========================= */
.form-intro {
    font-size: 16px;
    opacity: 0.72;
    margin-top: 12px;
    max-width: 600px;
    line-height: 1.6;
}

.form-contact {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    opacity: 0.65;
}

.form-group input,
.form-group textarea {
    padding: 16px 20px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--text);
    transition: border-color 0.25s;
    resize: vertical;
    outline: none;
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group input.is-error {
    border-color: #c0392b;
}

.form-consent {
    display: flex;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.72;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--accent);
    cursor: pointer;
    padding: 0;
    border: none;
}

.checkbox-label a {
    color: var(--accent);
    text-decoration: underline;
}

.form-contact .btn-primary {
    align-self: flex-start;
    margin-top: 0;
}

.form-feedback {
    padding: 16px 24px;
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.5;
}

.form-feedback.success {
    background: #f0faf0;
    border-left: 4px solid #27ae60;
    color: #1e8449;
}

.form-feedback.error {
    background: #fdf0f0;
    border-left: 4px solid #c0392b;
    color: #922b21;
}

/* =========================
   FAQ
========================= */
.faq-container {
    max-width: 100%;
    margin-top: 48px;
}

.faq-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

.faq-question {
    width: 100%;
    background: #fff;
    border: none;
    padding: 20px 24px;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f8f8f6;
}

.faq-question span {
    flex: 1;
    padding-right: 20px;
}

.faq-arrow {
    flex-shrink: 0;
    transition: transform 0.3s;
    color: #888;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: var(--text);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: #fafaf8;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    padding: 24px;
}

.faq-answer p {
    font-size: 16px;
    line-height: 1.75;
    color: #555;
    margin-bottom: 16px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    font-weight: 600;
    color: var(--text);
}

.faq-answer em {
    font-style: italic;
    color: #777;
}

/* =========================
   FOOTER
========================= */
.footer {
    position: relative;
    background-color: #2c2c2c;
    color: #fff;
    padding: 72px 5%;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* footer_right.png в псевдоэлементе — чтобы применить цветовой фильтр */
.footer::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 69%;
    height: 96%;
    background-image: url('footer_right.png');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: auto 100%;
    filter: sepia(0.85) saturate(0.75) brightness(0.40);
    pointer-events: none;
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 48px;
    align-items: flex-start;
    justify-content: center;
}

.footer-section p {
    margin: 5px 0;
    line-height: 1.5;
}

.footer-logo {
    max-width: 143px;
    height: auto;
    display: block;
}

.footer-label {
    font-weight: 500;
    color: #bbb;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.footer address {
    font-style: normal;
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.82;
}

.footer a {
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer a:hover {
    opacity: 0.7;
}

.footer-phone-link {
    font-size: 16px;
    font-weight: 500;
}

/* =========================
   SCROLL TO TOP
========================= */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #2c2c2c;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
    z-index: 998;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #3d3d3d;
    transform: translateY(-3px);
}

/* =========================
   RESPONSIVE — 1100px (tablet)
========================= */
@media (max-width: 1100px) {

    h1 { font-size: 44px; }
    h2 { font-size: 32px; }

    .container { padding: 72px 6%; }

    /* Header: скрываем навигацию и телефон, показываем бургер */
    .header-nav {
        display: none;
    }

    .header-nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(28, 28, 28, 0.98);
        padding: 24px 5% 32px;
        gap: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 499;
    }

    .header-nav.is-open .nav-phone,
    .header-nav.is-open .nav-cta {
        display: block;
    }

    .header-right .header-phone { display: none; }
    .burger { display: flex; }

    /* Split */
    .split-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .split-image { order: -1; }
    .split-image img { height: 300px; }

    /* Process */
    .process-grid.two-lines {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
    }

    /* Result: сворачиваем змейку в левый таймлайн */
    .result-grid {
        grid-template-columns: 32px 1fr;
        row-gap: 72px;
    }

    .result-line {
        left: 16px;
        transform: none;
    }

    .result-item,
    .result-item.left,
    .result-item.right {
        grid-column: 2;
        padding-left: 48px;
        padding-right: 0;
        text-align: left;
        justify-content: flex-start;
    }

    .result-icon { width: 64px; height: 64px; }

    /* Audience: на планшете — вертикально */
    .audience-trust {
        grid-template-columns: 1fr;
    }

    .audience-block {
        padding-right: 0;
        padding-bottom: 40px;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .trust-block {
        padding-left: 0;
        padding-top: 40px;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Вертикальная линия и точка скрыты — граница через border-top у .trust-block */
    .audience-trust::before,
    .audience-trust::after {
        display: none;
    }

    .trust-points {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 16px;
    }

    .trust-item { min-width: 0; }

    /* Prices */
    .prices-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .price-card--featured {
        transform: none;
        border-width: 2px;
    }

    .price-card--featured:hover {
        transform: translateY(-4px);
    }

    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
        max-width: 580px;
    }
}

/* =========================
   RESPONSIVE — 600px (mobile)
========================= */
@media (max-width: 600px) {

    h1 { font-size: 32px; line-height: 1.2; }
    h2 { font-size: 26px; }
    .subtitle { font-size: 16px; margin-top: 12px; }
    .container { padding: 56px 5%; }

    .btn-primary {
        width: 100%;
        text-align: center;
        margin-top: 32px;
    }

    /* Hero */
    .hero { min-height: auto; padding-bottom: 80px; }
    .hero-content { padding-top: calc(var(--header-height) + 48px); }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-logo { display: none; }

    /* Process */
    .process-grid.two-lines { grid-template-columns: 1fr; }
    .process-media img { height: 220px; }
    .process-number { font-size: clamp(40px, 10vw, 56px); }
    .process-media::before { width: min(180px, 36%); height: min(180px, 36%); }
    .process-card h3 { font-size: 20px; }
    .process-card p  { font-size: 15px; }

    /* Result: отключаем змейку, делаем вертикальный список */
    .result-line,
    .result-dot { display: none !important; }

    .result-grid {
        display: flex;
        flex-direction: column;
        gap: 32px;
        margin-top: 48px;
    }

    .result-item,
    .result-item.left,
    .result-item.right {
        display: block;
        padding: 0;
        text-align: left;
    }

    .result-content { max-width: 100%; }

    .result-content h3 {
        font-size: 18px;
        line-height: 1.25;
        word-break: break-word;
    }

    .result-content p {
        font-size: 15px;
        line-height: 1.55;
        word-break: break-word;
    }

    .result-item::after {
        content: "";
        display: block;
        margin-top: 24px;
        height: 1px;
        background: rgba(0, 0, 0, 0.06);
    }

    .result-item:last-child::after { display: none; }

    .result-full { padding-left: 5%; padding-right: 5%; }

    /* Portfolio */
    .portfolio img { height: 240px; }
    .portfolio figcaption { font-size: 14px; }

    /* Form */
    .form-row { grid-template-columns: 1fr; }
    .form-contact .btn-primary { width: 100%; text-align: center; }

    /* FAQ */
    .faq-question { font-size: 16px; padding: 16px 18px; }
    .faq-item.active .faq-answer { padding: 18px; }

    /* Audience */
    .audience-block {
        padding-right: 0;
        padding-bottom: 28px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .trust-block {
        padding-left: 0;
        padding-top: 28px;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .audience-trust::before,
    .audience-trust::after { display: none; }
    .trust-points { grid-template-columns: 1fr; gap: 14px; }
    .trust-item   { gap: 12px; min-width: 0; }
    .trust-number { font-size: 30px; }
    .audience-list li strong { font-size: 15px; }
    .audience-list li span   { font-size: 14px; }

    /* Footer */
    .footer { padding: 56px 5% 72px; }
    .footer::after {
        width: 100%;
        height: 75%;
        bottom: -12px;
        background-position: right bottom;
    }
    .footer-content {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    .footer-logo { margin: 0; }

    /* Scroll-to-top */
    .scroll-to-top { width: 44px; height: 44px; bottom: 24px; right: 18px; }

    /* Section CTA button full-width */
    .section-cta .btn-primary,
    .section-cta .btn-secondary {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Portfolio */
    .portfolio--two { grid-template-columns: 1fr; }

    /* Lightbox mobile */
    .lb-stage  { padding: 52px 12px 64px; }
    .lb-prev   { left: 6px; }
    .lb-next   { right: 6px; }
    .lb-arrow  { padding: 14px 8px; }

    /* Modal form mobile */
    .form-modal__box {
        padding: 36px 20px 32px;
        margin: 12px;
        max-height: calc(100vh - 24px);
    }
}


/* =========================
   MODAL FORM
========================= */
.form-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.form-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.form-modal__box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 4px;
    padding: 52px 48px 44px;
    width: 100%;
    max-width: 680px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    animation: modal-appear 0.22s ease;
}

@keyframes modal-appear {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.form-modal__box h2 {
    margin-top: 0;
    margin-bottom: 8px;
}

.form-modal__close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 6px;
    line-height: 0;
    transition: color 0.2s, transform 0.2s;
}

.form-modal__close:hover {
    color: #333;
    transform: rotate(90deg);
}

/* =========================
   FIX 19.09.2026 — мобильная шапка: бургер не должен уезжать за край экрана
   (только ≤480px, десктоп и планшеты не затронуты)
========================= */
@media (max-width: 480px) {
    .header-inner { gap: 8px; }
    .header-right { min-width: 0; }
    .header-right .btn-sm { padding: 10px 12px !important; }
}
@media (max-width: 400px) {
    .header-right .btn-sm { font-size: 11px !important; letter-spacing: 0.02em; padding: 10px 10px !important; }
}
@media (max-width: 360px) {
    .header-logo-img { height: 44px; }
}

/* =========================
   BLOG (19.09.2026)
========================= */
.blog-page main { padding-top: var(--header-height); }
.blog-wrap { max-width: 820px; margin: 0 auto; padding: 48px 5% 72px; }
.blog-crumbs { font-size: 13px; opacity: 0.65; margin-bottom: 22px; }
.blog-crumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(0,0,0,0.25); }
.blog-article h1 { font-size: 38px; line-height: 1.22; margin-bottom: 14px; }
.blog-meta { font-size: 14px; opacity: 0.6; margin-bottom: 28px; }
.blog-article p.blog-lead, .blog-index p.blog-lead { font-size: 19px; line-height: 1.7; margin-bottom: 20px; }
.blog-article h2 { font-size: 28px; line-height: 1.3; margin: 44px 0 14px; }
.blog-article h3 { font-size: 21px; line-height: 1.3; margin: 30px 0 12px; }
.blog-article p { font-size: 17px; margin: 0 0 16px; }
.blog-article ul, .blog-article ol { margin: 0 0 20px 22px; font-size: 17px; }
.blog-article li { margin: 8px 0; }
.blog-article a { color: #7d6a4d; }
.blog-note { border-left: 3px solid var(--accent); background: rgba(154,132,104,0.12); padding: 16px 20px; margin: 24px 0; font-size: 17px; }
.blog-table-wrap { overflow-x: auto; margin: 22px 0 24px; }
.blog-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.blog-table th, .blog-table td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid rgba(0,0,0,0.12); }
.blog-table th { background: rgba(154,132,104,0.16); font-weight: 600; }
.blog-table td:first-child { font-weight: 500; }
.blog-faq { margin: 8px 0 12px; }
.blog-faq-item { border-bottom: 1px solid rgba(0,0,0,0.12); padding: 4px 0; }
.blog-faq-item summary { cursor: pointer; font-weight: 500; font-size: 18px; padding: 12px 0; list-style-position: outside; }
.blog-faq-item p { padding: 0 0 12px; margin: 0; }
.blog-cta { background: #2c2c2c; color: #fff; padding: 32px 32px 36px; margin: 48px 0 12px; }
.blog-cta-title { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 26px; line-height: 1.3; margin-bottom: 10px; }
.blog-cta p { color: rgba(255,255,255,0.85); font-size: 17px; margin: 0; }
.blog-cta .btn-primary { margin-top: 22px; }
.blog-sources { margin-top: 40px; font-size: 14px; opacity: 0.8; }
.blog-sources h2 { font-size: 20px; margin: 0 0 8px; }
.blog-sources ul { font-size: 14px; margin-left: 20px; }
.blog-related { margin-top: 40px; }
.blog-related h2 { font-size: 22px; margin: 0 0 8px; }
.blog-related ul { list-style: none; margin: 0; padding: 0; }
.blog-related li { margin: 8px 0; }
.blog-list { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
.blog-card { display: block; background: #fff; border: 1px solid rgba(0,0,0,0.08); padding: 26px 28px; text-decoration: none; color: inherit; transition: box-shadow .3s, transform .3s; }
.blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.blog-card h2 { font-size: 24px; line-height: 1.3; margin: 0 0 10px; }
.blog-card p { font-size: 16px; margin: 0 0 12px; opacity: 0.85; }
.blog-card-meta { font-size: 13px; opacity: 0.55; }
.blog-card-more { color: #7d6a4d; font-weight: 500; font-size: 15px; }
.blog-index h1 { font-size: 38px; margin-bottom: 12px; }
.blog-index .blog-lead { margin-bottom: 8px; }

/* Блок «Блог» в подвале (как у ЮСК студии и Призмы) */
.footer-blog-card { display: block; max-width: 230px; padding: 12px 16px; border: 1px solid rgba(255,255,255,0.32); line-height: 1.4; transition: border-color .3s, background .3s; }
.footer-blog-card strong { display: block; font-size: 14px; font-weight: 500; }
.footer-blog-card span { display: block; font-size: 12px; opacity: 0.75; margin-top: 2px; }
.footer .footer-blog-card:hover { opacity: 1; border-color: var(--accent); background: rgba(154,132,104,0.12); }

@media (max-width: 600px) {
    .blog-article h1, .blog-index h1 { font-size: 28px; }
    .blog-article h2 { font-size: 23px; margin-top: 36px; }
    .blog-article p.blog-lead, .blog-index p.blog-lead { font-size: 17px; }
    .blog-article p, .blog-article ul, .blog-article ol { font-size: 16px; }
    .blog-cta { padding: 24px 22px 28px; }
    .blog-cta-title { font-size: 22px; }
    .blog-card { padding: 20px 20px; }
    .blog-card h2 { font-size: 21px; }
    .blog-wrap { padding-top: 32px; }
}
