/* ============================================================
   ГОРИЗОНТ — ремонт коммерческих помещений
   Единая дизайн-система сайта
   ============================================================ */

:root {
  /* Палитра */
  --ink: #14181f;          /* основной графит */
  --ink-2: #1c232d;        /* графит светлее (карточки на тёмном) */
  --ink-3: #2a3340;
  --paper: #ffffff;
  --bg: #f5f6f8;           /* светло-серый фон секций */
  --line: #e6e8ec;
  --text: #232a33;
  --muted: #6b7480;
  --accent: #ff6b2c;       /* оранжевый акцент */
  --accent-dark: #e5561b;
  --accent-soft: #fff1ea;
  --green: #1fa363;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 24, 31, .08);
  --shadow-lg: 0 20px 50px rgba(20, 24, 31, .14);
  --container: 1180px;
  --header-h: 76px;
}

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

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

body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select { font: inherit; }

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

/* ---------- Типографика ---------- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 4.6vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: clamp(19px, 2vw, 23px); }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--gray { background: var(--bg); }
.section--dark { background: var(--ink); }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 52px); }
.section-head .kicker {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.section--dark .section-head p { color: #a8b0bb; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border-radius: 12px;
  font-weight: 700; font-size: 16px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 8px 22px rgba(255, 107, 44, .35);
}
.btn--primary:hover { background: var(--accent-dark); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); }

.btn--outline {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--line);
}
.btn--outline:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.section--dark .btn--outline, .hero .btn--outline, .page-hero .btn--outline {
  color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.28);
}
.section--dark .btn--outline:hover, .hero .btn--outline:hover, .page-hero .btn--outline:hover { box-shadow: inset 0 0 0 2px #fff; }

.btn--wa { background: #23b34a; color: #fff; }
.btn--wa:hover { background: #1d9b3f; }
.btn--tg { background: #2aa5e0; color: #fff; }
.btn--tg:hover { background: #1f92cb; }
.btn--max { background: #7b4dff; color: #fff; }
.btn--max:hover { background: #6a3ef2; }

.btn--lg { padding: 18px 34px; font-size: 17px; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 28px;
}
.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo svg { height: 40px; width: auto; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font-size: 19px; font-weight: 800; letter-spacing: .04em; color: var(--ink); }
.logo__text small { font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: .02em; margin-top: 3px; }
.footer .logo__text b { color: #fff; }
.footer .logo__text small { color: #8b95a1; }

.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav a {
  font-weight: 600; font-size: 15.5px; color: var(--text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s;
  white-space: nowrap;
}
.nav a:hover { color: var(--accent); }
.nav a.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.header__contacts { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header__phone { font-weight: 800; font-size: 17px; color: var(--ink); white-space: nowrap; }
.header__phone:hover { color: var(--accent); }
.header__msgrs { display: flex; gap: 8px; }
.msgr-ic {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.msgr-ic:hover { transform: translateY(-2px); }
.msgr-ic svg { width: 20px; height: 20px; }
.msgr-ic--wa { background: #e9f9ee; color: #1d9b3f; }
.msgr-ic--tg { background: #e8f5fc; color: #1f92cb; }
.msgr-ic--max { background: #f0ebff; color: #6a3ef2; }

.header .btn--primary { padding: 12px 22px; font-size: 15px; }

.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.burger span {
  display: block; width: 22px; height: 2.5px; border-radius: 2px;
  background: var(--ink);
  transition: transform .25s, opacity .25s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  display: none;
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: #fff;
  padding: 28px 20px 40px;
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu .nav { display: flex !important; flex-direction: column; gap: 4px; margin: 0 0 24px; }
.mobile-menu .nav a { font-size: 19px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu__actions { display: grid; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(255,107,44,.18), transparent 60%),
    linear-gradient(160deg, #171d26 0%, var(--ink) 55%, #10141a 100%);
  color: #dfe4ea;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,107,44,.6), transparent);
}
.hero__inner {
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 90px);
  max-width: 780px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent); }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: #aeb6c0; max-width: 620px; margin-bottom: 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.hero__note { font-size: 14.5px; color: #8b95a1; display: flex; align-items: center; gap: 8px; }
.hero__note svg { width: 17px; height: 17px; color: var(--green); flex: none; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px; font-weight: 600; color: #cdd4dc;
  margin-bottom: 26px;
}
.hero__badge svg { width: 16px; height: 16px; color: var(--accent); }

/* Статистика */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 26px 0 clamp(48px, 6vw, 72px);
}
.stat {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.stat__num { font-size: clamp(28px, 3vw, 38px); font-weight: 800; color: #fff; line-height: 1.1; }
.stat__num span { color: var(--accent); }
.stat__label { font-size: 14.5px; color: #98a1ad; margin-top: 6px; }

/* ---------- Карточки услуг ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 27px; height: 27px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; flex: 1; }
.card__link {
  margin-top: 18px;
  font-weight: 700; font-size: 15px; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.card__link svg { width: 16px; height: 16px; transition: transform .15s; }
.card:hover .card__link svg { transform: translateX(4px); }

.card--featured { position: relative; border-color: var(--accent); }
.card--featured::before {
  content: "Флагман";
  position: absolute; top: -12px; right: 20px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}

/* ---------- Преимущества ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.benefit {
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.benefit__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255,107,44,.14); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.benefit__icon svg { width: 24px; height: 24px; }
.benefit h3 { color: #fff; font-size: 18.5px; margin-bottom: 8px; }
.benefit p { color: #a3abb6; font-size: 15px; }

/* ---------- Диаграмма «качественно / быстро / дёшево» ---------- */
.venn {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: clamp(26px, 4vw, 52px); align-items: center;
}
.venn__figure {
  margin: 0;
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(14px, 2.5vw, 28px);
  box-shadow: var(--shadow-lg);
}
.venn__figure svg { width: 100%; height: auto; }
.venn__text h3 { color: #fff; margin-bottom: 12px; }
.venn__text p { color: #a8b0bb; font-size: 17px; }
@media (max-width: 860px) {
  .venn { grid-template-columns: 1fr; }
  .venn__figure { max-width: 520px; }
}

/* ---------- Этапы ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
}
.step__num {
  font-size: 15px; font-weight: 800; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.step__num::before {
  content: "";
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft);
  display: inline-flex;
  counter-increment: step;
}
.step__num::before { content: counter(step, decimal-leading-zero); display: inline-flex; align-items: center; justify-content: center; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Портфолио ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter button {
  padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: 14.5px;
  background: var(--paper); color: var(--text);
  border: 1px solid var(--line);
  transition: all .15s;
}
.filter button:hover { border-color: var(--accent); color: var(--accent); }
.filter button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.work:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.work__media {
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(320px 200px at 70% 20%, rgba(255,107,44,.16), transparent 65%),
    linear-gradient(150deg, #222a35, #171d26);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: #7d8794;
  position: relative;
}
.work__media svg { width: 44px; height: 44px; opacity: .75; }
.work__media span { font-size: 13.5px; font-weight: 600; }
.work__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work--clickable { cursor: pointer; }
.work__badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  background: rgba(20, 24, 31, .78);
  color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: .03em;
  padding: 6px 13px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.work__body { padding: 20px 22px 22px; }
.work__tag {
  display: inline-block;
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.work h3 { font-size: 18.5px; margin-bottom: 6px; }
.work__meta { color: var(--muted); font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 6px 16px; }

/* ---------- Отзывы ---------- */
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  align-items: stretch;
}
.review {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.review__stars { display: inline-flex; gap: 3px; color: var(--accent); }
.review__stars svg { width: 19px; height: 19px; }
.review__verified {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 700; color: var(--green);
  white-space: nowrap;
}
.review__verified svg { width: 15px; height: 15px; }
.review__service {
  font-size: 13px; font-weight: 700; color: var(--muted);
  letter-spacing: .01em; margin-bottom: 12px;
}
.review__text { color: var(--text); font-size: 16px; line-height: 1.6; margin-bottom: 20px; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__avatar {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 20px;
}
.review__name { font-weight: 800; font-size: 16px; color: var(--ink); line-height: 1.2; }
.review__date { font-size: 13.5px; color: var(--muted); margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  font-weight: 700; font-size: 17px; color: var(--ink);
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; }

/* ---------- CTA-полоса ---------- */
.cta-band {
  background:
    radial-gradient(700px 320px at 15% 120%, rgba(255,107,44,.25), transparent 60%),
    linear-gradient(150deg, #1a212b, var(--ink));
  border-radius: 22px;
  padding: clamp(38px, 5vw, 64px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #a8b0bb; max-width: 520px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Формы / калькулятор ---------- */
.calc {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px;
  align-items: start;
}
.calc__form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 38px);
}
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 700; font-size: 15px; color: var(--ink); margin-bottom: 10px; }
.field input[type="number"], .field select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }

.seg { display: flex; flex-wrap: wrap; gap: 10px; }
.seg label {
  display: inline-flex; align-items: center;
  padding: 11px 18px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; color: var(--text);
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 0;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.checks { display: grid; gap: 10px; }
.checks label {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: all .15s;
  margin-bottom: 0;
}
.checks label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.checks input { width: 18px; height: 18px; accent-color: var(--accent); }

.calc__result {
  position: sticky; top: calc(var(--header-h) + 20px);
  background: var(--ink);
  border-radius: var(--radius);
  padding: 30px 28px;
  color: #cbd2da;
}
.calc__result h3 { color: #fff; font-size: 19px; margin-bottom: 18px; }
.calc__rows { display: grid; gap: 10px; margin-bottom: 20px; font-size: 15px; }
.calc__rows div { display: flex; justify-content: space-between; gap: 12px; }
.calc__rows dt { color: #8b95a1; }
.calc__rows dd { font-weight: 700; color: #fff; text-align: right; }
.calc__price { font-size: clamp(28px, 3vw, 36px); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 6px; }
.calc__price span { color: var(--accent); }
.calc__disc { font-size: 13.5px; color: #8b95a1; margin-bottom: 22px; }
.calc__result .btn { width: 100%; margin-bottom: 10px; }

/* ---------- Контент-страницы (услуги, блог) ---------- */
.page-hero {
  background: linear-gradient(160deg, #171d26, var(--ink));
  color: #aeb6c0;
  padding: clamp(48px, 6vw, 80px) 0;
}
.page-hero h1 { color: #fff; margin: 14px 0 16px; max-width: 800px; }
.page-hero p { max-width: 680px; font-size: 18px; }
.breadcrumbs { font-size: 14px; color: #7d8794; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span::before { content: "/"; margin-right: 8px; color: #4a5460; }

.prose { max-width: 780px; }
.prose h2 { margin: 40px 0 16px; }
.prose h3 { margin: 28px 0 12px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose strong { color: var(--ink); }

.checklist { display: grid; gap: 12px; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 15.5px;
}
.checklist svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 3px; }

/* ---------- Блог ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card__media {
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(300px 160px at 75% 10%, rgba(255,107,44,.2), transparent 60%),
    linear-gradient(150deg, #232b36, #171d26);
  display: flex; align-items: center; justify-content: center;
  color: #7d8794;
}
.post-card__media svg { width: 40px; height: 40px; opacity: .7; }
.post-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__date { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.post-card h3 { font-size: 19px; margin-bottom: 10px; }
.post-card p { color: var(--muted); font-size: 15px; flex: 1; }

/* ---------- Контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.contact-card + .contact-card { margin-top: 20px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-row__icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.contact-row__icon svg { width: 22px; height: 22px; }
.contact-row b { display: block; color: var(--ink); font-size: 16px; }
.contact-row span, .contact-row a.val { color: var(--muted); font-size: 15px; }
.contact-row a.val:hover { color: var(--accent); }

.map-stub {
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.05) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.05) 39px 40px),
    linear-gradient(150deg, #222a35, #171d26);
  min-height: 420px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: #7d8794; text-align: center; padding: 30px;
}
.map-stub svg { width: 46px; height: 46px; color: var(--accent); }

/* ---------- Визитка на странице контактов ---------- */
.biz-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #1a212b 0%, var(--ink) 60%, #10141a 100%);
  border: 1px solid rgba(255,255,255,.08);
  min-height: 420px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(36px, 5vw, 56px) 30px;
}
.biz-card::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,107,44,.6), transparent);
}
.biz-card__glow {
  position: absolute; inset: 0;
  background: radial-gradient(420px 260px at 50% 0%, rgba(255,107,44,.16), transparent 70%);
  pointer-events: none;
}
.biz-card > * { position: relative; }
.biz-card__logo { width: 76px; height: 76px; margin-bottom: 18px; filter: drop-shadow(0 12px 28px rgba(255,107,44,.25)); }
.biz-card__name { color: #fff; font-size: 27px; font-weight: 800; letter-spacing: .09em; }
.biz-card__tagline { color: #8b95a1; font-size: 14px; font-weight: 600; margin-top: 6px; }
.biz-card__divider {
  width: 54px; height: 3px; border-radius: 2px;
  background: var(--accent);
  margin: 22px 0;
}
.biz-card__phone { color: #fff; font-size: clamp(21px, 2vw, 25px); font-weight: 800; }
.biz-card__phone:hover { color: var(--accent); }
.biz-card__email { color: #aeb6c0; font-size: 16px; font-weight: 600; margin-top: 8px; }
.biz-card__email:hover { color: var(--accent); }
.biz-card__meta {
  display: flex; flex-direction: column; gap: 4px;
  color: #7d8794; font-size: 14px;
  margin-top: 16px;
}
.biz-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.biz-card__actions .btn { padding: 13px 22px; font-size: 15px; }
.biz-card__note {
  margin-top: 22px;
  font-size: 13.5px; color: #8b95a1;
}

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: #98a1ad; padding: 56px 0 30px; }
.footer a:hover { color: var(--accent); }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer .logo svg { height: 36px; }
.footer__about { font-size: 14.5px; margin-top: 16px; max-width: 300px; }
.footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; font-size: 15px; }
.footer__contacts { display: grid; gap: 12px; font-size: 15px; }
.footer__contacts b { color: #fff; font-size: 18px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  padding-top: 24px;
  font-size: 13.5px; color: #6b7480;
}

/* ---------- Плавающие мессенджеры ---------- */
.float-msgrs {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; flex-direction: column; gap: 12px;
}
.float-msgrs a {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 10px 26px rgba(20,24,31,.28);
  transition: transform .15s;
}
.float-msgrs a:hover { transform: scale(1.08); }
.float-msgrs a svg { width: 27px; height: 27px; }
.float-msgrs .fm-wa { background: #23b34a; }
.float-msgrs .fm-tg { background: #2aa5e0; }
.float-msgrs .fm-max { background: #7b4dff; }
.float-msgrs .fm-lead { background: var(--accent); }

/* ---------- Лайтбокс портфолио ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 13, 17, .93);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 72px;
}
.lightbox[hidden] { display: none; }
.lightbox__stage { position: relative; max-width: 1100px; max-height: 80vh; }
.lightbox__img {
  max-width: min(1100px, 88vw); max-height: 76vh;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lightbox__tag {
  position: absolute; top: 14px; left: 14px;
  background: #4a5460; color: #fff;
  font-size: 13px; font-weight: 800; letter-spacing: .08em;
  padding: 7px 16px; border-radius: 999px;
}
.lightbox__tag.is-after { background: var(--accent); }
.lightbox__caption {
  position: absolute; left: 0; right: 0; bottom: 18px;
  text-align: center;
  color: #aeb6c0; font-size: 15px; font-weight: 600;
}
.lightbox__close {
  position: absolute; top: 14px; right: 20px;
  font-size: 44px; line-height: 1; color: #aeb6c0;
  padding: 8px;
  transition: color .15s;
}
.lightbox__close:hover { color: #fff; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.09);
  color: #fff; font-size: 32px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.lightbox__nav:hover { background: var(--accent); }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
@media (max-width: 640px) {
  .lightbox { padding: 48px 10px; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
}

/* ---------- Модалка «Оставить заявку» ---------- */
.lead-modal {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(10, 13, 17, .8);
  display: none; align-items: flex-start; justify-content: center;
  padding: 4vh 16px 24px;
  overflow-y: auto;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lead-modal.is-open { display: flex; }
.lead-modal__box {
  position: relative;
  width: 100%; max-width: 560px;
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: var(--shadow-lg);
}
.lead-modal__box h3 { font-size: 24px; margin-bottom: 8px; }
.lead-modal__sub { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.lead-modal__close {
  position: absolute; top: 12px; right: 16px;
  font-size: 34px; line-height: 1; color: var(--muted);
  padding: 6px;
}
.lead-modal__close:hover { color: var(--ink); }
.lead-modal__quick { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.lead-modal__quick .btn { padding: 11px 16px; font-size: 14.5px; flex: 1 1 auto; }
.lead-form .field { margin-bottom: 16px; }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .15s;
  resize: vertical;
}
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--accent); }
.lead-form .seg label { padding: 9px 14px; font-size: 14px; }
.lead-form__consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--muted);
  margin: 4px 0 18px;
  cursor: pointer;
}
.lead-form__consent input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.lead-form__consent a { color: var(--accent); font-weight: 600; }
.lead-form .btn--primary { width: 100%; }
.lead-form__status { margin-top: 14px; font-size: 14px; color: var(--green); line-height: 1.5; }

/* ---------- Cookie-баннер ---------- */
.cookie-bar {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 95;
  max-width: 680px; margin: 0 auto;
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  display: flex; align-items: center; gap: 18px;
}
.cookie-bar p { color: #cbd2da; font-size: 14px; line-height: 1.5; flex: 1; }
.cookie-bar a { color: var(--accent); font-weight: 700; }
.cookie-bar .btn { padding: 11px 22px; font-size: 14.5px; flex: none; }
@media (max-width: 640px) {
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: center; }
}

.calc__copied {
  margin-top: 12px;
  font-size: 14px; color: #7ee2ac;
  display: flex; align-items: center; gap: 8px;
}
.calc__copied::before { content: "✓"; font-weight: 800; }

/* ---------- Анимации появления ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- FX-слой (GSAP/Three.js, см. js/fx.js) ---------- */
/* Когда активен GSAP, базовые reveal-переходы отключаются — анимацией управляет JS */
.fx .reveal { opacity: 1; transform: none; transition: none; }

.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 120;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), #ffa268);
  transform: scaleX(0); transform-origin: 0 50%;
  pointer-events: none;
}

.header { transition: transform .35s ease; }
.header.is-hidden { transform: translateY(-100%); }

.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg canvas { width: 100%; height: 100%; display: block; }
.hero .container { position: relative; z-index: 1; }

/* 3D-наклон карточек */
.fx .cards, .fx .works, .fx .benefits, .fx .stats { perspective: 1100px; }
.fx .card, .fx .work, .fx .benefit, .fx .stat { transform-style: preserve-3d; }

/* ---------- Страница логотипов ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.logo-variant {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.logo-variant__stage {
  padding: 56px 30px;
  display: flex; align-items: center; justify-content: center;
  min-height: 220px;
}
.logo-variant__stage--dark { background: var(--ink); }
.logo-variant__stage--light { background: var(--bg); }
.logo-variant__body { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.logo-variant__body h3 { font-size: 18px; margin-bottom: 6px; }
.logo-variant__body p { color: var(--muted); font-size: 14.5px; }

/* ---------- Адаптив ---------- */
/* Кнопка «Рассчитать стоимость» в шапке не помещается в контейнер вместе
   с меню из 6 пунктов и контактами — прячем её заранее, чтобы не появлялась
   горизонтальная прокрутка на ноутбуках (~1440px). Расчёт остаётся в hero
   и пункт «Калькулятор» в меню. */
@media (max-width: 1500px) {
  .header .btn--primary { display: none; }
}

@media (max-width: 1380px) {
  .header .btn--primary { display: none; }
  .header__inner { gap: 16px; }
  .header .nav { gap: 15px; }
  .nav a { font-size: 14.5px; }
  .header__msgrs { gap: 6px; }
  .header__phone { font-size: 16px; }
  .logo__text small { display: none; }
}

@media (max-width: 1024px) {
  .cards, .works, .posts { grid-template-columns: repeat(2, 1fr); }
  .benefits, .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .header .btn--primary { display: none; }
  .burger { display: flex; }
  .calc { grid-template-columns: 1fr; }
  .calc__result { position: static; }
  .contacts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards, .works, .posts, .steps, .benefits, .logo-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 18px; }
  .header__phone { display: none; }
  .header__msgrs { display: none; }
  .hero__cta .btn { width: 100%; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .float-msgrs a { width: 52px; height: 52px; }
  .seg label { flex: 1; justify-content: center; }
}
