﻿/* ===== Sections – Алматы Строй Сервис =====
   Hero уже отдельным блоком сверху.
   Остальные секции по порядку из 04_СТРУКТУРА.md */


/* =================================================================
   01. HERO – Asymmetric Magazine
   ================================================================= */
.hero {
  position: relative;
  background: var(--bg);
  padding: clamp(108px, 11vh, 152px) var(--space-pad-x) clamp(56px, 7vh, 96px);
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -240px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero__left {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2vw, 28px);
  padding: 0;
}

/* Полоса 3 ключевых направлений под H1 */
.hero__svc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.hero__svc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  transition: border-color var(--t-base) var(--e-out),
              background-color var(--t-base) var(--e-out),
              color var(--t-base) var(--e-out),
              transform var(--t-base) var(--e-out);
}
.hero__svc-link::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.hero__svc-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dk);
  transform: translateY(-1px);
}
.hero__svc-link .arrow {
  font-size: 13px;
  color: var(--ink-mute);
  transition: transform var(--t-base) var(--e-out), color var(--t-base) var(--e-out);
}
.hero__svc-link:hover .arrow {
  color: var(--accent);
  transform: translateX(3px);
}


/* =================================================================
   CLIENT-TICKER – бегущая строка клиентов между Hero и Manifest
   ================================================================= */
.client-ticker {
  background: var(--ink);
  color: var(--ink-on-dark);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.client-ticker::before,
.client-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 96px;
  z-index: 2;
  pointer-events: none;
}
.client-ticker::before {
  left: 0;
  background: linear-gradient(to right, var(--ink), transparent);
}
.client-ticker::after {
  right: 0;
  background: linear-gradient(to left, var(--ink), transparent);
}
.client-ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 50s linear infinite;
}
.client-ticker:hover .client-ticker__track {
  animation-play-state: paused;
}
.client-ticker__item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.005em;
  white-space: nowrap;
  padding: 0 clamp(24px, 3vw, 40px);
  position: relative;
  color: var(--ink-on-dark);
}
.client-ticker__item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .client-ticker__track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }
  .client-ticker::before,
  .client-ticker::after { display: none; }
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: var(--tr-pill);
  text-transform: uppercase;
  color: var(--ink-2);
  flex-wrap: wrap;
}
.hero__eyebrow .num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-size: 15px;
}
.hero__eyebrow .dash {
  width: 64px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
  word-break: normal;
  overflow-wrap: break-word;
}
.hero__title .light  { font-weight: 400; color: var(--ink-2); }
.hero__title .accent { color: var(--accent); }
.hero__manifest {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
  letter-spacing: -0.005em;
}
.hero__manifest strong { color: var(--ink); font-weight: 600; }
.hero__ctas {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.hero__right {
  flex: 0 0 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(20px, 2.5vw, 32px);
  padding: clamp(8px, 2vw, 24px) 0;
}
.hero__case-card {
  display: block;
  background: var(--bg-card);
  border-radius: var(--r-xl);
  padding: var(--space-5);
  box-shadow: var(--sh-md);
  transition: transform var(--t-base) var(--e-out), box-shadow var(--t-base) var(--e-out);
}
.hero__case-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.hero__case-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--space-4);
  background:
    radial-gradient(ellipse at 70% 80%, rgba(var(--accent-rgb), 0.32), transparent 60%),
    linear-gradient(135deg, #2A2520 0%, #4A4035 35%, #6E5C45 70%, #8E7558 100%);
}
.hero__case-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(175deg, transparent 0, transparent 60px, rgba(255,255,255,0.03) 60px, rgba(255,255,255,0.03) 62px);
}
.hero__case-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__case-tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 4px 12px;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tr-pill);
  text-transform: uppercase;
  z-index: 2;
}
.hero__case-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-3); }
.hero__case-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.hero__case-info { font-size: 12px; color: var(--ink-2); margin-top: 4px; line-height: 1.4; }
.hero__case-arrow {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background-color var(--t-base) var(--e-out), color var(--t-base) var(--e-out), transform var(--t-base) var(--e-out);
}
.hero__case-card:hover .hero__case-arrow { background: var(--accent); color: var(--accent-on); transform: translateX(3px); }
.hero__metric { display: flex; flex-direction: column; }
.hero__metric-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 5.5vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.hero__metric-num .plus { font-size: 0.42em; color: var(--accent); margin-top: 0.3em; }
.hero__metric-label {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.hero__metric-sub { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.hero__contact { display: flex; flex-direction: column; gap: 4px; }
.hero__contact-phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero__contact-phone:hover { color: var(--accent); }
.hero__contact-place { font-size: 13px; color: var(--ink-2); }
.hero__contact-icons { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
.hero__contact-icons .icon-round { width: 36px; height: 36px; }
.hero__contact-icons .icon-round svg { width: 16px; height: 16px; }


/* =================================================================
   Универсальные section-блоки
   ================================================================= */
.section {
  padding: var(--space-section) var(--space-pad-x);
  position: relative;
}
.section--soft  { background: var(--bg-soft); }
.section--deep  { background: var(--bg-deep); color: var(--ink-on-dark); }
.section__inner { width: 100%; max-width: var(--container); margin: 0 auto; }
.section__inner--narrow { max-width: var(--container-narrow); }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-block);
  flex-wrap: wrap;
}
.section-header__lead { max-width: 720px; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: var(--tr-pill);
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--space-4);
}
.section-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.section-title .accent { color: var(--accent); }
.section--deep .section-title { color: var(--ink-on-dark); }

.section-sub {
  margin-top: var(--space-4);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 640px;
}


/* =================================================================
   02. MANIFEST – Compact Sticky Pairs (вариант E)
   sticky-колонка слева + горизонтальные мини-карточки справа
   ================================================================= */
.manifest {
  padding: clamp(56px, 6vw, 80px) var(--space-pad-x);
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.manifest__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.manifest__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 3vw, 48px);
}
.manifest__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 640px;
}
.manifest__title .accent { color: var(--accent); }

/* Grid */
.pairs {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

/* Sticky words */
.pairs__words {
  position: sticky;
  top: clamp(60px, 8vh, 100px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pairs__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  margin-bottom: var(--space-3);
}
.pairs__num strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}
.pairs__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--ink-2); /* WCAG AA контраст на cream-фоне */
  transition: color 350ms var(--e-out), transform 350ms var(--e-out);
  padding: 5px 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.04em;
}
.pairs__word.is-active {
  color: var(--ink);
  transform: translateX(6px);
}
.pairs__word .dot {
  color: var(--ink-mute);
  transition: color 350ms var(--e-out);
}
.pairs__word.is-active .dot { color: var(--accent); }

/* List of horizontal mini-cards */
.pairs__list {
  display: flex;
  flex-direction: column;
}
.pair {
  display: grid;
  grid-template-columns: clamp(180px, 22vw, 240px) 1fr auto;
  gap: clamp(16px, 2vw, 28px);
  align-items: center;
  padding: clamp(14px, 1.5vw, 20px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 250ms var(--e-out);
}
.pair:first-child { border-top: 1px solid var(--line); }
@media (hover: hover) {
  .pair:hover { padding-left: var(--space-2); }
}

/* Photo placeholders (gradient stand-ins) */
.pair__photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden;
}
.pair__photo--produc  { background: linear-gradient(135deg, #4A4035 0%, #8E7558 50%, #C8A584 100%); }
.pair__photo--supply  { background: linear-gradient(135deg, #2A3D4F 0%, #5A8FB1 100%); }
.pair__photo--montage { background: linear-gradient(135deg, #6E4F3A 0%, #C8A584 100%); }
.pair__photo--exp     { background: linear-gradient(135deg, #1F2C3F 0%, #4A6280 100%); }
.pair__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0, transparent 40px, rgba(255,255,255,0.04) 40px, rgba(255,255,255,0.04) 42px);
}
.pair__photo:has(img)::after { display: none; }
.pair__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pair__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.pair__step {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 700;
}
.pair__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pair__meta {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-2);
}

.pair__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background-color var(--t-base) var(--e-out),
              color var(--t-base) var(--e-out),
              transform var(--t-base) var(--e-out);
  flex-shrink: 0;
}
.pair:hover .pair__arrow {
  background: var(--accent);
  color: var(--accent-on);
  transform: translateX(3px);
}


/* =================================================================
   03. 6 НАПРАВЛЕНИЙ
   ================================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform var(--t-base) var(--e-out), box-shadow var(--t-base) var(--e-out), border-color var(--t-base) var(--e-out);
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: var(--accent);
}
.service-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.service-card__photo--ppu     { background: linear-gradient(135deg, #E8E0D2 0%, #C9BBA1 100%); }
.service-card__photo--gidro   { background: linear-gradient(135deg, #2A3D4F 0%, #5A7488 100%); }
.service-card__photo--floors  { background: linear-gradient(135deg, #4A3E2D 0%, #8E7558 50%, #C8A584 100%); }
.service-card__photo--fire    { background: linear-gradient(135deg, #5A2A1F 0%, #C8512E 100%); }
.service-card__photo--vitrazh { background: linear-gradient(135deg, #1F2C3F 0%, #4A6280 100%); }
.service-card__photo--facade  { background: linear-gradient(135deg, #6E5840 0%, #B89870 100%); }

.service-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0, transparent 40px, rgba(255,255,255,0.03) 40px, rgba(255,255,255,0.03) 42px);
}
.service-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--e-out);
}
.service-card:hover .service-card__photo img { transform: scale(1.04); }
.service-card__photo:has(img)::after { display: none; }
.service-card__tag {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: 4px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tr-pill);
  text-transform: uppercase;
  z-index: 2;
}
.service-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex-grow: 1;
}
.service-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.service-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  flex-grow: 1;
}
.service-card__metric {
  margin-top: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
}
.service-card__metric-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.service-card__metric--price { align-items: flex-end; }
.service-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.service-card__price span {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-2);
  margin-left: 2px;
}
.service-card__metric-label {
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-2);
  text-align: right;
  flex-shrink: 1;
}
.service-card__arrow {
  align-self: flex-end;
  margin-top: -8px;
  font-size: 20px;
  color: var(--accent);
  transition: transform var(--t-base) var(--e-out);
}
.service-card:hover .service-card__arrow { transform: translateX(6px); }


/* Disclaimer про цены под карточками услуг */
.services-disclaimer {
  margin-top: var(--space-8);
  padding: var(--space-4) var(--space-6);
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 880px;
}
.services-disclaimer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.services-disclaimer a:hover { color: var(--accent-dk); }


/* =================================================================
   03a. ДОП. НАПРАВЛЕНИЯ – pill-полоса
   ================================================================= */
.services-extra {
  margin-top: var(--space-12);
  padding: var(--space-6) var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
}
.services-extra__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: var(--tr-pill);
  text-transform: uppercase;
  color: var(--ink-2);
  margin-right: var(--space-2);
}
.services-extra__pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  background: var(--bg-soft);
  color: var(--ink);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  transition: background-color var(--t-base) var(--e-out), color var(--t-base) var(--e-out);
}
.services-extra__pill:hover {
  background: var(--accent);
  color: var(--accent-on);
}


/* =================================================================
   04. INDUSTRY-VERTICAL – кому делаем
   ================================================================= */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.industry-grid > *:nth-child(7) { grid-column: span 1; }
.industry-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-base) var(--e-out), box-shadow var(--t-base) var(--e-out), border-color var(--t-base) var(--e-out);
}
.industry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: var(--accent);
}
.industry-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.industry-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.industry-card__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}
.industry-card__examples {
  margin-top: var(--space-2);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: var(--tr-wide);
  line-height: 1.5;
}
.industry-card--b2c { border-color: var(--accent); background: var(--accent-soft); }
.industry-card--b2c .industry-card__icon { background: var(--accent); color: var(--accent-on); }


/* =================================================================
   05. КЕЙСЫ – горизонтальная карусель + фильтр
   ================================================================= */

/* Шапка кейсов: фильтры слева, контролы справа */
.cases-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}
.cases-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  flex: 1 1 auto;
  min-width: 0;
}
.cases-filter {
  padding: 10px 18px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t-base) var(--e-out), color var(--t-base) var(--e-out), border-color var(--t-base) var(--e-out);
}
.cases-filter:hover { border-color: var(--ink); }
.cases-filter.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Контролы карусели */
.cases-controls {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}
.cases-counter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  min-width: 60px;
  text-align: center;
}
.cases-counter strong { color: var(--ink); }
.cases-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: background-color var(--t-base) var(--e-out),
              color var(--t-base) var(--e-out),
              border-color var(--t-base) var(--e-out),
              transform var(--t-fast) var(--e-out);
}
.cases-arrow:hover {
  background: var(--accent);
  color: var(--accent-on);
  border-color: var(--accent);
}
.cases-arrow:active { transform: scale(0.96); }
.cases-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

/* Сама лента карусели */
.cases-track-wrap {
  position: relative;
  margin: 0 calc(var(--space-pad-x) * -1);
  padding: 0 var(--space-pad-x);
  overflow: hidden;
  /* мягкий fade по краям */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--space-pad-x), #000 calc(100% - var(--space-pad-x)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--space-pad-x), #000 calc(100% - var(--space-pad-x)), transparent 100%);
}
.cases-track {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-3);
  scroll-behavior: smooth;
}
.cases-track::-webkit-scrollbar { display: none; }

.case-card {
  flex: 0 0 360px;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  scroll-snap-align: start;
  transition: transform var(--t-base) var(--e-out), box-shadow var(--t-base) var(--e-out);
}
.case-card.is-hidden { display: none; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.case-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.case-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--e-out);
}
.case-card:hover .case-card__photo img { transform: scale(1.04); }
.case-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}
.case-card__cat {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  padding: 4px 12px;
  background: rgba(247,244,238,0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--ink);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--tr-pill);
  text-transform: uppercase;
  z-index: 2;
}
.case-card__body { padding: var(--space-5); }
.case-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: var(--space-2);
}
.case-card__client { font-size: 13px; color: var(--ink-2); margin-bottom: var(--space-3); }
.case-card__service {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* (фото-плейсхолдеры удалены – теперь используются реальные <img> из img/catalog/) */


/* =================================================================
   06. ПРОЦЕСС РАБОТЫ – 5 шагов
   ================================================================= */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-5);
  position: relative;
}
.process-step {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative;
}
.process-step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.process-step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.process-step__desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  flex-grow: 1;
}
.process-step__time {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
}


/* =================================================================
   07. ПРОИЗВОДСТВО – split 50/50
   ================================================================= */
.production {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.production__photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse at 70% 30%, rgba(var(--accent-rgb), 0.3), transparent 60%),
    linear-gradient(135deg, #2A2520 0%, #4A4035 35%, #6E5C45 70%, #B89870 100%);
  position: relative;
  overflow: hidden;
}
.production__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 60px, rgba(255,255,255,0.04) 60px, rgba(255,255,255,0.04) 62px);
}
.production__photo:has(img)::after { display: none; }
.production__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.production__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.production__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.production__title .accent { color: var(--accent); }
.production__lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
}
.production__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.production__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.production__item-mark {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}


/* =================================================================
   08. КАЛЬКУЛЯТОР / КВИЗ
   ================================================================= */
.calc {
  background: var(--bg-card);
  border-radius: var(--r-2xl);
  padding: clamp(32px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: stretch;
  border: 1px solid var(--line);
}
.calc__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: center;
}
.calc__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.calc__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}
.calc__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 15px;
  color: var(--ink-2);
}
.calc__list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  margin-top: 1px;
}
.calc__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.field__input,
.field__select,
.field__textarea {
  width: 100%;
  padding: 14px 16px;
  font: 16px/1.4 var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--t-base) var(--e-out), box-shadow var(--t-base) var(--e-out);
}
.field__input::placeholder { color: var(--ink-mute); }
.field__input:hover, .field__select:hover, .field__textarea:hover { border-color: var(--line-strong); }
.field__input:focus, .field__select:focus, .field__textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field__input--error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(179, 58, 44, 0.12);
}
.field__textarea { resize: vertical; min-height: 80px; }
.field--honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
.calc__hint {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}
.calc__msg { font-size: 14px; padding: 12px 16px; border-radius: var(--r-md); display: none; }
.calc__msg--ok    { background: rgba(92, 124, 90, 0.12); color: #3F5A3F; }
.calc__msg--err   { background: rgba(179, 58, 44, 0.12); color: var(--error); }
.calc__msg.is-on  { display: block; }


/* =================================================================
   09. AT-A-GLANCE – метрики
   ================================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 7vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.stat__num .plus { font-size: 0.4em; color: var(--accent); margin-top: 0.25em; }
.stat__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.stat__sub { font-size: 13px; color: var(--ink-2); line-height: 1.4; }


/* =================================================================
   10. КЛИЕНТЫ + СЕРТИФИКАТЫ
   ================================================================= */
.clients-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-block);
}
.client-logo {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter var(--t-base) var(--e-out), opacity var(--t-base) var(--e-out), color var(--t-base) var(--e-out);
  text-align: center;
  min-height: 80px;
}
.client-logo:hover { filter: grayscale(0); opacity: 1; color: var(--ink); }

.certs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
}
.cert {
  aspect-ratio: 5 / 7.4;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--space-3) var(--space-3) var(--space-4);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--space-2);
  overflow: hidden;
  font-size: 12px;
  color: var(--ink-2);
  text-decoration: none;
  transition: transform var(--t-base) var(--e-out), box-shadow var(--t-base) var(--e-out);
}
.cert:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.cert__type {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: var(--tr-pill);
  text-transform: uppercase;
  color: var(--accent);
}
.cert__name { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--ink); line-height: 1.3; }
.cert__img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: var(--r-sm);
  transition: transform var(--t-base) var(--e-out);
}
.cert:hover .cert__img { transform: scale(1.02); }


/* =================================================================
   11. КОТТЕДЖИ – B2C блок
   ================================================================= */
.cottages {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-12);
  align-items: center;
}
.cottages__text { display: flex; flex-direction: column; gap: var(--space-5); }
.cottages__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.cottages__lead {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
}
.cottages__bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-3) 0;
}
.cottages__bullets li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 15px;
  color: var(--ink);
}
.cottages__bullets li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.cottages__ctas { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-2); }

.cottages__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: var(--space-3);
}
.cottages__gallery > div {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-md);
  background-size: cover;
  background-position: center;
}
.cottages__gallery > div:nth-child(1) { background: linear-gradient(135deg, #B89870 0%, #6E5840 100%); grid-row: span 2; aspect-ratio: 1 / 2; }
.cottages__gallery > div:nth-child(2) { background: linear-gradient(135deg, #C8A584 0%, #8E7558 100%); }
.cottages__gallery > div:nth-child(3) { background: linear-gradient(135deg, #A87B5E 0%, #6E4F3A 100%); }
.cottages__gallery > div:nth-child(4) { background: linear-gradient(135deg, #D4A782 0%, #A87B5E 100%); }
.cottages__gallery > div:nth-child(5) { background: linear-gradient(135deg, #C9BBA1 0%, #8E7558 100%); }


/* =================================================================
   12. FAQ – аккордеон
   ================================================================= */
.faq { max-width: var(--container-narrow); margin: 0 auto; }
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: color var(--t-base) var(--e-out);
}
.faq__q:hover { color: var(--accent); }
.faq__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  transition: transform var(--t-base) var(--e-out), background-color var(--t-base) var(--e-out), color var(--t-base) var(--e-out);
}
.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: var(--accent-on);
}
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow) var(--e-out);
}
.faq__a-inner {
  padding: 0 0 var(--space-6);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 720px;
}
.faq__item.is-open .faq__a { max-height: 600px; }


/* =================================================================
   13. CTA + ФОРМА (главная контактная секция)
   ================================================================= */
.cta {
  background: var(--accent-soft);
  border-radius: var(--r-2xl);
  padding: clamp(40px, 5vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: stretch;
}
.cta__intro { display: flex; flex-direction: column; gap: var(--space-5); }
.cta__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.cta__bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.cta__bullets li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 16px;
  color: var(--ink);
}
.cta__bullets li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.cta__contact {
  margin-top: auto;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(26,26,26,0.08);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.cta__phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cta__phone:hover { color: var(--accent); }
.cta__email-line { font-size: 14px; color: var(--ink-2); }

.cta__form {
  background: var(--bg-card);
  padding: var(--space-8);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--sh-md);
}


/* =================================================================
   14. FOOTER
   ================================================================= */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: clamp(48px, 6vw, 80px) var(--space-pad-x) var(--space-8);
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer-grid--three { grid-template-columns: 1.6fr 1fr 1fr; }
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: var(--tr-pill);
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--space-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a, .footer-col span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  transition: color var(--t-base) var(--e-out);
}
.footer-col a:hover { color: var(--accent); }
.footer-col__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-col__brand p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 320px;
}
.footer-col__phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-mute);
}
.footer-bottom a:hover { color: var(--accent); }


/* =================================================================
   15. COOKIE BANNER
   ================================================================= */
.cookie {
  position: fixed;
  bottom: var(--space-5);
  left: var(--space-5);
  right: var(--space-5);
  z-index: var(--z-cookie);
  max-width: 640px;
  background: var(--bg-card);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--space-5) var(--space-6);
  display: none;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.cookie.is-on { display: flex; }
.cookie__text {
  flex: 1 1 280px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.cookie__text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie__buttons { display: flex; gap: var(--space-2); flex-wrap: wrap; }


/* =================================================================
   ВРЕМЕННО: фото-плейсхолдер срабатывает только когда внутри нет <img>.
   Как только в блок добавляется реальная картинка – плейсхолдер уходит
   автоматически (благодаря :not(:has(img))). Удалить блок целиком,
   когда все фото поступят.
   ================================================================= */
.hero__case-photo:not(:has(> img)),
.svc-hero__photo:not(:has(> img)),
.case-card__photo:not(:has(> img)),
.mag-case__photo:not(:has(> img)) {
  background:
    linear-gradient(135deg, var(--bg-soft) 0%, var(--accent-soft) 60%, var(--line) 100%) !important;
}
.case-card__photo:not(:has(> img))::after { display: none !important; }
.hero__case-photo:not(:has(> img))::after,
.svc-hero__photo:not(:has(> img))::after,
.case-card__photo:not(:has(> img))::before,
.mag-case__photo:not(:has(> img))::after {
  content: "ФОТО";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
  pointer-events: none;
  background: none !important;
  z-index: 1;
}
