/* ============================================================
   TON CITY — детейлинг-центр · современный редизайн
   Тёмная премиальная тема, акцент — ледяной синий (по логотипу)
   ============================================================ */

:root {
  --bg: #05070b;
  --bg-2: #090d14;
  --bg-3: #0d1320;
  --card: rgba(255, 255, 255, .035);
  --card-solid: #0c1119;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #f0f5fc;
  --muted: #98a5bb;
  --muted-2: #6d7a90;
  --accent: #6fc6ff;
  --accent-2: #a9ecff;
  --accent-deep: #2b8fe0;
  --grad: linear-gradient(115deg, #4db4ff 0%, #8fe0ff 55%, #c8f4ff 100%);
  --tg: #2aabee;
  --danger: #ff7a7a;
  --ok: #5ee0a0;
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .5);
  --glow: 0 0 0 1px rgba(111, 198, 255, .25), 0 10px 44px rgba(79, 180, 255, .18);
  --header-h: 76px;
  --ease: cubic-bezier(.22, .9, .3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Фоновая «аура» страницы */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 85% -5%, rgba(79, 180, 255, .09), transparent 60%),
    radial-gradient(800px 500px at -10% 35%, rgba(79, 180, 255, .05), transparent 60%),
    var(--bg);
  pointer-events: none;
}

::selection { background: rgba(111, 198, 255, .35); color: #fff; }

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .25s; }
a:hover { color: var(--accent-2); }
button { font: inherit; cursor: pointer; color: inherit; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: #223047; border-radius: 8px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: #31435f; }

.container { max-width: 1260px; margin: 0 auto; padding-inline: 24px; }
.container--narrow { max-width: 880px; }

/* ===== Прогресс-бар прокрутки ===== */
.progress {
  position: fixed; top: 0; left: 0; height: 2.5px; width: 0;
  background: var(--grad); z-index: 120;
  box-shadow: 0 0 14px rgba(111, 198, 255, .8);
}

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 30px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15.5px; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .3s, background .3s, border-color .3s, color .3s;
  white-space: nowrap; position: relative; overflow: hidden;
}
.btn--accent {
  background: var(--grad); color: #04121f;
  box-shadow: 0 10px 34px rgba(79, 180, 255, .32);
}
.btn--accent::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--accent:hover { color: #04121f; transform: translateY(-2px); box-shadow: 0 16px 44px rgba(79, 180, 255, .45); }
.btn--accent:hover::after { transform: translateX(120%); }
.btn--ghost {
  background: rgba(255, 255, 255, .05); color: var(--text);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(111, 198, 255, .5); color: #fff; transform: translateY(-2px); }
.btn--tg { background: rgba(42, 171, 238, .14); color: #7fd0ff; border: 1px solid rgba(42, 171, 238, .4); }
.btn--tg:hover { background: rgba(42, 171, 238, .26); color: #b3e5ff; transform: translateY(-2px); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--lg { padding: 18px 36px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px;
}

/* ===== Шапка ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .35s;
}
/* блюр на псевдоэлементе — чтобы position:fixed внутри шапки не «залипал» */
.header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(5, 8, 12, .78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  opacity: 0; transition: opacity .35s;
}
.header.scrolled::before { opacity: 1; }
.header.scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 26px; height: var(--header-h); position: relative; }
.logo { flex-shrink: 0; display: inline-flex; }
.logo__img { height: 38px; width: auto; filter: drop-shadow(0 0 14px rgba(111, 198, 255, .35)); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--muted); font-weight: 600; font-size: 14.5px;
  padding: 9px 13px; border-radius: 10px; position: relative;
  transition: color .25s, background .25s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav a.active { color: var(--accent-2); }
.nav a.active::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px;
  border-radius: 2px; background: var(--grad);
}
.nav__foot { display: none; }

.header__contacts { display: flex; align-items: center; gap: 16px; }
.header__phone {
  font-family: var(--display); font-weight: 600; font-size: 14.5px; color: var(--text);
  letter-spacing: .02em;
}
.header__phone:hover { color: var(--accent-2); }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 10px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
.burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(3, 5, 8, .6); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }

/* ===== Герой ===== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 56px) 0 90px;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: url('../img/hero.webp') center 30% / cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(5, 7, 11, .96) 22%, rgba(5, 7, 11, .72) 48%, rgba(5, 7, 11, .42) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 34%),
    linear-gradient(180deg, rgba(5, 7, 11, .55), transparent 30%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(111, 198, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 198, 255, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(75% 65% at 30% 45%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 65% at 30% 45%, #000 20%, transparent 100%);
}
.hero__content { max-width: 760px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px; margin-bottom: 28px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px);
  font-size: 13.5px; font-weight: 600; color: #cfe3f7; letter-spacing: .02em;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); position: relative; flex-shrink: 0; }
.pulse-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--ok); animation: pulse 2s infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }

h1, h2, h3 { font-family: var(--display); line-height: 1.16; letter-spacing: -.01em; }
h1 {
  font-size: clamp(2.35rem, 5.6vw, 4.4rem);
  font-weight: 700; margin-bottom: 26px; text-wrap: balance;
}
h1 em, h2 em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: #c3cfdf; max-width: 620px; margin-bottom: 38px; }
.hero__sub b { color: #fff; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 58px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 12px 46px; width: fit-content;
}
.stat b {
  display: block; font-family: var(--display); font-weight: 700; white-space: nowrap;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 4px;
}
.stat b span { font: inherit; }
.stat > span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
}
.hero__scroll span {
  width: 3px; height: 8px; border-radius: 3px; background: var(--accent);
  animation: scrollHint 1.8s infinite;
}
@keyframes scrollHint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ===== Бегущая строка ===== */
.ticker {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  overflow: hidden; padding: 16px 0; position: relative;
}
.ticker__track { display: flex; width: max-content; animation: ticker 36s linear infinite; }
.ticker__track span {
  font-family: var(--display); font-size: 14px; font-weight: 500;
  color: rgba(240, 245, 252, .55); letter-spacing: .06em; text-transform: uppercase;
  white-space: nowrap;
}
.ticker__track i { color: var(--accent); font-style: normal; margin: 0 22px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ===== Секции ===== */
.section { padding: 108px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0) 60%); border-block: 1px solid rgba(255,255,255,.045); }
.section--rating { padding: 84px 0; }

.section__head { max-width: 780px; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 700; margin-bottom: 18px; text-wrap: balance; }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.section__head p a { text-decoration: underline; text-underline-offset: 3px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 12.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 34px; height: 1.5px; background: var(--grad); border-radius: 2px; }

.chip {
  display: inline-block; padding: 6px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  background: rgba(255, 255, 255, .08); color: #d5e5f5;
}
.chip--accent { background: rgba(111, 198, 255, .16); color: var(--accent-2); border: 1px solid rgba(111, 198, 255, .3); }

.price { font-family: var(--display); font-weight: 600; font-size: 1.06rem; color: var(--accent-2); white-space: nowrap; }

/* ===== Услуги ===== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.service:hover, .service:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(111, 198, 255, .45);
  box-shadow: var(--glow);
}
.service__img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.service__img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 7, 11, .65));
}
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service:hover .service__img img { transform: scale(1.07); }
.service__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service__body .chip { align-self: flex-start; margin-bottom: 2px; }
.service__body h3 { font-size: 1.08rem; font-weight: 600; }
.service__body p { color: var(--muted); font-size: .93rem; flex: 1; }
.service__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.service__more {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; color: var(--muted);
  transition: color .25s, gap .25s;
}
.service:hover .service__more { color: var(--accent-2); gap: 11px; }

.service--featured { grid-column: span 2; grid-row: span 1; }
.service--featured .service__img { aspect-ratio: 21 / 9.2; }
.service--featured .service__body h3 { font-size: 1.35rem; }

/* ===== Цены / тарифы ===== */
.tabs__nav {
  display: inline-flex; gap: 6px; padding: 6px; margin-bottom: 38px;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.tabs__nav::-webkit-scrollbar { display: none; }
.tabs__btn {
  padding: 12px 24px; border-radius: 999px; border: 0; background: transparent;
  color: var(--muted); font-weight: 700; font-size: 14.5px; white-space: nowrap;
  transition: background .3s, color .3s;
}
.tabs__btn:hover { color: #fff; }
.tabs__btn.active { background: var(--grad); color: #04121f; box-shadow: 0 6px 22px rgba(79, 180, 255, .3); }
.tabs__pane { display: none; }
.tabs__pane.active { display: block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.tariffs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tariff {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; position: relative;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.tariff:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.tariff h3 { font-size: 1.25rem; margin-bottom: 6px; }
.tariff__term { font-size: 13px; color: var(--muted-2); margin-bottom: 18px; }
.tariff ul { list-style: none; display: grid; gap: 9px; margin-bottom: 24px; }
.tariff li { font-size: 14px; color: #c8d3e2; padding-left: 22px; position: relative; }
.tariff li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg); border-radius: 1px;
}
.tariff__foot { margin-top: auto; display: grid; gap: 14px; }
.tariff__price { font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: #fff; }
.tariff__inc { font-size: 12.5px; color: var(--muted-2); line-height: 1.5; }

.tariff--hit {
  border-color: rgba(111, 198, 255, .55);
  background: linear-gradient(180deg, rgba(111, 198, 255, .1), rgba(111, 198, 255, .02));
  box-shadow: var(--glow);
}
.tariff__hit {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 5px 16px; border-radius: 999px; background: var(--grad);
  color: #04121f; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}

.minitariffs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.minitariff {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px;
  transition: border-color .3s;
}
.minitariff:hover { border-color: var(--line-strong); }
.minitariff h3 { font-size: 1.08rem; margin-bottom: 8px; }
.minitariff p { font-size: 14px; color: var(--muted); }
.minitariff__side { display: grid; gap: 12px; justify-items: end; flex-shrink: 0; }

.tablewrap {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--card);
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 17px 24px; text-align: left; font-size: 15px; }
.table thead th {
  font-family: var(--display); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: rgba(111, 198, 255, .07); border-bottom: 1px solid var(--line);
}
.table tbody tr { border-bottom: 1px solid rgba(255, 255, 255, .05); transition: background .2s; }
.table tbody tr:last-child { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.table td:last-child { font-family: var(--display); font-weight: 600; color: var(--accent-2); white-space: nowrap; }

/* ===== CTA-полоса ===== */
.cta-band {
  margin-top: 72px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: 44px 48px; border-radius: 26px;
  background: linear-gradient(120deg, #0b1524, #0a0f18 70%);
  border: 1px solid rgba(111, 198, 255, .25);
}
.cta-band__glow {
  position: absolute; inset: -40%; z-index: 0; pointer-events: none;
  background: radial-gradient(46% 60% at 12% 50%, rgba(79, 180, 255, .22), transparent 70%);
}
.cta-band > div { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 8px; }
.cta-band p { color: var(--muted); }
.cta-band__btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Магазин плёнки ===== */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.product:hover { transform: translateY(-6px); border-color: rgba(111, 198, 255, .45); box-shadow: var(--glow); }
.product__img { aspect-ratio: 16 / 10; overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product:hover .product__img img { transform: scale(1.07); }
.product__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product__body h3 { font-size: 1.14rem; }
.product__body > p { color: var(--muted); font-size: .93rem; }
.product__body ul { list-style: none; display: grid; gap: 8px; margin-bottom: 6px; }
.product__body li { font-size: 13.5px; color: #c8d3e2; padding-left: 22px; position: relative; }
.product__body li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg); border-radius: 1px;
}
.product__foot {
  margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.product__foot .price { font-size: .95rem; }

.note {
  margin-top: 40px; display: flex; gap: 22px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px;
}
.note__icon {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px;
  display: grid; place-items: center; color: var(--accent);
  background: rgba(111, 198, 255, .1); border: 1px solid rgba(111, 198, 255, .3);
}
.note h3 { font-size: 1.12rem; margin-bottom: 10px; }
.note p { color: var(--muted); font-size: .95rem; margin-bottom: 10px; }
.note p:last-child { margin-bottom: 0; }
.note a { text-decoration: underline; text-underline-offset: 3px; }

/* ===== О нас ===== */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.about__text h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 22px; }
.about__text > p { color: var(--muted); margin-bottom: 16px; }
.about__text > p b { color: var(--text); }
.about__list { list-style: none; display: grid; gap: 13px; margin: 26px 0 32px; }
.about__list li { display: flex; align-items: center; gap: 13px; font-weight: 600; font-size: 15px; color: #d7e1ee; }
.check {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; color: #04121f;
  background: var(--grad); box-shadow: 0 4px 14px rgba(79, 180, 255, .35);
}
.about__btns { display: flex; gap: 14px; flex-wrap: wrap; }

.about__photos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.about__photos img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm);
  border: 1px solid var(--line); aspect-ratio: 3 / 4;
  transition: transform .5s var(--ease), border-color .3s;
}
.about__photos img:hover { transform: scale(1.03); border-color: rgba(111, 198, 255, .4); }
.about__photos img:nth-child(2) { transform: translateY(22px); }
.about__photos img:nth-child(2):hover { transform: translateY(22px) scale(1.03); }
.about__photos img:nth-child(3) { aspect-ratio: 3 / 4; }
.about__photos img:nth-child(4) { aspect-ratio: 3 / 4; transform: translateY(22px); }
.about__photos img:nth-child(4):hover { transform: translateY(22px) scale(1.03); }

/* ===== Работы ===== */
.works { columns: 4 240px; column-gap: 16px; }
.works a {
  display: block; margin-bottom: 16px; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line); position: relative; break-inside: avoid;
}
.works a::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5, 7, 11, .45));
  opacity: 0; transition: opacity .35s;
}
.works a:hover::after { opacity: 1; }
.works img { width: 100%; transition: transform .7s var(--ease); }
.works a:hover img { transform: scale(1.05); }

/* ===== Сертификаты ===== */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cert {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.cert:hover { transform: translateY(-6px); border-color: rgba(111, 198, 255, .45); box-shadow: var(--glow); }
.cert img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.cert span {
  padding: 16px 18px; font-weight: 700; font-size: 14px; color: #d7e1ee;
  border-top: 1px solid var(--line); text-align: center;
}
.certs__note { margin-top: 30px; text-align: center; color: var(--muted-2); font-size: 14px; }

/* ===== Рейтинг ===== */
.section--rating {
  background:
    radial-gradient(700px 300px at 18% 50%, rgba(79, 180, 255, .1), transparent 65%),
    var(--bg-2);
  border-block: 1px solid rgba(111, 198, 255, .16);
}
.rating { display: flex; align-items: center; gap: 60px; }
.rating__num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(5rem, 12vw, 9.5rem); line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 44px rgba(79, 180, 255, .3));
  flex-shrink: 0;
}
.rating__stars { display: flex; gap: 6px; color: #ffd76a; margin-bottom: 14px; }
.rating__body h2 { font-size: clamp(1.25rem, 2.6vw, 1.8rem); margin-bottom: 10px; }
.rating__body p { color: var(--muted); margin-bottom: 24px; max-width: 560px; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 14px; }
.faq__item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color .3s, background .3s;
}
.faq__item[open] { border-color: rgba(111, 198, 255, .4); background: rgba(111, 198, 255, .04); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 26px; font-weight: 700; font-size: 1.02rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform .35s var(--ease), background .3s; }
.faq__plus::before, .faq__plus::after {
  content: ''; position: absolute; top: 50%; left: 50%; background: var(--accent);
  transform: translate(-50%, -50%); border-radius: 2px;
}
.faq__plus::before { width: 12px; height: 2px; }
.faq__plus::after { width: 2px; height: 12px; transition: opacity .2s; }
.faq__item[open] .faq__plus { transform: rotate(180deg); background: rgba(111, 198, 255, .12); }
.faq__item[open] .faq__plus::after { opacity: 0; }
.faq__item p { padding: 0 26px 24px; color: var(--muted); max-width: 90%; }

/* ===== Контакты ===== */
.contacts { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: stretch; }
.contacts__info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.c-item {
  display: flex; gap: 15px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px; transition: border-color .3s;
}
.c-item:hover { border-color: rgba(111, 198, 255, .35); }
.c-item__icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center; color: var(--accent);
  background: rgba(111, 198, 255, .09); border: 1px solid rgba(111, 198, 255, .25);
}
.c-item b { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.c-item p { font-size: 15px; color: #d7e1ee; line-height: 1.5; }
.c-item a { color: var(--text); }
.c-item a:hover { color: var(--accent-2); }
.contacts__cta { grid-column: 1 / -1; display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.contacts__map { min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); position: relative; }
.contacts__map iframe {
  width: 100%; height: 100%; min-height: 420px; border: 0; display: block;
  filter: grayscale(.55) invert(.92) hue-rotate(185deg) saturate(.32) brightness(.92) contrast(.92);
}

/* ===== Подвал ===== */
.footer { border-top: 1px solid var(--line); background: #04060a; padding: 64px 0 0; }
.footer__inner {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 44px;
  padding-bottom: 48px;
}
.footer__note { color: var(--muted-2); font-size: 14px; margin-top: 18px; }
.footer__nav { display: grid; gap: 11px; align-content: start; }
.footer__nav a { color: var(--muted); font-size: 14.5px; font-weight: 600; width: fit-content; }
.footer__nav a:hover { color: var(--accent-2); }
.footer__contacts { display: grid; gap: 12px; align-content: start; }
.footer__phone { font-family: var(--display); font-size: 1.15rem; font-weight: 600; color: var(--text); }
.footer__contacts p { color: var(--muted); font-size: 14.5px; }
.footer__ymaps { font-size: 14px; color: #ffd76a; }
.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, .05); padding-block: 22px calc(22px + 74px);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--muted-2); font-size: 13px;
}
@media (min-width: 861px) { .footer__legal { padding-block: 22px; } }

/* ===== Мобильная панель ===== */
.mobilebar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  display: none; grid-template-columns: 1fr 1.2fr 1fr; gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(5, 8, 12, .85); backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
}
.mobilebar__btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 9px 6px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); color: #cfe3f7;
  font-size: 11.5px; font-weight: 700;
}
.mobilebar__btn--accent { background: var(--grad); color: #04121f; border: 0; }

/* ===== Наверх ===== */
.totop {
  position: fixed; right: 26px; bottom: 26px; z-index: 94;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); color: var(--text);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .35s, transform .35s, background .3s;
}
.totop.visible { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { background: rgba(111, 198, 255, .18); }

/* ===== Лайтбокс ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(3, 5, 8, .93); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: min(92vw, 1100px); max-height: 88vh; border-radius: 12px;
  box-shadow: var(--shadow); object-fit: contain;
  animation: lbIn .35s var(--ease);
}
@keyframes lbIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.lightbox button {
  position: absolute; z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line-strong);
  color: #fff; font-size: 30px; line-height: 1; display: grid; place-items: center;
  transition: background .25s;
}
.lightbox button:hover { background: rgba(111, 198, 255, .25); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ===== Модалки ===== */
.modal {
  position: fixed; inset: 0; z-index: 130;
  background: rgba(3, 5, 8, .82); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal__box {
  width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto;
  background: linear-gradient(180deg, #0d1420, #090d15);
  border: 1px solid rgba(111, 198, 255, .22); border-radius: 24px;
  padding: 38px; position: relative;
  box-shadow: var(--shadow);
  transform: translateY(22px) scale(.98); transition: transform .35s var(--ease);
}
.modal.open .modal__box { transform: none; }
.modal__box--lead { max-width: 560px; }
.modal__close {
  position: absolute; top: 16px; right: 16px; width: 42px; height: 42px;
  border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .06); color: #fff; font-size: 24px; line-height: 1;
  transition: background .25s, transform .25s;
}
.modal__close:hover { background: rgba(255, 120, 120, .2); transform: rotate(90deg); }
.modal__body h3, #leadFormWrap h3, .lead__success h3 {
  font-size: 1.45rem; margin-bottom: 16px; padding-right: 40px;
}
.modal__body p { color: var(--muted); margin-bottom: 14px; }
.modal__body p b { color: var(--text); }
.modal__body h4 { font-family: var(--display); font-size: .95rem; margin: 20px 0 12px; color: var(--accent-2); }
.modal__body ul { list-style: none; display: grid; gap: 9px; margin-bottom: 14px; }
.modal__body li { font-size: 14.5px; color: #c8d3e2; padding-left: 24px; position: relative; }
.modal__body li::before {
  content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg); border-radius: 1px;
}
.modal__body li b { color: #fff; }
.modal__price {
  font-family: var(--display); font-size: 1.5rem; font-weight: 700; margin: 20px 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Форма заявки ===== */
#leadFormWrap > p { color: var(--muted); font-size: .95rem; margin-bottom: 24px; }
.lead { display: grid; gap: 16px; }
.lead__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lead__field { display: grid; gap: 7px; }
.lead__field span { font-size: 13px; font-weight: 700; color: #c3cfdf; letter-spacing: .02em; }
.lead__field input, .lead__field select, .lead__field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-strong);
  color: var(--text); font: inherit; font-size: 15px;
  transition: border-color .25s, box-shadow .25s;
}
.lead__field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2398a5bb' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.lead__field select option { background: #0d1420; color: var(--text); }
.lead__field textarea { resize: vertical; min-height: 76px; }
.lead__field input::placeholder, .lead__field textarea::placeholder { color: var(--muted-2); }
.lead__field input:focus, .lead__field select:focus, .lead__field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(111, 198, 255, .18);
}
.lead__field input.lead__err { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 122, 122, .15); }
.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead__submit { margin-top: 4px; }
.lead__submit:disabled { opacity: .6; cursor: wait; transform: none; }
.lead__status { font-size: 14px; min-height: 20px; }
.lead__status--err { color: var(--danger); }
.lead__status--ok { color: var(--ok); }
.lead__alt { font-size: 13.5px; color: var(--muted-2); text-align: center; }
.lead__success { text-align: center; padding: 22px 6px; }
.lead__check {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%;
  display: grid; place-items: center; color: #04121f;
  background: var(--grad); box-shadow: 0 14px 44px rgba(79, 180, 255, .4);
  animation: popIn .5s var(--ease);
}
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.lead__success p { color: var(--muted); }

/* ===== Анимация появления ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Адаптив ===== */
@media (max-width: 1180px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .tariffs { grid-template-columns: repeat(2, 1fr); }
  .header__phone { display: none; }
}
@media (max-width: 1020px) {
  .about { grid-template-columns: 1fr; gap: 44px; }
  .contacts { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .rating { flex-direction: column; align-items: flex-start; gap: 24px; }
}
@media (max-width: 900px) {
  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 99;
    width: min(360px, 88vw); flex-direction: column; align-items: stretch;
    gap: 4px; padding: 96px 26px 30px;
    background: #070b12; border-left: 1px solid var(--line);
    transform: translateX(105%); transition: transform .45s var(--ease);
    overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav a { font-size: 17px; padding: 13px 16px; }
  .nav a.active::after { display: none; }
  .nav a.active { background: rgba(111, 198, 255, .1); }
  .nav__foot { display: flex; gap: 14px; align-items: center; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
  .nav__phone { font-family: var(--display); font-size: 16px; color: var(--text); }
  .burger { display: flex; z-index: 100; position: relative; }
  .header__contacts .btn--tg span { display: none; }
  .header__contacts .btn--tg { padding: 10px 12px; }
}
@media (max-width: 860px) {
  .mobilebar { display: grid; }
  .totop { bottom: 92px; right: 16px; }
  body { padding-bottom: 0; }
}
@media (max-width: 860px) {
  .hero__scroll { display: none; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.82rem; }
  .hero__badge { font-size: 12px; padding: 8px 14px; }
  .section__head h2 { font-size: 1.55rem; }
}
@media (max-width: 700px) {
  .section { padding: 76px 0; }
  .services { grid-template-columns: 1fr; }
  .service--featured { grid-column: span 1; }
  .service--featured .service__img { aspect-ratio: 16 / 10; }
  .tariffs { grid-template-columns: 1fr; }
  .minitariffs { grid-template-columns: 1fr; }
  .minitariff { flex-direction: column; align-items: flex-start; }
  .minitariff__side { justify-items: start; display: flex; align-items: center; gap: 16px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 22px 30px; }
  .cta-band { padding: 32px 26px; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .contacts__info { grid-template-columns: 1fr; }
  .lead__grid { grid-template-columns: 1fr; }
  .modal__box { padding: 28px 22px; }
  .note { flex-direction: column; }
  .about__photos img:nth-child(2), .about__photos img:nth-child(4) { transform: none; }
  .about__photos img:nth-child(2):hover, .about__photos img:nth-child(4):hover { transform: scale(1.03); }
  .works { columns: 2 150px; column-gap: 12px; }
  .works a { margin-bottom: 12px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}
