/* Центр Качества — landing 2026 */

:root {
  --ink: #0f0f0f;
  --ink-soft: #262626;
  --graphite: #3a3a3a;
  --muted: #6b6b6b;
  --line: rgba(15, 15, 15, 0.1);
  --bg: #f4f4f2;
  --bg-elevated: #fafaf8;
  --surface: #ffffff;
  --accent: #faca08;
  --accent-deep: #b8860b;
  --accent-soft: rgba(250, 202, 8, 0.12);
  --danger: #c2410c;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(15, 15, 15, 0.04);
  --header-h: 88px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  /* clip (not hidden) — keeps sticky working for card stack */
  overflow-x: clip;
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.is-nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 5.2vw, 3.55rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

address {
  font-style: normal;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 0.85rem 1.35rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
}

.btn--primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(15, 15, 15, 0.18);
}

.btn--ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--sm {
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 1.55rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.text-link-wrap {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: auto;
}

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.4s var(--ease);
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: #faca08;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.service .text-link:hover::after {
  transform: scaleX(0);
}

.service:hover .text-link::after {
  transform: scaleX(1);
}

.text-link .text-link__arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.service .text-link:hover .text-link__arrow {
  transform: none;
}

.service:hover .text-link .text-link__arrow {
  transform: translateX(4px);
}

.eyebrow,
.hero__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.eyebrow {
  font-size: 0.8rem;
}

.eyebrow::before,
.hero__brand::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section__head {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section__head--light {
  color: #fff;
}

.section__head--light h2 {
  color: #fff;
}

.section__head--light .eyebrow {
  color: #fff;
}

.section__head--light .eyebrow::before {
  background: var(--accent);
}

.section__lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

/* Header — always visible, soft state change on scroll */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  transition:
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease),
    border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header[data-scrolled="true"] {
  background: rgba(244, 244, 242, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(15, 15, 15, 0.06);
  border-bottom-color: rgba(15, 15, 15, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.logo__img {
  display: block;
  height: 64px;
  width: auto;
  max-width: min(240px, 62vw);
  object-fit: contain;
  transition: height 0.35s var(--ease);
}

.nav {
  display: none;
  gap: 1.35rem;
}

.nav > a {
  color: var(--graphite);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav > a:hover {
  color: var(--ink);
}

.nav__mobile-actions {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__phone {
  display: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (min-width: 769px) {
  .nav {
    display: flex;
    align-items: center;
  }

  .nav__mobile-actions {
    display: none !important;
  }

  .header__phone {
    display: inline;
  }

  .nav-toggle {
    display: none;
  }

  .header__actions .btn--sm {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .header__actions .btn--sm {
    display: none;
  }

  .nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: var(--bg);
    padding: 1.25rem 1.5rem 2.5rem;
    gap: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.is-open > a {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.25rem, 5.5vw, 1.65rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
    padding: 1rem 0;
    min-height: 48px;
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open .nav__mobile-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-top: auto;
    padding-top: 2rem;
  }

  .nav.is-open .nav__phone {
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    text-decoration: none;
    padding: 0.5rem 0;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: clamp(2.25rem, 6vw, 4.5rem) 0 clamp(2.75rem, 5vw, 4rem);
  overflow: hidden;
  background: #f4f4f2;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 15, 15, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 15, 15, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
}

.hero__content.container {
  width: min(100% - 2.5rem, 1280px);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.5rem;
}

.hero__main {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  width: 100%;
}

.hero__stats {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  width: 100%;
}

/* default / mobile: in-flow under copy */
.hero-illustration {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  pointer-events: none;
  background: transparent;
  z-index: 0;
}

.hero-illustration__img {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.hero-illustration__seal {
  position: absolute;
  right: 2%;
  bottom: 4%;
  width: min(34%, 168px);
  aspect-ratio: 1;
  z-index: 2;
  filter: drop-shadow(0 8px 18px rgba(15, 15, 15, 0.16))
    drop-shadow(0 2px 8px rgba(255, 255, 255, 0.9));
}

.hero-illustration__seal svg {
  display: block;
  width: 100%;
  height: auto;
}

/* desktop: illustration as right background, text keeps full readable width */
@media (min-width: 900px) {
  .hero__content {
    /* keep text from running under the art */
    padding-right: min(48%, 620px);
  }

  .hero-illustration {
    position: absolute;
    top: 50%;
    /* net ~5% right of container edge (was −15vw, then +10vw left) */
    right: max(-2vw, calc(50% - 640px - 5vw));
    width: min(56vw, 720px);
    margin: 0;
    z-index: 0;
    transform: translateY(-50%);
  }

  /* keep vertical center if reveal class is re-added later */
  .hero-illustration.reveal,
  .hero-illustration.reveal.is-visible {
    opacity: 1;
    transform: translateY(-50%);
  }
}

.hero__brand {
  font-family: var(--display);
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 1rem;
  letter-spacing: 0.14em;
}

.hero__title {
  max-width: 18ch;
  margin-bottom: 1rem;
}

.hero__lead {
  max-width: 38rem;
  color: var(--graphite);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin-bottom: 1.75rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 15, 15, 0.1);
  max-width: 36rem;
}

.hero__stats dt {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero__stats dd {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

/* Clients logos — CSS only, no JS ever touches this */
.clients {
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.clients .clients__label {
  color: var(--muted);
  margin-bottom: 1.75rem;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.marquee:hover .logos-track {
  animation-play-state: paused;
}

.logos-track {
  display: flex;
  width: max-content;
  animation: scroll-logos 40s linear infinite;
}

.logos-track__group {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-inline: 28px;
  flex: 0 0 auto;
}

.logos-track__group img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.25s ease, opacity 0.25s ease;
  /* no transform here — scale on children breaks parent CSS translate animation */
}

.logos-track__group img:hover {
  filter: none;
  opacity: 1;
}

@keyframes scroll-logos {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logos-track {
    animation: none !important;
  }

  .marquee {
    overflow-x: auto;
  }
}

/* Services */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  overflow: visible;
}

@media (min-width: 769px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service--featured {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service--featured {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.7rem;
  padding: 1.6rem 1.45rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 100%;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 4px 18px rgba(15, 15, 15, 0.04);
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}

.service > .text-link-wrap {
  margin-top: auto;
}

.service:hover,
.service.reveal.is-visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 15, 15, 0.1);
  border-color: rgba(15, 15, 15, 0.14);
}

.service__deco {
  position: absolute;
  right: -10px;
  bottom: -8px;
  width: 150px;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

.service__deco--swoosh {
  /* stroke ends before the viewBox edge, so push the tip past the card */
  right: -34px;
  bottom: -10px;
}

.service__deco--double {
  width: 132px;
}

.service__deco--flick {
  width: 120px;
  right: -10px;
  bottom: -10px;
}

.service__deco--dashed {
  width: 122px;
  right: -10px;
  bottom: -8px;
}

.service__deco--loop {
  width: 110px;
  right: -10px;
  bottom: -10px;
}

.service > *:not(.service__deco) {
  position: relative;
  z-index: 1;
}

.service p {
  color: var(--muted);
  font-size: 0.95rem;
}

.service__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  margin-bottom: 0.2rem;
  flex-shrink: 0;
  box-shadow: none;
}

.service__icon svg {
  width: 24px;
  height: 24px;
}

/* Featured — opaque warm cream, not a yellow wash over gray */
.service--featured {
  display: grid;
  overflow: visible;
  padding: 32px;
  background: linear-gradient(135deg, #ffffff 0%, #fffbea 55%, #fff3c4 100%);
  border: 1.5px solid #faca08;
  color: var(--ink);
  box-shadow: 0 8px 30px rgba(250, 202, 8, 0.12);
}

.service--featured:hover {
  background: linear-gradient(135deg, #ffffff 0%, #fffbea 55%, #fff3c4 100%);
  border-color: #faca08;
  box-shadow: 0 12px 34px rgba(250, 202, 8, 0.18);
}

.service--featured p,
.service--featured .service__desc {
  flex: 0 0 auto;
  color: var(--ink);
}

.service--featured h3 {
  color: var(--ink);
  margin: 0;
}

.service--featured .service__icon {
  background: var(--accent);
  color: var(--ink);
  margin-bottom: 0;
  box-shadow: none;
}

.service__featured-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.service__featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  min-height: 100%;
  height: 100%;
}

.service__featured-top,
.service__featured-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.service__featured-bottom {
  gap: 1rem;
  margin-top: 28px;
  flex: 1;
  width: 100%;
}

.service__featured-bottom .text-link-wrap {
  margin-top: auto;
}

.service__tag {
  display: inline-block;
  align-self: flex-start;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.service__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--graphite);
  max-width: 38ch;
}

.service__bullets {
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service__bullets li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
}

.service__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.service__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0 0;
  background: transparent;
  border-radius: 0;
  min-height: 0;
  height: 100%;
}

.service--featured .service__sparks {
  position: absolute;
  right: 4%;
  top: 0;
  width: 56px;
  height: 56px;
  opacity: 1;
  z-index: 3;
  pointer-events: none;
}

.service__visual-stage {
  position: relative;
  width: min(100%, 460px);
  display: grid;
  place-items: center;
}

.service__process-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
  transform: scale(1.32);
  animation: serviceProcessFloat 4s ease-in-out infinite;
}

.service__visual-caption {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.6;
  text-align: center;
}

@keyframes serviceProcessFloat {
  0%,
  100% {
    transform: translateY(0) scale(1.32);
  }
  50% {
    transform: translateY(-10px) scale(1.32);
  }
}

@keyframes serviceProcessFloatMobile {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .service__process-img {
    animation: none;
    transform: scale(1.32);
  }

  .contacts__deco {
    animation: none;
    transform: translateY(-50%);
  }
}

/* Why */
.why {
  background: var(--bg);
  border-block: 1px solid var(--line);
}

.why__grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .why__grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
    gap: 2.5rem 3rem;
  }
}

.why__aside .section__head {
  margin-bottom: 1.5rem;
  max-width: 34rem;
}

.why__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why__card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem 1.15rem;
  align-items: center;
  padding: 1.75rem 1.85rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(15, 15, 15, 0.04);
}

.why__num {
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.why__card-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.why__card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.why__card-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  flex-shrink: 0;
}

.why__card-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
  pointer-events: none;
}

.why__card-badge {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(250, 202, 8, 0.15);
}

.why__card-badge svg {
  width: 28px;
  height: 28px;
}

.why__blob {
  position: absolute;
  right: -48px;
  bottom: -58px;
  width: 200px;
  height: 190px;
  background: #faca08;
  opacity: 0.15;
  border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%;
  pointer-events: none;
  z-index: 0;
}

.why__compare {
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1.6rem 1.5rem 1.5rem;
  max-width: 28rem;
  background:
    linear-gradient(145deg, rgba(250, 202, 8, 0.1) 0%, rgba(250, 202, 8, 0.02) 55%, #fff 100%);
  border-radius: 20px;
  border: 1px solid rgba(250, 202, 8, 0.28);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.why__compare-row,
.why__zero {
  position: relative;
  z-index: 1;
}

.why__compare-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.why__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(15, 15, 15, 0.12);
  color: var(--ink);
}

.why__chip--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(250, 202, 8, 0.25);
}

.why__arrow {
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
}

.why__zero {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  background: rgba(244, 244, 242, 0.9);
  border: 1px solid rgba(15, 15, 15, 0.06);
  border-radius: 14px;
  align-self: flex-start;
}

.why__zero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.why__zero-icon svg {
  width: 22px;
  height: 22px;
}

.why__zero-text {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
}

.why__zero-digit {
  font-family: var(--display);
  font-size: clamp(2.35rem, 4.5vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
}

.why__zero-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--graphite);
  line-height: 1.25;
}

@media (max-width: 768px) {
  .why__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
  }

  .why__card {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    z-index: 1;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "num title icon"
      "desc desc desc";
    align-items: start;
    column-gap: 0.75rem;
    row-gap: 0.7rem;
    padding: 1.25rem 1.15rem;
    /* transform breaks sticky — keep cards in flow for stack */
    transform: none;
    box-shadow:
      0 -8px 24px rgba(0, 0, 0, 0.08),
      0 4px 20px rgba(0, 0, 0, 0.06),
      0 0 0 1px rgba(15, 15, 15, 0.04);
  }

  .why__card.reveal {
    transform: none;
  }

  .why__card:nth-child(1) {
    top: calc(var(--header-h) + 16px);
    z-index: 1;
  }

  .why__card:nth-child(2) {
    top: calc(var(--header-h) + 46px);
    z-index: 2;
  }

  .why__card:nth-child(3) {
    top: calc(var(--header-h) + 76px);
    z-index: 3;
  }

  .why__card:not(:last-child) {
    margin-bottom: 30px;
  }

  .why__num {
    grid-area: num;
    align-self: start;
    position: static;
    top: auto;
    transform: none;
    width: 40px;
    height: 40px;
    font-size: 0.78rem;
  }

  .why__card-body {
    display: contents;
  }

  .why__card-body h3 {
    grid-area: title;
    margin: 0;
    align-self: start;
    padding-top: 0.35rem;
    font-size: 0.98rem;
    line-height: 1.3;
    min-width: 0;
  }

  .why__card-body p {
    grid-area: desc;
    margin: 0;
  }

  .why__card-icon {
    grid-area: icon;
    align-self: center;
    justify-self: end;
    width: 40px;
    height: 40px;
    margin: 0;
  }

  .why__card-badge {
    width: 34px;
    height: 34px;
  }

  .why__card-badge svg {
    width: 18px;
    height: 18px;
  }

  .why__card-orbit {
    opacity: 0.35;
  }
}

/* Process timeline — mobile-first: icon left, text right, vertical dashed path */
.timeline {
  --timeline-step: 56px;
  --timeline-gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-step) / 2);
  top: calc(var(--timeline-step) / 2);
  bottom: calc(var(--timeline-step) / 2);
  width: 0;
  border-left: 2px dashed rgba(15, 15, 15, 0.22);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.timeline__item {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0 0 var(--timeline-gap);
  z-index: 1;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: var(--timeline-step);
  height: var(--timeline-step);
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  margin: 0;
  position: relative;
  z-index: 1;
  border: 3px solid var(--accent);
}

.timeline__step svg {
  width: 26px;
  height: 26px;
}

.timeline__text {
  flex: 1;
  min-width: 0;
}

.timeline__text h3 {
  margin: 0 0 0.3rem;
}

.timeline__text p {
  color: var(--muted);
  font-size: 0.95rem;
  text-wrap: pretty;
  max-width: 22rem;
  margin: 0;
}

@media (min-width: 769px) {
  .timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .timeline::before {
    top: calc(var(--timeline-step) / 2);
    bottom: auto;
    left: calc(var(--timeline-step) / 2);
    right: calc(12.5%);
    height: 0;
    width: auto;
    border-left: none;
    border-top: 2px dashed rgba(15, 15, 15, 0.2);
    transform: none;
  }

  .timeline__item {
    display: block;
    align-items: stretch;
    padding: 0 1rem 0 0;
  }

  .timeline__step {
    display: inline-flex;
    margin-bottom: 1rem;
  }

  .timeline__text h3 {
    margin-bottom: 0.4rem;
  }

  .timeline__text p {
    max-width: 18rem;
  }
}

/* Stats band */
.stats {
  position: relative;
  background:
    linear-gradient(145deg, var(--ink) 0%, var(--ink-soft) 55%, #1a1a1a 100%);
  color: #fff;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(250, 202, 8, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  opacity: 1;
}

.stats .container {
  position: relative;
  z-index: 1;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1.25rem;
}

@media (min-width: 769px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.stat__value {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
}

.stat__label {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

.stat__note {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Director */
.director__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 769px) {
  .director__grid {
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 3.5rem;
  }
}

.director__photo {
  position: relative;
}

.director__portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: #eceae6;
  overflow: hidden;
}

.director__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.director__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(244, 244, 242, 0.95);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
}

.director__role {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
}

.director__body p {
  color: var(--graphite);
}

/* Reviews */
.reviews {
  overflow: hidden;
}

.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

@media (min-width: 769px) {
  .reviews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.review {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 16 / 9;
  min-height: 180px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 1.35rem;
  border: none;
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  color: #fff;
  background-color: #0f0f0f;
  background-image:
    linear-gradient(var(--review-angle, 160deg), transparent 10%, rgba(15, 15, 15, 0.9) 100%),
    var(--review-thumb, none);
  background-size: cover, cover;
  background-position: center center, center center;
  background-repeat: no-repeat, no-repeat;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
  font-family: var(--font);
}

.review--tone-1 {
  --review-angle: 145deg;
  background-image:
    linear-gradient(145deg, transparent 5%, rgba(15, 15, 15, 0.88) 95%),
    var(--review-thumb, none);
  box-shadow: inset 0 0 0 1px rgba(250, 202, 8, 0.18);
}

.review--tone-2 {
  --review-angle: 210deg;
  background-image:
    linear-gradient(210deg, rgba(250, 202, 8, 0.12) 0%, transparent 40%, rgba(15, 15, 15, 0.92) 100%),
    var(--review-thumb, none);
}

.review--tone-3 {
  --review-angle: 110deg;
  background-image:
    linear-gradient(110deg, transparent 15%, rgba(15, 15, 15, 0.9) 100%),
    var(--review-thumb, none);
  box-shadow: inset -50px -40px 90px rgba(250, 202, 8, 0.1);
}

.review--tone-4 {
  --review-angle: 250deg;
  background-image:
    linear-gradient(250deg, rgba(255, 255, 255, 0.06) 0%, transparent 35%, rgba(15, 15, 15, 0.94) 100%),
    var(--review-thumb, none);
}

.review:hover {
  transform: translateY(-3px);
}

.review:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.review__letter {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 10vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}

.review__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.25s var(--ease);
}

.review__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--ink);
}

.review:hover .review__play {
  transform: scale(1.06);
}

.review__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: relative;
  z-index: 1;
}

.review__meta strong {
  font-size: 1.05rem;
}

.review__meta span {
  font-size: 0.88rem;
  opacity: 0.8;
}

/* FAQ */
.faq {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.faq__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 880px) {
  .faq__grid {
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 3.5rem;
    align-items: start;
  }

  .faq .section__head {
    margin-bottom: 0;
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}

/* Single-column FAQ: no desktop sticky/spacing leftovers */
@media (max-width: 879px) {
  .faq .section__head {
    position: static;
    top: auto;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .faq__grid {
    gap: 2rem; /* 32px — compact title → first question */
  }

  .faq__list {
    margin-top: 0;
    padding-top: 0;
  }

  .faq__item:first-child {
    margin-top: 0;
    padding-top: 0;
  }
}

.faq__item {
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 0;
}

.faq__trigger {
  width: 100%;
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding: 1.15rem 2.75rem 1.15rem 0;
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.faq__icon {
  position: absolute;
  right: 0;
  top: 50%;
  width: 1.75rem;
  height: 1.75rem;
  margin-top: -0.875rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  flex-shrink: 0;
  transition: transform 0.3s ease-in-out;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  border-radius: 1px;
}

.faq__icon::before {
  width: 10px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq__icon::after {
  width: 2px;
  height: 10px;
  transform: translate(-50%, -50%);
}

.faq__item.is-open .faq__icon {
  transform: rotate(45deg);
}

.faq__panel {
  overflow: hidden;
  height: 0;
  transition: height 0.3s ease-in-out;
}

.faq__panel-inner {
  min-height: 0;
}

.faq__panel-inner p {
  color: var(--muted);
  padding: 0 0 1.25rem;
  max-width: 42rem;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .faq__panel,
  .faq__icon {
    transition: none;
  }
}

/* Contacts */
.contacts__grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 880px) {
  .contacts__grid {
    grid-template-columns: 1fr minmax(300px, 400px);
    gap: 3.5rem;
    align-items: start;
  }
}

.contacts__list {
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contacts__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.contacts__item-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contacts__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--accent);
}

.contacts__icon svg {
  width: 18px;
  height: 18px;
}

.contacts__list span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contacts__list a,
.contacts__list address {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.contacts__list a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.socials {
  display: flex;
  gap: 1.25rem;
}

.socials a {
  font-weight: 600;
  text-decoration: none;
  color: var(--graphite);
}

.socials a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
}

.form__row {
  margin-bottom: 1rem;
}

.form__row label:not(.checkbox) {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ink-soft);
}

.form input[type="text"],
.form input[type="tel"],
.form select {
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--bg-elevated);
  color: var(--ink);
  transition: border-color 0.2s;
}

.form input:focus,
.form select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.form input.is-invalid,
.form select.is-invalid {
  border-color: var(--danger);
}

.checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--graphite);
  cursor: pointer;
}

.checkbox input {
  margin-top: 0.2rem;
  accent-color: var(--accent);
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

.form__error {
  display: block;
  min-height: 1.1em;
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 0.3rem;
}

.form__note {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.form__note.is-success {
  color: var(--ink);
  font-weight: 600;
}

.contacts {
  /* свободное поле между краем экрана и контентом */
  --gutter: calc((100vw - min(100vw - 2rem, var(--max))) / 2);
  position: relative;
  overflow: visible;
  padding-bottom: 0;
}

.contacts__info,
.form {
  position: relative;
  z-index: 1;
}

.contacts__grid {
  position: relative;
}

/* 3D-объекты в боковых полях секции */
.contacts__deco {
  /* объект висит слева/справа от колонки и заходит на неё краем орбиты */
  --deco-w: clamp(200px, 14.5vw, 270px);
  --deco-overlap: 34px;
  position: absolute;
  display: none;
  width: var(--deco-w);
  height: auto;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  animation: contactDecoFloat 4s ease-in-out infinite;
}

.contacts__deco--phone {
  top: 52%;
  left: calc(-1.13 * var(--deco-w) + var(--deco-overlap));
}

.contacts__deco--message {
  top: 34%;
  right: calc(-1 * var(--deco-w) + var(--deco-overlap));
  animation-delay: 0.5s;
}

@media (min-width: 1340px) {
  .contacts__deco {
    display: block;
  }
}


@keyframes contactDecoFloat {
  0%,
  100% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(calc(-50% - 10px));
  }
}

.form__sparks,
.form__arrow {
  position: absolute;
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.form__sparks {
  top: -1.15rem;
  right: -0.9rem;
  width: 54px;
}

.form__arrow {
  left: -3.6rem;
  bottom: 3.3rem;
  width: 84px;
}

@media (max-width: 1100px) {
  .form__arrow {
    display: none;
  }
}

.final-cta {
  margin-top: 2.5rem;
  background: var(--accent);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.final-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.final-cta__title {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.5rem;
  max-width: 22rem;
  text-wrap: balance;
}

.final-cta__text {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36rem;
  font-size: 1.02rem;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn--ink {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn--ink:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  color: #fff;
}

.final-cta .btn--ghost-ink {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.final-cta .btn--ghost-ink:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--accent);
}

/* Footer */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: clamp(3rem, 6vw, 4.5rem) 0 0;
  border-top: none;
  font-size: 0.92rem;
}

.footer__grid {
  display: grid;
  gap: 2.25rem 2rem;
  padding-bottom: clamp(2.25rem, 4vw, 3rem);
}

@media (min-width: 720px) {
  .footer__grid {
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
    gap: 2rem 2.5rem;
    align-items: start;
  }
}

.footer__brand {
  max-width: 22rem;
}

.footer__logo {
  display: inline-flex;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer__logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  /* keep logo readable on dark */
  filter: brightness(0) invert(1);
}

.footer__lead {
  margin: 0 0 1.25rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
}

.footer__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer__contacts a,
.footer__contacts address {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-style: normal;
}

.footer__contacts a:hover {
  color: var(--accent);
}

.footer__heading {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  margin-top: 1.35rem;
}

.footer__socials a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.88rem;
}

.footer__socials a:hover {
  color: var(--accent);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.15rem 0 1.4rem;
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}

.footer__copy,
.footer__note {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__note {
  max-width: 36rem;
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.55);
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 24px 48px rgba(15, 15, 15, 0.18);
}

.modal__dialog--video {
  width: min(100%, 820px);
  padding-top: 1.35rem;
}

.modal__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0f0f0f;
  margin: 0.75rem 0 1rem;
}

.modal__player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal__yt-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  text-underline-offset: 0.28em;
}

.modal__yt-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.modal__text {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* Concept notice — shown on every page load */
.notice[hidden] {
  display: none;
  pointer-events: none;
}

.notice {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.notice__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.notice__dialog {
  position: relative;
  z-index: 1;
  width: min(32rem, 90vw);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem 1.5rem;
  box-shadow: 0 24px 48px rgba(15, 15, 15, 0.18);
}

.notice__title {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.notice__text {
  margin: 0 0 1.35rem;
  color: var(--graphite);
  font-size: 0.98rem;
  line-height: 1.55;
}

.notice__ok {
  width: 100%;
}

body.is-notice-open {
  overflow: hidden;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}
.reveal[data-delay="4"] {
  transition-delay: 0.32s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ========== Mobile / tablet adaptation ========== */
@media (max-width: 768px) {
  :root {
    --header-h: 76px;
  }

  body {
    font-size: 1rem;
  }

  .container {
    width: min(100% - 1.5rem, var(--max));
  }

  .section {
    padding: clamp(2.5rem, 7vw, 3.5rem) 0;
  }

  .contacts {
    padding-bottom: 0;
  }

  h1 {
    font-size: clamp(1.55rem, 7.2vw, 2.15rem);
  }

  h2 {
    font-size: clamp(1.25rem, 5.5vw, 1.65rem);
  }

  .section__head {
    margin-bottom: 1.5rem;
  }

  .section__lead {
    font-size: 0.98rem;
  }

  .logo__img {
    height: 56px;
    max-width: min(220px, 58vw);
  }

  /* Hero */
  .hero {
    min-height: 0;
    align-items: stretch;
    padding: 1.5rem 0 2rem;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "illo"
      "stats";
    gap: 0.75rem;
  }

  .hero__content {
    display: contents;
    padding-right: 0;
  }

  .hero__content.container {
    width: auto;
  }

  .hero__main {
    grid-area: main;
    width: min(100% - 1.5rem, 1280px);
    margin-inline: auto;
    max-width: none;
  }

  .hero__title {
    max-width: none;
  }

  .hero__lead {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .hero__cta {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .hero__cta .btn {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 48px;
  }

  .hero-illustration {
    grid-area: illo;
    position: relative;
    top: auto;
    right: auto;
    width: min(88vw, 380px);
    margin: 0.35rem auto 0.75rem;
    transform: none;
  }

  .hero-illustration__seal {
    width: min(38%, 120px);
    right: 0;
    bottom: 2%;
  }

  .hero__stats {
    grid-area: stats;
    max-width: none;
    width: min(100% - 1.5rem, 1280px);
    margin-inline: auto;
    gap: 0.65rem;
    padding-top: 1.15rem;
  }

  .hero__stats dt {
    font-size: 1.35rem;
  }

  .hero__stats dd {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  /* Marquee */
  .clients {
    padding: 1.35rem 0 1.75rem;
  }

  .clients .clients__label {
    margin-bottom: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logos-track__group {
    gap: 40px;
    padding-inline: 20px;
  }

  .logos-track__group img {
    height: 26px;
    max-width: 110px;
  }

  /* Services — single column stack */
  .services {
    overflow-x: clip;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .service--featured {
    grid-column: auto;
    grid-row: auto;
    padding: 1.5rem 1.2rem;
  }

  .service__featured-layout {
    grid-template-columns: 1fr;
  }

  .service__featured-copy {
    display: contents;
  }

  .service__featured-top {
    order: 1;
  }

  .service__visual {
    order: 2;
    height: auto;
    padding: 0.25rem 0 0.15rem;
  }

  .service__visual-stage {
    width: min(100%, 260px);
    transform: none;
  }

  .service__process-img {
    width: min(100%, 260px);
    max-width: 260px;
    transform: none;
    animation-name: serviceProcessFloatMobile;
  }

  .service__deco {
    width: 112px;
    right: -8px;
    bottom: -8px;
  }

  .service__deco--swoosh {
    width: 112px;
    right: -26px;
    bottom: -8px;
  }

  .service__deco--double {
    width: 100px;
  }

  .service__deco--flick {
    width: 100px;
    right: -10px;
    bottom: -10px;
  }

  .service__deco--dashed {
    width: 96px;
    right: -8px;
    bottom: -8px;
  }

  .service__deco--loop {
    width: 88px;
    right: -8px;
    bottom: -8px;
  }

  .service--featured .service__sparks {
    right: 6%;
    top: 0;
    width: 44px;
    height: 44px;
  }

  .service__featured-bottom {
    order: 3;
    margin-top: 0;
    flex: none;
  }

  .service__featured-bottom .text-link-wrap {
    margin-top: 0;
  }

  /* Why */
  .why,
  .why__grid,
  .why__list {
    overflow: visible;
  }

  .why__expertise {
    display: block;
  }

  .why__grid {
    gap: 1.75rem;
  }

  .why__compare {
    max-width: none;
    padding: 1.25rem 1.1rem;
  }

  .why__blob {
    right: -30px;
    bottom: -40px;
    width: 140px;
    height: 130px;
  }

  .why__compare-row {
    font-size: 0.88rem;
    gap: 0.35rem;
  }

  .why__chip {
    padding: 0.4rem 0.65rem;
  }

  /* Director */
  .director__grid {
    gap: 1.5rem;
    justify-items: center;
    text-align: left;
  }

  .director__photo {
    width: min(100%, 280px);
    margin-inline: auto;
  }

  .director__body {
    width: 100%;
  }

  /* Reviews */
  .reviews__grid {
    grid-template-columns: 1fr;
  }

  .form__sparks {
    display: none;
  }

  /* Contacts + final CTA */
  .contacts__grid {
    gap: 1.75rem;
    margin-bottom: 1.75rem;
  }

  .form {
    padding: 1.25rem 1.1rem;
  }

  .final-cta {
    margin-top: 1.25rem;
    padding: 1.4rem 0;
  }

  .final-cta__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 26px;
  }

  .final-cta__title {
    max-width: none;
  }

  .final-cta__text {
    margin-inline: 0;
  }

  .final-cta__actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    gap: 12px;
  }

  .final-cta__actions .btn {
    width: 100%;
    flex: none;
    justify-content: center;
    min-height: 0;
    padding: 14px 1.25rem;
  }

  .footer__grid {
    gap: 1.75rem;
  }

  .footer__logo img {
    height: 42px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  .section {
    padding: 2.15rem 0;
  }

  .contacts {
    padding-bottom: 0;
  }

  h1 {
    font-size: clamp(1.4rem, 7.8vw, 1.85rem);
  }

  h2 {
    font-size: clamp(1.15rem, 6vw, 1.4rem);
  }

  .hero-illustration {
    width: min(84vw, 280px);
    margin-bottom: 1.15rem;
  }

  .hero-illustration__seal {
    width: min(40%, 92px);
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .hero__stats dt {
    font-size: 1.2rem;
  }

  .hero__stats dd {
    font-size: 0.68rem;
  }

  .logos-track__group img {
    height: 24px;
  }

  .why__compare-row {
    font-size: 0.82rem;
  }

  .why__arrow {
    font-size: 0.95rem;
  }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .stat__value {
    font-size: 1.85rem;
  }

  .service {
    padding: 1.35rem 1.15rem;
  }

  .service--featured {
    padding: 1.25rem 1.05rem;
  }
}
