/* ============================================================
   FX-PAGE — единая дизайн-система страницы (v1, Сочи)
   Тёмная плита ↔ светлая бумага, сигнальные акценты, один код.
   ============================================================ */

:root {
  --ink: #0b1522;
  --ink-2: #101d30;
  --ink-3: #14243a;
  --paper: #f2f5f9;
  --card: #ffffff;
  --accent: #ff4719;
  --accent-2: #ff6a1e;
  --signal: #ffce29;
  --line-d: #22344c;
  --mut-d: #93a5bd;
  --mut-l: #66788f;
  --head-l: #14243a;
  --r: 18px;
  --shadow-l: 0 8px 30px rgba(13, 31, 51, .1);
  --shadow-lh: 0 24px 54px rgba(13, 31, 51, .18);
  --grid-line: rgba(120, 150, 190, .05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: 'TildaSans', Arial, sans-serif;
  color: var(--head-l);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1220px; margin: 0 auto; padding: 0 22px; }

/* ---------- типографика секций ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 13px/1 'TildaSans', Arial, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.kicker::before {
  content: '';
  width: 26px; height: 8px;
  background: repeating-linear-gradient(-45deg, #14181d 0 5px, var(--signal) 5px 10px);
  border-radius: 2px;
}
h2.sec {
  margin: 12px 0 10px;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--head-l);
}
.sec-sub { margin: 0 0 34px; font-size: 17px; color: var(--mut-l); max-width: 640px; }
.dark h2.sec { color: #f2f6fd; }
.dark .sec-sub { color: var(--mut-d); }
.center { text-align: center; }
.center .sec-sub { margin-left: auto; margin-right: auto; }

section { padding: 74px 0; }
.dark {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(85% 70% at 50% 0%, var(--ink-3) 0%, var(--ink) 78%);
  background-size: 56px 56px, 56px 56px, auto;
  color: #dfe8f8;
}

/* ---------- шапка ---------- */
#hd {
  position: sticky;
  top: 0;
  z-index: 9000;
  background: rgba(11, 21, 34, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-d);
}
#hd .wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 66px;
}
#hd .logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
#hd .lg-badge {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font: 800 19px/1 'TildaSans', Arial, sans-serif;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(255, 71, 25, .4);
}
#hd .lg-tx {
  font: 800 12.5px/1.2 'TildaSans', Arial, sans-serif;
  letter-spacing: .1em;
  color: #fff;
}
#hd .lg-tx i { font-style: normal; color: var(--signal); }
#hd nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
#hd nav a {
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  color: #cfe0f6;
  text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
#hd nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
#hd nav a.on { background: rgba(255, 71, 25, .16); color: #ffb49d; }
#hd .tel {
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
#hd .tel b { color: var(--signal); }
@media (max-width: 1080px) { #hd nav { display: none; } }

/* прогресс-лента + экскаватор */
#pbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 7px;
  z-index: 10000;
  background: repeating-linear-gradient(-45deg, #14181d 0 12px, var(--signal) 12px 24px);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}
#pdig {
  position: fixed;
  top: -3px; left: 0;
  z-index: 10001;
  font-size: 24px;
  line-height: 1;
  transform: translateX(-30px) scaleX(-1);
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.35));
  pointer-events: none;
}

/* ---------- HERO ---------- */
#hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 0;
}
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(46% 38% at 38% 34%, rgba(255, 92, 33, .14), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .95fr;
  gap: 46px;
  align-items: center;
  padding-bottom: 66px;
}
.hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.04;
  font-weight: 800;
  color: #f2f6fd;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.hero-copy h1 em { font-style: normal; color: var(--accent); }
.hero-copy h1 .w { display: inline-block; will-change: transform, opacity; }
.hero-sub { font-size: clamp(16px, 1.5vw, 20px); color: var(--mut-d); max-width: 560px; line-height: 1.55; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-chips a {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  font-size: 14.5px;
  color: #dfe8f8;
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
}
.hero-chips a:hover { border-color: var(--signal); background: rgba(255, 206, 41, .1); transform: translateY(-2px); }

/* полоса статов внутри hero */
.hero-stats {
  position: relative;
  border-top: 1px solid var(--line-d);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 28px 0 30px;
}
.hero-stats b {
  display: block;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 800;
  color: var(--signal);
  line-height: 1.05;
}
.hero-stats span { display: block; margin-top: 5px; font-size: 14.5px; color: var(--mut-d); }

/* ---------- карточка заявки (единственная форма-система) ---------- */
.qcard {
  width: 100%;
  max-width: 420px;
  justify-self: end;
  background: rgba(13, 26, 43, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
  color: #fff;
}
.qcard .qtape {
  height: 10px;
  background: repeating-linear-gradient(-45deg, #14181d 0 12px, var(--signal) 12px 24px);
}
.qcard .qbody { padding: 26px 26px 22px; }
.qcard .qhead { font-size: 23px; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.qcard .qsub { font-size: 14.5px; line-height: 1.5; color: #b9c7dc; margin-bottom: 18px; }
.qcard input {
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(255,255,255,.94);
  font: 500 17px 'TildaSans', Arial, sans-serif;
  color: #14181d;
  outline: none;
  margin-bottom: 12px;
}
.qcard input.err { border: 2px solid var(--accent); }
.qcard .qbtn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font: 800 17px 'TildaSans', Arial, sans-serif;
  cursor: pointer;
  will-change: transform;
  transition: box-shadow .25s;
}
.qcard .qbtn:hover { box-shadow: 0 10px 34px rgba(255, 71, 25, .55); }
.qcard .qtrust { margin-top: 14px; text-align: center; font-size: 12.5px; color: #8fa2bd; }
.qcard .qtrust b { color: var(--signal); }
.qcard .qdone { display: none; text-align: center; padding: 10px 0 4px; }
.qcard .qdone svg { width: 62px; height: 62px; margin: 0 auto 12px; display: block; }
.qcard .qdone circle, .qcard .qdone path {
  fill: none; stroke: #2ecc8f; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
}
.qcard .qdone div { font-size: 18px; font-weight: 700; line-height: 1.45; }
.qcard .qdone small { color: #b9c7dc; font-weight: 400; }

/* ---------- бегущая сигнальная лента ---------- */
.mq {
  overflow: hidden;
  background: var(--signal);
  border-top: 4px solid #14181d;
  border-bottom: 4px solid #14181d;
  padding: 13px 0;
  white-space: nowrap;
}
.mq .mq-t { display: inline-block; animation: mq 26s linear infinite; }
.mq span { display: inline-block; padding: 0 26px; font-size: 16.5px; font-weight: 700; color: #14181d; }
.mq b { background: #14181d; color: var(--signal); padding: 2px 9px; border-radius: 6px; font-weight: 800; }
.mq:hover .mq-t { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- карточки типов объектов ---------- */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tcard {
  background: var(--card);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  transition: transform .35s cubic-bezier(.2,.9,.25,1.15), box-shadow .35s;
  display: flex;
  flex-direction: column;
}
.tcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lh); }
.tcard .timg { height: 230px; overflow: hidden; position: relative; }
.tcard .timg img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tcard:hover .timg img { transform: scale(1.06); }
.tcard .timg::after {
  content: '';
  position: absolute; inset: auto 0 0 0;
  height: 6px;
  background: repeating-linear-gradient(-45deg, #14181d 0 10px, var(--signal) 10px 20px);
}
.tcard h3 { margin: 22px 24px 10px; font-size: 22px; font-weight: 800; color: var(--head-l); }
.tcard p { margin: 0 24px 26px; font-size: 15.5px; line-height: 1.6; color: #44546a; }
/* карточка-ссылка (главная): цена + стрелка внизу */
a.tcard { color: inherit; text-decoration: none; }
a.tcard .tmore { margin: auto 24px 24px; font-size: 15px; font-weight: 800; color: var(--accent); }
a.tcard p { margin-bottom: 16px; }

/* ---------- цены (тёмный блок) ---------- */
.pricegrid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: start;
}
#price-list table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ink-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .35);
}
#price-list th {
  background: #060d17;
  color: #cfe0f6;
  text-align: left;
  padding: 15px 18px;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
#price-list td {
  padding: 15px 18px;
  border-bottom: 1px solid #1c2c42;
  color: #dfe8f8;
  font-size: 16.5px;
}
#price-list tbody tr { cursor: pointer; transition: background .2s, transform .2s; border-left: 3px solid transparent; }
#price-list tbody tr:hover { background: #16283e; transform: translateX(5px); border-left-color: var(--accent); }
#price-list td:last-child { color: #ffb36b; font-weight: 800; white-space: nowrap; }
#price-list .note { margin-top: 14px; font-size: 13.5px; color: var(--mut-d); }

/* калькулятор site-1d в тёмном блоке */
#calc-1d {
  margin: 0 !important;
  max-width: none !important;
  background: var(--ink-2) !important;
  box-shadow: 0 0 0 1px #22385a, 0 18px 60px rgba(0,0,0,.45) !important;
}

/* ---------- слайдер (pf-track) ---------- */
.pf-track-wrap { position: relative; }
.pf-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 4px 26px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.pf-track::-webkit-scrollbar { display: none; }
.pf-track .pf-item { flex: 0 0 auto; scroll-snap-align: center; }
.pf-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px; height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--ink-3);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(13,31,51,.35);
  font-size: 20px;
  transition: background .2s, transform .2s;
}
.pf-nav:hover { background: var(--accent); transform: translateY(-50%) scale(1.08); }
.pf-nav-l { left: -10px; }
.pf-nav-r { right: -10px; }

/* ---------- отзывы ---------- */
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 26px;
  background: var(--card);
  border-radius: 999px;
  box-shadow: var(--shadow-l);
  margin-bottom: 36px;
}
.score-pill .n { font-size: 30px; font-weight: 800; color: var(--head-l); }
.score-pill .st { color: #ffb021; font-size: 21px; letter-spacing: 2px; }
.score-pill .c { color: var(--mut-l); font-size: 15px; }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.rev {
  position: relative;
  background: var(--card);
  border-radius: var(--r);
  padding: 26px 26px 28px;
  box-shadow: var(--shadow-l);
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.9,.25,1.1), box-shadow .3s;
}
.rev:hover { transform: translateY(-6px); box-shadow: var(--shadow-lh); }
.rev::before {
  content: '\201C';
  position: absolute; top: -14px; right: 10px;
  font: 800 130px/1 Georgia, serif;
  color: rgba(255, 71, 25, .09);
  pointer-events: none;
}
.rev::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--signal), var(--accent));
}
.rev .rt { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rev .ra {
  flex: 0 0 46px; width: 46px; height: 46px;
  border-radius: 50%;
  color: #fff; font-weight: 800; font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.rev .rn { font-weight: 700; font-size: 16.5px; }
.rev .rd { font-size: 13px; color: var(--mut-l); margin-top: 2px; }
.rev .rs { color: #ffb021; font-size: 17px; letter-spacing: 2px; margin-bottom: 6px; }
.rev .rdeal { font-size: 13.5px; margin-bottom: 12px; color: #199c68; font-weight: 700; }
.rev .rdeal span { color: var(--mut-l); font-weight: 500; }
.rev .rx { font-size: 15.5px; line-height: 1.55; color: #333; }
.rev-more { text-align: center; margin-top: 30px; }
.rev-more a {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 12px;
  background: var(--ink-3);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background .25s, box-shadow .25s;
}
.rev-more a:hover { background: #234b76; box-shadow: 0 10px 30px rgba(27,58,92,.3); }
.rev-more b { color: var(--signal); }

/* ---------- шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: st; }
.step {
  position: relative;
  background: var(--ink-2);
  border: 1px solid #1c2c42;
  border-radius: var(--r);
  padding: 30px 26px 28px;
  counter-increment: st;
  transition: transform .3s, border-color .3s;
}
.step:hover { transform: translateY(-5px); border-color: rgba(255, 206, 41, .5); }
.step::before {
  content: counter(st, decimal-leading-zero);
  display: inline-block;
  font-size: 15px;
  font-weight: 800;
  color: #14181d;
  background: linear-gradient(135deg, var(--signal), #ffde6b);
  padding: 7px 13px;
  border-radius: 9px;
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 10px; font-size: 20px; color: #f2f6fd; }
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--mut-d); }

/* CTA-полоса внутри тёмной секции */
.cta-mid { display: flex; justify-content: center; margin-top: 54px; }

/* ---------- SEO ---------- */
.seo-cols { columns: 2; column-gap: 44px; }
.seo-cols p { margin: 0 0 16px; font-size: 15.5px; line-height: 1.7; color: #44546a; break-inside: avoid; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.svc-chips a, .svc-chips span {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #d5dde8;
  color: var(--head-l);
  background: var(--card);
  transition: border-color .2s, transform .2s;
}
.svc-chips a:hover { border-color: var(--accent); transform: translateY(-2px); }
.svc-chips span { background: var(--ink-3); color: #fff; border-color: var(--ink-3); }

/* ---------- контакты + города + футер ---------- */
#contacts .cgrid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 46px;
  align-items: center;
}
#contacts .clist { font-size: 18px; line-height: 2.1; color: #dfe8f8; }
#contacts .clist b { color: #fff; }
#contacts .clist a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
#contacts .clist a:hover { border-color: var(--signal); }
.cities { border-top: 1px solid var(--line-d); padding: 44px 0 8px; }
.cities h2 { font-size: 22px; color: #eaf1fc; margin: 0 0 20px; text-align: center; }
.cities .cwrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cities a, .cities span {
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 14.5px;
  text-decoration: none;
  background: #12233a;
  color: #cfe0f6;
  border: 1px solid #23405f;
  transition: border-color .2s, transform .2s;
}
.cities a:hover { border-color: var(--signal); transform: translateY(-2px); }
.cities span { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: var(--accent); }
footer {
  border-top: 1px solid var(--line-d);
  margin-top: 46px;
  padding: 26px 0;
  text-align: center;
  font-size: 14px;
  color: var(--mut-d);
}
footer a { color: var(--mut-d); text-decoration: none; margin: 0 14px; }
footer a:hover { color: var(--signal); }

/* ---------- reveal-система ---------- */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.25,1.1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  section { padding: 54px 0; }
  #pdig { display: none; }
  #hd .wrap { height: 60px; gap: 14px; }
  #hd .tel { margin-left: auto; font-size: 16px; }
  #hd .lg-tx { display: none; }
  #price-list { border-radius: 14px; }
  #price-list th, #price-list td { padding: 12px 10px; font-size: 14px; }
  #price-list td:nth-child(2), #price-list th:nth-child(2) { white-space: nowrap; }
  #price-list td:last-child, #price-list th:last-child { white-space: nowrap; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .qcard { justify-self: stretch; max-width: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .types, .rev-grid, .steps { grid-template-columns: 1fr; }
  .pricegrid { grid-template-columns: 1fr; }
  .seo-cols { columns: 1; }
  #contacts .cgrid { grid-template-columns: 1fr; }
  .pf-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mq .mq-t { animation: none; }
  .rv { opacity: 1; transform: none; transition: none; }
  #pdig { display: none; }
  html { scroll-behavior: auto; }
}
