/* plumbing.css — склейка tokens, base, header, hero, sections, case, pricing, form, team, footer (в этом порядке), 06.10.2026.
   Исходные файлы оставлены рядом; правки — в этот файл. */
/* ==========================================================================
   Design tokens — plumbing-ie landing
   ========================================================================== */
:root {
  /* Colors */
  --bg: #FFFFFF;
  --bg-soft: #F5F7FA;
  --ink: #0B1220;
  --ink-2: #4B5563;
  --line: #E5E7EB;
  --brand: #1D4ED8;      /* больше не используется в вёрстке — заказчик отказался от синего, оставлено только определение */
  --accent: #FF7F1A;     /* safety orange: только кнопки действия */
  --accent-text: #E8690B; /* оранжевый для текста/иконок на белом фоне, ≥3:1 на крупном тексте */
  --accent-ink: #0F172A;
  --wa: #25D366;
  --wa-ink: #0B1220;

  /* Shape */
  --radius-media: 8px;   /* media 8 / buttons & controls 10 / cards & modals 16 */
  --radius: 10px;
  --radius-card: 16px;

  /* Layout */
  --container: 1180px;
  --gutter: 20px;

  /* Header */
  --header-h: 72px;
  --header-h-mobile: 60px;
  --contact-bar-h: 56px;

  /* Motion */
  --motion-fast: 160ms;
}

/* ==========================================================================
   Base — font, reset, typography, buttons, section placeholders
   ========================================================================== */

/* ---------- Font ---------- */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/InterVariable-latin.woff2') format('woff2'); /* латиница, 105 КБ вместо 352 */
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
svg { display: block; }

/* body scroll lock while the mobile menu is open */
body.menu-open { overflow: hidden; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
}
.btn svg { flex: none; }
/* WhatsApp: узнаётся по зелёной иконке, заливка белая — на странице один акцент (оранжевый) */
.btn-wa {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-wa svg { color: var(--wa); }
.btn-wa:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #F2711A; }
.btn-outline {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-lg {
  height: 52px;
  padding: 0 22px;
  font-size: 16px;
}

/* ---------- Section placeholders (temporary, until real sections land) ---------- */
main section.placeholder {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  padding: 0 var(--gutter);
  text-align: center;
}
main section.placeholder:last-child { border-bottom: none; }
main section.placeholder h2 {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-2);
}

/* ==========================================================================
   Site header + mobile menu + mobile contact bar
   ========================================================================== */

.site-header {
  position: static;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ---------- Brand (logo + divider + tagline) ---------- */
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 0;
}

.site-header__logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-header__logo-img {
  height: 28px;
  width: auto;
}

.site-header__divider {
  width: 1px;
  height: 20px;
  background: var(--line);
  flex: none;
}

.site-header__tagline {
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ---------- Primary nav (desktop, centered) ---------- */
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1 1 auto;
  justify-content: center;
}

.site-header__nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.site-header__nav a:hover {
  color: var(--accent-text);
}

/* ---------- Actions (desktop buttons) ---------- */
.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.site-header__actions svg { color: inherit; }

/* ---------- Burger (mobile/tablet only) ---------- */
.site-header__burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--ink);
  flex: none;
}

.site-header__burger:hover { background: var(--bg-soft); }

.site-header__burger-icon .burger-line {
  transition: transform var(--motion-fast) ease, opacity var(--motion-fast) ease;
  transform-origin: center;
}

.site-header__burger[aria-expanded="true"] .burger-line-top {
  transform: translateY(6px) rotate(45deg);
}
.site-header__burger[aria-expanded="true"] .burger-line-mid {
  opacity: 0;
}
.site-header__burger[aria-expanded="true"] .burger-line-bottom {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Mobile menu panel ---------- */
.mobile-menu {
  display: none;
}

/* ---------- Mobile contact bar (fixed, bottom) ---------- */
.contact-bar {
  display: none;
}

/* ==========================================================================
   ≥1024px — hide the tagline earlier than the burger switch (per spec)
   ========================================================================== */
@media (max-width: 1199.98px) {
  .site-header__brand .site-header__divider,
  .site-header__brand .site-header__tagline {
    display: none;
  }
}

/* ==========================================================================
   <1024px — tablet & mobile header
   ========================================================================== */
@media (max-width: 1023.98px) {
  .site-header__bar {
    height: var(--header-h-mobile);
  }

  .site-header__logo-img {
    height: 24px;
  }

  .site-header__nav,
  .site-header__actions {
    display: none;
  }

  .site-header__burger {
    display: flex;
  }

  /* sticky only while the mobile menu is open */
  .site-header.is-open {
    position: sticky;
    top: 0;
    z-index: 50;
  }

  /* ---------- Mobile menu panel ---------- */
  .mobile-menu {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 var(--line);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease, visibility 0s linear var(--motion-fast);
  }

  .site-header.is-open .mobile-menu {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: opacity var(--motion-fast) ease, transform var(--motion-fast) ease;
  }

  .mobile-menu__nav {
    display: flex;
    flex-direction: column;
  }

  .mobile-menu__nav a {
    height: 52px;
    display: flex;
    align-items: center;
    padding: 0 var(--gutter);
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu__actions {
    display: flex;
    gap: 10px;
    padding: var(--gutter);
  }

  .mobile-menu__actions .btn {
    flex: 1 1 0;
  }

  /* ---------- Mobile contact bar ---------- */
  .contact-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    border-top: 1px solid var(--line);
    height: calc(var(--contact-bar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 30;
  }

  .contact-bar .btn {
    flex: 1 1 0;
    height: var(--contact-bar-h);
    border-radius: 0;
  }

  .contact-bar .btn-wa { border: 0; }
  .contact-bar .btn-outline {
    border: 0;
    border-left: 1px solid var(--line);
  }

  /* clearance so page content is never hidden behind the fixed bar */
  body {
    padding-bottom: calc(var(--contact-bar-h) + env(safe-area-inset-bottom));
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .site-header.is-open .mobile-menu,
  .site-header__burger-icon .burger-line {
    transition: none !important;
  }
}

/* при открытом мобильном меню нижняя панель не нужна — кнопки уже в меню */
body.menu-open .contact-bar { display: none; }

/* ==========================================================================
   Hero section (#top)
   ========================================================================== */

.hero {
  min-height: 0;
  display: block;
  text-align: left;
  padding: 72px 0 56px;
}

.hero__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
}

.hero__content {
  grid-column: 1 / 8;
}

.hero__media {
  grid-column: 9 / 13;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
}

/* ---------- Title / subtitle ---------- */
.hero__title {
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

/* H1 — поисковый запрос, строкой над крупным утверждением про кейс (SEO ТЗ 06.10) */
.hero__kicker {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.hero__num {
  color: var(--accent-text);
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 560px;
  margin-top: 20px;
}

/* ---------- CTA row ---------- */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__cta .btn {
  transition: transform var(--motion-fast) ease, opacity var(--motion-fast) ease;
}

.hero__cta .btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.hero__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- Video ---------- */
.hero__video-circle {
  position: relative;
  width: 360px;
  height: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}

.hero__video-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg-soft);
}

.hero__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--motion-fast) ease, opacity var(--motion-fast) ease;
}

.hero__play svg {
  margin-left: 2px; /* optical centering of the triangle */
}

.hero__play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.hero__video-circle.is-playing .hero__play {
  display: none;
}

.hero__video-circle.is-playing { cursor: pointer; }

/* Субтитры рисуем сами под кругом: нативные cue рендерятся внизу видео и режутся круглой маской */
.hero__subs {
  display: none;
  margin: 16px auto 0;
  max-width: 400px;
  min-height: 62px; /* две строки — не прыгает на однострочных репликах */
  padding: 9px 14px;
  border-radius: var(--radius-media);
  background: var(--bg-soft);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  text-align: center;
  white-space: pre-line; /* перенос строки задан в .vtt: каждое предложение с новой строки */
}

.hero__subs.is-active {
  display: block;
}

.hero__orig {
  display: block;
  margin: 10px auto 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  text-align: center;
}

.hero__orig:hover {
  color: var(--ink);
}

.hero__note-video {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ink-2);
  text-align: center;
}

.hero__video-caption {
  text-wrap: balance;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
  text-align: center;
}

/* ---------- Stats strip ---------- */
.hero__stats {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero__stat {
  padding: 0 24px;
  border-left: 1px solid var(--line);
}

.hero__stat:first-child {
  padding-left: 0;
  border-left: none;
}

.hero__stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hero__stat-label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-2);
}

/* ==========================================================================
   768–1023px — tablet
   ========================================================================== */
/* 1024–1199: правая колонка уже, круг 360 вылезал на 7px */
@media (min-width: 1024px) and (max-width: 1199.98px) {
  .hero__video-circle { width: 320px; height: 320px; }
}

@media (max-width: 1023.98px) {
  .hero__grid {
    display: block;
  }

  .hero__media {
    align-items: flex-start;
    margin-top: 32px;
  }

  .hero__video-caption {
    text-align: left;
  }

  .hero__note-video {
    text-align: left;
  }

  .hero__video-circle {
    width: 320px;
    height: 320px;
  }
}

/* ==========================================================================
   <768px — mobile
   ========================================================================== */
@media (max-width: 767.98px) {
  .hero {
    padding: 36px 0 40px;
  }

  .hero__subtitle {
    font-size: 17px;
  }

  .hero__cta {
    flex-direction: column;
    gap: 10px;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .hero__media {
    align-items: center;
    margin-top: 28px;
  }

  .hero__video-caption {
    text-align: center;
  }

  .hero__note-video {
    text-align: center;
  }

  .hero__video-circle {
    width: 280px;
    height: 280px;
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
  }

  .hero__stat {
    border-left: none;
    padding: 0;
  }

  .hero__stat:nth-child(odd) {
    padding-right: 24px;
  }

  .hero__stat:nth-child(even) {
    padding-left: 24px;
    border-left: 1px solid var(--line);
  }

  .hero__note {
    white-space: nowrap;
    font-size: clamp(10.5px, 2.95vw, 13px);
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero__cta .btn,
  .hero__play {
    transition: none !important;
  }
}

/* ---------- кнопка звука: стеклянный круг по центру видео, только иконка ---------- */
.hero__play {
  top: 50%;
  left: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 24px rgba(0, 0, 0, .18);
  color: #fff;
  transition: background var(--motion-fast) ease, transform var(--motion-fast) ease;
}
.hero__play svg { width: 26px; height: 26px; margin: 0; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.hero__play-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero__play:hover { transform: translate(-50%, -50%) scale(1.06); background: rgba(255, 255, 255, .34); }
.hero__play:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hero__video-circle.is-playing .hero__play { display: flex; }
.hero__video-circle.is-sound .hero__play { opacity: 0; }
.hero__video-circle.is-sound:hover .hero__play { opacity: 1; }
.hero__subs { display: block; background: transparent; padding: 6px 0 0; color: var(--ink-2); font-size: 14px; }

/* ==========================================================================
   Sections — "who we are" strip + "Sound familiar?"
   (sit between hero #top and the #results placeholder)
   ========================================================================== */

/* ---------- Who strip ---------- */
.who {
  display: block;
  min-height: 0;
  text-align: left;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.who__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.who__mark {
  flex: none;
  width: 28px;
  height: 28px;
}

.who__text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.who__text strong {
  font-weight: 600;
}
/* каждая фраза с новой строки на всех экранах (решение заказчика) */
.who__line { display: block; }

/* ---------- Sound familiar? ---------- */
/* ---------- Sound familiar: сплошной текст, без карточек ---------- */
.familiar {
  padding: 72px 0 80px;
}
.familiar__title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  text-wrap: balance;
}
.familiar__text {
  max-width: 680px;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  text-wrap: pretty;
}
.familiar__text p + p {
  margin-top: 16px;
}
.familiar__text strong {
  font-weight: 600;
  color: var(--ink);
}
.familiar__closing {
  font-weight: 600;
}
/* Line-break spans injected into the two "Sound familiar?" paragraphs —
   inline on desktop (text flows exactly as before), forced one-per-line
   on phones (see mobile override below). */
.familiar__text .ln {
  display: inline;
}
@media (max-width: 767.98px) {
  .familiar { padding: 48px 0 56px; }
  .familiar__text { font-size: 17px; margin-top: 16px; }
  .familiar__text .ln {
    display: block;
    white-space: nowrap;
  }
  .familiar__text p {
    font-size: clamp(11px, 3.05vw, 15px);
    line-height: 1.55;
  }
}

/* ---------- Generic scroll-reveal ("rise into view") ---------- */
html.js [data-reveal] > .reveal-item {
  opacity: 0;
  transform: translateY(50px);
  transition: transform 1.2s cubic-bezier(.2, .9, .25, 1.05), opacity .5s ease-out;
  transition-delay: calc(var(--i, 0) * 0.12s);
}
html.js [data-reveal].is-in > .reveal-item {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] > .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0s;
  }
}

/* ==========================================================================
   Case study — Ivo, IvO Plumbing
   One reading column, hairline rules, a strip of real screenshots opened
   in a lightbox. No cards, no eyebrow, no gradients.
   ========================================================================== */

#results.case {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px 0 80px;
}

.case__col {
  max-width: 820px;
}

/* ---------- Title / context ---------- */
.case__title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.case__context {
  margin-top: 12px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- WebGL carousel (progressive enhancement over the strip) ---------- */
.case__carousel {
  position: relative;
  overflow: hidden;
  height: 560px;
  outline: none;
}
.case__carousel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.case__carousel[hidden] {
  display: none;
}
.case__after-carousel {
  padding-top: 36px;
}
.case__carousel-mount {
  position: absolute;
  inset: 0;
}
.case__carousel-title {
  position: absolute;
  left: 50%;
  top: 4.5%;
  transform: translateX(-50%);
  margin: 0;
  width: min(92%, 720px);
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.case__carousel-counter {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}
.case__carousel-cursor {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  mix-blend-mode: exclusion;
  pointer-events: none;
  z-index: 3;
}
.case__carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  z-index: 3;
  transition: border-color var(--motion-fast, 160ms) ease;
}
.case__carousel-arrow:hover {
  border-color: var(--ink);
}
.case__carousel-arrow--prev {
  left: 16px;
}
.case__carousel-arrow--next {
  right: 16px;
}
@media (hover: none) {
  .case__carousel-arrow {
    display: none;
  }
}
@media (min-width: 640px) {
  .case__carousel-title { font-size: 17px; }
  .case__carousel-counter { font-size: 15px; }
}
@media (min-width: 1024px) {
  .case__carousel { height: 700px; }
}
/* Phones: force the active caption onto one line — case-carousel.js swaps
   in a short caption below 768px and shrinks font-size until it fits. */
@media (max-width: 767.98px) {
  .case__carousel-title {
    font-size: 14px;
    white-space: nowrap;
    width: calc(100% - 32px);
    max-width: 720px;
    overflow: visible;
  }
}

/* ---------- Screenshot strip ---------- */
.case__shots[hidden] {
  display: none;
}
.case__shots {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 24px;
  padding-bottom: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  margin-right: calc(-1 * max(0px, min(100vw - (var(--gutter) * 2), var(--container) - (var(--gutter) * 2)) - 820px));
}
.case__shot {
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.case__shot-btn {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.case__shot-btn img {
  display: block;
  height: 280px;
  width: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-media);
  background: #fff;
}
.case__shot figcaption {
  margin-top: 8px;
  max-width: 260px;
  font-size: 13px;
  color: var(--ink-2);
}

/* ---------- Links / note ---------- */
.case__links {
  margin-top: 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.case__links a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.case__links a:hover {
  color: var(--accent-text);
}
.case__sep {
  color: var(--ink-2);
}
.case__note {
  margin-top: 14px;
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- "What we did, step by step" ---------- */
.case__more {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.case__more summary {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.case__more summary::-webkit-details-marker {
  display: none;
}
.case__more summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
.case__more[open] summary::after {
  transform: rotate(-135deg);
}

.case__steps {
  counter-reset: step;
  margin-top: 16px;
}
.case__steps li {
  position: relative;
  max-width: 62ch;
  margin-top: 14px;
  padding-left: 40px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.case__steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.case__steps b {
  font-weight: 600;
}
.case__steps a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.case__steps a:hover {
  color: var(--accent-text);
}

/* ---------- CTA ---------- */
.case__cta {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.case__cta h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.case__cta p {
  margin-top: 10px;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}
.case__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.case__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
  #results.case { padding: 48px 0 56px; }
  .case__col { max-width: 100%; }
  .case__title { font-size: clamp(26px, 7vw, 32px); }
  .case__carousel { height: 116vw; max-height: 560px; }
  .case__after-carousel { padding-top: 24px; }

  .case__shot-btn img { height: 210px; }

  .case__links a { display: block; margin-top: 10px; }
  .case__links a:first-child { margin-top: 0; }
  .case__sep { display: none; }

  .case__cta-actions { flex-direction: column; }
  .case__cta-actions .btn { width: 100%; }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lb {
  background: #fff;
  border: 0;
  border-radius: var(--radius-card);
  padding: 0;
  max-width: min(96vw, 1600px);
  max-height: 92vh;
  box-shadow: 0 20px 60px rgba(11, 18, 32, .35);
}
.lb::backdrop {
  background: rgba(11, 18, 32, .78);
}
.lb__body {
  max-height: calc(92vh - 52px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
}
.lb__img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  cursor: zoom-in;
}
.lb__img.is-zoomed {
  max-width: none;
  max-height: none;
  width: var(--lb-natural-w, auto);
  cursor: zoom-out;
}
.lb__cap {
  padding: 12px 16px 16px;
  font-size: 13px;
  color: var(--ink-2);
}
.lb__hint {
  display: none;
}
.lb__close,
.lb__prev,
.lb__next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  z-index: 2;
}
.lb__close {
  top: 12px;
  right: 12px;
}
.lb__prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.lb__next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.lb__prev[hidden],
.lb__next[hidden] {
  display: none;
}
body.lb-open {
  overflow: hidden;
}

@media (max-width: 899.98px) {
  .lb__hint {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Pricing — three packages, middle one emphasised, first-month/full toggle
   ========================================================================== */

.pricing {
  background: var(--bg);
  padding: 72px 0 80px;
}

/* ---------- Head: title, lede, toggle ---------- */
.pricing__head {
  text-align: center;
}

.pricing__title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.pricing__lede {
  margin: 14px auto 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}

.pricing__lede-line {
  display: block;
}

.pricing__switch-row {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pricing__switch {
  flex: none;
  position: relative;
  width: 44px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: var(--line);
  cursor: pointer;
  transition: background var(--motion-fast) ease;
}

.pricing__switch[aria-checked="true"] {
  background: var(--accent);
}

.pricing__switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 18, 32, .25);
  transition: transform var(--motion-fast) ease;
}

.pricing__switch[aria-checked="true"] .pricing__switch-thumb {
  transform: translateX(20px);
}

.pricing__switch-label {
  font-size: 15px;
  color: var(--ink);
}

.pricing__save {
  color: var(--accent-text);
  font-weight: 600;
}

/* ---------- Tiers ---------- */
.pricing__tiers {
  max-width: 1080px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  perspective: 1200px;
}

.tier {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.tier--featured {
  border: 2px solid var(--accent);
  position: relative;
  z-index: 1;
}

.tier__tab {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 0 14px 0 12px;
}

.tier__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
}

.tier__price {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.tier__currency {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}

.tier__amount {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.tier__period {
  font-size: 14px;
  color: var(--ink-2);
  margin-left: 2px;
}

.tier__sub {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-2);
}

.tier__list {
  text-align: left;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.tier__list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
}

.tier__list svg {
  flex: none;
  margin-top: 3px;
  color: var(--accent-text);
}

.tier hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  margin: auto 0 16px;
}

.tier__btn {
  width: 100%;
}

.tier__desc {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Entrance motion (sideways rotation, every width — client's corrected spec) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .tier {
    transform: rotateY(-22deg);
    transform-origin: center;
    opacity: 1;
    transition: transform 1.2s cubic-bezier(.2, .9, .25, 1.05);
  }

  .tier:nth-child(1) { transition-delay: 0s; }
  .tier:nth-child(2) { transition-delay: .08s; }
  .tier:nth-child(3) { transition-delay: .16s; }

  .pricing__tiers.is-in .tier {
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 768px) {
  .pricing__tiers.is-in .tier:nth-child(1) {
    transform: translateX(30px) scale(.94) rotateY(10deg);
    transform-origin: right center;
  }

  .pricing__tiers.is-in .tier:nth-child(2) {
    transform: translateY(-20px);
  }

  .pricing__tiers.is-in .tier:nth-child(3) {
    transform: translateX(-30px) scale(.94) rotateY(-10deg);
    transform-origin: left center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tier {
    transform: none;
    transition: none;
  }
}

/* ---------- Terms ---------- */
.pricing__terms {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: left;
}

.pricing__terms p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-top: 12px;
}

.pricing__terms p:first-child {
  margin-top: 0;
}

.pricing__terms strong {
  font-weight: 600;
}

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
  .pricing {
    padding: 48px 0 56px;
  }
  .pricing__title {
    font-size: clamp(26px, 7vw, 32px);
  }

  /* Horizontal, swipeable row — one card mostly visible, next peeking,
     so the block takes one screen instead of three stacked cards. */
  .pricing__tiers {
    display: flex;
    align-items: stretch;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 var(--gutter) 8px;
    margin: 28px calc(-1 * var(--gutter)) 0;
    max-width: none;
    perspective: none;
  }
  .pricing__tiers::-webkit-scrollbar {
    display: none;
  }

  .tier {
    flex: 0 0 82%;
    scroll-snap-align: center;
    /* no entrance rotation on phones — the swipeable row is the motion */
    transform: none;
    transition: none;
  }

  .pricing__swipe-hint {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
    color: var(--ink-2);
  }
}

@media (max-width: 360px) {
  .tier {
    flex-basis: 86%;
  }
}

@media (min-width: 768px) {
  .pricing__swipe-hint {
    display: none;
  }
}

/* ---------- Small phones: exact one-line title and lede sentences ---------- */
@media (max-width: 479.98px) {
  .pricing__title {
    font-size: 5vw;
    white-space: nowrap;
    letter-spacing: -0.02em;
  }
  .pricing__lede-line {
    white-space: nowrap;
    font-size: 2.85vw;
    line-height: 1.6;
  }
}

/* гарантия — сразу под переключателем, до цен */
.pricing__guarantee { margin: 14px auto 0; max-width: 560px; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink); }
@media (max-width: 480px) { .pricing__guarantee { font-size: 14px; } }

/* ==========================================================================
   Lead form — replaces "Call now"; the one place visitors leave details
   ========================================================================== */

.lead {
  background: var(--bg);
  padding: 72px 0 80px;
}

.lead__col {
  max-width: 560px;
}

.lead__title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.lead__lede {
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Form ---------- */
.lead__form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lead__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lead__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.lead__label em {
  font-weight: 400;
  font-style: normal;
  color: var(--ink-2);
}

.lead__field input,
.lead__field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 16px; /* 16px keeps iOS from zooming in on focus */
  line-height: 1.4;
}

.lead__field textarea {
  min-height: auto;
  resize: vertical;
}

.lead__field input:focus-visible,
.lead__field textarea:focus-visible {
  border-color: var(--ink);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Hint under an input ---------- */
.lead__hint {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 6px;
}

/* ---------- Choice: one required pick, stacked rows ---------- */
.lead__choice {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lead__choice legend {
  padding: 0;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.lead__opt {
  position: relative;
  display: flex;
}

.lead__opt input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lead__opt-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px 12px 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  cursor: pointer;
  min-height: 56px;
  justify-content: center;
}

.lead__opt-box::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink-2);
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}

.lead__opt-box::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}

.lead__opt-box strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.lead__opt-box small {
  font-size: 13px;
  color: var(--ink-2);
}

.lead__opt input:checked + .lead__opt-box {
  border-color: var(--accent);
  background: #FFF3E8;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.lead__opt input:checked + .lead__opt-box::before {
  border-color: var(--accent);
}

.lead__opt input:checked + .lead__opt-box::after {
  opacity: 1;
}

.lead__opt input:checked + .lead__opt-box strong {
  color: var(--accent-text);
}

@media (hover: hover) {
  .lead__opt input:not(:checked) + .lead__opt-box:hover {
    border-color: var(--ink);
  }
}

.lead__opt input:focus-visible + .lead__opt-box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lead__choice.is-invalid .lead__opt-box {
  border-color: #B42318;
}

.lead__choice-error {
  margin: 0;
  font-size: 14px;
  color: #B42318;
}

/* honeypot — hidden from everyone but bots */
.lead__hp {
  position: absolute;
  left: -9999px;
}

.lead__submit {
  width: 100%;
}

.lead__note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-top: 10px;
}

.lead__status {
  font-size: 15px;
  margin-top: 12px;
  min-height: 1px;
}

.lead__status.is-ok {
  color: var(--ink);
  font-weight: 600;
}

.lead__status.is-err {
  color: #B42318;
}

.lead__status a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* once sent: hide the fields, keep the status message */
.lead__form.is-sent .lead__field,
.lead__form.is-sent .lead__choice,
.lead__form.is-sent .lead__hp,
.lead__form.is-sent .lead__submit,
.lead__form.is-sent .lead__note {
  display: none;
}

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
  .lead {
    padding: 48px 0 56px;
  }
  .lead__submit {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .lead__submit {
    width: auto;
  }
}

/* ---------- «Check if my town is free» — мини-форма в hero и после кейса ---------- */
.town-form { margin-top: 26px; max-width: 640px; }
.town-form__row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
.town-form__row input {
  width: 100%; min-width: 0; height: 52px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg);
  font: inherit; font-size: 16px; color: var(--ink);
}
.town-form__row input::placeholder { color: var(--ink-2); opacity: .8; }
.town-form__row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.town-form__submit { height: 52px; white-space: nowrap; }
.town-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.town-form__note { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.town-form__status { margin: 8px 0 0; font-size: 14px; min-height: 0; }
.town-form__status:empty { display: none; }
.town-form__status.is-ok { color: var(--ink); font-weight: 600; }
.town-form__status.is-err { color: #B42318; }
.town-form__status a { color: inherit; text-decoration: underline; }
.town-form__alt { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.town-form__alt a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.town-form.is-sent .town-form__row, .town-form.is-sent .town-form__note, .town-form.is-sent .town-form__alt { display: none; }
.case__cta .town-form { margin-left: auto; margin-right: auto; }
@media (max-width: 720px) {
  .town-form__row { grid-template-columns: 1fr; }
  .town-form__submit { width: 100%; }
}

/* ==========================================================================
   Team — Mikhail and Kirill
   Two videos, real bios, no eyebrow labels, roles as plain 15px text.
   ========================================================================== */

#team.team {
  background: var(--bg);
  padding: 72px 0 80px;
}

.team__col {
  max-width: 820px;
}

.team__title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.team__lede {
  margin-top: 12px;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Grid / cards ---------- */
.team__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 36px;
}

.team__media {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--bg-soft);
}
.team__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team__name {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.team__role {
  margin-top: 6px;
  font-size: 15px;
  color: var(--ink-2);
}
.team__lead {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.team__body p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

/* ---------- "Read more" ---------- */
.team__more[hidden] {
  display: none;
}
.team__more {
  margin-top: 4px;
}
.team__list {
  margin-top: 10px;
}
.team__list li {
  position: relative;
  margin-top: 8px;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.team__list li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  color: var(--ink-2);
}
.team__label {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.team__more p {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}

.team__toggle {
  display: inline-block;
  margin-top: 16px;
  background: none;
  border: none;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink);
  cursor: pointer;
}
.team__toggle:hover {
  color: var(--accent-text);
}

/* ---------- Mobile ---------- */
@media (max-width: 767.98px) {
  #team.team { padding: 48px 0 56px; }
  .team__title { font-size: clamp(26px, 7vw, 32px); }
  .team__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================================================
   Contact marquee strip
   Ported 1:1 from mirror/site/vsl (data-ct-marquee / .ct-link / .ct-cursor),
   recoloured to our tokens. Structure and motion are untouched.
   ========================================================================== */
.contact-strip {
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: var(--bg);
  padding: 20px 0 56px;
}
@media (min-width: 640px) {
  .contact-strip { padding: 40px 0 80px; }
}

.contact-strip__row {
  display: flex;
  align-items: center;
  width: 100%;
}

.contact-strip__marquee {
  display: flex;
  width: max-content;
  will-change: transform;
}
.contact-strip__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}
.contact-strip__item {
  padding: 0 0.4em;
  font-weight: 800;
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.ct-slash {
  padding: 0 0.4em;
  font-weight: 300;
  color: rgba(11, 18, 32, 0.8);
}

@keyframes ct-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.ct-marquee.is-anim {
  animation: ct-marquee 22s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .ct-marquee.is-anim { animation: none; }
}

/* ---------- Overlay: WhatsApp pill + click caption + cursor ---------- */
.ct-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  pointer-events: none;
}
.ct-wrap {
  position: relative;
}

.ct-link {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(11, 18, 32, 0.8);
  background: rgba(11, 18, 32, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 24px;
  transform: rotate(-6.48deg);
  transition: background-color 0.3s ease;
  text-decoration: none;
  pointer-events: auto;
}
@media (min-width: 640px) {
  .ct-link { padding: 14px 28px; }
}
.ct-link:hover {
  background: rgba(11, 18, 32, 0.13);
}
.ct-link span {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(11, 18, 32, 0.7);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
@media (min-width: 640px) {
  .ct-link span { font-size: 14px; }
}

.ct-click {
  position: absolute;
  right: 12px;
  top: calc(100% + 0.4rem);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(11, 18, 32, 0.9);
  transform: rotate(-6.48deg);
  pointer-events: none;
}

.ct-cursor-wrap {
  position: absolute;
  bottom: -28px;
  right: -20px;
  transform: rotate(-27deg);
  pointer-events: none;
}
@media (min-width: 640px) {
  .ct-cursor-wrap { bottom: -32px; right: -24px; }
}
.ct-cursor {
  display: block;
  width: 40px;
  height: auto;
  filter: drop-shadow(0 2px 15px rgba(11, 18, 32, 0.35));
  animation: ct-cursor 2.2s ease-out infinite;
  user-select: none;
}
@media (min-width: 640px) {
  .ct-cursor { width: 48px; }
}
@keyframes ct-cursor {
  0%, 42% { transform: translateY(0) scale(1); }
  52% { transform: translateY(5px) scale(0.9); }
  66%, 100% { transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .ct-cursor { animation: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  gap: 40px;
  padding: 56px var(--gutter) 0;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1.2fr; }
}

.footer__logo-link {
  display: inline-block;
}
.footer__logo {
  height: 32px;
  width: auto;
  display: block;
}
.footer__text {
  margin-top: 18px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.footer__meta {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}

.footer__heading {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.footer__list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__list a {
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
}
.footer__list a:hover {
  color: var(--ink);
}

.footer__contacts {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
}
.footer__contact-link:hover {
  color: var(--ink);
}
.footer__contact-link svg {
  flex: none;
  color: var(--accent-text);
}
.footer__contact-arrow {
  font-size: 15px;
  color: var(--accent-text);
}

/* ---------- Bottom bar ---------- */
.footer__bottom {
  margin-top: 40px;
  padding: 20px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 13px;
  color: var(--ink-2);
}
.footer__links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}
.footer__links a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__links a:hover {
  color: var(--ink);
}
.footer__totop {
  margin-left: auto;
}
@media (max-width: 767.98px) {
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__links { width: 100%; }
}

/* ---------- 404 wordmark ---------- */
.footer__wordmark {
  display: none;
}
@media (min-width: 1024px) {
  .footer__wordmark {
    display: block;
    padding: 0 var(--gutter) 16px;
  }
  .footer__wordmark-inner {
    max-width: 900px;
    margin: 0 auto;
  }
}

.ft-404 {
  display: block;
  width: 100%;
  height: auto;
}
.ft-404 text {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 5rem;
}
.ft-ghost {
  fill: transparent;
  stroke: var(--line);
  stroke-width: 0.3;
}
.ft-draw {
  fill: transparent;
  stroke: var(--accent);
  stroke-opacity: 0.4;
  stroke-width: 0.3;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 3.5s cubic-bezier(0.45, 0, 0.55, 1);
}
.ft-404.is-in .ft-draw {
  stroke-dashoffset: 0;
}
.ft-ember {
  fill: transparent;
  stroke: url(#footerGradient);
  stroke-width: 0.3;
}
.ft-404 #footerGradient stop {
  stop-opacity: 0;
  transition: stop-opacity 0.3s;
}
.ft-404.is-hover #footerGradient stop {
  stop-opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ft-draw {
    transition: none;
    stroke-dashoffset: 0;
  }
}

.nowrap { white-space: nowrap; }
.footer__text, .footer__meta, .footer__copy { text-wrap: pretty; }

