/* ==========================================================================
   Дарья Ильина — частный риелтор. Landing page styles
   Palette: midnight navy + antique gold + warm cream
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Ink (dark) */
  --ink-950: #060a12;
  --ink-900: #0a1220;
  --ink-850: #0d1727;
  --ink-800: #111d31;
  --ink-700: #182742;
  --ink-600: #20334f;

  /* Gold */
  --gold-100: #fdf6e6;
  --gold-200: #f8ead0;
  --gold-300: #f0d9a9;
  --gold-400: #e3c286;
  --gold-500: #cfa45e;
  --gold-600: #b4863f;
  --gold-700: #8d652c;

  /* Cream */
  --cream-50: #fcfaf5;
  --cream-100: #f6f0e5;
  --cream-200: #ece2d1;
  --cream-300: #dbcdb6;

  /* Text */
  --on-dark: #f4f1ea;
  --on-dark-muted: #a9b4c6;
  --on-dark-faint: #7d8aa0;
  --on-light: #14203a;
  --on-light-muted: #566073;
  --on-light-body: #4d5668;

  --line-dark: rgba(227, 194, 134, 0.16);
  --line-dark-strong: rgba(227, 194, 134, 0.34);
  --line-light: rgba(20, 32, 58, 0.1);

  /* Type */
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-arch: 200px 200px 26px 26px;
  --r-pill: 999px;

  /* Shadows */
  --sh-soft: 0 18px 44px -22px rgba(9, 17, 30, 0.35);
  --sh-card: 0 24px 60px -34px rgba(9, 17, 30, 0.4);
  --sh-gold: 0 20px 46px -18px rgba(180, 134, 63, 0.5);
  --sh-badge: 0 26px 60px -26px rgba(6, 10, 18, 0.6);

  /* Layout */
  --wrap-max: 1200px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --section-y: clamp(68px, 8.5vw, 124px);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 0.42s;
}

/* ---------- 2. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--on-dark);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* fine film grain for a printed, premium feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

img,
svg { display: block; max-width: 100%; }

img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.006em;
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--gold-400);
  color: var(--ink-900);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--gold-400);
  color: var(--ink-900);
  font-size: 0.875rem;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

/* icons */
.ico {
  width: 1.35em;
  height: 1.35em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico.fill {
  fill: currentColor;
  stroke: none;
}

/* Numeric displays: force lining figures (Cormorant defaults to old-style) */
.calc-value,
.compare-rate,
.compare-total,
.price-badge-value,
.trust-strip strong,
.step-num {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

/* ---------- 3. Layout utilities ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--light {
  background: var(--cream-50);
  color: var(--on-light);
}
.section--cream {
  background: var(--cream-100);
  color: var(--on-light);
}
.section--dark {
  background: var(--ink-900);
  color: var(--on-dark);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(38px, 5vw, 62px);
  text-align: center;
}
.section-head--left {
  margin-inline: 0;
  text-align: left;
  max-width: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.eyebrow--dark { color: var(--gold-600); }

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent);
}

.section-title {
  font-size: clamp(2rem, 3.7vw, 3.1rem);
  margin-bottom: 20px;
  color: inherit;
}
.section-title em {
  font-style: italic;
  color: var(--gold-500);
  font-weight: 500;
}
.section--light .section-title em,
.section--cream .section-title em { color: var(--gold-600); }

.section-lead {
  max-width: 56ch;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--on-dark-muted);
}
.section--light .section-lead,
.section--cream .section-lead { color: var(--on-light-body); }

.section-head .section-lead { margin-inline: auto; }
.section-head--left .section-lead { margin-inline: 0; }

/* ---------- 4. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
              background-color 0.28s var(--ease), color 0.28s var(--ease),
              border-color 0.28s var(--ease);
}
.btn .ico { width: 1.15em; height: 1.15em; }

.btn-sm { padding: 11px 18px; font-size: 0.86rem; }
.btn-lg { padding: 17px 30px; font-size: 1rem; }
.btn-xl { padding: 20px 38px; font-size: 1.06rem; }

.btn-gold {
  color: #2a1d08;
  background-image: linear-gradient(135deg, var(--gold-200) 0%, var(--gold-400) 42%, var(--gold-500) 100%);
  box-shadow: var(--sh-gold), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 54px -18px rgba(180, 134, 63, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-outline {
  color: var(--on-dark);
  border: 1px solid var(--line-dark-strong);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
}
.btn-outline:hover {
  border-color: var(--gold-400);
  color: var(--gold-300);
  transform: translateY(-2px);
}

.btn-icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  min-width: 56px;
  padding: 0;
  border-radius: 50%;
  color: var(--on-dark);
  border: 1px solid var(--line-dark-strong);
  background: rgba(255, 255, 255, 0.03);
}
.btn-icon:hover {
  color: var(--gold-300);
  border-color: var(--gold-400);
  transform: translateY(-2px);
}
.btn-icon .ico { width: 1.35em; height: 1.35em; }

.btn-dark {
  color: var(--cream-50);
  background: var(--ink-900);
  box-shadow: var(--sh-soft);
}
.btn-dark:hover {
  transform: translateY(-2px);
  background: var(--ink-700);
}

.btn:active { transform: translateY(0); }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(10, 18, 32, 0.86);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 42px);
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  flex: none;
}
.brand-mark {
  width: 62px;
  height: 29px;
  color: var(--gold-400);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand-role {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 26px);
  margin-inline: auto;
}
.nav a {
  position: relative;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--on-dark-muted);
  padding-block: 6px;
  transition: color 0.24s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--on-dark); }
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }
.nav a.is-active { color: var(--gold-300); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--on-dark-muted);
  transition: color 0.24s var(--ease);
}
.header-phone:hover { color: var(--gold-300); }
.header-phone .ico { width: 1.05em; height: 1.05em; color: var(--gold-500); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-dark-strong);
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 1.5px;
  background: var(--on-dark);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(34px, 5vw, 64px);
  padding-bottom: clamp(46px, 6vw, 76px);
  background:
    radial-gradient(120% 90% at 84% 8%, rgba(207, 164, 94, 0.14) 0%, transparent 58%),
    radial-gradient(90% 70% at 8% 92%, rgba(32, 51, 79, 0.55) 0%, transparent 62%),
    linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 100%);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-glow {
  position: absolute;
  top: -18%;
  right: -8%;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 194, 134, 0.16) 0%, transparent 66%);
  filter: blur(18px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(227, 194, 134, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(227, 194, 134, 0.07) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 72%);
  opacity: 0.55;
}

.hero-skyline {
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: clamp(120px, 18vw, 220px);
  color: var(--gold-500);
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.1;
  stroke-linejoin: round;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
}

.hero-copy { max-width: 620px; }

.hero-title {
  font-size: clamp(2.35rem, 5.1vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-title-line { display: block; }
.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: transparent;
  background-image: linear-gradient(96deg, var(--gold-200) 0%, var(--gold-400) 38%, var(--gold-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-lead {
  max-width: 52ch;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.75;
  color: var(--on-dark-muted);
  margin-bottom: 28px;
}

.hero-facts {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
}
.hero-facts li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--on-dark);
}
.hero-facts .ico {
  width: 1rem;
  height: 1rem;
  margin-top: 0.32em;
  padding: 2px;
  border-radius: 50%;
  color: var(--gold-300);
  background: rgba(227, 194, 134, 0.14);
  stroke-width: 2.4;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-note {
  margin-top: 20px;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  color: var(--on-dark-faint);
}

/* portrait */
.hero-visual { position: relative; display: flex; justify-content: center; }

.portrait {
  position: relative;
  margin: 0;
  width: min(100%, 430px);
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-arch);
  background: var(--ink-800);
  box-shadow: 0 50px 90px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(227, 194, 134, 0.22);
}
.portrait-frame img {
  width: 100%;
  height: clamp(430px, 52vw, 600px);
  object-fit: cover;
  object-position: center 26%;
  filter: saturate(1.02) contrast(1.02);
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 18, 0) 46%, rgba(6, 10, 18, 0.5) 100%);
  pointer-events: none;
}
.portrait::before {
  content: "";
  position: absolute;
  inset: -14px -14px auto;
  height: 66%;
  border-radius: var(--r-arch);
  border: 1px solid rgba(227, 194, 134, 0.28);
  pointer-events: none;
}

.portrait-caption {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
  pointer-events: none;
}
.portrait-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.portrait-role {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.price-badge {
  position: absolute;
  left: clamp(-20px, -2vw, -14px);
  bottom: clamp(58px, 7vw, 84px);
  z-index: 3;
  display: grid;
  gap: 2px;
  padding: 16px 22px 17px;
  border-radius: var(--r-md);
  background: linear-gradient(160deg, rgba(248, 234, 208, 0.98), rgba(240, 217, 169, 0.94));
  color: #2c1f0a;
  box-shadow: var(--sh-badge);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.price-badge-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: rgba(44, 31, 10, 0.66);
}
.price-badge-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
}
.price-badge-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(44, 31, 10, 0.72);
}

.area-chip {
  position: absolute;
  top: 26px;
  right: clamp(-16px, -1.6vw, -12px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-200);
  background: rgba(10, 18, 32, 0.72);
  border: 1px solid var(--line-dark-strong);
  backdrop-filter: blur(10px);
}
.area-chip .ico { width: 0.95em; height: 0.95em; color: var(--gold-400); }

/* trust strip */
.trust-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: clamp(38px, 5vw, 64px);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.trust-strip li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 22px clamp(14px, 2vw, 26px);
  border-left: 1px solid var(--line-dark);
}
.trust-strip li:first-child { border-left: 0; padding-left: 0; }
.trust-strip strong {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 600;
  color: var(--gold-300);
  line-height: 1.1;
}
.trust-strip span {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--on-dark-faint);
}

/* ---------- 7. Cards / услуга ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--cream-200);
  box-shadow: 0 2px 0 rgba(20, 32, 58, 0.02);
  transition: transform 0.34s var(--ease), box-shadow 0.34s var(--ease), border-color 0.34s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-300);
  box-shadow: var(--sh-card);
}

.card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 4px;
  border-radius: 16px;
  color: var(--gold-700);
  background: linear-gradient(150deg, var(--gold-100), var(--gold-200));
  border: 1px solid rgba(180, 134, 63, 0.24);
}
.card-ico .ico { width: 26px; height: 26px; stroke-width: 1.4; }

.card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.004em;
  line-height: 1.35;
  color: var(--on-light);
}
.card p {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--on-light-body);
}

.card--accent {
  color: var(--cream-50);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(207, 164, 94, 0.24) 0%, transparent 58%),
    linear-gradient(160deg, var(--ink-800) 0%, var(--ink-950) 100%);
  border-color: rgba(227, 194, 134, 0.3);
}
.card--accent h3 { color: var(--cream-50); }
.card--accent p { color: var(--on-dark-muted); }
.card--accent .card-ico {
  color: var(--gold-300);
  background: rgba(227, 194, 134, 0.12);
  border-color: var(--line-dark-strong);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-300);
}
.link-arrow .ico { width: 1em; height: 1em; transition: transform 0.3s var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }

/* ---------- 8. Этапы ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(34px, 5vw, 78px);
}
.grid-2--sticky { align-items: start; }
.grid-2--sticky .sticky-col {
  position: sticky;
  top: 110px;
}

.steps {
  /* общие метрики таймлайна: от них считается и отступ карточки, и ось пунктира */
  --step-pad: clamp(20px, 2.2vw, 26px);
  --step-num: 50px;
  --steps-gap: 14px;
  position: relative;
  display: grid;
  gap: var(--steps-gap);
}

.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 26px);
  padding: var(--step-pad);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(227, 194, 134, 0.13);
  transition: border-color 0.34s var(--ease), background-color 0.34s var(--ease),
              box-shadow 0.34s var(--ease);
}

/* пунктир проходит строго через центры кругов: от центра своего шага до центра следующего */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--step-pad) + var(--step-num) / 2);
  top: calc(var(--step-pad) + var(--step-num) / 2);
  width: 1px;
  height: calc(100% + var(--steps-gap));
  background-image: linear-gradient(to bottom, var(--gold-500) 0 6px, transparent 6px 12px);
  background-size: 1px 12px;
  opacity: 0.42;
  pointer-events: none;
}

.step:hover {
  border-color: var(--line-dark-strong);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 22px 46px -30px rgba(0, 0, 0, 0.9);
}

.step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--gold-200);
  background: linear-gradient(160deg, var(--ink-700), var(--ink-950));
  border: 1px solid var(--gold-500);
  box-shadow: 0 0 0 5px rgba(10, 18, 32, 0.9);
}

.step-body h3 {
  font-family: var(--font-sans);
  font-size: 1.06rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--cream-50);
}
.step-body p {
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--on-dark-muted);
}

.result-note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 20px 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-dark-strong);
  background: linear-gradient(120deg, rgba(227, 194, 134, 0.12), rgba(227, 194, 134, 0.03));
}
.result-note-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--gold-300);
  border: 1px solid var(--line-dark-strong);
  background: rgba(10, 18, 32, 0.5);
}
.result-note p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--on-dark-muted);
}
.result-note strong { color: var(--gold-200); font-weight: 600; }

/* ---------- 9. Безопасность ---------- */
.safety-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
}

.shield-quote {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 30px;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--cream-200);
  border-left: 2px solid var(--gold-500);
  box-shadow: var(--sh-soft);
}
.shield-quote-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--gold-700);
  background: linear-gradient(150deg, var(--gold-100), var(--gold-200));
}
.shield-quote p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--on-light-body);
}

.safety-list {
  display: grid;
  gap: 12px;
}
.safety-list li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid var(--cream-200);
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
}
.safety-list li:hover {
  transform: translateY(-3px);
  border-color: var(--gold-300);
  box-shadow: var(--sh-soft);
}
.safety-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: var(--gold-700);
  background: linear-gradient(150deg, var(--gold-100), var(--gold-200));
  border: 1px solid rgba(180, 134, 63, 0.2);
}
.safety-ico .ico { width: 23px; height: 23px; }

.safety-list h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--on-light);
}
.safety-list p {
  font-size: 0.9rem;
  color: var(--on-light-body);
}

/* ---------- 10. Цена ---------- */
.section--price {
  background:
    radial-gradient(90% 70% at 88% 6%, rgba(207, 164, 94, 0.16) 0%, transparent 60%),
    radial-gradient(70% 60% at 4% 96%, rgba(32, 51, 79, 0.6) 0%, transparent 62%),
    linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 100%);
  color: var(--on-dark);
}

.calc {
  padding: clamp(24px, 3.4vw, 44px);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.032);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(8px);
}

.calc-top { margin-bottom: clamp(26px, 3vw, 38px); }
.calc-field {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.calc-field label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}
.calc-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-300);
  font-variant-numeric: tabular-nums;
}

/* range */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--gold-400) 0%,
    var(--gold-500) var(--progress, 21%),
    rgba(255, 255, 255, 0.14) var(--progress, 21%),
    rgba(255, 255, 255, 0.14) 100%
  );
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--gold-500);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -9px;
  border-radius: 50%;
  background: linear-gradient(150deg, #fff, var(--gold-300));
  border: 3px solid var(--ink-900);
  box-shadow: 0 0 0 1px var(--gold-500), 0 8px 18px -6px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s var(--ease);
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.08); }
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(150deg, #fff, var(--gold-300));
  border: 3px solid var(--ink-900);
  box-shadow: 0 0 0 1px var(--gold-500);
}

.calc-scale {
  position: relative;
  height: 1.15em;
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--on-dark-faint);
}
.calc-scale span {
  position: absolute;
  top: 0;
  white-space: nowrap;
  transform: translateX(-50%);
}
.calc-scale span:nth-child(1) { left: 0; transform: none; }
.calc-scale span:nth-child(2) { left: 21%; }
.calc-scale span:nth-child(3) { left: 47.4%; }
.calc-scale span:nth-child(4) { left: 100%; transform: translateX(-100%); }

.calc-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.compare-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: var(--r-lg);
}
.compare-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.compare-rate {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 3.9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}
.compare-rate--gold {
  background-image: linear-gradient(96deg, var(--gold-200), var(--gold-400) 52%, var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.compare-sub {
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.compare-card--market {
  background: linear-gradient(165deg, var(--cream-100), var(--cream-200));
  color: var(--on-light);
  border: 1px solid var(--cream-300);
}
.compare-card--market .compare-tag { color: rgba(20, 32, 58, 0.55); }
.compare-card--market .compare-sub { color: var(--on-light-body); }
.compare-total {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(20, 32, 58, 0.14);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.compare-example {
  margin-top: 14px;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(20, 32, 58, 0.62);
}

.compare-card--mine {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(207, 164, 94, 0.2) 0%, transparent 62%),
    linear-gradient(165deg, rgba(17, 29, 49, 0.96), rgba(6, 10, 18, 0.98));
  border: 1px solid rgba(227, 194, 134, 0.42);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.compare-card--mine .compare-tag { color: var(--gold-400); }
.compare-card--mine .compare-sub { color: var(--on-dark-muted); }

.compare-list {
  display: grid;
  gap: 9px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-dark);
}
.compare-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--on-dark);
}
.compare-list .ico {
  width: 1rem;
  height: 1rem;
  padding: 2px;
  border-radius: 50%;
  color: var(--gold-200);
  background: rgba(227, 194, 134, 0.16);
  stroke-width: 2.6;
}

.calc-note {
  margin-top: clamp(20px, 2.4vw, 28px);
  text-align: center;
  font-size: 0.98rem;
  color: var(--on-dark-muted);
}
.calc-note strong { color: var(--gold-200); font-weight: 700; }

.price-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(24px, 3vw, 34px);
  padding-top: clamp(22px, 2.6vw, 30px);
  border-top: 1px solid var(--line-dark);
}
.price-cta p {
  font-size: 0.95rem;
  color: var(--on-dark-muted);
}

/* ---------- 11. Обо мне ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(30px, 4.5vw, 70px);
  align-items: center;
}

.about-photo {
  position: relative;
  margin: 0;
}
.about-photo img {
  width: 100%;
  height: clamp(400px, 40vw, 520px);
  object-fit: cover;
  object-position: center 28%;
  border-radius: var(--r-arch);
  box-shadow: 0 40px 80px -46px rgba(9, 17, 30, 0.6), 0 0 0 1px rgba(20, 32, 58, 0.08);
}
.about-photo figcaption {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: rgba(10, 18, 32, 0.66);
  border: 1px solid var(--line-dark-strong);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}
.about-photo-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cream-50);
}
.about-photo-role {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.about-subtitle {
  margin-top: -6px;
  margin-bottom: 28px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--on-light-body);
}

.about-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 26px;
  margin-bottom: 30px;
}
.about-list li { display: flex; align-items: flex-start; gap: 14px; }
.about-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--gold-700);
  background: linear-gradient(150deg, var(--gold-100), var(--gold-200));
  border: 1px solid rgba(180, 134, 63, 0.2);
}
.about-ico .ico { width: 20px; height: 20px; }
.about-list h3 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 3px;
  color: var(--on-light);
}
.about-list p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--on-light-body);
}

.about-quote {
  margin: 0;
  padding: 24px 28px;
  border-left: 2px solid var(--gold-500);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: #fff;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--on-light);
  box-shadow: var(--sh-soft);
}

/* ---------- 12. FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(30px, 4.5vw, 68px);
  align-items: start;
}
.faq-grid .section-head { margin-bottom: 0; }
.faq-grid .btn { margin-top: 26px; }

.faq {
  border-top: 1px solid var(--line-light);
}
.faq-item {
  border-bottom: 1px solid var(--line-light);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 22px 0;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--on-light);
  transition: color 0.26s var(--ease);
}
.faq-q:hover { color: var(--gold-700); }

.faq-ico {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--gold-600);
  transition: transform 0.34s var(--ease);
}
.faq-item.is-open .faq-ico { transform: rotate(45deg); }

.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease);
}
.faq-a-inner {
  overflow: hidden;
}
.faq-a-inner p {
  padding-bottom: 22px;
  padding-right: clamp(0px, 4vw, 60px);
  font-size: 0.94rem;
  line-height: 1.72;
  color: var(--on-light-body);
}

/* ---------- 13. Контакты ---------- */
.section--contact {
  padding-block: clamp(56px, 7vw, 100px);
  background: linear-gradient(180deg, var(--ink-950) 0%, var(--ink-900) 100%);
}

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 68px);
  border-radius: clamp(24px, 3vw, 40px);
  text-align: center;
  background:
    radial-gradient(90% 90% at 50% 0%, rgba(207, 164, 94, 0.18) 0%, transparent 62%),
    linear-gradient(165deg, rgba(24, 39, 66, 0.92) 0%, rgba(6, 10, 18, 0.96) 100%);
  border: 1px solid rgba(227, 194, 134, 0.26);
  box-shadow: 0 60px 120px -70px rgba(0, 0, 0, 0.95);
}
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(227, 194, 134, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(227, 194, 134, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000, transparent 78%);
  pointer-events: none;
}
.contact-panel > * { position: relative; }

/* highlight when a CTA on the page scrolls here */
@keyframes contactPulse {
  0% { box-shadow: 0 0 0 0 rgba(227, 194, 134, 0.5), 0 60px 120px -70px rgba(0, 0, 0, 0.95); }
  55% { box-shadow: 0 0 0 12px rgba(227, 194, 134, 0), 0 60px 120px -70px rgba(0, 0, 0, 0.95); }
  100% { box-shadow: 0 0 0 0 rgba(227, 194, 134, 0), 0 60px 120px -70px rgba(0, 0, 0, 0.95); }
}
.contact-panel.is-highlight {
  animation: contactPulse 1.15s var(--ease) 2;
  border-color: rgba(227, 194, 134, 0.62);
}

.contact-title {
  max-width: 24ch;
  margin: 0 auto 30px;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.1;
  text-wrap: balance;
}
.contact-title em {
  font-style: italic;
  font-weight: 500;
  color: transparent;
  background-image: linear-gradient(96deg, var(--gold-200), var(--gold-400) 46%, var(--gold-600));
  -webkit-background-clip: text;
  background-clip: text;
}

.contact-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(10px, 1.6vw, 18px);
  margin-bottom: 34px;
}
.contact-steps li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px 11px 12px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--on-dark);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(227, 194, 134, 0.2);
}
.contact-step-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--gold-300);
  background: rgba(227, 194, 134, 0.12);
}
.contact-step-ico .ico { width: 17px; height: 17px; }

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.btn-xl .ico-arrow { transition: transform 0.3s var(--ease); }
.btn-xl:hover .ico-arrow { transform: translateX(4px); }

.contact-note {
  margin-top: 16px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--on-dark-faint);
}

.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(34px, 4.5vw, 52px);
  padding-top: clamp(28px, 3.5vw, 40px);
  border-top: 1px solid var(--line-dark);
  text-align: left;
}
.contact-channels > li { position: relative; }
.channel-item .channel { padding-right: 56px; }

.channel {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(227, 194, 134, 0.14);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.channel:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--gold-500);
  transform: translateY(-2px);
}
.channel-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--gold-300);
  background: rgba(227, 194, 134, 0.12);
  border: 1px solid rgba(227, 194, 134, 0.2);
}
.channel-ico .ico { width: 19px; height: 19px; }
.channel-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.channel-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream-50);
  white-space: nowrap;
}
.channel-value {
  font-size: 0.78rem;
  color: var(--on-dark-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-arrow {
  margin-left: auto;
  width: 1em;
  height: 1em;
  color: var(--gold-500);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.channel:hover .channel-arrow { opacity: 1; transform: translateX(0); }

.copy-btn {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--on-dark-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(227, 194, 134, 0.16);
  transition: color 0.26s var(--ease), background-color 0.26s var(--ease);
}
.copy-btn:hover { color: var(--gold-200); background: rgba(227, 194, 134, 0.16); }
.copy-btn .ico { width: 15px; height: 15px; }

/* ---------- 14. Footer ---------- */
.site-footer {
  padding-block: clamp(34px, 4vw, 52px);
  background: var(--ink-950);
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.05fr);
  gap: clamp(24px, 3vw, 46px);
  align-items: start;
}
.footer-brand { display: flex; align-items: flex-start; gap: 14px; }
.footer-brand .brand-mark { width: 54px; height: 25px; color: var(--gold-500); }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--cream-100);
}
.footer-role {
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--on-dark-faint);
  max-width: 30ch;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  font-size: 0.8rem;
  color: var(--on-dark-muted);
}
.footer-nav a { white-space: nowrap; transition: color 0.24s var(--ease); }
.footer-nav a:hover { color: var(--gold-300); }

.footer-meta {
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--on-dark-faint);
}
.footer-disclaimer { margin-top: 6px; opacity: 0.75; }

/* ---------- 15. Mobile bar & toast ---------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 14, 25, 0.9);
  backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid var(--line-dark);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 120;
  transform: translate(-50%, 20px);
  padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 0.86rem;
  font-weight: 600;
  color: #2a1d08;
  background: linear-gradient(135deg, var(--gold-200), var(--gold-400));
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 16. Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 17. Responsive ---------- */

/* Tablet & small laptop: navigation collapses into a burger, actions pinned right */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .header-phone span { display: none; }
  .header-phone .ico { width: 1.25em; height: 1.25em; }

  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 22px;
    background: rgba(8, 14, 25, 0.97);
    border-bottom: 1px solid var(--line-dark);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 0.8);
  }
  .nav:not(.is-open) { display: none; }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 15px 0;
    font-size: 0.98rem;
    border-bottom: 1px solid rgba(227, 194, 134, 0.1);
  }
  .nav a::after { display: none; }

  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 640px; }
  .hero-visual { order: 2; margin-top: 8px; }
  .portrait { width: min(100%, 380px); }
  .portrait-frame img { height: 440px; }

  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2,
  .safety-grid,
  .about-grid,
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-2--sticky .sticky-col { position: static; }
  .about-photo { max-width: 460px; margin-inline: auto; }
  .contact-channels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 76px; }
  .header-inner { min-height: 68px; }
  .brand-mark { width: 44px; height: 21px; }
  .brand-name { font-size: 1.1rem; }
  .brand-role { font-size: 0.56rem; letter-spacing: 0.12em; }
  .header-actions .btn span { display: none; }
  .header-actions .btn { padding: 11px 14px; }

  .mobile-bar { display: grid; }
  body { padding-bottom: 76px; }

  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-strip li:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-strip li:nth-child(1),
  .trust-strip li:nth-child(2) { border-bottom: 1px solid var(--line-dark); }

  .about-list { grid-template-columns: minmax(0, 1fr); }

  .hero-skyline { opacity: 0.06; height: 96px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .toast { bottom: 92px; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .calc-compare { grid-template-columns: minmax(0, 1fr); }
  .contact-channels { grid-template-columns: minmax(0, 1fr); }
  .hero-cta { gap: 10px; }
  .hero-cta .btn-lg:not(.btn-icon) { flex: 1 1 auto; }
  .hero-cta .btn-icon { flex: 0 0 auto; width: 52px; height: 52px; min-width: 52px; }
  .price-badge { left: 0; bottom: 54px; padding: 13px 18px 14px; }
  .price-badge-value { font-size: 1.6rem; }
  .area-chip { right: 0; top: 16px; }
  .portrait::before { inset: -10px -10px auto; }
  .contact-cta .btn-xl { width: 100%; }
  .price-cta { flex-direction: column; align-items: stretch; }
  .price-cta .btn { width: 100%; }
  .section-head { margin-bottom: 32px; }
  .about-photo img { height: 380px; }
}

@media (max-width: 560px) {
  .brand-role { display: none; }
  .header-phone { display: none; }
  .header-inner { min-height: 64px; }
  .brand-name { font-size: 1.14rem; }
  .eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.13em;
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .hero { padding-top: 22px; }
  .hero-title { font-size: clamp(1.85rem, 8.4vw, 2.5rem); }
  .hero-lead { font-size: 0.95rem; }
  .hero-facts li { font-size: 0.9rem; }
  .hero-cta .btn-lg:not(.btn-icon) { padding: 15px 20px; font-size: 0.92rem; }
  .btn-xl { padding: 17px 24px; font-size: 0.98rem; }
  .portrait-caption { display: none; }
  .price-badge { bottom: 34px; }
  .eyebrow-more { display: none; }
  .section-title { font-size: clamp(1.72rem, 7.4vw, 2.2rem); }
  .contact-title { font-size: clamp(1.62rem, 7vw, 2rem); }
  .trust-strip strong { font-size: 1.2rem; }
  .trust-strip span { font-size: 0.72rem; }
  .trust-strip li { padding: 18px 14px; }
  .calc { padding: 20px 16px; border-radius: var(--r-lg); }
  .calc-scale span:nth-child(2),
  .calc-scale span:nth-child(3) { display: none; }
  .compare-card { padding: 20px 18px; }
  .compare-example { font-size: 0.74rem; }
  .channel { padding: 13px 14px; }
  .channel-item .channel { padding-right: 52px; }
  .about-quote { padding: 20px 20px; }
  .contact-panel { padding: 26px 18px; }
  .faq-q { font-size: 0.97rem; }
}

/* ---------- 18. Motion & a11y prefs ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header,
  .mobile-bar,
  .toast,
  .hero-bg { display: none !important; }
  body { background: #fff; color: #111; }
  .section { padding-block: 18px; }
}

/* ---------- 19. Optional imagery ----------
   Положите файлы в assets/img/ под указанными именами и раскомментируйте нужные блоки —
   разметку менять не нужно. Подробности и промпты — в README.md.
*/

/*
.hero {
  background-image:
    linear-gradient(180deg, rgba(6, 10, 18, 0.86) 0%, rgba(6, 10, 18, 0.94) 100%),
    url("../img/hero-bg.jpg");
  background-size: cover;
  background-position: center 30%;
}

.section--dark {
  background-image:
    linear-gradient(180deg, rgba(10, 18, 32, 0.94) 0%, rgba(6, 10, 18, 0.97) 100%),
    url("../img/process-bg.jpg");
  background-size: cover;
  background-position: center;
}

.section--price {
  background-image:
    linear-gradient(180deg, rgba(10, 18, 32, 0.93) 0%, rgba(6, 10, 18, 0.96) 100%),
    url("../img/price-bg.jpg");
  background-size: cover;
  background-position: center;
}

.contact-panel {
  background-image:
    linear-gradient(165deg, rgba(24, 39, 66, 0.9) 0%, rgba(6, 10, 18, 0.96) 100%),
    url("../img/contact-bg.jpg");
  background-size: cover;
  background-position: center;
}
*/
