/* ============================================================
   KRISLEX — «Графіт & Латунь» (Graphite & Brass)
   Premium dark theme · Manrope grotesque
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:        #0C0D10;
  --bg-2:      #101216;
  --surface:   #14161B;
  --surface-2: #1A1D24;
  --surface-3: #20242C;

  --brass:      #C6A86B;
  --brass-soft: #E6D2A4;
  --brass-deep: #93753C;
  --brass-grad: linear-gradient(135deg, #F0DDB0 0%, #C6A86B 52%, #93753C 100%);

  --ivory:  #F3EFE7;
  --muted:  #9D998D;
  --faint:  #6E6B62;

  --line:      rgba(198, 168, 107, 0.20);
  --line-soft: rgba(243, 239, 231, 0.08);

  --sans:  "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1240px;
  --gut: 28px;
  --r:   18px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 40px 90px -40px rgba(0,0,0,.85);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ivory);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
::selection { background: rgba(198,168,107,.28); color: var(--ivory); }

/* film grain */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .035; mix-blend-mode: overlay;
  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.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gut); }
.section { padding: clamp(60px, 7.5vw, 104px) 0; position: relative; }

/* ---------- Type helpers ---------- */
.h-display {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ivory);
  overflow-wrap: break-word;
}
.h-display em { font-style: normal; font-weight: 800; color: var(--brass-soft); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .65; }
.eyebrow--light { color: var(--brass-soft); }

.snum {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .82rem;
  color: var(--brass);
  letter-spacing: .22em;
  margin-bottom: 14px;
  opacity: .8;
}
.lede { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.75; }

.section__head { max-width: 760px; margin-bottom: clamp(46px, 6vw, 80px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { margin-bottom: 18px; }
.section__head .eyebrow { margin-bottom: 18px; }
.section__sub { color: var(--muted); font-size: 1.08rem; margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 34px;
  border-radius: 3px;
  font-weight: 700; font-size: 0.78rem; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid transparent;
  background-origin: border-box; background-clip: border-box;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s, color .4s, border-color .4s, filter .4s;
  white-space: nowrap;
}
.btn--sm { padding: 13px 24px; font-size: .7rem; }
.btn--block { width: 100%; }
.btn--primary { background-image: linear-gradient(135deg, #EAD3A0 0%, #D2B575 46%, #C0A05F 100%); color: #1A1408; }
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 18px 40px -16px rgba(198,168,107,.6); }
.btn--line { border-color: var(--line); color: var(--ivory); }
.btn--line:hover { border-color: var(--brass); color: var(--brass-soft); background: rgba(198,168,107,.06); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .45s var(--ease), border-color .45s, backdrop-filter .45s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(12,13,16,.72);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line-soft);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 90px; transition: height .45s var(--ease); }
.header.scrolled .header__inner { height: 72px; }
.header__logo img { height: 44px; width: auto; transition: height .45s var(--ease); }
.header.scrolled .header__logo img { height: 38px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__link { font-size: .93rem; font-weight: 500; color: var(--ivory); position: relative; opacity: .82; transition: opacity .3s; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 1px; background: var(--brass); transition: width .4s var(--ease); }
.nav__link:hover { opacity: 1; }
.nav__link:hover::after { width: 100%; }
.nav__phone { display: none; }

.header__actions { display: flex; align-items: center; gap: 18px; }

/* burger */
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.6px; background: var(--ivory); transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ============ HERO (editorial, atmospheric) ============ */
.ahero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 130px 0 96px; overflow: hidden; background: var(--bg);
}
.ahero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("../img/hero-bg.jpg");
  background-size: cover; background-position: 62% center;
}
.ahero__bg::before { /* darken — heavier on the left under the headline */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1000px 700px at 82% 22%, rgba(198,168,107,.16), transparent 56%),
    linear-gradient(90deg, rgba(8,9,12,.95) 0%, rgba(8,9,12,.85) 40%, rgba(8,9,12,.55) 72%, rgba(8,9,12,.72) 100%),
    linear-gradient(180deg, rgba(8,9,12,.5) 0%, rgba(8,9,12,.12) 38%, var(--bg) 99%);
}
.ahero::after { /* soft vignette */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(130% 120% at 50% 42%, transparent 56%, rgba(0,0,0,.5));
}

.ahero__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.55fr 0.78fr;
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.ahero__eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--brass); margin-bottom: 30px; }
.ahero__eyebrow .ln { width: 44px; height: 1px; background: currentColor; opacity: .7; }
.ahero__title {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(2.7rem, 6.4vw, 6rem);
  line-height: .98; letter-spacing: -0.025em; color: var(--ivory);
  margin-bottom: 30px; text-shadow: 0 2px 40px rgba(0,0,0,.55);
}
.ahero__title .g { background: var(--brass-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ahero__sub { font-size: 1.08rem; color: var(--muted); max-width: 520px; line-height: 1.7; margin-bottom: 42px; }
.ahero__cta { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.ahero__cta .btn span { transition: transform .35s var(--ease); }
.ahero__cta .btn:hover span { transform: translateX(4px); }
.ahero__link { font-size: .92rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 4px; transition: color .3s, border-color .3s; }
.ahero__link:hover { color: var(--brass-soft); border-color: var(--brass); }

.ahero__panel { border-left: 1px solid var(--line); padding-left: clamp(28px, 2.6vw, 48px); }
.ahero__row { padding: 22px 0; border-top: 1px solid var(--line-soft); }
.ahero__row:first-child { border-top: none; padding-top: 4px; }
.ahero__row .k { display: block; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: 9px; }
.ahero__row .v { font-size: 1.32rem; color: var(--ivory); font-weight: 500; }

.ahero__scroll {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 36px; z-index: 2;
  width: 100%; max-width: var(--container); padding-inline: var(--gut);
  display: flex; align-items: center; gap: 12px;
  font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.ahero__scroll .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass-grad); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: .4; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, var(--bg-2), var(--surface) 50%, var(--bg-2));
  padding-block: 22px;
  --marquee-gap: 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex; flex-wrap: nowrap; width: max-content;
  gap: var(--marquee-gap);
  will-change: transform;
  animation: marquee-scroll var(--marquee-duration, 40s) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  flex: 0 0 auto;
  position: relative;
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(1.1rem, 2.1vw, 1.7rem); letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ivory); white-space: nowrap;
}
.marquee__item::after {
  content: ""; position: absolute; right: calc(var(--marquee-gap) / -2); top: 50%;
  width: 8px; height: 8px; border-radius: 50%; transform: translate(50%, -50%);
  background: var(--brass-grad);
}
@keyframes marquee-scroll { to { transform: translateX(calc(-100% / var(--marquee-copies, 2))); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- Business / Комплексне обслуговування ---------- */
.biz__head { max-width: 860px; margin-bottom: clamp(40px, 5vw, 66px); }
.biz__title { margin-top: 12px; }
.biz__lead { margin-top: 24px; max-width: 660px; color: var(--muted); font-size: 1.08rem; line-height: 1.72; }

.biz__staff {
  display: grid; grid-template-columns: 1.35fr 0.95fr; gap: clamp(32px, 5vw, 80px);
  align-items: center; padding: clamp(30px, 3.4vw, 46px) 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: clamp(44px, 5vw, 70px);
}
.staff { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(28px, 3vw, 52px); }
.staff__item { display: flex; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.staff__n { font-family: var(--sans); font-weight: 800; font-size: .74rem; letter-spacing: .1em; color: var(--brass); }
.staff__role { font-family: var(--sans); font-weight: 600; font-size: 1.04rem; color: var(--ivory); }
.staff__unify {
  font-family: var(--sans); font-weight: 800; line-height: 1.18;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem); letter-spacing: -0.02em; color: var(--ivory);
}
.staff__unify span {
  display: block; margin-bottom: 4px;
  background: var(--brass-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Бонуси (панель «Особистий адвокат») ===== */
.bonus { display: flex; gap: 11px; align-items: flex-start; }
.bonus__tag {
  flex: 0 0 auto; font-size: .54rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #1A1408; background: var(--brass-grad); padding: 3px 8px; border-radius: 3px; margin-top: 1px;
}
.bonus p { color: var(--muted); line-height: 1.4; font-size: .88rem; }

/* ===== Статистика ===== */
.stats { padding-block: clamp(40px, 5vw, 66px); background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.stats__grid {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 4vw, 54px) clamp(20px, 3vw, 40px);
}
.stat { text-align: center; }
.stat__num {
  display: block; font-family: var(--sans); font-weight: 800; line-height: 1;
  font-size: clamp(2.4rem, 4.4vw, 3.6rem); letter-spacing: -0.02em;
  background: var(--brass-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { display: block; margin-top: 12px; color: var(--muted); font-size: clamp(.86rem, 1vw, .98rem); line-height: 1.4; }

/* ===== ТЦК / Мобілізація ===== */
.tck__panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
  border: 1px solid var(--brass); border-radius: 14px;
  padding: clamp(34px, 4.5vw, 68px);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(198,168,107,.13), transparent 55%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--bg-2) 100%);
  box-shadow: 0 50px 110px -62px rgba(0,0,0,.9);
}
.tck__panel::before {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--brass-grad);
}
.tck__pulse {
  position: absolute; top: clamp(26px, 3vw, 40px); right: clamp(26px, 3vw, 40px);
  width: 10px; height: 10px; border-radius: 50%; background: var(--brass);
  animation: tck-pulse 2s var(--ease) infinite;
}
@keyframes tck-pulse {
  0% { box-shadow: 0 0 0 0 rgba(198,168,107,.5); }
  70% { box-shadow: 0 0 0 15px rgba(198,168,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(198,168,107,0); }
}
.tck__main .snum { margin-bottom: 10px; }
.tck__title { margin-top: 12px; font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.12; }
.tck__lead { margin-top: 22px; max-width: 560px; color: var(--muted); font-size: 1.08rem; line-height: 1.72; }
.tck__cta { margin-top: clamp(28px, 3vw, 38px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.tck__phone { font-size: .92rem; color: var(--brass-soft); letter-spacing: .02em; }
.tck__link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border: 1px solid var(--line); border-radius: 4px;
  font-family: var(--sans); font-weight: 700; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brass-soft);
  transition: border-color .25s ease, background-color .25s ease, gap .25s ease;
}
.tck__link:hover { border-color: var(--brass); background-color: rgba(198,168,107,.07); gap: 13px; }
.tck__list { list-style: none; display: grid; gap: clamp(20px, 2.4vw, 28px); }
.tck__list li { padding-left: 22px; border-left: 2px solid var(--brass); }
.tck__list h3 { font-family: var(--sans); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; color: var(--ivory); margin-bottom: 7px; }
.tck__list p { color: var(--muted); font-size: .96rem; line-height: 1.55; }
@media (prefers-reduced-motion: reduce) { .tck__pulse { animation: none; } }

/* ===== Перемикач послуг (Бізнес / Фізособи) ===== */
.segmented {
  display: inline-flex; gap: 4px; padding: 5px;
  margin-bottom: clamp(34px, 4vw, 52px);
  border: 1px solid var(--line); border-radius: 5px; background: var(--surface);
}
.seg {
  border: 0; background: transparent; cursor: pointer;
  padding: 13px 30px; border-radius: 3px;
  font-family: var(--sans); font-weight: 700; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
  transition: color .35s var(--ease), background .35s var(--ease);
}
.seg:hover { color: var(--ivory); }
.seg.is-active { color: #1A1408; background: var(--brass-grad); }
.segpane[hidden] { display: none; }
.segpane.is-active { animation: panel-in .45s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ===== Послуги: сітка карток-посилань ===== */
.srvgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: clamp(16px, 1.6vw, 22px); }
.srvcard {
  position: relative; display: flex; flex-direction: column;
  min-height: 210px; padding: clamp(28px, 2.8vw, 40px);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  transition: border-color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}
.srvcard::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--brass-grad); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.srvcard:hover { transform: translateY(-5px); border-color: var(--brass); box-shadow: 0 28px 64px -36px rgba(0,0,0,.85); }
.srvcard:hover::before { transform: scaleX(1); }
/* large outlined index — decorative watermark */
.srvcard__no {
  position: absolute; top: clamp(22px, 2.4vw, 32px); right: clamp(22px, 2.4vw, 32px);
  font-family: var(--sans); font-weight: 800; font-size: clamp(2rem, 2.8vw, 2.7rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(198,168,107,.28);
  pointer-events: none; transition: -webkit-text-stroke-color .4s var(--ease);
}
.srvcard:hover .srvcard__no { -webkit-text-stroke-color: rgba(198,168,107,.55); }
.srvcard__title { font-family: var(--sans); font-weight: 800; font-size: clamp(1.2rem, 1.6vw, 1.5rem); letter-spacing: -0.015em; color: var(--ivory); line-height: 1.2; padding-right: 44px; }
.srvcard__sub { color: var(--muted); font-size: .98rem; line-height: 1.55; margin-top: 12px; }
.srvcard__list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.srvcard__list li { position: relative; padding-left: 18px; color: var(--muted); font-size: .95rem; line-height: 1.4; }
.srvcard__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); }
/* subtle arrow indicator (whole card is a link) */
.srvcard__more { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 9px; font-family: var(--sans); font-weight: 600; font-size: .9rem; color: var(--brass-soft); transition: gap .35s var(--ease); }
.srvcard__more span { color: var(--brass); }
.srvcard:hover .srvcard__more { gap: 14px; }
.srvcard--accent { border-color: var(--brass); background: radial-gradient(130% 130% at 100% 0%, rgba(198,168,107,.12), transparent 56%), linear-gradient(180deg, var(--surface-2) 0%, var(--bg-2) 100%); }
.srvcard--accent::before { transform: scaleX(1); height: 3px; }

/* CTA-банер абонементу + прайс-кнопка */
.srvcta {
  display: flex; align-items: center; justify-content: space-between; gap: clamp(18px, 3vw, 32px);
  margin-top: clamp(22px, 3vw, 34px); padding: clamp(20px, 2.4vw, 28px) clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--brass); border-radius: 12px; text-decoration: none;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(198,168,107,.10), transparent 60%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--bg-2) 100%);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.srvcta:hover { border-color: var(--brass-soft); box-shadow: 0 24px 55px -34px rgba(198,168,107,.32); }
.srvcta__txt { color: var(--muted); line-height: 1.55; font-size: 1rem; }
.srvcta__txt strong { color: var(--ivory); font-weight: 700; }
.srvcta__go {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: #1A1408; background: var(--brass-grad); padding: 14px 24px; border-radius: 4px;
  transition: filter .3s var(--ease);
}
.srvcta:hover .srvcta__go { filter: brightness(1.06); }
.onetime__foot { margin-top: clamp(26px, 3vw, 36px); display: flex; align-items: center; gap: 20px 28px; flex-wrap: wrap; }
.onetime__foot .pricing__note { margin: 0; text-align: left; }

/* ===== Команда: нескінченна стрічка (full-bleed) ===== */
.teammarquee {
  position: relative; overflow: hidden;
  /* full-screen width, edge to edge */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}
.teammarquee__track {
  display: flex; gap: clamp(18px, 1.8vw, 24px); width: max-content; will-change: transform;
  animation: team-scroll var(--team-duration, 70s) linear infinite;
}
.teammarquee:hover .teammarquee__track { animation-play-state: paused; }
.teammarquee__track .tcard { flex: 0 0 auto; width: min(290px, 78vw); }
.teammarquee__track .tcard--lead { grid-column: auto; display: flex; flex-direction: column; grid-template-columns: none; }
.teammarquee__track .tcard--lead .tcard__photo { aspect-ratio: 4/5; height: auto; }
.teammarquee__track .tcard--lead .tcard__info { padding: 22px 22px 26px; }
@keyframes team-scroll { to { transform: translateX(calc(-100% / var(--team-copies, 2))); } }
@media (prefers-reduced-motion: reduce) { .teammarquee__track { animation: none; } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about__intro { display: flex; flex-direction: column; align-items: flex-start; }
.about__title { margin-top: 10px; }
.about__intro .lede { margin: clamp(22px, 3vw, 30px) 0 clamp(30px, 4vw, 42px); }
.about__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.principles { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.principles li { position: relative; display: flex; gap: clamp(16px, 1.6vw, 22px); align-items: flex-start; padding: clamp(22px, 2.3vw, 30px) clamp(24px, 2.5vw, 32px); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%); transition: border-color .4s var(--ease), transform .4s var(--ease); }
.principles li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brass-grad); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.principles li:hover { border-color: var(--brass); transform: translateX(5px); }
.principles li:hover::before { transform: scaleY(1); }
.principle__n { flex: 0 0 auto; padding-top: 3px; font-family: var(--sans); font-weight: 800; font-size: .82rem; letter-spacing: .12em; color: var(--brass); }
.principles h3 { font-family: var(--sans); font-size: 1.24rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 7px; color: var(--ivory); }
.principles p { color: var(--muted); font-size: .98rem; line-height: 1.6; }

/* ---------- Team ---------- */
.tcard {
  border: 0; border-radius: var(--r); overflow: hidden;
  background: var(--surface);
}
.tcard--lead { grid-column: span 2; display: grid; grid-template-columns: 0.85fr 1.15fr; }
.tcard__photo { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--surface-2); }
.tcard--lead .tcard__photo { aspect-ratio: auto; height: 100%; }
.tcard__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: grayscale(.55) contrast(1.02) brightness(.92); transition: filter .6s var(--ease), transform .7s var(--ease); }
.tcard:hover .tcard__photo img { filter: grayscale(0) contrast(1.03); transform: scale(1.04); }
.tcard__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(12,13,16,.55)); }
.tcard__info { padding: 22px 22px 26px; display: flex; flex-direction: column; justify-content: center; }
.tcard--lead .tcard__info { padding: 30px; }
.tcard__badge { align-self: flex-start; font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #20180A; background: var(--brass-grad); border-radius: 100px; padding: 5px 13px; margin-bottom: 14px; }
.tcard__name { font-family: var(--sans); font-weight: 800; font-size: clamp(1.35rem, 1.9vw, 1.85rem); line-height: 1.1; }
.tcard__role { color: var(--brass); font-size: .82rem; font-weight: 600; margin-top: 6px; line-height: 1.35; }
.tcard__spec { color: var(--muted); font-size: .86rem; margin-top: 10px; line-height: 1.45; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r);
  padding: 42px 34px;
  transition: transform .5s var(--ease), border-color .5s;
}
.plan:hover { transform: translateY(-6px); border-color: var(--line); }
.plan--featured { border-color: var(--brass); background: linear-gradient(180deg, rgba(198,168,107,.09), var(--surface) 42%); box-shadow: 0 34px 80px -38px rgba(198,168,107,.45); }
.plan__flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brass-grad); color: #20180A; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; }
.plan__name { font-family: var(--sans); font-weight: 800; font-size: 1.8rem; }
.plan__price { margin: 14px 0 28px; color: var(--muted); display: flex; align-items: baseline; gap: 8px; }
.plan__price span { font-family: var(--sans); font-weight: 800; font-size: clamp(2.2rem, 3vw, 2.8rem); color: var(--ivory); white-space: nowrap; }
.plan__price small { font-size: .9rem; }
.plan__list { display: grid; gap: 14px; margin-bottom: 34px; flex: 1; }
.plan__list li { position: relative; padding-left: 28px; font-size: .95rem; color: var(--muted); }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 5px; border-left: 1.6px solid var(--brass); border-bottom: 1.6px solid var(--brass); transform: rotate(-45deg); }
.pricing__note { text-align: center; color: var(--muted); margin-top: 24px; font-size: 1rem; }
.pricing__note a { color: var(--brass-soft); font-weight: 600; }
.pricing__note a:hover { text-decoration: underline; }

/* разові послуги */
.onetime { margin-top: clamp(40px, 5vw, 64px); }
.onetime__head { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(20px, 2.4vw, 30px); }
.onetime__tag { font-family: var(--sans); font-weight: 700; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); white-space: nowrap; }
.onetime__line { flex: 1; height: 1px; background: var(--line); }
.onetime__grid { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(28px, 4vw, 64px); }
.otrow {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line-soft);
}
.otrow__name { color: var(--ivory); font-size: 1.02rem; }
.otrow__price { flex: 0 0 auto; font-family: var(--sans); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; background: var(--brass-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: stretch; }
.contact__col { display: flex; flex-direction: column; gap: 22px; }
.contact__map { flex: 1 1 auto; min-height: 220px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; line-height: 0; }
.contact__map iframe {
  width: 100%; height: 100%; min-height: 220px; display: block; border: 0;
  filter: brightness(0.82) contrast(1.05) saturate(0.9);
}
.contact__title { margin-top: 8px; }
.contact__info .lede { margin-top: 22px; }
.cinfo { display: grid; gap: 18px; margin: 32px 0; }
.cinfo li { display: grid; gap: 4px; }
.cinfo__l { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); font-weight: 600; }
.cinfo a, .cinfo li > span:not(.cinfo__l) { font-size: 1.1rem; color: var(--ivory); }
.cinfo a:hover { color: var(--brass-soft); }
.cinfo__mails { display: grid; gap: 14px; }
.cinfo__mails a { display: grid; gap: 2px; }
.cinfo__mails a em { font-style: normal; font-size: .76rem; letter-spacing: .04em; color: var(--muted); }
.cinfo__mails a:hover em { color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 12px; }
.socials a {
  width: 46px; height: 46px; border-radius: 8px;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted); background-color: transparent;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease;
}
.socials a svg { display: block; }
.socials a:hover { color: #1A1408; border-color: var(--brass); background-color: var(--brass); transition-duration: 0s; }

.cform { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(28px, 4vw, 46px); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 9px; letter-spacing: .02em; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  padding: 15px 16px; color: var(--ivory); font-size: .96rem; transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(198,168,107,.14); }
.field select { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23C6A86B' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field input.invalid, .field select.invalid { border-color: #b85540; box-shadow: 0 0 0 3px rgba(184,85,64,.16); }
.cform__note { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 14px; }
.cform__note a { color: var(--brass-soft); }
.cform__note a:hover { text-decoration: underline; }
.cform__ok { color: var(--brass-soft); text-align: center; margin-top: 16px; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-soft); padding-top: 70px; background: var(--bg-2); position: relative; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer__brand img { height: 46px; margin-bottom: 16px; }
.footer__brand p { color: var(--muted); max-width: 280px; }
.footer__nav { display: flex; flex-direction: column; gap: 12px; }
.footer__nav a { color: var(--muted); transition: color .3s; }
.footer__nav a:hover { color: var(--brass-soft); }
.footer__nav a:not(.footer__nav-extra) + .footer__nav-extra { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer__contact a, .footer__contact span { color: var(--muted); }
.footer__contact a:hover { color: var(--brass-soft); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line-soft); padding-block: 24px; font-size: .82rem; color: var(--muted); }
.footer__legal { display: flex; gap: 24px; }
.footer__legal a:hover { color: var(--brass-soft); }

/* ---------- FAB ---------- */
.fab { position: fixed; right: 26px; bottom: 26px; z-index: 90; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--brass-grad); color: #20180A; box-shadow: 0 16px 38px -12px rgba(198,168,107,.6); transition: transform .4s var(--ease), box-shadow .4s var(--ease); animation: fab-glow 2.8s ease-in-out infinite; }
.fab:hover { transform: scale(1.08) translateY(-2px); box-shadow: 0 18px 46px -10px rgba(198,168,107,.85), 0 0 30px 8px rgba(198,168,107,.4); }
@keyframes fab-glow {
  0%, 100% { box-shadow: 0 16px 38px -12px rgba(198,168,107,.55), 0 0 0 0 rgba(198,168,107,.0); }
  50% { box-shadow: 0 16px 44px -10px rgba(198,168,107,.75), 0 0 22px 5px rgba(198,168,107,.32); }
}
@media (prefers-reduced-motion: reduce) { .fab { animation: none; } }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(118px, 14vw, 168px) 0 clamp(60px, 8vw, 100px); }
.legal__wrap { max-width: 820px; }
.legal__back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; letter-spacing: .04em; margin-bottom: 28px; transition: color .3s; }
.legal__back:hover { color: var(--brass-soft); }
.legal h1 { font-family: var(--sans); font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.02em; line-height: 1.08; color: var(--ivory); overflow-wrap: break-word; }
.legal__meta { color: var(--faint); font-size: .85rem; margin-top: 14px; padding-bottom: 26px; border-bottom: 1px solid var(--line-soft); }
.legal__lead { color: var(--muted); font-size: 1.06rem; line-height: 1.75; margin-top: 28px; }
.legal section { margin-top: 36px; }
.legal h2 { font-family: var(--sans); font-weight: 700; font-size: clamp(1.18rem, 2vw, 1.45rem); letter-spacing: -0.01em; color: var(--ivory); margin-bottom: 14px; }
.legal h2 .legal__num { color: var(--brass); margin-right: 10px; }
.legal p { color: var(--muted); line-height: 1.75; margin-bottom: 12px; }
.legal ul { display: grid; gap: 10px; margin: 6px 0 14px; }
.legal ul li { position: relative; padding-left: 24px; color: var(--muted); line-height: 1.65; }
.legal ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brass-grad); }
.legal strong { color: var(--ivory); font-weight: 600; }
.legal a[href^="mailto"], .legal a[href^="tel"] { color: var(--brass-soft); }
.legal a[href^="mailto"]:hover, .legal a[href^="tel"]:hover { text-decoration: underline; }

/* ---------- Subpages (прайс / абонемент) ---------- */
.subpage { padding: clamp(118px, 14vw, 168px) 0 clamp(60px, 8vw, 100px); }
.subpage__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.subpage__head .h-display { margin-top: 12px; }
.subpage__head .section__sub { margin-top: 18px; }
.pricegroup { margin-top: 0; }
.pricegroup__title { display: flex; align-items: center; gap: 16px; margin: clamp(46px, 6vw, 76px) 0 clamp(20px, 2.4vw, 28px); font-family: var(--sans); font-weight: 700; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.pricegroup__title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.feats { display: grid; gap: 12px; max-width: 760px; margin: 8px 0 clamp(40px, 5vw, 64px); }
.feats li { position: relative; padding-left: 28px; color: var(--muted); line-height: 1.6; }
.feats li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--brass-grad); }
.feats--check li::before { width: 9px; height: 5px; border-radius: 0; background: transparent; border-left: 1.6px solid var(--brass); border-bottom: 1.6px solid var(--brass); transform: rotate(-45deg); top: .35em; }
.subpage__text { max-width: 760px; color: var(--muted); line-height: 1.78; margin: 0 0 16px; font-size: 1.04rem; }
.subpage__text strong { color: var(--ivory); font-weight: 600; }
.subpage__cta { margin-top: clamp(34px, 4.5vw, 56px); }

.btn--block { display: flex; width: 100%; justify-content: center; }

/* ===== Підсторінка: повна ширина контенту ===== */
.subpage .subpage__head,
.subpage .subpage__text,
.subpage .feats { max-width: none; }

/* плашка прямих контактів під CTA */
.subpage__contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(24px, 3vw, 40px); margin-top: 18px; padding: clamp(18px, 2vw, 24px) clamp(20px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.subpage__contacts__label { color: var(--muted); font-size: .85rem; letter-spacing: .04em; }
.subpage__contacts a { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); font-weight: 600; font-size: .96rem; transition: color .3s var(--ease); }
.subpage__contacts a svg { width: 18px; height: 18px; color: var(--brass); flex: 0 0 auto; }
.subpage__contacts a:hover { color: var(--brass-soft); }

/* about page: team photo banner */
.aboutphoto { position: relative; margin: clamp(28px, 4vw, 46px) 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.aboutphoto img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 28%; filter: grayscale(.25) contrast(1.02) brightness(.95); }
.aboutphoto::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 50%, rgba(12,13,16,.5)); }
@media (max-width: 900px) { .aboutphoto img { aspect-ratio: 16 / 9; } }
@media (max-width: 640px) { .aboutphoto img { aspect-ratio: 4 / 3; } }

/* about page: lead + principle cards */
.subpage__lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); line-height: 1.7; color: var(--ivory); }
.about-intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.about-intro .subpage__text { max-width: none; margin-bottom: 0; }
.about-intro__rest { display: grid; gap: 16px; }
@media (max-width: 760px) { .about-intro { grid-template-columns: 1fr; gap: 18px; } }
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); margin: 6px 0 8px; }
.pcard { padding: clamp(22px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: var(--r-sm); background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%); }
.pcard__n { font-family: var(--sans); font-weight: 800; font-size: .8rem; letter-spacing: .12em; color: var(--brass); }
.pcard h3 { font-family: var(--sans); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.01em; color: var(--ivory); margin: 12px 0 8px; }
.pcard p { color: var(--muted); line-height: 1.6; font-size: .96rem; }
.feats--2col { grid-template-columns: repeat(2, 1fr); gap: 12px clamp(28px, 4vw, 56px); }
@media (max-width: 760px) { .pcards { grid-template-columns: 1fr; } }
.pcards--4 { grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
@media (max-width: 600px) { .feats--2col { grid-template-columns: 1fr; } }

/* about: статистика */
.aboutstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); margin: clamp(32px, 4vw, 50px) 0; padding: clamp(26px, 3vw, 38px) 0; border-block: 1px solid var(--line-soft); }
@media (max-width: 700px) { .aboutstats { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; } }

/* about: практики */
.practices { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2vw, 26px); }
.practice { padding: clamp(24px, 2.6vw, 34px); border: 1px solid var(--line); border-radius: var(--r-sm); background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%); }
.practice h3 { font-family: var(--sans); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ivory); margin-bottom: 16px; }
.practice .feats { margin: 0; max-width: none; }
.practice p { color: var(--muted); line-height: 1.65; }
.practice__price { margin-top: 12px; color: var(--brass-soft); font-weight: 600; font-size: .95rem; }
.practice:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 760px) { .practices { grid-template-columns: 1fr; } }

/* founder / керуючий партнер */
.founder {
  display: grid; grid-template-columns: 260px 1fr; gap: clamp(26px, 4vw, 52px); align-items: center;
  margin: 0; padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
}
.founder__photo { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-2); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; filter: grayscale(.35) contrast(1.02); }
.founder__badge { display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #20180A; background: var(--brass-grad); border-radius: 100px; padding: 6px 14px; }
.founder__name { font-family: var(--sans); font-weight: 800; font-size: clamp(1.55rem, 2.6vw, 2.15rem); letter-spacing: -0.02em; color: var(--ivory); margin: 14px 0 4px; }
.founder__role { color: var(--brass); font-size: .9rem; font-weight: 600; margin-bottom: 16px; }
.founder__text { color: var(--muted); line-height: 1.7; max-width: 580px; margin-bottom: 22px; }
@media (max-width: 700px) {
  .founder { grid-template-columns: 1fr; gap: 22px; padding: 0; border: 0; background: none; border-radius: 0; }
  .founder__photo { width: 100%; max-width: none; aspect-ratio: 4 / 5; }
}

/* video block (16:9) */
.videoblock { max-width: 860px; margin: clamp(28px, 4vw, 44px) 0; }
.videoframe { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.videoframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* video CTA card (поки немає конкретних URL — веде на канал) */
.videocard {
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 26px);
  padding: clamp(20px, 2.4vw, 28px) clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line); border-radius: var(--r);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg-2) 100%);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.videocard:hover { border-color: var(--brass); box-shadow: 0 24px 55px -36px rgba(0,0,0,.8); }
.videocard__play { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--brass-grad); color: #1A1408; font-size: .9rem; }
.videocard__txt { flex: 1; color: var(--ivory); line-height: 1.5; font-size: 1rem; }
.videocard__go { flex: 0 0 auto; font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
@media (max-width: 560px) { .videocard { flex-wrap: wrap; } .videocard__go { width: 100%; } }

/* ===== Вертикальне відео (reels 9:16) — showcase ===== */
.vidblock {
  position: relative;
  display: grid;
  grid-template-columns: clamp(236px, 27vw, 306px) 1fr;
  gap: clamp(30px, 4.5vw, 64px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 68px);
  padding: clamp(26px, 3.6vw, 54px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(135% 130% at 0% 0%, rgba(198,168,107,.10) 0%, transparent 52%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  overflow: hidden;
  isolation: isolate;
}
.vidblock::before {                       /* м'яке латунне сяйво за плеєром */
  content: ""; position: absolute; z-index: -1;
  left: clamp(40px, 11vw, 150px); top: 50%; transform: translateY(-50%);
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198,168,107,.20), transparent 70%);
  filter: blur(36px); pointer-events: none;
}
.vidblock__player {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 34px 80px -34px rgba(0,0,0,.92);
}
.vidblock__player::after {                /* градієнтна латунна окантовка */
  content: ""; position: absolute; inset: 0; z-index: 2;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(155deg, rgba(240,221,176,.75) 0%, rgba(198,168,107,.28) 45%, rgba(147,117,60,.14) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.vidblock__player video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.vidblock__caption { position: relative; }
.vidblock__caption::before {              /* pill-лейбл */
  content: "\25B6  \0412\0456\0434\0435\043E";
  display: inline-flex; align-items: center;
  margin-bottom: 16px; padding: 7px 15px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass);
}
.vidblock__caption h3 {
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.12;
  color: var(--ivory);
}
.vidblock__caption h3 em { font-style: normal; color: var(--brass-soft); }
.vidblock__caption p {
  color: var(--muted); margin-top: 16px; font-size: 1.04rem; line-height: 1.7;
  max-width: 46ch;
}
@media (max-width: 720px) {
  .vidblock { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .vidblock__player { max-width: 286px; margin-inline: auto; }
  .vidblock__caption p { margin-inline: auto; }
}

/* --- кастомний плеєр (chrome будується через JS) --- */
.vidblock__player.is-enhanced { cursor: pointer; }
.vidblock__player video { background: #000; }

.vplay {
  position: absolute; inset: 0; z-index: 3; margin: 0; padding: 0;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: radial-gradient(circle at center, rgba(12,13,16,.12), rgba(12,13,16,.5));
  transition: opacity .4s var(--ease);
}
.vplay::before {
  content: ""; position: absolute; z-index: -1;
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--brass-grad); box-shadow: 0 14px 34px -8px rgba(0,0,0,.65);
  transition: transform .4s var(--ease);
}
.vplay:hover::before { transform: scale(1.08); }
.vplay svg { width: 28px; height: 28px; margin-left: 4px; fill: #1A1408; }
.is-playing .vplay { opacity: 0; pointer-events: none; }

.vctrl {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; align-items: center; gap: 11px;
  padding: 30px 13px 12px;
  background: linear-gradient(180deg, transparent, rgba(8,9,11,.9));
  opacity: 0; transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.vidblock__player:hover .vctrl,
.vidblock__player:not(.is-playing) .vctrl { opacity: 1; transform: none; }
@media (hover: none) { .vidblock__player .vctrl { opacity: 1; transform: none; } }

.vctrl__btn {
  width: 28px; height: 28px; flex: 0 0 auto;
  display: grid; place-items: center; color: var(--ivory);
  transition: color .25s var(--ease);
}
.vctrl__btn:hover { color: var(--brass-soft); }
.vctrl__btn svg { width: 17px; height: 17px; fill: currentColor; }

.vctrl__track {
  flex: 1; height: 5px; border-radius: 999px; position: relative;
  background: rgba(243,239,231,.22); cursor: pointer; touch-action: none;
}
.vctrl__fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  border-radius: inherit; background: var(--brass-grad);
}
.vctrl__fill::after {
  content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%);
  width: 11px; height: 11px; border-radius: 50%; background: var(--brass-soft);
  box-shadow: 0 0 0 3px rgba(198,168,107,.22);
  opacity: 0; transition: opacity .25s var(--ease);
}
.vidblock__player:hover .vctrl__fill::after { opacity: 1; }
.vctrl__time {
  flex: 0 0 auto; font-size: .72rem; font-weight: 600; color: var(--ivory);
  font-variant-numeric: tabular-nums; letter-spacing: .02em; white-space: nowrap;
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.r-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.r-stagger.in > * { opacity: 1; transform: none; }
.r-stagger.in > *:nth-child(2) { transition-delay: .07s; }
.r-stagger.in > *:nth-child(3) { transition-delay: .14s; }
.r-stagger.in > *:nth-child(4) { transition-delay: .21s; }
.r-stagger.in > *:nth-child(5) { transition-delay: .28s; }
.r-stagger.in > *:nth-child(6) { transition-delay: .35s; }
.r-stagger.in > *:nth-child(7) { transition-delay: .42s; }
.r-stagger.in > *:nth-child(8) { transition-delay: .49s; }

/* ---------- Mobile nav ---------- */
@media (max-width: 980px) {
  /* backdrop-filter on the header creates a containing block that breaks
     the full-screen fixed nav — drop it on mobile, use a solid background */
  .header.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(12,13,16,.94); }
  .nav {
    position: fixed; inset: 0; width: 100%;
    flex-direction: column; justify-content: center; align-items: center; gap: 4px;
    padding: 96px 24px 48px;
    background: var(--bg); overflow-y: auto;
    transform: translateX(100%); transition: transform .4s var(--ease); z-index: 99;
  }
  .nav.open { transform: translateX(0); }
  .nav__link { font-family: var(--sans); font-weight: 700; font-size: 1.55rem; letter-spacing: -0.01em; opacity: 1; padding: 12px 0; }
  .nav__link::after { display: none; }
  .nav__phone { display: block; margin-top: 24px; color: var(--brass-soft); font-size: 1.2rem; font-weight: 600; }
  .header__logo { position: relative; z-index: 101; }
  .burger { display: block; z-index: 101; }
}

/* ---------- Responsive ---------- */
/* ---- Tablet: stack two-column layouts ---- */
@media (max-width: 900px) {
  .about__grid, .contact__grid { grid-template-columns: 1fr; }
  .biz__staff { grid-template-columns: 1fr; gap: 28px; }
  .tck__panel { grid-template-columns: 1fr; gap: 34px; }

  /* hero → stack */
  .ahero { min-height: auto; padding: 124px 0 72px; }
  .ahero__inner { grid-template-columns: 1fr; gap: 36px; }
  .ahero__panel { border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 6px; }
  .ahero__scroll { display: none; }
}

/* ---- Large phone / small tablet ---- */
@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
  .footer__brand { grid-column: 1 / -1; }
  .ahero__title { font-size: clamp(2.4rem, 9vw, 3.4rem); }
  .ahero__sub { max-width: none; }
}

/* ---- Phones ---- */
@media (max-width: 560px) {
  :root { --gut: 18px; }
  .staff { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .onetime__grid { grid-template-columns: 1fr; }
  .marquee { --marquee-gap: 40px; padding-block: 16px; }
  .srvcta { flex-direction: column; align-items: flex-start; gap: 18px; }
  .srvcta__go { width: 100%; justify-content: center; }
  .tck__cta .tck__link { width: 100%; justify-content: center; text-align: center; }
  .onetime__foot .btn { width: 100%; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }
  .footer__bottom { padding-bottom: 84px; }
  .header__actions .btn--sm { display: none; }

  /* buttons: allow wrapping, full-width CTAs */
  .btn { padding: 15px 22px; white-space: normal; text-align: center; }
  .ahero__cta { flex-direction: column; align-items: stretch; gap: 18px; }
  .ahero__cta .btn { width: 100%; }
  .ahero__link { align-self: flex-start; }
  .tck__cta { align-items: stretch; }
  .tck__cta .btn { width: 100%; }
  .about__cta { width: 100%; }

  /* services toggle → full width */
  .segmented { display: flex; width: 100%; }
  .seg { flex: 1; padding: 13px 10px; text-align: center; font-size: .72rem; letter-spacing: .08em; }

  /* tighter cards/panels */
  .plan { padding: 34px 24px; }
  .tck__panel { padding: 30px 22px; }
  .cform { padding: 26px 20px; }

  .fab { width: 52px; height: 52px; right: 18px; bottom: 18px; }
}

/* ---- Small phones ---- */
@media (max-width: 400px) {
  .ahero__title { font-size: 2.2rem; }
  .h-display { font-size: 1.9rem; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat__num { font-size: 2.1rem; }
  .segmented { flex-wrap: wrap; }
  .seg { flex: 1 1 100%; }
}
