/* ============ 8эйт — white, photo-driven ============ */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f5f2;
  --bg-warm: #efece5;
  --ink: #15140f;
  --ink-mute: #6c6a60;
  --ink-dim: #b3b0a4;
  --line: rgba(21,20,15,0.10);
  --line-strong: rgba(21,20,15,0.22);
  --line-soft: rgba(21,20,15,0.05);

  --on-dark: #f5f3ee;
  --on-dark-mute: #9a978c;

  --dark: #16140f;

  --font-display: "Onest", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Onest", "Helvetica Neue", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01","cv01"; }
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }

/* ===== Layout ===== */
.inner {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}
@media (max-width: 720px) { .inner { padding-left: 20px; padding-right: 20px; } }

/* ===== Type ===== */
.headline {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-transform: uppercase;
  text-wrap: balance;
}
.h-section { font-size: clamp(34px, 4.5vw, 64px); }
.h-card { font-size: clamp(24px, 2.6vw, 36px); }
.serif {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 500;
  text-transform: none; letter-spacing: -0.005em;
}
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 500;
}
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ink-mute); text-transform: uppercase; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in oklab, #fff 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
/* .header-row defined later (single source of truth) */
.header-logo {
  display: flex; align-items: center;
  height: 52px;
}
.header-logo img { height: 100%; width: auto; display: block; }

/* Wordmark — same as subsites */
.wordmark {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  line-height: 1;
}
.wordmark .wm-inf {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 22px;
}
.wordmark .wm-inf svg {
  width: 100%; height: 100%; overflow: visible;
}
.wordmark .wm-inf svg path {
  stroke-dasharray: 220;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.4s cubic-bezier(.7,0,.2,1);
}
.wordmark:hover .wm-inf svg path {
  animation: infTrace 1.6s cubic-bezier(.7,0,.2,1);
}
@keyframes infTrace {
  0% { stroke-dashoffset: 220; }
  100% { stroke-dashoffset: 0; }
}
.wordmark .wm-text { letter-spacing: 0.16em; }

.wordmark-lg { font-size: 32px; }
.wordmark-lg .wm-inf { width: 56px; height: 28px; }

/* Footer wordmark white */
.footer .wordmark { color: var(--on-dark); }
.header-nav {
  display: flex; gap: 36px; align-items: center;
  justify-content: center;
}
.header-nav a {
  font-size: 14px; color: var(--ink); letter-spacing: 0; padding: 6px 0; position: relative;
  transition: color .2s;
}
.header-nav a:hover { color: var(--ink-mute); }
.header-right { display: flex; gap: 18px; align-items: center; }
.header-tel {
  font-family: var(--font-mono); font-size: 12px; color: var(--ink); letter-spacing: 0.02em;
  line-height: 1.3; text-align: right;
}
.header-tel small { display: block; color: var(--ink-mute); font-size: 11px; }
.btn-dark {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: var(--on-dark);
  font-size: 13px; font-weight: 500;
  transition: background .2s, transform .2s;
}
.btn-dark:hover { background: #2a2820; transform: translateY(-1px); }
@media (max-width: 980px) {
  .header-row { grid-template-columns: auto auto; gap: 16px; height: 72px; }
  .header-logo { height: 40px; }
  .header-nav, .header-tel { display: none; }
}

/* ============================== HERO SLIDER ============================== */
.hero {
  padding: 32px 0 0;
  position: relative;
}
.hero-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-soft);
  overflow: hidden;
}
@media (max-width: 720px) { .hero-frame { aspect-ratio: 4 / 5; } }

.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.slide.active { opacity: 1; pointer-events: auto; }
.slide-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: transform 8s ease-out;
}
.slide.active .slide-img { transform: scale(1.08); }

/* Slide overlay UI */
.slide-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 28px 32px;
  color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}
.slide-meta .left { display: flex; flex-direction: column; gap: 10px; pointer-events: auto; }
.slide-meta .right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: auto; }
.slide-section {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.slide-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: -0.02em; line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0,0,0,0.25);
}
.slide-title .serif { font-weight: 500; }
.slide-cta-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  margin-top: 8px;
  transition: background .2s, transform .2s;
}
.slide-cta-pill:hover { background: #fff; transform: translateY(-1px); }
.slide-counter {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.95);
}
.slide-caption {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.65);
  max-width: 280px; text-align: right;
}

/* Hero controls bar (below image) */
.hero-controls {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 24px;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 0;
  border-top: 0;
}
.hero-tabs { display: flex; gap: 4px; align-items: center; }
.hero-tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 14px 22px 14px 14px;
  border-radius: 0;
  border-left: 1px solid var(--line);
  position: relative;
  transition: background .25s;
}
.hero-tab:first-child { border-left: 0; padding-left: 0; }
.hero-tab .num { font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim); letter-spacing: 0.06em; }
.hero-tab .name {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-mute);
  text-transform: uppercase;
  transition: color .2s;
}
.hero-tab .domain { font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim); letter-spacing: 0; }
.hero-tab.active .name { color: var(--ink); }
.hero-tab.active .num { color: var(--ink); }
.hero-tab .bar {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s;
}
.hero-tab.active .bar { transform: scaleX(1); }
.hero-tab:first-child .bar { left: 0; }

.hero-progress {
  display: flex; gap: 4px; align-items: center; justify-content: center;
}
.hero-progress .dot {
  width: 24px; height: 2px; background: var(--line-strong);
  position: relative; overflow: hidden;
  border-radius: 99px;
}
.hero-progress .dot.active::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 100%; background: var(--ink);
  animation: dotFill var(--cycle, 5s) linear forwards;
  transform-origin: left; transform: scaleX(0);
}
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-progress .dot.done::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
}

.hero-arrows {
  display: flex; gap: 8px;
}
.hero-arrow {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.hero-arrow:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================== SEO LEAD ============================== */
.lead-band {
  padding: 110px 0 90px;
  border-bottom: 1px solid var(--line);
}
.lead-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 980px) { .lead-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 600px) { .lead-grid { grid-template-columns: 1fr; gap: 32px; } }
.lead-head h2 {
  font-family: var(--font-display);
  font-weight: 600; font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1; letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}
.lead-head h2 .serif { font-weight: 500; }
.lead-pillar h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.lead-pillar p { font-size: 14px; line-height: 1.55; color: var(--ink-mute); }

/* ============================== DIRECTIONS ============================== */
.section { padding: 140px 0; }
.section + .section { padding-top: 0; }

.section-head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  padding-bottom: 36px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; gap: 28px; } }
.section-head .lead { color: var(--ink-mute); font-size: 15px; line-height: 1.55; max-width: 460px; }

/* Direction row */
.dir {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 140px;
}
.dir:last-child { margin-bottom: 0; }
.dir.flip { grid-template-columns: 1fr 1.05fr; }
.dir.flip .dir-text { order: 2; }
.dir.flip .dir-photos { order: 1; }
@media (max-width: 980px) {
  .dir, .dir.flip { grid-template-columns: 1fr; gap: 36px; margin-bottom: 100px; }
  .dir.flip .dir-text { order: 1; }
  .dir.flip .dir-photos { order: 2; }
}

.dir-text { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.dir-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.06em; text-transform: uppercase;
}
.dir-eyebrow .roman {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 38px; line-height: 1; color: var(--ink-dim);
  letter-spacing: -0.02em;
  text-transform: none;
}
.dir-text h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 0.95; letter-spacing: -0.02em;
  text-transform: uppercase; text-wrap: balance;
}
.dir-text h3 .serif { text-transform: none; font-weight: 500; }
.dir-text p { font-size: 15.5px; line-height: 1.6; color: var(--ink); max-width: 500px; text-wrap: pretty; }
.dir-text p.dim { color: var(--ink-mute); font-size: 14px; }

.dir-specs {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dir-spec { display: flex; gap: 14px; align-items: baseline; }
.dir-spec .ri {
  font-family: var(--font-serif); font-style: italic; color: var(--ink-dim);
  font-size: 14px; min-width: 18px;
}
.dir-spec .t {
  font-size: 13.5px; line-height: 1.45; color: var(--ink);
}
.dir-spec .t b { font-weight: 600; }

.dir-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dir-cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px 14px 24px;
  border-radius: 999px;
  background: var(--ink); color: var(--on-dark);
  font-size: 14px; font-weight: 500;
  transition: background .2s, transform .2s;
}
.dir-cta:hover { background: #2a2820; transform: translateY(-1px); }
.dir-cta .arrow { transition: transform .2s; }
.dir-cta:hover .arrow { transform: translateX(3px); }
.dir-cta-link {
  display: inline-flex; align-items: baseline; gap: 6px;
  font-size: 13px; color: var(--ink-mute);
  font-family: var(--font-mono); letter-spacing: 0.02em;
}
.dir-cta-link b { color: var(--ink); font-weight: 500; }

/* Direction photo collage */
.dir-photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.dir-photo {
  background-size: cover; background-position: center;
  border-radius: 0;
}
.dir-photos.layout-A .dir-photo:nth-child(1) { grid-column: 1 / 3; aspect-ratio: 16 / 10; }
.dir-photos.layout-A .dir-photo:nth-child(2) { aspect-ratio: 3 / 4; }
.dir-photos.layout-A .dir-photo:nth-child(3) { aspect-ratio: 3 / 4; }

.dir-photos.layout-B .dir-photo:nth-child(1) { aspect-ratio: 3 / 4; grid-row: 1 / 3; }
.dir-photos.layout-B .dir-photo:nth-child(2) { aspect-ratio: 4 / 3; }
.dir-photos.layout-B .dir-photo:nth-child(3) { aspect-ratio: 4 / 3; }

.dir-photos.layout-C .dir-photo:nth-child(1) { grid-column: 1 / 3; aspect-ratio: 21 / 9; }
.dir-photos.layout-C .dir-photo:nth-child(2) { aspect-ratio: 1; }
.dir-photos.layout-C .dir-photo:nth-child(3) { aspect-ratio: 1; }

.dir-photo-caption {
  margin-top: 12px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.05em; text-transform: uppercase;
  display: flex; justify-content: space-between;
}

/* ============================== ABOUT ============================== */
.about {
  background: var(--bg-warm);
  padding: 120px 0;
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 980px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-body { display: flex; flex-direction: column; gap: 24px; max-width: 560px; }
.about-body p { font-size: 17.5px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.about-body p.dim { color: var(--ink-mute); font-size: 15px; line-height: 1.6; }

.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.about-pillar {
  background: var(--bg-warm);
  padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
}
.about-pillar .label { font-family: var(--font-mono); font-size: 10px; color: var(--ink-mute); letter-spacing: 0.1em; text-transform: uppercase; }
.about-pillar .v { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; text-transform: uppercase; line-height: 1; }
.about-pillar .v .serif { font-weight: 500; text-transform: none; color: var(--ink-mute); }
.about-pillar .h { font-size: 13px; color: var(--ink-mute); line-height: 1.45; }

/* ============================== PARTNERS ============================== */
.partners {
  padding: 140px 0;
  border-top: 1px solid var(--line);
}
.partners-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) { .partners-row { grid-template-columns: 1fr; gap: 36px; } }

.partners-text h2 { margin-bottom: 24px; }
.partners-text p { font-size: 16px; line-height: 1.55; color: var(--ink-mute); max-width: 460px; }
.partners-text ul { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.partners-text ul li {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 14.5px; line-height: 1.5;
}
.partners-text ul li::before {
  content: ""; flex-shrink: 0; width: 16px; height: 1px; background: var(--ink); transform: translateY(-4px);
}

.partners-form {
  background: var(--bg-soft);
  padding: 40px;
  border: 1px solid var(--line);
}
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.08em; text-transform: uppercase;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; background: transparent; border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0;
  font: inherit; color: var(--ink); font-size: 14.5px;
  transition: border-color .25s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 0; border-bottom-color: var(--ink); }
.form-row input::placeholder { color: var(--ink-dim); }
.form-submit {
  margin-top: 12px;
  width: 100%; padding: 16px 22px;
  background: var(--ink); color: var(--on-dark); border-radius: 999px;
  font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .2s;
}
.form-submit:hover { background: #2a2820; }
.form-hint { font-size: 11px; color: var(--ink-mute); margin-top: 14px; line-height: 1.5; }

/* ============================== CONTACT (dark) ============================== */
.contact {
  background: var(--dark); color: var(--on-dark);
  padding: 140px 0;
}
.contact .eyebrow { color: var(--on-dark-mute); }
.contact h2 { color: var(--on-dark); }
.contact h2 .serif { color: var(--on-dark-mute); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 100px;
  margin-top: 64px;
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }
.contact-intro p {
  font-size: 17px; line-height: 1.55; color: var(--on-dark-mute);
  max-width: 480px;
  text-wrap: pretty;
}
.contact-intro p b { color: var(--on-dark); font-weight: 500; }

.contact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.contact-cell { display: flex; flex-direction: column; gap: 8px; }
.contact-cell .label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em;
  color: var(--on-dark-mute); text-transform: uppercase;
}
.contact-cell .val { font-size: 15px; color: var(--on-dark); line-height: 1.5; }
.contact-cell a { color: var(--on-dark); transition: color .2s; }
.contact-cell a:hover { color: #fff; }

.contact-legal {
  margin-top: 60px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,0.12);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
@media (max-width: 720px) { .contact-legal { grid-template-columns: 1fr 1fr; } }
.contact-legal .cell { display: flex; flex-direction: column; gap: 6px; }
.contact-legal .label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--on-dark-mute); text-transform: uppercase; }
.contact-legal .val { font-size: 13.5px; color: var(--on-dark); }

/* ============================== FOOTER ============================== */
.footer {
  background: var(--dark); color: var(--on-dark);
  padding: 56px 0 36px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 1080px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; } .footer-grid .footer-col:nth-last-child(1) { grid-column: 2 / -1; } }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } .footer-grid .footer-col:nth-last-child(1) { grid-column: auto; } }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { height: 44px; width: auto; filter: brightness(1.1); }
.footer-brand p { font-size: 13px; color: var(--on-dark-mute); line-height: 1.55; max-width: 280px; }
.footer-col h6 {
  font-family: var(--font-mono); font-size: 10px; color: var(--on-dark-mute);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--on-dark); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 20px;
  font-size: 11px; color: var(--on-dark-mute);
  font-family: var(--font-mono); letter-spacing: 0.06em;
  flex-wrap: wrap;
}

/* ============== Edit-mode behavior ============== */
.hero[data-mode="text"] .hero-frame { display: none; }
.hero[data-mode="text"] .hero-controls { display: none; }
.hero[data-mode="text"] .hero-text-only {
  display: block;
  padding: 80px 0 120px;
}
.hero-text-only { display: none; }
.hero-text-only-content {
  display: flex; flex-direction: column; gap: 28px; max-width: 760px;
}
.hero-text-only-content h1 {
  font-family: var(--font-display);
  font-weight: 600; font-size: clamp(40px, 5.5vw, 84px);
  line-height: 0.95; letter-spacing: -0.025em;
  text-transform: uppercase; text-wrap: balance;
}
.hero-text-only-content h1 .serif { font-weight: 500; }

.hero[data-mode="video"] .slide.active .slide-img {
  animation: kenburns 12s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.06) translateX(-1.5%); }
  to { transform: scale(1.14) translateX(1.5%); }
}

/* ============================== MOTION DESIGN ============================== */
/* Page scroll progress (top sticky line) */
.page-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 99;
  background: transparent;
  pointer-events: none;
}
.page-progress .bar {
  height: 100%;
  background: var(--ink);
  width: 0%;
  transition: width 0.1s linear;
}

/* Header reveal on load */
.header {
  animation: hdrIn .8s cubic-bezier(.4,0,.2,1) both;
}
@keyframes hdrIn {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Hero meta reveals on slide change (re-keyed) */
.slide-meta .left > * {
  opacity: 0;
  transform: translateY(16px);
  animation: metaUp .8s cubic-bezier(.4,0,.2,1) forwards;
}
.slide-meta .left > *:nth-child(1) { animation-delay: .05s; }
.slide-meta .left > *:nth-child(2) { animation-delay: .22s; }
.slide-meta .right > * {
  opacity: 0; transform: translateY(12px);
  animation: metaUp .8s cubic-bezier(.4,0,.2,1) forwards;
}
.slide-meta .right > *:nth-child(1) { animation-delay: .12s; }
.slide-meta .right > *:nth-child(2) { animation-delay: .28s; }
@keyframes metaUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Subtle Ken-Burns on every active slide (photo mode) */
.hero[data-mode="photo"] .slide.active .slide-img,
.hero:not([data-mode]) .slide.active .slide-img {
  animation: kbSubtle 6s ease-out forwards;
}
@keyframes kbSubtle {
  from { transform: scale(1.04); }
  to { transform: scale(1.10); }
}

/* Slide CTA pill hover lift + arrow */
.slide-cta-pill svg { transition: transform .25s ease; }
.slide-cta-pill:hover svg { transform: translateX(4px); }

/* Hero arrow micro-spin */
.hero-arrow svg { transition: transform .25s ease; }
.hero-arrow:hover svg { transform: scale(1.1); }

/* Hero tabs: name underline already animated; add hover lift */
.hero-tab { transition: background .25s, transform .25s; }
.hero-tab:hover .name { color: var(--ink); }

/* ===== Reveal-on-scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .9s cubic-bezier(.4,0,.2,1),
    transform .9s cubic-bezier(.4,0,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-fade {
  opacity: 0;
  transition: opacity 1.1s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-fade.in { opacity: 1; }

.reveal-scale {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .9s ease, transform 1.6s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-scale.in { opacity: 1; transform: scale(1); }

/* ===== Direction photo hover ===== */
.dir-photo {
  position: relative;
  overflow: hidden;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
  cursor: pointer;
}
.dir-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(0,0,0,0.18));
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.dir-photo:hover::after { opacity: 1; }
.dir-photo:hover { transform: scale(0.992); }
.dir-photos {
  /* nested image scales bigger than parent for a "zoom out" effect via parent shrink */
}

/* Spec items stagger */
.dir-spec {
  opacity: 0; transform: translateX(-12px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.4,0,.2,1);
  transition-delay: var(--spec-delay, 0ms);
}
.dir.in .dir-spec { opacity: 1; transform: translateX(0); }

/* Direction roman shimmer on view */
.dir-eyebrow .roman {
  background: linear-gradient(90deg, var(--ink-dim) 0%, var(--ink) 50%, var(--ink-dim) 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 1.6s ease;
}
.dir.in .dir-eyebrow .roman { background-position: 0% 0; }

/* Direction title word stagger */
.dir-text h3 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.dir.in .dir-text h3 .word { opacity: 1; transform: translateY(0); }

/* Direction CTA pulse glow once visible */
.dir-cta {
  position: relative;
  overflow: hidden;
}
.dir-cta::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .9s ease;
  pointer-events: none;
}
.dir-cta:hover::before { transform: translateX(100%); }

/* Buttons (header CTA) shimmer */
.btn-dark { position: relative; overflow: hidden; }
.btn-dark::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .8s ease;
}
.btn-dark:hover::before { transform: translateX(100%); }

/* SEO Lead pillars: stagger */
.lead-pillar {
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.4,0,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.lead-band.in .lead-pillar { opacity: 1; transform: translateY(0); }

/* About pillars stagger */
.about-pillar {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.4,0,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.about-pillars.in .about-pillar { opacity: 1; transform: translateY(0); }
.about-pillar { transition-property: opacity, transform, background; }
.about-pillar:hover { background: #fff; }

/* Partners bullets stagger */
.partners-text ul li {
  opacity: 0; transform: translateX(-14px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.4,0,.2,1);
  transition-delay: var(--bullet-delay, 0ms);
}
.partners-text.in ul li { opacity: 1; transform: translateX(0); }

/* Contact cells stagger */
.contact-cell, .contact-legal .cell {
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.4,0,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.contact-list.in .contact-cell, .contact-legal.in .cell { opacity: 1; transform: translateY(0); }

/* Footer cols subtle */
.footer-col {
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.footer-grid.in .footer-col { opacity: 1; transform: translateY(0); }

/* Section heads: subtle line draw */
.section-head {
  position: relative;
}
.section-head::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -1px;
  height: 1px; background: var(--ink);
  transition: right 1.2s cubic-bezier(.5,0,.1,1);
  transition-delay: .3s;
}
.section-head.in::after { right: 0; }

/* Hero CTA on slide: pulse arrow */
@keyframes pulseArrow {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}
.slide-cta-pill svg { animation: pulseArrow 2.4s ease-in-out infinite; }
.slide-cta-pill:hover svg { animation: none; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-fade, .reveal-scale,
  .lead-pillar, .about-pillar, .partners-text ul li, .contact-cell, .footer-col,
  .dir-spec, .dir-text h3 .word {
    opacity: 1 !important; transform: none !important;
  }
}

/* ===================================================================
 * V2 ADDITIONS — motion, new sections, mobile nav, magnetic buttons
 * Appended below the original v1 styles so v1 selectors win where
 * they intentionally do (margins, dir-photos), and v2 wins where
 * we are adding net-new components.
 * =================================================================== */

/* ============================== HERO HEADLINE BLOCK ============================== */
.hero-headline {
  padding: 24px 0 32px;
  display: flex; flex-direction: column; gap: 28px;
}
.hero-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.hero-meta .mono { font-size: 11px; }
.hero-meta .mono.dim { color: var(--ink-dim); }

.hero-headline .headline {
  font-size: clamp(40px, 6.8vw, 108px);
  line-height: 0.92;
  text-wrap: balance;
}
.hero-headline .headline .word {
  display: inline-block;
  margin-right: 0.18em;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}
.hero-headline.in .headline .word,
.hero-headline .headline .word { /* fallback: also show without .in */
}
.hero-headline[data-reveal].in .headline .word,
.hero-headline.in .headline .word {
  opacity: 1; transform: translateY(0);
}

/* Hero frame cursor hint */
/* hero-frame default cursor — no grab hint */
/* hero-cursor removed — "тяните" hint was unwanted */

/* ============================== MARQUEE TICKER ============================== */
.ticker-band {
  background: var(--ink);
  color: var(--on-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  padding: 18px 0;
  position: relative;
  margin-top: 60px;
}
.ticker-track {
  display: inline-flex; align-items: center; gap: 0;
  white-space: nowrap;
  animation: tickerSlide 38s linear infinite;
  will-change: transform;
}
.ticker-band:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: baseline; gap: 14px;
  padding: 0 28px;
}
.ti-ix {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  color: var(--on-dark-mute);
  font-size: 22px; line-height: 1;
}
.ti-txt {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: var(--on-dark);
}
.ti-dot {
  color: var(--on-dark-mute);
  margin-left: 14px;
  font-size: 22px;
}
@keyframes tickerSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================== MANIFEST ============================== */
.manifest {
  background: var(--bg);
  padding: 140px 0 100px;
  border-bottom: 1px solid var(--line);
}
.manifest-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 820px) {
  .manifest-row { grid-template-columns: 1fr; gap: 28px; }
}
.manifest-eyebrow {
  display: flex; flex-direction: column; gap: 14px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.14em; text-transform: uppercase;
  padding-top: 18px;
}
.manifest-eyebrow .hr {
  height: 1px; background: var(--ink);
  width: 0; max-width: 64px;
  transition: width 1.2s cubic-bezier(.5,0,.1,1);
  transition-delay: .3s;
}
.manifest.in .manifest-eyebrow .hr { width: 64px; }
.manifest-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
  text-transform: none;
}
.manifest-quote .word {
  display: inline-block;
  margin-right: 0.22em;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}
.manifest.in .manifest-quote .word { opacity: 1; transform: translateY(0); }
.manifest-quote .word.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--ink-mute);
}
.manifest-sign {
  grid-column: 2;
  margin-top: 28px;
  font-size: 12px;
  color: var(--ink-mute);
}
@media (max-width: 820px) { .manifest-sign { grid-column: 1; } }

/* ============================== DIR PHOTOS — V2 tweaks ============================== */
.dir-photo { position: relative; }
.dir-photo-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  padding: 5px 9px;
  font-size: 10px; letter-spacing: 0.1em;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .35s ease, transform .35s ease;
}
.dir-photo:hover .dir-photo-tag { opacity: 1; transform: translateY(0); }
.dir-photo-caption {
  grid-column: 1 / 3;
  margin-top: 12px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.05em; text-transform: uppercase;
  display: flex; justify-content: space-between;
}

/* Direction zoom on parent hover for whole row */
.dir-photos .dir-photo {
  transition: transform 1s cubic-bezier(.2,.7,.2,1),
              filter .8s ease;
}
.dir:hover .dir-photo {
  filter: saturate(1.05);
}

/* ============================== PROCESS ============================== */
.process {
  padding: 140px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 980px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

.process-step {
  background: var(--bg);
  padding: 36px 32px 40px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background .35s ease;
  position: relative;
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.4,0,.2,1), background .35s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.process-grid.in .process-step { opacity: 1; transform: translateY(0); }
.process-step:hover { background: var(--bg-soft); }
.ps-num {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; color: var(--ink-mute); letter-spacing: 0.12em;
}
.ps-num .hr {
  flex: 1; max-width: 80px; height: 1px; background: var(--line-strong);
  display: inline-block;
  transition: max-width .9s cubic-bezier(.4,0,.2,1);
}
.process-step:hover .ps-num .hr { max-width: 200px; background: var(--ink); }
.process-step h4 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; line-height: 1.15; letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.process-step p {
  font-size: 14px; line-height: 1.55;
  color: var(--ink-mute);
  text-wrap: pretty;
}

/* ============================== COUNTERS ============================== */
.counters {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(21,20,15,0.18);
  border-top: 1px solid rgba(21,20,15,0.18);
  border-bottom: 1px solid rgba(21,20,15,0.18);
  margin-bottom: 80px;
}
@media (max-width: 820px) { .counters { grid-template-columns: 1fr 1fr; } }
.counter {
  background: var(--bg-warm);
  padding: 36px 30px;
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.4,0,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.counters.in .counter { opacity: 1; transform: translateY(0); }
.c-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.95; letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex; align-items: baseline;
}
.c-val .c-suf {
  font-family: var(--font-serif); font-style: italic;
  font-size: 0.55em; color: var(--ink-mute);
  margin-left: 4px;
}
.c-label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.c-note { font-size: 13px; color: var(--ink-mute); line-height: 1.45; }

/* ============================== FAQ ============================== */
.faq {
  padding: 140px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.faq-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line-strong);
}
.faq-item {
  border-bottom: 1px solid var(--line-strong);
  padding: 0;
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.4,0,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.faq-list.in .faq-item { opacity: 1; transform: translateY(0); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  padding: 28px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  text-wrap: balance;
  transition: padding .35s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { padding-left: 8px; }
.fa-mark {
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: transform .35s cubic-bezier(.4,0,.2,1), background .25s, color .25s;
  flex-shrink: 0;
}
.faq-item[open] .fa-mark { transform: rotate(45deg); background: var(--ink); color: var(--on-dark); }
.fa-a {
  font-size: 15px; line-height: 1.6; color: var(--ink-mute);
  max-width: 760px;
  padding: 0 0 32px;
  text-wrap: pretty;
}
.faq-item[open] .fa-a {
  animation: faqIn .55s cubic-bezier(.4,0,.2,1) both;
}
@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================== CONTACT — light CTA button ============================== */
.btn-light {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  background: #fff; color: var(--ink);
  font-size: 13px; font-weight: 500;
  transition: background .2s, transform .2s, color .2s;
  position: relative; overflow: hidden;
}
.btn-light:hover { transform: translateY(-1px); background: #fff; }
.btn-light::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(0,0,0,0.06) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .8s ease;
}
.btn-light:hover::before { transform: translateX(100%); }

/* ============================== FORM SUCCESS ============================== */
.partners-form { position: relative; }
.form-ok {
  position: absolute; inset: 0;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 40px;
  font-family: var(--font-display);
  font-size: 18px; color: var(--ink);
  text-wrap: balance;
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.partners-form.ok .form-ok { opacity: 1; pointer-events: auto; }

/* ============================== MAGNETIC BUTTONS ============================== */
[data-magnetic-btn] {
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
@media (hover: hover) and (pointer: fine) {
  [data-magnetic-btn]:hover { will-change: transform; }
}

/* ============================== BURGER + MOBILE NAV ============================== */
.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
  background: transparent;
  cursor: pointer;
  z-index: 100;
  position: relative;
}
.burger span {
  display: block; width: 16px; height: 1.5px;
  background: var(--ink);
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 980px) {
  .burger { display: inline-flex; }
  .header-right .btn-dark, .header-right .header-tel { display: none; }
}

.mnav {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 90;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .45s cubic-bezier(.4,0,.2,1);
  padding: 88px 24px 32px;
}
.mnav.open { opacity: 1; pointer-events: auto; }
.mnav-inner {
  width: 100%; max-width: 540px;
  display: flex; flex-direction: column; gap: 36px;
  justify-content: center; height: 100%;
}
.mnav-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line-strong);
}
.mnav-list a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 7vw, 36px);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1);
}
.mnav.open .mnav-list a { opacity: 1; transform: translateY(0); }
.mnav.open .mnav-list a:nth-child(1) { transition-delay: .12s; }
.mnav.open .mnav-list a:nth-child(2) { transition-delay: .18s; }
.mnav.open .mnav-list a:nth-child(3) { transition-delay: .24s; }
.mnav.open .mnav-list a:nth-child(4) { transition-delay: .30s; }
.mnav.open .mnav-list a:nth-child(5) { transition-delay: .36s; }
.mnav.open .mnav-list a:nth-child(6) { transition-delay: .42s; }
.mn-num {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.08em;
}
.mnav-foot {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  opacity: 0; transition: opacity .5s ease .5s;
}
.mnav.open .mnav-foot { opacity: 1; }
.mnav-phone {
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; letter-spacing: -0.005em;
}
.mono.dim { color: var(--ink-dim); }
body.mnav-open { overflow: hidden; }

/* ============================== SCROLLED HEADER ============================== */
.header { transition: background .3s ease, border-color .3s ease; }
.header.scrolled {
  background: color-mix(in oklab, #fff 96%, transparent);
  border-bottom-color: var(--line-strong);
}

/* ============================== KEN-BURNS — slower for hero (override v1 6s) ============================== */
.hero[data-mode="photo"] .slide.active .slide-img,
.hero:not([data-mode]) .slide.active .slide-img {
  animation: kbSubtleV2 10s ease-out forwards;
}
@keyframes kbSubtleV2 {
  from { transform: scale(1.05); }
  to   { transform: scale(1.12); }
}

/* ============================== HOVER LIFT FOR DIR PHOTO V2 ============================== */
.dir-photo { transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .8s ease; }
.dir-photo:hover { transform: scale(1.02); z-index: 2; }

/* ============================== FOOTER SHIMMER ============================== */
.footer-brand .wordmark { color: var(--on-dark); }

/* ============================== A11Y: reduce motion ============================== */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .slide.active .slide-img { animation: none; transform: none !important; }
  .hero-headline .headline .word,
  .manifest-quote .word { opacity: 1 !important; transform: none !important; }
  [data-count-to] { transition: none !important; }
}

/* ============================== UTILITY ============================== */
.mono.dim { color: var(--ink-dim); }
.header-tel a { color: inherit; transition: color .2s; }
.header-tel a:hover { color: var(--ink-mute); }

/* Subtle grain overlay on hero (premium texture) */
.hero-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.6;
}

/* ===== Header tighter on small screens ===== */
@media (max-width: 980px) {
  .header-row { grid-template-columns: auto 1fr auto; gap: 12px; height: 72px; }
  .header-logo, .wordmark { font-size: 20px; }
  .wordmark .wm-inf { width: 36px; height: 18px; }
}


/* ===================================================================
 * V3 — Cross-linking + usability (final, clean version)
 *
 * Strategy:
 *   Header     → 3 direct direction links + standard anchors (compact)
 *   Hero       → 3 PORTAL cards = primary entry to sub-brands
 *   Sections   → 1 primary CTA + 1 anchor each (no clutter)
 *   Footer     → final strip with 3 portals + col-links
 *   Mobile     → fullscreen burger + sticky bottom CTA + fab-top
 *
 * Robust to CSS-cache issues: sticky-cta/fab-top hidden by default,
 * shown via media-query AND a JS-applied .has-touch class as fallback.
 * =================================================================== */

/* ============================== HEADER NAV — direct direction links ============================== */
.header-nav {
  display: flex; align-items: center;
  gap: 22px;
}
.hn-dir-link {
  display: inline-flex; align-items: baseline; gap: 5px;
  position: relative;
  font-size: 14px;
  color: var(--ink);
  padding: 6px 0;
  transition: color .2s;
  font-weight: 500;
}
.hn-dir-link .hn-ext {
  opacity: 0.45;
  transition: opacity .2s, transform .25s;
  transform: translateY(-1px);
}
.hn-dir-link:hover .hn-ext {
  opacity: 1;
  transform: translate(2px, -3px);
}
.hn-dir-ix {
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: 0.04em;
  font-weight: 400;
}
.hn-dir-name {
  font-weight: 500;
}
.hn-dir-link::after {
  content: ""; position: absolute; left: 0; right: 14px; bottom: -1px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.hn-dir-link:hover::after,
.hn-dir-link.is-active::after { transform: scaleX(1); }

.hn-sep {
  width: 1px; height: 14px;
  background: var(--line-strong);
  display: inline-block;
  opacity: 0.6;
}

@media (max-width: 1100px) {
  .hn-dir-ix { display: none; }
  .header-nav { gap: 16px; }
}
@media (max-width: 980px) {
  .header-nav { display: none; }
}

/* ============================== HERO PORTALS — primary direction entry ============================== */
.hero-portals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
@media (max-width: 820px) {
  .hero-portals { grid-template-columns: 1fr; }
}
.portal {
  position: relative;
  display: flex; flex-direction: column;
  gap: 16px;
  padding: 26px 28px 22px;
  background: var(--bg);
  color: var(--ink);
  transition: background .35s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
  min-height: 180px;
}
.portal::before {
  content: "";
  position: absolute; left: 0; right: 100%; top: 0; bottom: 0;
  background: var(--ink);
  transition: right .5s cubic-bezier(.5,0,.1,1);
  z-index: 0;
}
.portal:hover { color: var(--on-dark); }
.portal:hover::before { right: 0; }
.portal > * { position: relative; z-index: 1; }

.portal-ix {
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  transition: color .35s;
}
.portal:hover .portal-ix { color: var(--on-dark-mute); }

.portal-name {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  flex: 1;
}
.pn-main {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.018em;
  line-height: 1;
  text-transform: uppercase;
}
.pn-arrow {
  width: 36px; height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color .35s, background .35s, transform .45s, color .35s;
}
.portal:hover .pn-arrow {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--ink);
  transform: rotate(-45deg);
}

.portal-meta {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 12px;
}
.portal-short {
  font-size: 13px; color: var(--ink-mute);
  line-height: 1.45;
  max-width: 70%;
  text-wrap: pretty;
  transition: color .35s;
}
.portal:hover .portal-short { color: var(--on-dark-mute); }
.portal-domain {
  font-size: 10px; color: var(--ink-dim);
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: color .35s;
}
.portal:hover .portal-domain { color: var(--on-dark); }

/* ============================== HERO SLIDE CTA-row ============================== */
.slide-cta-row {
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.slide-cta-pill.primary {
  background: rgba(255,255,255,0.96);
  color: var(--ink);
}
.slide-cta-pill.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.slide-cta-pill.ghost:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-1px);
}
.slide-cta-pill .ico-ext { transition: transform .25s; }
.slide-cta-pill.primary:hover .ico-ext { transform: translate(3px, -3px); }
@media (max-width: 600px) {
  .slide-cta-pill.ghost { display: none; }
}

/* ============================== DIRECTION CTA — minimal: primary + anchor ============================== */
.dir-cta-row {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.dir-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--ink); color: var(--on-dark);
  font-size: 13.5px; font-weight: 500;
  transition: background .25s, transform .25s, color .25s;
}
.dir-cta:hover { background: #2a2820; transform: translateY(-1px); }
.dir-cta .arrow { transition: transform .25s; }
.dir-cta:hover .arrow { transform: translate(3px, -3px); }

.dir-cta-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink-mute);
  font-family: var(--font-mono); letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 6px 0;
  transition: color .2s;
}
.dir-cta-link:hover { color: var(--ink); }
.dir-cta-link svg { transition: transform .25s; }
.dir-cta-link:hover svg { transform: translateY(2px); }

/* ============================== FOOTER STRIP — final closing CTA ============================== */
.footer-strip {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  align-items: center;
  gap: 60px;
  padding: 48px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 48px;
}
@media (max-width: 820px) {
  .footer-strip { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
}
.fs-text .eyebrow {
  color: var(--on-dark-mute);
  margin-bottom: 12px;
}
.fs-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.1; letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--on-dark);
}
.fs-headline .serif {
  font-weight: 500;
  color: var(--on-dark-mute);
}
.fs-ports {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 600px) {
  .fs-ports { grid-template-columns: 1fr; }
}
.fs-port {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 18px;
  background: var(--dark);
  color: var(--on-dark);
  transition: background .25s, padding .25s;
  position: relative; overflow: hidden;
}
.fs-port:hover { background: #1f1d18; padding-left: 24px; }
.fs-port-ix {
  font-size: 10px; color: var(--on-dark-mute);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
.fs-port-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  flex: 1;
}
.fs-port-arrow {
  width: 30px; height: 30px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color .3s, background .3s, transform .3s, color .3s;
}
.fs-port:hover .fs-port-arrow {
  background: var(--on-dark);
  border-color: var(--on-dark);
  color: var(--ink);
  transform: rotate(-45deg);
}

/* ============================== FOOTER ext-link ============================== */
.ext-link {
  display: inline-flex; align-items: center; gap: 6px;
}
.ext-link .ext-ico {
  opacity: 0.55;
  transition: transform .25s, opacity .25s;
}
.ext-link:hover .ext-ico { transform: translate(2px, -2px); opacity: 1; }

/* ============================== FOOTER SHARE ============================== */
.footer-share {
  display: flex; align-items: center; gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-share .mono.dim {
  font-size: 10px; letter-spacing: 0.12em;
  color: var(--on-dark-mute);
  margin-right: 4px;
}
.footer-share a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  color: var(--on-dark-mute);
  transition: border-color .25s, color .25s, background .25s;
}
.footer-share a:hover {
  border-color: var(--on-dark);
  color: var(--ink);
  background: var(--on-dark);
}

/* ============================== MOBILE NAV sections ============================== */
.mnav-section + .mnav-section { margin-top: 22px; }
.mnav-section-h {
  font-size: 10px; color: var(--ink-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.mnav-ports {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line-strong);
}
.mnav-port {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-strong);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1);
}
.mnav.open .mnav-ports .mnav-port { opacity: 1; transform: translateY(0); }
.mnav.open .mnav-ports .mnav-port:nth-child(1) { transition-delay: .50s; }
.mnav.open .mnav-ports .mnav-port:nth-child(2) { transition-delay: .56s; }
.mnav.open .mnav-ports .mnav-port:nth-child(3) { transition-delay: .62s; }
.mp-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 5vw, 22px);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.mp-meta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* ==============================================================
 * STICKY MOBILE CTA + FAB-TOP
 * Hidden by default. Shown only on small viewport OR when JS sets
 * the .has-touch class on <body> (defence against CSS cache issues
 * where media-query rules might not load properly).
 * ============================================================== */
.sticky-cta,
.fab-top {
  display: none;
}

@media (max-width: 820px) {
  .sticky-cta { display: flex; }
  .fab-top { display: inline-flex; }
}

.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 50;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 20px 50px -16px rgba(21,20,15,0.4);
  transform: translateY(120%);
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.sticky-cta.in { transform: translateY(0); }
.sticky-cta a {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--on-dark);
}
.sticky-cta a.sc-primary {
  background: #fff;
  color: var(--ink);
}
.sticky-cta a.sc-secondary {
  color: var(--on-dark);
}
body.mnav-open .sticky-cta { transform: translateY(120%); }

.fab-top {
  position: fixed; right: 24px; bottom: 24px;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-dark);
  align-items: center; justify-content: center;
  opacity: 0; transform: translateY(20px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  z-index: 40;
}
.fab-top.in { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fab-top:hover { background: #2a2820; }
@media (max-width: 820px) {
  .fab-top { bottom: 76px; right: 16px; }
}

/* ============================== HEADLINE SCROLL-SPY NAV ACTIVE STATE ============================== */
.header-nav a.is-active { color: var(--ink); }
.header-nav > a {
  position: relative;
}
.header-nav > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.header-nav > a.is-active::after { transform: scaleX(1); }
.header-nav > a:hover::after { transform: scaleX(1); }

/* ============================== PRINT ============================== */
@media print {
  .page-progress, .header, .footer, .ticker-band, .mnav,
  .sticky-cta, .fab-top, .hero-cursor { display: none !important; }
  .hero-portals, .portal { background: #fff !important; color: #000 !important; }
  .portal::before { display: none; }
  body { color: #000; }
}

/* ============================== REDUCED MOTION ============================== */
@media (prefers-reduced-motion: reduce) {
  .portal::before, .fs-port,
  .header-nav a::after,
  .hn-dir-link::after { transition: none !important; }
  .portal:hover .pn-arrow { transform: none !important; }
}

/* ===================================================================
 * V4 ADDITIONS — UNIFIED CROSS-SITE LINKING
 * Three repeating components on all 4 holding sites:
 *   1. Group switcher in header (popover with 4 sites)
 *   2. Hero portals (main site only)
 *   3. Footer group card (block "Производственная группа 8эйт")
 *
 * V4 also fixes positioning regressions seen in cached CSS where
 * popovers fell back to inline block.
 * =================================================================== */

/* ============================== 1. GROUP SWITCHER (header) ============================== */
.gswitch {
  position: relative;
  display: inline-flex; align-items: center;
  z-index: 80;
}
.gs-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--line-strong, rgba(21,20,15,0.12));
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink, #15140f);
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.gs-trigger:hover {
  background: var(--ink, #15140f);
  color: var(--on-dark, #faf7f0);
  border-color: var(--ink, #15140f);
}
.gs-mark {
  font-size: 14px;
  line-height: 1;
  color: var(--ink-mute, #595650);
  transition: color .2s;
}
.gs-trigger:hover .gs-mark { color: var(--on-dark, #faf7f0); }
.gs-label {
  font-size: 11px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gs-chev {
  opacity: 0.65;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s;
}
.gswitch.open .gs-chev { transform: rotate(180deg); }
.gs-trigger:hover .gs-chev { opacity: 1; }

/* Popover panel — ABSOLUTELY positioned, NO inline fallback */
.gs-pop {
  position: absolute !important;
  top: calc(100% + 12px);
  left: 0;
  min-width: 360px;
  background: #ffffff;
  border: 1px solid var(--line, rgba(21,20,15,0.08));
  box-shadow: 0 28px 60px -20px rgba(21,20,15,0.18),
              0 8px 16px -10px rgba(21,20,15,0.08);
  padding: 14px 0 8px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .25s cubic-bezier(.4,0,.2,1),
              transform .25s cubic-bezier(.4,0,.2,1);
  z-index: 90;
}
.gswitch.open .gs-pop {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.gs-pop-head {
  padding: 0 20px 12px;
  font-size: 10px;
  color: var(--ink-dim, #807d76);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line, rgba(21,20,15,0.08));
}
.gs-list {
  display: flex; flex-direction: column;
  padding: 6px 0;
}
.gs-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  text-decoration: none;
  color: var(--ink, #15140f);
  transition: background .2s ease;
  position: relative;
}
.gs-item:hover { background: var(--bg-soft, #f6f3ec); }
.gs-item.is-current {
  background: var(--bg-soft, #f6f3ec);
  cursor: default;
}
.gs-item.is-current::before {
  content: "";
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--ink, #15140f);
}
.gs-ix {
  font-size: 11px;
  color: var(--ink-dim, #807d76);
  letter-spacing: 0.06em;
  text-align: center;
}
.gs-item.is-current .gs-ix { color: var(--ink, #15140f); }
.gs-body {
  display: flex; flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.gs-name {
  font-family: var(--font-display, 'Onest', sans-serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  line-height: 1.1;
}
.gs-sub {
  font-size: 10px;
  color: var(--ink-mute, #595650);
  letter-spacing: 0.02em;
}
.gs-here {
  font-size: 10px;
  color: var(--ink-dim, #807d76);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--line, rgba(21,20,15,0.08));
  border-radius: 999px;
}
.gs-go {
  width: 24px; height: 24px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-mute, #595650);
  transition: background .25s ease, color .25s ease, transform .3s ease;
}
.gs-item:hover .gs-go {
  background: var(--ink, #15140f);
  color: var(--on-dark, #faf7f0);
  transform: rotate(-45deg);
}

/* Hide group switcher on small screens — it appears in burger overlay */
@media (max-width: 980px) {
  .gswitch { display: none; }
}

/* ============================== 2. FOOTER GROUP CARD ============================== */
.footer-group {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.fg-top {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 24px;
}
.fg-mono {
  font-size: 11px;
  color: var(--on-dark-mute, #a5a29a);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.fg-h {
  font-family: var(--font-display, 'Onest', sans-serif);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  color: var(--on-dark, #faf7f0);
}
.fg-h .serif {
  font-family: var(--font-serif, 'Cormorant Garamond', serif);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  color: var(--on-dark-mute, #a5a29a);
}

.fg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 820px) {
  .fg-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .fg-grid { grid-template-columns: 1fr; }
}
.fg-cell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  background: var(--dark, #15140f);
  color: var(--on-dark, #faf7f0);
  text-decoration: none;
  transition: background .25s ease, padding .25s ease;
  position: relative;
}
.fg-cell:hover { background: #1f1d18; padding-left: 22px; }
.fg-cell.is-current {
  background: rgba(255,255,255,0.04);
  cursor: default;
  pointer-events: none;
}
.fg-cell.is-current::before {
  content: "";
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--on-dark, #faf7f0);
}
.fg-ix {
  grid-row: 1 / span 2;
  font-size: 11px;
  color: var(--on-dark-mute, #a5a29a);
  letter-spacing: 0.08em;
}
.fg-cell.is-current .fg-ix { color: var(--on-dark, #faf7f0); }
.fg-name {
  grid-column: 2;
  font-family: var(--font-display, 'Onest', sans-serif);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  line-height: 1.1;
}
.fg-sub {
  grid-column: 2;
  font-size: 10px;
  color: var(--on-dark-mute, #a5a29a);
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.fg-arrow {
  grid-row: 1 / span 2;
  grid-column: 3;
  width: 26px; height: 26px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color .3s, background .3s, color .3s, transform .3s;
}
.fg-cell:hover .fg-arrow {
  background: var(--on-dark, #faf7f0);
  border-color: var(--on-dark, #faf7f0);
  color: var(--ink, #15140f);
  transform: rotate(-45deg);
}
.fg-here {
  grid-row: 1 / span 2;
  grid-column: 3;
  font-size: 9px;
  color: var(--on-dark-mute, #a5a29a);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
}

/* ============================== STICKY-CTA HARDENING (cache-resilient) ============================== */
/* The earlier rules set display:none then unset on @media. Some hosts/caches
 * may serve a partial CSS where the override is missing — sticky-cta then
 * appears as a flat block. Add aggressive defaults so it's always positioned
 * correctly when shown, plus dimmed-style for desktop hover guards. */
.sticky-cta {
  position: fixed !important;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50 !important;
  background: var(--ink, #15140f) !important;
  border-radius: 999px !important;
}
.fab-top {
  position: fixed !important;
  right: 24px;
  bottom: 24px;
  z-index: 40 !important;
  border-radius: 999px !important;
  background: var(--ink, #15140f) !important;
  color: var(--on-dark, #faf7f0) !important;
}

/* If for any reason media-query "show" rule was not applied,
 * sticky-cta and fab-top remain hidden by default — strictly governed
 * by @media (max-width: 820px). Touch-on-desktop devices (laptops with
 * touchscreens, browsers with pointer:coarse emulation) WILL NOT trigger
 * a forced display. Only viewport width matters.
 *
 * (Previous `body.has-touch` fallback was removed: it caused the sticky bar
 * to leak onto desktop on hybrid touch devices and pile a white bar under
 * the dark contact section.) */

/* ============================== HEADER LAYOUT FIX ============================== */
/* The header row is grid: [wordmark | gswitch | nav | right]. Make sure
 * gswitch and the nav stay on their own grid tracks and the popover
 * floats above. */
/* Header layout — 3 colonnes, navigation grows in the middle so logo
 * stays left, contact block stays right. */
.header-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  height: 88px;
}
.header-nav {
  justify-content: center;
}
@media (max-width: 1180px) {
  .header-row { gap: 24px; }
}
@media (max-width: 980px) {
  .header-row { grid-template-columns: auto 1fr auto; gap: 12px; height: 72px; }
  .header-nav { display: none; }
}

/* ============================== MNAV — group switcher inside burger ============================== */
.mnav-group {
  display: flex; flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--bg-soft, #f6f3ec);
  border: 1px solid var(--line, rgba(21,20,15,0.08));
}
.mnav-group-h {
  font-size: 10px;
  color: var(--ink-dim, #807d76);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mnav-group-current {
  font-family: var(--font-display, 'Onest', sans-serif);
  font-weight: 600;
  font-size: 16px;
}


/* ===================================================================
 * V5 — HERO без H1 и порталов: только слайдер на полный экран
 * + visually-hidden утилита для SEO-skip-link
 * + Яндекс.Карта на главной
 * =================================================================== */

/* Accessible hidden text — keeps content for screen readers and SEO
   but doesn't render visually. Standard CSS pattern. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* New hero — minimal meta above the slider, then a tall slider that
   dominates the first screen. No headline, no portal cards. */
.hero-meta--top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
}
.hero-meta--top .mono { font-size: 11px; }
.hero-meta--top .mono.dim { color: var(--ink-dim); }

/* Full-screen slider variant: takes the rest of the viewport after meta */
.hero-frame--full {
  margin-top: 24px;
  aspect-ratio: auto;             /* override base 16/9 */
  width: 100%;
  height: calc(100vh - 200px);
  min-height: 520px;
  max-height: 820px;
}
@media (max-width: 820px) {
  .hero-frame--full {
    height: calc(100vh - 240px);
    min-height: 480px;
    max-height: none;
  }
}
@media (max-width: 480px) {
  .hero-meta--top { flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 0 16px; }
  .hero-frame--full { height: calc(100vh - 220px); }
}

/* ============================== YANDEX MAP SECTION ============================== */
.contact-map {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 820px) {
  .contact-map { grid-template-columns: 1fr; }
}
.contact-map-info {
  background: var(--dark, #15140f);
  color: var(--on-dark, #faf7f0);
  padding: 28px 26px;
  display: flex; flex-direction: column;
  gap: 18px;
}
.cm-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--on-dark-mute, #a5a29a);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.cm-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.1;
}
.cm-title .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--on-dark-mute, #a5a29a);
  text-transform: none;
}
.cm-address {
  font-size: 13px;
  line-height: 1.55;
  color: var(--on-dark-mute);
}
.cm-address strong {
  color: var(--on-dark);
  font-weight: 500;
}
.cm-hours {
  display: flex; flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--on-dark-mute);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.cm-actions {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}
.cm-action {
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--on-dark);
  font-size: 12.5px;
  font-weight: 500;
  transition: background .2s, transform .2s;
  border: 1px solid rgba(255,255,255,0.1);
}
.cm-action:hover {
  background: var(--on-dark);
  color: var(--ink);
  border-color: var(--on-dark);
}
.cm-action svg { transition: transform .25s; }
.cm-action:hover svg { transform: translate(2px, -2px); }

.contact-map-frame {
  background: var(--dark);
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.contact-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(35%) contrast(95%);
  transition: filter .4s ease;
}
.contact-map-frame:hover iframe { filter: grayscale(0) contrast(100%); }

@media (max-width: 820px) {
  .contact-map-frame { min-height: 280px; }
  .contact-map-info { padding: 22px 20px; }
}

/* ===================================================================
 * V6 — CONTACT секция вытащена в светлое тело сайта.
 *      Большая карта во всю ширину, инфо-карточка плавает поверх слева.
 *      4-колоночная крупная сетка контактов под картой.
 * =================================================================== */

/* Override the dark contact section — make it a bright body section */
.contact--light {
  background: var(--bg);
  color: var(--ink);
  padding: 140px 0 120px;
  border-top: 1px solid var(--line);
}
.contact--light .section-head {
  border-bottom: 1px solid var(--line-strong);
}
.contact--light .eyebrow {
  color: var(--ink-mute);
}
.contact--light .headline {
  color: var(--ink);
}
.contact--light .headline .serif {
  color: var(--ink-mute);
}
.contact--light .lead {
  color: var(--ink-mute);
}

/* === Large map block === */
.map-hero {
  position: relative;
  margin-top: 56px;
  height: 560px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  overflow: hidden;
}
.map-hero iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(20%) contrast(98%);
  transition: filter .5s ease;
}
.map-hero:hover iframe { filter: none; }

@media (max-width: 980px) {
  .map-hero { height: 480px; margin-top: 40px; }
}
@media (max-width: 600px) {
  .map-hero { height: 420px; margin-top: 28px; }
}

/* Floating info card on map */
.map-hero-card {
  position: absolute;
  top: 32px; left: 32px;
  z-index: 5;
  width: 340px;
  background: var(--bg);
  padding: 28px 28px 24px;
  box-shadow: 0 24px 60px -28px rgba(21,20,15,0.32);
  display: flex; flex-direction: column;
  gap: 18px;
}
.mh-eyebrow {
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.mh-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--ink);
}
.mh-address {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-mute);
}
.mh-divider {
  height: 1px;
  background: var(--line-strong);
  margin: 2px 0;
}
.mh-hours {
  display: flex; flex-direction: column;
  gap: 8px;
}
.mh-hours-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}
.mh-hours-row .lbl {
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.mh-hours-row .val {
  color: var(--ink);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.mh-actions {
  display: flex; flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.mh-action {
  display: inline-flex; align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: background .2s, color .2s, transform .2s;
}
.mh-action.primary {
  background: var(--ink);
  color: var(--on-dark);
  justify-content: space-between;
}
.mh-action.primary:hover { background: #2a2820; transform: translateY(-1px); }
.mh-action.primary svg { transition: transform .25s; }
.mh-action.primary:hover svg { transform: translate(2px, -2px); }
.mh-action.secondary {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  justify-content: center;
}
.mh-action.secondary:hover {
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
}

@media (max-width: 820px) {
  .map-hero-card {
    position: relative;
    top: 0; left: 0;
    width: auto;
    margin: -1px;
    box-shadow: none;
    border: 1px solid var(--line);
    border-bottom: 0;
  }
  .map-hero {
    display: flex;
    flex-direction: column;
    height: auto;
    background: transparent;
    border: 0;
  }
  .map-hero iframe {
    position: relative;
    inset: auto;
    height: 380px;
  }
}

/* === Big 4-col contact grid === */
.contact-big {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 980px) {
  .contact-big { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .contact-big { grid-template-columns: 1fr; }
}
.cb-cell {
  background: var(--bg);
  padding: 36px 30px 38px;
  display: flex; flex-direction: column;
  gap: 12px;
  transition: background .25s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.4,0,.2,1), background .25s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.contact-big.in .cb-cell { opacity: 1; transform: translateY(0); }
.cb-cell:hover { background: var(--bg-soft); }
.cb-label {
  font-size: 10px;
  color: var(--ink-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 4px;
}
.cb-val {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
  transition: color .2s;
}
a.cb-val:hover { color: var(--ink-mute); }
.cb-val--sub {
  font-size: 16px;
  color: var(--ink-mute);
  font-weight: 400;
}
.cb-val--med {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
}
.cb-note {
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: auto;
  padding-top: 12px;
}

/* === Legal row at the bottom (thin) === */
.contact-legal-row {
  margin-top: 48px;
  padding: 18px 0;
  display: flex; flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
}
.cl-mono {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.cl-val {
  font-family: var(--font-mono);
  color: var(--ink);
  letter-spacing: 0.02em;
}
.cl-sep {
  color: var(--ink-dim);
  opacity: 0.4;
}
@media (max-width: 600px) {
  .contact-legal-row { gap: 6px 10px; font-size: 11px; }
  .cl-sep { display: none; }
  .cl-mono { width: 100%; margin-top: 6px; }
  .cl-mono:first-child { margin-top: 0; }
}

/* ===================================================================
 * V7 — Mobile menu close button + tighter spacing
 *      + slider/header alignment fixes
 * =================================================================== */

/* Close (X) button inside mobile overlay */
.mnav-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background .2s, color .2s, border-color .2s, transform .25s;
}
.mnav-close:hover {
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
  transform: rotate(90deg);
}

/* Tighter section padding — uniform compression of vertical whitespace */
.section,
.directions,
.manifest,
.process,
.about,
.partners,
.faq,
.contact--light {
  padding-top: 96px;
  padding-bottom: 96px;
}
@media (max-width: 820px) {
  .section,
  .directions,
  .manifest,
  .process,
  .about,
  .partners,
  .faq,
  .contact--light {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}
@media (max-width: 480px) {
  .section,
  .directions,
  .manifest,
  .process,
  .about,
  .partners,
  .faq,
  .contact--light {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* Smaller gap inside section heads on mobile */
@media (max-width: 820px) {
  .section-head { margin-bottom: 32px; padding-bottom: 24px; }
}

/* Mobile section harmonization — each section fits into viewport vibe.
 * Reduce big headlines, tighten cells, shrink media. */
@media (max-width: 820px) {
  .headline.h-section,
  .hero-headline .headline,
  .manifest-quote { font-size: clamp(28px, 7vw, 40px); line-height: 1.05; }

  .lead { font-size: 14px; }

  /* Direction blocks: text first, photos right after, tight spacing */
  .dir { padding-bottom: 48px; padding-top: 48px; gap: 32px; }
  .dir-text h3 { font-size: clamp(26px, 6.5vw, 36px); }
  .dir p { font-size: 14px; line-height: 1.55; }
  .dir-specs { gap: 12px 18px; margin: 24px 0 28px; }
  .dir-spec .t { font-size: 12.5px; line-height: 1.45; }
  .dir-cta-row { gap: 10px; }
  .dir-cta { padding: 12px 18px; font-size: 12.5px; }

  /* About counters tighter */
  .counters { margin-bottom: 40px; }
  .counter { padding: 24px 18px; gap: 8px; }
  .c-val { font-size: clamp(34px, 9vw, 50px); }
  .c-label { font-size: 10px; }
  .c-note { font-size: 12px; line-height: 1.4; }

  /* Process steps */
  .process-step { padding: 24px 20px 28px; gap: 12px; }
  .process-step h4 { font-size: 18px; }
  .process-step p { font-size: 13px; }

  /* FAQ */
  .faq-item summary { padding: 22px 0; font-size: 16px; }
  .fa-mark { width: 30px; height: 30px; }
  .fa-a { font-size: 14px; padding: 0 0 24px; }

  /* Map block tighter on mobile */
  .map-hero { margin-top: 28px; }
  .map-hero iframe { height: 320px; }
  .map-hero-card { padding: 20px 18px; gap: 14px; }
  .mh-title { font-size: 18px; }
  .mh-address { font-size: 12px; }

  /* Big contact grid cells tighter */
  .contact-big { margin-top: 40px; }
  .cb-cell { padding: 24px 18px 26px; gap: 8px; }
  .cb-val { font-size: clamp(18px, 5vw, 22px); }
  .cb-val--med { font-size: 15px; }
  .cb-val--sub { font-size: 14px; }
  .cb-note { font-size: 11px; padding-top: 8px; }
  .contact-legal-row { font-size: 11px; margin-top: 32px; padding: 14px 0; }
}

/* ===================================================================
 * V8 — HARD OVERRIDES for hero alignment
 * Ставится в конце файла, !important где надо побороть старые правила.
 * =================================================================== */

/* Гарантируем что слайдер сидит в .inner контейнере и не вылезает */
.hero .inner {
  display: block !important;
  width: 100% !important;
  max-width: 1480px !important;
  margin: 0 auto !important;
  padding-left: 48px !important;
  padding-right: 48px !important;
  box-sizing: border-box !important;
}
@media (max-width: 820px) {
  .hero .inner {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
@media (max-width: 480px) {
  .hero .inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* Hero meta — гарантировано видна над слайдером */
.hero-meta--top {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 0 24px !important;
  border-bottom: 1px solid var(--line);
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .hero-meta--top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px 0 16px !important;
  }
  .hero-meta--top .mono { font-size: 10px; }
}

/* Slider frame — занимает всю ширину inner, никаких aspect-ratio */
.hero-frame.hero-frame--full {
  position: relative;
  display: block !important;
  width: 100% !important;
  aspect-ratio: auto !important;
  margin-top: 24px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  height: calc(100vh - 220px);
  min-height: 480px;
  max-height: 780px;
  background: var(--bg-soft);
  overflow: hidden;
  box-sizing: border-box;
}
@media (max-width: 820px) {
  .hero-frame.hero-frame--full {
    height: calc(100vh - 260px);
    min-height: 420px;
    max-height: none;
    margin-top: 16px !important;
  }
}

/* Hero controls — выровнены с .inner */
.hero-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  width: 100%;
  padding: 24px 0 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

/* Mobile-only hero polish: tabs more compact, dots over arrows */
@media (max-width: 820px) {
  .hero-controls {
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 16px !important;
  }
  .hero-tabs { flex: 1 1 100%; gap: 18px; }
  .hero-tab .domain { display: none; } /* domain под именем — на мобиле лишнее */
  .hero-tab .num { font-size: 9px; }
  .hero-tab .name { font-size: 13px; }
}

/* Hero section padding — не давит сверху */
.hero {
  padding: 16px 0 80px !important;
}
@media (max-width: 820px) {
  .hero { padding: 8px 0 48px !important; }
}

/* ===================================================================
 * V9 — Mobile hero fixes (the v8 override didn't reach @media 720px)
 * =================================================================== */

/* Слайдер на мобиле — полная ширина и нормальная высота */
@media (max-width: 720px) {
  .hero-frame.hero-frame--full {
    aspect-ratio: auto !important;
    width: 100% !important;
    height: 70vh !important;
    min-height: 480px !important;
    max-height: 720px !important;
  }
}
@media (max-width: 480px) {
  .hero-frame.hero-frame--full {
    height: 75vh !important;
    min-height: 460px !important;
  }
}

/* На мобиле hero-tabs стекаются в одну вертикальную колонку,
 * чтобы 3 пункта не лезли в строку и не обрезались */
@media (max-width: 820px) {
  .hero-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 20px !important;
  }
  .hero-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0 !important;
    width: 100% !important;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .hero-tab {
    padding: 14px 12px !important;
    border-right: 1px solid var(--line);
    text-align: left;
    min-width: 0;
  }
  .hero-tab:last-child { border-right: 0; }
  .hero-tab .num { font-size: 9px; }
  .hero-tab .name { font-size: 13px; }
  .hero-tab .domain { display: none !important; }

  /* Прогресс-точки + стрелки в одну строку под табами */
  .hero-progress, .hero-arrows {
    display: flex;
    align-items: center;
  }
  .hero-controls {
    /* Делаем 3 строки: tabs, progress+arrows row */
  }
  .hero-progress {
    flex: 1;
    justify-content: flex-start;
    gap: 6px !important;
  }
  .hero-progress .dot {
    flex: 1; max-width: 30px;
  }
  .hero-arrows {
    gap: 8px;
    flex-shrink: 0;
  }
  .hero-arrow {
    width: 38px !important; height: 38px !important;
  }

  /* На мобиле hero-progress и hero-arrows кладутся в одну строку под табами */
  .hero-controls > .hero-progress,
  .hero-controls > .hero-arrows {
    display: inline-flex;
  }
}

/* Тикер — гарантированно на всю ширину viewport, не обрезается */
.ticker-band {
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: 0 !important;
}
@media (max-width: 820px) {
  .ticker-band {
    margin-top: 32px !important;
    padding: 14px 0 !important;
  }
  .ti-txt { font-size: 13px; }
  .ti-ix { font-size: 16px; }
  .ti-dot { font-size: 16px; margin-left: 10px; }
  .ticker-item { padding: 0 20px; gap: 10px; }
}

/* Hero slide-meta tighter on phone */
@media (max-width: 480px) {
  .slide-meta {
    padding: 16px !important;
    gap: 8px !important;
  }
  .slide-meta .left .slide-section { font-size: 10px !important; }
  .slide-cta-pill {
    padding: 10px 14px !important;
    font-size: 12px !important;
  }
  .slide-counter { font-size: 11px !important; }
  .slide-caption { font-size: 10px !important; }
}

/* V9.1 — hero-tabs на мобиле: не дать названиям сливаться */
@media (max-width: 820px) {
  .hero-tab {
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .hero-tab .name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 11px !important;
    letter-spacing: -0.005em;
  }
}
@media (max-width: 480px) {
  .hero-tab {
    padding: 12px 10px !important;
  }
  .hero-tab .name {
    font-size: 10.5px !important;
  }
  .hero-tab .num { font-size: 8px !important; }
}

/* ===================================================================
 * V10 — Legal pages (privacy / consent / etc.)
 * =================================================================== */

.legal-page {
  padding: 60px 0 120px;
  background: var(--bg);
  min-height: 70vh;
}
@media (max-width: 820px) {
  .legal-page { padding: 40px 0 80px; }
}

.legal-crumbs {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
}
.legal-crumbs a {
  color: var(--ink-mute);
  transition: color .2s;
}
.legal-crumbs a:hover { color: var(--ink); }
.lc-sep { opacity: 0.5; }
.lc-current { color: var(--ink); }

.legal-content {
  max-width: 760px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
}
.legal-content h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
  text-wrap: balance;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 56px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal-content h2:first-of-type { border-top: 0; padding-top: 0; }
.legal-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 32px 0 12px;
}
.legal-content p {
  margin: 14px 0;
  color: var(--ink);
}
.legal-content p strong { color: var(--ink); font-weight: 600; }
.legal-content ul, .legal-content ol {
  margin: 16px 0 24px;
  padding-left: 22px;
}
.legal-content li {
  margin: 6px 0;
  line-height: 1.6;
}
.legal-content a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
  transition: border-color .2s;
}
.legal-content a:hover { border-bottom-color: var(--ink); }
.legal-content table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 14px;
}
.legal-content table th,
.legal-content table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-content table th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg-soft);
}
.legal-content table td:first-child {
  font-weight: 500;
  color: var(--ink);
  width: 35%;
}
.legal-content blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  background: var(--bg-soft);
  border-left: 3px solid var(--ink);
  font-style: italic;
  color: var(--ink-mute);
}
.legal-content code {
  font-family: var(--font-mono);
  background: var(--bg-soft);
  padding: 1px 6px;
  font-size: 0.9em;
}

.legal-foot {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.legal-back {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: var(--ink-mute);
  transition: color .2s, gap .25s;
}
.legal-back:hover {
  color: var(--ink);
  gap: 14px;
}

@media (max-width: 820px) {
  .legal-content { font-size: 14.5px; }
  .legal-content h2 { margin: 40px 0 12px; padding-top: 20px; }
  .legal-content table { font-size: 13px; }
  .legal-content table td:first-child { width: 40%; }
  .legal-content table th,
  .legal-content table td { padding: 10px 8px; }
}

/* 404 Error page */
.error-page {
  padding: 120px 0;
  min-height: 70vh;
  display: flex; align-items: center;
}
.error-page .ep-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.ep-num {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  margin-bottom: 32px;
}
.ep-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 24px;
  text-transform: uppercase;
}
.ep-title .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  color: var(--ink-mute);
}
.ep-text {
  font-size: 16px;
  color: var(--ink-mute);
  margin: 0 0 48px;
  line-height: 1.55;
}
.ep-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px;
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn-ghost:hover {
  background: var(--ink); color: var(--on-dark); border-color: var(--ink);
  transform: translateY(-1px);
}
@media (max-width: 480px) {
  .error-page { padding: 80px 0; }
  .ep-text { font-size: 14px; }
}

/* Footer-bottom: правая ячейка с двумя legal-ссылками */
.fb-legal {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.fb-legal a {
  transition: color .2s;
}
.fb-legal a:hover { color: var(--on-dark) !important; }
@media (max-width: 600px) {
  .fb-legal { gap: 4px 8px; font-size: 11px; }
}

/* ===================================================================
 * V11 — Visible H1 in hero (replaces visually-hidden H1)
 * H1 теперь видимый компактный заголовок справа в meta-строке.
 * SEO: содержит primary keywords. AI-friendly: extractable как definition.
 * Эстетика slider-only hero сохраняется — H1 не баннер, а тонкая строка.
 * =================================================================== */

.hero-meta--top {
  align-items: flex-end !important;
}
.hero-h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--ink);
  text-align: right;
  max-width: 60%;
  text-transform: none;
}
.hero-h1 .dim {
  color: var(--ink-mute);
  font-weight: 400;
}
@media (max-width: 820px) {
  .hero-meta--top {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 6px !important;
  }
  .hero-h1 {
    text-align: left;
    max-width: 100%;
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .hero-h1 { font-size: 12.5px; }
}
