/* =====================================================================
   АльфаКаркас — главная. Тема: «природный крафт».
   Глубокий лесной зелёный + тёплое дерево + кремовый фон.
   Spectral (заголовки) + Manrope (текст).
   ===================================================================== */

/* ---------- Токены ---------- */
:root {
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Фон / поверхности */
  --bg: #f4f0e8;
  --bg-2: #ece6da;
  --card: #fbf9f4;
  --green-deep: #22402f;
  --green-deep-2: #1a3124;
  --green-night: #15231a;

  /* Зелёная шкала */
  --green: #2e6b43;
  --green-700: #265a38;
  --green-500: #3c8557;
  --green-300: #8fd3a3;
  --green-tint: #e7efe3;
  --green-tint-2: #dbe7d4;

  /* Дерево (вторичный акцент) */
  --timber: #b5824b;
  --timber-soft: #e3c08e;
  --timber-tint: #efe2cd;

  /* Текст */
  --ink: #1d231d;
  --ink-2: #515a4f;
  --ink-3: #7e877b;

  /* Кремовый текст на тёмном */
  --cream: #f4f0e8;
  --cream-dim: rgba(244, 240, 232, 0.74);
  --cream-faint: rgba(244, 240, 232, 0.45);

  --line: rgba(29, 35, 29, 0.12);
  --line-2: rgba(29, 35, 29, 0.18);
  --line-cream: rgba(244, 240, 232, 0.16);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --pill: 999px;

  --shadow-sm: 0 2px 10px rgba(24, 40, 28, 0.06);
  --shadow: 0 22px 50px -30px rgba(20, 36, 24, 0.4);
  --shadow-lg: 0 50px 90px -45px rgba(18, 32, 22, 0.5);

  --container: 1200px;
  --pad: clamp(18px, 4vw, 34px);
  --section: clamp(32px, 3.1vw, 58px);

  --topbar-h: 42px;
  --mainbar-h: 68px;
  --header-h: calc(var(--topbar-h) + var(--mainbar-h));
  /* Высота того, что реально остаётся зафиксированным при скролле:
     верхняя строка уезжает вверх, липнет только панель с меню. */
  --header-stuck-h: var(--mainbar-h);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Сброс / база ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-stuck-h) + 14px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Зернистость поверх всего — едва заметная */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ic {
  width: 20px;
  height: 20px;
  flex: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  background: var(--green);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Раскладка ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: var(--section);
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.eyebrow .ic {
  width: 17px;
  height: 17px;
  color: var(--timber);
}

.eyebrow--light {
  color: var(--cream);
}

.eyebrow--light .ic {
  color: var(--timber-soft);
}

.section-head {
  margin-bottom: clamp(22px, 2.9vw, 34px);
}

.section-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
}

.section-head--row>div {
  max-width: 640px;
}

.section-title {
  font-size: clamp(1.75rem, 1.15rem + 2.4vw, 2.9rem);
  color: var(--ink);
}

.section-sub {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.section-sub--light {
  color: var(--cream-dim);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.92em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn .ic {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--green);
  color: var(--cream);
  box-shadow: 0 14px 26px -16px rgba(46, 107, 67, 0.9);
}

.btn-primary:hover {
  background: var(--green-700);
  box-shadow: 0 20px 34px -16px rgba(46, 107, 67, 0.95);
}

.btn-primary:hover .ic {
  transform: translateX(3px);
}

.btn-ghost {
  background: rgba(244, 240, 232, 0.06);
  border-color: var(--line-cream);
  color: var(--cream);
  backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: rgba(244, 240, 232, 0.13);
  border-color: rgba(244, 240, 232, 0.4);
}

.btn-outline {
  border-color: var(--line-2);
  color: var(--green);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--green);
  background: var(--green-tint);
}

.btn-outline:hover .ic {
  transform: translateX(3px);
}

.btn-soft {
  background: var(--green-tint);
  color: var(--green-700);
}

.btn-soft:hover {
  background: var(--green-tint-2);
}

/* Кремовая кнопка — для тёмных/цветных подложек (банд-акция, промо) */
.btn-cream {
  background: var(--cream);
  color: var(--green-700);
  box-shadow: 0 14px 26px -16px rgba(20, 15, 8, 0.8);
}

.btn-cream:hover {
  background: #fff;
  box-shadow: 0 20px 34px -16px rgba(20, 15, 8, 0.85);
}

.btn-cream:hover .ic {
  transform: translateX(3px);
}

.btn-sm {
  padding: 0.7em 1.15em;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 0.95em 1.6em;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.price {
  font-size: 0.92rem;
  color: var(--ink-2);
}

.price b {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
}

/* Услуга без ставки «от» — цена считается по проекту */
.price--note {
  font-weight: 700;
  color: var(--green);
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: var(--pill);
  background: var(--green);
  color: var(--cream);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge--light {
  background: rgba(244, 240, 232, 0.92);
  color: var(--green-700);
  backdrop-filter: blur(4px);
}

/* =====================================================================
   ШАПКА (две строки)
   ===================================================================== */
.site-header {
  position: sticky;
  /* Отрицательный top: верхняя строка (адрес/телефоны) плавно уезжает вверх
     вместе со страницей, а панель с лого, меню и кнопкой прилипает к верху.
     На мобильных --topbar-h = 0, поэтому там поведение прежнее. */
  top: calc(var(--topbar-h) * -1);
  z-index: 100;
  color: var(--cream);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease),
    color 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(251, 249, 244, 0.9);
  backdrop-filter: blur(12px) saturate(1.2);
  color: var(--ink);
  box-shadow: 0 10px 30px -24px rgba(20, 36, 24, 0.5);
}

/* Открытое мобильное меню — своя светлая подложка под логотип и бургер:
   hero уезжает вниз, и без фона кремовый текст оказывался на кремовом. */
.site-header.is-menu-open {
  background: var(--card);
  color: var(--ink);
}

/* --- Верхняя строка --- */
.topbar {
  border-bottom: 1px solid var(--line-cream);
  font-size: 0.85rem;
  transition: border-color 0.3s var(--ease);
}

.site-header.is-scrolled .topbar {
  border-bottom-color: var(--line);
}

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

.topbar-info {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topbar-info li,
.topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-info .ic,
.topbar-phone .ic {
  width: 16px;
  height: 16px;
  color: var(--timber-soft);
}

.site-header.is-scrolled .topbar-info .ic,
.site-header.is-scrolled .topbar-phone .ic {
  color: var(--green-500);
}

.topbar-info li {
  opacity: 0.82;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-socials {
  display: flex;
  gap: 6px;
}

.topbar-socials a {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.66rem;
  font-weight: 700;
  border: 1px solid currentColor;
  opacity: 0.5;
  transition: opacity 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.topbar-socials a:hover {
  opacity: 1;
  background: var(--green);
  border-color: var(--green);
  color: var(--cream);
}

.topbar-phone {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.topbar-phone:hover {
  color: var(--timber-soft);
}

.site-header.is-scrolled .topbar-phone:hover {
  color: var(--green-700);
}

/* --- Нижняя строка --- */
.mainbar {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-header.is-scrolled .mainbar {
  border-bottom-color: var(--line);
}

.mainbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--mainbar-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--green);
  color: var(--cream);
  display: grid;
  place-items: center;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(244, 240, 232, 0.12);
}

.brand-mark::before {
  content: "";
  width: 27px;
  height: 27px;
  background: currentColor;
  mask: url("/icon.svg") center / contain no-repeat;
  -webkit-mask: url("/icon.svg") center / contain no-repeat;
}

.brand-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
}

.nav {
  margin-inline: auto;
}

.nav-list {
  display: flex;
  gap: 2px;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 9px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
  border-radius: var(--r-sm);
  transition: opacity 0.2s, background 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
  opacity: 0.6;
}

.nav-link:hover {
  opacity: 1;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* --- Выпадающий список в меню (десктоп) --- */
.nav-item {
  position: relative;
}

.nav-link--drop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-caret {
  width: 13px;
  height: 13px;
  opacity: 0.7;
  transition: transform 0.25s var(--ease);
}

.nav-item--drop:hover .nav-link,
.nav-item--drop:focus-within .nav-link {
  opacity: 1;
}

.nav-item--drop:hover .nav-link::after,
.nav-item--drop:focus-within .nav-link::after {
  transform: scaleX(1);
}

.nav-item--drop:hover .nav-caret,
.nav-item--drop:focus-within .nav-caret {
  transform: rotate(180deg);
}

/* padding-top — «мостик» под курсор, чтобы список не закрывался в зазоре */
.nav-drop {
  position: absolute;
  top: 100%;
  left: 4px;
  z-index: 20;
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
    visibility 0.22s;
}

.nav-item--drop:hover .nav-drop,
.nav-item--drop:focus-within .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-card {
  min-width: 292px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg), var(--shadow-sm);
  color: var(--ink);
}

.nav-drop-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--r-sm);
  transition: background 0.2s var(--ease);
}

.nav-drop-link:hover {
  background: var(--green-tint);
}

.nav-drop-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--green-tint);
  color: var(--green);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-drop-ic .ic {
  width: 20px;
  height: 20px;
}

.nav-drop-link:hover .nav-drop-ic {
  background: var(--green);
  color: var(--cream);
}

.nav-drop-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-drop-note {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--ink-3);
}

.nav-drop-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding: 12px 10px 4px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
}

.nav-drop-all .ic {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}

.nav-drop-all:hover .ic {
  transform: translateX(3px);
}

.mainbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
}

.header-phone .ic {
  width: 18px;
  height: 18px;
  color: var(--green);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid currentColor;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  position: relative;
  opacity: 0.85;
}

.nav-toggle-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle-bar:nth-child(1) {
  top: 16px;
}

.nav-toggle-bar:nth-child(2) {
  top: 22px;
}

.nav-toggle-bar:nth-child(3) {
  top: 28px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  padding: 12px var(--pad) 28px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
}

.mobile-nav-list>li {
  border-bottom: 1px solid var(--line);
}

.mobile-nav-list>li>a,
.mobile-nav-row>a {
  display: block;
  padding: 14px 4px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

/* --- Раскрывающиеся услуги (мобильное меню) --- */
.mobile-nav-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-nav-row>a {
  flex: 1;
}

.mobile-nav-expand {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--green);
  transition: background 0.2s var(--ease), transform 0.3s var(--ease);
}

.mobile-nav-expand .ic {
  width: 18px;
  height: 18px;
}

.mobile-nav-group.is-open .mobile-nav-expand {
  background: var(--green-tint);
  transform: rotate(180deg);
}

.mobile-subnav {
  overflow: hidden;
  max-height: 0;
  margin-left: 5px;
  border-left: 2px solid var(--green-tint-2);
  transition: max-height 0.32s var(--ease);
}

.mobile-nav-group.is-open .mobile-subnav {
  /* с запасом: список услуг будет расти */
  max-height: 520px;
}

.mobile-subnav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px 12px 14px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink-2);
}

.mobile-subnav li:first-child a {
  padding-top: 14px;
}

.mobile-subnav li:last-child a {
  padding-bottom: 16px;
}

.mobile-subnav .ic {
  flex: none;
  width: 19px;
  height: 19px;
  color: var(--green);
}

.mobile-nav-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
  color: var(--ink);
}

.mobile-nav-foot .header-phone .ic {
  color: var(--green);
}

.mobile-nav-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-2);
}

.mobile-nav-meta .ic {
  width: 17px;
  height: 17px;
  color: var(--green);
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(120% 95% at 82% -10%,
      rgba(143, 211, 163, 0.22),
      transparent 55%),
    radial-gradient(90% 80% at 5% 115%,
      rgba(181, 130, 75, 0.2),
      transparent 55%),
    linear-gradient(165deg, #264630 0%, #1d3826 55%, #182e22 100%);
}

/* Вертикальные линии на зелёном фоне первого экрана. Видны только там, где
   нет фона-фото: с фотографией слой .hero-photo лежит выше и закрывает их.
   Яркость линий правится здесь — альфа в rgba. */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg,
      rgba(244, 240, 232, 0.11) 0,
      rgba(244, 240, 232, 0.11) 1px,
      transparent 1px,
      transparent 76px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}

/* --- ФОН-ФОТО ПЕРВОГО ЭКРАНА -----------------------------------------
   Снимок кладётся файлом в src/_img/hero/ (см. README.txt там же) и
   растягивается на весь первый экран. Файла нет — остаётся градиент
   .hero-bg выше, вёрстка не меняется.
   -------------------------------------------------------------------- */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-photo picture,
.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Чуть выше центра: низ кадра уходит под цифры и стык со следующей секцией */
  object-position: 50% 65%;
}

/* Вуаль со сдвигом влево: слева, под заголовком, кнопками и цифрами, плотно —
   там нужен контраст; справа почти прозрачно — там снимок и работает. Второй
   градиент подтемняет верх (под прозрачной шапкой) и низ. Плотность правится
   здесь. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(21, 35, 26, 0.94) 0%,
      rgba(21, 35, 26, 0.9) 34%,
      rgba(21, 35, 26, 0.72) 56%,
      rgba(21, 35, 26, 0.4) 80%,
      rgba(21, 35, 26, 0.3) 100%),
    linear-gradient(180deg,
      rgba(21, 35, 26, 0.5) 0%,
      transparent 26%,
      transparent 70%,
      rgba(21, 35, 26, 0.45) 100%);
}

/* Высота первого экрана с фото. На главной (.hero--home) снимок занимает
   почти всё окно, на внутренних страницах первый экран компактнее — но
   везде одинаковый. Правится здесь. */
.hero--photo {
  --hero-photo-h: min(56svh, 520px);
}

.hero--home.hero--photo {
  --hero-photo-h: min(88svh, 820px);
}

.hero--photo>.container {
  position: relative;
  z-index: 1;
  min-height: var(--hero-photo-h);
}

/* Внутренние страницы: контейнер не сетка, поэтому центрируем содержимое
   первого экрана по вертикали флексом. Сетку .hero-inner не трогаем —
   у неё уже есть align-items: center. */
.hero--photo>.container:not(.hero-inner) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: clamp(24px, 3.6vw, 40px);
}

/* С фотографией текст идёт одной колонкой слева — рисованной иллюстрации
   справа больше нет (см. index.njk). */
.hero--photo .hero-inner {
  grid-template-columns: minmax(0, 1fr);
}

.hero--photo .hero-copy {
  max-width: 820px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(26px, 4vw, 56px);
  min-height: min(74vh, 660px);
  padding-block: clamp(38px, 5vw, 60px);
}

.hero-copy {
  max-width: 600px;
}

.hero-title {
  font-size: clamp(2.4rem, 1.2rem + 3.6vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
}

/* На внутренних страницах заголовок идёт сразу за хлебными крошками (надзаголовка
   там больше нет) — отбиваем так же, как .proj-title на страницах проектов. */
.breadcrumbs+.hero-title {
  margin-top: clamp(13px, 2vw, 22px);
}

.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--timber-soft);
}

.hero-lead {
  margin-top: 20px;
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--cream-dim);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3.2vw, 36px);
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line-cream);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stats b {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.15rem + 1.2vw, 2.15rem);
  line-height: 1;
  color: var(--cream);
}

.hero-stats span {
  font-size: 0.86rem;
  color: var(--cream-faint);
  letter-spacing: 0.02em;
}

.hero-visual {
  position: relative;
}

.hero-art {
  position: relative;
  padding: 8%;
}

.hero-art-svg {
  width: 100%;
  height: auto;
  color: rgba(244, 240, 232, 0.88);
}

.hero-art-svg .hero-soft {
  stroke: rgba(244, 240, 232, 0.5);
}

.hero-art-svg .hero-ground {
  stroke: rgba(244, 240, 232, 0.55);
}

.hero-art-svg .hero-contours {
  stroke: rgba(143, 211, 163, 0.3);
  fill: none;
}

.hero-art-svg .hero-sun {
  stroke: var(--timber-soft);
}

.hero-art-svg .hero-smoke {
  stroke: rgba(244, 240, 232, 0.42);
  animation: drift 6s var(--ease) infinite;
}

@keyframes drift {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.42;
  }

  50% {
    transform: translateY(-5px);
    opacity: 0.7;
  }
}

.hero-badge {
  position: absolute;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}

.hero-badge {
  left: -2%;
  bottom: 8%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  max-width: 260px;
}

.hero-badge-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  background: var(--timber-tint);
  color: var(--timber);
  display: grid;
  place-items: center;
}

.hero-badge-text {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--ink-2);
}

.hero-badge-text b {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
}

/* =====================================================================
   УСЛУГИ
   ===================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 22px);
}

/* Услуги собраны в равноправный каталог из двух колонок. Иллюстрация всегда
   находится справа, а название, факты и цена читаются по одной вертикали. */
.service-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(150px, 14vw, 184px);
  min-height: 330px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 18px 45px -38px rgba(24, 40, 28, 0.48);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 107, 67, 0.35);
  box-shadow: 0 26px 56px -36px rgba(24, 40, 28, 0.5);
}

.service-card:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.service-card .card-link:focus-visible {
  outline: 0;
}

.service-media {
  position: relative;
  order: 2;
  border-left: 1px solid var(--line);
}

.service-media picture,
.service-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.service-media picture {
  position: relative;
  z-index: 0;
}

.service-media img {
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.35s var(--ease);
}

.service-media--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(145deg,
      rgba(21, 35, 26, 0.16),
      transparent 42%,
      rgba(21, 35, 26, 0.06));
}

.service-card:hover .service-media img {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.service-media .art {
  width: 145%;
  max-width: none;
  margin-left: -30%;
  transition: transform 0.45s var(--ease);
}

.service-card:hover .service-media .art {
  transform: translateX(-4px) scale(1.02);
}

.service-icon {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(251, 249, 244, 0.9);
  color: var(--green-700);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px -16px rgba(24, 40, 28, 0.7);
  backdrop-filter: blur(6px);
}

.service-icon .ic {
  width: 21px;
  height: 21px;
}

.service-index {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 12px;
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(var(--art-ink, 34, 64, 47), 0.52);
}

.service-media--photo .service-index {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 8px rgba(21, 35, 26, 0.45);
}

.service-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(24px, 2.4vw, 30px);
}

.service-kicker {
  margin-bottom: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--timber);
}

.service-name {
  max-width: 14ch;
  margin-bottom: 11px;
  font-size: clamp(1.3rem, 1.12rem + 0.42vw, 1.55rem);
  text-wrap: balance;
}

.service-desc {
  max-width: 45ch;
  color: var(--ink-2);
  font-size: 0.9rem;
  line-height: 1.58;
  text-wrap: pretty;
}

.service-feats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 16px 0 18px;
}

.service-feats li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-2);
}

.service-feats .ic {
  width: 14px;
  height: 14px;
  color: var(--green-500);
}

.service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.service-card .card-link {
  width: auto;
  height: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 0;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  transition: color 0.25s var(--ease);
}

.service-card .card-link .ic {
  width: 17px;
  height: 17px;
  transition: transform 0.25s var(--ease);
}

.service-card:hover .card-link .ic {
  transform: translate(2px, -2px);
}

/* Кликабельна вся карточка услуги, а не только кружок со стрелкой */
.service-card .card-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* Главное направление выделено цветом, но не ломает ритм каталога. */
.service-card--featured {
  background: linear-gradient(165deg, #264630, #1c3526);
  border-color: transparent;
  color: var(--cream);
}

.service-card--featured .service-media {
  border-left-color: var(--line-cream);
}

.service-card--featured .service-desc,
.service-card--featured .service-feats li {
  color: var(--cream-dim);
}

.service-card--featured .service-feats .ic {
  color: var(--timber-soft);
}

.service-card--featured .service-foot {
  border-top-color: var(--line-cream);
}

.service-card--featured .price {
  color: var(--cream-dim);
}

.service-card--featured .price b {
  color: var(--cream);
}

.service-card--featured .card-link {
  color: var(--cream);
}

.service-card--featured .service-kicker {
  color: var(--timber-soft);
}

/* Дополнительные работы — отдельная спокойная строка, а не «заплатка» в сетке. */
.services-more {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  min-height: 126px;
  padding: clamp(22px, 2.4vw, 30px);
  border-style: solid;
}

.services-more .works-cta-ic {
  margin: 0;
}

.services-more-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}

.services-more-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-700);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.services-more-action .ic {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.services-more:hover .services-more-action .ic {
  transform: translateX(3px);
}

/* =====================================================================
   ПРОЕКТЫ
   ===================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.filter {
  padding: 9px 18px;
  border-radius: var(--pill);
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.22s var(--ease);
}

.filter:hover {
  border-color: var(--green);
  color: var(--green-700);
}

.filter.is-active {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: var(--cream);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.projects-more {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* Каталог проектов (/proekty/) — панель расширенных фильтров */
.filter-bar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: clamp(15px, 2vw, 22px);
  margin-bottom: 24px;
}

.catalog-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px 22px;
}

.filter-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.filter-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.filter-group .filters {
  gap: 8px;
  margin-bottom: 0;
}

.filter-bar .filter {
  padding: 7px 14px;
  font-size: 0.88rem;
}

.filter-bar-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.catalog-count {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 600;
}

.filter-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: var(--pill);
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.86rem;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.filter-reset .ic {
  width: 15px;
  height: 15px;
}

.filter-reset:hover {
  border-color: var(--green);
  color: var(--green-700);
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease), opacity 0.3s var(--ease);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(46, 107, 67, 0.32);
  box-shadow: var(--shadow);
}

/* карточка — единая ссылка: псевдокнопка «Подробнее» реагирует на наведение на всю карточку */
.project-card:hover .btn-soft {
  background: var(--green-tint-2);
}

.project-card.is-hidden {
  display: none;
}

.project-media {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}

.project-media .art {
  transition: transform 0.5s var(--ease);
}

.project-card:hover .project-media .art {
  transform: scale(1.05);
}

/* Реальное фото проекта (первый кадр галереи) */
.project-media picture {
  position: absolute;
  inset: 0;
}

.project-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.project-card:hover .project-photo {
  transform: scale(1.05);
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.project-type {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.project-name {
  font-size: 1.32rem;
  margin-bottom: 16px;
}

.project-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.project-specs li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.project-specs .ic {
  width: 17px;
  height: 17px;
  color: var(--green-500);
}

.project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

/* Художественные панели-заглушки */
.art-panel {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.art-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 12%,
      rgba(255, 255, 255, 0.4),
      transparent 70%);
  z-index: -1;
}

/* Оттенки панелей. Номерные варианты (--0/--1/--2) перебираются по кругу там,
   где карточки идут списком: блог, портфолио, карточки проектов. У каталога
   услуг оттенок закреплён за услугой по имени — см. поле panel в
   src/_data/services.js, чтобы сетка не оказывалась сплошь зелёной.
   --art-ink — цвет линий иллюстрации (r, g, b), свой у холодных и тёплых
   панелей: зелёный штрих на глине и на голубом выглядел бы чужим. */
.art-panel--0,
.art-panel--moss {
  background: linear-gradient(160deg, #e9f0e4, #d2e2cd);
}

.art-panel--1,
.art-panel--sand {
  background: linear-gradient(160deg, #f1e7d4, #e2cfac);
}

.art-panel--2,
.art-panel--sage {
  background: linear-gradient(160deg, #e0eadf, #c9dbc7);
}

.art-panel--sky {
  --art-ink: 30, 54, 68;
  background: linear-gradient(160deg, #e6edf1, #c9d9e2);
}

.art-panel--clay {
  --art-ink: 78, 48, 34;
  background: linear-gradient(160deg, #f3e6de, #e5cbb9);
}

.art-panel--stone {
  --art-ink: 52, 54, 48;
  background: linear-gradient(160deg, #edeae2, #d8d4c8);
}

.art {
  width: 84%;
  height: auto;
  color: rgba(var(--art-ink, 34, 64, 47), 0.52);
}

.art .art-soft {
  stroke: rgba(var(--art-ink, 34, 64, 47), 0.3);
}

.art .art-ground {
  stroke: rgba(var(--art-ink, 34, 64, 47), 0.42);
}

/* =====================================================================
   О КОМПАНИИ
   ===================================================================== */
.section--about {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}

.about-list {
  display: grid;
  gap: 14px;
  margin: 22px 0 26px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--ink);
}

.about-list .ic {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-700);
}

.about-panel {
  background: linear-gradient(165deg, #264630, #1a3124);
  color: var(--cream);
  border-radius: var(--r-xl);
  padding: clamp(22px, 3.2vw, 32px);
  box-shadow: var(--shadow);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.about-stat {
  padding: 18px 16px;
  border: 1px solid var(--line-cream);
  border-radius: var(--r);
  background: rgba(244, 240, 232, 0.04);
}

.about-stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--cream);
}

.about-stat span {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--cream-faint);
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding: 15px 17px;
  border-radius: var(--r);
  background: rgba(244, 240, 232, 0.07);
}

.about-feature-icon {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  background: var(--timber);
  color: var(--green-night);
  display: grid;
  place-items: center;
}

.about-feature-icon .ic {
  width: 30px;
  height: 30px;
}

.about-feature b {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
}

.about-feature span {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: clamp(36px, 4.5vw, 58px);
}

.step {
  padding: 22px 18px 6px;
  border-top: 2px solid var(--green-tint-2);
  position: relative;
}

.step-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--green);
}

.step h3 {
  font-size: 1.12rem;
  margin: 12px 0 8px;
}

.step p {
  font-size: 0.92rem;
  color: var(--ink-2);
  line-height: 1.55;
}

/* =====================================================================
   ПОРТФОЛИО — свободная «живая» галерея объектов
   ===================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.4vw, 20px);
  align-items: start;
}

/* Колонки независимы — карточки внутри стоят вплотную, без вертикальных дыр */
.gallery-col {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.4vw, 20px);
}

.gallery-col--b {
  margin-top: clamp(26px, 4vw, 56px);
  /* средняя колонка сдвинута вниз */
}

.gallery-item {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.gallery-item:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

/* 1-я и 3-я колонки — квадрат, 2-я — вертикальная 3:4 */
.gallery-col--a .gallery-item,
.gallery-col--c .gallery-item {
  aspect-ratio: 1 / 1;
}

.gallery-col--b .gallery-item {
  aspect-ratio: 3 / 4;
}

/* Иллюстрация вне потока — высоту карточки задаёт только aspect-ratio (без наезда боксов) */
.gallery-item .art {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84%;
  transform: translate(-50%, -50%);
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover .art {
  transform: translate(-50%, -50%) scale(1.06) rotate(-1.5deg);
}

.gallery-photo,
.gallery-item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item picture {
  position: absolute;
  inset: 0;
}

.gallery-photo {
  position: static;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.045);
}

.gallery-cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(15px, 1.7vw, 20px);
  background: linear-gradient(to top,
      rgba(20, 33, 24, 0.86) 0%,
      rgba(20, 33, 24, 0.28) 42%,
      rgba(20, 33, 24, 0.02) 72%);
}

.gallery-cap h3 {
  font-size: clamp(1.12rem, 0.95rem + 0.5vw, 1.35rem);
  color: var(--cream);
}

.gallery-cap p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  font-size: 0.86rem;
  color: var(--cream-dim);
}

.gallery-cap p .ic {
  width: 15px;
  height: 15px;
  color: var(--timber-soft);
}

.gallery-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--cream);
  transition: max-height 0.4s var(--ease), opacity 0.35s var(--ease),
    margin-top 0.4s var(--ease);
}

.gallery-link .ic {
  width: 16px;
  height: 16px;
}

.gallery-item:hover .gallery-link,
.gallery-item:focus-within .gallery-link {
  max-height: 40px;
  opacity: 1;
  margin-top: 16px;
}

/* Две колонки: объекты портфолио — главное «доказательство» на сайте,
   в три ряда фото были слишком мелкими, чтобы что-то разглядеть. */
.portfolio-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
}

.portfolio-list-grid .gallery-item {
  aspect-ratio: 4 / 3;
}

.portfolio-empty,
.catalog-empty {
  max-width: 760px;
  padding: clamp(20px, 3.2vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.portfolio-empty h3,
.catalog-empty h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.7rem);
  color: var(--green-deep);
}

.portfolio-empty p,
.catalog-empty p {
  margin-top: 10px;
  color: var(--ink-2);
  line-height: 1.65;
}

.portfolio-photo-grid,
.portfolio-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
}

.portfolio-photo-link {
  display: block;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  background: #e5ede0;
}

.portfolio-photo-grid-img,
.portfolio-photo-grid-img img,
.portfolio-photo-link picture {
  display: block;
  width: 100%;
  height: 100%;
}

.portfolio-photo-grid-img img,
.portfolio-photo-link img {
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.portfolio-photo-link:hover img {
  transform: scale(1.04);
}

.portfolio-video {
  margin: 0;
}

.portfolio-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  background: #17241b;
  box-shadow: var(--shadow-sm);
}

.portfolio-video figcaption {
  margin-top: 10px;
  color: var(--ink-2);
  font-weight: 600;
}

.portfolio-empty-photo {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(160deg, #e9f0e4, #d2e2cd);
}

.portfolio-empty-photo span {
  width: 72px;
  height: 72px;
  color: var(--green);
}

/* =====================================================================
   БЛОГ
   ===================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: rgba(46, 107, 67, 0.3);
  box-shadow: var(--shadow);
}

.post-media {
  position: relative;
  aspect-ratio: 16 / 10;
  display: block;
}

.post-media .art {
  width: 72%;
  transition: transform 0.5s var(--ease);
}

.post-card:hover .post-media .art {
  transform: scale(1.05);
}

.post-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}

.post-meta {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--green);
  text-transform: uppercase;
}

.post-title {
  font-size: 1.2rem;
  margin: 12px 0 10px;
}

.post-title a {
  transition: color 0.2s;
}

.post-card:hover .post-title a {
  color: var(--green-700);
}

.post-excerpt {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.card-link-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--green);
}

.card-link-text .ic {
  width: 17px;
  height: 17px;
  transition: transform 0.25s var(--ease);
}

.post-card:hover .card-link-text .ic {
  transform: translate(3px, -3px);
}

/* =====================================================================
   FAQ
   ===================================================================== */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  background: transparent;
  border: none;
  text-align: left;
  color: var(--ink);
  transition: color 0.2s;
}

.faq-q:hover {
  color: var(--green-700);
}

.faq-q-text {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
}

.faq-toggle {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-700);
  display: grid;
  place-items: center;
  transition: background 0.25s, color 0.25s;
}

.faq-toggle .ic {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
}

.faq-toggle .ic-minus {
  display: none;
}

.faq-item.is-open .faq-toggle {
  background: var(--green);
  color: var(--cream);
}

.faq-item.is-open .ic-plus {
  display: none;
}

.faq-item.is-open .ic-minus {
  display: block;
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq-a>p {
  overflow: hidden;
  min-height: 0;
  /* Боковые поля постоянны, а нижнее анимируется теми же 0.35s, что и
     раскрытие строки грида. Если менять padding скачком, высота содержимого
     прыгает на 22px в начале открытия и в конце закрытия — и раскрытие
     заметно «дёргается». */
  padding: 0 4px;
  color: var(--ink-2);
  line-height: 1.65;
  font-size: 0.98rem;
  transition: padding-bottom 0.35s var(--ease);
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-a>p {
  padding-bottom: 22px;
}

/* =====================================================================
   ЗАЯВКА — широкое фото на всю ширину, светлый текст слева, форма в строку
   ===================================================================== */
.section--request {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 5.6vw, 104px);
  color: var(--cream);
}

/* --- ФОН-ФОТО СЕКЦИИ ЗАЯВКИ ------------------------------------------
   Снимок кладётся файлом в src/_img/zayavka/ (см. README.txt там же) и
   показывается в полную силу — приглушает его только вуаль .request-scrim.
   Файла нет — остаётся зелёный градиент ниже, вёрстка не меняется.
   -------------------------------------------------------------------- */
.request-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  /* Запасной фон и подложка на время загрузки фото */
  background: radial-gradient(110% 120% at 88% -10%,
      rgba(143, 211, 163, 0.18),
      transparent 58%),
    linear-gradient(160deg, #264630 0%, #1d3826 55%, #182e22 100%);
}

.request-bg picture,
.request-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Вуаль со сдвигом влево: слева, под текстом и формой, плотно — там нужен
   контраст; справа почти прозрачно — там снимок и работает. Плюс лёгкое
   затемнение сверху и снизу, чтобы фото не спорило с соседними секциями.
   Плотность правится здесь. */
.request-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(21, 35, 26, 0.92) 0%,
      rgba(21, 35, 26, 0.82) 30%,
      rgba(21, 35, 26, 0.55) 58%,
      rgba(21, 35, 26, 0.28) 82%,
      rgba(21, 35, 26, 0.22) 100%),
    linear-gradient(180deg,
      rgba(21, 35, 26, 0.3) 0%,
      transparent 22%,
      transparent 78%,
      rgba(21, 35, 26, 0.3) 100%);
}

.request-inner {
  position: relative;
  z-index: 1;
}

.request-head {
  /* Заголовок должен умещаться в одну строку на десктопе — отсюда запас */
  max-width: 820px;
  margin-bottom: clamp(22px, 2.6vw, 34px);
}

.request-head .section-title {
  color: var(--cream);
  font-size: clamp(1.7rem, 1.15rem + 1.9vw, 2.6rem);
}

.request-sub {
  margin-top: 14px;
  max-width: 54ch;
  font-size: 1.03rem;
  line-height: 1.6;
  color: var(--cream-dim);
}

/* --- Форма в одну строку: имя, телефон, услуга, кнопка --- */
.request-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  max-width: 960px;
}

.rf {
  position: relative;
  flex: 1 1 190px;
  min-width: 0;
}

.rf--select {
  flex: 1 1 230px;
}

.request-fields input,
.request-fields select {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid rgba(244, 240, 232, 0.32);
  border-radius: var(--r-sm);
  background: rgba(21, 35, 26, 0.42);
  color: var(--cream);
  font: inherit;
  font-size: 1rem;
  backdrop-filter: blur(6px);
  transition: border-color 0.2s var(--ease), background 0.2s;
}

.request-fields select {
  padding-right: 44px;
  appearance: none;
  cursor: pointer;
}

/* Выпадающий список рисует ОС — там фон системный, поэтому пункты красим
   явно, иначе на части браузеров получается светлый текст на светлом. */
.request-fields select option {
  background: var(--green-deep-2);
  color: var(--cream);
}

.request-fields input::placeholder {
  color: rgba(244, 240, 232, 0.6);
}

.request-fields input:hover,
.request-fields select:hover {
  border-color: rgba(244, 240, 232, 0.5);
}

.request-fields input:focus-visible,
.request-fields select:focus-visible {
  outline: none;
  border-color: var(--timber-soft);
  background: rgba(21, 35, 26, 0.6);
}

.rf-caret {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--cream-dim);
  pointer-events: none;
}

.request-fields .btn {
  flex: 0 0 auto;
  height: 56px;
  padding-inline: 1.9em;
}

/* Тёплый акцент под кнопку на фото: зелёная кнопка на тёмном снимке
   теряется, а дерево — вторичный акцент сайта — читается сразу. */
.btn-timber {
  background: var(--timber);
  color: #21160c;
  box-shadow: 0 14px 26px -16px rgba(20, 15, 8, 0.9);
}

.btn-timber:hover {
  background: var(--timber-soft);
  box-shadow: 0 20px 34px -16px rgba(20, 15, 8, 0.95);
}

.btn-timber:hover .ic {
  transform: translateX(3px);
}

/* --- Согласие на обработку ПД: галочку ставит сам посетитель --- */
.request-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 16px;
}

/* Рисуем свой квадрат: системный чекбокс на тёмном фоне выглядит инородно.
   Элемент остаётся настоящим <input type=checkbox> — работает клавиатура
   и нативная подсказка «Установите этот флажок» при отправке. */
.request-consent input {
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1px solid rgba(244, 240, 232, 0.45);
  border-radius: 5px;
  background: rgba(21, 35, 26, 0.42);
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
}

.request-consent input:hover {
  border-color: rgba(244, 240, 232, 0.7);
}

.request-consent input:checked {
  background: var(--timber);
  border-color: var(--timber);
}

/* Галочка — повёрнутый уголок из двух границ */
.request-consent input:checked::after {
  content: "";
  display: block;
  width: 5px;
  height: 10px;
  margin: 2px auto 0;
  border: solid #21160c;
  border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}

.request-consent input:focus-visible {
  outline: 2px solid var(--timber-soft);
  outline-offset: 2px;
}

.request-consent label {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--cream-faint);
  cursor: pointer;
}

.request-consent a {
  color: var(--cream-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.request-consent a:hover {
  color: var(--cream);
}

.request-success[hidden],
.request-error[hidden] {
  display: none;
}

.request-success,
.request-error {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 12px 16px;
  max-width: 640px;
  border-radius: var(--r-sm);
  font-size: 0.94rem;
  font-weight: 600;
}

.request-success {
  background: rgba(143, 211, 163, 0.16);
  border: 1px solid rgba(143, 211, 163, 0.4);
  color: var(--green-300);
}

.request-success .ic {
  width: 19px;
  height: 19px;
  flex: none;
}

.request-error {
  background: rgba(190, 74, 60, 0.18);
  border: 1px solid rgba(232, 130, 116, 0.45);
  color: #f0b8b0;
}

/* Доступная подпись только для скринридеров (визуально поле подписано
   плейсхолдером — в строку подписи не помещаются). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* =====================================================================
   ВСПЛЫВАЮЩЕЕ ОКНО С ЗАЯВКОЙ (_includes/request-modal.njk).

   Карточка тёмно-зелёная НЕ для красоты: вся вёрстка формы выше рассчитана
   на тёмный фон — светлый текст, свой чекбокс, подсветка полей. На светлой
   карточке пришлось бы переопределять полтора десятка правил.
   ===================================================================== */
.modal {
  /* margin:auto центрирует <dialog> по обеим осям в верхнем слое */
  margin: auto;
  padding: 0;
  border: 0;
  width: min(560px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow: visible;
  background: transparent;
  color: var(--cream);
}

.modal::backdrop {
  background: rgba(17, 28, 20, 0.74);
  backdrop-filter: blur(3px);
}

.modal[open] {
  animation: modal-in 0.24s var(--ease);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}

.modal-card {
  position: relative;
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 38px);
  background: linear-gradient(155deg, var(--green-deep) 0%, var(--green-night) 100%);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-cream);
  border-radius: 50%;
  background: rgba(21, 35, 26, 0.5);
  color: var(--cream-dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--cream);
  border-color: rgba(244, 240, 232, 0.4);
  background: rgba(21, 35, 26, 0.75);
}

.modal-close .ic {
  width: 18px;
  height: 18px;
}

.modal-title {
  margin: 12px 0 0;
  padding-right: 44px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 1.1rem + 1.4vw, 1.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.modal-sub {
  margin: 12px 0 22px;
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--cream-dim);
}

.modal-phone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-cream);
  font-size: 0.94rem;
  color: var(--cream-dim);
}

.modal-phone .ic {
  width: 17px;
  height: 17px;
  color: var(--timber-soft);
}

.modal-phone a {
  font-weight: 700;
  color: var(--cream);
}

.modal-phone a:hover {
  color: var(--timber-soft);
}

/* Форма в столбик: в секции внизу страницы поля стоят в строку, в узком
   окне для этого нет места. Флексу меняем направление, поэтому flex-basis
   у .rf начал бы задавать ВЫСОТУ поля — снимаем его явно. */
.request-form--stack .request-fields {
  flex-direction: column;
  max-width: none;
}

.request-form--stack .rf {
  flex: none;
  width: 100%;
}

.request-form--stack .request-fields .btn {
  width: 100%;
}

/* =====================================================================
   КОНТАКТЫ — полоса во всю ширину экрана, контент внутри в .container
   ===================================================================== */
.section--contacts {
  position: relative;
  background: radial-gradient(90% 120% at 92% 0%,
      rgba(143, 211, 163, 0.16),
      transparent 58%),
    linear-gradient(160deg, #264630, #1a3124);
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

/* Лёгкая фоновая иллюстрация в левой части полосы */
.contacts-deco {
  position: absolute;
  left: -2%;
  bottom: -10%;
  width: clamp(300px, 30%, 520px);
  z-index: 0;
  pointer-events: none;
}

.contacts-deco .art {
  width: 100%;
  color: rgba(244, 240, 232, 0.05);
}

.contacts-deco .art .art-soft,
.contacts-deco .art .art-ground {
  stroke: rgba(244, 240, 232, 0.045);
}

.contacts-inner {
  position: relative;
  z-index: 1;
}

.contacts-head {
  max-width: 720px;
  margin-bottom: clamp(26px, 3.2vw, 44px);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(22px, 3vw, 48px);
}

/* Тёмная полоса контактов переходит прямо в подвал: кремовый зазор между
   двумя тёмными блоками читался бы как ошибка вёрстки. Секция лежит внутри
   <main>, поэтому цепляемся через :has(). Страницы без контактов (политика,
   согласие, 404) сохраняют обычный отступ над подвалом. */
main:has(.section--contacts)+.site-footer {
  margin-top: 0;
}

/* На странице контактов полосы контактов нет — там страница заканчивается
   тёмной полосой заявки, и кремовый зазор перед подвалом читался бы так же
   ошибкой. На :last-child опираться нельзя: последним потомком <main> идёт
   <script> с микроразметкой. */
main:not(:has(.section--contacts)):has(.section--request)+.site-footer {
  margin-top: 0;
}

.contacts-promise {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px;
  padding: 11px 18px 11px 12px;
  border-radius: var(--pill);
  background: rgba(244, 240, 232, 0.08);
  border: 1px solid var(--line-cream);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cream);
}

.contacts-promise-ic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--timber);
  color: var(--green-night);
}

.contacts-promise-ic .ic {
  width: 16px;
  height: 16px;
}

.contacts-head .section-title {
  color: var(--cream);
  font-size: clamp(1.6rem, 1.15rem + 1.5vw, 2.3rem);
}

.contacts-head .section-sub--light {
  max-width: 56ch;
}

.contacts-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 20px;
}

.method {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--r);
  background: rgba(244, 240, 232, 0.05);
  border: 1px solid var(--line-cream);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.method:hover {
  background: rgba(244, 240, 232, 0.09);
  border-color: rgba(244, 240, 232, 0.24);
}

.method-ic {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(244, 240, 232, 0.08);
  color: var(--timber-soft);
}

.method-ic .ic {
  width: 19px;
  height: 19px;
}

.method-label {
  align-self: end;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.method-vals {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.method-val {
  align-self: start;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--cream);
  word-break: break-word;
}

a.method-val:hover {
  color: var(--timber-soft);
}

.contacts-socials {
  display: flex;
  gap: 10px;
}

.social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--green-tint);
  color: var(--green-700);
  transition: transform 0.25s var(--ease), background 0.25s;
}

.social:hover {
  transform: translateY(-3px);
}

.social--light {
  background: rgba(244, 240, 232, 0.1);
  color: var(--cream);
}

.social--light:hover {
  background: rgba(244, 240, 232, 0.2);
}

/* --- Карта офиса (нижняя полоса карточки контактов) --- */
.contacts-map {
  position: relative;
  height: 100%;
  min-height: clamp(320px, 32vw, 460px);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-cream);
  box-shadow: var(--shadow);
  isolation: isolate;
  /* подложка на время загрузки iframe */
  background: rgba(244, 240, 232, 0.06);
}

.contacts-map iframe,
.contacts-map .map-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  /* карта показывается в оригинальных цветах Яндекса — без тонировки:
     так она читается быстрее и метки не теряются на общем фоне */
}

.map-chip {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(360px, calc(100% - 32px));
  padding: 12px 18px 12px 12px;
  border-radius: var(--r);
  background: rgba(251, 249, 244, 0.92);
  backdrop-filter: blur(8px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.map-chip:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.map-chip-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 11px;
  background: var(--green);
  color: var(--cream);
}

.map-chip-ic .ic {
  width: 20px;
  height: 20px;
}

.map-chip-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.map-chip-text b {
  font-size: 0.92rem;
  line-height: 1.3;
}

.map-chip-text>span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--green-700);
}

.map-chip-text .ic {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}

.map-chip:hover .map-chip-text .ic {
  transform: translate(2px, -2px);
}

/* honeypot anti-spam: блок-ловушка с полями, которых нет в настоящей форме.
   Убран за границу экрана (не display:none — так его заполняет больше ботов),
   от скринридеров закрыт через aria-hidden в разметке. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* =====================================================================
   БЛОГ: страница статьи (/stati/<slug>/) и её типографика
   ===================================================================== */
.article-title {
  max-width: 20ch;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--cream-faint);
}

.article-cat {
  padding: 5px 12px;
  border-radius: var(--pill);
  background: rgba(244, 240, 232, 0.1);
  border: 1px solid var(--line-cream);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
}

/* Тело статьи. Ширина ограничена ~72 символами: длинная строка в тексте
   на 1200 px читалась бы тяжело. */
.article-body {
  max-width: 760px;
}

.article-lead {
  margin-bottom: 26px;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink);
}

.article-body h2 {
  margin: 36px 0 14px;
  font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.75rem);
  line-height: 1.2;
  color: var(--green-deep);
}

.article-body h3 {
  margin: 26px 0 10px;
  font-size: 1.2rem;
  color: var(--ink);
}

.article-body p {
  margin-bottom: 14px;
  line-height: 1.75;
  color: var(--ink-2);
}

.article-body strong {
  font-weight: 700;
  color: var(--ink);
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--ink-2);
}

.article-body ul {
  list-style: disc;
}

.article-body ol {
  list-style: decimal;
}

.article-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* Врезка с важным уточнением */
.article-note {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--green-500);
  border-radius: 0 var(--r) var(--r) 0;
  background: var(--green-tint);
}

.article-note p {
  margin: 0;
  color: var(--green-deep);
}

/* Таблица сравнения: на телефоне прокручивается по горизонтали,
   страница при этом не едет. */
.article-table-wrap {
  margin: 22px 0 26px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}

.article-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.article-table th,
.article-table td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.article-table thead th {
  background: var(--green-tint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.article-table tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
}

.article-table tbody td {
  color: var(--ink-2);
  line-height: 1.55;
}

.article-table tbody tr:last-child th,
.article-table tbody tr:last-child td {
  border-bottom: 0;
}

/* Призыв под текстом статьи */
.article-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  max-width: 760px;
  margin-top: clamp(28px, 3.4vw, 40px);
  padding: clamp(18px, 2.2vw, 24px);
  border: 1px solid var(--green-tint-2);
  border-radius: var(--r-lg);
  background: var(--green-tint);
}

.article-foot-text {
  max-width: 42ch;
  font-weight: 600;
  color: var(--green-deep);
}

.section--more-articles {
  background-color: var(--bg-2);
}

/* =====================================================================
   СТРАНИЦА КОНТАКТОВ (/contacts/)
   Секции контактов на других страницах не трогает — там своя тёмная полоса
   (.section--contacts в _includes/contacts.njk).
   ===================================================================== */
.contacts-page-lead {
  margin-top: 18px;
  max-width: 56ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--cream-dim);
}

.legal-hero .hero-cta {
  margin-top: clamp(22px, 2.6vw, 30px);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

/* Четыре карточки в ряд — узкие: ужимаем поля и иконку, чтобы под текст
   оставалось больше ширины и адрес не ломался на три строки.
   Селектор из двух классов намеренно: .adv-card объявлен ниже по файлу
   и при равной специфичности перебивал бы padding. */
.contact-cards .contact-card {
  padding: 20px 18px;
}

.contact-card .adv-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.contact-card .adv-icon .ic {
  width: 21px;
  height: 21px;
}

.contact-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.contact-card-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  /* Адрес в узкой карточке переносится по смыслу, а не «д.» / «56А» */
  text-wrap: balance;
}

.contact-card-lines a {
  color: var(--green-700);
  transition: color 0.2s;
}

.contact-card-lines a:hover {
  color: var(--timber);
}

.contact-card-note {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-3);
}

/* --- Реквизиты --- */
.contact-requisites {
  margin-top: clamp(18px, 2.2vw, 28px);
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--green-tint);
}

.contact-requisites h3 {
  font-size: 1.16rem;
  margin-bottom: 16px;
  color: var(--green-deep);
}

.contact-requisites dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 26px;
}

.contact-requisites dt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Сброс браузерного margin-inline-start: 40px у <dd> — иначе значение
   съезжает вправо относительно своей подписи <dt>. */
.contact-requisites dd {
  margin: 5px 0 0;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: break-word;
}

/* --- Карта проезда: та же карточка, что в тёмной полосе, но на светлом
       фоне и заметно выше — здесь она главный элемент секции --- */
.section--map {
  background-color: var(--bg-2);
}

.contacts-map--page {
  height: clamp(320px, 46vw, 560px);
  min-height: 0;
  border-color: var(--line);
}

/* =====================================================================
   ПОДВАЛ
   ===================================================================== */
.site-footer {
  margin-top: var(--section);
  padding-top: clamp(36px, 4.4vw, 54px);
  background: var(--green-night);
  color: var(--cream-dim);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: 32px;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line-cream);
}

.footer-about {
  margin: 18px 0 20px;
  max-width: 38ch;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--cream-faint);
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials .social {
  background: rgba(244, 240, 232, 0.08);
  color: var(--cream);
}

.footer-socials .social:hover {
  background: var(--green);
}

.footer-title {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-faint);
  margin-bottom: 18px;
}

.footer-col ul {
  display: grid;
  gap: 12px;
}

.footer-col a {
  color: var(--cream-dim);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--cream);
}

.footer-contacts li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.95rem;
}

.footer-contacts .ic {
  width: 18px;
  height: 18px;
  color: var(--timber-soft);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 21px;
  font-size: 0.84rem;
  color: var(--cream-faint);
}

.footer-requisites {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--cream-faint);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--cream);
}

.footer-disclaimer {
  padding-bottom: 24px;
  font-size: 0.76rem;
  line-height: 1.6;
  color: rgba(244, 240, 232, 0.34);
}

/* =====================================================================
   ПРАВОВЫЕ СТРАНИЦЫ (политика, согласие)
   ===================================================================== */
.legal-hero .container {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(26px, 4vw, 44px);
}

.legal-hero .proj-title {
  max-width: 20ch;
}

.legal-updated {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--cream-faint);
}

.legal-inner {
  max-width: 780px;
}

.legal h2 {
  margin: 30px 0 12px;
  font-size: clamp(1.18rem, 1rem + 0.7vw, 1.45rem);
  color: var(--ink);
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p {
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--ink-2);
}

.legal ul {
  margin: 0 0 12px;
  padding-left: 20px;
  list-style: disc;
  color: var(--ink-2);
}

.legal li {
  margin-bottom: 7px;
  line-height: 1.65;
}

.legal a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover {
  color: var(--green-700);
}

.legal-back {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legal-back a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
}

.legal-back .ic {
  width: 17px;
  height: 17px;
  transform: rotate(180deg);
}

/* =====================================================================
   ПЛАШКА COOKIE
   ===================================================================== */
.cookie-bar {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  /* выше шапки (100), чтобы плашку не перекрывал sticky-хедер */
  z-index: 110;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}

.cookie-bar[hidden] {
  display: none;
}

.cookie-bar.is-visible {
  opacity: 1;
  transform: none;
}

/* Кремовая карточка — как выпадающее меню и плашки в hero: читается
   и поверх тёмного hero, и поверх тёмного подвала, и на светлых секциях */
.cookie-bar-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg), var(--shadow-sm);
}

.cookie-bar-text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.cookie-bar-text a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-bar-text a:hover {
  color: var(--green-700);
}

.cookie-bar-btn {
  flex: none;
}

/* =====================================================================
   ПЛАШКА-АКЦИЯ (беспроцентная рассрочка) — на всех страницах.
   Полоса по центру во всю ширину контейнера, как cookie-плашка. Тёплое
   дерево (--timber), чтобы выделяться на зелёно-кремовом фоне, но оставаться
   в палитре. Крестик сворачивает её в кружок «0%» в углу, чтобы не мешать.
   ===================================================================== */
.promo-fab {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  /* выше контента, ниже cookie-плашки (110) и лайтбокса (1000) */
  z-index: 90;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.promo-fab[hidden] {
  display: none;
}

.promo-fab.is-in {
  opacity: 1;
  transform: none;
}

/* --- Развёрнутая полоса --- */
.promo-fab-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 14px 12px 12px;
  border-radius: var(--pill);
  color: var(--cream);
  background: linear-gradient(135deg, #c28f52, var(--timber) 55%, #9c6a35);
  box-shadow: 0 20px 44px -20px rgba(120, 78, 30, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Круглый бейдж «0%» — кремовый, читается как главный акцент */
.promo-fab-badge {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream);
  color: #9c6a35;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 10px -4px rgba(80, 50, 15, 0.5);
}

.promo-fab-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.promo-fab-copy b {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.promo-fab-copy span {
  font-size: 0.82rem;
  opacity: 0.85;
}

/* Кнопка-CTA — кремовая, зелёный текст (связка с брендом) */
.promo-fab-cta {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65em 1.2em;
  border-radius: var(--pill);
  background: var(--cream);
  color: var(--green-700);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px -6px rgba(60, 40, 12, 0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s var(--ease);
}

.promo-fab-cta .ic {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}

.promo-fab-cta:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 12px 22px -8px rgba(60, 40, 12, 0.6);
}

.promo-fab-cta:hover .ic {
  transform: translateX(3px);
}

/* Крестик «свернуть» */
.promo-fab-toggle {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: var(--cream);
  transition: background 0.2s var(--ease);
}

.promo-fab-toggle .ic {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.promo-fab-toggle:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* --- Свёрнутый кружок «0%» в углу --- */
.promo-fab-reopen {
  display: none;
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  color: var(--cream);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  background: linear-gradient(135deg, #c28f52, var(--timber) 55%, #9c6a35);
  box-shadow: 0 16px 34px -16px rgba(120, 78, 30, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.promo-fab-reopen:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px -16px rgba(120, 78, 30, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* В свёрнутом виде полоса прячется, остаётся кружок в левом нижнем углу */
.promo-fab.is-collapsed {
  right: auto;
}

.promo-fab.is-collapsed .promo-fab-bar {
  display: none;
}

.promo-fab.is-collapsed .promo-fab-reopen {
  display: block;
}

/* Узкие экраны — полоса складывается: кнопка уходит на вторую строку.
   Крестик обязан остаться в одной строке с бейджем и текстом, поэтому текст
   получает flex-basis 0 (сжимается и переносится), а не auto. */
@media (max-width: 640px) {
  .promo-fab {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .promo-fab-bar {
    flex-wrap: wrap;
    gap: 10px;
    row-gap: 10px;
    padding: 12px;
    border-radius: var(--r-lg);
  }

  .promo-fab-badge {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .promo-fab-copy {
    flex: 1 1 0;
    min-width: 0;
  }

  .promo-fab-copy b {
    font-size: 0.95rem;
  }

  .promo-fab-copy span {
    font-size: 0.78rem;
  }

  .promo-fab-toggle {
    width: 28px;
    height: 28px;
  }

  .promo-fab-toggle .ic {
    width: 13px;
    height: 13px;
  }

  .promo-fab-cta {
    order: 1;
    flex: 1 1 100%;
    margin-left: 0;
    justify-content: center;
    padding: 0.72em 1.1em;
    font-size: 0.88rem;
  }

  .promo-fab-reopen {
    width: 48px;
    height: 48px;
    font-size: 1.05rem;
  }
}

/* 360 px и уже — бейдж и крестик ужимаются ещё, чтобы заголовок акции
   помещался в две строки, а не в четыре */
@media (max-width: 380px) {
  .promo-fab-bar {
    gap: 9px;
    padding: 11px;
  }

  .promo-fab-badge {
    width: 36px;
    height: 36px;
    font-size: 0.92rem;
  }

  .promo-fab-copy b {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .promo-fab {
    transition: opacity 0.3s linear;
    transform: none;
  }
}

/* =====================================================================
   БОЛЬШОЙ БЛОК-АКЦИЯ под hero (главная + услуги). Тёплый деревянный банд:
   контраст к тёмному hero сверху и кремовым секциям снизу, в одной палитре
   с плавающей плашкой. Копирайт — в _includes/promo-band.njk.
   ===================================================================== */
.promo-band {
  position: relative;
  color: var(--cream);
  background: linear-gradient(135deg, #a9793f 0%, #8c5e30 55%, #6f4a26 100%);
  padding-block: clamp(30px, 3.7vw, 50px);
  overflow: hidden;
  isolation: isolate;
}

/* Тонкая деревянная «шкала» для фактуры — едва заметная */
.promo-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg,
      rgba(244, 240, 232, 0.05) 0,
      rgba(244, 240, 232, 0.05) 1px,
      transparent 1px,
      transparent 84px);
}

.promo-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(26px, 4vw, 52px);
}

.promo-band-title {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 0.95rem + 2.4vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.promo-band-title em {
  font-style: normal;
  color: #fff;
}

.promo-band-lead {
  margin: 16px 0 0;
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--cream-dim);
}

.promo-band-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 21px;
}

/* Карточка справа: крупный «0%» + три «без …» */
.promo-band-card {
  justify-self: end;
  width: 100%;
  max-width: 380px;
  padding: clamp(18px, 2.5vw, 25px);
  background: var(--card);
  color: var(--ink);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

.promo-band-medallion {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.promo-band-medallion b {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.4rem, 1.4rem + 2.6vw, 3.2rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--timber);
}

.promo-band-medallion span {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink-2);
}

.promo-band-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.promo-band-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1rem;
}

.promo-band-list .ic {
  flex: none;
  width: 28px;
  height: 28px;
  padding: 6px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-700);
  stroke-width: 2.2;
}

@media (max-width: 860px) {
  .promo-band-inner {
    grid-template-columns: 1fr;
  }

  .promo-band-card {
    justify-self: stretch;
    max-width: none;
  }
}

/* =====================================================================
   ЭКСКУРСИЯ НА ДЕЙСТВУЮЩИЙ ОБЪЕКТ. Светлая секция: слева весь текст —
   что видно на живой стройке и почему нужна запись, справа фотокарточка
   с заголовком и кнопкой. Копирайт — в _includes/excursion.njk.
   ===================================================================== */
/* Ровная зелёная подложка, а не градиент: секция стоит после разных блоков
   (FAQ, портфолио, объекты), и градиент от фона страницы давал бы стык
   там, где у предыдущей секции своя заливка */
.section--excursion {
  background-color: var(--green-tint);
}

/* Надзаголовок и заголовок стоят НАД сеткой, во всю ширину контейнера,
   поэтому в самой сетке остаются только текст слева и фото справа */
.excursion-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: start;
  gap: clamp(26px, 4vw, 54px);
}

.section--excursion .section-title em {
  font-style: normal;
  color: var(--green);
}

/* Что покажем: иконка + заголовок строки + пояснение под ним */
/* Вводный абзац теперь первый в колонке — отступ сверху ему не нужен */
.excursion-copy>.section-sub:first-child {
  margin-top: 0;
}

.excursion-list {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.excursion-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.excursion-list .ic {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: var(--card);
  color: var(--green-700);
  box-shadow: var(--shadow-sm);
  stroke-width: 2;
}

.excursion-list b {
  display: block;
  margin-bottom: 3px;
  font-size: 1rem;
  font-weight: 700;
}

.excursion-list span {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Условие записи: полоса сбоку вместо карточки — оговорку нужно прочитать,
   но она не должна выглядеть отдельным продающим блоком */
.excursion-note {
  margin-top: 28px;
  padding-left: clamp(16px, 2vw, 22px);
  border-left: 3px solid var(--timber);
}

.excursion-note p {
  margin: 10px 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.excursion-note a {
  font-weight: 700;
  color: var(--green-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.excursion-note a:hover {
  color: var(--timber);
}

/* Фотокарточка: снимок стройки на всю плитку, текст и кнопка прижаты книзу.
   Без фото (файла нет в src/_img/excursion/) остаётся зелёный градиент */
.excursion-card {
  /* Контейнер для .excursion-card-bg: без relative фон с затемнением
     цепляется к дальнему предку и растягивается на весь блок */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(340px, 32vw, 460px);
  padding: clamp(20px, 2.4vw, 26px);
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
  background: linear-gradient(150deg, var(--green-deep) 0%, var(--green-night) 100%);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

.excursion-card-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* И picture, и img: <picture> — строчный контейнер, без display:block
   высота 100% у картинки внутри него ни к чему не привязана */
.excursion-card-bg picture,
.excursion-card-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

/* Затемнение снизу: заголовок и кнопка должны читаться на любом кадре */
.excursion-card-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(21, 35, 26, 0.92) 0%,
      rgba(21, 35, 26, 0.72) 34%,
      rgba(21, 35, 26, 0.14) 68%,
      rgba(21, 35, 26, 0.06) 100%);
}

.excursion-card-title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 600;
  text-align: center;
  font-size: clamp(1.3rem, 1rem + 1.1vw, 1.52rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

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

  /* На узком экране карточка идёт под текстом и может быть ниже */
  .excursion-card {
    min-height: 300px;
  }
}

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

/* --- Хлебные крошки (в тёмном hero) --- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  position: relative;
  z-index: 1;
  padding-top: clamp(16px, 3vw, 28px);
  font-size: 0.86rem;
  color: var(--cream-dim);
}

.breadcrumbs a {
  transition: color 0.2s;
}

.breadcrumbs a:hover {
  color: var(--cream);
}

.breadcrumbs .sep {
  opacity: 0.45;
}

.breadcrumbs [aria-current] {
  color: var(--cream);
  font-weight: 600;
}

.breadcrumbs+.eyebrow {
  margin-top: 18px;
}

/* --- Hero услуги --- */
.svc-hero .container {
  position: relative;
  z-index: 1;
}

.svc-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(26px, 4vw, 52px);
  padding-block: clamp(28px, 3.8vw, 50px);
}

.svc-hero-copy {
  max-width: 640px;
  min-width: 0;
}

.svc-title {
  font-size: clamp(1.65rem, 0.95rem + 2.9vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--cream);
  overflow-wrap: break-word;
}

.svc-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--timber-soft);
}

.svc-lead {
  margin-top: 18px;
  max-width: 54ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--cream-dim);
}

.svc-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.svc-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px clamp(14px, 2.4vw, 30px);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-cream);
}

.svc-fact b {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 0.95rem + 1vw, 1.7rem);
  line-height: 1;
  color: var(--cream);
}

.svc-fact span {
  display: block;
  margin-top: 7px;
  font-size: 0.84rem;
  color: var(--cream-faint);
}

/* Ценовая карточка в hero */
.svc-hero-card {
  justify-self: end;
  width: 100%;
  max-width: 410px;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(20px, 2.6vw, 28px);
  box-shadow: var(--shadow-lg);
  min-width: 0;
}

.svc-card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.svc-card-label .ic {
  width: 17px;
  height: 17px;
  color: var(--timber);
}

.svc-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 12px 0 16px;
  font-family: var(--serif);
  color: var(--green-deep);
}

.svc-price b {
  font-weight: 600;
  font-size: clamp(1.75rem, 1.25rem + 1.7vw, 2.4rem);
  line-height: 1;
}

.svc-price span {
  font-size: 1rem;
  color: var(--ink-2);
}

.svc-card-lead {
  margin: 12px 0 2px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.svc-card-list {
  display: grid;
  gap: 11px;
  margin-bottom: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.svc-card-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.svc-card-list .ic {
  width: 20px;
  height: 20px;
  flex: none;
  padding: 3px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-700);
}

.svc-card-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  font-size: 0.86rem;
  color: var(--ink-3);
}

.svc-card-note .ic {
  width: 17px;
  height: 17px;
  color: var(--green-500);
}

/* --- Преимущества --- */
.section-head--center {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.adv-card {
  padding: 26px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.adv-card:hover {
  transform: translateY(-6px);
  border-color: rgba(46, 107, 67, 0.32);
  box-shadow: var(--shadow);
}

.adv-icon {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: var(--green-tint);
  color: var(--green-700);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.adv-icon .ic {
  width: 27px;
  height: 27px;
}

.adv-card h3 {
  font-size: 1.16rem;
  margin-bottom: 10px;
}

.adv-card p {
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* --- Комплектация + «пирог» стены --- */
.section--spec {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.spec-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}

/* Заголовок с подзаголовком — отдельной строкой во всю ширину */
.spec-head {
  grid-column: 1 / -1;
  max-width: none;
  margin-bottom: 0;
}

.spec-head .section-sub {
  max-width: 820px;
}

.spec-copy {
  min-width: 0;
}

.spec-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  margin-top: 22px;
}

.spec-copy>.spec-lists:first-child {
  margin-top: 0;
}

.spec-lists li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.98rem;
  color: var(--ink);
}

.spec-lists .ic {
  width: 22px;
  height: 22px;
  flex: none;
  padding: 4px;
  border-radius: 50%;
  background: var(--green-tint);
  color: var(--green-700);
  margin-top: 1px;
}

.pirog {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(20px, 2.6vw, 28px);
  box-shadow: var(--shadow);
}

.pirog h3 {
  font-size: 1.2rem;
}

.pirog-sub {
  margin: 6px 0 18px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.pirog-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pirog-layer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pirog-bar {
  width: 52px;
  height: 38px;
  flex: none;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(29, 35, 29, 0.06);
}

.pirog-bar--1 {
  background: linear-gradient(135deg, #cda06a, #b5824b);
}

.pirog-bar--2 {
  background: repeating-linear-gradient(135deg, #dbe7d4, #dbe7d4 4px, #cfe0c8 4px, #cfe0c8 8px);
}

.pirog-bar--3 {
  background: linear-gradient(135deg, #e3c08e, #d4a96f);
}

.pirog-bar--4 {
  background: repeating-linear-gradient(90deg, #e7efe3, #e7efe3 9px, #cdddc6 9px, #cdddc6 11px);
}

.pirog-bar--5 {
  background: linear-gradient(135deg, #cfe0c8, #b9d0af);
}

.pirog-bar--6 {
  background: linear-gradient(135deg, #f1ece1, #e2d8c6);
}

.pirog-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.pirog-text b {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
}

.pirog-text span {
  font-size: 0.82rem;
  color: var(--ink-3);
}

/* --- Тарифы / комплектации --- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 27px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.tier:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.tier-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.tier-price {
  margin: 12px 0 6px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.85rem;
  line-height: 1;
  color: var(--green-deep);
}

.tier-price span {
  font-size: 0.95rem;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink-2);
}

.tier-desc {
  margin-bottom: 4px;
  font-size: 0.94rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.tier-list {
  display: grid;
  gap: 11px;
  margin: 16px 0 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.tier-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.94rem;
  color: var(--ink-2);
}

.tier-list .ic {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--green-500);
  margin-top: 1px;
}

.tier .btn {
  margin-top: auto;
}

.tier-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  padding: 6px 14px;
  border-radius: var(--pill);
  background: var(--timber);
  color: var(--green-night);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Выделенный тариф (тёмный) */
.tier--featured {
  background: linear-gradient(165deg, #264630, #1c3526);
  border-color: transparent;
  color: var(--cream);
  box-shadow: var(--shadow);
}

.tier--featured .tier-name {
  color: var(--timber-soft);
}

.tier--featured .tier-price {
  color: var(--cream);
}

.tier--featured .tier-price span,
.tier--featured .tier-desc,
.tier--featured .tier-list li {
  color: var(--cream-dim);
}

.tier--featured .tier-list {
  border-top-color: var(--line-cream);
}

.tier--featured .tier-list .ic {
  color: var(--timber-soft);
}

/* --- Этапы (6 шагов) --- */
.proc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 22px;
}

/* --- Выполненные объекты --- */
/* Две колонки — как в портфолио на главной и в самом разделе (.portfolio-list-grid):
   объекты это главное «доказательство» на сайте, в три ряда фото были слишком
   мелкими, чтобы что-то разглядеть. */
.svc-works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 1.6vw, 24px);
}

.svc-works .gallery-item {
  aspect-ratio: 4 / 3;
}

/* Карточка «Все объекты» идёт последней. Если объектов нечётное число, она
   осталась бы одна в ряду с дырой справа — в этом случае растягиваем её
   на обе колонки. */
.svc-works .works-cta:nth-child(odd) {
  grid-column: 1 / -1;
}

.works-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: clamp(20px, 2.6vw, 28px);
  border-radius: var(--r-lg);
  border: 1px dashed var(--line-2);
  background: var(--green-tint);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.3s var(--ease);
}

.works-cta:hover {
  transform: translateY(-6px);
  background: var(--green-tint-2);
  border-color: var(--green);
}

.works-cta-ic {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: var(--cream);
  margin-bottom: 6px;
  transition: transform 0.25s var(--ease);
}

.works-cta-ic .ic {
  width: 22px;
  height: 22px;
}

.works-cta:hover .works-cta-ic {
  transform: rotate(-8deg);
}

.works-cta-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--green-deep);
}

.works-cta-sub {
  font-size: 0.92rem;
  color: var(--ink-2);
}

/* =====================================================================
   СТРАНИЦА ПРОЕКТА
   ===================================================================== */

/* --- Hero проекта --- */
.proj-title {
  margin-top: clamp(13px, 2vw, 22px);
  font-size: clamp(1.75rem, 1.15rem + 2.5vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--cream);
  overflow-wrap: break-word;
}

.proj-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--timber-soft);
}

.proj-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(22px, 3.2vw, 45px);
  padding-block: clamp(20px, 2.8vw, 35px) clamp(26px, 4vw, 52px);
}

.proj-figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, #e9f0e4, #d2e2cd);
}

.proj-figure>.badge {
  z-index: 12;
  pointer-events: none;
}

/* --- Swiper-галерея проекта --- */
.proj-gallery {
  width: 100%;
  height: 100%;
  --swiper-navigation-size: 16px;
}

.proj-gallery .swiper-wrapper {
  height: 100%;
}

.proj-slide {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #e9f0e4, #d2e2cd);
}

.proj-slide picture {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.proj-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* стрелки и точки */
.proj-gallery .swiper-button-prev,
.proj-gallery .swiper-button-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(251, 249, 244, 0.9);
  color: var(--green-deep);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.proj-gallery .swiper-button-prev svg,
.proj-gallery .swiper-button-next svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.proj-gallery .swiper-button-prev {
  left: 14px;
}

.proj-gallery .swiper-button-next {
  right: 14px;
}

.proj-gallery .swiper-button-prev:hover,
.proj-gallery .swiper-button-next:hover {
  background: var(--cream);
  transform: scale(1.06);
}

.proj-gallery .swiper-button-prev::after,
.proj-gallery .swiper-button-next::after {
  content: none;
}

.proj-gallery .swiper-pagination-bullet {
  background: #f4f0e8;
  opacity: 0.55;
  box-shadow: 0 1px 3px rgba(20, 33, 24, 0.35);
  transition: opacity 0.2s, width 0.3s var(--ease);
}

.proj-gallery .swiper-pagination-bullet-active {
  background: #fff;
  opacity: 1;
  width: 22px;
  border-radius: 5px;
}

/* --- Лайтбокс галереи --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 28, 20, 0.92);
  backdrop-filter: blur(8px);
}

.lightbox-stage {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1200px, 100%);
  animation: lb-in 0.3s var(--ease);
}

.lightbox-stage picture,
.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 84vh;
  width: auto;
  height: auto;
}

.lightbox-stage img {
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
}

@keyframes lb-in {
  from {
    opacity: 0;
    transform: scale(0.965);
  }
}

.lightbox-btn {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(244, 240, 232, 0.28);
  background: rgba(244, 240, 232, 0.08);
  color: var(--cream);
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.lightbox-btn svg {
  width: 22px;
  height: 22px;
}

.lightbox-btn:hover {
  background: rgba(244, 240, 232, 0.2);
  transform: scale(1.06);
}

.lightbox-close {
  top: 18px;
  right: 18px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 16px;
}

.lightbox-next {
  right: 16px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  transform: translateY(-50%) scale(1.06);
}

.lightbox-counter {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream-dim);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.proj-summary {
  min-width: 0;
}

.proj-tagline {
  max-width: 48ch;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--cream-dim);
}

.proj-quickspecs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.proj-quickspecs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--pill);
  background: rgba(244, 240, 232, 0.07);
  border: 1px solid var(--line-cream);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
}

.proj-quickspecs .ic {
  width: 17px;
  height: 17px;
  color: var(--timber-soft);
}

.proj-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-cream);
}

.proj-price-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-faint);
}

.proj-price-val {
  font-size: 1.05rem;
  color: var(--cream-dim);
}

.proj-price-val b {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 1.15rem + 1.4vw, 2.15rem);
  color: var(--cream);
}

.proj-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 21px;
}

/* --- Характеристики --- */
.proj-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.proj-stat {
  padding: 20px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.proj-stat b {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--green-deep);
}

.proj-stat span {
  display: block;
  margin-top: 8px;
  font-size: 0.86rem;
  color: var(--ink-2);
}

/* Блок вопросов и ответов — один макет на главной и на страницах услуг:
   заголовок по центру, аккордеон во всю ширину контейнера. */
.section--faq {
  background-color: var(--bg-2);
}

/* --- Комплектация проекта --- */
.section--equip {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.equip-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.equip-list {
  margin: 0;
}

.equip-row {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 8px 26px;
  padding: 14px clamp(17px, 2.4vw, 30px);
  transition: background 0.2s var(--ease);
}

.equip-row:nth-child(even) {
  background: rgba(46, 107, 67, 0.045);
}

.equip-row:hover {
  background: var(--green-tint);
}

.equip-row dt {
  position: relative;
  padding-left: 20px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.equip-row dt::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--green-300);
}

.equip-row dd {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink-2);
}

.equip-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px clamp(17px, 2.4vw, 30px);
  border-top: 1px solid var(--line);
  background: var(--card);
}

.equip-note {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--green-deep);
}

.equip-note .ic {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--green);
}

/* =====================================================================
   ТЕРРАСЫ И ВЕРАНДЫ (страница услуги)
   ===================================================================== */

/* --- Виды террас / варианты каркаса: крупные карточки 2 в ряд --- */
.trs-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: start;
}

.trs-type {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 26px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.trs-type:hover {
  transform: translateY(-6px);
  border-color: rgba(46, 107, 67, 0.32);
  box-shadow: var(--shadow);
}

.trs-type-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.trs-type-ic {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 15px;
  background: var(--green-tint);
  color: var(--green-700);
  display: grid;
  place-items: center;
}

.trs-type-ic .ic {
  width: 27px;
  height: 27px;
}

.trs-type h3 {
  font-size: 1.16rem;
}

.trs-type-tag {
  display: block;
  margin-top: 7px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--timber);
}

.trs-type-desc {
  color: var(--ink-2);
  font-size: 0.96rem;
  line-height: 1.6;
}

.trs-type-list {
  display: grid;
  gap: 11px;
  margin: 16px 0 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.trs-type-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.94rem;
  color: var(--ink-2);
}

.trs-type-list .ic {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 1px;
  color: var(--green-500);
}

.trs-type .btn {
  margin-top: auto;
}

/* Тёмный акцент — для «главного» варианта в паре */
.trs-type--dark {
  background: linear-gradient(165deg, #264630, #1c3526);
  border-color: transparent;
  color: var(--cream);
  box-shadow: var(--shadow);
}

.trs-type--dark:hover {
  border-color: transparent;
}

.trs-type--dark .trs-type-ic {
  background: rgba(244, 240, 232, 0.1);
  color: var(--timber-soft);
}

.trs-type--dark .trs-type-tag {
  color: var(--timber-soft);
}

.trs-type--dark .trs-type-desc,
.trs-type--dark .trs-type-list li {
  color: var(--cream-dim);
}

.trs-type--dark .trs-type-list {
  border-top-color: var(--line-cream);
}

.trs-type--dark .trs-type-list .ic {
  color: var(--timber-soft);
}

/* --- Фото и заглушки страницы услуги --- */

/* Общий вид любого фото в слоте: заполняет свой контейнер целиком */
.trs-photo,
.trs-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.trs-media picture {
  position: absolute;
  inset: 0;
}

.trs-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

/* Контейнер фото: пропорция задаётся модификатором */
.trs-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--green-tint);
  aspect-ratio: 16 / 10;
}

.trs-type:hover .trs-media img {
  transform: scale(1.045);
}

/* Заглушка, пока фото нет: рисованная сцена в стилистике сайта */
.trs-media--art {
  display: grid;
  place-items: center;
}

.trs-media--art .art {
  width: 88%;
  color: rgba(34, 64, 47, 0.5);
}

/* Фото-шапка карточки «вида» и «каркаса» */
.trs-type .trs-media {
  margin: -26px -24px 18px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}

.trs-type--dark .trs-media {
  background: rgba(244, 240, 232, 0.08);
}

/* На тёмной карточке рисунок перекрашиваем в светлый — иначе сливается */
.trs-type--dark .trs-media--art .art {
  color: rgba(143, 211, 163, 0.55);
}

.trs-type--dark .trs-media--art .art .art-soft {
  stroke: rgba(244, 240, 232, 0.3);
}

.trs-type--dark .trs-media--art .art .art-ground {
  stroke: rgba(143, 211, 163, 0.42);
}

/* Фото вместо иконки в карточке покрытия пола */
.adv-media {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin: -26px -24px 16px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--green-tint);
}

.adv-media picture {
  position: absolute;
  inset: 0;
}

.adv-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.adv-card:hover .adv-media img {
  transform: scale(1.045);
}

/* Правая колонка секции комплектации: фото над «пирогом» настила */
.trs-spec-side {
  display: grid;
  gap: clamp(18px, 2.5vw, 26px);
  align-content: center;
  min-width: 0;
}

/* Фото-врезка с подписью */
.trs-figure {
  margin: 0;
}

.section--equip>.container>.trs-figure {
  margin-bottom: clamp(20px, 2.5vw, 30px);
}

.equip-card-head .trs-figure {
  margin-top: 18px;
}

.trs-figure .trs-media {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

.trs-figure--wide .trs-media {
  aspect-ratio: 21 / 9;
}

.trs-figcaption {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--ink-3);
}

.trs-figcaption .ic {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 2px;
  color: var(--green-500);
}

/* --- Стопка карточек-таблиц (остекление, кровля) --- */
.trs-stack {
  display: grid;
  gap: 18px;
}

.equip-card-head {
  padding: clamp(18px, 2.5vw, 25px) clamp(17px, 2.4vw, 30px) 6px;
}

.equip-card-head h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.22rem;
}

.equip-card-head h3 .ic {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--green);
}

.equip-card-head p {
  margin-top: 9px;
  max-width: 72ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
}

/* =====================================================================
   АНИМАЦИИ ПОЯВЛЕНИЯ
   ===================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* =====================================================================
   АДАПТИВ
   ===================================================================== */
@media (max-width: 1080px) {

  .services-grid,
  .projects-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-more {
    grid-column: 1 / -1;
  }

  .blog-grid .post-card:last-child {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .blog-grid .post-card:last-child .post-media {
    width: 42%;
    aspect-ratio: auto;
  }

  .blog-grid .post-card:last-child .post-body {
    width: 58%;
    justify-content: center;
  }

  .adv-grid,
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  :root {
    --topbar-h: 0px;
    --mainbar-h: 66px;
  }

  .svc-hero-inner,
  .spec-grid,
  .tiers,
  .trs-types,
  .proj-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .svc-hero-card {
    justify-self: stretch;
    max-width: none;
  }

  .proc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 24px;
  }

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

  .tier--featured {
    order: -1;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-card {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 26%);
    min-height: 300px;
  }

  .topbar,
  .nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: clamp(32px, 7.5vw, 52px);
  }

  /* На планшете и телефоне первый экран с фото ниже: текст идёт одной
     колонкой и занимает больше высоты сам по себе. */
  .hero--photo {
    --hero-photo-h: min(52svh, 440px);
  }

  .hero--home.hero--photo {
    --hero-photo-h: min(78svh, 640px);
  }

  /* Узкий экран — текст лежит поверх середины кадра, поэтому вуаль плотнее
     по всей ширине, а не только слева. */
  .hero-scrim {
    background: linear-gradient(90deg,
        rgba(21, 35, 26, 0.9) 0%,
        rgba(21, 35, 26, 0.82) 55%,
        rgba(21, 35, 26, 0.72) 100%),
      linear-gradient(180deg,
        rgba(21, 35, 26, 0.45) 0%,
        transparent 30%,
        transparent 68%,
        rgba(21, 35, 26, 0.45) 100%);
  }

  .hero-visual {
    display: none;
  }

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

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

  /* Форма заявки: имя+телефон в строку, услуга и кнопка — во вторую */
  .request-fields {
    max-width: 640px;
  }

  .request-fields .btn {
    flex: 1 1 100%;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 24px;
  }

  .gallery-col--b {
    margin-top: clamp(20px, 3.2vw, 38px);
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .section-head--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .cookie-bar {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 18px;
  }

  .equip-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-block: 14px;
  }

  .equip-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .equip-foot .btn {
    width: 100%;
  }

  /* На телефоне карта — единственный способ «осмотреться», поэтому она
     заметно выше, чем была: под плашкой с адресом остаётся живая площадь */
  .contacts-map {
    height: 380px;
    border-radius: var(--r);
  }

  .map-chip {
    top: 12px;
    left: 12px;
    gap: 10px;
    padding: 10px 14px 10px 10px;
    max-width: calc(100% - 24px);
  }

  .map-chip-ic {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .map-chip-ic .ic {
    width: 18px;
    height: 18px;
  }

  .service-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .service-media,
  .service-card--featured .service-media {
    order: 0;
    aspect-ratio: 16 / 7;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-card--featured .service-media {
    border-bottom-color: var(--line-cream);
  }

  .service-media .art {
    width: 78%;
    margin-left: 0;
  }

  .services-more {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
  }

  .services-more-action {
    grid-column: 2;
    justify-self: start;
  }

  .services-grid,
  .projects-grid,
  .portfolio-list-grid,
  .portfolio-photo-grid,
  .portfolio-video-grid,
  .blog-grid,
  .contact-cards,
  .contact-requisites dl {
    grid-template-columns: 1fr;
  }

  .blog-grid .post-card:last-child,
  .blog-grid .post-card:last-child .post-media,
  .blog-grid .post-card:last-child .post-body {
    flex-direction: column;
    width: 100%;
  }

  .blog-grid .post-card:last-child .post-media {
    aspect-ratio: 16 / 10;
  }

  .gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .gallery-col {
    gap: 14px;
    min-width: 0;
  }

  .gallery-col--b {
    margin-top: 0;
  }

  .gallery-col--a .gallery-item,
  .gallery-col--b .gallery-item,
  .gallery-col--c .gallery-item {
    aspect-ratio: 4 / 3;
  }

  .contacts-deco {
    display: none;
  }

  .adv-grid,
  .proc-grid,
  .spec-lists {
    grid-template-columns: 1fr;
  }

  .svc-works {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .contact-requisites dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 24px;
    padding-bottom: 30px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .about-panel,
  .svc-hero-card,
  .pirog,
  .works-cta,
  .promo-band-card,
  .portfolio-empty,
  .catalog-empty {
    padding: 20px 16px;
    border-radius: var(--r-lg);
  }

  .service-body,
  .adv-card,
  .tier {
    padding: 20px 18px;
  }

  /* Шаги идут в одну колонку — боковые поля только сужают строку */
  .step {
    padding: 16px 0 4px;
  }
}

@media (max-width: 520px) {

  /* Поля контейнера и вертикальные интервалы секций — телефону хватает
     меньших: раньше 18 px по краям плюс паддинги карточек оставляли под
     текст полосу ~230 px */
  :root {
    --pad: 16px;
    --section: 30px;
  }

  .section-head {
    margin-bottom: 22px;
  }

  /* --- Кнопки: на телефоне были почти 50 px в высоту --- */
  .btn {
    padding: 0.85em 1.25em;
    font-size: 0.94rem;
  }

  .btn-lg {
    padding: 0.88em 1.3em;
    font-size: 0.95rem;
  }

  .btn-sm {
    padding: 0.66em 1em;
    font-size: 0.86rem;
  }

  .hero-title {
    font-size: clamp(2rem, 1.1rem + 4.4vw, 2.4rem);
  }

  .hero-lead {
    margin-top: 16px;
    font-size: 1rem;
  }

  .hero-cta {
    gap: 10px;
    margin-top: 22px;
  }

  .hero-cta .btn,
  .promo-band-cta .btn {
    flex: 1 1 auto;
  }

  .promo-band-cta {
    gap: 10px;
    margin-top: 18px;
  }

  .hero-stats {
    gap: 16px 26px;
    margin-top: 26px;
    padding-top: 20px;
  }

  .mainbar-actions .btn {
    display: none;
  }

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

  .site-footer {
    padding-top: 34px;
  }

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

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

  .contacts-grid {
    gap: 18px;
  }

  .contacts-methods {
    grid-template-columns: 1fr;
  }

  /* Форма заявки: на телефоне каждое поле на всю ширину, в столбик */
  .request-fields {
    gap: 10px;
  }

  .rf,
  .rf--select {
    flex: 1 1 100%;
  }

  .contacts-methods {
    gap: 8px;
    margin-bottom: 16px;
  }

  .contacts-promise {
    gap: 9px;
    margin-bottom: 14px;
    padding: 8px 14px 8px 8px;
    font-size: 0.86rem;
  }

  .contacts-promise-ic {
    width: 28px;
    height: 28px;
  }

  .method {
    column-gap: 11px;
    padding: 10px 12px;
  }

  .method-ic {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .method-ic .ic {
    width: 17px;
    height: 17px;
  }

  /* 16 px обязательны: при меньшем размере iOS Safari зумит страницу,
     как только палец попадает в поле */
  .request-fields input,
  .request-fields select {
    height: 52px;
    padding-inline: 15px;
    font-size: 16px;
  }

  .request-fields select {
    padding-right: 40px;
  }

  .request-fields .btn {
    height: 52px;
  }
}

/* Самые узкие телефоны (320–380 px) */
@media (max-width: 380px) {
  :root {
    --pad: 14px;
  }

  .about-panel,
  .svc-hero-card,
  .pirog,
  .works-cta,
  .promo-band-card {
    padding: 16px 12px;
  }

  .service-body,
  .adv-card,
  .tier {
    padding: 18px 15px;
  }

  .about-stats,
  .svc-facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
