/* ZIIAT GROUP — тёмная сдержанная тема, редакционная сетка */

:root {
  /* Ночной UI + приглушённый «лайм» как акцент (не кислотный неон) */
  --bg: #0e0e0d;
  --bg-deep: #090908;
  --bg-rgb: 14, 14, 13;
  --bg-elevated: #161614;
  --surface: #1c1c19;
  --surface-light: #f2f0ea;
  --ink: #f4f3ef;
  --ink-muted: #b5afa4;
  --ink-faint: #7c7569;
  --line: #2e2c28;
  --line-strong: #45423b;
  --accent: #c6e046;
  --accent-ink: #11110f;
  --accent-border: rgba(198, 224, 70, 0.2);
  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-pill: 9999px;
  --max: 68rem;
  --gutter: clamp(1.5rem, 5vw, 2.75rem);
  --header-h: 4.75rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.85s;
  --font-display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  overflow-x: clip;
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(1.04rem, 0.98rem + 0.28vw, 1.125rem);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image: linear-gradient(
    168deg,
    var(--bg) 0%,
    #121211 45%,
    var(--bg-deep) 100%
  );
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.35rem, 5.5vw, 3.85rem);
  font-weight: 700;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--ink);
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

a:hover {
  color: var(--ink-muted);
  border-bottom-color: var(--ink-faint);
}

a:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 65%, transparent);
  outline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-bottom: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    filter 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.btn--pill {
  padding: 0.72rem 1.45rem;
  font-size: 0.68rem;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  border-bottom: none;
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn--pill:hover {
  color: var(--accent-ink);
  filter: brightness(1.08);
  border-bottom: none;
  transform: translateY(-1px);
}

.btn--pill:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

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

  .btn--pill:hover {
    transform: none;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border: none;
  z-index: 100;
}

.skip-link:focus {
  left: var(--gutter);
  top: 0.5rem;
}

.noscript-banner {
  margin: 0;
  padding: 0.85rem var(--gutter);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.frame {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

@media (max-width: 36rem) {
  .frame {
    padding-left: max(1.35rem, 6vw, env(safe-area-inset-left, 0px));
    padding-right: max(1.35rem, 6vw, env(safe-area-inset-right, 0px));
  }
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  /* Без identity-transform — иначе fixed-оверлей меню привязывается к шапке, а не к окну */
  transform: none;
  opacity: 1;
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  border-bottom: 1px solid var(--header-edge, var(--line));
  background: color-mix(
    in srgb,
    var(--header-fill, var(--bg)) 32%,
    transparent
  );
  box-shadow: 0 1px 0 color-mix(in srgb, var(--header-edge, var(--line)) 28%, transparent);
  transition:
    transform 0.48s var(--ease-out),
    opacity 0.42s var(--ease-out),
    background 0.55s var(--ease-out),
    border-color 0.55s var(--ease-out),
    box-shadow 0.55s var(--ease-out);
}

.site-header--concealed {
  transform: translate3d(0, calc(-100% - 6px), 0);
  opacity: 0;
  pointer-events: none;
}

/* Шапка показывается только в зоне hero — тёмная тема. */
.site-header[data-theme="dark"] {
  --header-fg: #f4f3ef;
  --header-fg-muted: #bdb5a8;
  --header-fill: #121211;
  --header-edge: color-mix(in srgb, var(--line) 58%, transparent);
}

.site-header[data-theme="light"] {
  --header-fg: #1b1a17;
  --header-fg-muted: #5a544a;
  --header-fill: #f5f3ee;
  --header-edge: color-mix(in srgb, #b8b0a0 62%, transparent);
}

main#main {
  margin-top: var(
    --site-header-offset,
    calc(env(safe-area-inset-top, 0px) + var(--header-h) + 2px)
  );
}

/* Плавающий бренд: подменяет шапку вне hero; цвет букв — data-theme на каждой .floating-brand__char. */
.floating-brand {
  position: fixed;
  z-index: 60;
  top: max(0.65rem, env(safe-area-inset-top, 0px));
  left: max(var(--gutter), env(safe-area-inset-left, 0px));
  display: inline-block;
  max-width: min(4.5rem, calc(100vw - var(--gutter) * 2));
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  border: none;
  outline-offset: 3px;
  opacity: 0;
  transform: translate3d(0, -0.4rem, 0);
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.48s var(--ease-out);
}

.floating-brand__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55em;
  line-height: 1;
}

.floating-brand__word {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.06em;
  line-height: 1;
}

.floating-brand__char {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: clamp(1.12rem, 0.96rem + 0.85vw, 1.72rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  transition: color 0.32s var(--ease-out), text-shadow 0.32s var(--ease-out);
}

.floating-brand__char[data-theme="dark"] {
  color: #f4f3ef;
  text-shadow: 0 1px 20px color-mix(in srgb, #000 42%, transparent);
}

.floating-brand__char[data-theme="light"] {
  color: #1a1916;
  text-shadow: none;
}

.floating-brand--visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.floating-brand:hover .floating-brand__char[data-theme="light"] {
  color: color-mix(in srgb, #1a1916 70%, var(--accent) 30%);
  border-bottom: none;
}

.floating-brand:hover .floating-brand__char[data-theme="dark"] {
  color: color-mix(in srgb, #f4f3ef 70%, var(--accent) 30%);
  border-bottom: none;
}

.floating-brand:focus-visible {
  border-bottom: none;
}

@media (max-width: 52rem) {
  .floating-brand {
    display: none !important;
  }
}

.grid-header {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.grid-header > .wordmark {
  position: relative;
  z-index: 95;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  min-width: 0;
}

/* Панель с навигацией: на десктопе — обычный flex-блок; на узком экране — полноэкранное меню */
.site-header__panel {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.site-header__panel-opaque {
  display: none;
}

.site-header__scrim {
  display: none;
}

.header-toolbar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.45rem;
  position: relative;
  z-index: 95;
}

.lang-switch {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  margin-right: 0.2rem;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--header-fill) 72%, #000 28%);
  border: 1px solid color-mix(in srgb, var(--header-edge, var(--line)) 50%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--header-fg) 8%, transparent),
    0 1px 2px color-mix(in srgb, #000 18%, transparent);
}

/* В строке шапки на телефоне не показываем — дублируется крупным блоком в меню */
@media (max-width: 52rem) {
  #site-lang-switch {
    display: none !important;
  }
}

.site-header[data-theme="light"] .lang-switch {
  background: color-mix(in srgb, var(--header-fill) 92%, var(--line) 8%);
  box-shadow: inset 0 1px 0 #fff;
}

/* Языки в полноэкранном меню — только на узком экране (см. @media ниже) */
.site-header__drawer-lang {
  display: none;
}

.lang-switch__btn {
  margin: 0;
  position: relative;
  padding: 0.42rem 0.62rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: color-mix(in srgb, var(--header-fg-muted) 95%, var(--header-fg) 5%);
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  cursor: pointer;
  transition:
    color 0.22s var(--ease-out),
    background 0.22s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  min-width: 2.5rem;
}

.site-header[data-theme="dark"] .lang-switch__btn {
  color: color-mix(in srgb, var(--header-fg-muted) 88%, var(--header-fg) 12%);
}

.lang-switch__btn:hover:not(.is-active) {
  color: var(--header-fg);
  background: color-mix(in srgb, var(--header-fg) 7%, transparent);
}

.lang-switch__btn.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 700;
  box-shadow: 0 1px 2px color-mix(in srgb, #000 20%, transparent);
}

.lang-switch__btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 65%, transparent);
  outline-offset: 1px;
}

@media (min-width: 52.0625rem) {
  .lang-switch__btn {
    padding: 0.46rem 0.72rem;
    font-size: 0.65rem;
    min-width: 2.65rem;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--header-fg-muted) 35%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--header-fill) 40%, transparent);
  color: var(--header-fg);
  cursor: pointer;
  transition:
    border-color 0.3s var(--ease-out),
    background 0.3s var(--ease-out);
}

.nav-toggle:hover {
  border-color: color-mix(in srgb, var(--header-fg-muted) 55%, transparent);
  background: color-mix(in srgb, var(--header-fill) 58%, transparent);
}

.nav-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 65%, transparent);
  outline-offset: 3px;
}

.nav-toggle__bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform-origin: center;
  transition:
    transform 0.38s var(--ease-out),
    opacity 0.28s var(--ease-out),
    translate 0.38s var(--ease-out);
}

.site-header--nav-open .nav-toggle__bar:nth-child(1) {
  translate: 0 7px;
  transform: rotate(45deg);
}

.site-header--nav-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

.site-header--nav-open .nav-toggle__bar:nth-child(3) {
  translate: 0 -7px;
  transform: rotate(-45deg);
}

@media (max-width: 52rem) {
  .site-header {
    padding-top: calc(env(safe-area-inset-top, 0px) + 0.65rem);
    /* Воздух под строкой шапки — кнопка и нижний край не «врезаются» в hero */
    padding-bottom: 0.9rem;
  }

  .grid-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.65rem, 3.5vw, 1rem);
    min-height: calc(3.1rem + env(safe-area-inset-top, 0px) * 0.35);
  }

  .header-actions {
    flex-wrap: nowrap;
    gap: 0.45rem;
    width: auto;
    flex: 0 0 auto;
  }

  /* Текст hero дальше от шапки: не слипается с блоком навигации / CTA */
  .hero-foreground {
    padding-top: clamp(4.35rem, 14vw, 6.5rem);
  }

  /* Поверх контента страницы; при открытом меню — без «стекла» у шапки (баги композиции iOS) */
  .site-header.site-header--nav-open {
    z-index: 300;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--header-fill, #121211);
  }

  /* Строка шапки (лого, CTA, бургер) — поверх затемнения меню */
  .site-header--nav-open .header-toolbar,
  .site-header--nav-open .grid-header > .wordmark {
    z-index: 310;
  }

  .site-header__panel {
    flex: none;
    position: fixed;
    inset: 0;
    /* Выше main, hero и пр.; панель не внутри «стеклянной» шапки по z-order страницы */
    z-index: 280;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(env(safe-area-inset-top, 0px) + 4.75rem) max(var(--gutter), env(safe-area-inset-right, 0px))
      max(2rem, env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    isolation: isolate;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.38s var(--ease-out),
      visibility 0.38s var(--ease-out);
  }

  .site-header__panel-opaque {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #121211;
    background-color: var(--header-fill, #121211);
  }

  .site-header--nav-open .site-header__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-header__scrim {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .site-header__panel .nav-primary {
    position: relative;
    z-index: 2;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    flex-wrap: nowrap;
    overflow: visible;
    mask-image: none;
    font-size: 0.8125rem;
    letter-spacing: 0.12em;
  }

  .site-header__panel .nav-primary a {
    padding: 1.05rem 0;
    margin: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--header-edge, var(--line)) 55%, transparent);
    color: var(--header-fg);
  }

  .site-header__panel .nav-primary a::after {
    left: 0;
    bottom: 0.85rem;
    width: 2.25rem;
    height: 2px;
  }

  .site-header__panel .nav-primary a:hover {
    color: var(--header-fg);
  }

  .site-header__drawer-lang {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.35rem;
    padding-top: 1.25rem;
    border-top: 1px solid color-mix(in srgb, var(--header-edge, var(--line)) 50%, transparent);
    position: relative;
    z-index: 2;
  }

  .site-header__drawer-lang-hint {
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--header-fg-muted) 92%, var(--header-fg) 8%);
    opacity: 0.92;
  }

  .lang-switch--drawer {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    padding: 4px;
    border-radius: 14px;
  }

  .lang-switch--drawer .lang-switch__btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 3rem;
    padding: 0.62rem 0.35rem;
    font-size: 0.74rem;
    letter-spacing: 0.09em;
    border-radius: 10px;
  }

  .nav-toggle {
    display: flex;
  }

  /* Как на десктопе: заливка accent */
  .header-toolbar .header-cta-compact {
    width: auto;
    min-height: 2.45rem;
    padding: 0.56rem 1.12rem;
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--accent);
    color: var(--accent-ink);
    border: none;
    border-bottom: none;
    box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 35%, transparent);
  }

  .header-toolbar .header-cta-compact:hover {
    color: var(--accent-ink);
    background: var(--accent);
    border: none;
    border-bottom: none;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 35%, transparent);
  }

  .site-header .wordmark-line {
    font-size: clamp(0.86rem, 0.8rem + 0.35vw, 0.95rem);
    letter-spacing: 0.09em;
  }
}

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

  .nav-toggle__bar {
    transition: none;
  }
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  border-bottom: none;
  color: var(--header-fg, var(--ink));
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  transform-origin: left center;
  outline-offset: 4px;
}

.site-header .wordmark {
  color: var(--header-fg);
  transition: color 0.5s var(--ease-out);
}

@keyframes wordmark-emerge {
  0% {
    opacity: 0.65;
    transform: translate3d(0, 0.55rem, 0) scale(0.94);
  }
  50% {
    opacity: 1;
    transform: translate3d(0, -0.12rem, 0) scale(1.035);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.wordmark.wordmark--reveal {
  animation: wordmark-emerge 0.62s cubic-bezier(0.34, 1.15, 0.64, 1) both;
}

.wordmark:has(.wordmark-sub[hidden]) {
  gap: 0;
}

.wordmark:hover {
  color: var(--header-fg-muted, var(--ink-muted));
}

.site-header .wordmark-line {
  font-size: clamp(0.95rem, 0.86rem + 0.36vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-display);
  color: var(--header-fg);
  transform: none;
  opacity: 1;
  transition:
    color 0.45s var(--ease-out),
    opacity 0.45s var(--ease-out);
}

/* Вне шапки: прежний масштаб для совместимости */
.wordmark-line {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.wordmark-sub {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--header-fg-muted, var(--ink-muted));
  font-family: var(--font-display);
  transition: color 0.5s var(--ease-out);
}

.site-header .wordmark-sub {
  color: color-mix(in srgb, var(--header-fg-muted) 88%, var(--header-fg) 12%);
}

.nav-primary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(0.85rem, 2.5vw, 1.5rem);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-primary a {
  border-bottom: none;
  color: var(--header-fg-muted, var(--ink-muted));
  position: relative;
  padding-bottom: 0.15rem;
  transition:
    color 0.45s var(--ease-out),
    transform 0.35s var(--ease-out);
}

.nav-primary a:hover {
  color: var(--header-fg, var(--ink));
}

.nav-primary a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 75%, transparent),
    transparent
  );
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}

.nav-primary a:hover::after {
  transform: scaleX(1);
}

/* Касания: зона нажатия не уже рекомендаций Apple / Material (~44px) */

@media (pointer: coarse) {
  .nav-primary a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.2rem;
    padding-bottom: 0.45rem;
  }

  .btn--pill {
    min-height: 2.75rem;
  }
}

@media (max-width: 52rem) and (pointer: coarse) {
  .header-toolbar .header-cta-compact {
    min-height: 2.6rem;
    padding-inline: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-primary a,
  .nav-primary a::after {
    transition: none;
  }

  .site-header,
  .site-header .wordmark,
  .site-header .wordmark-line,
  .site-header .wordmark-sub,
  .floating-brand,
  .floating-brand__char {
    transition-duration: 0.07s;
  }
}

/* Hero — фон на всю ширину и высоту блока, без «карточки» */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: max(28rem, min(90vh, 58rem));
  min-height: max(28rem, min(90svh, 58rem));
  padding: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, var(--bg));
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
}

@keyframes hero-kenburns {
  0% {
    transform: scale(1.025) translate(0%, 0%);
  }
  100% {
    transform: scale(1.075) translate(-0.9%, -0.45%);
  }
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  position: relative;
  z-index: 0;
  animation: hero-kenburns 32s ease-in-out infinite alternate;
  will-change: transform;
}

/* Лёгкая «плёнка»: зерно между фото и скримом */
.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.022;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 0;
  background:
    radial-gradient(
      130% 95% at 88% 28%,
      rgba(0, 0, 0, 0.14) 0%,
      transparent 52%
    ),
    linear-gradient(
      90deg,
      rgba(var(--bg-rgb), 0.62) 0%,
      rgba(var(--bg-rgb), 0.26) 42%,
      rgba(var(--bg-rgb), 0.13) 68%,
      rgba(var(--bg-rgb), 0.34) 100%
    ),
    linear-gradient(
      180deg,
      rgba(var(--bg-rgb), 0.22) 0%,
      transparent 34%,
      rgba(var(--bg-rgb), 0.3) 58%,
      rgba(var(--bg-rgb), 0.76) 82%,
      rgba(var(--bg-rgb), 0.95) 100%
    );
}

.hero-foreground {
  position: relative;
  z-index: 1;
  min-height: inherit;
  /* Не использовать padding-сокращение с боковым 0 — иначе затираются отступы .frame */
  padding-top: clamp(4rem, 14vw, 7rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
  box-sizing: border-box;
}

.hero-foreground::before {
  content: "";
  position: absolute;
  left: -12%;
  top: 2%;
  width: min(70vw, 40rem);
  height: 82%;
  background: radial-gradient(
    ellipse 72% 62% at 38% 42%,
    color-mix(in srgb, var(--accent) 22%, transparent) 0%,
    transparent 66%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.hero .hero-copy {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
  position: relative;
  z-index: 1;
  padding-left: 1.25rem;
}

.hero-copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.15rem;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    color-mix(in srgb, var(--accent) 45%, transparent) 42%,
    color-mix(in srgb, var(--accent) 12%, transparent) 100%
  );
  opacity: 0.72;
  pointer-events: none;
}

.grid-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
  align-content: center;
}

.hero-copy {
  width: 100%;
  max-width: min(42rem, 100%);
}

@media (max-width: 36rem) {
  .hero .hero-copy {
    padding-left: 1.5rem;
    padding-right: 0.35rem;
  }

  .hero-foreground {
    padding-top: clamp(4rem, 13vw, 5.75rem);
    padding-bottom: clamp(2.5rem, 9vw, 4rem);
  }

  .section {
    padding: clamp(2.65rem, 10vw, 4.25rem) 0;
  }
}

@media (max-width: 52rem) {
  .hero-scrim {
    background:
      radial-gradient(
        120% 85% at 50% 18%,
        rgba(0, 0, 0, 0.12) 0%,
        transparent 48%
      ),
      linear-gradient(
        180deg,
        rgba(var(--bg-rgb), 0.4) 0%,
        rgba(var(--bg-rgb), 0.14) 38%,
        rgba(var(--bg-rgb), 0.72) 78%,
        rgba(var(--bg-rgb), 0.94) 100%
      ),
      linear-gradient(90deg, rgba(var(--bg-rgb), 0.36) 0%, transparent 88%);
  }

  .hero-photo {
    object-position: center 25%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo {
    animation: none;
    transform: none;
    will-change: auto;
  }

  .hero-backdrop::after {
    display: none;
  }
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.15rem;
}

.hero-title {
  max-width: 32ch;
  font-weight: 700;
  font-family: var(--font-display);
}

.hero-title .title-accent {
  color: var(--accent);
  font-weight: 700;
}

.hero .lead {
  font-size: clamp(1.15rem, 2.05vw, 1.38rem);
  font-weight: 500;
  font-family: var(--font-sans);
  max-width: min(50ch, 100%);
  margin-top: 1.35rem;
  line-height: 1.62;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--ink) 82%, var(--accent) 18%);
}

.hero .lead .lead-accent {
  color: color-mix(in srgb, var(--ink) 58%, var(--accent) 42%);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Sections */

.section {
  padding: clamp(3.25rem, 9vw, 5.25rem) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(
    var(--site-header-offset, calc(env(safe-area-inset-top, 0px) + var(--header-h) + 2px)) +
      0.5rem
  );
}

.section--light {
  background-color: var(--surface-light);
  border-color: #ddd7ca;
}

.section--light h2,
.section--light h3 {
  color: var(--accent-ink);
}

.section--light .section-intro,
.section--light p {
  color: #4a463e;
}

.section--light .prose-wide p {
  color: #4a463e;
}

.section--light .practice-num,
.section--light .advantage-num,
.section--light .label,
.section--light .person-role,
.section--light .verified-tag,
.section--light .placeholder-tag {
  color: #5c564c;
}

.section--light a {
  color: var(--accent-ink);
  border-bottom-color: #b8b0a0;
}

.section--light a:hover {
  color: #2c2924;
  border-bottom-color: var(--accent-ink);
}

.section--light .practice-item,
.section--light .advantage-item {
  border-color: #d5cfc4;
}

.section--light .practice-list,
.section--light .advantage-list,
.section--light .people-grid {
  border-color: #d5cfc4;
}

.section--light .person {
  background: #fffcf7;
  border-color: #cfc8bb;
}

.section--light .edit-hint {
  color: #6b655b;
}

.section--light .channels-placeholder {
  border-color: #c4bdb0;
  color: #5c564c;
}

.section--dark {
  background-color: var(--bg-deep);
  border-color: #252523;
}

.section:last-of-type {
  border-bottom: none;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.section-intro {
  font-size: 1.02rem;
  line-height: 1.72;
}

/* «О конторе» — две колонки в духе редакционного лендинга */

.section-about.section--light {
  background: #f4f3ef;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-visual {
  margin: 0;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #e8e4db;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 28px 60px -32px rgba(17, 17, 15, 0.42);
}

.about-visual img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  aspect-ratio: 4 / 5;
  max-height: min(88vh, 44rem);
  object-fit: cover;
  object-position: center;
}

.about-counter-card {
  position: absolute;
  left: clamp(0.85rem, 3vw, 1.35rem);
  bottom: clamp(0.85rem, 3vw, 1.35rem);
  right: auto;
  margin: 0;
  max-width: min(17.5rem, calc(100% - 1.75rem));
  padding: 1.1rem 1.25rem 1.15rem;
  background: rgba(255, 253, 248, 0.97);
  border-radius: var(--radius-sm);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 14px 36px -18px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(213, 207, 196, 0.85);
}

.about-counter-card[hidden] {
  display: none;
}

.about-counter-line {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #4a463e;
  font-weight: 500;
}

.about-counter-line:first-child {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-ink);
  letter-spacing: -0.02em;
}

.about-counter-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  display: inline-block;
  color: inherit;
}

.about-counter-line:first-child .about-counter-num {
  font-size: clamp(1.65rem, 3.1vw, 2.05rem);
  letter-spacing: -0.035em;
  line-height: 1;
  min-width: 3.35ch;
  text-align: center;
}

@keyframes about-counter-tick {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  40% {
    transform: translateY(-5px);
    opacity: 0.88;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.about-counter-num--tick {
  animation: about-counter-tick 0.26s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .about-counter-num--tick {
    animation: none;
  }
}

.about-content {
  min-width: 0;
  padding-top: 0.15rem;
}

.about-eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7c7569;
}

.about-headline {
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.8vw, 2.95rem);
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 1.12;
  color: #4d4740;
  max-width: min(38ch, 100%);
}

.about-headline .about-headline-strong {
  font-weight: 700;
  color: var(--accent-ink);
}

.section-about.section--light .about-headline {
  color: #4d4740;
}

.section-about.section--light .about-headline .about-headline-strong {
  color: var(--accent-ink);
}

.about-prose {
  margin-bottom: clamp(1.35rem, 2.8vw, 1.85rem);
  max-width: 38rem;
}

.about-p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.78;
  color: #5c564c;
  font-weight: 400;
}

.section--light .about-p {
  color: #5c564c;
}

.about-p + .about-p {
  margin-top: 1.1rem;
}

.about-p .about-em {
  color: var(--accent-ink);
  font-weight: 700;
}

.about-cta {
  gap: 0.75rem;
  padding: 0.85rem 1.15rem 0.85rem 1.45rem;
  text-transform: none;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.about-cta[hidden] {
  display: none;
}

.about-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.95rem;
  height: 1.95rem;
  flex-shrink: 0;
  margin-left: 0.1rem;
  border-radius: 9999px;
  background: var(--accent-ink);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 56rem) {
  .about-split {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .about-visual {
    max-width: min(26rem, 100%);
    margin-inline: auto;
  }

  .about-headline {
    max-width: none;
  }
}

.prose-wide {
  max-width: 46rem;
}

.prose-wide p {
  font-size: 0.98rem;
  line-height: 1.75;
}

.prose-wide p + p {
  margin-top: 0.85rem;
}

.edit-hint {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* Принципы работы (секция #approach) */

.section-principles .principles-head {
  margin-bottom: clamp(2.25rem, 4.5vw, 3.5rem);
}

/* Каскад заголовок → лид (как hero): родитель без «провала», дочерние элементы по очереди */
@media (prefers-reduced-motion: no-preference) {
  html.js .principles-head--stagger[data-reveal]:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  html.js
    .principles-head--stagger[data-reveal]:not(.is-visible)
    .principles-title,
  html.js
    .principles-head--stagger[data-reveal]:not(.is-visible)
    .principles-lead:not([hidden]) {
    opacity: 0;
    transform: translateY(0.85rem);
  }

  html.js .principles-head--stagger[data-reveal] .principles-title,
  html.js
    .principles-head--stagger[data-reveal]
    .principles-lead:not([hidden]) {
    transition:
      opacity 0.76s var(--ease-out),
      transform 0.76s var(--ease-out);
  }

  html.js .principles-head--stagger[data-reveal].is-visible .principles-title {
    opacity: 1;
    transform: none;
    transition-delay: 0.05s;
  }

  html.js
    .principles-head--stagger[data-reveal].is-visible
    .principles-lead:not([hidden]) {
    opacity: 1;
    transform: none;
    transition-delay: 0.2s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js
    .principles-head--stagger[data-reveal]:not(.is-visible)
    .principles-title,
  html.js
    .principles-head--stagger[data-reveal]:not(.is-visible)
    .principles-lead:not([hidden]) {
    opacity: 1;
    transform: none;
  }
}

.section-principles .principles-title {
  margin: 0;
  font-size: clamp(1.95rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: min(52ch, 100%);
  color: var(--ink);
}

.section-principles .principles-lead {
  margin: 0;
  margin-top: 0.85rem;
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--ink-muted);
  /* На десктопе тянем на всю ширину .frame, как сетка карточек ниже — без узкой колонки */
  max-width: 100%;
}

.section-principles .principles-lead[hidden] {
  display: none !important;
  margin-top: 0;
}

.section-principles .principles-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.35rem);
}

.section-principles .principle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  margin: 0;
  padding: clamp(1.35rem, 2.8vw, 1.85rem);
  border-radius: var(--radius-md);
  background: linear-gradient(
    152deg,
    color-mix(in srgb, var(--surface) 100%, var(--accent) 4%) 0%,
    color-mix(in srgb, var(--bg-elevated) 85%, var(--surface) 15%) 100%
  );
  border: 1px solid color-mix(in srgb, var(--line) 90%, var(--accent) 10%);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
  transition:
    transform 0.42s var(--ease-out),
    box-shadow 0.42s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

.section-principles .principle-card::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: clamp(1.15rem, 2.5vw, 1.5rem);
  bottom: clamp(1.15rem, 2.5vw, 1.5rem);
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scaleY(0.68);
  transform-origin: center;
  pointer-events: none;
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out);
}

html.js .section-principles .principle-card[data-reveal].is-visible::before {
  opacity: 0.22;
  transform: scaleY(1);
}

@media (hover: hover) {
  .section-principles .principle-card:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
    box-shadow:
      0 26px 56px -28px rgba(0, 0, 0, 0.65),
      0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent);
  }

  .section-principles .principle-card:hover::before {
    opacity: 0.55;
  }
}

.section-principles .principle-card__icon {
  width: 3.1rem;
  height: 3.1rem;
  margin: 0 0 1.15rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.5s var(--ease-out),
    background-color 0.35s var(--ease-out),
    color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}

.section-principles .principle-card__icon svg {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
}

@media (hover: hover) {
  .section-principles .principle-card:hover .principle-card__icon {
    background: var(--accent);
    color: var(--accent-ink);
    transform: scale(1.06);
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--accent-ink) 18%, transparent),
      0 10px 28px -8px color-mix(in srgb, var(--accent) 55%, transparent);
    transition:
      opacity 0.55s var(--ease-out),
      transform 0.35s var(--ease-out),
      background-color 0.35s var(--ease-out),
      color 0.35s var(--ease-out),
      box-shadow 0.35s var(--ease-out);
  }
}

.section-principles .principle-card__title {
  margin: 0 0 0.65rem;
  font-size: 1.06rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.022em;
  line-height: 1.2;
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
}

.section-principles .principle-card__text {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.66;
  color: var(--ink-muted);
  transition:
    opacity 0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) {
  html.js
    .section-principles
    .principle-card[data-reveal]:not(.is-visible)
    .principle-card__icon,
  html.js
    .section-principles
    .principle-card[data-reveal]:not(.is-visible)
    .principle-card__title,
  html.js
    .section-principles
    .principle-card[data-reveal]:not(.is-visible)
    .principle-card__text {
    opacity: 0;
    transform: translateY(0.42rem);
  }

  html.js
    .section-principles
    .principle-card[data-reveal].is-visible
    .principle-card__icon {
    opacity: 1;
    transform: none;
    transition-delay: 0.08s;
  }

  html.js
    .section-principles
    .principle-card[data-reveal].is-visible
    .principle-card__title {
    opacity: 1;
    transform: none;
    transition-delay: 0.16s;
  }

  html.js
    .section-principles
    .principle-card[data-reveal].is-visible
    .principle-card__text {
    opacity: 1;
    transform: none;
    transition-delay: 0.26s;
  }
}

html.js .section-principles .principle-card[data-reveal]:nth-child(1) {
  transition-delay: 0.04s;
}

html.js .section-principles .principle-card[data-reveal]:nth-child(2) {
  transition-delay: 0.1s;
}

html.js .section-principles .principle-card[data-reveal]:nth-child(3) {
  transition-delay: 0.16s;
}

html.js .section-principles .principle-card[data-reveal]:nth-child(4) {
  transition-delay: 0.22s;
}

@media (max-width: 60rem) {
  .section-principles .principles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 38rem) {
  .section-principles .principles-title {
    max-width: none;
  }

  .section-principles .principles-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-principles .principle-card {
    transition: none;
  }

  .section-principles .principle-card__icon {
    transition: none;
  }

  html.js .section-principles .principle-card[data-reveal] .principle-card__icon,
  html.js .section-principles .principle-card[data-reveal] .principle-card__title,
  html.js .section-principles .principle-card[data-reveal] .principle-card__text {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html.js .section-principles .principle-card[data-reveal].is-visible::before {
    opacity: 0.22;
    transform: scaleY(1);
  }

  @media (hover: hover) {
    .section-principles .principle-card:hover {
      transform: none;
    }

    .section-principles .principle-card:hover .principle-card__icon {
      transform: none;
    }
  }

  html.js .section-principles .principle-card[data-reveal]:nth-child(1),
  html.js .section-principles .principle-card[data-reveal]:nth-child(2),
  html.js .section-principles .principle-card[data-reveal]:nth-child(3),
  html.js .section-principles .principle-card[data-reveal]:nth-child(4) {
    transition-delay: 0s;
  }
}

/* Advantages */

.grid-advantages {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (max-width: 48rem) {
  .grid-advantages {
    grid-template-columns: 1fr;
  }
}

.advantage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.advantage-item {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  padding: clamp(1.35rem, 2.5vw, 1.75rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background-color 0.35s var(--ease-out);
}

@media (hover: hover) {
  .advantage-item:hover {
    background-color: color-mix(in srgb, var(--accent) 6%, transparent);
  }
}

.practice-item {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
  padding: clamp(1.35rem, 2.8vw, 1.85rem) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: background-color 0.35s var(--ease-out);
}

@media (hover: hover) {
  .practice-item:hover {
    background-color: color-mix(in srgb, var(--accent) 5%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .advantage-item,
  .practice-item {
    transition: none;
  }
}

.advantage-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-faint);
  padding-top: 0.15rem;
}

.advantage-body h3 {
  color: var(--ink);
}

.advantage-body p {
  max-width: 48ch;
  font-size: 0.95rem;
}

.panel {
  border-radius: var(--radius-md);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--surface) 100%, var(--accent) 4%) 0%,
    var(--surface) 100%
  );
  border: 1px solid color-mix(in srgb, var(--line) 88%, var(--accent) 12%);
  padding: clamp(1.25rem, 3vw, 1.65rem);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
}

.panel-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.65rem;
}

.panel-text {
  font-size: 0.92rem;
  line-height: 1.7;
  margin: 0;
}

/* Наши услуги — заметный заголовок и сетка карточек */

.section-services .services-head {
  margin-bottom: clamp(2rem, 4.5vw, 3rem);
  max-width: none;
}

.section-services .services-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.05;
  color: var(--accent-ink);
  max-width: 22ch;
}

.section-services .services-intro[hidden] {
  display: none !important;
}

.section-services .services-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 1.35rem);
}

.section-services .service-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.2rem;
  align-items: start;
  margin: 0;
  padding: clamp(1.35rem, 2.6vw, 1.8rem) clamp(1.25rem, 2.4vw, 1.65rem);
  padding-left: calc(0.85rem + 3px);
  background: linear-gradient(
      145deg,
      rgba(255, 254, 250, 0.97) 0%,
      color-mix(in srgb, var(--surface-light) 88%, var(--accent) 6%) 48%,
      #fffefb 100%
    ),
    radial-gradient(
      120% 80% at 100% 0%,
      color-mix(in srgb, var(--accent) 10%, transparent) 0%,
      transparent 55%
    );
  border: 1px solid #e3ddd4;
  border-radius: var(--radius-md);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 28px rgba(17, 17, 15, 0.07);
  transition:
    transform 0.38s var(--ease-out),
    box-shadow 0.38s var(--ease-out),
    border-color 0.32s var(--ease-out);
  overflow: hidden;
}

.section-services .service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    color-mix(in srgb, var(--accent) 35%, #c4b8a4) 100%
  );
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  pointer-events: none;
  opacity: 0.88;
  transform: scaleY(0.94);
  transform-origin: center;
  transition:
    opacity 0.38s var(--ease-out),
    transform 0.38s var(--ease-out),
    width 0.32s var(--ease-out);
}

.section-services .service-card__num {
  grid-row: 1 / -1;
  align-self: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 28%, #f0ebe2);
  min-width: 2.45rem;
  height: 2.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
  transition:
    opacity 0.52s var(--ease-out),
    transform 0.52s var(--ease-out),
    background-color 0.32s var(--ease-out),
    box-shadow 0.32s var(--ease-out),
    color 0.32s var(--ease-out);
}

.section-services .service-card__body {
  min-width: 0;
}

.section-services .service-card__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1.65vw, 1.28rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.22;
  color: var(--accent-ink);
  transition:
    opacity 0.52s var(--ease-out),
    transform 0.52s var(--ease-out),
    color 0.28s var(--ease-out);
}

.section-services .service-card__text {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.68;
  color: #4f4a42;
  max-width: none;
  transition:
    opacity 0.52s var(--ease-out),
    transform 0.52s var(--ease-out);
}

@media (prefers-reduced-motion: no-preference) {
  html.js
    .section-services
    .service-card[data-reveal]:not(.is-visible)
    .service-card__num,
  html.js
    .section-services
    .service-card[data-reveal]:not(.is-visible)
    .service-card__title,
  html.js
    .section-services
    .service-card[data-reveal]:not(.is-visible)
    .service-card__text {
    opacity: 0;
    transform: translateY(0.38rem);
  }

  html.js
    .section-services
    .service-card[data-reveal].is-visible
    .service-card__num {
    opacity: 1;
    transform: none;
    transition-delay: 0.06s;
  }

  html.js
    .section-services
    .service-card[data-reveal].is-visible
    .service-card__title {
    opacity: 1;
    transform: none;
    transition-delay: 0.12s;
  }

  html.js
    .section-services
    .service-card[data-reveal].is-visible
    .service-card__text {
    opacity: 1;
    transform: none;
    transition-delay: 0.2s;
  }
}

@media (hover: hover) {
  .section-services .service-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--accent) 32%, #e3ddd4);
    box-shadow:
      0 16px 40px -18px rgba(17, 17, 15, 0.2),
      0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent);
  }

  .section-services .service-card:hover::before {
    opacity: 1;
    transform: scaleY(1);
    width: 4px;
  }

  .section-services .service-card:hover .service-card__num {
    background: color-mix(in srgb, var(--accent) 42%, #f5f0e6);
    transform: scale(1.05);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.7) inset,
      0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent),
      0 6px 18px -10px color-mix(in srgb, var(--accent) 45%, transparent);
  }

  .section-services .service-card:hover .service-card__title {
    color: color-mix(in srgb, var(--accent-ink) 88%, var(--accent) 12%);
  }
}

.section-services .service-card:focus-within {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 40%, #e3ddd4);
  box-shadow:
    0 10px 32px -16px rgba(17, 17, 15, 0.18),
    0 0 0 2px color-mix(in srgb, var(--accent) 28%, transparent);
}

@media (max-width: 48rem) {
  .section-services .services-grid {
    grid-template-columns: 1fr;
    gap: clamp(1.05rem, 4vw, 1.35rem);
  }

  .section-services .services-heading {
    max-width: none;
  }

  .section-services .service-card {
    padding: clamp(1.25rem, 4.5vw, 1.65rem) clamp(1.2rem, 4vw, 1.55rem);
    padding-left: calc(1rem + 3px);
    gap: 0.85rem 1rem;
  }

  .section-services .services-head {
    margin-bottom: clamp(1.5rem, 5vw, 2.75rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-services .service-card {
    transition: none;
  }

  .section-services .service-card::before {
    transition: none;
    opacity: 1;
    transform: none;
    width: 3px;
  }

  html.js .section-services .service-card[data-reveal] .service-card__num,
  html.js .section-services .service-card[data-reveal] .service-card__title,
  html.js .section-services .service-card[data-reveal] .service-card__text {
    opacity: 1;
    transform: none;
    transition: none;
  }

  @media (hover: hover) {
    .section-services .service-card:hover {
      transform: none;
    }

    .section-services .service-card:hover::before {
      width: 3px;
      transform: none;
    }

    .section-services .service-card:hover .service-card__num {
      transform: none;
    }
  }
}

/* Services list (наследие — не используется для #services) */

.practice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.practice-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink-faint);
  padding-top: 0.15rem;
}

.practice-body h3 {
  color: var(--ink);
}

.practice-body p {
  max-width: 52ch;
  font-size: 0.95rem;
}

/* Карта Казахстана (#map-kz) */

.section-map-kz .map-kz-wrap {
  margin-top: 0.25rem;
}

.map-kz-figure {
  margin: 0;
  padding: 0;
}

.map-kz-svg {
  width: 100%;
  max-width: min(54rem, 100%);
  height: auto;
  margin: 0 auto;
  display: block;
  filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.35));
}

.map-kz-land {
  fill: color-mix(in srgb, var(--accent) 16%, var(--surface));
  stroke: color-mix(in srgb, var(--accent) 52%, var(--line));
  stroke-width: 2;
  opacity: 1;
}

.map-kz-dot-outer {
  fill: color-mix(in srgb, var(--accent) 40%, transparent);
}

.map-kz-dot-outer--pulse {
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .map-kz-dot-outer--pulse {
    animation: map-kz-pulse-ring 2.85s ease-in-out infinite;
  }
}

@keyframes map-kz-pulse-ring {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(1);
  }
  50% {
    opacity: 0.72;
    transform: scale(1.14);
  }
}

.map-kz-dot {
  fill: var(--accent);
  stroke: var(--accent-ink);
  stroke-width: 1.25;
}

.map-kz-marker--primary .map-kz-dot {
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 45%, transparent));
}

.map-kz-dot-sec-outer {
  fill: color-mix(in srgb, var(--ink-muted) 22%, transparent);
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
}

.map-kz-dot-sec {
  fill: color-mix(in srgb, var(--accent) 42%, var(--ink-muted));
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0.45;
}

@keyframes map-kz-twinkle-core {
  0%,
  100% {
    opacity: 0.22;
    transform: scale(0.92);
  }
  40% {
    opacity: 0.55;
    transform: scale(1);
  }
  55% {
    opacity: 0.92;
    transform: scale(1.1);
  }
  70% {
    opacity: 0.42;
    transform: scale(1);
  }
}

@keyframes map-kz-twinkle-halo {
  0%,
  100% {
    opacity: 0.12;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.38;
    transform: scale(1.18);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .map-kz-marker--secondary .map-kz-dot-sec {
    animation: map-kz-twinkle-core 2.75s ease-in-out infinite;
  }

  .map-kz-marker--secondary .map-kz-dot-sec-outer {
    animation: map-kz-twinkle-halo 3.45s ease-in-out infinite;
  }

  .map-kz-marker--secondary:nth-child(8n + 2) .map-kz-dot-sec,
  .map-kz-marker--secondary:nth-child(8n + 2) .map-kz-dot-sec-outer {
    animation-delay: 0.35s;
  }

  .map-kz-marker--secondary:nth-child(8n + 3) .map-kz-dot-sec,
  .map-kz-marker--secondary:nth-child(8n + 3) .map-kz-dot-sec-outer {
    animation-delay: 0.7s;
  }

  .map-kz-marker--secondary:nth-child(8n + 4) .map-kz-dot-sec,
  .map-kz-marker--secondary:nth-child(8n + 4) .map-kz-dot-sec-outer {
    animation-delay: 1.05s;
  }

  .map-kz-marker--secondary:nth-child(8n + 5) .map-kz-dot-sec,
  .map-kz-marker--secondary:nth-child(8n + 5) .map-kz-dot-sec-outer {
    animation-delay: 1.42s;
  }

  .map-kz-marker--secondary:nth-child(8n + 6) .map-kz-dot-sec,
  .map-kz-marker--secondary:nth-child(8n + 6) .map-kz-dot-sec-outer {
    animation-delay: 1.85s;
  }

  .map-kz-marker--secondary:nth-child(8n + 7) .map-kz-dot-sec,
  .map-kz-marker--secondary:nth-child(8n + 7) .map-kz-dot-sec-outer {
    animation-delay: 2.15s;
  }

  .map-kz-marker--secondary:nth-child(8n + 8) .map-kz-dot-sec,
  .map-kz-marker--secondary:nth-child(8n + 8) .map-kz-dot-sec-outer {
    animation-delay: 2.5s;
  }

  .map-kz-marker--secondary:nth-child(3n) .map-kz-dot-sec {
    animation-duration: 3.15s;
  }

  .map-kz-marker--secondary:nth-child(3n + 1) .map-kz-dot-sec {
    animation-duration: 2.35s;
  }

  .map-kz-marker--secondary:nth-child(3n) .map-kz-dot-sec-outer {
    animation-duration: 4s;
  }

  .map-kz-marker--secondary:nth-child(3n + 2) .map-kz-dot-sec-outer {
    animation-duration: 3.1s;
  }
}

.map-kz-label {
  fill: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (max-width: 42rem) {
  .map-kz-label {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-kz-dot-outer--pulse {
    animation: none !important;
  }

  .map-kz-marker--secondary .map-kz-dot-sec,
  .map-kz-marker--secondary .map-kz-dot-sec-outer {
    animation: none !important;
  }

  .map-kz-marker--secondary .map-kz-dot-sec {
    opacity: 0.52;
    transform: none;
  }

  .map-kz-marker--secondary .map-kz-dot-sec-outer {
    opacity: 0.22;
    transform: none;
  }
}

/* Team (наследие — сетка карточек команды) */

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3.5vw, 2rem);
  padding-top: 0.35rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 52rem) {
  .people-grid {
    grid-template-columns: 1fr;
  }
}

.person {
  border-radius: var(--radius-md);
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  transition:
    border-color 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    transform 0.35s var(--ease-out);
}

@media (hover: hover) {
  .person:hover {
    border-color: color-mix(in srgb, var(--line) 72%, var(--accent) 28%);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .person {
    transition: border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  }

  .person:hover {
    transform: none;
  }
}

.person--verified {
  border-color: var(--accent-border);
}

.person h3 {
  font-size: 1.15rem;
  color: var(--ink);
}

.person-role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.65rem;
}

.person-note {
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 36ch;
}

.verified-tag {
  margin: 0.85rem 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.placeholder-tag {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* Contacts */

.grid-contact {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 3.75rem);
  align-items: start;
}

@media (max-width: 40rem) {
  .grid-contact {
    grid-template-columns: 1fr;
  }
}

.contact-intro {
  max-width: 36rem;
}

.contact-lead {
  max-width: 38ch;
  margin-top: 0.85rem;
  line-height: 1.7;
}

.contact-lead:empty,
.contact-lead[hidden] {
  display: none !important;
}

.callback-card {
  margin-top: clamp(1.5rem, 3.8vw, 2.35rem);
  padding: clamp(1.2rem, 3.2vw, 1.75rem);
  border-radius: var(--radius-md);
  background: linear-gradient(168deg, #fffefb 0%, #f3f1ea 100%);
  border: 1px solid color-mix(in srgb, var(--accent-ink) 9%, #d8d3c8);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 22px 48px -34px rgba(17, 17, 15, 0.28);
}

.callback-card__title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2.4vw, 1.32rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--accent-ink);
}

.callback-card__lead {
  margin: 0 0 1rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #5c564c;
}

.callback-card__error {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #8b2e2e;
  background: #fce8e8;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
}

.callback-card__error[hidden] {
  display: none !important;
}

.callback-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.callback-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.callback-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5c564c;
}

.callback-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.62rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--accent-ink);
  background: #fff;
  border: 1px solid #d0c9be;
  border-radius: var(--radius-sm);
  transition:
    border-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.callback-input:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 50%, #d0c9be);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 20%, transparent);
}

.callback-submit {
  align-self: flex-start;
  margin-top: 0.2rem;
}

.form-success {
  text-align: center;
  padding: 0.35rem 0.25rem 0.15rem;
}

.form-success__check {
  margin: 0 auto 0.85rem;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 42%, #fff);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent);
}

.form-success__title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent-ink);
}

.form-success__text {
  margin: 0 0 1.15rem;
  font-size: 0.94rem;
  line-height: 1.6;
  color: #5c564c;
}

.callback-success .form-success__text {
  margin-bottom: 1.25rem;
}

.feedback-success {
  padding: 0.65rem 0.25rem 0.35rem;
}

.feedback-success .form-success__text {
  margin-bottom: 1.35rem;
}

.contact-messengers {
  margin-bottom: 1.25rem;
}

.contact-messengers__icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.65rem;
}

.contact-messenger-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 50%;
  border: none;
  color: var(--accent-ink);
  text-decoration: none;
  transition:
    color 0.22s var(--ease-out),
    background 0.22s var(--ease-out),
    transform 0.2s var(--ease-out),
    box-shadow 0.22s var(--ease-out);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.88) inset,
    0 8px 22px -10px rgba(17, 17, 15, 0.45),
    0 0 0 1px color-mix(in srgb, var(--accent-ink) 7%, transparent);
}

.contact-messenger-btn::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 0.22s var(--ease-out);
}

.contact-messenger-btn--tel {
  color: #1f3d28;
  background: linear-gradient(155deg, #f2fbe8 0%, #dbebc8 55%, #c8dfa8 100%);
}

.contact-messenger-btn--wa {
  color: #fff;
  background: linear-gradient(155deg, #3fe27a 0%, #1aa651 48%, #0f7a3d 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 10px 26px -12px rgba(15, 122, 61, 0.65),
    0 0 0 1px rgba(15, 122, 61, 0.2);
}

.contact-messenger-btn--tg {
  color: #fff;
  background: linear-gradient(155deg, #4dbaf0 0%, #229ed9 50%, #157fb3 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 10px 26px -12px rgba(21, 127, 179, 0.62),
    0 0 0 1px rgba(21, 127, 179, 0.22);
}

.contact-messenger-btn:hover {
  transform: translateY(-2px);
}

.contact-messenger-btn--tel:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 28px -10px rgba(31, 61, 40, 0.35),
    0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent);
}

.contact-messenger-btn--tel:hover::after {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.contact-messenger-btn--wa:hover {
  filter: brightness(1.04);
}

.contact-messenger-btn--tg:hover {
  filter: brightness(1.04);
}

.contact-messenger-btn:focus-visible {
  outline: none;
}

.contact-messenger-btn:focus-visible::after {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--accent-ink));
}

.contact-messenger-btn svg {
  display: block;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.12));
}

.contact-messenger-btn--wa svg,
.contact-messenger-btn--tg svg {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.22));
}

.contact-messengers__num {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
}

.contact-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-details {
  font-style: normal;
}

.contact-details p {
  margin-bottom: 1.35rem;
  line-height: 1.65;
}

.contact-details p:last-child {
  margin-bottom: 0;
}

.contact-extra p {
  margin-bottom: 1rem;
}

.channels-placeholder {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--line-strong);
  color: var(--ink-faint);
  font-size: 0.875rem;
  line-height: 1.6;
}

.label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Модальное окно обратной связи */

.feedback-dialog {
  width: min(28.5rem, calc(100vw - 2.5rem));
  max-height: min(90vh, 40rem);
  padding: 0;
  margin: auto;
  border: none;
  border-radius: var(--radius-md);
  background: #fffefb;
  color: var(--accent-ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 28px 80px -32px rgba(0, 0, 0, 0.55);
}

.feedback-dialog::backdrop {
  background: rgba(14, 14, 13, 0.58);
  backdrop-filter: blur(4px);
}

.feedback-dialog__panel {
  position: relative;
  padding: clamp(1.35rem, 3.5vw, 1.85rem);
  padding-top: 2.65rem;
}

.feedback-dialog__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: color-mix(in srgb, var(--accent-ink) 6%, transparent);
  color: var(--accent-ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
}

.feedback-dialog__close:hover {
  background: color-mix(in srgb, var(--accent-ink) 11%, transparent);
}

.feedback-dialog__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.feedback-dialog__title {
  margin: 0 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  padding-right: 2rem;
  color: var(--accent-ink);
}

.feedback-dialog__error {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #8b2e2e;
  background: #fce8e8;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
}

.feedback-dialog__error[hidden] {
  display: none !important;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feedback-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feedback-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5c564c;
}

.feedback-input,
.feedback-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.8rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--accent-ink);
  background: #fff;
  border: 1px solid #d8d0c4;
  border-radius: var(--radius-sm);
  transition:
    border-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.feedback-textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.feedback-input:focus-visible,
.feedback-textarea:focus-visible {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 55%, #d8d0c4);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 22%, transparent);
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}

.btn--ghost {
  padding: 0.72rem 1.2rem;
  font-size: 0.68rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--accent-ink);
  border: 1px solid #c9c2b6;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out);
}

.btn--ghost:hover {
  background: color-mix(in srgb, var(--accent-ink) 5%, transparent);
  border-color: #b0a896;
}

.btn--ghost:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.feedback-dialog-open {
  overflow: hidden;
}

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

  .feedback-input,
  .feedback-textarea {
    transition: none;
  }
}

/* Reveal — только при JS */

html.js [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(0.65rem);
}

[data-reveal] {
  transition:
    opacity var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero: поэтапное появление строк вместо сдвига всего блока */
@media (prefers-reduced-motion: no-preference) {
  html.js .hero .hero-copy[data-reveal]:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  html.js .hero .hero-copy[data-reveal]:not(.is-visible) .eyebrow:not([hidden]),
  html.js .hero .hero-copy[data-reveal]:not(.is-visible) .hero-title,
  html.js .hero .hero-copy[data-reveal]:not(.is-visible) .lead {
    opacity: 0;
    transform: translateY(0.85rem);
  }

  html.js .hero .hero-copy[data-reveal] .eyebrow:not([hidden]),
  html.js .hero .hero-copy[data-reveal] .hero-title,
  html.js .hero .hero-copy[data-reveal] .lead {
    transition:
      opacity 0.78s var(--ease-out),
      transform 0.78s var(--ease-out);
  }

  html.js .hero .hero-copy[data-reveal].is-visible .eyebrow:not([hidden]) {
    opacity: 1;
    transform: none;
    transition-delay: 0.04s;
  }

  html.js .hero .hero-copy[data-reveal].is-visible .hero-title {
    opacity: 1;
    transform: none;
    transition-delay: 0.13s;
  }

  html.js .hero .hero-copy[data-reveal].is-visible .lead {
    opacity: 1;
    transform: none;
    transition-delay: 0.26s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal]:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  html.js .hero .hero-copy[data-reveal]:not(.is-visible) .eyebrow:not([hidden]),
  html.js .hero .hero-copy[data-reveal]:not(.is-visible) .hero-title,
  html.js .hero .hero-copy[data-reveal]:not(.is-visible) .lead {
    opacity: 1;
    transform: none;
  }

  [data-reveal] {
    transition: none;
  }
}
