:root {
  --bg: #ffffff;
  --bg-soft: #f6f4f1;
  --text: #1f2320;
  --text-muted: #5f665f;
  --accent: #8a6d4b;      /* тёплое дерево */
  --accent-dark: #6f5539;
  --cta: #2e7d32;         /* кнопка заявки/WhatsApp-зелёный */
  --cta-dark: #1b5e20;
  --border: #e3ded7;
  --radius: 10px;
  --max-w: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.75em; }
h3 { font-size: 1.15rem; }

section { padding: 56px 0; }
section.soft { background: var(--bg-soft); }

a { color: var(--accent-dark); }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s;
}
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-dark); }
.btn-outline { background: transparent; color: var(--accent-dark); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding-top: 12px; padding-bottom: 12px; flex-wrap: nowrap;
}
.logo { font-weight: 800; font-size: 1.4rem; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; }
.main-nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 1rem; white-space: nowrap; }
/* Один бокс у всех пунктов — с дропдауном и без, чтобы высота не гуляла */
.main-nav > a:not(.nav-cta-mobile), .main-nav .nav-drop > a {
  display: inline-flex; align-items: center; min-height: 34px;
}
.main-nav a:hover { color: var(--accent-dark); }
.header-phone { font-weight: 700; text-decoration: none; color: var(--text); white-space: nowrap; }

/* Hero */
.hero { padding: 72px 0; background: var(--bg-soft); }
.hero p.lead { font-size: 1.15rem; color: var(--text-muted); margin: 16px 0 28px; max-width: 640px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-decoration: none; color: var(--text); display: block;
}
.card:hover { border-color: var(--accent); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }
.card .price { margin-top: 12px; font-weight: 700; color: var(--accent-dark); }

/* Benefits */
.benefits { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.benefit h3 { margin-bottom: 6px; }
.benefit p { color: var(--text-muted); font-size: 0.95rem; }

/* Steps */
/* Шаги: на десктопе ровно 3 колонки (6 шагов = 3×2), не «5 + 1 сироткой» */
.steps { display: grid; gap: 24px 20px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { counter-increment: step; }
.step::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 10px;
}

/* Lead form */
.lead-form {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; max-width: 480px;
  margin: 0 auto; /* центр в любой колонке/секции */
}
.lead-form label { display: block; font-weight: 600; font-size: 0.9rem; margin: 14px 0 4px; }
.lead-form input, .lead-form textarea {
  width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 1rem; font-family: inherit;
}
.lead-form .btn { width: 100%; margin-top: 18px; }
.lead-form .privacy-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin-top: 10px; color: var(--text-muted); }

/* Портфолио: карточка проекта */
.work-item {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
}
.work-item figcaption { padding: 12px 16px; font-size: 0.9rem; color: var(--text-muted); }

/* Footer */
.site-footer { background: #23271f; color: #cfd4cc; padding: 40px 0; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer .bottom { margin-top: 28px; font-size: 0.8rem; color: #8b9186; }
.site-footer .footer-h3-gap { margin-top: 20px; }

/* Мобильная панель действий: звонок + квиз */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: none; gap: 10px; padding: 10px 12px;
  background: rgba(9, 12, 22, 0.85); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.mobile-bar .btn { flex: 1; text-align: center; padding: 13px 10px; font-size: 0.82rem; white-space: nowrap; }
@media (max-width: 640px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: 76px; }
}

/* Секция «заголовок + одиночная форма»: всё по центру (сама форма внутри — слева) */
.form-section { text-align: center; }
.form-section .lead-form { text-align: left; }

/* Отзывы: одинаковые карточки — скрин в фикс-окне, цитата, подпись у низа */
.reviews-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-item {
  display: flex; flex-direction: column; position: relative;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--glass, rgba(255, 255, 255, 0.04));
}
.review-shot {
  display: flex; align-items: center; justify-content: center;
  height: 300px; padding: 18px 16px 14px;
  background: rgba(0, 0, 0, 0.25);
}
.review-shot img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: 8px; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}
.review-item figcaption { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.review-item blockquote { font-size: 0.92rem; line-height: 1.5; }
.review-item cite {
  display: block; margin-top: auto; padding-top: 10px; font-style: normal;
  font-size: 0.8rem; color: var(--text-muted);
}

/* Политика: обычный «документный» ритм */
.politika h2 { margin-top: 32px; font-size: 1.25rem; }
.politika p { margin-top: 10px; }

/* Страница 404 */
.err-code {
  font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; line-height: 1;
  color: var(--accent); opacity: 0.35; letter-spacing: 0.04em;
}

/* Бургер (виден только на мобильном) */
.nav-toggle {
  display: none; background: transparent; border: 0; cursor: pointer;
  padding: 10px; margin-left: auto; order: 2;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle span + span { margin-top: 6px; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-cta-mobile { display: none; }

/* До 1080px пунктам меню + кнопке + телефону тесно в одну строку — включаем бургер */
@media (max-width: 1080px) {
  .site-header .container { flex-wrap: nowrap; gap: 12px; }
  .nav-toggle { display: block; order: 3; }
  .header-contact { order: 2; margin-left: auto; }
  .nav-cta { display: none; }               /* CTA переезжает внутрь меню */
  .main-nav {                                /* выпадает панелью, шапку не растягивает */
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 55;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-top: 1px solid var(--border);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
    padding: 6px 20px 18px;
    max-height: calc(100vh - 70px); overflow-y: auto;
  }
  body.nav-open .main-nav { display: flex; }
  .main-nav > a, .nav-drop > a {
    display: block; padding: 13px 4px; font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-drop { display: block; }
  .drop-menu {                               /* подпункты показываем сразу списком */
    display: block; position: static; border: 0; box-shadow: none;
    background: transparent; padding: 0 0 0 16px; min-width: 0;
  }
  .drop-menu a { padding: 10px 4px; font-size: 0.95rem; opacity: 0.85; }
  .nav-cta-mobile { display: block; margin-top: 14px; text-align: center; }
}

/* Дропдауны навигации. Стрелка — псевдоэлементом, чтобы не раздувала высоту пункта */
.nav-drop { position: relative; display: inline-block; }
.nav-drop > a { display: inline-block; }
.nav-drop > a::after {
  content: '▾'; display: inline-block; margin-left: 5px;
  font-size: 0.6em; opacity: 0.65; transform: translateY(-1px);
}
.drop-menu {
  display: none; position: absolute; top: 100%; left: -12px; z-index: 60;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  min-width: 180px; padding: 8px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.nav-drop:hover .drop-menu, .nav-drop:focus-within .drop-menu { display: block; }
.drop-menu a { display: block; padding: 8px 16px; text-decoration: none; color: var(--text); font-size: 0.95rem; }
.drop-menu a:hover { background: var(--bg-soft); }
.nav-cta { padding: 10px 14px; font-size: 0.78rem; white-space: nowrap; }
.header-contact { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; flex-shrink: 0; }
.header-hours { font-size: 0.75rem; color: var(--text-muted); }

/* Hero: подсказка и строка доверия */
.hero-hint { font-size: 0.85rem; color: var(--text-muted); margin-top: 10px; }
.trust-line { font-size: 0.9rem; margin-top: 22px; color: var(--text-muted); max-width: 720px; }

/* Полноэкранный hero: фото работы фоном, текст поверх */
.hero.hero-full {
  background:
    linear-gradient(90deg, rgba(10,10,13,0.88) 0%, rgba(10,10,13,0.66) 48%, rgba(10,10,13,0.32) 100%),
    url('/static/img/hero-kitchen.jpg') center 55% / cover no-repeat;  /* выбор ИИ-фото: /dev/ai/ */
  min-height: 700px;
  display: flex; align-items: center;
  padding: 80px 0;
}
.hero.hero-full .container {
  display: grid; grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  gap: 36px; align-items: center; width: 100%;
  max-width: 1400px;  /* шире обычного, чтобы чертёж дышал */
}
.hero-full .hero-content { max-width: 520px; }

/* Панель с чертежом в hero: стекло поверх фото */
.hero-bp {
  background: rgba(10, 10, 14, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 28px 24px 18px;
}
.hero-bp .blueprint { max-width: none; }
.hero-bp-caption {
  text-align: center; font-size: 0.85rem; color: #b3b7be; margin-top: 12px;
}
@media (max-width: 960px) {
  .hero.hero-full .container { grid-template-columns: 1fr; gap: 28px; }
  .hero-bp { padding: 16px 14px 10px; border-radius: 12px; }
  .hero-bp-caption { font-size: 0.78rem; margin-top: 8px; }
}
@media (max-width: 640px) {
  /* на мобильном чертёж остаётся, но компактным и без лишнего веса */
  .hero-bp { padding: 12px 10px 8px; max-width: 460px; margin: 0 auto; }
}
.hero-full h1 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.45); }
.hero-full p.lead {
  color: #f0f1f4; font-size: 1.3rem; line-height: 1.55; max-width: 580px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.55); font-weight: 500;
}
.hero-full .trust-line { color: #b3b7be; }
.hero-full .hero-hint { color: #b3b7be; }
@media (max-width: 640px) {
  .hero.hero-full {
    min-height: auto; padding: 64px 0;
    background:
      linear-gradient(180deg, rgba(10,10,13,0.9) 0%, rgba(10,10,13,0.76) 100%),
      url('/static/img/hero-kitchen.jpg') center / cover no-repeat;
  }
}
.hero-full .hp-value { color: #f4dc63; }  /* на фото — всегда лимонное золото, независимо от темы */

/* Ценовой блок в hero: крупная цифра + подпись */
.hero-price { margin: 20px 0 6px; display: flex; flex-direction: column; gap: 4px; }
.hero-price .hp-value {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800; line-height: 1.1; color: var(--accent-dark);
}
.hero-price .hp-note { font-size: 0.95rem; color: var(--text-muted); }

/* Чек-лист «что входит» */
.checklist { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.check-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 1.1rem; font-weight: 600;
}
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; background: var(--bg-soft);
  color: var(--text-muted); white-space: nowrap; flex-shrink: 0;
}
.badge.free { background: var(--cta); color: #fff; }

/* Карточки цены: крупная цифра, минимум текста */
.price-card .num {
  font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800;
  color: var(--accent-dark); line-height: 1.1; margin-bottom: 6px;
}
.price-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.price-card p:not(.num) { font-size: 1rem; }

.factors-heading { margin: 32px 0 16px; }
.factors .benefit p { font-size: 0.9rem; }
.conclusion { margin-top: 24px; font-weight: 600; }

/* Квиз */
.quiz-sub { color: var(--text-muted); margin-bottom: 24px; max-width: 640px; }
.quiz-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; max-width: 640px; position: relative; }
.quiz-step { border: none; }
.quiz-step legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 16px; }
.quiz-options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.quiz-options label {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer;
}
.quiz-options label:hover { border-color: var(--accent); }
.quiz-options input[type=radio] { accent-color: var(--accent); }
.quiz-nav { display: flex; gap: 12px; margin-top: 20px; }
.quiz-field { display: block; font-weight: 600; font-size: 0.9rem; margin: 14px 0 4px; }
.quiz-field input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; font-family: inherit; margin-top: 4px; }
/* Шаг «планировка»: карточки со схемами (вид сверху), радио спрятан */
.quiz-layouts { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.quiz-layouts label {
  flex-direction: column; align-items: stretch; gap: 8px;
  padding: 12px 10px 10px; text-align: center; font-size: 0.85rem; line-height: 1.3;
  position: relative;
}
.quiz-layouts input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-layouts svg {
  width: 100%; height: auto; display: block;
  color: var(--text-muted); fill: none; stroke: currentColor;
  stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round;
  transition: color 0.15s;
}
.quiz-layouts label:hover svg { color: var(--text); }
.quiz-layouts label:has(input:checked) { border-color: var(--accent); }
.quiz-layouts label:has(input:checked) svg,
.quiz-layouts label:has(input:checked) span { color: var(--accent); }

.quiz-promise { margin-top: 20px; font-size: 0.9rem; }
.quiz-disclaimer { margin-top: 8px; font-size: 0.8rem; color: var(--text-muted); }
.consent { display: flex; align-items: flex-start; gap: 8px; font-size: 0.85rem; margin-top: 16px; color: var(--text-muted); }
.consent input { margin-top: 4px; }

.form-microline { font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; }

/* Инфографика оплаты: 0 ₽ / 70% / 30% */
.paybar { margin: 8px 0 40px; }
.pb-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.pb-block { display: flex; flex-direction: column; gap: 2px; }
.pb-num { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; line-height: 1.05; }
.pb-when { font-weight: 700; font-size: 1rem; }
.pb-what { font-size: 0.9rem; color: var(--text-muted); }
.pb-free .pb-num { color: var(--cta); }
.pb-pre .pb-num, .pb-post .pb-num { color: var(--accent-dark); }
.pb-post .pb-num { opacity: 0.75; }

.pb-track {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
  margin-top: 14px;
}
.pb-seg { height: 10px; border-radius: 999px; transform-origin: left; }
.pb-seg-free { background: var(--cta); }
.pb-seg-pre { background: var(--accent); }
.pb-seg-post { background: var(--accent); opacity: 0.4; }
.paybar.animate .pb-seg { animation: pb-grow 0.7s cubic-bezier(.2,.7,.3,1) forwards; transform: scaleX(0); }
.paybar.animate .pb-seg-pre { animation-delay: 0.15s; }
.paybar.animate .pb-seg-post { animation-delay: 0.3s; }
@keyframes pb-grow { to { transform: scaleX(1); } }
.pb-foot { margin-top: 16px; font-size: 0.9rem; color: var(--text-muted); }
@media (max-width: 720px) {
  .pb-row { grid-template-columns: 1fr; gap: 20px; }
  .pb-track { display: none; }
  .pb-block { border-left: 4px solid var(--accent); padding-left: 14px; }
  .pb-free { border-left-color: var(--cta); }
  .pb-post { border-left-color: var(--accent); opacity: 0.92; }
}
@media (prefers-reduced-motion: reduce) {
  .paybar.animate .pb-seg { animation: none; transform: scaleX(1); }
}

/* Плашка-акцент и мостики */
.accent-plate {
  margin-top: 28px; padding: 20px 26px; border-radius: var(--radius);
  background: var(--cta); color: #fff; font-weight: 600;
}
.step .badge.free { vertical-align: middle; margin-left: 6px; }
.bridge-block {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; padding: 24px 28px; background: var(--bg-soft);
  border-radius: var(--radius); border: 1px solid var(--border);
}
.bridge-block p { max-width: 640px; }

/* Тихая секция второстепенной мебели */
.quiet { padding: 40px 0; background: var(--bg-soft); }
.quiet h2 { font-size: 1.2rem; }
.quiet-caption { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; max-width: 720px; }
.quiet .card { padding: 18px; }
.quiet .card h3 { font-size: 1rem; }
.quiet .card p { font-size: 0.85rem; }

/* Производство и материалы */
.grid-2col { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.materials-list { margin: 10px 0 0 18px; font-size: 0.95rem; color: var(--text-muted); }
.materials-list li { margin-bottom: 8px; }
.production-strip {
  margin-top: 28px; padding: 24px 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.production-strip p { max-width: 700px; }

/* Финальный CTA-блок */
.final-cta { align-items: start; }
.final-contacts .big-phone { font-size: 1.6rem; font-weight: 800; margin-bottom: 12px; }
.final-contacts .big-phone a { text-decoration: none; color: var(--text); }
.final-contacts p { margin-bottom: 8px; }
.final-contacts .soft-link { margin-top: 20px; color: var(--text-muted); }

/* Ориентир по цене (страница цен) */
.price-anchor {
  margin-top: 24px; padding: 18px 24px; border-radius: var(--radius);
  background: #fff; border: 2px solid var(--accent);
  display: inline-flex; flex-direction: column; gap: 4px;
}
.price-anchor .big { font-size: 1.3rem; font-weight: 800; color: var(--accent-dark); }
.price-anchor .note { font-size: 0.85rem; color: var(--text-muted); }

/* Анимированный чертёж кухни (blueprint) */
.blueprint { max-width: 860px; margin: 0 auto; cursor: pointer; }
.blueprint svg { width: 100%; height: auto; display: block; }
.blueprint .bp {
  fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round;
  stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
}
.blueprint .bp-thick { stroke-width: 3.5; }
.blueprint .bp-dim { stroke-width: 1; opacity: 0.55; }
.blueprint.draw .bp { animation: bp-draw 0.9s ease forwards; animation-delay: calc(var(--i, 0) * 110ms); }
@keyframes bp-draw { to { stroke-dashoffset: 0; } }
.blueprint .bp-steam { stroke-width: 1.4; opacity: 0; animation: none; }
.blueprint.draw .bp-steam {
  stroke-dashoffset: 0;
  animation: bp-steam 2.8s ease-in-out infinite;
  animation-delay: calc(2.6s + var(--s, 0) * 0.45s);
}
@keyframes bp-steam {
  0% { opacity: 0; transform: translateY(5px); }
  35% { opacity: 0.75; }
  100% { opacity: 0; transform: translateY(-12px); }
}
.blueprint .bp-glow { fill: var(--accent); opacity: 0; }
.blueprint.draw .bp-glow { animation: bp-glow 3.4s ease-in-out infinite; animation-delay: 2.8s; }
@keyframes bp-glow {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.6; }
}
.blueprint .bp-text {
  fill: var(--text-muted); font-size: 13px; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  opacity: 0;
}
.blueprint.draw .bp-text { animation: bp-fade 0.8s ease forwards; animation-delay: 2.4s; }
.blueprint .bp-note { font-style: italic; font-size: 12px; }
@keyframes bp-fade { to { opacity: 0.8; } }
@media (prefers-reduced-motion: reduce) {
  .blueprint.draw .bp, .blueprint.draw .bp-text { animation-duration: 0.01s; animation-delay: 0s; }
  .blueprint.draw .bp-steam, .blueprint.draw .bp-glow { animation: none; opacity: 0.4; }
}
/* на мобильном линии толще, подписи крупнее — иначе чертёж не читается */
@media (max-width: 640px) {
  .blueprint .bp { stroke-width: 3.4; }
  .blueprint .bp-thick { stroke-width: 6.5; }
  .blueprint .bp-steam { stroke-width: 3; }
  .blueprint .bp-text { font-size: 26px; }
  .blueprint .bp-note { font-size: 22px; }
}

/* Статус отправки формы: заметная плашка под кнопкой (успех и ошибка) */
.form-status { margin-top: 12px; padding: 10px 14px; border-radius: 10px; font-weight: 600; border: 1px solid var(--accent, #caa62e); background: rgba(232, 201, 60, 0.14); }

/* Breadcrumbs */
.breadcrumbs { font-size: 0.85rem; color: var(--text-muted); padding-top: 16px; }
.breadcrumbs a { color: var(--text-muted); }

/* Карточки работ в портфолио */
.work-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.works-grid { align-items: start; }
.work-main { position: relative; display: block; }
.work-main img { aspect-ratio: 3/2; transition: opacity 0.15s; }
.work-count {
  position: absolute; right: 10px; bottom: 10px; padding: 3px 10px;
  border-radius: 999px; background: rgba(12, 12, 16, 0.65); color: #fff;
  font-size: 0.78rem; font-weight: 600; pointer-events: none;
}
.work-thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 6px; padding: 8px 8px 0;
}
.thumb {
  padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden;
  cursor: pointer; background: none; line-height: 0;
}
.thumb img { aspect-ratio: 1/1; object-fit: cover; }
.thumb:hover { border-color: var(--border); }
.thumb.active { border-color: var(--accent); }
.work-item figcaption strong { display: block; color: var(--text); font-size: 0.95rem; margin-top: 2px; }

/* Модальное окно квиза */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 10, 0.72); backdrop-filter: blur(4px); }
.modal-box {
  position: relative; z-index: 1; width: 100%; max-width: 720px;
  max-height: 92vh; overflow-y: auto; padding: 28px;
  background: var(--bg, #14161f); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
}
.modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.45);
  color: #fff; font-size: 1rem; cursor: pointer;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.18); }
body.modal-open { overflow: hidden; }
@media (max-width: 640px) { .modal { padding: 10px; } .modal-box { padding: 20px 16px; } }

/* Лайтбокс портфолио */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: rgba(8, 8, 11, 0.93); padding: 20px;
}
.lightbox[hidden] { display: none; }
body.lb-open { overflow: hidden; }
.lb-stage { max-width: min(1100px, 86vw); text-align: center; }
.lb-stage img {
  max-width: 100%; max-height: 80vh; width: auto; height: auto;
  object-fit: contain; border-radius: 8px; margin: 0 auto;
}
.lb-stage figcaption { margin-top: 12px; color: #d6d8dd; font-size: 0.95rem; }
.lb-counter { margin-left: 12px; color: #8b8f98; }
.lb-btn {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08);
  color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lb-close { position: absolute; top: 18px; right: 18px; font-size: 1.1rem; }
@media (max-width: 640px) {
  .lightbox { padding: 12px; gap: 6px; }
  .lb-btn { width: 38px; height: 38px; }
  .lb-stage img { max-height: 70vh; }
}
.work-tag { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.work-desc { display: block; margin-top: 6px; font-size: 0.85rem; }
.work-price { display: block; margin-top: 8px; font-weight: 800; font-size: 1.05rem; color: var(--accent-dark); }
.photo-strip { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 24px; }
.photo-strip figure { display: flex; flex-direction: column; }
.photo-strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.photo-strip figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--text-muted); display: flex; flex-direction: column; flex: 1; }
.photo-strip figcaption strong { color: var(--text); }
.photo-strip .ps-price { margin-top: auto; padding-top: 4px; font-size: 1.05rem; color: var(--accent-dark, var(--text)); }

/* Счётчики-инфографика («с 2006 года · 800 кухонь · 70 в этом году») */
.stats { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 8px 0 28px; }
.stat { border-left: 3px solid var(--accent); padding-left: 16px; }
.stat-num { display: block; font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 800; line-height: 1.2; }
.stat-label { display: block; font-size: 0.9rem; color: var(--text-muted); margin-top: 2px; }


/* Реквизиты оператора в подвале (появляются, когда заполнен OPERATOR в config) */
.site-footer .requisites { margin-top: 6px; font-size: 0.8rem; opacity: 0.75; }
