/* =========================================================
   ConsultiCo — светлый минималистичный дизайн
   Белый и светло-серый фон, зелёный — только акцентом
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f5f3;
  --bg-tint: #edf2ee;
  --ink: #111916;
  --text: #525b57;
  --muted: #8b938f;
  --line: #e5e8e5;
  --line-strong: #d3d8d4;
  --green: #2f5a50;
  --green-dark: #1f3e37;
  --green-light: #e2ede7;
  --lime: #d6edc4;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --pill: 999px;

  --font-head: "Geologica", "Helvetica Neue", Arial, sans-serif;
  --font-body: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(80px, 9vw, 140px);
  --shadow: 0 30px 60px -30px rgba(17, 25, 22, .18);
  --shadow-sm: 0 10px 30px -18px rgba(17, 25, 22, .25);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
main { overflow-x: hidden; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
::selection { background: var(--lime); color: var(--ink); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--ink);
  margin: 0;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(42px, 6.2vw, 92px); letter-spacing: -0.045em; line-height: 1.02; }
h2 { font-size: clamp(32px, 4vw, 58px); }
h3 { font-size: clamp(21px, 1.7vw, 26px); letter-spacing: -0.02em; line-height: 1.2; }
h4 { font-size: 19px; letter-spacing: -0.015em; line-height: 1.3; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.section { padding-block: var(--section); }
.section--soft { background: var(--bg-soft); }
.section--tight { padding-top: 0; }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  margin-bottom: 22px;
}
.label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.lead { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.55; color: var(--text); }
.muted { color: var(--muted); }
.green { color: var(--green); }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 8px 8px 8px 26px; min-height: 56px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  background: transparent;
  font-weight: 500; font-size: 16px; line-height: 1.2;
  white-space: nowrap;
  transition: color .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.btn__ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; transition: transform .5s var(--ease-out), background .4s, color .4s; }
.btn__ic svg { width: 16px; height: 16px; }
.btn:hover .btn__ic { transform: rotate(-45deg); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary .btn__ic { background: #fff; color: var(--green); }
.btn--primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease-out); }
.btn--primary:hover::before { transform: none; }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--light .btn__ic { background: var(--bg-soft); }
.btn--light:hover { border-color: var(--ink); }
.btn--light:hover .btn__ic { background: var(--ink); color: #fff; }
.btn--ghost { padding: 0 26px; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn--sm { min-height: 46px; padding: 6px 6px 6px 20px; font-size: 15px; }
.btn--sm .btn__ic { width: 34px; height: 34px; }
.btn--block { width: 100%; justify-content: space-between; }
.btn--block.btn--center { justify-content: center; padding-left: 26px; padding-right: 26px; }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%;
  padding-bottom: 2px;
  transition: background-size .45s var(--ease-out), color .3s;
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--green); }
.link svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* ---------- Шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform .45s var(--ease-out), border-color .3s;
}
.header.is-scrolled { border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 84px; }
.logo { display: inline-flex; flex: none; }
.logo img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: var(--pill); background: var(--bg-soft); }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--pill);
  font-size: 15px; font-weight: 500; color: var(--ink);
  transition: background .3s, color .3s;
}
.nav__link:hover { background: #fff; }
.nav__link.is-active { background: #fff; box-shadow: 0 2px 8px -4px rgba(0,0,0,.15); }
.nav__link svg { width: 10px; height: 10px; transition: transform .3s var(--ease); }
.nav__item { position: relative; }
.dropdown { position: absolute; top: 100%; left: 50%; padding-top: 14px; opacity: 0; visibility: hidden; transform: translate(-50%, 10px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
.dropdown__inner { width: 560px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 10px; }
.nav__item:hover .dropdown, .nav__item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__item:hover .nav__link svg { transform: rotate(180deg); }
.dropdown a { display: block; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; color: var(--ink); transition: background .25s; }
.dropdown a:hover { background: var(--bg-soft); }
.dropdown a small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 2px; }

.header__cta { display: flex; align-items: center; gap: 18px; }
.header__phone { font-weight: 500; font-size: 15px; color: var(--ink); white-space: nowrap; }
.header__phone:hover { color: var(--green); }
.burger { display: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--ink); }

.mobile-nav { position: fixed; inset: 0; z-index: 90; background: #fff; padding: 100px var(--gutter) 40px; overflow-y: auto; clip-path: circle(0 at calc(100% - 44px) 42px); transition: clip-path .7s var(--ease-out); visibility: hidden; }
.mobile-nav.is-open { clip-path: circle(150% at calc(100% - 44px) 42px); visibility: visible; }
.mobile-nav__close { position: absolute; top: 18px; right: var(--gutter); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; font-size: 26px; line-height: 1; }
.mobile-nav a { display: block; padding: 12px 0; font-family: var(--font-head); font-size: 30px; letter-spacing: -.03em; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav .sub { padding: 8px 0 8px 4px; }
.mobile-nav .sub a { font-family: var(--font-body); font-size: 16px; letter-spacing: 0; padding: 8px 0; border: 0; color: var(--text); }
.mobile-nav .btn { margin-top: 28px; border-bottom: 0; font-family: var(--font-body); font-size: 16px; letter-spacing: 0; padding: 8px 8px 8px 26px; }
.mobile-nav__contacts { margin-top: 26px; display: grid; gap: 4px; color: var(--muted); font-size: 15px; }
.mobile-nav__contacts a { font-family: var(--font-body); font-size: 15px; letter-spacing: 0; border: 0; padding: 0; color: var(--text); }

/* ---------- Hero главной ---------- */
.hero { padding-top: 84px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(48px, 7vw, 100px) clamp(48px, 6vw, 80px); }
.hero h1 { margin-bottom: 30px; }
.hero h1 .rot { display: inline-grid; vertical-align: bottom; color: var(--green); }
.hero .lead { max-width: 540px; margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__meta div { font-size: 14px; color: var(--muted); line-height: 1.4; }
.hero__meta b { display: block; font-family: var(--font-head); font-weight: 500; font-size: 22px; color: var(--ink); letter-spacing: -.02em; margin-bottom: 2px; }
.hero__visual { position: relative; }
.hero__img { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--bg-soft); }
.hero__img img { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; transition: transform .8s var(--ease-out); }
.float-card {
  position: absolute; z-index: 2;
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px; font-size: 14px; line-height: 1.4; color: var(--text);
  animation: bob 6s ease-in-out infinite;
}
.float-card b { display: block; font-family: var(--font-head); font-weight: 500; font-size: 17px; color: var(--ink); letter-spacing: -.01em; }
.float-card--a { left: -32px; bottom: 56px; display: flex; gap: 14px; align-items: center; }
.float-card--b { right: -18px; top: 40px; animation-delay: -3s; }
.float-card .ic { width: 44px; height: 44px; border-radius: 50%; background: var(--green-light); color: var(--green); display: grid; place-items: center; flex: none; }
.float-card .ic svg { width: 20px; height: 20px; }
.float-card .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3fae6b; margin-right: 6px; box-shadow: 0 0 0 4px rgba(63,174,107,.15); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Слова, сменяющие друг друга */
.rot__w { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(60%); filter: blur(6px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out), filter .6s; }
.rot__w.is-active { opacity: 1; transform: none; filter: none; }
.rot__w.is-out { opacity: 0; transform: translateY(-60%); filter: blur(6px); }

/* ---------- Бегущая строка инстанций ---------- */
.ticker { border-block: 1px solid var(--line); padding-block: 26px; overflow: hidden; }
.ticker__wrap { display: flex; align-items: center; gap: 40px; }
.ticker__title { flex: none; font-size: 14px; color: var(--muted); max-width: 190px; line-height: 1.4; }
.ticker__view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker__list { display: flex; gap: 56px; width: max-content; animation: marquee 45s linear infinite; }
.ticker:hover .ticker__list { animation-play-state: paused; }
.ticker__list span { font-family: var(--font-head); font-size: 20px; color: var(--ink); opacity: .55; white-space: nowrap; letter-spacing: -.02em; transition: opacity .3s; }
.ticker__list span:hover { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Заголовки секций ---------- */
.head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px 80px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); }
.head p { margin: 0; max-width: 520px; }
.head--center { display: block; text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.head--center p { margin: 20px auto 0; }

/* ---------- О компании ---------- */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.about h2 { position: sticky; top: 120px; }
.about__text .lead { color: var(--ink); margin-bottom: 26px; }
.about__text p { max-width: 640px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 44px; }
.stat { padding: 28px; border-radius: var(--radius); background: var(--bg-soft); transition: background .4s; }
.stat:hover { background: var(--green-light); }
.stat__num { font-family: var(--font-head); font-size: clamp(40px, 4vw, 56px); line-height: 1; color: var(--ink); letter-spacing: -.05em; margin-bottom: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 15px; color: var(--text); line-height: 1.45; }

/* ---------- Услуги: список с фото за курсором ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, .8fr) 56px;
  gap: 24px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line);
}
.svc-row::before { content: ""; position: absolute; inset: 0 -24px; border-radius: var(--radius); background: var(--bg-soft); opacity: 0; transform: scaleY(.85); transition: opacity .4s, transform .5s var(--ease-out); z-index: -1; }
.svc-row:hover::before { opacity: 1; transform: none; }
.svc-row { isolation: isolate; }
.svc-row__n { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.svc-row h3 { font-size: clamp(24px, 2.6vw, 38px); letter-spacing: -.035em; transition: transform .5s var(--ease-out), color .3s; }
.svc-row:hover h3 { transform: translateX(10px); color: var(--green); }
.svc-row p { margin: 0; font-size: 15.5px; }
.svc-row__arr { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background .35s, border-color .35s, color .35s, transform .5s var(--ease-out); }
.svc-row__arr svg { width: 18px; height: 18px; }
.svc-row:hover .svc-row__arr { background: var(--green); border-color: var(--green); color: #fff; transform: rotate(-45deg); }
.svc-row__img { display: none; }
.cursor-img { position: fixed; z-index: 55; top: 0; left: 0; width: 300px; height: 210px; border-radius: var(--radius); overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .35s var(--ease), transform .45s var(--ease-out); box-shadow: var(--shadow); }
.cursor-img.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.cursor-img img.is-active { opacity: 1; }

/* ---------- Шаги ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps__line { position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line); }
.steps__line span { display: block; height: 100%; background: var(--green); transform: scaleX(0); transform-origin: left; }
.step { position: relative; }
.step__num { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 30px; transition: background .5s, color .5s, border-color .5s; }
.step.is-on .step__num { background: var(--green); border-color: var(--green); color: #fff; }
.section--soft .step__num { background: var(--bg-soft); }
.section--soft .step.is-on .step__num { background: var(--green); }
.step h4 { margin-bottom: 10px; }
.step p { margin: 0; font-size: 15.5px; }

/* ---------- Цены (карточки) ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 32px 32px; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s; }
.plan:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.plan--featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.plan__tag { position: absolute; top: 24px; right: 24px; font-size: 12.5px; font-weight: 500; color: var(--green); background: var(--green-light); padding: 6px 12px; border-radius: var(--pill); }
.plan h3 { margin-bottom: 6px; padding-right: 80px; }
.plan > p { font-size: 15px; color: var(--muted); margin-bottom: 30px; }
.plan__price { font-family: var(--font-head); font-size: 52px; letter-spacing: -.05em; line-height: 1; color: var(--ink); }
.plan__price small { font-size: 18px; letter-spacing: 0; color: var(--muted); margin-right: 4px; }
.plan__note { font-size: 13px; color: var(--muted); margin: 8px 0 28px; }
.plan ul { display: grid; gap: 12px; padding-top: 26px; border-top: 1px solid var(--line); margin-bottom: 32px; }
.plan li { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.45; }
.plan li svg { width: 20px; height: 20px; flex: none; color: var(--green); margin-top: 1px; }
.plan .btn { margin-top: auto; }

/* ---------- Табы «С чего начнём» ---------- */
.tabs-wrap { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.tabs { display: grid; gap: 6px; position: sticky; top: 120px; }
.tab { text-align: left; background: none; border: 0; padding: 18px 22px; border-radius: var(--radius); font-family: var(--font-head); font-size: 20px; letter-spacing: -.02em; color: var(--muted); display: flex; justify-content: space-between; align-items: center; transition: background .3s, color .3s; }
.tab svg { width: 16px; height: 16px; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .4s var(--ease-out); }
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--bg-soft); color: var(--ink); }
.tab.is-active svg { opacity: 1; transform: none; color: var(--green); }
.tab-panel { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(24px, 3vw, 48px); align-items: stretch; }
.tab-panel.is-active { display: grid; }
.tab-panel.is-active .tab-panel__body > * { animation: rise .7s var(--ease-out) both; }
.tab-panel.is-active .tab-panel__body > *:nth-child(2) { animation-delay: .06s; }
.tab-panel.is-active .tab-panel__body > *:nth-child(3) { animation-delay: .12s; }
.tab-panel.is-active .tab-panel__img img { animation: unzoom 1.2s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes unzoom { from { transform: scale(1.15); } to { transform: none; } }
.tab-panel__body > p { font-size: 18px; color: var(--ink); margin-bottom: 26px; }
.offer-list li { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; padding: 17px 0; border-bottom: 1px solid var(--line); }
.offer-list li:first-child { border-top: 1px solid var(--line); }
.offer-list h5 { font-family: var(--font-body); font-weight: 500; font-size: 16px; color: var(--ink); margin: 0; }
.offer-list small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.offer-list .p { font-weight: 500; color: var(--green); white-space: nowrap; font-size: 15.5px; }
.tab-panel__body .btn { margin-top: 30px; }
.tab-panel__img { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; background: var(--bg-soft); }
.tab-panel__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Принципы ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.value { padding: 36px 28px 0 0; }
.value + .value { padding-left: 28px; border-left: 1px solid var(--line); }
.value__ic { width: 48px; height: 48px; border-radius: 14px; background: var(--green-light); color: var(--green); display: grid; place-items: center; margin-bottom: 26px; transition: transform .6s var(--ease-out); }
.value:hover .value__ic { transform: rotate(-10deg) scale(1.08); }
.value__ic svg { width: 22px; height: 22px; }
.value h4 { margin-bottom: 10px; }
.value p { margin: 0; font-size: 15.5px; }

/* ---------- Блок призыва ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-soft); padding: clamp(40px, 6vw, 88px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; }
.cta h2 { margin-bottom: 18px; }
.cta p { margin: 0; max-width: 540px; }
.cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; justify-self: end; }
.cta__phone { font-family: var(--font-head); font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.03em; color: var(--ink); }
.cta__phone:hover { color: var(--green); }
.cta__deco { position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 1px solid var(--line-strong); pointer-events: none; }
.cta__deco::after { content: ""; position: absolute; inset: 60px; border-radius: 50%; border: 1px solid var(--line); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.faq-side { position: sticky; top: 120px; }
.faq-side h2 { margin-bottom: 20px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q { width: 100%; background: none; border: 0; text-align: left; padding: 26px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center; font-family: var(--font-head); font-size: clamp(18px, 1.4vw, 21px); letter-spacing: -.02em; color: var(--ink); }
.faq__q .pm { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; flex: none; transition: background .3s, border-color .3s, transform .5s var(--ease-out); }
.faq__q .pm::before, .faq__q .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); transition: background .3s; }
.faq__q .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q:hover .pm { border-color: var(--ink); }
.faq__item.is-open .pm { background: var(--green); border-color: var(--green); transform: rotate(135deg); }
.faq__item.is-open .pm::before, .faq__item.is-open .pm::after { background: #fff; }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 60px 26px 0; margin: 0; }

/* ---------- Новости ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { display: flex; flex-direction: column; }
.post__img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); margin-bottom: 22px; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.post:hover .post__img img { transform: scale(1.06); }
.post__cat { position: absolute; left: 14px; top: 14px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: var(--pill); }
.post__date { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.post h4 { font-size: 21px; margin-bottom: 10px; transition: color .3s; }
.post:hover h4 { color: var(--green); }
.post p { font-size: 15.5px; margin-bottom: 14px; }

/* ---------- Связь (светлый блок) ---------- */
.contact-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact-block h2 { margin-bottom: 20px; }
.contact-list { margin-top: 40px; border-top: 1px solid var(--line); }
.contact-item { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-item small { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.contact-item a, .contact-item span { font-family: var(--font-head); font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -.02em; color: var(--ink); }
.contact-item a:hover { color: var(--green); }
.contact-item .copy { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; display: grid; place-items: center; flex: none; color: var(--text); transition: background .3s, color .3s, border-color .3s; }
.contact-item .copy:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.contact-item .copy svg { width: 16px; height: 16px; }

/* ---------- Формы ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 3.4vw, 44px); }
.section--soft .form-card { border-color: transparent; }
.form-card h3 { margin-bottom: 8px; }
.form-intro { color: var(--muted); font-size: 15.5px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { position: relative; }
.field label { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 15px 18px; border-radius: var(--radius-sm);
  background: var(--bg-soft); border: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23111916' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
.field input::placeholder, .field textarea::placeholder { color: #a6ada9; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-light); }
.field.is-invalid input { border-color: #c4553e; background: #fff; animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.form-note { font-size: 13px; color: var(--muted); margin: 16px 0 0; line-height: 1.5; }
.form-card .btn--block, .modal .btn--block { margin-top: 24px; }
.form-success { display: none; text-align: center; padding: 36px 8px; }
.form-success.is-visible { display: block; animation: rise .6s var(--ease-out); }
.form-success .check { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--green-light); color: var(--green); display: grid; place-items: center; }
.form-success .check svg { width: 30px; height: 30px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Шапки внутренних страниц ---------- */
.page-hero { padding-top: 84px; }
.page-hero__top { padding-block: clamp(48px, 7vw, 100px) clamp(36px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px 80px; align-items: end; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--text); transition: color .2s; }
.crumbs a:hover { color: var(--green); }
.crumbs span.sep { color: var(--line-strong); }
.page-hero h1 { font-size: clamp(40px, 5.4vw, 80px); }
.page-hero .lead { margin: 0; }
.page-hero__side { display: grid; gap: 22px; justify-items: start; }
.page-hero__img { position: relative; border-radius: var(--radius-lg); overflow: hidden; height: clamp(260px, 38vw, 520px); background: var(--bg-soft); }
.page-hero__img img { position: absolute; left: 0; right: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-static { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--pill); background: var(--bg-soft); font-size: 14px; color: var(--ink); }
.chip-static b { font-weight: 500; color: var(--green); }

/* ---------- Страница услуги ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 100px); align-items: start; }
.sidebar { position: sticky; top: 110px; display: grid; gap: 16px; }
.side-card { border-radius: var(--radius-lg); background: var(--bg-soft); padding: 28px; }
.side-card h4 { margin-bottom: 14px; }
.side-price { font-family: var(--font-head); font-size: 44px; letter-spacing: -.05em; line-height: 1; color: var(--ink); margin: 4px 0 6px; white-space: nowrap; }
.side-price small { font-size: 16px; letter-spacing: 0; color: var(--muted); }
.side-card p { font-size: 15px; margin-bottom: 20px; }
.side-card .tel { display: block; text-align: center; margin-top: 14px; font-weight: 500; color: var(--ink); }
.side-card .tel:hover { color: var(--green); }
.side-nav a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; margin: 0 -14px; border-radius: var(--radius-sm); font-size: 15.5px; font-weight: 500; color: var(--ink); transition: background .25s, color .25s; }
.side-nav a:hover { background: #fff; }
.side-nav a.is-active { background: #fff; color: var(--green); }
.side-nav a svg { width: 14px; height: 14px; flex: none; opacity: .5; }

.prose { max-width: 760px; }
.prose > * { margin-top: 0; margin-bottom: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose > * + h2 { margin-top: 2em; }
.prose > * + h3 { margin-top: 1.6em; }
.prose > h2 + *, .prose > h3 + * { margin-top: .8em; }
.prose h2 { font-size: clamp(28px, 2.8vw, 40px); }
.prose h3 { font-size: 22px; }
.prose ul, .prose ol { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--green); }
.prose ol { counter-reset: n; gap: 0; border-top: 1px solid var(--line); }
.prose ol li { position: relative; padding: 16px 0 16px 56px; counter-increment: n; border-bottom: 1px solid var(--line); color: var(--ink); transition: padding .4s var(--ease-out); }
.prose ol li:hover { padding-left: 64px; }
.prose ol li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 16px; font-size: 14px; font-weight: 500; color: var(--green); }
.prose a { color: var(--green); background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; }
.prose strong { color: var(--ink); font-weight: 500; }
.prose .note { background: var(--bg-soft); border-radius: var(--radius); padding: 22px 26px; font-size: 16px; color: var(--ink); }
.prose figure { margin-left: 0; margin-right: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-soft); }
.prose figure img { width: 100%; height: 100%; object-fit: cover; }
.prose > .tiles, .prose > .terms { margin-top: 1.3em; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile { border-radius: var(--radius); background: var(--bg-soft); padding: 24px; transition: background .4s, transform .5s var(--ease-out); }
.tile:hover { background: var(--green-light); transform: translateY(-3px); }
.tile h4 { font-size: 18px; margin-bottom: 8px; }
.tile p { font-size: 15px; margin: 0; }
.tile .tag { display: block; font-size: 13px; font-weight: 500; color: var(--green); margin-bottom: 6px; }
.terms { border-top: 1px solid var(--line); }
.terms details { border-bottom: 1px solid var(--line); }
.terms summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 0; position: relative; font-family: var(--font-head); font-size: 19px; letter-spacing: -.02em; color: var(--ink); }
.terms summary::-webkit-details-marker { display: none; }
.terms summary small { display: block; font-family: var(--font-body); font-size: 14px; letter-spacing: 0; color: var(--muted); margin-top: 2px; }
.terms summary::after { content: ""; position: absolute; right: 0; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 50%; border: 1px solid var(--line-strong); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23111916' stroke-width='1.4'/%3E%3C/svg%3E") center/11px no-repeat; transition: transform .45s var(--ease-out); }
.terms details[open] summary::after { transform: rotate(135deg); }
.terms details > div { padding: 0 0 22px; font-size: 16px; animation: rise .5s var(--ease-out); }

/* ---------- Цены (страница) ---------- */
.price-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.price-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search input { width: 100%; font: inherit; font-size: 16px; padding: 15px 18px 15px 50px; border-radius: var(--pill); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); transition: border-color .3s, box-shadow .3s; }
.search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-light); }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: var(--pill); background: var(--bg-soft); }
.chip { padding: 9px 16px; border-radius: var(--pill); border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--text); transition: background .3s, color .3s; }
.chip:hover { color: var(--ink); }
.chip.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -4px rgba(0,0,0,.15); }
.price-group { margin-bottom: 52px; }
.price-group__title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.price-group__title h3 { font-size: 24px; }
.price-group__title span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.price-table { border-top: 1px solid var(--ink); }
.price-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 10px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 4px; transition: background .25s, padding .35s var(--ease-out); }
.price-row:hover { background: var(--bg-soft); padding-left: 16px; }
.price-row.is-selected { background: var(--green-light); }
.price-row.is-static { cursor: default; }
.price-row.is-static:hover { background: none; padding-left: 10px; }
.price-row.is-hidden { display: none; }
.price-row__name { color: var(--ink); font-size: 16px; line-height: 1.45; }
.price-row__price { font-weight: 500; font-size: 16.5px; color: var(--ink); white-space: nowrap; }
.price-row__price small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.check-box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-strong); background: #fff; display: grid; place-items: center; transition: all .25s; }
.check-box svg { width: 12px; height: 12px; color: #fff; transform: scale(0); transition: transform .3s var(--ease-out); }
.price-row.is-selected .check-box { background: var(--green); border-color: var(--green); }
.price-row.is-selected .check-box svg { transform: scale(1); }
mark { background: var(--lime); color: inherit; border-radius: 3px; padding: 0 2px; }
.empty-state { display: none; padding: 40px; text-align: center; background: var(--bg-soft); border-radius: var(--radius); color: var(--muted); margin-bottom: 32px; }
.empty-state.is-visible { display: block; }
.calc { position: sticky; top: 110px; background: var(--bg-soft); border-radius: var(--radius-lg); padding: 30px; }
.calc h3 { font-size: 22px; margin-bottom: 4px; }
.calc > p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.calc__list { max-height: 260px; overflow-y: auto; margin-bottom: 16px; }
.calc__item { display: grid; grid-template-columns: minmax(0, 1fr) auto 22px; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line-strong); font-size: 14px; color: var(--ink); animation: rise .35s var(--ease-out); }
.calc__item b { font-weight: 500; white-space: nowrap; }
.calc__item button { background: none; border: 0; color: var(--muted); padding: 0; line-height: 1; font-size: 20px; }
.calc__item button:hover { color: #c4553e; }
.calc__empty { font-size: 14px; color: var(--muted); padding: 18px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); text-align: center; margin-bottom: 16px; }
.calc__toggle { display: flex; background: #fff; border-radius: var(--pill); padding: 4px; margin-bottom: 18px; }
.calc__toggle button { flex: 1; border: 0; background: none; padding: 9px; border-radius: var(--pill); font-size: 14px; font-weight: 500; color: var(--text); transition: background .3s, color .3s; }
.calc__toggle button.is-active { background: var(--ink); color: #fff; }
.calc__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.calc__total span { font-size: 14px; color: var(--muted); }
.calc__total b { font-family: var(--font-head); font-weight: 500; font-size: 34px; letter-spacing: -.04em; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc__total b.bump { animation: bump .45s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.08); color: var(--green); } }
.calc .note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.calc .btn + .btn { margin-top: 8px; }
.calc-bar { display: none; }
.price-note { display: flex; gap: 14px; padding: 22px 24px; background: var(--bg-soft); border-radius: var(--radius); font-size: 15.5px; color: var(--ink); }
.price-note svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--green); }

/* ---------- Контакты ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact-card { border-radius: var(--radius-lg); background: var(--bg-soft); padding: 32px; transition: background .4s, transform .5s var(--ease-out); }
.contact-card:hover { background: var(--green-light); transform: translateY(-4px); }
.contact-card .value__ic { margin-bottom: 40px; background: #fff; }
.contact-card small { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.contact-card a, .contact-card p { font-family: var(--font-head); font-size: 21px; letter-spacing: -.02em; margin: 0; display: block; color: var(--ink); line-height: 1.3; }
.contact-card .small-link { margin-top: 16px; font-family: var(--font-body); font-size: 14px; letter-spacing: 0; font-weight: 500; color: var(--green); display: inline-flex; gap: 6px; align-items: center; background: none; border: 0; padding: 0; }
.contact-card .small-link svg { width: 14px; height: 14px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 24px; align-items: stretch; }
.map { border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; background: var(--bg-soft); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.02); transition: filter .7s; }
.map:hover iframe { filter: grayscale(0); }

/* ---------- Статья ---------- */
.article-foot { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center; }
.share-copy { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--line-strong); border-radius: var(--pill); padding: 9px 16px; font-size: 14px; font-weight: 500; transition: background .3s, color .3s, border-color .3s; }
.share-copy:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.share-copy svg { width: 15px; height: 15px; }

/* ---------- Подвал ---------- */
.footer { background: var(--bg-soft); padding-top: clamp(64px, 7vw, 100px); font-size: 15px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
.footer__brand p { margin: 22px 0 0; max-width: 300px; }
.footer h6 { font-size: 14px; font-weight: 500; color: var(--muted); margin: 0 0 18px; }
.footer li { margin-bottom: 10px; }
.footer li a { color: var(--ink); transition: color .2s; }
.footer li a:hover { color: var(--green); }
.footer__word { font-family: var(--font-head); font-size: clamp(64px, 15vw, 230px); line-height: .8; letter-spacing: -.07em; color: #e6e9e6; white-space: nowrap; user-select: none; margin-bottom: -.12em; overflow: hidden; }
.footer__bottom { border-top: 1px solid var(--line-strong); }
.footer__bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 24px; font-size: 13.5px; color: var(--muted); }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transition: background .3s, color .3s, transform .4s var(--ease-out); }
.socials a:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }
.socials svg { width: 16px; height: 16px; }
.rcs { display: inline-block; margin-top: 20px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.rcs:hover { color: var(--ink); }

/* =========================================================
   Всплывающие элементы
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__overlay { position: absolute; inset: 0; background: rgba(17, 25, 22, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .45s var(--ease); }
.modal.is-open .modal__overlay { opacity: 1; }
.modal__box { position: relative; width: 100%; max-width: 920px; max-height: calc(100vh - 40px); overflow-y: auto; display: grid; grid-template-columns: .85fr 1.15fr; background: #fff; border-radius: var(--radius-lg); box-shadow: 0 50px 100px -40px rgba(17,25,22,.45); opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__aside { position: relative; margin: 10px; border-radius: calc(var(--radius-lg) - 8px); overflow: hidden; min-height: 100%; background: var(--bg-soft); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #fff; }
.modal__aside img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal__aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,25,22,0) 40%, rgba(17,25,22,.6) 100%); }
.modal__aside > * { position: relative; z-index: 1; }
.modal__aside b { display: block; font-family: var(--font-head); font-weight: 500; font-size: 22px; letter-spacing: -.02em; }
.modal__aside a { font-size: 15px; opacity: .9; }
.modal__main { padding: 44px 40px 36px; }
.modal__main h3 { font-size: 30px; margin-bottom: 8px; }
.modal__close { position: absolute; top: 16px; right: 16px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; transition: background .3s, color .3s, transform .5s var(--ease-out); }
.modal__close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.modal__close svg { width: 16px; height: 16px; }

.fab { position: fixed; right: 24px; bottom: 24px; z-index: 80; display: flex; align-items: center; gap: 10px; opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .5s var(--ease-out); }
.fab.is-visible { opacity: 1; visibility: visible; transform: none; }
.fab__btn { display: inline-flex; align-items: center; gap: 12px; padding: 6px 6px 6px 20px; min-height: 54px; border-radius: var(--pill); background: var(--ink); color: #fff; border: 0; font-weight: 500; font-size: 15px; box-shadow: var(--shadow); }
.fab__btn .btn__ic { background: #fff; color: var(--ink); width: 42px; height: 42px; }
.fab__btn:hover .btn__ic { transform: rotate(-45deg); }
.fab__call { width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--green); display: grid; place-items: center; box-shadow: var(--shadow); border: 1px solid var(--line); transition: background .3s, color .3s; }
.fab__call:hover { background: var(--green); color: #fff; }
.fab__call svg { width: 20px; height: 20px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 130; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; background: var(--ink); color: #fff; padding: 14px 20px; border-radius: var(--pill); box-shadow: var(--shadow); display: flex; gap: 10px; align-items: center; font-size: 15px; max-width: calc(100% - 40px); transition: all .45s var(--ease-out); }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--lime); flex: none; }

/* =========================================================
   Анимации появления
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .clip { clip-path: inset(12% 12% 12% 12% round var(--radius-lg)); transition: clip-path 1.4s var(--ease-out); }
.js .clip.is-visible { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
.js .clip img { transform: scale(1.2); transition: transform 1.6s var(--ease-out); }
.js .clip.is-visible img { transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
.split.is-in .w > span { transform: none; }
.js .fade-in { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .fade-in.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .fade-in { opacity: 1; transform: none; }
  .js .clip { clip-path: none; }
  .js .clip img, .split .w > span { transform: none; }
  html { scroll-behavior: auto; }
}
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1180px) {
  .nav, .header__phone, .header__cta .btn { display: none; }
  .burger { display: inline-flex; }
  .values { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .value:nth-child(3) { padding-left: 0; border-left: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .layout, .price-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar, .calc { position: static; }
  .sidebar { grid-template-columns: 1fr 1fr; }
  .tabs-wrap { grid-template-columns: minmax(0, 1fr); }
  .tabs { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; font-size: 17px; }
  .tab svg { display: none; }
  .calc-bar { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 85; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 20px; background: var(--ink); color: #fff; border-radius: var(--pill); box-shadow: var(--shadow); transform: translateY(160%); transition: transform .5s var(--ease-out); font-size: 14px; }
  .calc-bar.is-visible { transform: none; }
  .calc-bar b { font-family: var(--font-head); font-weight: 500; font-size: 18px; }
  .calc-bar .pill { background: #fff; color: var(--ink); padding: 10px 16px; border-radius: var(--pill); font-weight: 500; }
}

@media (max-width: 960px) {
  .hero__grid, .about, .head, .contact-block, .contact-layout, .faq-wrap, .cta, .page-hero__top, .tab-panel { grid-template-columns: minmax(0, 1fr); }
  .about h2, .faq-side { position: static; }
  .hero__img { aspect-ratio: 4 / 3.4; }
  .float-card--a { left: 12px; bottom: 16px; }
  .float-card--b { right: 12px; top: 16px; }
  .svc-row { grid-template-columns: 44px minmax(0, 1fr) 48px; }
  .svc-row p { grid-column: 2; grid-row: 2; }
  .svc-row__arr { grid-column: 3; grid-row: 1 / 3; width: 48px; height: 48px; }
  .svc-row__img { display: block; grid-column: 1 / -1; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; margin-top: 8px; }
  .svc-row__img img { width: 100%; height: 100%; object-fit: cover; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps__line { display: none; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; }
  .tab-panel__img { min-height: 240px; order: -1; }
  .news { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .cta__actions { justify-self: start; }
  .modal__box { grid-template-columns: minmax(0, 1fr); }
  .modal__aside { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header .container { height: 70px; }
  .logo img { height: 38px; }
  .hero, .page-hero { padding-top: 70px; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .values, .tiles, .sidebar { grid-template-columns: minmax(0, 1fr); }
  .value, .value + .value { padding: 28px 0 0; border-left: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .price-row { grid-template-columns: 28px minmax(0, 1fr); }
  .price-row__price { grid-column: 2; }
  .ticker__wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ticker__title { max-width: none; }
  .offer-list li { flex-direction: column; gap: 4px; }
  .float-card--b { display: none; }
  .modal { padding: 0; align-items: end; }
  .modal__box { max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; transform: translateY(100%); }
  .modal__main { padding: 36px 22px 26px; }
  .modal__main h3 { font-size: 26px; padding-right: 50px; }
  .fab { right: 14px; left: 14px; bottom: 14px; justify-content: flex-end; }
  .faq__a p { padding-right: 0; }
  .btn { white-space: normal; text-align: left; }
}
.about h2 { font-size: clamp(30px, 3.3vw, 48px); }
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 20px 16px; }
  .stat__num { font-size: 32px; }
  .svc-row { grid-template-columns: 34px minmax(0, 1fr) 44px; gap: 12px; padding: 26px 0; }
  .svc-row__arr { width: 44px; height: 44px; }
}
