/* SK Банкрот — white, warm yellow and gold; calm, large, legible */
:root {
  --bg: #ffffff;
  --soft: #f7f4ee;      /* warm light field */
  --cream: #f4ecd8;     /* the one yellow field */
  --ink: #1d1d1f;
  --muted: #45454a;
  --line: #e6e1d6;
  --gold: #b07f27;
  --gold-hi: #8a5f17;
  --gold-btn: #8a5f17;
  --gold-btn-hi: #714d11;
  --gold-soft: #ead8ad;

  --font: "Inter", -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --t-small: 0.9375rem;
  --t-body: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  --t-lead: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  --t-h3: clamp(1.375rem, 1.15rem + 0.7vw, 1.875rem);
  --t-h2: clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem);
  --t-h1: clamp(2.75rem, 1.2rem + 6vw, 7rem);

  --w: 1200px;
  --m: clamp(20px, 4vw, 48px);
  --gap: clamp(96px, 11vw, 176px);
  --r: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--t-body)/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.06; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold-soft); }
.wrap { width: min(100% - 2 * var(--m), var(--w)); margin-inline: auto; }
section { scroll-margin-top: 72px; }

/* the company's own logo, cut from the office wall, painted in gold */
/* The repair overlays only the broken strokes in each crop of the original logo. */
.brand__mark, .intro__logo, .person__seal {
  --logo-repair: url("../img/logo-k-repair.svg") 55.6769% 54.5310% / 17.9211% 13.2414% no-repeat;
}
.hero__logo, .foot__logo {
  --logo-repair: url("../img/logo-k-repair.svg") 55.4537% 35.6549% / 8.3963% 9.0737% no-repeat;
}
.brand__mark, .hero__logo, .foot__logo {
  display: block; background: var(--gold);
  -webkit-mask: var(--src) center / contain no-repeat, var(--logo-repair); mask: var(--src) center / contain no-repeat, var(--logo-repair);
}
/* Correct the tilt in the photographed logo without changing animated transforms. */
.brand__mark, .hero__logo, .foot__logo, .intro__logo, .person__seal::after { rotate: -2.4deg; }
.brand__mark { --src: url("../img/logo-mark.png"); width: 24px; height: 31px; }
.hero__logo, .foot__logo { --src: url("../img/logo.png"); aspect-ratio: 1191 / 1058; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border: 0; border-radius: 999px; background: var(--gold-btn); color: #fff; font: 500 1.0625rem/1 var(--font);
  text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--gold-btn-hi); }
.btn:active { transform: scale(.98); }
.btn--small { min-height: 38px; padding: 0 18px; font-size: var(--t-small); }
.btn--wide { width: 100%; min-height: 56px; }
.link { color: var(--gold-hi); text-decoration: none; font-weight: 500; font-size: 1.0625rem; }
.link::after { content: " ›"; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: #fff; }
.bar__in { width: min(100% - 2 * var(--m), var(--w)); margin-inline: auto; height: 64px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; margin-right: auto; }
.bar nav { display: flex; gap: 28px; }
.bar nav a { text-decoration: none; font-size: var(--t-small); color: var(--muted); transition: color .2s; }
.bar nav a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 6vw, 88px); text-align: center; }
.hero__logo { width: clamp(150px, 14vw, 210px); margin: 0 auto 40px; }
.hero h1 { font-size: var(--t-h1); font-weight: 700; letter-spacing: -0.035em; line-height: 1; }
.hero__lead { margin: 28px auto 0; max-width: 34ch; font-size: var(--t-lead); color: var(--muted); line-height: 1.4; }
.hero__actions { margin-top: 36px; display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero__media { margin-top: clamp(48px, 6vw, 88px); }
.hero__media img { width: 100%; aspect-ratio: 2000 / 844; object-fit: cover; border-radius: var(--r); background: var(--soft); }
.hero__media figcaption { margin-top: 14px; font-size: var(--t-small); color: var(--muted); }

/* ---------- facts ---------- */
.facts { padding: clamp(64px, 7vw, 112px) 0 0; }
.facts__row { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.facts dt { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem); font-weight: 600; letter-spacing: -0.03em; color: var(--gold-hi); line-height: 1.1; }
.facts dd { margin: 8px 0 0; color: var(--muted); }

/* ---------- services ---------- */
.uslugi { padding-top: var(--gap); }
.uslugi h2, .etapy h2, .voprosy h2 { font-size: var(--t-h2); max-width: 14ch; }
.section-lead { margin-top: 20px; font-size: var(--t-lead); color: var(--muted); max-width: 40ch; line-height: 1.4; }
.tiles { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--soft); border-radius: var(--r); padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; }
.tile h3 { font-size: var(--t-h3); }
.tile p { margin-top: 12px; color: var(--muted); max-width: 36ch; }
.tile--wide { grid-column: span 2; }
.tile--gold { background: var(--cream); }
.tile--photo { grid-column: span 3; position: relative; padding: 0; min-height: 0; overflow: hidden; }
.tile--photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 28%; }
.tile__over { position: absolute; left: 0; bottom: 0; padding: clamp(28px, 3vw, 44px); max-width: 560px; background: #fff; border-top-right-radius: var(--r); }

/* ---------- the check ---------- */
.proverka { margin-top: var(--gap); padding: var(--gap) 0; background: var(--soft); }
.proverka__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.proverka h2 { font-size: var(--t-h2); max-width: 12ch; }
.proverka__box { background: #fff; border-radius: var(--r); padding: clamp(28px, 3.4vw, 48px); }
.proverka__label { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: var(--t-lead); }
.proverka__sum { color: var(--ink); font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.range { --p: 16%; -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin-top: 18px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--gold) var(--p), var(--line) var(--p)); } /* taste-skill-ignore: two-colour fill of a slider track */
.range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--gold); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); }
.range::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); }
.proverka__scale { display: flex; justify-content: space-between; font-size: var(--t-small); color: var(--muted); }
.proverka__answer { margin: 28px 0 32px; min-height: 9em; }
.proverka__verdict { font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 10px; }
.proverka__answer p:last-child { color: var(--muted); }

/* ---------- steps ---------- */
.etapy { padding-top: var(--gap); }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.steps li { padding-top: 24px; border-top: 2px solid var(--gold); }
.steps h3 { font-size: var(--t-h3); }
.steps p { margin-top: 12px; color: var(--muted); }

/* ---------- about ---------- */
.about { padding-top: var(--gap); }
.about__in { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__photo { margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.about h2 { font-size: var(--t-h2); }
.about__role { margin-top: 12px; font-size: var(--t-lead); color: var(--muted); }
.about blockquote { margin: 36px 0; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; color: var(--gold-hi); }
.about__text > p:last-child { max-width: 52ch; }

/* ---------- city ---------- */
.city { padding-top: var(--gap); }
.city__media { margin: 0; }
.city__media img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--r); }
.city__text { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: start; }
.city h2 { font-size: var(--t-h2); grid-row: span 2; }
.city__text > p { font-size: var(--t-lead); color: var(--muted); line-height: 1.4; }
.hours { margin: 0; display: grid; gap: 8px; max-width: 360px; }
.hours div { display: flex; justify-content: space-between; padding: 12px 18px; background: var(--soft); border-radius: 12px; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ---------- questions ---------- */
.voprosy { padding-top: var(--gap); }
.voprosy__in { display: grid; grid-template-columns: 4fr 8fr; gap: 48px; }
.faq details { background: var(--soft); border-radius: 20px; margin-bottom: 12px; padding: 0 28px; }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative; font-size: var(--t-h3); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 2rem; color: var(--gold); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--gold-hi); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 62ch; }

/* ---------- request ---------- */
.zayavka { margin-top: var(--gap); padding: var(--gap) 0; background: var(--cream); }
.zayavka__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.zayavka h2 { font-size: var(--t-h2); max-width: 11ch; }
.zayavka__phone { margin-top: 28px; font-size: var(--t-lead); }
.zayavka__phone a { font-weight: 600; text-decoration: none; }
.form { background: #fff; border-radius: var(--r); padding: clamp(28px, 3.4vw, 48px); display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: var(--t-small); color: var(--muted); }
.form input { font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--soft); border: 1px solid transparent; border-radius: 14px; min-height: 52px; padding: 0 16px; transition: border-color .2s, background-color .2s; }
.form input:focus { outline: none; border-color: var(--gold); background: #fff; }
.form [aria-invalid="true"] { border-color: #c0392b; }
.form__done { font-size: var(--t-lead); font-weight: 600; }

/* ---------- footer ---------- */
.foot { padding: 72px 0 40px; }
.foot__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: center; }
.foot__logo { width: 140px; }
.foot__top p { color: var(--muted); text-align: right; }
.foot__top a { text-decoration: none; color: var(--ink); }
.foot__legal { margin-top: 48px; font-size: var(--t-small); color: var(--muted); }

/* ---------- gentle entrance, only when the script runs and motion is welcome ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- phone ---------- */
@media (max-width: 860px) {
  .bar nav { display: none; }
  .bar__in { gap: 16px; }
  .hero__logo { width: 130px; margin-bottom: 28px; }
  .hero h1 { font-size: 2.3rem; }
  .hero__media img { aspect-ratio: 4 / 3; object-position: 18% 100%; }
  .facts__row { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .tiles { grid-template-columns: 1fr; }
  .tile--wide, .tile--photo { grid-column: auto; }
  .tile { min-height: 0; }
  .tile--photo img { aspect-ratio: 4 / 3; }
  .tile__over { position: static; max-width: none; background: var(--soft); border-radius: 0; }
  .proverka__in, .about__in, .zayavka__in, .voprosy__in { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .city__text { grid-template-columns: 1fr; }
  .city h2 { grid-row: auto; }
  .city__media img { aspect-ratio: 4 / 3; }
  .about__photo { max-width: 420px; }
  .foot__top p { text-align: left; }
  .hero__actions { flex-direction: column; gap: 18px; }
  .hero__actions .btn { width: 100%; }
}

/* ================= premium layer ================= */

/* ---------- opening ---------- */
.intro { position: fixed; inset: 0; z-index: 100; background: #fff; display: grid; place-items: center; transition: transform 1s cubic-bezier(.76, 0, .24, 1); }
.intro.is-gone { transform: translateY(-100%); }
.intro.is-off { display: none; }
.intro__in { display: grid; justify-items: center; text-align: center; }
.intro__logo {
  --src: url("../img/logo-mark.png"); position: relative; display: block; width: clamp(96px, 10vw, 140px); aspect-ratio: 558 / 725; overflow: hidden;
  background: var(--gold); -webkit-mask: var(--src) center / contain no-repeat, var(--logo-repair); mask: var(--src) center / contain no-repeat, var(--logo-repair);
  clip-path: inset(100% 0 0 0); animation: logoRise 1s .15s cubic-bezier(.2, .7, .2, 1) forwards;
}
.intro__logo::after, .hero__logo::after {
  content: ""; position: absolute; inset: -20% -60%; transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent 35%, rgba(255, 246, 214, .95) 50%, transparent 65%); /* taste-skill-ignore: the light sweeping across the gold logo */
}
.intro__logo::after { animation: sheen 1s .8s ease-in-out forwards; }
.intro__word { margin-top: 28px; font: 700 clamp(2rem, 1.2rem + 3.6vw, 4.25rem)/1 "PT Serif", Georgia, serif; letter-spacing: .08em; color: var(--ink); white-space: nowrap; }
.intro__word span { display: inline-block; opacity: 0; transform: translateY(.5em) rotateX(-60deg); transform-origin: 50% 100%; animation: letterIn .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.intro__sub { margin-top: 18px; font-size: var(--t-small); letter-spacing: .02em; color: var(--muted); opacity: 0; animation: fadeIn .7s 1.1s forwards; }
.intro__bar { position: absolute; left: 50%; bottom: 12vh; width: 160px; height: 2px; transform: translateX(-50%); background: var(--line); overflow: hidden; }
.intro__bar span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; animation: bar 1.6s .1s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes logoRise { to { clip-path: inset(0 0 0 0); } }
@keyframes sheen { to { transform: translateX(120%) skewX(-18deg); } }
@keyframes letterIn { to { opacity: 1; transform: none; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes bar { to { transform: scaleX(1); } }

/* ---------- hero entrance after the curtain ---------- */
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero__logo { position: relative; overflow: hidden; }
.js .hero__logo, .js .hero__lead, .js .hero__actions { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .hero h1 .line > span { transform: translateY(105%); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.js .hero__frame { clip-path: inset(10% 18% 10% 18% round 40px); transition: clip-path 1.4s cubic-bezier(.65, 0, .25, 1); }
.js .hero__frame img { transform: scale(1.18); transition: transform 1.8s cubic-bezier(.2, .7, .2, 1); }
.is-ready .hero__logo, .is-ready .hero__lead, .is-ready .hero__actions { opacity: 1; transform: none; }
.is-ready .hero h1 .line > span { transform: none; }
.is-ready .hero h1 .line:nth-child(2) > span { transition-delay: .12s; }
.is-ready .hero__lead { transition-delay: .35s; }
.is-ready .hero__actions { transition-delay: .5s; }
.is-ready .hero__frame { clip-path: inset(0 0 0 0 round var(--r)); transition-delay: .25s; }
.is-ready .hero__frame img { transform: scale(1); transition-delay: .25s; }
.is-ready .hero__logo::after { animation: sheen 1.4s 1.2s ease-in-out forwards; }

/* the building leans back in 3D and straightens as it comes up the screen */
.hero__media { perspective: 1400px; }
.hero__frame { border-radius: var(--r); overflow: hidden; transform-origin: 50% 0; will-change: transform; transform: rotateX(var(--tilt, 0deg)) scale(var(--zoom, 1)); }
.hero__frame img { border-radius: 0; }

/* ---------- header grows compact on scroll ---------- */
.bar { transition: box-shadow .3s var(--ease); }
.bar__in { transition: height .3s var(--ease); }
.bar.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.bar.is-scrolled .bar__in { height: 56px; }
.bar nav a { position: relative; padding: 6px 0; }
.bar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.bar nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- buttons: a gold light passes on hover ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-110%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 228, 160, .45), transparent); /* taste-skill-ignore: hover sheen */
  transition: transform .7s var(--ease);
}
.btn:hover::before { transform: translateX(110%) skewX(-20deg); }
.btn:hover { transform: translateY(-1px); }
.link::after { display: inline-block; transition: transform .3s var(--ease); }
.link:hover::after { transform: translateX(4px); }

/* ---------- tiles and portrait tilt toward the pointer ---------- */
[data-tilt] { transform-style: preserve-3d; will-change: transform; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.tile { position: relative; }
.tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1.5px var(--gold); opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.tile:hover::after { opacity: 1; }
.tile:hover, .about__photo:hover { box-shadow: 0 30px 60px -30px rgba(122, 86, 20, .35); }
.about__photo { border-radius: var(--r); }
.tile h3, .tile p { transform: translateZ(30px); }
.tile--photo img { transition: transform 1.2s var(--ease); }
.tile--photo:hover img { transform: scale(1.04); }

/* ---------- numbers ---------- */
.count { font-variant-numeric: tabular-nums; }
.facts dt { transition: color .3s; }
.facts__row > div:hover dt { color: var(--gold); }

/* ---------- questions open smoothly ---------- */
.faq details { transition: background-color .3s var(--ease); }
.faq details:hover, .faq details[open] { background: var(--cream); }
.faq .faq__body { overflow: hidden; transition: height .45s var(--ease); }

/* ---------- pictures rise with a gentle scale ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .city__media.reveal img, .js .about__photo.reveal img { transform: scale(1.08); transition: transform 1.6s var(--ease); }
  .js .city__media.reveal.is-in img, .js .about__photo.reveal.is-in img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .js .hero__logo, .js .hero__lead, .js .hero__actions, .js .hero h1 .line > span, .js .hero__frame, .js .hero__frame img { opacity: 1; transform: none; clip-path: none; }
}

/* ================= type and the building, refined ================= */
:root { --head: #2a2118; --ink: #2d2924; --muted: #4f4941; --serif: "PT Serif", Georgia, "Times New Roman", serif; }
h1, h2 { font-family: var(--serif); color: var(--head); letter-spacing: -0.012em; line-height: 1.08; }
h1 { font-weight: 700; }
h2 { font-weight: 400; }
h3 { color: var(--head); font-weight: 600; letter-spacing: -0.015em; }
.hero h1 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.04; }
.hero h1 .line:nth-child(2) { color: var(--gold-hi); }
.about blockquote { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: 0; }
.facts dt { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
.proverka__sum { font-family: var(--serif); font-weight: 700; letter-spacing: -0.01em; }
.faq summary { font-weight: 500; }

/* the building: driven by the scroll, no load animation */
.js .hero__frame, .is-ready .hero__frame { transition: none; clip-path: inset(10% 16% round 68px); }
.js .hero__frame img, .is-ready .hero__frame img { transition: none; transform: scale(1.16); transform-origin: 50% 60%; }
.hero__frame { position: relative; transform: none; will-change: clip-path, transform; }
.hero__media { margin-top: clamp(64px, 8vw, 120px); }
.hero__cap {
  position: absolute; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); margin: 0; text-align: right;
  display: grid; gap: 2px; padding: 14px 20px; border-radius: 16px; background: rgba(255, 255, 255, .94);
  font-size: var(--t-small); color: var(--muted); opacity: 0;
}
.hero__cap span { font: 700 1.125rem/1.2 var(--serif); color: var(--head); }

/* headings rise word by word */
.js h2.split { opacity: 1; transform: none; }
h2.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
h2.split .w > span { display: inline-block; transform: translateY(108%); transition: transform 1s cubic-bezier(.2, .8, .2, 1); }
h2.split.is-in .w > span { transform: none; }
.js .section-lead { transition-delay: .25s; }

@media (prefers-reduced-motion: reduce) {
  .js .hero__frame, .is-ready .hero__frame { clip-path: none; }
  .js .hero__frame img, .is-ready .hero__frame img { transform: none; }
  .hero__cap { opacity: 1; }
}

/* the headline in the regular cut: calmer and closer to the logo lettering */
h1, .hero h1 { font-weight: 400; }
.hero h1 { font-size: clamp(2.6rem, 1.2rem + 5.4vw, 6.25rem); letter-spacing: -0.015em; }
@media (max-width: 860px) { .hero h1 { font-size: 2.4rem; } }

/* ================= team switcher, clearer first screen, phone dock ================= */
.team { padding-top: var(--gap); }
.team h2 { font-size: var(--t-h2); }
.team__tabs { margin-top: 36px; display: inline-flex; gap: 6px; padding: 6px; background: var(--soft); border-radius: 999px; }
.team__tabs button {
  font: 500 1rem/1 var(--font); color: var(--muted); background: transparent; border: 0; border-radius: 999px;
  padding: 14px 22px; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease);
}
.team__tabs button:hover { color: var(--head); }
.team__tabs button[aria-selected="true"] { background: #fff; color: var(--head); box-shadow: 0 6px 18px -10px rgba(122, 86, 20, .45); }
.team__stage { margin-top: 40px; display: grid; }
.person { grid-area: 1 / 1; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.person[hidden] { display: grid; visibility: hidden; opacity: 0; pointer-events: none; }
.person { transition: opacity .6s var(--ease), visibility 0s linear 0s; }
.person:not(.is-active) { opacity: 0; }
.person__photo { margin: 0; border-radius: var(--r); overflow: hidden; }
.person__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1s var(--ease); }
.person:not(.is-active) .person__photo img { transform: scale(1.06); }
.person:not(.is-active) .person__text { transform: translateY(16px); }
.person__text { transition: transform .7s var(--ease); }
.person h3 { font: 400 var(--t-h2)/1.08 var(--serif); color: var(--head); letter-spacing: -0.012em; }
.person__role { margin-top: 12px; font-size: var(--t-lead); color: var(--muted); line-height: 1.35; }
.person blockquote { margin: 28px 0; font: italic 400 clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem)/1.15 var(--serif); color: var(--gold-hi); }
.person__facts { margin: 0 0 24px; display: flex; gap: 40px; }
.person__facts dt { font: 700 clamp(1.6rem, 1.3rem + 1vw, 2.25rem)/1.1 var(--serif); color: var(--gold-hi); }
.person__facts dd { margin: 4px 0 0; color: var(--muted); font-size: var(--t-small); }
.person__text > p:last-child { max-width: 52ch; }

.hero__trust { list-style: none; margin: 32px 0 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; font-size: var(--t-small); color: var(--muted); }
.hero__trust li::before { content: "✓"; color: var(--gold); font-weight: 700; margin-right: 8px; }

.dock { display: none; }
@media (max-width: 860px) {
  .person { grid-template-columns: 1fr; gap: 24px; }
  .person__photo { max-width: 420px; }
  .team__tabs { display: flex; }
  .team__tabs button { flex: 1; padding: 14px 10px; font-size: .9375rem; }
  .dock {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: flex; gap: 8px; padding: 8px;
    background: #fff; border-radius: 999px; box-shadow: 0 10px 30px -12px rgba(42, 33, 24, .35);
    transform: translateY(140%); transition: transform .5s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock .btn { flex: 1; min-height: 48px; }
  .dock__call { display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 999px; background: var(--cream); color: var(--head); font-weight: 600; text-decoration: none; }
  body { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .person, .person__text, .person__photo img { transition: none; } }

/* ================= phone menu, premium switcher, framed portrait, timeline ================= */
.burger { display: none; }
.menu { position: fixed; inset: 0; z-index: 19; background: #fff; padding: 96px var(--m) 32px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0 at calc(100% - 40px) 32px); transition: clip-path .7s cubic-bezier(.76, 0, .24, 1); }
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open { clip-path: circle(150% at calc(100% - 40px) 32px); visibility: visible; }
.menu nav { display: grid; gap: 4px; }
.menu nav a { font: 400 2.1rem/1.25 var(--serif); color: var(--head); text-decoration: none; padding: 6px 0;
  opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .6s var(--ease), color .2s; }
.menu nav a:active, .menu nav a:hover { color: var(--gold-hi); }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(1) { transition-delay: .18s; } .menu.is-open nav a:nth-child(2) { transition-delay: .23s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .28s; } .menu.is-open nav a:nth-child(4) { transition-delay: .33s; }
.menu.is-open nav a:nth-child(5) { transition-delay: .38s; } .menu.is-open nav a:nth-child(6) { transition-delay: .43s; }
.menu__foot { display: grid; gap: 14px; opacity: 0; transition: opacity .5s .45s; }
.menu.is-open .menu__foot { opacity: 1; }
.menu__tel { font: 700 1.375rem/1.2 var(--serif); color: var(--head); text-decoration: none; text-align: center; }
.menu__foot p { text-align: center; color: var(--muted); font-size: var(--t-small); }

/* switcher: a white plate with a gold edge slides under the chosen name */
.team__tabs { position: relative; isolation: isolate; padding: 6px; gap: 0; background: var(--cream); }
.team__plate { position: absolute; z-index: -1; top: 6px; bottom: 6px; left: 6px; width: 0; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--gold-soft), 0 8px 20px -12px rgba(122, 86, 20, .6); transition: transform .55s cubic-bezier(.65, 0, .25, 1), width .55s cubic-bezier(.65, 0, .25, 1); }
.team__tabs button { display: inline-flex; align-items: center; gap: 12px; padding: 8px 24px 8px 8px; font: 400 1.125rem/1 var(--serif); }
.team__tabs button[aria-selected="true"] { background: transparent; box-shadow: none; color: var(--head); }
.team__tabs button img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; filter: grayscale(1); opacity: .7; transition: filter .4s, opacity .4s, box-shadow .4s; }
.team__tabs button[aria-selected="true"] img { filter: none; opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--gold); }

/* only the chosen person is in the layout; the change is a crossfade with a little travel */
.person[hidden] { display: none; }
.person { opacity: 1; transition: none; }
.person.is-entering { animation: personIn .8s var(--ease) both; }
.person.is-entering .person__frame img { animation: photoIn 1.1s var(--ease) both; }
.person.is-entering .person__text > * { animation: textIn .7s var(--ease) both; }
.person.is-entering .person__text > *:nth-child(2) { animation-delay: .06s; } .person.is-entering .person__text > *:nth-child(3) { animation-delay: .12s; }
.person.is-entering .person__text > *:nth-child(4) { animation-delay: .18s; } .person.is-entering .person__text > *:nth-child(5) { animation-delay: .24s; }
@keyframes personIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes photoIn { from { transform: scale(1.1); } to { transform: none; } }
@keyframes textIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.person:not(.is-active) .person__photo img, .person:not(.is-active) .person__text { transform: none; }

/* the portrait in the house frame: a cream mount, a fine gold line set off the photo, the shield seal */
.person__photo { position: relative; margin: 0; padding: 0 18px 18px 0; border-radius: 0; overflow: visible; }
.person__photo::before { content: ""; position: absolute; inset: 18px 0 0 18px; border-radius: calc(var(--r) + 6px); border: 1.5px solid var(--gold); }
.person__frame { position: relative; display: block; border-radius: var(--r); overflow: hidden; background: var(--cream); }
.person__frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.person__seal { --src: url("../img/logo-mark.png"); position: absolute; right: 0; bottom: 0; width: 64px; height: 64px; border-radius: 50%; background: #fff;
  box-shadow: 0 10px 24px -12px rgba(122, 86, 20, .55); display: grid; place-items: center; }
.person__seal::after { content: ""; width: 30px; height: 39px; background: var(--gold); -webkit-mask: var(--src) center / contain no-repeat, var(--logo-repair); mask: var(--src) center / contain no-repeat, var(--logo-repair); }

.person h3 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }
.person__role { margin-top: 10px; font-size: var(--t-body); }
.person__chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.person__chips li { padding: 10px 16px; border-radius: 999px; background: var(--cream); color: var(--muted); font-size: var(--t-small); }
.person__chips b { font: 700 1.125rem/1 var(--serif); color: var(--gold-hi); margin-right: 4px; }
.person blockquote { margin: 26px 0 14px; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem); }
.person__facts { display: none; }

/* steps as a timeline: the gold line draws itself as you scroll */
.steps { position: relative; }
.steps li { border-top: 0; padding-top: 0; position: relative; }
.steps li::before { content: ""; display: block; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); margin-bottom: 22px; transition: background-color .4s .3s; }
.steps li.is-in::before { background: var(--gold); }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--gold); transform-origin: left; transform: scaleX(var(--line-p, 0)); }

@media (max-width: 860px) {
  :root { --gap: 80px; }
  .bar nav { display: none; }
  .bar__cta { display: none; }
  .burger { display: inline-grid; place-content: center; gap: 6px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cream); cursor: pointer; position: relative; z-index: 21; }
  .burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--head); transition: transform .4s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .bar { z-index: 22; }
  .hero { padding-top: 36px; }
  .hero__logo { width: 110px; margin-bottom: 24px; }
  .hero__lead { font-size: 1.125rem; margin-top: 18px; }
  .hero__actions { margin-top: 26px; }
  .hero__media { margin-top: 48px; }
  .section-lead { font-size: 1.125rem; }
  .tiles { margin-top: 32px; gap: 12px; }
  .tile { padding: 24px; }
  .facts { padding-top: 48px; }
  .facts__row { row-gap: 24px; }
  .team__tabs { display: flex; margin-top: 24px; }
  .team__tabs button { flex: 1; justify-content: center; padding: 6px 12px 6px 6px; font-size: 1.0625rem; }
  .team__tabs button img { width: 34px; height: 34px; }
  .team__stage { margin-top: 28px; }
  .person { gap: 28px; }
  .person__photo { max-width: none; padding: 0 14px 14px 0; }
  .person__photo::before { inset: 14px 0 0 14px; }
  .person__seal { width: 56px; height: 56px; }
  .person h3 { font-size: 2.1rem; }
  .person blockquote { margin: 20px 0 10px; }
  .steps { margin-top: 32px; gap: 28px; padding-left: 34px; }
  .steps::before, .steps::after { left: 6px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; }
  .steps::after { transform-origin: top; transform: scaleY(var(--line-p, 0)); }
  .steps li::before { position: absolute; left: -34px; top: 4px; margin: 0; }
  .steps h3 { font-size: 1.375rem; }
  .steps p { margin-top: 8px; }
  .proverka, .zayavka { padding: 72px 0; }
  .proverka__in, .zayavka__in { gap: 28px; }
  .city__text { margin-top: 28px; }
  .voprosy__in { gap: 24px; }
  .faq summary { font-size: 1.25rem; padding: 20px 36px 20px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .menu { transition: none; } .menu nav a, .menu__foot { opacity: 1; transform: none; transition: none; }
  .person.is-entering, .person.is-entering * { animation: none !important; }
  .steps::after { transform: none; }
}

@media (max-width: 860px) { .dock .btn { white-space: nowrap; padding: 0 18px; font-size: 1rem; } }
