/* ============================================================================
   ГК Такт · Ногинск — site.css
   Индустриально-стальная эстетика: тёплый бетон, графит, фирменный зелёный
   (RAL 6005) и янтарный «квест»-акцент. Текстура профнастила как лейтмотив.
   Mobile-first. Зависит от bootstrap.min.css, all.min.css (FA6), googleapis.css.
   ========================================================================== */

:root {
  /* ── Палитра ───────────────────────────────────────────────────────── */
  --ink:        #16191d;   /* сталь почти-чёрная */
  --ink-2:      #23282e;
  --ink-3:      #333a42;
  --paper:      #f7f5ef;   /* тёплый бетон */
  --paper-2:    #efece2;
  --card:       #ffffff;
  --brand:      #2f6b41;   /* RAL 6005 — фирменный зелёный */
  --brand-d:    #245232;
  --brand-l:    #3f8a55;
  --brand-wash: #eaf1ec;
  --accent:     #e8911c;   /* янтарь / цинк — энергия квеста и CTA */
  --accent-d:   #c8770f;
  --accent-l:   #ffae3d;
  --accent-wash:#fbeed7;
  --line:       rgba(22,25,29,.12);
  --line-2:     rgba(22,25,29,.07);
  --steel:      #6b7280;
  --steel-l:    #9aa1a9;
  --ok:         #2f6b41;
  --danger:     #c0392b;

  /* ── Типографика ───────────────────────────────────────────────────── */
  --f-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* ── Метрики ───────────────────────────────────────────────────────── */
  --r:    14px;   /* радиус карточек */
  --r-sm: 9px;
  --shadow:    0 14px 40px -22px rgba(22,25,29,.45);
  --shadow-lg: 0 30px 80px -30px rgba(22,25,29,.55);
  --maxw: 1200px;
  --nav-h: 64px;
}

/* ── Текстура профнастила (фирменная деталь) ───────────────────────────── */
.corrugated {
  background-image:
    repeating-linear-gradient(90deg,
      rgba(255,255,255,.05) 0 2px,
      rgba(0,0,0,.10) 2px 4px,
      rgba(255,255,255,.04) 4px 22px,
      rgba(0,0,0,.06) 22px 24px,
      transparent 24px 26px);
  background-size: 26px 100%;
}

/* ============================================================================
   БАЗА
   ========================================================================== */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--f-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--f-sans);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  color: var(--ink);
}

p { margin: 0 0 1em; }

.container-x { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 18px; }

.mono { font-family: var(--f-mono); font-feature-settings: "tnum" 1; }

/* Тех-метка / надзаголовок */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5ch;
  font-family: var(--f-mono);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block;
}
.eyebrow.on-dark { color: var(--accent-l); }

.section { padding-block: clamp(48px, 8vw, 92px); position: relative; }
.section--paper2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #e9eaec; }
.section--ink h1,.section--ink h2,.section--ink h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 5vw, 52px); }
.section-head h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
.section-head p  { color: var(--steel); font-size: 1.05rem; margin: 0; }
.section--ink .section-head p { color: #aab0b7; }

/* ============================================================================
   КНОПКИ
   ========================================================================== */
.btn-x {
  --bg: var(--accent); --fg: #1a1206; --bd: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .6ch;
  font-family: var(--f-sans); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: var(--r-sm);
  background: var(--bg); color: var(--fg); border: 2px solid var(--bd);
  cursor: pointer; text-align: center;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  box-shadow: 0 10px 24px -12px rgba(232,145,28,.7);
}
.btn-x:hover { background: var(--accent-l); color: #1a1206; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(232,145,28,.8); }
.btn-x:active { transform: translateY(0); }
.btn-x--brand { --bg: var(--brand); --fg: #fff; --bd: var(--brand); box-shadow: 0 10px 24px -12px rgba(47,107,65,.7); }
.btn-x--brand:hover { background: var(--brand-l); color: #fff; box-shadow: 0 16px 30px -12px rgba(47,107,65,.8); }
.btn-x--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line); box-shadow: none; }
.btn-x--ghost:hover { --bg: var(--ink); --fg: #fff; --bd: var(--ink); box-shadow: none; }
.btn-x--ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.35); box-shadow: none; }
.btn-x--ghost-light:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn-x--lg { padding: 18px 34px; font-size: 1.08rem; }
.btn-x--block { width: 100%; }

/* ============================================================================
   ХЕДЕР / НАВИГАЦИЯ
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(247,245,239,.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; gap: 16px; min-height: var(--nav-h); }

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 9px; flex: none;
  background: var(--ink); position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.brand__mark::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 4px, rgba(232,145,28,.55) 4px 5px);
}
.brand__mark i { color: var(--accent); font-size: 1.05rem; z-index: 1; }
.brand__name { font-weight: 700; font-size: 1.18rem; letter-spacing: -.01em; line-height: 1; color: var(--ink); display: block; }
.brand__name b { color: var(--brand); }
.brand__city { display:block; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-top: 3px; }

.nav-menu { display: none; }
.nav-menu a {
  font-weight: 500; font-size: .96rem; color: var(--ink-2); padding: 8px 2px; position: relative;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px;
  background: var(--accent); transition: right .25s ease;
}
.nav-menu a:hover, .nav-menu a.is-active { color: var(--brand); }
.nav-menu a:hover::after, .nav-menu a.is-active::after { right: 0; }

.nav-cta { display: none; align-items: center; gap: 14px; }
.nav-phone { font-family: var(--f-mono); font-weight: 500; font-size: 1.02rem; color: var(--ink); white-space: nowrap; letter-spacing: -1px; }
.nav-phone:hover { color: var(--brand); }

.nav-burger {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--card);
  cursor: pointer; color: var(--ink); font-size: 1.2rem;
}

/* Мобильное меню (offcanvas-стиль через JS .is-open на body) */
.mobile-nav {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); z-index: 1080;
  background: var(--ink); color: #e9eaec;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; padding: 22px; overflow-y: auto;
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.mobile-nav__close { background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.mobile-nav a.m-link {
  display: flex; align-items: center; gap: 12px; padding: 14px 4px; color: #e9eaec;
  font-size: 1.1rem; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-nav a.m-link i { color: var(--accent); width: 22px; text-align: center; }
.mobile-nav a.m-link:hover { color: var(--accent-l); }
.mobile-nav__foot { margin-top: auto; padding-top: 22px; }
.nav-overlay {
  position: fixed; inset: 0; background: rgba(10,12,14,.5); z-index: 1070;
  opacity: 0; visibility: hidden; transition: opacity .3s ease;
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

/* ============================================================================
   HERO (главная)
   ========================================================================== */
.hero {
  position: relative; background: var(--ink); color: #fff; overflow: hidden;
  padding-block: clamp(54px, 11vw, 120px);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg video, .hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(47,107,65,.45), transparent 55%),
    linear-gradient(180deg, rgba(22,25,29,.55), rgba(22,25,29,.92));
}
.hero__grid { position: absolute; inset: 0; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 {
  color: #fff; font-size: clamp(2rem, 8vw, 4rem); letter-spacing: -.03em; margin-bottom: .3em;
}
.hero h1 .hl { color: var(--accent-l); position: relative; white-space: nowrap; }
.hero__lead { font-size: clamp(1.05rem, 3.5vw, 1.3rem); color: #cdd2d8; max-width: 600px; margin-bottom: 1.6em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 18px 28px; }
.hero__trust div { display: flex; align-items: center; gap: 9px; font-size: .94rem; color: #cdd2d8; }
.hero__trust i { color: var(--accent-l); font-size: 1.1rem; }

/* Полоса бегущих преимуществ под hero */
.ticker { background: var(--accent); color: #1a1206; overflow: hidden; border-block: 0; }
.ticker__track { display: flex; gap: 0; white-space: nowrap; animation: ticker 34s linear infinite; }
.ticker__track span { display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; font-weight: 600; font-size: .9rem; }
.ticker__track span::after { content: "◆"; font-size: .6rem; opacity: .5; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .ticker__track{ animation: none; } }

/* ============================================================================
   PAGE-HERO (внутренние страницы)
   ========================================================================== */
.page-hero {
  position: relative; background: var(--ink); color: #fff; overflow: hidden;
  padding-block: clamp(46px, 8vw, 78px);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(110% 130% at 90% -10%, rgba(47,107,65,.4), transparent 55%);
}
.page-hero .corrugated { position: absolute; inset: 0; z-index: 0; opacity: .25; }
.page-hero__inner { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 6vw, 3rem); }
.page-hero p { color: #c2c8cf; font-size: 1.08rem; max-width: 620px; margin: 0; }

/* Хлебные крошки */
.crumbs { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .04em; color: #9aa1a9; margin-bottom: 16px; }
.crumbs a { color: #c2c8cf; } .crumbs a:hover { color: var(--accent-l); }
.crumbs i { font-size: .6rem; opacity: .6; }

/* ============================================================================
   КАТАЛОГ-КВЕСТ (карточки категорий, главная)
   ========================================================================== */
.catalog-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.cat-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column; text-align: left;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(47,107,65,.4); }
.cat-card__media {
  aspect-ratio: 16/10; background: var(--ink); position: relative; overflow: hidden;
  display: grid; place-items: center; color: rgba(255,255,255,.25);
}
.cat-card__media .corrugated { position: absolute; inset: 0; opacity: .6; }
.cat-card__media .ph-ico { position: relative; z-index: 1; font-size: 3rem; color: rgba(232,145,28,.5); }
.cat-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cat-card__quest {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .04em;
  background: var(--accent); color: #1a1206; padding: 5px 10px; border-radius: 6px;
  display: inline-flex; align-items: center; gap: 6px;
}
.cat-card__quest.is-done { background: var(--brand); color: #fff; }
.cat-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.cat-card__body h3 { font-size: 1.22rem; margin-bottom: 6px; }
.cat-card__body p { color: var(--steel); font-size: .94rem; margin: 0 0 14px; flex: 1; }
.cat-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cat-card__price { font-family: var(--f-mono); font-weight: 500; color: var(--brand); font-size: 1rem; }
.cat-card__go { font-weight: 600; font-size: .9rem; color: var(--accent-d); display: inline-flex; align-items: center; gap: 6px; }
.cat-card:hover .cat-card__go i { transform: translateX(4px); }
.cat-card__go i { transition: transform .2s ease; }

/* ============================================================================
   ПРЕИМУЩЕСТВА (6 иконок)
   ========================================================================== */
.feat-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px; transition: transform .2s ease, box-shadow .2s ease;
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feat__ico {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-wash); color: var(--brand); font-size: 1.35rem; margin-bottom: 16px;
}
.feat h3 { font-size: 1.12rem; margin-bottom: 6px; }
.feat p { color: var(--steel); font-size: .94rem; margin: 0; }

/* ============================================================================
   ЭТАПЫ РАБОТЫ
   ========================================================================== */
.steps { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: step; }
.step {
  position: relative; background: var(--ink-2); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r); padding: 26px 22px 22px; color: #d6dadf;
}
.step__num {
  font-family: var(--f-mono); font-size: 2.4rem; font-weight: 500; line-height: 1;
  color: var(--accent); margin-bottom: 12px; display: block;
}
.step h3 { font-size: 1.12rem; color: #fff; margin-bottom: 6px; }
.step p { font-size: .92rem; color: #aab0b7; margin: 0; }

/* ============================================================================
   ОТЗЫВЫ
   ========================================================================== */
.reviews-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.review {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px; display: flex; flex-direction: column; position: relative;
}
.review__quote { position: absolute; top: 14px; right: 20px; font-size: 3rem; line-height: 1; color: var(--brand-wash); font-family: Georgia, serif; }
.review__stars { color: var(--accent); margin-bottom: 12px; letter-spacing: 2px; font-size: .85rem; }
.review__text { font-size: .96rem; color: var(--ink-2); margin: 0 0 18px; flex: 1; }
.review__meta { display: flex; align-items: center; gap: 12px; }
.review__ava {
  width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 1.1rem;
}
.review__name { font-weight: 600; font-size: .98rem; }
.review__date { font-family: var(--f-mono); font-size: .76rem; color: var(--steel); }

/* ============================================================================
   FAQ (Bootstrap accordion override)
   ========================================================================== */
.faq-wrap { max-width: 820px; }
.faq-wrap .accordion-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r) !important; margin-bottom: 12px; overflow: hidden; }
.faq-wrap .accordion-button {
  font-family: var(--f-sans); font-weight: 600; font-size: 1.05rem; color: var(--ink);
  background: var(--card); padding: 20px 22px;
}
.faq-wrap .accordion-button:not(.collapsed) { color: var(--brand); background: var(--brand-wash); box-shadow: none; }
.faq-wrap .accordion-button:focus { box-shadow: none; border-color: transparent; }
.faq-wrap .accordion-button::after {
  background-image: none; content: "\002B"; font-family: var(--f-mono); font-size: 1.3rem; font-weight: 400;
  width: auto; height: auto; transition: transform .2s ease; color: var(--accent-d);
}
.faq-wrap .accordion-button:not(.collapsed)::after { content: "\2212"; transform: none; }
.faq-wrap .accordion-body { padding: 4px 22px 22px; color: var(--steel); font-size: .98rem; }

/* ============================================================================
   ФОРМА ЗАЯВКИ
   ========================================================================== */
.lead-band {
  background: var(--brand); color: #fff; border-radius: var(--r); overflow: hidden;
  position: relative; box-shadow: var(--shadow-lg);
}
.lead-band .corrugated { position: absolute; inset: 0; opacity: .12; z-index: 0; }
.lead-band__inner { position: relative; z-index: 1; display: grid; gap: 28px; padding: clamp(28px,5vw,48px); grid-template-columns: 1fr; }
.lead-band h2 { color: #fff; font-size: clamp(1.5rem, 4.5vw, 2.2rem); }
.lead-band p { color: #d7e6db; margin-bottom: 0; }
.lead-band__points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.lead-band__points li { display: flex; align-items: center; gap: 10px; font-size: .98rem; }
.lead-band__points i { color: var(--accent-l); }

.f-card { background: var(--card); border-radius: var(--r); padding: clamp(22px,4vw,32px); color: var(--ink); }
.f-field { margin-bottom: 16px; }
.f-label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .01em; margin-bottom: 6px; color: var(--ink-2); }
.f-input {
  width: 100%; font-family: var(--f-sans); font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 13px 15px; transition: border-color .18s ease, box-shadow .18s ease;
}
.f-input.light-bg { background: var(--paper); }
.f-input::placeholder { color: var(--steel-l); }
.f-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47,107,65,.15); }
textarea.f-input { resize: vertical; min-height: 96px; }
.f-promo {
  display: flex; align-items: center; gap: 10px; background: var(--accent-wash);
  border: 1px dashed var(--accent-d); border-radius: var(--r-sm); padding: 11px 14px; margin-bottom: 16px;
  font-size: .9rem; color: var(--accent-d); font-weight: 500;
}
.f-promo .mono { font-weight: 600; letter-spacing: .06em; }
.f-promo.is-hidden { display: none; }
.f-consent { font-size: .8rem; color: var(--steel); margin-top: 12px; }
.f-consent a { color: var(--brand); text-decoration: underline; }
.f-error { color: var(--danger); font-size: .82rem; margin-top: 5px; display: none; }
.f-error.show { display: block; }
.f-feedback { margin-top: 12px; font-size: .92rem; font-weight: 500; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================================
   СКИДКА-КВЕСТ ВИДЖЕТ (sticky bottom-right)
   ========================================================================== */
.quest {
  position: fixed; right: 16px; bottom: 16px; z-index: 1050; width: min(330px, calc(100vw - 32px));
  background: var(--ink); color: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.1); overflow: hidden;
  transform: translateY(140%); transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.quest.is-visible { transform: translateY(0); }
.quest.is-collapsed { width: auto; }
.quest__head {
  display: flex; align-items: center; gap: 10px; padding: 13px 15px; cursor: pointer;
  background: linear-gradient(90deg, var(--brand-d), var(--brand));
}
.quest__head i.gift { color: var(--accent-l); font-size: 1.15rem; }
.quest__title { font-weight: 600; font-size: .95rem; flex: 1; }
.quest__pct { font-family: var(--f-mono); font-weight: 500; font-size: 1.15rem; color: var(--accent-l); }
.quest__toggle { background: none; border: 0; color: rgba(255,255,255,.7); cursor: pointer; font-size: 1rem; padding: 2px; }
.quest__body { padding: 14px 15px 16px; }
.quest.is-collapsed .quest__body { display: none; }
.quest__bar { height: 10px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; margin-bottom: 12px; }
.quest__fill { height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--accent-d), var(--accent-l)); transition: width .6s cubic-bezier(.22,1,.36,1); }
.quest__tasks { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 7px; }
.quest__tasks li { display: flex; align-items: center; gap: 9px; font-size: .82rem; color: #b9bfc6; }
.quest__tasks li .tick {
  width: 19px; height: 19px; border-radius: 50%; flex: none; display: grid; place-items: center;
  border: 1.5px solid rgba(255,255,255,.25); font-size: .62rem; color: transparent;
}
.quest__tasks li.done { color: #fff; }
.quest__tasks li.done .tick { background: var(--accent); border-color: var(--accent); color: #1a1206; }
.quest__tasks li .pts { margin-left: auto; font-family: var(--f-mono); font-size: .74rem; color: var(--accent-l); }
.quest__hint { font-size: .76rem; color: #8b929a; margin: 0; }

/* ============================================================================
   МОДАЛКИ (промокод / exit-intent / лид) — кастомные, без зависимости от BS JS
   ========================================================================== */
.modal-x { position: fixed; inset: 0; z-index: 1100; display: none; }
.modal-x.is-open { display: grid; place-items: center; padding: 18px; }
.modal-x__backdrop { position: absolute; inset: 0; background: rgba(10,12,14,.66); backdrop-filter: blur(3px); }
.modal-x__dialog {
  position: relative; z-index: 1; width: min(460px, 100%); background: var(--card);
  border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden;
  animation: pop .35s cubic-bezier(.22,1,.36,1);
}
@keyframes pop { from { transform: scale(.92) translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-x__close { position: absolute; top: 12px; right: 14px; z-index: 3; background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--steel); cursor: pointer; }
.modal-x__top { background: var(--ink); color: #fff; text-align: center; padding: 30px 24px 26px; position: relative; overflow: hidden; }
.modal-x__top .corrugated { position: absolute; inset: 0; opacity: .35; }
.modal-x__top > * { position: relative; z-index: 1; }
.modal-x__gift { font-size: 2.6rem; color: var(--accent-l); margin-bottom: 8px; }
.modal-x__top h3 { color: #fff; font-size: 1.5rem; margin: 0 0 4px; }
.modal-x__top p { color: #b9bfc6; margin: 0; font-size: .95rem; }
.modal-x__body { padding: 24px; text-align: center; }
.promo-code {
  font-family: var(--f-mono); font-weight: 600; font-size: 1.7rem; letter-spacing: .14em;
  color: var(--brand); background: var(--brand-wash); border: 2px dashed var(--brand);
  border-radius: var(--r-sm); padding: 14px; margin-bottom: 8px; cursor: pointer; user-select: all;
}
.promo-hint { font-size: .8rem; color: var(--steel); margin-bottom: 18px; }
.countdown { display: flex; justify-content: center; gap: 10px; margin-bottom: 20px; }
.countdown div { background: var(--ink); color: #fff; border-radius: var(--r-sm); padding: 10px 4px; min-width: 58px; }
.countdown b { display: block; font-family: var(--f-mono); font-size: 1.5rem; line-height: 1; }
.countdown span { font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: #9aa1a9; }

/* ============================================================================
   COOKIE-БАННЕР
   ========================================================================== */
.cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 1040; width: min(420px, calc(100vw - 32px));
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 18px 20px;
  transform: translateY(160%); transition: transform .4s ease; opacity: 0;
}
.cookie.is-visible { transform: translateY(0); opacity: 1; }
.cookie p { font-size: .86rem; color: var(--ink-2); margin: 0 0 14px; }
.cookie p a { color: var(--brand); text-decoration: underline; }
.cookie__row { display: flex; gap: 10px; align-items: center; }
.cookie__row .btn-x { padding: 10px 18px; font-size: .9rem; }
.cookie__decline { background: none; border: 0; color: var(--steel); font-size: .86rem; cursor: pointer; text-decoration: underline; }
@media (max-width: 520px){ .quest { right: 10px; bottom: 10px; } .cookie { left: 10px; right: 10px; width: auto; } }

/* ============================================================================
   УСЛУГИ — список / деталь
   ========================================================================== */
.svc-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.svc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-card__media { aspect-ratio: 16/10; background: var(--ink); position: relative; display: grid; place-items: center; }
.svc-card__media .corrugated { position: absolute; inset: 0; opacity: .55; }
.svc-card__media i { position: relative; z-index: 1; font-size: 2.6rem; color: rgba(232,145,28,.5); }
.svc-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.svc-card__body h3 { font-size: 1.18rem; margin-bottom: 8px; }
.svc-card__body p { color: var(--steel); font-size: .93rem; margin: 0 0 16px; flex: 1; }
.svc-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.svc-card__price { font-family: var(--f-mono); font-weight: 500; color: var(--brand); }

.svc-detail { display: grid; gap: 28px; grid-template-columns: 1fr; }
.svc-detail__media { aspect-ratio: 16/10; background: var(--ink); border-radius: var(--r); position: relative; display: grid; place-items: center; overflow: hidden; }
.svc-detail__media .corrugated { position: absolute; inset: 0; opacity: .55; }
.svc-detail__media i { position: relative; z-index: 1; font-size: 4rem; color: rgba(232,145,28,.45); }
.svc-detail__price { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--f-mono); font-weight: 500; font-size: 1.5rem; color: var(--brand); margin-bottom: 14px; }
.prose { font-size: 1.02rem; color: var(--ink-2); }
.prose h2 { font-size: 1.4rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; } .prose li { margin-bottom: .4em; }

.spec-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.spec-table tr:not(:last-child) { border-bottom: 1px solid var(--line-2); }
.spec-table th, .spec-table td { padding: 13px 16px; text-align: left; font-size: .95rem; }
.spec-table th { font-weight: 500; color: var(--steel); width: 45%; }
.spec-table td { font-weight: 600; color: var(--ink); font-family: var(--f-mono); }

/* SEO-блок */
.seo-block { max-width: 860px; }
.seo-block h2 { font-size: 1.5rem; }
.seo-block p { color: var(--steel); }

/* ============================================================================
   ПОРТФОЛИО
   ========================================================================== */
.pf-filter { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; }
.pf-filter a {
  font-size: .88rem; font-weight: 500; padding: 9px 16px; border-radius: 50px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
}
.pf-filter a:hover { border-color: var(--brand); color: var(--brand); }
.pf-filter a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pf-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.pf-item { display: block; border-radius: var(--r); overflow: hidden; position: relative; background: var(--ink); border: 1px solid var(--line); }
.pf-item__media { aspect-ratio: 4/3; position: relative; display: grid; place-items: center; }
.pf-item__media .corrugated { position: absolute; inset: 0; opacity: .55; }
.pf-item__media i { position: relative; z-index: 1; font-size: 2.4rem; color: rgba(232,145,28,.45); }
.pf-item__overlay { position: absolute; inset: 0; z-index: 2; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(0deg, rgba(15,18,21,.9), transparent 65%); color: #fff; opacity: 1; }
.pf-item__tag { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-l); margin-bottom: 4px; }
.pf-item__name { font-size: .98rem; font-weight: 600; line-height: 1.25; }
.pf-item:hover .pf-item__name { color: var(--accent-l); }

.gallery-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.gallery-grid .ph { aspect-ratio: 4/3; border-radius: var(--r); background: var(--ink); position: relative; display: grid; place-items: center; overflow: hidden; }
.gallery-grid .ph .corrugated { position: absolute; inset: 0; opacity: .5; }
.gallery-grid .ph i { position: relative; z-index: 1; font-size: 2rem; color: rgba(232,145,28,.4); }

/* ============================================================================
   БЛОГ
   ========================================================================== */
.blog-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16/9; background: var(--ink); position: relative; display: grid; place-items: center; }
.post-card__media .corrugated { position: absolute; inset: 0; opacity: .5; }
.post-card__media i { position: relative; z-index: 1; font-size: 2.2rem; color: rgba(232,145,28,.45); }
.post-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__date { font-family: var(--f-mono); font-size: .76rem; color: var(--steel); margin-bottom: 8px; }
.post-card__body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.post-card__body p { color: var(--steel); font-size: .93rem; margin: 0 0 16px; flex: 1; }
.post-card__more { font-weight: 600; font-size: .9rem; color: var(--accent-d); display: inline-flex; gap: 6px; align-items: center; }

.article { max-width: 760px; margin-inline: auto; }
.article__cover { aspect-ratio: 16/8; border-radius: var(--r); background: var(--ink); position: relative; display: grid; place-items: center; overflow: hidden; margin-bottom: 28px; }
.article__cover .corrugated { position: absolute; inset: 0; opacity: .5; }
.article__cover i { position: relative; z-index: 1; font-size: 3rem; color: rgba(232,145,28,.4); }
.article__meta { font-family: var(--f-mono); font-size: .8rem; color: var(--steel); margin-bottom: 12px; }
.article__content { font-size: 1.08rem; color: var(--ink-2); }
.article__content h2 { font-size: 1.5rem; margin-top: 1.5em; }
.article__content p { margin-bottom: 1.1em; }

/* Пагинация */
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card);
  font-family: var(--f-mono); font-size: .9rem; color: var(--ink-2);
}
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager .is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================================================
   КОНТАКТЫ
   ========================================================================== */
.contacts-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { width: 46px; height: 46px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--brand-wash); color: var(--brand); font-size: 1.15rem; }
.contact-list .lbl { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--steel); }
.contact-list .val { font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.contact-list .val a { color: var(--ink); } .contact-list .val a:hover { color: var(--brand); }
.map-embed { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: var(--paper-2); }
.map-embed iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.map-fallback { min-height: 320px; display: grid; place-items: center; text-align: center; color: var(--steel); padding: 24px; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: #aab0b7; padding-block: 52px 26px; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 34px; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--f-mono); font-weight: 500; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: #aab0b7; font-size: .94rem; } .footer-col a:hover { color: var(--accent-l); }
.footer-brand .brand__name { color: #fff; } .footer-brand .brand__name b { color: var(--accent-l); }
.footer-about { font-size: .92rem; color: #8b929a; margin-top: 14px; max-width: 320px; }
.footer-contacts { display: grid; gap: 8px; font-size: .94rem; margin-top: 14px; }
.footer-contacts a { color: #d6dadf; } .footer-contacts a:hover { color: var(--accent-l); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; align-items: center; font-size: .82rem; color: #777e86; }
.footer-bottom a { color: #777e86; text-decoration: underline; } .footer-bottom a:hover { color: var(--accent-l); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); color: #aab0b7; }
.footer-socials a:hover { border-color: var(--accent); color: var(--accent-l); background: rgba(232,145,28,.08); }

/* Django messages */
.flash-stack { position: fixed; top: calc(var(--nav-h) + 12px); right: 16px; z-index: 1090; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.flash { padding: 14px 18px; border-radius: var(--r-sm); box-shadow: var(--shadow); font-size: .92rem; font-weight: 500; display: flex; gap: 10px; align-items: center; animation: pop .3s ease; }
.flash--success { background: var(--brand); color: #fff; }
.flash--error { background: var(--danger); color: #fff; }
.flash--info { background: var(--ink); color: #fff; }

/* Утилиты */
.text-center { text-align: center; }
.mt-gap { margin-top: clamp(28px, 5vw, 48px); }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .fade-up { opacity: 1; transform: none; } }

/* ============================================================================
   АДАПТИВ
   ========================================================================== */
@media (min-width: 600px) {
  .catalog-grid, .svc-grid, .pf-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid, .reviews-grid, .steps, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .countdown div { min-width: 66px; }
}
@media (min-width: 900px) {
  .nav-menu { display: flex; align-items: center; gap: 22px; }
  .nav-cta { display: flex; }
  .nav-burger { display: none; }
  .catalog-grid, .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .feat-grid, .steps { grid-template-columns: repeat(3, 1fr); }
  .pf-grid, .gallery-grid, .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .lead-band__inner { grid-template-columns: 1fr 1fr; align-items: center; }
  .svc-detail { grid-template-columns: 1.1fr .9fr; align-items: start; }
  .contacts-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}
@media (min-width: 1100px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================================
   Дополнения для внутренних страниц
   ========================================================================== */
.btn-x--sm { padding: 9px 16px; font-size: .82rem; }
.svc-layout { display: grid; gap: 30px; grid-template-columns: 1fr; }
.svc-aside { display: grid; gap: 18px; align-content: start; }
.svc-aside .f-card { position: relative; }
.detail-section { margin-top: clamp(30px,5vw,52px); }
.detail-section > h2 { font-size: 1.5rem; margin-bottom: 18px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.pill { font-family: var(--f-mono); font-size: .75rem; padding: 6px 12px; border-radius: 999px; background: var(--brand-wash); color: var(--brand); border: 1px solid rgba(47,107,65,.2); }
.contact-cta { display: grid; gap: 14px; }
.about-stats { display: grid; gap: 16px; grid-template-columns: repeat(2,1fr); margin: 8px 0 0; }
.about-stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; text-align: center; }
.about-stat b { display: block; font-family: var(--f-mono); font-size: 2rem; color: var(--brand); line-height: 1; }
.about-stat span { font-size: .85rem; color: var(--steel); }
.legal { max-width: 820px; margin-inline: auto; }
.legal h2 { font-size: 1.35rem; margin-top: 1.5em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; } .legal li { margin-bottom: .4em; }
@media (min-width: 900px){
  .svc-layout { grid-template-columns: 1.7fr 1fr; align-items: start; }
  .svc-aside { position: sticky; top: calc(var(--nav-h) + 20px); }
  .about-stats { grid-template-columns: repeat(4,1fr); }
}
