/* ============================================================
   ЧеБрусчатка Казань — дизайн-система
   Токены из design-reference/README.md. Мобильный приоритет.
   ============================================================ */

:root {
  /* Цвет */
  /* Серый вместо коричнево-бордового — по правке заказчика: палитра
     сайта должна читаться как «серый + оранжевый логотипа», без бренд-
     ового коричневого/бордового оттенка. Используется в ссылках, ценах,
     номерах шагов и т.п. — везде, где раньше был акцентный коричневый. */
  --brand: #57514a;
  --brand-hover: #403a33;
  --bg: #fffaf3;
  --bg-page: #f4f1ea;
  --bg-2: #ece5d8;
  --bg-3: #e2ddd4;
  --dark: #1b1713;
  /* Было почти чёрным (#15120f) — заказчик просил, чтобы первый экран
     не «вырубал» страницу в темноту. Смягчили до тёмно-серого. */
  --dark-hero: #2b2620;
  --text: #201b16;
  --text-body: #2b2620;
  --text-2: #5b5044;
  --text-3: #6b5f52;
  --text-muted: #8a7c6a;
  --caption: #9b8266;
  --on-dark: #fdfaf4;
  --on-dark-2: #f4f1ea;
  --on-dark-3: #cfc6b7;
  --on-dark-4: #b3a794;
  --on-dark-muted: #a89a86;
  --on-dark-faint: #9a8e7c;
  --accent-serif: #d8c9ad;
  /* Яркий акцент для главных CTA — фирменный оранжевый логотипа.
     Заказчик просил разбавить тёмную гамму яркими красками именно
     на кнопках заявки, оставив остальную палитру как есть. */
  --accent: #f7931e;
  --accent-hover: #d97e12;
  --on-accent: #201b16;
  --green: #24402f;
  --green-text: #e6efe7;
  --green-head: #a9d3b8;
  --green-check: #8fc0a0;
  --line: rgba(43, 38, 32, 0.12);
  --line-15: rgba(43, 38, 32, 0.15);
  --line-2: rgba(43, 38, 32, 0.2);
  --line-dark: rgba(244, 241, 234, 0.18);
  --line-dark-2: rgba(244, 241, 234, 0.2);

  /* Типографика */
  --font-serif: 'Newsreader', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --fs-h1: clamp(31px, 5.6vw, 60px);
  --fs-h1-page: clamp(28px, 4.6vw, 46px);
  --fs-h2: clamp(25px, 3.4vw, 38px);
  --fs-h3: clamp(22px, 2.8vw, 30px);
  --fs-lead: clamp(15px, 1.8vw, 18px);
  --fs-body: 15px;

  /* Ритм */
  --sect-y: clamp(48px, 7vw, 88px);
  --sect-x: clamp(16px, 4vw, 40px);
  --gap-cards: clamp(14px, 2vw, 22px);
  --r-btn: 3px;
  --r-card: 4px;
  --max-w: 1320px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-page);
  overflow-x: clip;
}

img, video, iframe { max-width: 100%; }
img { height: auto; }

a { color: var(--brand); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand-hover); }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; color: var(--text); margin: 0; text-wrap: pretty; }
h4, h5 { font-family: var(--font-sans); color: var(--text); margin: 0; }

::placeholder { color: var(--on-dark-muted); }

.icon--muted { color: var(--caption); }
.icon {
  width: 1.15em; height: 1.15em;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.2em; flex-shrink: 0;
}

/* ---------- Утилиты ---------- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding-left: var(--sect-x); padding-right: var(--sect-x); }
.section { padding-top: var(--sect-y); padding-bottom: var(--sect-y); }
.section--tight { padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(32px, 5vw, 64px); }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--caption); margin-bottom: 13px;
}
.h2 { font-size: var(--fs-h2); margin: 0 0 10px; }
.h3 { font-size: var(--fs-h3); }
.section-lead { font-size: clamp(15px, 1.7vw, 17px); color: var(--text-3); margin: 0 0 clamp(24px, 3vw, 36px); max-width: 640px; }
.only-mobile { display: none !important; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border-radius: var(--r-btn); font-size: 15px; font-weight: 600; font-family: var(--font-sans);
  padding: 14px 24px; border: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--ghost-dark {
  background: rgba(253, 250, 244, 0.08); border: 1px solid rgba(244, 241, 234, 0.4); color: var(--on-dark-2);
}
.btn--ghost-dark:hover { background: rgba(253, 250, 244, 0.16); color: var(--on-dark); }
.btn--outline { background: none; border: 1px solid rgba(43, 38, 32, 0.3); color: var(--text); }
.btn--outline:hover { border-color: var(--text); color: var(--text); }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--sm { padding: 12px 16px; font-size: 14px; }

.link-more { background: none; border: none; color: var(--brand); font-size: 15px; font-weight: 600; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 6px; }
.link-more:hover { color: var(--brand-hover); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 241, 234, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__in {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  padding: 10px clamp(14px, 3vw, 32px);
}
.site-header__logo { flex-shrink: 0; display: flex; align-items: center; }
.site-header__logo img { height: clamp(21px, 4vw, 28px); display: block; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); flex: 1; padding: 4px 0; }
.site-nav a {
  font-size: 15px; font-weight: 500; color: var(--text-body); white-space: nowrap;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--accent-hover); border-bottom-color: var(--accent); }
.site-header__phone { font-size: 15px; font-weight: 600; color: var(--text-body); white-space: nowrap; }
.site-header__cta { background: var(--accent); color: var(--on-accent); padding: 11px 18px; border-radius: var(--r-btn); font-size: 14px; font-weight: 600; white-space: nowrap; }
.site-header__cta:hover { background: var(--accent-hover); color: var(--on-accent); }

.burger {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  color: var(--text); margin-left: auto;
}
.burger .icon { width: 24px; height: 24px; }
.burger .icon--close { display: none; }

/* Мобильное меню */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 8px var(--sect-x) 18px;
}
.mobile-menu a {
  display: block; padding: 13px 2px; font-size: 17px; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a[aria-current="page"] { color: var(--accent-hover); }
.mobile-menu__phone { display: flex; align-items: center; gap: 10px; font-weight: 600; }
body.menu-open .mobile-menu { display: block; }
body.menu-open .burger .icon--open { display: none; }
body.menu-open .burger .icon--close { display: inline; }

/* Нижняя мобильная панель CTA */
.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  gap: 8px; padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(27, 23, 19, 0.96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.mobile-bar__cta { flex: 1; text-align: center; background: var(--accent); color: var(--on-accent); padding: 14px 10px; border-radius: var(--r-btn); font-size: 15px; font-weight: 600; }
.mobile-bar__cta:hover { background: var(--accent-hover); color: var(--on-accent); }
.mobile-bar__call { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(244, 241, 234, 0.4); color: var(--on-dark-2); padding: 14px 18px; border-radius: var(--r-btn); font-size: 15px; font-weight: 600; }
.mobile-bar__call:hover { color: var(--on-dark); }

/* ---------- Первый экран ---------- */
.hero { position: relative; background: var(--dark-hero); overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(2px) saturate(0.9); transform: scale(1.05); opacity: 0.62;
}
/* Затемнение первого экрана смягчили (было 0.94/0.78/0.35) — заказчик
   просил не «топить» вход в темноту, оставив текст читаемым. */
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(42,38,32,0.78) 0%, rgba(42,38,32,0.58) 45%, rgba(42,38,32,0.16) 100%);
}
.hero__in {
  position: relative; max-width: var(--max-w); margin: 0 auto;
  padding: clamp(44px, 8vw, 104px) var(--sect-x) clamp(40px, 6vw, 80px);
}
/* Надзаголовок первого экрана — тот же лейбл, что .eyebrow на внутренних
   страницах, только на тёмном фоне. Отдельной «пилюли» в системе нет. */
.hero__eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-serif); margin-bottom: clamp(14px, 2.4vw, 20px);
}
.hero h1 {
  font-size: var(--fs-h1); line-height: 1.06;
  margin: 0 0 clamp(14px, 2vw, 20px); color: var(--on-dark); max-width: 900px;
}
/* «от завода-производителя» — акцентная фраза заголовка, заказчик
   попросил сделать её оранжевой (фирменный цвет логотипа). */
.hero h1 em { font-style: italic; color: var(--accent); }
.hero__sub {
  font-size: clamp(15px, 1.9vw, 19px); line-height: 1.6; color: #d5cbba;
  max-width: 620px; margin: 0 0 clamp(22px, 3vw, 32px); text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(18px, 2.5vw, 24px); }
.hero__trust { font-size: 14px; color: var(--on-dark-4); margin: 0 0 clamp(26px, 4vw, 42px); }
.hero__facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 18px;
  border-top: 1px solid var(--line-dark); padding-top: clamp(20px, 3vw, 28px); max-width: 900px;
}
.hero__fact-num { font-family: var(--font-serif); font-size: clamp(24px, 3vw, 32px); color: var(--on-dark); line-height: 1.2; }
.hero__fact-cap { font-size: 13px; color: var(--on-dark-4); margin-top: 2px; }

/* ---------- Брендовая полоса 01/02/03 ---------- */
.brand-strip { background: var(--brand); color: var(--on-dark); }
.brand-strip__in {
  max-width: var(--max-w); margin: 0 auto;
  padding: clamp(20px, 3vw, 28px) var(--sect-x);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: clamp(14px, 2vw, 28px);
}
.brand-strip__item { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.brand-strip__num { font-family: var(--font-serif); font-size: 20px; opacity: .7; }

/* ---------- Карточки ---------- */
.cards-grid { display: grid; gap: var(--gap-cards); }
.cards-grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.cards-grid--products { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
@media (min-width: 1000px) {
  /* 8 карточек премиума ровными рядами 4+4 вместо 5+3 */
  .cards-grid--products { grid-template-columns: repeat(4, 1fr); }
}
.cards-grid--catalog { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
@media (min-width: 1000px) {
  /* 6 карточек ровными рядами 3+3, картинка выше — чтобы не приплющивало */
  .cards-grid--catalog { grid-template-columns: repeat(3, 1fr); }
  .cards-grid--catalog .card__img--sm { height: 200px; }
}

.card {
  background: var(--bg); border: 1px solid rgba(43, 38, 32, 0.1); border-radius: var(--r-card);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .18s ease, background-color .18s ease;
  color: inherit;
}
a.card:hover, .card--link:hover { border-color: rgba(43, 38, 32, 0.32); color: inherit; }
.card__img { width: 100%; height: 170px; object-fit: cover; display: block; }
.card__img--sm { height: 150px; }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__body--sm { padding: 16px; }
.card h3, .card h4 { font-family: var(--font-sans); font-weight: 600; }
.card h3 { font-size: 18px; }
.card h4 { font-size: 16px; }
.card__text { font-size: 14px; line-height: 1.55; color: var(--text-3); margin: 0; }
.card__price { font-size: 15px; font-weight: 600; color: var(--brand); margin-top: auto; }

/* Каталог: карточки товаров */
.product-card { background: var(--bg); border: 1px solid rgba(43,38,32,0.1); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.product-card__img { width: 100%; height: 180px; object-fit: cover; display: block; }
.product-card__body { padding: 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-card h3 { font-family: var(--font-sans); font-weight: 600; font-size: 17px; }
.product-card__text { font-size: 13px; line-height: 1.5; color: var(--text-3); margin: 0; }
.product-card__price { font-size: 15px; font-weight: 600; color: var(--brand); }
/* В карточке без кнопки цена — последняя строка: прижимаем к низу,
   чтобы цены в ряду стояли на одной линии */
.product-card__price:last-child { margin-top: auto; }
.product-card .btn { margin-top: auto; }

/* В каталоге вся карточка ведёт на существующую страницу товара/материала. */
.catalog-card--clickable { position: relative; isolation: isolate; cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.catalog-card--clickable:hover { transform: translateY(-3px); border-color: rgba(43,38,32,.34); box-shadow: 0 14px 34px rgba(43,38,32,.10); }
.catalog-card--clickable:has(.catalog-card__hit:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; }
.catalog-card__hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.catalog-card--clickable .btn { position: relative; z-index: 2; }
.catalog-card--clickable .product-card__body::after,
.catalog-card--clickable.tile::after { content: 'Подробнее  →'; margin-top: 10px; color: var(--text); font-size: 14px; font-weight: 650; }

/* Ручная карусель: без автопрокрутки, со стрелками и нативным свайпом. */
.js-carousel { display: flex; grid-template-columns: none; gap: var(--gap-cards); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--accent) var(--line); padding: 3px 3px 16px; touch-action: pan-x pan-y; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.js-carousel > * { flex: 0 0 min(84vw, 340px); scroll-snap-align: start; scroll-snap-stop: always; }
.carousel-controls { display: flex; justify-content: flex-end; gap: 10px; margin: -6px 0 14px; }
.carousel-control { width: 48px; height: 48px; display: inline-grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--text); background: var(--bg); cursor: pointer; transition: background-color .18s ease, border-color .18s ease; }
.carousel-control:hover { background: var(--accent); border-color: var(--accent); }
.carousel-control:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.carousel-control:disabled { opacity: .35; cursor: default; }
.carousel-control svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (min-width: 768px) { .js-carousel > * { flex-basis: min(43vw, 390px); } }
@media (prefers-reduced-motion: reduce) { .catalog-card--clickable { transition: none; } }

.catalog-h2 {
  font-size: var(--fs-h3); margin: 0 0 20px;
  border-bottom: 1px solid var(--line-15); padding-bottom: 14px;
}

/* Цвета и фактуры */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 14px; }
.swatch img { width: 100%; height: 120px; object-fit: cover; border-radius: 3px; display: block; margin-bottom: 8px; }
.swatch figcaption { font-size: 13px; color: var(--text-2); }
.swatch { margin: 0; }

/* Элементы благоустройства */
.tile { background: var(--bg-2); border-radius: var(--r-card); padding: 22px; display: flex; flex-direction: column; gap: 7px; }
.tile img { width: 100%; height: 150px; object-fit: cover; display: block; border-radius: 3px; margin-bottom: 8px; }
.tile h3 { font-family: var(--font-sans); font-weight: 600; font-size: 16px; }
.tile p { font-size: 13px; line-height: 1.55; color: var(--text-3); margin: 0; }
.tile__price { font-size: 15px; font-weight: 600; color: var(--brand); margin-top: auto; }

/* ---------- Сравнение «бригада vs мы» ---------- */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: clamp(16px, 2vw, 24px); }
.compare__col { border-radius: var(--r-card); padding: clamp(20px, 3vw, 28px); display: grid; gap: 12px; align-content: start; }
.compare__col--they { background: var(--bg-3); border: 1px solid rgba(43, 38, 32, 0.1); }
.compare__col--they h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 600; color: #7b7469; margin-bottom: 4px; }
.compare__col--they p { font-size: 15px; line-height: 1.6; color: #7b7469; margin: 0; display: flex; gap: 10px; }
.compare__col--they p > span:first-child { color: #a9a29a; }
.compare__col--we { background: var(--green); box-shadow: 0 10px 30px rgba(36, 64, 47, 0.18); }
.compare__col--we h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 600; color: var(--green-head); margin-bottom: 4px; }
.compare__col--we p { font-size: 15px; line-height: 1.6; color: var(--green-text); margin: 0; display: flex; gap: 10px; }
.compare__col--we .icon { color: var(--green-check); margin-top: 3px; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: clamp(16px, 2vw, 24px); }
.step { border-top: 2px solid var(--line-2); padding-top: 16px; }
.step--first { border-top-color: var(--brand); }
.step__num { font-family: var(--font-serif); font-size: 26px; color: var(--brand); margin-bottom: 8px; }
.step h3 { font-family: var(--font-sans); font-size: 16px; font-weight: 600; margin: 0 0 6px; }
.step p { font-size: 14px; line-height: 1.55; color: var(--text-3); margin: 0; }

/* ---------- Тёмные секции ---------- */
.dark-section { background: var(--dark); color: var(--on-dark-2); }
.dark-section .h2 { color: inherit; }
.dark-section .section-lead { color: var(--on-dark-4); }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr)); gap: clamp(14px, 2vw, 20px); }
.price-card { border: 1px solid var(--line-dark-2); border-radius: var(--r-card); padding: clamp(18px, 2.5vw, 26px); transition: border-color .18s ease; }
.price-card:hover { border-color: rgba(244, 241, 234, 0.4); }
.price-card__name { font-size: 14px; color: var(--on-dark-4); margin-bottom: 10px; min-height: 2.9em; }
.price-card__value { font-family: var(--font-serif); font-size: clamp(26px, 2.6vw, 32px); color: var(--on-dark); white-space: nowrap; }
.price-card__note { font-size: 13px; color: var(--on-dark-faint); margin: 10px 0 0; line-height: 1.5; }
.price-footnote { font-size: 14px; color: #8a7f6e; margin: clamp(20px, 3vw, 28px) 0 0; }

/* ---------- Производство ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(24px, 4vw, 48px); align-items: center; }
.split p { font-size: clamp(15px, 1.7vw, 17px); line-height: 1.7; color: var(--text-2); margin: 0 0 14px; }
.certs { display: flex; gap: 12px; flex-wrap: wrap; }
.certs img { height: 160px; width: auto; border-radius: 3px; border: 1px solid var(--line); }
.video-frame { width: 100%; border-radius: var(--r-card); background: var(--dark); display: block; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: var(--gap-cards); }

/* ---------- Проекты ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: var(--gap-cards); }
.project { margin: 0; }
.project img { width: 100%; height: 190px; object-fit: cover; border-radius: var(--r-card); display: block; margin-bottom: 10px; }
.project figcaption { font-size: 15px; font-weight: 600; color: var(--text); }
.projects-grid--page { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.projects-grid--page .project img { height: 175px; }
@media (min-width: 1000px) {
  /* 28 объектов делятся на 4 ровно — семь полных рядов без обрыва в конце */
  .projects-grid--page { grid-template-columns: repeat(4, 1fr); }
  .projects-grid--page .project img { height: 210px; }
}

.featured-project {
  background: var(--bg-2); border-radius: var(--r-card); padding: clamp(20px, 3vw, 36px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(20px, 3vw, 36px); align-items: center;
}
.featured-project img { width: 100%; height: clamp(200px, 30vw, 320px); object-fit: cover; border-radius: var(--r-card); display: block; }
.featured-project h2 { font-size: clamp(21px, 2.6vw, 28px); margin: 0 0 12px; }
.featured-project p { font-size: 15px; line-height: 1.65; color: var(--text-2); margin: 0 0 18px; }

/* ---------- Отзывы ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: var(--gap-cards); }
@media (min-width: 1000px) {
  /* 6 отзывов — 3+3; в узкой колонке длинный текст читается плохо */
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}
.review {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(20px, 3vw, 26px); display: flex; flex-direction: column;
}
.review__mark { font-family: var(--font-serif); font-size: 30px; color: #cbbca4; line-height: 1; margin-bottom: 12px; }
.review__text { font-size: 15px; line-height: 1.65; color: var(--text-2); margin: 0 0 18px; flex: 1; }
.review__name { font-size: 14px; font-weight: 600; color: var(--text); }
.review__meta { font-size: 13px; color: var(--text-muted); }
.reviews-more { margin-top: var(--gap-cards); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--bg); }
.reviews-more summary {
  cursor: pointer; padding: 16px 20px; font-size: 15px; font-weight: 600; color: var(--text);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.reviews-more summary::-webkit-details-marker { display: none; }
.reviews-more summary::after { content: '+'; color: var(--caption); font-weight: 400; margin-left: 16px; }
.reviews-more[open] summary::after { content: '–'; }
.reviews-more__list { padding: 0 20px 8px; }
.reviews-more__list p { font-size: 14px; line-height: 1.6; color: var(--text-2); border-top: 1px solid var(--line); padding: 12px 0; margin: 0; }
.reviews-more__list b { color: var(--text); }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--line-15); max-width: 900px; }
.faq details { border-top: 1px solid var(--line-15); padding: 18px 0; }
.faq summary {
  cursor: pointer; font-size: clamp(16px, 1.9vw, 18px); font-weight: 600; color: var(--text);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--caption); font-weight: 400; margin-left: 16px; }
.faq details[open] summary::after { content: '–'; }
.faq details p { font-size: 15px; line-height: 1.7; color: var(--text-3); margin: 12px 0 0; max-width: 720px; }

/* ---------- Форма заявки ---------- */
.lead-section .h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 14px; }
.lead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(28px, 4vw, 56px); }
.lead-benefits { display: grid; gap: 14px; margin-bottom: 26px; }
.lead-benefits div { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: #e4dccd; }
.lead-benefits .icon { color: var(--accent-serif); margin-top: 3px; }
.lead-contacts { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; font-size: 15px; }
.lead-contacts a:first-child { color: var(--on-dark); font-weight: 600; }
.lead-contacts a { color: var(--accent-serif); }
.lead-contacts a:hover { color: var(--on-dark); }
.lead-intro { font-size: var(--fs-lead); line-height: 1.6; color: var(--on-dark-3); margin: 0 0 26px; }

.lead-form { display: grid; gap: 12px; }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form select, .lead-form textarea {
  padding: 15px 16px; border: 1px solid rgba(244, 241, 234, 0.25); border-radius: var(--r-btn);
  font-size: 16px; font-family: var(--font-sans);
  background: rgba(244, 241, 234, 0.06); color: var(--on-dark-2);
  width: 100%; transition: border-color .18s ease;
}
.lead-form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23a89a86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.lead-form select option { background: var(--bg); color: var(--text); }
.lead-form textarea { resize: vertical; min-height: 84px; }

/* ---------- Кастомный выпадающий список ----------
   Нативный список рисует ОС (белый фон, системная подсветка) — здесь
   свой listbox в палитре формы. Разметку строит scripts/select.js. */
.select { position: relative; }
.select__native--hidden {
  position: absolute; opacity: 0; pointer-events: none;
  width: 100%; height: 100%; left: 0; top: 0; margin: 0;
}
.select__button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left;
  padding: 15px 16px; border: 1px solid rgba(244, 241, 234, 0.25); border-radius: var(--r-btn);
  font-size: 16px; font-family: var(--font-sans); line-height: 1.3;
  background: rgba(244, 241, 234, 0.06); color: var(--on-dark-2);
  cursor: pointer; transition: border-color .18s ease;
}
.select__button:hover { border-color: rgba(244, 241, 234, 0.4); }
.select__button:focus-visible { outline: none; border-color: rgba(244, 241, 234, 0.6); }
.select__arrow { width: 16px; height: 16px; flex-shrink: 0; color: var(--on-dark-muted); transition: transform .18s ease; }
.select.is-open .select__arrow { transform: rotate(180deg); }
.select.is-open .select__button { border-color: rgba(244, 241, 234, 0.45); }

.select__list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
  margin: 0; padding: 6px; list-style: none;
  max-height: 260px; overflow-y: auto;
  background: #241f1a; border: 1px solid rgba(244, 241, 234, 0.25);
  border-radius: var(--r-card);
  box-shadow: 0 14px 34px rgba(10, 8, 6, 0.45);
}
.select__option {
  padding: 12px 14px; border-radius: 3px;
  font-size: 15px; line-height: 1.4; color: var(--on-dark-3); cursor: pointer;
}
.select__option.is-active { background: var(--accent); color: var(--on-accent); }
.select__option[aria-selected="true"] { color: var(--on-dark); font-weight: 600; }
.select__option[aria-selected="true"]::after {
  content: '✓'; float: right; margin-left: 12px; color: var(--accent-serif); font-weight: 400;
}
.select__option.is-active[aria-selected="true"]::after { color: var(--on-accent); }

@media (prefers-reduced-motion: reduce) {
  .select__arrow { transition: none; }
}
.lead-form input:focus-visible, .lead-form select:focus-visible, .lead-form textarea:focus-visible {
  outline: none; border-color: rgba(244, 241, 234, 0.6);
}
.lead-form .field--error input, .lead-form .field--error { }
.lead-form input[aria-invalid="true"] { border-color: #c96f5a; }
.field-error { font-size: 13px; color: #e0a091; margin: -6px 0 0; display: none; }
.field--error .field-error { display: block; }
.lead-form label.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--on-dark-muted); cursor: pointer; }
.lead-form label.agree input { margin-top: 3px; accent-color: var(--accent); }
.lead-form label.agree.field--error { color: #e0a091; }
.lead-form__note { font-size: 13px; color: var(--on-dark-muted); margin: 0; }
.lead-form button[type="submit"] { padding: 17px; font-size: 16px; }
.lead-success {
  background: rgba(244, 241, 234, 0.08); border: 1px solid rgba(244, 241, 234, 0.25);
  border-radius: var(--r-card); padding: clamp(24px, 4vw, 36px);
  font-size: 17px; line-height: 1.6; display: none;
}
.lead-success .icon { color: var(--green-check); width: 28px; height: 28px; margin-bottom: 10px; display: block; }

/* ---------- Универсальная модалка заявки ----------
   Всплывает поверх ЛЮБОЙ страницы по клику на [data-track^="lead:"] —
   пользователю больше не нужно переходить на главную ради формы.
   Разметку и логику строит scripts/lead-modal.js. */
.lead-modal {
  position: fixed; inset: 0; z-index: 150;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.lead-modal[hidden] { display: none; }
.lead-modal__backdrop {
  position: absolute; inset: 0; background: rgba(21, 18, 15, 0.72);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .22s ease;
}
.lead-modal.is-open .lead-modal__backdrop { opacity: 1; }
.lead-modal__panel {
  position: relative; z-index: 1; width: 100%; max-width: 480px; max-height: 90vh;
  overflow-y: auto; background: var(--dark); color: var(--on-dark-2);
  border-radius: var(--r-card); padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
}
.lead-modal.is-open .lead-modal__panel { opacity: 1; transform: none; }
.lead-modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: none; border: none; color: var(--on-dark-4); cursor: pointer; padding: 8px; line-height: 0;
}
.lead-modal__close:hover { color: var(--on-dark); }
.lead-modal__close .icon { width: 20px; height: 20px; }
.lead-modal__title { font-size: clamp(20px, 3vw, 25px); margin: 0 0 8px; padding-right: 24px; }
.lead-modal__lead { font-size: 14px; line-height: 1.55; color: var(--on-dark-3); margin: 0 0 20px; }
.lead-modal .lead-success { font-size: 15px; padding: clamp(18px, 3vw, 24px); }

@media (prefers-reduced-motion: reduce) {
  .lead-modal__backdrop, .lead-modal__panel { transition: none; }
}

/* ---------- Контакты и карта ---------- */
.contact-block p { font-size: 15px; line-height: 1.7; color: var(--text-2); margin: 0 0 8px; }
.contact-block .note { font-size: 14px; color: var(--text-muted); margin: 0 0 20px; }
.map-frame { width: 100%; height: 320px; border: 1px solid var(--line-15); border-radius: var(--r-card); }

/* ---------- CTA-баннер ---------- */
.cta-banner {
  background: var(--dark); border-radius: var(--r-card);
  padding: clamp(24px, 4vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cta-banner h2 { color: var(--on-dark-2); font-size: clamp(19px, 2.4vw, 24px); margin: 0 0 6px; }
.cta-banner p { color: var(--on-dark-3); font-size: 15px; margin: 0; }
/* Баннер без заголовка (страница доставки) — текст берёт на себя его роль */
.cta-banner__lead { color: var(--on-dark-2); font-size: clamp(16px, 2vw, 18px); }
.cta-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Футер ---------- */
.site-footer { background: var(--dark); color: var(--on-dark-3); padding: clamp(40px, 6vw, 64px) var(--sect-x) 28px; }
.site-footer__grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: clamp(24px, 3vw, 40px);
  padding-bottom: 32px; border-bottom: 1px solid rgba(244, 241, 234, 0.12);
}
.site-footer__logo { height: 26px; width: auto; margin-bottom: 16px; }
.site-footer p { font-size: 14px; line-height: 1.7; color: var(--on-dark-muted); margin: 0; }
.site-footer h5 { color: var(--on-dark-2); font-size: 13px; font-weight: 600; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer a { color: var(--on-dark-3); }
.site-footer a:hover { color: var(--on-dark); }
.site-footer__links { line-height: 1.9; font-size: 14px; margin-bottom: 12px; }
.site-footer__soc { display: flex; gap: 14px; font-size: 14px; }
.site-footer__soc a { color: var(--accent-serif); }
.site-footer__price-link { color: var(--accent-serif); font-weight: 600; font-size: 14px; }
.site-footer__price-link:hover { color: var(--on-dark); }
.site-footer__bottom {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; flex-wrap: wrap; gap: 12px;
}
.site-footer__bottom p, .site-footer__bottom a { font-size: 13px; color: #7a6f60; margin: 0; }

/* ---------- Статьи ---------- */
.articles-list { display: grid; gap: 14px; }
.article-card {
  display: block; background: var(--bg); border: 1px solid rgba(43, 38, 32, 0.1);
  border-radius: var(--r-card); padding: 22px; color: inherit;
  transition: border-color .18s ease;
}
.article-card:hover { border-color: rgba(43, 38, 32, 0.32); color: inherit; }
.article-card h2 { font-family: var(--font-sans); font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.article-card p { font-size: 14px; line-height: 1.55; color: var(--text-3); margin: 0; }

.article-body { max-width: 760px; }
.article-body h2 { font-size: clamp(21px, 2.6vw, 27px); margin: clamp(26px, 4vw, 36px) 0 12px; }
.article-body h3 { font-family: var(--font-sans); font-size: 18px; font-weight: 600; margin: 22px 0 8px; }
.article-body p { font-size: 16px; line-height: 1.75; color: var(--text-2); margin: 0 0 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px; padding-left: 22px; font-size: 16px; line-height: 1.75; color: var(--text-2); }
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--caption); }
.breadcrumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--brand); }

/* ---------- Страничные заголовки ---------- */
.page-head h1 { font-size: var(--fs-h1-page); margin: 0 0 14px; }
.page-head .lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--text-2); max-width: 680px; margin: 0 0 clamp(28px, 4vw, 48px); }

/* Списки на странице доставки */
.info-tile { background: var(--bg-2); border-radius: var(--r-card); padding: clamp(20px, 3vw, 26px); }
.info-tile h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 600; margin: 0 0 12px; }
.info-tile ul { margin: 0 0 12px; padding-left: 20px; font-size: 15px; line-height: 1.7; color: var(--text-2); }
.info-tile p { font-size: 15px; line-height: 1.7; color: var(--text-2); margin: 0 0 12px; }
.info-tile .note { font-size: 13px; color: var(--text-muted); margin: 0; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: clamp(16px, 2vw, 24px); }

/* ---------- Заставка первого входа ----------
   Плитки падают сверху и складываются в дорожку под логотипом —
   метафора укладки брусчатки. Разметку создаёт scripts/intro.js
   (только главная, один раз за сессию). */
.intro-lock, .intro-lock body, .modal-open, .modal-open body { overflow: hidden; }
.intro {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: var(--dark-hero);
  transition: opacity .38s ease, visibility .38s ease;
}
.intro--out { opacity: 0; visibility: hidden; }
.intro__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 0 24px; }
.intro__logo {
  height: clamp(30px, 7vw, 37px); width: auto; display: block;
  opacity: 0; animation: intro-logo .5s ease forwards;
}
.intro__strip {
  display: flex; gap: 4px;
  padding: 6px; border-radius: 3px;
  transition: box-shadow .2s ease, background-color .2s ease;
}
.intro--lit .intro__strip {
  background: rgba(247, 147, 30, 0.10);
  box-shadow: 0 0 0 1px rgba(247, 147, 30, 0.3), 0 0 26px 6px rgba(247, 147, 30, 0.22);
}
.intro__tile {
  width: clamp(16px, 4.4vw, 24px); height: clamp(16px, 4.4vw, 24px);
  border-radius: 2px; background: var(--brand);
  opacity: 0;
  animation: intro-drop .42s cubic-bezier(.34, 1.3, .5, 1) both;
}
/* Плитки перекрашены в серую гамму с оранжевым проблеском (каждая
   четвёртая) вместо коричневых оттенков — под цвета логотипа. */
.intro__tile:nth-child(3n+1) { background: #6b645c; }
.intro__tile:nth-child(3n+2) { background: var(--brand); }
.intro__tile:nth-child(3n+3) { background: #3f3a34; }
.intro__tile:nth-child(4n)   { background: var(--accent); }

@keyframes intro-logo { to { opacity: 1; } }
@keyframes intro-drop {
  0%   { opacity: 0; transform: translateY(-38px); }
  70%  { opacity: 1; transform: translateY(3px); }   /* лёгкий отскок при укладке */
  100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none !important; }
  .intro-lock, .intro-lock body { overflow: auto; }
}

/* ---------- Появление при скролле ---------- */
/* Скрываем только при работающем JS: без него контент виден сразу. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in-view { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal-stagger.in-view > * { opacity: 1; transform: none; }
.js .reveal-stagger.in-view > *:nth-child(2) { transition-delay: .07s; }
.js .reveal-stagger.in-view > *:nth-child(3) { transition-delay: .14s; }
.js .reveal-stagger.in-view > *:nth-child(4) { transition-delay: .21s; }
.js .reveal-stagger.in-view > *:nth-child(5) { transition-delay: .28s; }
.js .reveal-stagger.in-view > *:nth-child(6) { transition-delay: .35s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .site-nav { gap: 16px; }
}

@media (max-width: 900px) {
  .only-mobile { display: flex !important; }
  .hide-mobile { display: none !important; }
  body { padding-bottom: 78px; }
  .burger { display: inline-flex; }
  .site-nav { display: none; }
  /* Звонок уже есть в закреплённой нижней панели — в шапке не дублируем */
  .site-header__phone { display: none; }
  .certs img { height: 132px; }
}

@media (max-width: 640px) {
  .hero__actions .btn { flex: 1 1 100%; }
  .featured-project { padding: 16px; }
  .cta-banner { padding: 22px 18px; }
  .cta-banner__actions { width: 100%; }
  .cta-banner__actions .btn { flex: 1; }
}
