:root {
  /* AI PILOT visual system: premium flagship zinc + glassmorphism. */
  --ink: #09090b;
  --muted: #45484d;
  --paper: #fafafa;
  --white: #ffffff;
  --surface: #f4f4f5;
  --surface-soft: #eeeef0;
  --line: #dcdce1;
  --green: #18181b;
  --green-dark: #09090b;
  --deep: #18181b;
  --deep-soft: #27272a;
  --amber: #f59e0b;
  --blue: #3b82f6;
  --red: #ef4444;
  --soft-green: #f4f4f5;
  --soft-amber: #fef3c7;
  --soft-blue: #eff6ff;
  --soft-red: #fef2f2;
  --shadow: 0 14px 38px rgba(24, 24, 27, .08);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-media: 30px;
  --button-border: rgba(24, 24, 27, .28);
  --button-border-strong: rgba(24, 24, 27, .72);
  --button-secondary-bg: rgba(255, 255, 255, .9);
  --premium-hero-bg: none;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

/* Reserve and pin the complete header stack before site.js mounts it. Keeping
   sticky on the mount avoids the containing-block trap of a sticky child. */
[data-site-header] {
  display: block;
  min-height: 105px;
  position: sticky;
  top: 0;
  z-index: 1000;
  isolation: isolate;
}

[data-site-header].site-header-without-announcement { min-height: 73px; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(24, 24, 27, .28);
  outline-offset: 3px;
}

p, li, span {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

p, .lead, .section-note, .card p, .catalog-card p, .news-card p, .start-option p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, .8);
  border-bottom: 1px solid rgba(228, 228, 231, .8);
  backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(255,255,255,.6), 0 4px 24px rgba(0,0,0,.04);
}

.site-announcement {
  --announcement-duration: 32s;
  min-height: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: stretch;
  overflow: hidden;
  color: #fff;
  background: #163a2b;
  border-top: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 6px 18px rgba(18, 48, 35, .12);
}

.site-announcement--info { background: #26313a; }
.site-announcement[hidden] { display: none; }
.site-announcement-link { min-width: 0; overflow: hidden; display: flex; align-items: center; }
.site-announcement-track { display: flex; width: max-content; min-width: max-content; animation: site-announcement-scroll var(--announcement-duration) linear infinite; will-change: transform; }
.site-announcement-copy { display: inline-flex; align-items: center; gap: 10px; padding: 6px 30px; white-space: nowrap; font-size: 12px; line-height: 20px; font-weight: 680; letter-spacing: .005em; }
.site-announcement-copy strong { color: #fff7c7; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-announcement-dot { color: #9fd3b8; }
.site-announcement-arrow { font-size: 14px; }
.site-announcement-toggle { width: 42px; min-height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-left: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .12); color: #fff; cursor: pointer; font: inherit; }
.site-announcement-toggle:hover,
.site-announcement-toggle:focus-visible { background: rgba(255, 255, 255, .12); }
.site-announcement:hover .site-announcement-track,
.site-announcement:focus-within .site-announcement-track,
.site-announcement.is-paused .site-announcement-track { animation-play-state: paused; }

@keyframes site-announcement-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.nav {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
}

.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 3px;
  line-height: 1;
}

.brand-name {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .01em;
}

.brand-tagline {
  color: #67726c;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .06em;
}

.navlinks {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  align-items: center;
}

.navlinks a:hover,
.navlinks a.active { color: var(--ink); font-weight: 800; }

.nav-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-trigger {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 22px 0;
  cursor: default;
}

.nav-trigger:hover,
.nav-group:hover .nav-trigger,
.nav-group.is-pointer-open .nav-trigger {
  color: var(--ink);
  font-weight: 800;
}

.nav-caret {
  font-size: 13px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .15s ease;
}

.nav-group:hover .nav-caret,
.nav-group.is-pointer-open .nav-caret { transform: rotate(180deg); }

.nav-menu {
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 260px;
  display: none;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nav-group:hover .nav-menu,
.nav-group.is-pointer-open .nav-menu {
  display: grid;
  gap: 3px;
}

.nav-menu a {
  display: block;
  padding: 10px 11px;
  border-radius: 8px;
  color: var(--muted);
}

.nav-menu a:hover { background: var(--surface-soft); color: var(--ink); }

.nav-menu-grouped {
  width: min(760px, calc(100vw - 48px));
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  gap: 8px 18px !important;
  padding: 16px;
}

.nav-menu-section {
  display: grid;
  align-content: start;
  gap: 2px;
}

.nav-menu-heading {
  padding: 6px 11px 4px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-product-menu {
  left: 50%;
  width: min(820px, calc(100vw - 48px));
  padding: 0;
  overflow: hidden;
  grid-template-columns: minmax(320px, .92fr) minmax(360px, 1.08fr);
  gap: 0 !important;
  transform: translateX(-42%);
  border-radius: 14px;
  box-shadow: 0 26px 70px rgba(20, 33, 27, .18);
}

.nav-group:hover .nav-product-menu,
.nav-group.is-pointer-open .nav-product-menu { display: grid; }

.nav-product-featured {
  display: grid;
  gap: 8px;
  padding: 20px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.nav-product-card {
  position: relative;
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  padding: 11px 12px !important;
  border: 1px solid transparent;
}

.nav-product-card:hover,
.nav-product-card.active {
  border-color: rgba(31, 122, 77, .18);
  background: var(--surface-soft);
}

.nav-product-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(31, 122, 77, .14);
  border-radius: 14px;
  background: #f4f8f2;
}

.nav-product-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-product-icon--letter {
  color: white;
  background: linear-gradient(145deg, var(--green), #2d8b62);
  font-size: 22px;
  font-weight: 950;
}

.nav-product-copy { display: grid; gap: 3px; min-width: 0; }
.nav-product-copy strong { color: var(--ink); font-size: 15px; }
.nav-product-copy small,
.nav-product-all small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.nav-product-arrow { color: var(--green); font-size: 17px; opacity: .65; }

.nav-product-ecosystem {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
  background: #f7f5ed;
}

.nav-product-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
}

.nav-product-all {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 4px;
  padding: 14px !important;
  border: 1px solid rgba(31, 122, 77, .16);
  background: rgba(255, 255, 255, .72);
}

.nav-product-all > span:first-child { display: grid; gap: 4px; }
.nav-product-all strong { color: var(--ink); }

.nav-cta {
  background: var(--green);
  color: white;
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.nav-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero {
  padding: 40px 0 30px;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(90deg, rgba(250,250,250,.99) 0%, rgba(244,244,245,.96) 45%, rgba(228,228,231,.76) 70%, rgba(228,228,231,.54) 100%);
  background-position: center, center right;
  background-size: cover, cover;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::after {
  display: none;
}

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

.hero-grid > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(31,122,77,.22);
  background: rgba(255,253,248,.78);
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(31,122,77,.13);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(31,122,77,.13); }
  50% { box-shadow: 0 0 0 9px rgba(31,122,77,.04); }
}

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
}

h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
  max-width: 760px;
  text-wrap: balance;
}

h2 {
  margin: 0;
  max-width: 760px;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.22;
  text-wrap: balance;
}

.semantic-title {
  text-wrap: auto;
}

.semantic-title > span {
  display: block;
  max-width: 100%;
  white-space: normal;
  text-wrap: balance;
}

.lead {
  margin: 22px 0 0;
  color: #35443c;
  font-size: 17px;
  line-height: 1.55;
  max-width: 680px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.btn-primary { color: white; background: var(--green); box-shadow: 0 10px 20px rgba(31,122,77,.18); }
.btn-secondary { background: rgba(255,253,247,.86); border-color: var(--line); color: var(--ink); backdrop-filter: blur(8px); }

.btn:hover { transform: translateY(-2px); }
.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(31,122,77,.3), 0 0 0 4px rgba(31,122,77,.15);
  background: var(--green-dark);
}
.btn-secondary:hover {
  background: white;
  border-color: rgba(31,122,77,.3);
  box-shadow: 0 10px 20px rgba(20,33,27,.06);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.chip-row span {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(220,229,221,.9);
  border-radius: 999px;
  padding: 7px 10px;
}

.section { padding: 40px 0; }
.section.alt { background: #f0ede1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark {
  background:
    linear-gradient(180deg, rgba(232,241,232,.94), rgba(245,243,234,.98)),
    radial-gradient(circle at 88% 10%, rgba(28,122,75,.10), transparent 34%);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section.dark .section-note, .section.dark p { color: var(--muted); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(260px, .42fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

/* Фирменная «взлётная полоса» над заголовком секции: выделяет блоки
   и несёт метафору бренда (маршрут пилота). */
.section-head h2::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--green) 60%, rgba(28,122,75,.25));
}

.section.dark .section-head h2::before,
.final h2::before { background: linear-gradient(90deg, var(--amber) 60%, rgba(185,135,54,.25)); }

/* Живые карточки: блоки заметнее и «дороже» на hover */
.card, .catalog-card, .news-card, .start-option, .niche-chip, .proof-item, .aud-links a {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.card:hover, .news-card:hover, .start-option:hover, .proof-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20,33,27,.12), 0 0 0 1px rgba(20,33,27,.03);
}

.catalog-card:hover, .niche-chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(31,122,77,.15), 0 0 0 1px rgba(31,122,77,.1);
  border-color: var(--green);
}

/* Широкий продуктовый кадр — «большой момент» страницы */
.product-shot {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--deep);
  padding: 14px;
  box-shadow: 0 26px 60px rgba(20,33,27,.16);
  margin-bottom: 22px;
}

.product-shot img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.product-shot figcaption {
  padding: 12px 6px 2px;
  color: #a9bcaf;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.product-shot figcaption b { color: #fff; font-size: 15px; }

/* Персона бренда в блоке консультации */
.consult-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.consult-person img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green);
}

.consult-person strong { display: block; font-size: 15px; }
.consult-person span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

.section-note {
  max-width: 410px;
  color: var(--muted);
  letter-spacing: 0;
  max-width: 760px;
  text-wrap: balance;
}

h2 {
  margin: 0;
  max-width: 760px;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.22;
  text-wrap: balance;
}

.semantic-title {
  text-wrap: auto;
}

.semantic-title > span {
  display: block;
  max-width: 100%;
  white-space: normal;
  text-wrap: balance;
}

.lead {
  margin: 22px 0 0;
  color: #35443c;
  font-size: 17px;
  line-height: 1.55;
  max-width: 680px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
  font-size: 15px;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.btn-primary { color: white; background: var(--green); box-shadow: 0 10px 20px rgba(31,122,77,.18); }
.btn-secondary { background: rgba(255,253,247,.86); border-color: var(--line); color: var(--ink); backdrop-filter: blur(8px); }

.btn:hover { transform: translateY(-2px); }
.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(31,122,77,.3), 0 0 0 4px rgba(31,122,77,.15);
  background: var(--green-dark);
}
.btn-secondary:hover {
  background: white;
  border-color: rgba(255,253,247,.3);
  box-shadow: 0 10px 20px rgba(20,33,27,.06);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.chip-row span {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(220,229,221,.9);
  border-radius: 999px;
  padding: 7px 10px;
}

.section { padding: 40px 0; }
.section.alt { background: #f0ede1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark {
  background:
    linear-gradient(180deg, rgba(232,241,232,.94), rgba(245,243,234,.98)),
    radial-gradient(circle at 88% 10%, rgba(28,122,75,.10), transparent 34%);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section.dark .section-note, .section.dark p { color: var(--muted); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(260px, .42fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

/* Фирменная «взлётная полоса» над заголовком секции: выделяет блоки
   и несёт метафору бренда (маршрут пилота). */
.section-head h2::before {
  content: "";
  display: block;
  width: 46px;
  height: 4px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--green) 60%, rgba(28,122,75,.25));
}

.section.dark .section-head h2::before,
.final h2::before { background: linear-gradient(90deg, var(--amber) 60%, rgba(185,135,54,.25)); }

/* Живые карточки: блоки заметнее и «дороже» на hover */
.card, .catalog-card, .news-card, .start-option, .niche-chip, .proof-item, .aud-links a {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.card:hover, .news-card:hover, .start-option:hover, .proof-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(20,33,27,.12), 0 0 0 1px rgba(20,33,27,.03);
}

.catalog-card:hover, .niche-chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(31,122,77,.15), 0 0 0 1px rgba(31,122,77,.1);
  border-color: var(--green);
}

/* Широкий продуктовый кадр — «большой момент» страницы */
.product-shot {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--deep);
  padding: 14px;
  box-shadow: 0 26px 60px rgba(20,33,27,.16);
  margin-bottom: 22px;
}

.product-shot img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.product-shot figcaption {
  padding: 12px 6px 2px;
  color: #a9bcaf;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.product-shot figcaption b { color: #fff; font-size: 15px; }

/* Персона бренда в блоке консультации */
.consult-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.consult-person img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--green);
}

.consult-person strong { display: block; font-size: 15px; }
.consult-person span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

.section-note {
  max-width: 410px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Цветовая дисциплина: белые карточки с тонким цветовым маркером сверху
   вместо конкурирующих заливок — спокойнее и «дороже» (по образцу сервисных порталов). */
.card.soft { background: var(--surface); }
.card.green, .card.amber, .card.blue, .card.red {
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(244,244,245,0.6) 100%);
  border-top: 3px solid var(--green);
}
.card.amber { border-top-color: var(--amber); }
.card.blue { border-top-color: var(--blue); }
.card.red { border-top-color: var(--red); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.card p, .card li { color: var(--muted); }
.card p { margin: 12px 0 0; }
.card ul { margin: 14px 0 0; padding-left: 18px; }
.card li + li { margin-top: 6px; }

.kicker {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 12px;
}

.platform-card {
  background: rgba(255,253,247,.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(20,33,27,.08);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
}

.hero-figure {
  position: absolute;
  right: -46px;
  top: -82px;
  width: min(390px, 50%);
  filter: drop-shadow(0 28px 45px rgba(23,32,27,.18));
  z-index: 2;
  pointer-events: none;
}

.hero-figure img {
  width: 100%;
  display: block;
}

.hero-visual .platform-card {
  align-self: end;
  margin-top: 220px;
}

.brand-wordmark {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

.asset-card {
  min-height: 270px;
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 12px;
  align-items: end;
  overflow: hidden;
}

.asset-card img {
  width: min(160px, 100%);
  aspect-ratio: 4 / 3;
  object-fit: contain;
  justify-self: end;
  align-self: end;
  filter: drop-shadow(0 18px 24px rgba(23,32,27,.16));
}

.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-panel {
  border: 1px solid var(--line);
  background: rgba(255,253,247,.88);
  border-radius: 8px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr minmax(280px, .44fr);
  gap: 18px;
  align-items: center;
}

.feature-panel img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(20,33,27,.12));
}

.studio-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.studio-feature-card {
  display: grid;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,253,247,.9);
  box-shadow: 0 18px 42px rgba(20, 33, 27, .08);
}

.studio-feature-card > div {
  display: grid;
  align-content: start;
  gap: 12px;
}

.studio-feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.card-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  background: var(--surface);
}

.card-head strong { font-size: 17px; }
.card-head span { color: var(--muted); font-size: 13px; }

.ops-map {
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.card-visual { padding: 16px; }
.card-visual img { width: 100%; height: auto; display: block; border-radius: 8px; }

/* Hero media is generated in a stable 1586x992 frame; reserve it before decoding. */
.page-hero .platform-card .card-visual img {
  aspect-ratio: 1586 / 992;
  object-fit: cover;
}

.ops-item {
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-soft);
}

.ops-item:nth-child(2) { background: var(--soft-amber); }
.ops-item:nth-child(3) { background: var(--soft-blue); }
.ops-item:nth-child(4) { background: var(--soft-green); }
.ops-item:nth-child(5) { background: var(--soft-red); }

.ops-item small { display: block; color: var(--muted); font-weight: 900; margin-bottom: 7px; }
.ops-item strong { display: block; font-size: 18px; line-height: 1.15; }
.ops-item p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

.metric-strip {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: white;
}

.metric { padding: 15px 18px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; font-size: 21px; }
.metric span { color: var(--muted); font-size: 13px; }

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) repeat(3, minmax(170px, .32fr));
  gap: 16px;
  align-items: stretch;
}

.method-main strong { display: block; font-size: 26px; line-height: 1.14; max-width: 650px; text-wrap: balance; }
.method-main span { display: block; color: var(--muted); margin-top: 10px; max-width: 760px; }
.method-step {
  border: 1px solid var(--line);
  background: rgba(255,253,247,.78);
  border-radius: 8px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.method-step::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  height: 3px;
  background: linear-gradient(90deg, var(--green), rgba(28,122,75,.14));
  border-radius: 999px;
}

.method-step small { display: block; color: var(--green-dark); font-weight: 900; margin-bottom: 8px; }
.method-step b { display: block; font-size: 17px; line-height: 1.18; }
.method-step span { display: block; margin-top: 10px; padding-bottom: 20px; color: var(--muted); font-size: 13px; line-height: 1.35; }

.method-board {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255,253,247,.92), rgba(238,244,238,.72)),
    radial-gradient(circle at 82% 24%, rgba(185,135,54,.14), transparent 30%);
}

.board-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.board-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 18px 0 0 var(--green), 36px 0 0 var(--blue);
  margin-right: 38px;
}

.query-card {
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 14px;
}

.query-card small {
  color: var(--green-dark);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11px;
  font-weight: 900;
}

.query-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.15;
}

.query-card em {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.query-card.hot { background: var(--soft-green); }
.query-card.accent { background: var(--soft-amber); }

.board-line {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.board-line i {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(28,122,75,.14), var(--green), rgba(28,122,75,.14));
  background-size: 250% 100%;
  animation: board-flow 3.6s ease-in-out infinite;
}

@keyframes board-flow {
  0% { background-position: 100% 0; }
  100% { background-position: -150% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .board-line i { animation: none; background-position: 0 0; }
}

/* Unified wallet top-up: compact, explicit and safe on desktop and mobile. */
.wallet-topup-card { border-color: rgba(25,127,80,.23); background: linear-gradient(145deg,#fff 0%,#f5faf6 100%); }
.wallet-topup-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.wallet-topup-head strong { display:block; margin-top:7px; font-size:22px; line-height:1.15; }
.wallet-topup-head p { max-width:700px; margin:8px 0 0; color:var(--muted); line-height:1.5; }
.wallet-topup-currency { flex:none; padding:7px 10px; border:1px solid rgba(25,127,80,.24); border-radius:999px; color:var(--green-dark); background:#fff; font-size:12px; font-weight:850; letter-spacing:.08em; }
.wallet-topup-form { display:grid; grid-template-columns:minmax(190px,.7fr) minmax(240px,1fr) auto; gap:12px; align-items:end; margin-top:20px; }
.wallet-topup-presets { grid-column:1/-1; display:flex; gap:7px; flex-wrap:wrap; }
.wallet-topup-presets button { min-width:62px; padding:8px 12px; border:1px solid #cfd8d1; border-radius:10px; background:#fff; color:var(--ink); font:inherit; font-size:13px; font-weight:800; cursor:pointer; }
.wallet-topup-presets button:hover,.wallet-topup-presets button.active { border-color:var(--green); color:var(--green-dark); box-shadow:0 0 0 3px rgba(25,127,80,.08); }
.wallet-topup-form .field { margin:0; }
.wallet-topup-form .field>span { display:block; margin-bottom:6px; font-size:12px; font-weight:780; }
.wallet-amount-input { display:grid; grid-template-columns:34px 1fr; align-items:center; min-height:48px; border:1px solid #cfd5d0; border-radius:11px; background:#fff; overflow:hidden; }
.wallet-amount-input b { text-align:center; color:var(--green-dark); }
.wallet-amount-input input { width:100%; min-height:46px; border:0; border-left:1px solid #e3e7e4; border-radius:0; box-shadow:none!important; }
.wallet-topup-submit { min-height:48px; white-space:nowrap; }
.wallet-topup-status { margin:14px 0 0; padding:11px 13px; border-radius:10px; font-size:13px; font-weight:760; }
.wallet-topup-status.pending { color:#6f5715; background:#fff6d9; }
.wallet-topup-status.success { color:#115b38; background:#e8f6ed; }
.wallet-topup-status.error { color:#922c25; background:#fff0ee; }
.wallet-topup-note { display:block; margin-top:11px; color:var(--muted); line-height:1.45; }
.wallet-topup-card-epos { border-color:rgba(34,99,163,.28); background:linear-gradient(145deg,#fff 0%,#f3f8ff 100%); }
.wallet-topup-card-epos .wallet-topup-currency { border-color:rgba(34,99,163,.27); color:#174f86; }
.wallet-topup-card-epos .wallet-topup-presets button:hover,.wallet-topup-card-epos .wallet-topup-presets button.active { border-color:#2367a7; color:#174f86; box-shadow:0 0 0 3px rgba(35,103,167,.09); }
.wallet-payment-modal { position:fixed; inset:0; z-index:10050; display:grid; place-items:center; padding:24px; }
.wallet-payment-modal[hidden] { display:none; }
.wallet-payment-backdrop { position:absolute; inset:0; background:rgba(13,25,19,.62); backdrop-filter:blur(7px); }
.wallet-payment-dialog { position:relative; width:min(760px,100%); max-height:calc(100dvh - 48px); overflow:auto; overscroll-behavior:contain; border:1px solid rgba(25,127,80,.28); border-radius:22px; background:#fff; box-shadow:0 28px 90px rgba(10,34,22,.3); }
.wallet-payment-header { position:sticky; top:0; z-index:2; display:flex; align-items:flex-start; justify-content:space-between; gap:18px; padding:22px 24px 17px; border-bottom:1px solid #dde6df; background:rgba(255,255,255,.96); backdrop-filter:blur(12px); }
.wallet-payment-header h2 { margin:7px 0 0; font-size:26px; line-height:1.08; }
.wallet-payment-header p { margin:7px 0 0; color:var(--muted); font-size:13px; line-height:1.45; }
.wallet-payment-close { flex:none; width:42px; height:42px; border:1px solid #d7dfd9; border-radius:50%; background:#f7faf8; color:var(--ink); font:700 25px/1 Arial,sans-serif; cursor:pointer; }
.wallet-payment-close:hover { border-color:var(--green); color:var(--green-dark); }
.wallet-payment-state { margin:18px 24px 0; padding:12px 14px; border:1px solid transparent; border-radius:12px; font-size:14px; font-weight:780; line-height:1.45; }
.wallet-payment-state.pending { color:#6f5715; border-color:#eadba8; background:#fff8df; }
.wallet-payment-state.success { color:#115b38; border-color:#b8dcc6; background:#eaf7ef; }
.wallet-payment-state.error { color:#922c25; border-color:#edc5c0; background:#fff1ef; }
.wallet-payment-checkout { min-height:270px; margin:14px 16px 0; padding:8px; border:1px solid #d7e1da; border-radius:16px; background:#fbfdfb; }
.wallet-payment-actions { display:flex; justify-content:flex-end; gap:10px; padding:16px 24px 22px; }
.wallet-epos-dialog { width:min(720px,100%); }
.wallet-epos-content { display:grid; grid-template-columns:minmax(230px,300px) 1fr; gap:22px; align-items:center; padding:20px 24px 4px; }
.wallet-epos-qr { min-height:260px; display:grid; place-items:center; padding:14px; border:1px solid #c9d9ce; border-radius:18px; background:#fff; color:var(--muted); text-align:center; }
.wallet-epos-qr img { display:block; width:min(100%,280px); height:auto; aspect-ratio:1; object-fit:contain; }
.wallet-epos-summary { display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
.wallet-epos-summary>span { color:var(--muted); font-size:12px; font-weight:780; text-transform:uppercase; letter-spacing:.08em; }
.wallet-epos-summary>strong { font-size:30px; line-height:1; color:var(--green-dark); }
.wallet-epos-summary p { margin:2px 0 8px; color:var(--muted); line-height:1.5; }
body.wallet-payment-open { overflow:hidden; }
@media (max-width:760px){
  .wallet-topup-head{gap:10px}.wallet-topup-head strong{font-size:19px}.wallet-topup-head p{font-size:12px}
  .wallet-topup-form{grid-template-columns:1fr;gap:10px}.wallet-topup-presets{grid-column:auto}.wallet-topup-presets button{flex:1;min-width:54px}
  .wallet-topup-submit{width:100%;justify-content:center}
  .wallet-payment-modal{display:block;padding:0}.wallet-payment-modal[hidden]{display:none}
  .wallet-payment-dialog{width:100%;height:100dvh;max-height:none;border:0;border-radius:0;box-shadow:none}
  .wallet-payment-header{padding:16px 16px 13px}.wallet-payment-header h2{font-size:21px}.wallet-payment-header p{font-size:12px}.wallet-payment-close{width:38px;height:38px}
  .wallet-payment-state{margin:13px 14px 0}.wallet-payment-checkout{margin:11px 8px 0;padding:4px;border-radius:12px}.wallet-payment-actions{padding:13px 14px 20px;flex-direction:column-reverse}.wallet-payment-actions .btn{width:100%;justify-content:center}
  .wallet-epos-content{grid-template-columns:1fr;padding:14px 16px 4px;gap:14px}.wallet-epos-qr{min-height:220px}.wallet-epos-qr img{width:min(74vw,260px)}.wallet-epos-summary{align-items:stretch}.wallet-epos-summary>strong{text-align:center}.wallet-epos-summary .btn{justify-content:center;width:100%}
}

.system-line { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.system-step { min-height: 160px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: white; }
.system-step:nth-child(1) { background: var(--soft-amber); }
.system-step:nth-child(3) { background: var(--soft-green); }
.system-step:nth-child(5) { background: var(--soft-blue); }
.system-step small { color: var(--muted); font-weight: 900; }
.system-step strong { display: block; margin-top: 8px; font-size: 19px; line-height: 1.15; }
.system-step span { display: block; margin-top: 9px; color: var(--muted); font-size: 14px; }

.phone-control {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(238,244,238,.78);
  box-shadow: 0 14px 34px rgba(20,33,27,.08);
  padding: 22px;
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 22px;
  align-items: center;
}

.phone-frame {
  width: min(270px, 100%);
  margin: 0 auto;
  border: 10px solid var(--deep);
  border-radius: 32px;
  background: var(--white);
  overflow: hidden;
  min-height: 520px;
  box-shadow: 0 18px 40px rgba(23, 32, 27, .18);
}

.phone-top { height: 38px; background: var(--deep); color: white; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.phone-body { padding: 14px; display: grid; gap: 10px; }
.phone-card { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--surface); }
.phone-card strong { display: block; font-size: 14px; }
.phone-card span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }

.control-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.control-item { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 15px; }
.control-item strong { display: block; font-size: 17px; }
.control-item span { display: block; color: var(--muted); margin-top: 7px; font-size: 14px; }

.dashboard-shell {
  min-height: 760px;
  display: grid;
  grid-template-columns: 250px 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.side {
  background: var(--deep);
  color: white;
  padding: 18px;
}

.side .brand { margin-bottom: 24px; }
.side-nav { display: grid; gap: 7px; }
.side-nav a,
.side-nav button { width: 100%; padding: 11px 12px; border: 0; border-radius: 8px; color: #d9e5dc; background: transparent; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.side-nav a.active, .side-nav a:hover,
.side-nav button.active, .side-nav button:hover { background: rgba(255,255,255,.1); color: white; }

.dash-main { padding: 22px; background: var(--surface-soft); }
.dash-topline { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; }
.dash-topline p { margin: 6px 0 0; color: var(--muted); }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dash-card { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.dash-card.wide { grid-column: span 2; }
.dash-card.full { grid-column: 1 / -1; }
.dash-card strong { display: block; font-size: 20px; }
.dash-card span, .dash-card p { color: var(--muted); }
.dash-list { display: grid; gap: 10px; margin-top: 12px; }
.dash-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }

/* Cabinet is a product workspace: compact, explicit and service-aware. */
body.cabinet-active .auth-section { padding-top: 24px; }
.account-dashboard { min-height: 640px; grid-template-columns: 232px minmax(0,1fr); }
.account-dashboard .side { display: flex; flex-direction: column; }
.account-dashboard [hidden] { display: none !important; }
.account-dashboard .side-logout { margin-top: auto; color: #d9e5dc; }
.cabinet-panel[hidden], .business-modal[hidden] { display: none !important; }
.cabinet-context { display: grid; grid-template-columns: auto minmax(180px,320px) auto; gap: 10px; align-items: center; margin-bottom: 18px; padding: 10px 12px; border: 1px solid #d9e4dc; border-radius: 12px; background: rgba(255,255,255,.82); }
.cabinet-context label { color: var(--muted); font-size: 12px; font-weight: 800; }
.cabinet-context select { min-height: 38px; border: 1px solid var(--line); border-radius: 9px; background: white; padding: 7px 34px 7px 10px; font-weight: 800; }
.cabinet-context-status, .cabinet-service-state { justify-self: end; padding: 6px 9px; border-radius: 999px; background: #edf6f0; color: #176443; font-size: 12px; font-weight: 800; }
.cabinet-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.cabinet-empty-business { display: grid; justify-items: start; gap: 8px; padding: 22px; background: linear-gradient(120deg,#fff 0%,#f3f8f4 100%); border-style: dashed; }
.cabinet-empty-business p { max-width: 690px; margin: 0 0 4px; }
.cabinet-verify-alert { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 12px 16px; border: 1px solid #e7c98a; border-radius: 14px; background: #fdf6e6; color: #5a4a1e; }
.cabinet-verify-alert .cva-ico { font-size: 20px; line-height: 1; }
.cabinet-verify-alert .cva-body { flex: 1; min-width: 0; }
.cabinet-verify-alert .cva-body b { display: block; font-size: 14px; margin-bottom: 2px; }
.cabinet-verify-alert .cva-body p { margin: 0; font-size: 13px; line-height: 1.4; color: #6b5a2c; }
.cabinet-verify-alert .btn { flex-shrink: 0; }
@media (max-width: 640px) { .cabinet-verify-alert { flex-wrap: wrap; } .cabinet-verify-alert .btn { width: 100%; } }
.cabinet-summary-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cabinet-summary-head p { margin: 4px 0 0; }
.cabinet-summary-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cabinet-summary-meta span { padding: 7px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--deep); font-size: 12px; font-weight: 700; }
.cabinet-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.dash-value-small { overflow-wrap: anywhere; font-size: 16px !important; }
.cabinet-detail-list { display: grid; gap: 0; margin-top: 14px; border-top: 1px solid var(--line); }
.cabinet-detail-list p { display: grid; grid-template-columns: 130px minmax(0,1fr); gap: 14px; margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cabinet-detail-list b { color: var(--deep); }
.cabinet-status-title { margin-top: 8px; }
.cabinet-business-list, .cabinet-service-list { display: grid; gap: 9px; margin-top: 14px; }
.cabinet-business-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--deep); text-align: left; cursor: pointer; }
.cabinet-business-row:hover, .cabinet-business-row.active { border-color: #8fb8a0; background: #f1f7f3; }
.cabinet-business-row span { display: grid; gap: 3px; }
.cabinet-business-row small { color: var(--muted); }
.cabinet-business-row i { font-style: normal; font-weight: 900; color: #168254; }
.cabinet-service-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
.cabinet-service-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 10px 30px rgba(20,45,31,.05); }
.cabinet-service-card p { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.cabinet-service-actions { display: grid; justify-items: end; gap: 9px; }
.cabinet-service-open { min-height: 38px; padding: 8px 13px; white-space: nowrap; }
.cabinet-service-state.state-requested, .cabinet-service-state.state-verification_required { background: #fff3d9; color: #8a5a00; }
.cabinet-service-state.state-blocked, .cabinet-service-state.state-paused { background: #f6e9e7; color: #9b3f35; }
.cabinet-service-state.state-not_connected { background: #f0f1ef; color: #66716b; }
.cabinet-team-invite { display: grid; grid-template-columns: minmax(220px,1fr) minmax(170px,.45fr) auto; gap: 10px; align-items: end; margin: 16px 0; }
.cabinet-team-invite .field { margin: 0; }
.cabinet-team-list, .cabinet-pending-invites { display: grid; gap: 8px; margin-top: 12px; }
.cabinet-pending-invites:empty { display: none; }
.cabinet-team-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.cabinet-team-row.pending { border-style: dashed; background: #fbfaf5; }
.cabinet-team-row > span { display: grid; gap: 3px; min-width: 0; }
.cabinet-team-row small { color: var(--muted); overflow-wrap: anywhere; }
.cabinet-team-controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.cabinet-team-controls select { min-height: 38px; padding: 7px 30px 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--deep); }
.cabinet-history-filters { display: grid; grid-template-columns: repeat(2,minmax(200px,300px)); gap: 12px; margin: 0 0 16px; }
.cabinet-history-filters .field { margin: 0; }
.btn-compact { min-height: 38px; padding: 8px 12px; font-size: 13px; }

.business-modal { position: fixed; inset: 0; z-index: 10020; display: grid; place-items: center; padding: 22px; }
.business-modal-backdrop { position: absolute; inset: 0; background: rgba(12,20,16,.62); backdrop-filter: blur(7px); }
.business-dialog { position: relative; width: min(760px,100%); max-height: min(780px,calc(100vh - 44px)); overflow: auto; padding: 25px; border: 1px solid rgba(255,255,255,.7); border-radius: 20px; background: #fffefa; box-shadow: 0 28px 90px rgba(10,25,17,.28); }
.business-dialog-head { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.business-dialog-head h2 { margin: 8px 0 4px; }
.business-dialog-head p { margin: 0; color: var(--muted); }
.business-dialog-close { flex: 0 0 auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 24px; cursor: pointer; }
.business-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.business-form-wide { grid-column: 1/-1; }
.business-services-choice { margin: 18px 0 0; padding: 15px; border: 1px solid var(--line); border-radius: 13px; }
.business-services-choice legend { padding: 0 7px; font-weight: 900; }
.business-services-choice > p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.business-services-choice [data-service-options] { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.business-services-choice label { display: flex; gap: 9px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: white; font-weight: 700; }
.business-form-status { margin-top: 14px; padding: 11px 13px; border-radius: 10px; background: #f8e8e5; color: #8d3027; font-weight: 700; }
.business-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
body.modal-open { overflow: hidden; }

.form-shell {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 26px;
  align-items: start;
}

.form-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.action-route-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  padding: 24px;
  display: grid;
  gap: 12px;
}

.action-route-card strong {
  display: block;
  font-size: 30px;
  line-height: 1.16;
  text-wrap: balance;
}

.action-route-card p {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
}

.route-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 6px;
}

.route-flow span {
  min-height: 54px;
  border-radius: 8px;
  background: var(--soft-green);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  font-size: 12px;
  padding: 8px;
}

.intent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.intent-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 13px 14px;
  font-weight: 900;
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.intent-grid a:hover,
.intent-grid a.active {
  border-color: var(--green);
  background: var(--soft-green);
  color: var(--green-dark);
}

.route-note {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
  display: grid;
  gap: 6px;
}

.route-note span,
.form-hint {
  color: var(--muted);
  font-size: 14px;
}

.form-hint {
  margin: 12px 0 0;
}

.action-form .btn {
  width: 100%;
  justify-content: center;
}

/* Account core: registration, login, recovery and authenticated cabinet */
.auth-section { min-height: calc(100vh - 76px); background: linear-gradient(135deg, #f8f7f1 0%, #eef5ef 100%); }
.auth-panel { display: grid; grid-template-columns: minmax(0, .95fr) minmax(340px, .72fr); gap: 48px; align-items: center; max-width: 980px; margin: 32px auto; }
.auth-panel[hidden], .account-dashboard[hidden], .auth-status[hidden] { display: none !important; }
.auth-copy h1 { margin: 10px 0 14px; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; }
.auth-copy > p { color: var(--muted); font-size: 18px; max-width: 590px; }
.auth-benefits { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.auth-benefits li { position: relative; padding-left: 28px; color: var(--ink); font-weight: 650; }
.auth-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.auth-form { display: grid; gap: 16px; box-shadow: 0 24px 70px rgba(20, 45, 31, .12); }
.auth-stack { display: grid; gap: 14px; }
.auth-fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-consent { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.auth-consent input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--green); }
.auth-consent a { color: var(--green-dark); text-decoration: underline; }
.auth-text-button { border: 0; background: none; color: var(--green-dark); font: inherit; font-weight: 750; cursor: pointer; padding: 6px; }
.auth-text-button:hover { text-decoration: underline; }
.auth-message { max-width: 980px; margin: 0 auto 18px; }
.auth-message.error { border-color: #e5b2ad; background: #fff4f2; }
.auth-message.error strong { color: #a92d22; }
.auth-message.success { border-color: #a9d4b6; background: #f0faf3; }
.auth-message.success strong { color: var(--green-dark); }
.account-dashboard { margin: 20px 0; }
.account-dashboard .side { display: flex; flex-direction: column; }
.side-logout { margin-top: auto; text-align: left; color: #9b3029; }
.dash-value-small { font-size: 15px !important; overflow-wrap: anywhere; }
.cabinet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

@media (max-width: 760px) {
  .auth-panel { grid-template-columns: 1fr; gap: 24px; margin: 10px auto; }
  .auth-copy h1 { font-size: 38px; }
  .auth-fields-grid { grid-template-columns: 1fr; }
  .account-dashboard { grid-template-columns: 1fr; }
  .account-dashboard .side-nav { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 8px; }
  .account-dashboard .side-nav a { white-space: nowrap; }
}

.legal-doc {
  display: grid;
  gap: 16px;
}

.legal-doc.legal-layout {
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  gap: clamp(22px, 3.5vw, 44px);
  align-items: start;
}

.legal-content {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.legal-toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(24, 54, 37, .14);
  border-radius: 18px;
  background: #f5f2e9;
  box-shadow: 0 14px 36px rgba(23, 44, 31, .06);
}

.legal-toc > strong {
  color: var(--ink);
  font-size: 15px;
}

.legal-toc > div {
  display: grid;
  gap: 3px;
}

.legal-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  color: #526158;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  background: white;
  color: var(--green-dark);
  outline: none;
}

.legal-toc .legal-toc-contact {
  border-top: 1px solid rgba(24, 54, 37, .12);
  border-radius: 0;
  padding: 13px 0 0;
  color: var(--green-dark);
  font-weight: 800;
}

.legal-section {
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 38px);
  box-shadow: 0 12px 34px rgba(23, 44, 31, .045);
  scroll-margin-top: 108px;
  overflow-wrap: break-word;
  hyphens: none;
}

.legal-section h2 {
  font-size: 26px;
  line-height: 1.18;
  margin-bottom: 12px;
  overflow-wrap: normal;
  word-break: normal;
  /* Only explicit soft hyphens from curated translations may break. */
  hyphens: manual;
}

.legal-section p {
  color: #505b54;
  font-size: 16px;
  line-height: 1.72;
  margin: 10px 0;
}

.legal-section ul,
.legal-section ol {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #505b54;
  font-size: 16px;
  line-height: 1.65;
}

.legal-section li + li { margin-top: 8px; }

.legal-section a {
  color: var(--green-dark);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section strong { color: var(--ink); }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.legal-meta span {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 14px;
}

.field { display: grid; gap: 7px; margin-bottom: 12px; }
.field label { font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: rgba(255,253,247,.92);
}
.field textarea { min-height: 96px; resize: vertical; }

.final {
  background: linear-gradient(135deg, var(--green-dark), var(--deep));
  color: white;
  border-radius: var(--radius);
  padding: 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
}
.final h2 { color: white; }
.final p { color: #ced8d0; margin: 14px 0 0; max-width: 720px; }
.final .btn-secondary { color: var(--ink); background: white; }

footer { padding: 34px 0; color: var(--muted); font-size: 14px; }

/* Flagship account experience */
.account-page,.auth-section{background:#f4f2eb}.account-stage{min-height:calc(100vh - 76px);padding:clamp(28px,3vw,44px) 0 56px;display:flex;align-items:flex-start}.account-stage-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(380px,500px);gap:clamp(44px,6vw,88px);align-items:stretch}.account-intro{max-width:620px}.account-intro h1{margin:16px 0 20px;max-width:620px;font-size:clamp(44px,5.6vw,76px);line-height:.98;letter-spacing:-.045em}.account-intro>p{max-width:560px;color:var(--muted);font-size:18px;line-height:1.65}.account-back{display:inline-block;margin-bottom:44px;color:var(--muted);font-size:14px;font-weight:700}.account-proof{margin-top:42px;border-top:1px solid var(--line)}.account-proof>div{display:grid;grid-template-columns:46px 1fr;gap:14px;padding:15px 0;border-bottom:1px solid var(--line);align-items:center}.account-proof strong{color:var(--green);font-size:13px;letter-spacing:.08em}.account-proof span{font-weight:720}.account-card{background:#fffdfa;border:1px solid rgba(24,54,37,.13);border-radius:18px;padding:clamp(26px,4vw,42px);box-shadow:0 30px 80px rgba(20,45,31,.1)}.account-card-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:24px}.account-card-head h1,.account-card-head h2{margin:6px 0 0;font-size:clamp(30px,4vw,42px);line-height:1.06;letter-spacing:-.035em}.step-count{color:var(--muted);font-size:14px;white-space:nowrap}.step-count b{color:var(--green-dark)}.step-track{height:3px;overflow:hidden;margin:-8px 0 28px;border-radius:99px;background:#e4e5df}.step-track span{display:block;width:50%;height:100%;background:var(--green);transition:width .25s ease}.step-track span.complete{width:100%}.account-card [hidden]{display:none!important}.account-card .field{margin-bottom:16px}.account-card .field label{font-size:14px}.account-card .field input,.account-card .field select,.account-card .field textarea{min-height:52px;border-radius:10px;background:#fff;padding:13px 14px}.account-card .field input:focus,.account-card .field select:focus,.account-card .field textarea:focus{outline:3px solid rgba(25,127,80,.12);border-color:var(--green)}.field-optional{color:var(--muted);font-size:12px;font-weight:500}.password-field{position:relative}.password-field input{padding-right:90px!important}.password-field button{position:absolute;right:9px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:var(--green-dark);font:inherit;font-size:12px;font-weight:800;cursor:pointer;padding:8px}.step-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:20px}.step-actions .btn{flex:1}.account-primary,.account-secondary{width:100%;justify-content:center;min-height:50px}.account-switch,.account-security{margin:17px 0 0;text-align:center;color:var(--muted);font-size:13px}.account-switch a{color:var(--green-dark);font-weight:800}.account-divider{display:flex;align-items:center;gap:12px;margin:2px 0;color:#8a928d;font-size:12px}.account-divider:before,.account-divider:after{content:"";height:1px;flex:1;background:var(--line)}.auth-section{min-height:calc(100vh - 76px);padding:clamp(44px,7vw,84px) 0;background:#f4f2eb}.auth-panel{max-width:980px;margin:0 auto}.auth-panel-focused{display:flex;justify-content:center}.auth-panel-focused>.account-card{width:min(100%,480px)}.auth-form{display:grid;gap:14px;box-shadow:none}.auth-form-lead{margin:-10px 0 8px;color:var(--muted)}.field-label-row{display:flex;justify-content:space-between;align-items:center}.auth-text-button.compact{padding:0;font-size:12px}.account-back-button{justify-self:center;margin-top:4px}
@media(max-width:760px){.account-stage{padding:22px 0 48px;align-items:flex-start}.account-stage-grid{grid-template-columns:1fr;gap:22px;align-items:start}.account-intro h1{font-size:42px}.account-intro>p{font-size:16px}.account-back{margin-bottom:28px}.account-proof{display:none}.account-card{padding:25px 20px;border-radius:14px}.auth-section{padding:28px 0 50px}.auth-panel-focused{margin:0}}

.site-footer {
  --footer-columns: minmax(230px, 1.35fr) repeat(4, minmax(135px, .8fr));
  --footer-gap: clamp(24px, 3vw, 44px);
  padding: 40px 0 24px;
  background: var(--deep);
  color: #cbd8d0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: var(--footer-columns);
  gap: var(--footer-gap);
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand {
  display: grid;
  gap: 12px;
  align-content: start;
}

.footer-brand .brand { color: white; }
.footer-brand .brand-tagline { color: #91a39a; }

.footer-brand p {
  margin: 0;
  max-width: 280px;
  color: #9fb0a7;
}

.footer-trust {
  display: grid;
  gap: 12px;
  align-items: start;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-link {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: white;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.social-link svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: currentColor;
}

.social-link-telegram { background: #229ed9; }
.social-link-whatsapp { background: #25d366; }
.social-link-instagram {
  background:
    radial-gradient(circle at 30% 105%, #fdf497 0 16%, #fd5949 38%, transparent 39%),
    linear-gradient(135deg, #405de6, #833ab4 42%, #c13584 62%, #fd1d1d 82%, #fcb045);
}
.social-link-vk { background: #0077ff; }
.social-link-facebook { background: #1877f2; }
.social-link-threads { background: #111; }

.social-link-telegram,
.social-link-whatsapp,
.social-link-instagram,
.social-link-vk,
.social-link-facebook,
.social-link-threads {
  border-color: rgba(255,255,255,.18);
}

.social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.42);
  color: white;
  filter: saturate(1.08) brightness(1.05);
}

.footer-col {
  display: grid;
  align-content: start;
  min-width: 0;
}

.footer-col summary,
.footer-document-group summary {
  display: block;
  list-style: none;
  margin: 0 0 10px;
  color: white;
  font-weight: 800;
  cursor: default;
}

.footer-col summary::-webkit-details-marker,
.footer-document-group summary::-webkit-details-marker { display: none; }

.footer-col nav {
  display: grid;
  gap: 3px;
}

.footer-contact-phone {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  width: max-content;
  max-width: none;
  justify-self: start;
  min-height: 28px;
}

.footer-contact-phone > a:first-child {
  margin-right: 1px;
  font-size: 13px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.footer-contact-actions {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 5px;
}

.footer-col .footer-contact-messenger {
  display: inline-grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease;
}

.footer-contact-messenger svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.footer-contact-whatsapp { background: #25d366; }
.footer-contact-viber { background: #7360f2; }
.footer-col .footer-contact-messenger:hover,
.footer-col .footer-contact-messenger:focus-visible {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.08);
  border-color: rgba(255, 255, 255, .4);
}

.footer-col a,
.footer-company-contact a,
.footer-document-group a {
  display: block;
  padding: 3px 0;
  color: #c6d2cb;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: pretty;
}

/* Блок «Разработка сайтов по городам»: ограничиваем высоту и даём скролл,
   чтобы подвал не раздувался при росте гео-страниц (райцентры). Ссылки остаются
   настоящими <a> в DOM — краулятся поисковиками и ИИ-выдачей (в отличие от <select>). */
.footer-geo-list {
  max-height: 176px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .28) transparent;
  padding-right: 6px;
}
.footer-geo-list::-webkit-scrollbar { width: 6px; }
.footer-geo-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); border-radius: 4px; }
.footer-geo-list::-webkit-scrollbar-track { background: transparent; }

.footer-col a:hover,
.footer-company-contact a:hover,
.footer-document-group a:hover,
.footer-col a:focus-visible,
.footer-company-contact a:focus-visible,
.footer-document-group a:focus-visible {
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
  outline: none;
}

.footer-company-label {
  color: #8fa399;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.footer-documents {
  display: grid;
  grid-template-columns: var(--footer-columns);
  gap: var(--footer-gap);
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-documents-intro {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.footer-documents-intro strong {
  color: white;
}

.footer-documents-intro > span:not(.footer-company-label) {
  max-width: 320px;
  color: #9fb0a7;
  line-height: 1.45;
}

.footer-address {
  display: flex;
  flex-wrap: wrap;
  column-gap: .35em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: pretty;
}

.footer-address > span {
  white-space: nowrap;
}

.footer-document-group {
  display: grid;
  align-content: start;
  gap: 3px;
}

.footer-document-group summary {
  margin-bottom: 7px;
}

.footer-copy {
  display: grid;
  grid-template-columns: var(--footer-columns);
  gap: var(--footer-gap);
  padding-top: 16px;
  color: #8fa098;
  font-size: 12.5px;
  line-height: 1.5;
}

.footer-copy > span:first-child { grid-column: 1; }

.footer-copy > span:last-child {
  grid-column: 2 / 5;
  justify-self: start;
  max-width: 560px;
}

.hero-note {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.num-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}

.num-step {
  border: 1px solid rgba(228, 228, 231, 0.8);
  border-radius: var(--radius);
  background: white;
  padding: 18px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.num-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.num-step small {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 12px;
}

.num-step strong { display: block; font-size: 17px; line-height: 1.2; }
.num-step p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.check-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
}

.faq-list { display: grid; gap: 10px; max-width: 880px; }

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 0 18px;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 26px 16px 0;
  font-weight: 800;
  position: relative;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--green);
  font-weight: 900;
}

.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 16px; color: var(--muted); }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.proof-item {
  border: 1px solid rgba(228, 228, 231, 0.5);
  border-radius: var(--radius);
  background: rgba(244, 244, 245, 0.4);
  backdrop-filter: blur(8px);
  padding: 18px;
  transition: background 0.2s ease;
}
.proof-item:hover {
  background: rgba(244, 244, 245, 0.8);
}

.proof-item strong { display: block; font-size: 26px; line-height: 1; }
.proof-item span { display: block; color: var(--muted); margin-top: 8px; font-size: 14px; }

.related-band { display: flex; flex-wrap: wrap; gap: 10px; }

.related-band a {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.related-band a:hover { color: var(--green-dark); border-color: var(--green); background: var(--soft-green); }

.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }

.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 6px;
}

.price-card.featured { border-color: var(--green); box-shadow: 0 16px 36px rgba(31,122,77,.14); }
.price-card .kicker { justify-self: start; }
.price-card h3 { font-size: 21px; }
.price-value { font-size: 30px; font-weight: 900; margin-top: 6px; }
.price-value small { font-size: 14px; color: var(--muted); font-weight: 700; }
.price-note { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.price-card .btn { margin-top: 16px; justify-self: start; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}

.price-table th, .price-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table th { background: var(--surface-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--green-dark); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child { white-space: nowrap; font-weight: 800; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }

.case-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 22px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.case-card .kicker { justify-self: start; }
.case-reuse { margin: 0; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); }
.case-reuse strong { color: var(--green-dark); }
.case-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.case-meta span { border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; font-size: 12px; color: var(--muted); }

.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.catalog-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(20,33,27,.04);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s cubic-bezier(0.16,1,0.3,1);
}

.catalog-card:hover {
  border-color: var(--green);
  box-shadow: 0 16px 36px rgba(28,122,75,.13), 0 2px 8px rgba(20,33,27,.05);
  transform: translateY(-3px);
}

.catalog-card .cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  justify-self: start;
  color: var(--green-dark);
  background: var(--soft-green);
  box-shadow: 0 2px 6px rgba(20,33,27,.07);
}

.catalog-card .cat-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.catalog-card:nth-child(4n+2) .cat-icon { background: var(--soft-amber); color: #7a5820; }
.catalog-card:nth-child(4n+3) .cat-icon { background: var(--soft-blue); color: #2d5f6b; }
.catalog-card:nth-child(4n+4) .cat-icon { background: var(--soft-red); color: #7a3a30; }
.catalog-card strong { font-size: 17px; line-height: 1.2; letter-spacing: -.01em; }
.catalog-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.catalog-card .cat-link { color: var(--green-dark); font-weight: 800; font-size: 14px; margin-top: auto; }

.catalog-more > summary { display: none; }

/* --- Phase 2: header router --- */

.nav-cabinet {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}

.nav-cabinet:hover { border-color: var(--green); color: var(--green-dark); }
.cta-short { display: none; }


/* --- Вход/регистрация: одна кнопка с меню --- */
.account { position: relative; }
.account-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.account-btn--signed { position: relative; }
.account-btn--signed::after { content: ""; position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: #16a34a; border: 2px solid #fff; }
.account-btn--icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #111915;
  border-radius: 10px;
  background: #151a17;
  color: white;
  box-shadow: 0 7px 18px rgba(17, 25, 21, .12);
}
.account-btn--icon:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
}
.account-btn--icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.nav-contact-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-contact-action {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--green-dark);
  box-shadow: 0 4px 12px rgba(20, 33, 27, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.nav-contact-action:hover {
  transform: translateY(-1px);
  border-color: currentColor;
  box-shadow: 0 8px 18px rgba(20, 33, 27, .11);
}
.nav-contact-action svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}
.nav-contact-whatsapp { color: #128c4a; background: #f2fbf6; }
.nav-contact-viber { color: #6851a4; background: #f6f3fc; }
.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 230px;
  padding: 6px;
  display: grid;
  gap: 2px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.account-menu[hidden] { display: none; }
.account-menu a {
  display: grid;
  gap: 2px;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--ink);
}
.account-menu a:hover { background: var(--surface-soft); }
.account-menu a strong { font-size: 14px; font-weight: 800; }
.account-menu a span { font-size: 12px; color: var(--muted); }

/* --- Переключатели языка и валюты (как на боевом) --- */
.switcher { position: relative; }

.sw-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.sw-btn:hover { border-color: var(--green); }
.sw-sym { color: var(--green-dark); font-weight: 900; }
.sw-flag { font-size: 15px; line-height: 1; }
.sw-code { color: var(--muted); font-weight: 700; }
.switcher[data-switcher="cur"] .sw-code { color: var(--ink); font-weight: 800; }
.sw-caret { font-size: 13px; color: var(--ink); }

.sw-menu[hidden] { display: none; }
.sw-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 186px;
  padding: 6px;
  display: grid;
  gap: 2px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.sw-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  width: 100%;
}
.sw-menu button:hover { background: var(--surface-soft); }
.sw-menu button.active { background: var(--soft-green); color: var(--green-dark); font-weight: 800; }
.sw-menu .sw-name { flex: 1; }
.sw-badge {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 12px;
}
.sw-menu button.active .sw-badge { background: white; }
.sw-globe { color: var(--green); font-size: 14px; line-height: 1; }

.mobile-switchers { display: none; }

/* --- Phase 2: hero slider --- */

.hero-slider {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
}

.slides { position: relative; }

.slide {
  display: none;
  padding: 52px 0 36px;
  --slide-accent: var(--green);
  --slide-tint: rgba(28,122,75,.11);
  --slide-tint-2: rgba(59,113,128,.08);
  --slide-art: url("assets/generated/hero-slide-01-platform.webp");
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(248,245,237,.99) 0%, rgba(248,245,237,.97) 38%, rgba(248,245,237,.55) 57%, rgba(248,245,237,.06) 100%),
    var(--slide-art);
  background-position: center, right 7% center;
  background-size: cover, auto 100%;
  background-repeat: no-repeat;
}

.slide.active { display: block; animation: slide-in .45s ease; }

.slide.theme-platform { --slide-art: url("assets/generated/hero-web-agency-v2.webp"); --slide-accent: var(--green); }
.slide.theme-audit { --slide-art: url("assets/generated/hero-site-audit-v2.webp"); --slide-accent: var(--amber); }
.slide.theme-market { --slide-art: url("assets/generated/hero-market-analysis-v2.webp"); --slide-accent: var(--green); }
.slide.theme-site { --slide-art: url("assets/generated/hero-slide-04-site-shop-app.webp"); --slide-accent: var(--blue); }
.slide.theme-assistant { --slide-art: url("assets/generated/hero-ai-assistant-v2.webp"); --slide-accent: var(--green); }
.slide.theme-chat { --slide-art: url("assets/generated/hero-business-search-v2.webp"); --slide-accent: var(--blue); }
.slide.theme-control { --slide-art: url("assets/generated/hero-control-center-v2.webp"); --slide-accent: var(--green-dark); }

@keyframes slide-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.slide-grid {
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(320px, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 400px;
  position: relative;
  z-index: 1;
}

.slide h1, .slide .slide-title {
  margin: 0;
  max-width: 720px;
  font-size: 42px;
  line-height: 1.12;
  font-weight: 900;
  text-wrap: balance;
}

.slide .lead { font-size: 17px; line-height: 1.55; margin-top: 16px; max-width: 660px; }

.slider-controls {
  position: relative;
  z-index: 3;
  padding: 6px 0 26px;
  background: linear-gradient(180deg, rgba(248,245,237,0), rgba(248,245,237,.65));
}

.slider-controls-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.slider-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: auto;
}

.slider-dots button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(31,122,77,.22);
  background: rgba(255,253,247,.92);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  box-shadow: 0 2px 8px rgba(20,33,27,.06);
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.slider-dots button span { font-size: 11px; font-weight: 900; color: var(--green); }
.slider-dots button b { font-weight: 800; }
.slider-dots button:hover { border-color: var(--green); color: var(--ink); box-shadow: 0 4px 14px rgba(28,122,75,.14); }
.slider-dots button.active { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 6px 20px rgba(28,122,75,.30); }
.slider-dots button.active span { color: #cfeeda; }

.slider-arrows { display: flex; gap: 10px; }

.fact-strip {
  background: linear-gradient(135deg, #14211b 0%, #1c2a23 100%);
  color: #e6efe8;
  border-bottom: 1px solid rgba(255,255,255,.06);
  border-top: 3px solid var(--green);
}

.fact-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fact {
  padding: 24px 20px;
  border-right: 1px solid rgba(255,255,255,.09);
  transition: background .2s ease;
}

.fact:hover { background: rgba(28,122,75,.08); }
.fact:first-child { padding-left: 0; }
.fact:last-child { border-right: 0; }
.fact strong { display: block; font-size: 20px; font-weight: 900; color: #fff; letter-spacing: -.01em; }
.fact span { display: block; margin-top: 6px; font-size: 13px; color: #8fa898; line-height: 1.4; }

.slider-prev,
.slider-next {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(31,122,77,.22);
  border-radius: 8px;
  background: rgba(255,253,247,.86);
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 12px 28px rgba(20,33,27,.08);
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.slider-prev:hover,
.slider-next:hover {
  transform: translateY(-1px);
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.hero-slider .slide-media {
  display: none;
}

.slide-media {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(200,214,205,.96);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255,253,247,.94), rgba(238,244,238,.86)),
    radial-gradient(circle at 82% 20%, var(--slide-tint), transparent 34%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 24px 60px rgba(20,33,27,.13),
    0 4px 16px rgba(20,33,27,.06);
  display: grid;
  place-items: center;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.slide-media::before {
  content: "";
  position: absolute;
  inset: 22px auto auto 22px;
  width: 40px;
  height: 5px;
  border-radius: 999px;
  background: var(--slide-accent);
  opacity: .55;
  box-shadow: 48px 0 0 rgba(185,135,54,.4);
}

.slide-media::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--slide-tint);
  filter: blur(20px);
}

.slide-media img {
  position: relative;
  z-index: 1;
  width: 92%;
  max-height: 420px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 20px 32px rgba(23,32,27,.14));
}

.page-slider .slide {
  display: none;
}

.page-slider .slide.active {
  display: block;
}

.pilot-code-slider {
  --slide-accent: var(--green);
  --slide-art: none;
  background:
    radial-gradient(820px 420px at 78% 42%, rgba(31,122,77,.10), transparent 68%),
    linear-gradient(90deg, rgba(248,245,237,.99) 0%, rgba(255,253,247,.98) 48%, rgba(238,244,238,.82) 100%);
}

.pilot-code-slider .slide {
  --slide-art: none;
  background-image:
    linear-gradient(90deg, rgba(248,245,237,.99) 0%, rgba(248,245,237,.97) 43%, rgba(248,245,237,.44) 64%, rgba(248,245,237,.05) 100%);
  background-position: center;
  background-size: cover;
}

.pilot-code-slider .slide-grid {
  grid-template-columns: minmax(0, 620px) minmax(480px, 1fr);
  min-height: 460px;
  gap: clamp(34px, 5vw, 74px);
}

.pilot-code-slider .slide-content {
  position: relative;
  z-index: 2;
}

.pilot-code-slider .slide-scene {
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: 390px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pilot-code-slider .slide-scene::before {
  content: "";
  position: absolute;
  inset: 9% -7% 5% 2%;
  background:
    radial-gradient(circle at 68% 48%, rgba(31,122,77,.16), transparent 46%),
    linear-gradient(135deg, rgba(255,253,247,.58), rgba(238,244,238,.22));
  filter: blur(2px);
}

.pilot-code-slider .slide-scene img {
  position: relative;
  width: min(620px, 100%);
  max-width: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 32px 42px rgba(20,33,27,.18));
  -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%);
}

.pilot-code-slider .slider-controls {
  padding: 0 0 24px;
  background: linear-gradient(180deg, rgba(248,245,237,0), rgba(248,245,237,.75));
}

.flagship-visual {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
}

.visual-window {
  width: min(520px, 100%);
  border: 1px solid rgba(22, 32, 27, .12);
  border-radius: 12px;
  background: rgba(255,253,248,.94);
  box-shadow: 0 24px 70px rgba(23,32,27,.16);
  overflow: hidden;
}

.window-top {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.window-top span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9e5dd;
}

.window-top span:first-child { background: var(--amber); }
.window-top span:nth-child(2) { background: #d8bd70; }
.window-top span:nth-child(3) { background: #78ad8c; }
.window-top b { margin-left: 8px; color: var(--ink); }

.visual-board {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
}

.metric-card {
  min-height: 116px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  display: grid;
  align-content: start;
  gap: 5px;
}

.metric-card.strong {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.metric-card small {
  color: inherit;
  opacity: .72;
  font-weight: 800;
}

.metric-card b {
  font-size: 24px;
  line-height: 1;
}

.metric-card span {
  color: inherit;
  opacity: .72;
  font-size: 13px;
}

.pipeline {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 4px;
}

.pipeline span {
  min-height: 58px;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 10px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-weight: 900;
  font-size: 12px;
  padding: 8px;
  position: relative;
}

.pipeline span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 50%;
  width: 8px;
  height: 2px;
  background: rgba(31,122,77,.35);
}

.floating-card {
  position: absolute;
  width: 190px;
  border: 1px solid rgba(220,229,221,.9);
  border-radius: 10px;
  background: white;
  padding: 12px 14px;
  box-shadow: 0 16px 36px rgba(23,32,27,.13);
  display: grid;
  gap: 4px;
}

.floating-card strong { color: var(--green-dark); }
.floating-card span { color: var(--muted); font-size: 13px; }
.floating-card.geo { right: 0; top: 42px; }
.floating-card.owner { left: 4px; bottom: 28px; }

/* --- Phase 2: audience tabs --- */

.aud-tabs { border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }

.aud-tabbar {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.aud-tabbar button {
  flex: 1;
  min-width: 150px;
  padding: 15px 14px;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.aud-tabbar button.active { color: var(--green-dark); border-bottom-color: var(--green); background: white; }

.aud-panel { display: none; padding: 22px; }
.aud-panel.active { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: center; }
.aud-panel h3 { font-size: 22px; line-height: 1.2; max-width: 560px; }
.aud-panel p { color: var(--muted); margin: 10px 0 0; line-height: 1.55; max-width: 620px; }
.aud-panel .actions { margin-top: 18px; }
.aud-links { display: grid; gap: 8px; }
.aud-links a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
}
.aud-links a::after { content: "→"; color: var(--green); }
.aud-links a:hover { border-color: var(--green); background: var(--soft-green); }

/* --- Unified media system --- */

.media-photo,
.media-ui {
  margin: 0;
  aspect-ratio: var(--ar, 4 / 3);
  position: relative;
  /* Нет border-radius и overflow:hidden — картинка не «приклеена» в рамке */
}

.media-photo {
  background: transparent;
}

.media-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-ui {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  padding: clamp(12px, 4%, 28px);
  background: linear-gradient(135deg, var(--surface), var(--surface-soft));
}

.media-ui > img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 34px rgba(20,33,27,.14));
}

/* Hero-картинки на страницах услуг — без обрезки по контейнеру */
.page-hero .media-photo {
  aspect-ratio: 16 / 10;
  background: transparent;
  overflow: visible;
}

.page-hero .media-photo > img {
  filter: drop-shadow(0 24px 40px rgba(20,33,27,.12));
}

.media-photo > figcaption,
.media-ui > figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(216,225,216,.72);
  border-radius: 10px;
  background: rgba(255,253,247,.88);
  color: var(--green-dark);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.35;
}

.solution-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.solution-tile {
  position: relative;
  z-index: 1;
  min-height: 160px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(216,225,216,.82);
  background: rgba(255,253,247,.94);
  box-shadow: 0 16px 34px rgba(20, 33, 27, .08);
  color: var(--ink);
}

.solution-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(0deg, rgba(9, 35, 24, .46), rgba(9, 35, 24, 0));
}

.solution-tile img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  display: block;
  object-fit: cover;
  filter: none;
  transition: transform .18s ease;
}

.solution-tile span {
  position: absolute;
  z-index: 2;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 253, 247, .94);
  border: 1px solid rgba(216,225,216,.78);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
  box-shadow: 0 10px 22px rgba(20, 33, 27, .08);
}

.solution-tile:hover img {
  transform: scale(1.025);
}

/* --- Phase 2: process timeline --- */

.num-steps.timeline { position: relative; }

.num-steps.timeline::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--line);
}

.num-steps.timeline .num-step { border-top: 3px solid var(--green); }
.num-steps.timeline .num-step:nth-child(2) { border-top-color: var(--amber); }
.num-steps.timeline .num-step:nth-child(3) { border-top-color: var(--blue); }
.num-steps.timeline .num-step:nth-child(4) { border-top-color: var(--green-dark); }

/* --- Phase 2: start options / connection methods --- */

.start-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.start-option {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 9px;
}

.start-option .kicker { justify-self: start; }
.start-option strong { font-size: 18px; line-height: 1.2; }
.start-option p { margin: 0; color: var(--muted); font-size: 14px; }
.start-option .cat-link { color: var(--green-dark); font-weight: 800; font-size: 14px; }
.start-option:hover { border-color: var(--green); }

/* --- Phase 2: niche band --- */

.business-types-visual {
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.business-types-visual img {
  width: 100%;
  display: block;
}

.niche-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.niche-chip {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 12px;
  display: grid;
  gap: 8px;
  align-content: start;
  box-shadow: 0 2px 8px rgba(20,33,27,.04);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s cubic-bezier(0.16,1,0.3,1), background .22s ease;
}

.niche-chip img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  transition: transform .4s cubic-bezier(0.16,1,0.3,1);
}

.niche-chip:hover img { transform: scale(1.04); }

.niche-chip strong { font-size: 16px; letter-spacing: -.01em; }
.niche-chip span { color: var(--muted); font-size: 13px; }
.niche-chip b {
  color: var(--green-dark);
  font-size: 13px;
  margin-top: 4px;
}
.action-niches .niche-chip:hover {
  border-color: var(--green);
  background: white;
  box-shadow: 0 18px 40px rgba(28,122,75,.14), 0 2px 8px rgba(20,33,27,.05);
  transform: translateY(-4px);
}

.niche-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(27, 126, 75, .35);
  box-shadow: var(--shadow);
}

.tool-card strong {
  font-size: 20px;
  line-height: 1.16;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.tool-card span {
  align-self: end;
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--soft-green);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

/* --- Phase 2: news / useful --- */

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

.news-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 9px;
}

.news-card .news-tag {
  justify-self: start;
  font-size: 12px;
  font-weight: 900;
  color: #245a9b;
  background: var(--soft-blue);
  border-radius: 999px;
  padding: 5px 9px;
}

.news-card strong { font-size: 17px; line-height: 1.25; }
.news-card p { margin: 0; color: var(--muted); font-size: 14px; }
.news-card .cat-link { color: var(--green-dark); font-weight: 800; font-size: 14px; }

/* --- Phase 2: consultation --- */

.consult {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  overflow: hidden;
}

.consult-info { padding: 30px; background: var(--surface-soft); border-right: 1px solid var(--line); }
.consult-info h2 { font-size: 30px; line-height: 1.16; max-width: 620px; }
.consult-info p { color: var(--muted); margin: 12px 0 0; }
.consult-person {
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 10px;
  border: 1px solid rgba(27, 115, 83, .14);
  border-radius: 16px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 10px 28px rgba(31, 49, 40, .07);
}

/* Developer API and documentation */
.api-terminal,
.docs-code {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 22px;
  background: #111515;
  color: #e8f2ec;
  box-shadow: 0 24px 70px rgba(20,32,26,.16);
}
.api-terminal__bar { display:flex; align-items:center; gap:7px; padding:12px 16px; border-bottom:1px solid rgba(255,255,255,.09); background:#181d1b; }
.api-terminal__bar span { width:9px; height:9px; border-radius:50%; background:#dbe4df; opacity:.45; }
.api-terminal__bar b { margin-left:auto; color:#91a39a; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.api-terminal pre,
.docs-code { margin:0; padding:22px; overflow:auto; font: 13px/1.65 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; white-space:pre; }
.api-terminal code,
.docs-code code { color:inherit; background:none; padding:0; }
.api-price-card { align-self:stretch; }
.docs-hero { padding:64px 0 48px; background:linear-gradient(135deg,#f8f6ee 0%,#f1f7f3 100%); border-bottom:1px solid var(--line); }
.docs-hero h1 { margin:18px 0 14px; font-size:clamp(42px,6vw,76px); letter-spacing:-.055em; }
.docs-meta { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.docs-meta span { padding:9px 13px; border:1px solid var(--line); border-radius:999px; background:rgba(255,255,255,.7); color:var(--muted); font-size:13px; }
.docs-layout { display:grid; grid-template-columns:220px minmax(0,800px); gap:64px; align-items:start; padding-top:54px; padding-bottom:90px; }
.docs-content { min-width:0; }
.docs-nav { position:sticky; top:94px; display:flex; flex-direction:column; gap:5px; padding:18px; border:1px solid var(--line); border-radius:20px; background:rgba(255,255,255,.88); box-shadow:0 18px 50px rgba(20,32,26,.07); }
.docs-nav strong { margin:0 10px 8px; font-size:13px; text-transform:uppercase; letter-spacing:.08em; }
.docs-nav a { padding:8px 10px; border-radius:10px; color:var(--muted); font-size:14px; text-decoration:none; }
.docs-nav a:hover { background:var(--soft); color:var(--ink); }
.docs-section { scroll-margin-top:100px; padding:0 0 48px; margin:0 0 48px; border-bottom:1px solid var(--line); }
.docs-section h2 { margin:0 0 16px; font-size:clamp(28px,4vw,42px); letter-spacing:-.035em; }
.docs-section h3 { margin:30px 0 12px; font-size:20px; }
.docs-section p { max-width:760px; color:var(--muted); font-size:16px; line-height:1.75; }
.docs-section code:not(pre code), .endpoint code, .formula-card code { padding:.14em .42em; border-radius:7px; background:#eef2ef; color:#153b2b; font: .9em/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; }
.endpoint { display:flex; align-items:center; gap:10px; margin:12px 0 18px; }
.method { min-width:52px; padding:6px 9px; border-radius:8px; color:#fff; text-align:center; font:700 12px/1 ui-monospace,monospace; }
.method.get { background:#26724e; }.method.post { background:#315fc3; }
.table-wrap { max-width:100%; overflow-x:auto; margin:22px 0; border:1px solid var(--line); border-radius:18px; }
.docs-table { width:100%; border-collapse:collapse; min-width:650px; background:#fff; }
.docs-table th,.docs-table td { padding:13px 15px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; font-size:14px; }
.docs-table th { background:#f6f7f5; font-size:12px; text-transform:uppercase; letter-spacing:.06em; }
.docs-table tr:last-child td { border-bottom:0; }
.formula-card { margin:22px 0; padding:22px; border:1px solid #cfe3d8; border-radius:20px; background:#f0f8f3; }
.formula-card > code { display:inline-block; margin-bottom:8px; font-size:15px; font-weight:700; }
.docs-next { border:0; padding:30px; border-radius:24px; background:linear-gradient(135deg,#f4f1e6,#eef7f1); }

@media (max-width: 820px) {
  .docs-layout { grid-template-columns:1fr; gap:28px; padding-top:28px; }
  .docs-nav { position:relative; top:auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .docs-nav strong { grid-column:1/-1; }
  .api-terminal,.docs-code { max-width:100%; box-sizing:border-box; }
  .api-terminal pre,.docs-code { padding:17px; font-size:12px; }
}

body.announcement-callback-open { overflow: hidden; }
.announcement-callback {
  position: fixed;
  inset: 0;
  z-index: 2147481500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 30, 23, .58);
  backdrop-filter: blur(5px);
}
.announcement-callback.is-open { display: flex; }
.announcement-callback-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(720px, calc(100vh - 32px));
  overflow: auto;
  box-sizing: border-box;
  border: 1px solid rgba(28, 78, 58, .2);
  border-radius: 24px;
  padding: 30px;
  background: #fffdf7;
  color: #17251e;
  box-shadow: 0 30px 90px rgba(12, 28, 19, .32);
}
.announcement-callback-panel h2 { margin: 8px 42px 8px 0; font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.12; }
.announcement-callback-panel > p { margin: 0 0 22px; color: #5d6d64; line-height: 1.55; }
.announcement-callback-kicker { color: #176b49; font-size: .76rem; font-weight: 800; letter-spacing: .12em; }
.announcement-callback-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid #cad6ce;
  border-radius: 50%;
  background: #fff;
  color: #17251e;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.announcement-callback form { display: grid; gap: 15px; }
.announcement-callback label { display: grid; gap: 7px; font-size: .88rem; font-weight: 750; }
.announcement-callback input,
.announcement-callback select {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid #bdcac2;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: #17251e;
  font: inherit;
}
.announcement-callback input:focus,
.announcement-callback select:focus { outline: 3px solid rgba(23, 107, 73, .16); border-color: #176b49; }
.announcement-callback-phone { display: grid; grid-template-columns: 112px 1fr; gap: 8px; }
.announcement-callback-consent { grid-template-columns: auto 1fr; align-items: start; font-weight: 500 !important; line-height: 1.45; }
.announcement-callback-consent input { width: 18px; min-height: 18px; margin: 2px 0 0; }
.announcement-callback-consent a { color: #176b49; }
.announcement-callback-submit {
  min-height: 50px;
  border: 0;
  border-radius: 13px;
  padding: 12px 18px;
  background: #15251d;
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}
.announcement-callback-submit:disabled { opacity: .65; cursor: wait; }
.announcement-callback-note { min-height: 1.35em; color: #5d6d64; font-size: .88rem; line-height: 1.45; }
.announcement-callback-note.is-success { color: #176b49; font-weight: 750; }
.announcement-callback-note.is-error { color: #a92b22; font-weight: 700; }
@media (max-width: 600px) {
  .announcement-callback { padding: 12px; align-items: flex-end; }
  .announcement-callback-panel { max-height: calc(100vh - 24px); padding: 24px 18px; border-radius: 20px; }
  .announcement-callback-phone { grid-template-columns: 104px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .announcement-callback { backdrop-filter: none; }
}

.coverage-form { display: grid; gap: 14px; }
.coverage-form label { display: grid; gap: 7px; color: #355446; font-weight: 750; }
.coverage-form input,
.coverage-form select { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid rgba(29,74,55,.2); border-radius: 13px; background: #fffef9; color: #142a20; font: inherit; }
.coverage-map { display: grid; gap: 14px; }
.coverage-map div { display: grid; gap: 7px; padding: 24px; border: 1px solid rgba(29,74,55,.14); border-radius: 20px; background: linear-gradient(145deg, #fffdf7, #eef2df); }
.coverage-map strong { color: #174531; font-size: clamp(1.55rem, 4vw, 2.4rem); }
.coverage-map span { color: #5e6f66; line-height: 1.5; }

.audit-price-grid { align-items:stretch; }
.audit-price-grid .card { display:flex; flex-direction:column; }
.audit-price-grid .card .btn { margin-top:auto; align-self:flex-start; }
.audit-price-featured { position:relative; box-shadow:0 26px 70px rgba(27,83,58,.14); }
.service-price { display:flex; flex-direction:column; gap:4px; margin:12px 0 18px; }
.service-price strong { font-size:clamp(30px,4vw,44px); line-height:1; letter-spacing:-.04em; }
.service-price small,.pricing-disclaimer { color:var(--muted); font-size:12px; }
.pricing-disclaimer { margin:18px 0 0; }
.consult-person img {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border: 0;
  border-radius: 12px;
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(.9) contrast(.96) brightness(1.04);
}
.consult-person strong { line-height: 1.3; }
.consult-person span { line-height: 1.45; margin-top: 4px; }
.consult-contacts { display: grid; gap: 10px; margin-top: 20px; }
.consult-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
}
.consult-contacts a:hover { color: var(--green-dark); }
.consult-steps { padding: 30px; display: grid; gap: 12px; align-content: center; }
.consult-step { display: flex; gap: 12px; align-items: start; }
.consult-step small {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft-green);
  color: var(--green-dark);
  font-weight: 900;
  display: grid;
  place-items: center;
}
.consult-step div strong { display: block; font-size: 15px; }
.consult-step div span { color: var(--muted); font-size: 14px; }

/* --- Phase 2: reveal animation --- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.in { opacity: 1; transform: none; }


/* Внутренние hero: одно изображение на баннер — фото-фон только на главной */
.hero.page-hero {
  background-image: linear-gradient(90deg, rgba(245,243,234,.99) 0%, rgba(255,253,247,.97) 55%, rgba(238,244,238,.85) 100%);
}

.hero-diorama {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 82% 42%, rgba(221, 200, 137, .18), transparent 62%),
    radial-gradient(760px 480px at 72% 55%, rgba(31, 126, 78, .12), transparent 68%),
    linear-gradient(90deg, rgba(249, 247, 239, 1) 0%, rgba(255, 253, 247, .98) 45%, rgba(239, 245, 239, .9) 100%);
}

.hero-diorama::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 253, 247, 0) 0 46%, rgba(255, 253, 247, .18) 58%, rgba(255, 253, 247, 0) 100%),
    repeating-linear-gradient(90deg, rgba(21, 40, 31, .025) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, rgba(21, 40, 31, .018) 0 1px, transparent 1px 80px);
  opacity: .78;
}

.hero-diorama .hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, .92fr) minmax(500px, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
}

.hero-diorama .lead {
  max-width: 560px;
}

.hero-diorama .actions {
  margin-top: 20px;
  gap: 10px;
  align-items: center;
  max-width: 560px;
}

.hero-diorama .btn {
  min-height: 48px;
  padding: 13px 20px;
  white-space: nowrap;
}

.hero-diorama .hero-note {
  margin-top: 10px;
  max-width: 520px;
  line-height: 1.45;
}

.hero-diorama .media-photo {
  aspect-ratio: 16 / 10;
  height: auto;
  margin-right: clamp(24px, 3vw, 48px);
  overflow: hidden;
  border-radius: 0;
}

.hero-diorama .media-photo::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,253,247,.98) 0%, rgba(255,253,247,.74) 10%, rgba(255,253,247,0) 30%, rgba(255,253,247,0) 82%, rgba(245,248,243,.42) 100%),
    linear-gradient(180deg, rgba(255,253,247,.8) 0%, rgba(255,253,247,0) 18%, rgba(255,253,247,0) 82%, rgba(255,253,247,.7) 100%);
}

.hero-diorama .media-photo img {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  transform: none;
  object-fit: cover;
  object-position: center right;
  border-radius: 0;
  filter: drop-shadow(0 34px 46px rgba(27, 42, 32, .18));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 78%, transparent 95%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 78%, transparent 95%);
}

.audit-hero .hero-grid {
  grid-template-columns: minmax(540px, .95fr) minmax(620px, 1.05fr);
  gap: clamp(12px, 1.8vw, 28px);
}

.audit-hero .hero-grid > div:first-child {
  position: relative;
  z-index: 4;
}

.audit-hero .actions {
  flex-wrap: nowrap;
  max-width: none;
}

.audit-hero .btn {
  padding-left: 18px;
  padding-right: 18px;
}

.audit-hero .hero-note {
  display: block;
  width: fit-content;
  max-width: 560px;
  margin-top: 16px;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(28,122,75,.18);
  border-left: 4px solid var(--green);
  border-radius: 10px;
  background: rgba(255,253,247,.82);
  color: #3b4a42;
  font-size: 14px;
  line-height: 1.42;
  box-shadow: 0 12px 28px rgba(20,33,27,.06);
  backdrop-filter: blur(10px);
}

.audit-hero .hero-note b {
  color: var(--green-dark);
  font-weight: 900;
}

.audit-hero .media-photo {
  margin-right: 0;
  margin-left: clamp(-78px, -4.5vw, -44px);
  width: calc(100% + clamp(36px, 3vw, 62px));
  z-index: 1;
  pointer-events: none;
}

.audit-hero .media-photo img {
  object-position: center center;
  transform: translateX(-5%) scale(.9);
  transform-origin: center center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 97%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 97%);
}

.audit-hero-slider {
  padding: 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.audit-hero-slider .slide {
  padding: 18px 0 24px;
  background:
    radial-gradient(820px 440px at 79% 48%, rgba(31,122,77,.10), transparent 66%),
    linear-gradient(90deg, rgba(249,247,239,1) 0%, rgba(255,253,247,.98) 47%, rgba(239,245,239,.92) 100%);
}

.audit-hero-slider .slide.active {
  display: block;
}

.audit-hero-slider .hero-grid {
  min-height: 388px;
  align-items: center;
}

.audit-hero-slider .media-photo {
  aspect-ratio: 16 / 8.8;
  /* Без mask — изображение должно само иметь правильный фон #f5f3ea */
  overflow: visible;
  background: transparent;
}

.audit-hero-slider .media-photo img {
  /* Без mask-image и transform — чистый рендер */
  filter: drop-shadow(0 22px 36px rgba(20,33,27,.13));
}

.audit-hero-slider h1 {
  font-size: 36px;
  line-height: 1.08;
  max-width: 560px;
}

.audit-hero-slider .lead {
  margin-top: 14px;
  font-size: 15.5px;
  line-height: 1.44;
  max-width: 560px;
}

.audit-hero-slider .eyebrow {
  padding: 7px 11px;
  font-size: 13px;
}

.audit-hero-slider .actions {
  margin-top: 18px;
}

.audit-hero-slider .btn {
  min-height: 44px;
  padding-top: 11px;
  padding-bottom: 11px;
}

.audit-slider-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 6;
  padding: 0;
  background: none;
  pointer-events: none;
}

.audit-slider-controls .slider-controls-inner {
  justify-content: flex-end;
  gap: 10px;
}

.audit-slider-controls .slider-dots {
  flex: 0 0 auto;
  pointer-events: auto;
}

.audit-slider-controls .slider-dots button {
  padding: 7px 10px;
  font-size: 11px;
  box-shadow: 0 8px 20px rgba(20,33,27,.08);
}

.audit-slider-controls .slider-prev,
.audit-slider-controls .slider-next {
  width: 34px;
  height: 34px;
  font-size: 16px;
  pointer-events: auto;
}

/* solution-board живёт поверх media-ui: сетка вместо центрирования */
.solution-board {
  display: grid;
  aspect-ratio: auto;
  padding: 12px;
}


/* ===== Режим 3: изображение без рамки, текст поверх (bleed + scrim) =====
   Для атмосферных ФОТО. UI-скриншоты под текст не кладём — только media-ui.
   --focus управляет смысловым центром кадра (что не должно прятаться под текст). */

.section-bleed {
  position: relative;
  overflow: hidden;
}

.section-bleed > .bleed-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 72% 50%);
  z-index: 0;
}

.section-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(245,243,234,.97) 0%, rgba(245,243,234,.90) 44%,
    rgba(245,243,234,.30) 72%, rgba(245,243,234,.02) 100%);
}

.section-bleed > *:not(.bleed-img) { position: relative; z-index: 2; }

.section-bleed.dark-scrim { color: #fff; }
.section-bleed.dark-scrim::after {
  background: linear-gradient(90deg,
    rgba(16,28,22,.97) 0%, rgba(16,28,22,.93) 52%,
    rgba(16,28,22,.62) 78%, rgba(16,28,22,.30) 100%);
}
.section-bleed.dark-scrim h2, .section-bleed.dark-scrim h3 { color: #fff; }
.section-bleed.dark-scrim p { color: #d6e2d9; }

/* Без рамки, но и без текста поверх: «голая» картинка в потоке */
.media-bare { margin: 0; }
.media-bare img { width: 100%; height: auto; display: block; }

@media (max-width: 640px) {
  .site-footer { padding: 30px 0 20px; }
  .catalog-more {
    margin-top: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,253,247,.8);
  }

  .catalog-more > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 14px 16px;
    color: var(--green-dark);
    font-weight: 850;
    cursor: pointer;
    list-style: none;
  }

  .catalog-more > summary::-webkit-details-marker { display: none; }
  .catalog-more > summary::after { content: "+"; font-size: 22px; line-height: 1; }
  .catalog-more[open] > summary::after { content: "−"; }
  .catalog-more[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 18px; }
  .catalog-more[open] { padding: 0 14px 14px; }
  .catalog-more[open] > summary { margin-left: -14px; margin-right: -14px; padding-left: 16px; padding-right: 16px; }
  /* на телефоне скрим разворачивается вертикально: текст сверху, фото внизу */
  .section-bleed::after {
    background: linear-gradient(180deg,
      rgba(245,243,234,.97) 0%, rgba(245,243,234,.92) 55%,
      rgba(245,243,234,.35) 100%);
  }
  .section-bleed.dark-scrim::after {
    background: linear-gradient(180deg,
      rgba(16,28,22,.95) 0%, rgba(16,28,22,.85) 55%, rgba(16,28,22,.45) 100%);
  }
}


/* ===== Hero-сцена: одинаковая высота первого экрана на ВСЕХ страницах.
   Кадр позиционируется абсолютно: проценты считаются от фиксированной высоты
   сцены (а не от auto-строки грида) — contain работает гарантированно. ===== */

.hero-grid .media-photo {
  position: relative;
  height: clamp(300px, 26vw, 370px);
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.hero-grid .media-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.hero-grid .media-ui {
  height: clamp(300px, 26vw, 370px);
}

/* Диорама должна перекрывать общий hero-media режим: это не карточка с картинкой,
   а часть постановки первого экрана. */
.hero-diorama .hero-grid {
  grid-template-columns: minmax(0, .92fr) minmax(500px, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
}

.hero-diorama .media-photo {
  height: clamp(360px, 36vw, 520px);
  margin-right: clamp(-72px, -4vw, -24px);
  /* Без overflow:hidden — не создаём видимую прямоугольную рамку */
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.hero-diorama .media-photo img {
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  object-fit: cover;
  object-position: center right;
  border-radius: 0;
  /* Только тень — никаких mask-image которые размывают и смывают */
  filter: drop-shadow(0 28px 40px rgba(20, 33, 27, .14));
}

.audit-hero-slider.hero-diorama .hero-grid {
  grid-template-columns: minmax(460px, .9fr) minmax(560px, 1fr);
  gap: clamp(8px, 1.4vw, 22px);
  min-height: 360px;
}

.audit-hero-slider.audit-hero .media-photo {
  width: min(100%, 620px);
  height: 300px;
  margin-left: clamp(-42px, -3vw, -24px);
  margin-right: 0;
}

.audit-hero-slider.audit-hero .media-photo img {
  transform: translateX(-3%) scale(.88);
  object-position: center center;
}

.audit-hero-slider .hero-note {
  max-width: 560px;
  margin-top: 10px;
  padding: 9px 12px 9px 14px;
  font-size: 13px;
  line-height: 1.34;
}

@media (max-width: 820px) {
  .hero-diorama .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-diorama .media-photo {
    aspect-ratio: 16 / 10;
    height: auto;
    margin: 10px 0 0;
  }

  .hero-diorama .actions {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 360px;
  }

  .hero-diorama .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-diorama .hero-note {
    max-width: 360px;
  }
}

@media (max-width: 1200px) {
  .navlinks { display: none; }
  .nav-burger { display: flex; }
  .nav-cabinet { display: none; }
  .nav-side > .account { display: none; }
  .nav-side > .switcher { display: none; }
  .mobile-switchers { display: flex; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
  .mobile-switchers .sw-menu { left: 0; right: auto; }
}

@media (max-width: 520px) {
  .nav { gap: 10px; }
  .nav-side { gap: 6px; }
  .nav-contact-actions { gap: 4px; }
  .nav-contact-action {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .nav-contact-action svg { width: 16px; height: 16px; }
}

@media (max-width: 1040px) {
  .phone-control, .form-shell, .final { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact { border-right: 0; }
  .system-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-grid { grid-template-columns: 1fr; }
  .navlinks { display: none; }
  .nav-burger { display: flex; }
  .nav-cabinet { display: none; }
  .nav-side > .switcher { display: none; }
  .mobile-switchers { display: flex; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
  .mobile-switchers .sw-menu { left: 0; right: auto; }
  .num-steps, .proof-strip, .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-documents { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-documents-intro { grid-column: 1 / -1; }
  .footer-copy { grid-template-columns: 1fr; gap: 8px; }
  .footer-copy > span:first-child { grid-column: 1; max-width: 640px; }
  .footer-copy > span:last-child {
    grid-column: 1;
    max-width: min(640px, calc(100% - 260px));
  }
  .slide-grid { grid-template-columns: minmax(0, 600px); min-height: 340px; gap: 24px; }
  .slide {
    padding-bottom: 66px;
    background-image:
      linear-gradient(90deg, rgba(248,245,237,.99) 0%, rgba(248,245,237,.97) 52%, rgba(248,245,237,.34) 100%),
      var(--slide-art);
    background-position: center, right center;
    background-size: cover, auto 100%;
  }
  .slide-media { min-height: 0; }
  .slide-media img { max-height: 320px; }
  .pilot-code-slider .slide-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 24px;
  }
  .pilot-code-slider .slide-scene {
    min-height: 300px;
    order: 2;
  }
  .pilot-code-slider .slide-scene img {
    width: min(680px, 100%);
  }
  .method-board { grid-template-columns: 1fr; }
  .board-line { grid-template-columns: 1fr; }
  .board-line i { height: 1px; }
  .flagship-visual { min-height: 330px; }
  .floating-card { position: static; width: auto; margin-top: 10px; }
  .visual-board { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline span:not(:last-child)::after { display: none; }
  .aud-panel.active { grid-template-columns: 1fr; }
  .start-options, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .niche-band, .niche-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consult { grid-template-columns: 1fr; }
  .consult-info { border-right: 0; border-bottom: 1px solid var(--line); }
  .num-steps.timeline::before { display: none; }
  .footer-bottom { grid-template-columns: 1fr; }
  .footer-legal-links { justify-content: flex-start; }
  .dashboard-shell { grid-template-columns: 1fr; }
  .side-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-visual { min-height: auto; }
  .hero-figure { position: relative; right: auto; top: auto; width: min(280px, 70%); margin: 0 auto -150px; }
  .hero-visual .platform-card { margin-top: 0; }
  .feature-band { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .legal-doc.legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; top: auto; }
  .legal-toc > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
  .page-hero .media-photo,
  .hero-diorama .media-photo {
    width: 100%;
    height: 260px;
    aspect-ratio: auto;
    margin-top: 8px;
  }
  .page-hero .platform-card {
    width: min(100%, 620px);
    justify-self: center;
  }
  .page-hero .platform-card .card-visual img {
    width: 100%;
    height: 260px;
    object-fit: cover;
  }
}

@media (max-width: 640px) {
  .page-hero .media-photo,
  .hero-diorama .media-photo,
  .page-hero .platform-card .card-visual img { height: 220px; }
  .wrap { width: min(100% - 28px, 1180px); }
  .hero { padding-top: 38px; }
  h1 { font-size: 34px; line-height: 1.14; }
  h2 { font-size: 28px; line-height: 1.18; }
  h3 { font-size: 21px; line-height: 1.18; }
  .lead { font-size: 17px; line-height: 1.55; }
  .ops-map, .grid-2, .grid-3, .grid-4, .system-line, .control-list, .metric-strip, .dash-grid, .side-nav {
    grid-template-columns: 1fr;
  }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .slider-dots button { padding: 8px 11px; }
  .slider-dots button b { display: none; }
  .fact-row { grid-template-columns: 1fr; }
  .fact:last-child { border-bottom: 0; }
  .section { padding: 52px 0; }
  .section-head { display: block; }
  .section-note { margin-top: 12px; }
  .method-main strong { font-size: 24px; }
  .final { padding: 28px; }
  .nav-cta { padding: 10px 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 14px; }
  .footer-brand { grid-column: auto; }
  .footer-brand { margin-bottom: 18px; }
  .footer-col,
  .footer-document-group { border-top: 1px solid rgba(255,255,255,.08); }
  .footer-col summary,
  .footer-document-group summary {
    position: relative;
    margin: 0;
    padding: 12px 28px 12px 0;
    cursor: pointer;
  }
  .footer-col summary::after,
  .footer-document-group summary::after {
    content: "+";
    position: absolute;
    right: 2px;
    color: #9fb0a7;
    font-size: 18px;
    line-height: 1;
  }
  .footer-col[open] summary::after,
  .footer-document-group[open] summary::after { content: "−"; }
  .footer-col nav { padding: 0 0 10px; }
  .footer-documents { grid-template-columns: 1fr; gap: 0; padding: 16px 0 12px; }
  .footer-documents-intro { grid-column: auto; padding-bottom: 14px; }
  .footer-document-group[open] { padding-bottom: 8px; }
  .footer-copy { display: grid; gap: 8px; }
  .footer-copy > span:last-child { max-width: calc(100% - 88px); }
  .legal-toc > div { grid-template-columns: 1fr; }
  .legal-section { padding: 24px 20px; border-radius: 14px; }
  .asset-card, .feature-panel { grid-template-columns: 1fr; }
  .asset-card img, .feature-panel img { justify-self: center; }
  .dash-card.wide { grid-column: auto; }
  .num-steps, .proof-strip, .catalog-grid { grid-template-columns: 1fr; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .start-options, .news-grid, .niche-band, .niche-tool-grid, .studio-feature-grid { grid-template-columns: 1fr; }
  .slide h1, .slide .slide-title { font-size: 30px; line-height: 1.16; }
  .slide .lead { font-size: 16px; line-height: 1.55; }
  .slide {
    padding: 34px 0 76px;
    background-image:
      linear-gradient(180deg, rgba(248,245,237,1) 0%, rgba(248,245,237,.97) 62%, rgba(248,245,237,.78) 100%),
      var(--slide-art);
    background-position: center, right center;
    background-size: cover, auto 100%;
  }
  .slide-grid { min-height: 360px; }
  .pilot-code-slider .slide-grid {
    min-height: auto;
  }
  .pilot-code-slider .slide-scene {
    min-height: 230px;
  }
  .pilot-code-slider .slide-scene img {
    width: 100%;
    margin-left: 0;
  }
  .slider-controls { padding-bottom: 20px; }
  .slider-controls-inner { justify-content: flex-start; flex-wrap: wrap; }
  .fact-row { grid-template-columns: 1fr; }
  .fact { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); padding-left: 0; }
  .flagship-visual { display: block; min-height: auto; }
  .visual-board { padding: 12px; gap: 10px; }
  .metric-card { min-height: 96px; }
  .pipeline { grid-template-columns: 1fr; }
  .intent-grid, .route-flow { grid-template-columns: 1fr; }
  .mobile-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 22px 0;
  list-style: none;
}

.feature-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf8;
  color: var(--ink);
  font-weight: 700;
}

.muted-small {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

/* Pilot Code flagship hero: background, copy, controls and graphic scene are separate layers. */
.pc-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #f7f4eb;
}

.pc-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247,244,235,.99) 0%, rgba(253,251,246,.97) 42%, rgba(239,246,240,.78) 100%),
    radial-gradient(760px 420px at 79% 48%, rgba(31,122,77,.16), transparent 64%),
    linear-gradient(135deg, rgba(255,255,255,.28), rgba(210,196,153,.12));
}

.pc-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247,244,235,0) 0 45%, rgba(247,244,235,.18) 62%, rgba(247,244,235,0) 100%),
    repeating-linear-gradient(90deg, rgba(20,33,27,.025) 0 1px, transparent 1px 82px),
    repeating-linear-gradient(0deg, rgba(20,33,27,.018) 0 1px, transparent 1px 82px);
  opacity: .65;
}

.pc-hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 610px) minmax(480px, 1fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: center;
  min-height: 590px;
  padding: 52px 0 38px;
}

.pc-copy {
  display: grid;
  align-content: center;
}

.pc-copy-slide {
  display: none;
}

.pc-copy-slide.active {
  display: block;
}

.pc-copy h1 {
  max-width: 650px;
  color: #17221c;
}

.pc-copy .lead {
  max-width: 610px;
  color: #2f3d35;
}

.pc-copy .actions {
  margin-top: 24px;
}

.pc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
  position: relative;
  z-index: 4;
}

.pc-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(31,122,77,.22);
  border-radius: 999px;
  background: rgba(255,253,247,.86);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(20,33,27,.05);
}

.pc-tabs button span {
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
}

.pc-tabs button.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 14px 26px rgba(31,122,77,.22);
}

.pc-tabs button.active span {
  color: #d9f4e2;
}

.pc-stage {
  position: relative;
  min-height: 430px;
  z-index: 2;
}

.pc-stage-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(8px) scale(.985);
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease;
}

.pc-stage-slide.active {
  opacity: 1;
  transform: none;
}

.pc-stage::before {
  content: "";
  position: absolute;
  inset: 10% -4% 2% 4%;
  border-radius: 38% 62% 54% 46%;
  background: radial-gradient(circle at 58% 48%, rgba(31,122,77,.18), rgba(31,122,77,.05) 48%, transparent 72%);
  filter: blur(4px);
}

.pc-device {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  border: 1px solid rgba(24,43,33,.18);
  border-radius: 14px;
  background: rgba(18,32,25,.96);
  color: #e9f2ec;
  box-shadow: 0 34px 70px rgba(20,33,27,.24), 0 1px 0 rgba(255,255,255,.18) inset;
  overflow: hidden;
}

.pc-device-top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #0d2118;
}

.pc-device-top i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2c8060;
}

.pc-device-top i:first-child { background: #c99441; }
.pc-device-top i:nth-child(2) { background: #5ca88a; }
.pc-device-top strong {
  margin-left: auto;
  color: rgba(232,242,236,.72);
  font-size: 12px;
}

.pc-device-body {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) 150px;
  gap: 16px;
  min-height: 280px;
  padding: 18px;
}

.pc-files,
.pc-code,
.pc-ai {
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.07);
}

.pc-files {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.pc-files b {
  color: #d7eadf;
  font-size: 12px;
}

.pc-files span {
  height: 10px;
  border-radius: 999px;
  background: rgba(215,234,223,.20);
}

.pc-code {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
}

.pc-code em {
  display: block;
  height: 12px;
  width: 72%;
  border-radius: 999px;
  background: rgba(216,226,219,.18);
}

.pc-code em:nth-child(2n) { width: 88%; }
.pc-code em.green { background: rgba(57,176,111,.45); }
.pc-code em.warn { background: rgba(211,142,67,.48); }
.pc-code em.wide { width: 96%; }

.pc-ai {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 14px;
}

.pc-ai strong {
  color: #fff;
  font-size: 16px;
}

.pc-ai span {
  min-height: 28px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(57,176,111,.18);
  color: #dff4e7;
  font-size: 12px;
  font-weight: 800;
}

.pc-device-body.review .pc-ai span { background: rgba(211,142,67,.18); }
.pc-device-body.support .pc-ai span { background: rgba(74,134,154,.20); }

.pc-float {
  position: absolute;
  z-index: 3;
  min-width: 150px;
  padding: 13px 15px;
  border: 1px solid rgba(31,122,77,.18);
  border-radius: 12px;
  background: rgba(255,253,247,.94);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(20,33,27,.13);
}

.pc-task {
  left: 0;
  top: 20%;
}

.pc-ok {
  right: 1%;
  bottom: 16%;
  color: var(--green-dark);
}

@keyframes pc-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1040px) {
  .pc-hero-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pc-stage {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .pc-hero-shell {
    padding: 36px 0 28px;
    gap: 22px;
  }

  .pc-copy h1 {
    color: #17221c;
    font-size: 34px;
    line-height: 1.14;
  }

  .pc-copy .lead {
    color: #2f3d35;
  }

  .pc-copy .actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .pc-tabs {
    margin-top: 20px;
  }

  .pc-stage {
    min-height: 285px;
    margin-top: 18px;
  }

  .pc-device-body {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    min-height: 230px;
    padding: 12px;
  }

  .pc-ai {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .pc-ai strong {
    grid-column: 1 / -1;
  }

  .pc-float {
    min-width: 126px;
    padding: 10px 11px;
    font-size: 12px;
  }

  .pc-task {
    left: 2%;
    top: 10%;
  }

  .pc-ok {
    right: 2%;
    bottom: 8%;
  }
}

.qr-offer {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 330px;
  padding: 28px;
  border: 1px solid rgba(27, 126, 75, .24);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(27,126,75,.10), rgba(255,255,255,.90)),
    repeating-linear-gradient(45deg, rgba(27,126,75,.08) 0 8px, transparent 8px 16px);
}

.qr-offer strong {
  font-size: 28px;
  line-height: 1.12;
}

.qr-offer p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.qr-offer span {
  display: inline-flex;
  width: fit-content;
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.modal-open {
  overflow: hidden;
}

.install-modal[hidden] {
  display: none;
}

.install-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.install-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 27, .42);
  backdrop-filter: blur(8px);
}

.install-modal__panel {
  position: relative;
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(216, 225, 216, .95);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 28px 90px rgba(20, 33, 27, .24);
}

.install-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.install-modal__copy {
  display: grid;
  align-content: center;
  gap: 14px;
}

.install-modal__copy h2 {
  font-size: 30px;
}

.install-modal__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.install-modal__steps {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.install-modal__steps span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 700;
}

.install-modal__qr {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(31,122,77,.24);
  border-radius: 14px;
  background: white;
}

.install-modal__qr img {
  width: 210px;
  height: 210px;
  image-rendering: crisp-edges;
}

.install-modal__qr strong {
  color: var(--green-dark);
  font-size: 13px;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .install-modal {
    padding: 14px;
  }

  .install-modal__panel {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 28px);
    overflow: auto;
    padding: 22px;
  }

  .install-modal__copy h2 {
    font-size: 26px;
  }

  .install-modal__qr img {
    width: 180px;
    height: 180px;
  }
}

.doc-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.doc-table div {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdf8;
}

.doc-table strong {
  font-size: 17px;
}

.doc-table span {
  color: var(--muted);
  line-height: 1.48;
}

@media (max-width: 760px) {
  .feature-list { grid-template-columns: 1fr; }
  .doc-table { grid-template-columns: 1fr; }
}

/* --- Contacts and office booking --- */

.contact-hero {
  background:
    radial-gradient(circle at 88% 24%, rgba(24, 24, 27, .07), transparent 30%),
    linear-gradient(135deg, #fafafa 0%, #f4f4f5 56%, #eeeef0 100%);
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: center;
}

.contact-hero h1 { max-width: 820px; }

.contact-hero .actions {
  align-items: center;
}

.contact-hero-messengers {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 8px;
}

.contact-hero-messenger {
  display: inline-grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(24, 24, 27, .1);
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 10px 24px rgba(24, 24, 27, .12);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.contact-hero-messenger svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.contact-hero-messenger--whatsapp { background: #25d366; }
.contact-hero-messenger--viber { background: #7360f2; }

.contact-hero-messenger:hover,
.contact-hero-messenger:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 14px 28px rgba(24, 24, 27, .16);
}

.contact-privacy-note {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-summary {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(24, 24, 27, .11);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 28px 70px rgba(24, 24, 27, .12);
}

.contact-summary__label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-summary > strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.16;
  letter-spacing: -.025em;
}

.contact-summary__place span {
  display: block;
}

.contact-summary__place span + span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .7em;
  font-weight: 700;
  line-height: 1.3;
}

.contact-summary__rows {
  display: grid;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-summary__rows > * {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.contact-summary__rows span { color: var(--muted); }
.contact-summary__rows b { text-align: right; }
.contact-summary__rows a:hover b { text-decoration: underline; }

.contact-summary__status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: #3f5549;
  font-size: 14px;
  font-weight: 750;
}

.contact-summary__status i {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #237a4b;
  box-shadow: 0 0 0 5px rgba(35, 122, 75, .12);
}

.office-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
}

.office-map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow);
}

.office-map__address {
  display: flex;
  min-height: 52px;
  align-items: center;
  margin: 0;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
}

.office-map iframe {
  display: block;
  width: 100%;
  min-height: 480px;
  border: 0;
  filter: saturate(.78) contrast(.98);
  pointer-events: none;
  user-select: none;
}

.office-map__link {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 850;
}

.office-map__link:hover { background: var(--surface); }

.office-copy h2 {
  margin: 12px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -.035em;
}

.office-copy > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.office-list {
  display: grid;
  gap: 0;
  margin: 24px 0 28px;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.office-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.office-list span { color: var(--muted); }

.remote-section {
  background:
    radial-gradient(circle at 12% 20%, rgba(35, 122, 75, .13), transparent 32%),
    linear-gradient(145deg, #17231d 0%, #111714 100%);
  color: #fff;
}

.remote-consultation {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
}

.remote-consultation .kicker { color: #a9d6bb; }
.remote-consultation h2 {
  max-width: 720px;
  margin: 12px 0 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.remote-consultation__copy > p {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  line-height: 1.65;
}
.remote-consultation .btn-primary { background: #f7f5ee; color: #111714; }
.remote-consultation .btn-secondary { border-color: rgba(255,255,255,.24); color: #fff; background: rgba(255,255,255,.06); }
.remote-consultation .btn-secondary:hover { background: rgba(255,255,255,.12); }

.remote-languages {
  display: grid;
  grid-template-columns: 38px auto 38px auto;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 24px;
}
.remote-languages span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #bfe2ca;
  font-size: 12px;
  font-weight: 900;
}
.remote-languages b { margin-right: 8px; }
.remote-consultation__note { font-size: 13px !important; }

.remote-steps {
  display: grid;
  margin: 0;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,.15);
  list-style: none;
}
.remote-steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.remote-steps li > span { color: #8bc09d; font: 800 13px var(--mono); }
.remote-steps strong { display: block; font-size: 18px; }
.remote-steps p { margin: 6px 0 0; color: rgba(255,255,255,.64); line-height: 1.5; }

.company-details {
  display: grid;
  grid-template-columns: minmax(400px, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: start;
}

.company-details h2 {
  margin: 12px 0 0;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.08;
}

.company-details__title span {
  display: block;
  white-space: normal;
  overflow-wrap: inherit;
}

.company-details dl { margin: 0; }
.company-details dl div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(24, 24, 27, .13);
}
.company-details dt { color: var(--muted); }
.company-details dd { margin: 0; font-weight: 750; }
.company-details dd a { text-decoration: underline; text-underline-offset: 3px; }

.booking-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(860px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid rgba(24, 24, 27, .13);
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(9, 9, 11, .28);
}

.booking-dialog::backdrop {
  background: rgba(9, 9, 11, .55);
  backdrop-filter: blur(7px);
}

.booking-form { padding: clamp(22px, 4vw, 38px); }

.booking-dialog__head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.booking-dialog__head h2 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.06;
}

.booking-dialog__head p {
  margin: 10px 0 0;
  color: var(--muted);
}

.booking-dialog__close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.booking-dialog__close:hover { background: var(--surface-soft); }

.booking-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-top: 22px;
}

.booking-field { display: grid; gap: 7px; }
.booking-field > span { font-size: 14px; font-weight: 800; }
.booking-field > span b { color: #a32929; }

.booking-field input,
.booking-field select,
.booking-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 13px;
  border: 1px solid #c8c8ce;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.booking-field textarea { min-height: 94px; resize: vertical; }
.booking-phone-row {
  display: grid;
  grid-template-columns: minmax(170px, .9fr) minmax(190px, 1.1fr);
  gap: 10px;
}
.booking-field__help,
.booking-field__error {
  display: block;
  font-size: 12px;
  line-height: 1.4;
}
.booking-field__help { color: var(--muted); }
.booking-field__error { min-height: 1.4em; color: #9c2525; font-weight: 700; }
.booking-field [aria-invalid="true"] { border-color: #a32929; box-shadow: 0 0 0 3px rgba(163, 41, 41, .1); }
.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus { border-color: var(--ink); outline-offset: 1px; }
.booking-field--wide { grid-column: 1 / -1; }
.booking-honeypot { position: absolute; left: -10000px; }

.booking-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.booking-consent input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; accent-color: var(--ink); }
.booking-consent a { color: var(--ink); text-decoration: underline; }

.booking-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
}

.booking-status {
  flex: 1;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.booking-status[data-state="error"] { color: #9c2525; }
.booking-status[data-state="success"] { color: #17643b; font-weight: 750; }

@media (max-width: 820px) {
  .contact-hero-grid,
  .office-grid,
  .remote-consultation,
  .company-details { grid-template-columns: 1fr; }
  .contact-summary { max-width: 620px; }
  .office-map iframe { min-height: 380px; }
}

@media (max-width: 600px) {
  .contact-summary__rows > *,
  .office-list li,
  .company-details dl div { grid-template-columns: 1fr; gap: 4px; }
  .contact-summary__rows > * { display: grid; }
  .contact-summary__rows b { text-align: left; }
  .office-map iframe { min-height: 330px; }
  .booking-fields { grid-template-columns: 1fr; }
  .booking-field--wide { grid-column: auto; }
  .booking-form__footer { align-items: stretch; flex-direction: column; }
  .booking-form__footer .btn { width: 100%; }
  .remote-languages { grid-template-columns: 38px 1fr 38px 1fr; width: 100%; }
  .remote-consultation .actions { align-items: stretch; flex-direction: column; }
  .remote-consultation .actions .btn { width: 100%; }
  .company-details__title span {
    white-space: normal;
    text-wrap: balance;
  }
}

/* ===== Soft geometry system =====
   Общая пластика сайта: фотографии остаются крупными и смысловыми,
   но больше не выглядят вклеенными прямоугольниками. */

.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 42px;
  padding-top: 10px;
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 13px;
}

.crumbs a {
  padding: 5px 9px;
  margin-left: -9px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}

.crumbs a:hover { background: rgba(24, 24, 27, .06); }
.crumbs span { color: #a1a1aa; }

.hero.page-hero {
  overflow: clip;
  background:
    radial-gradient(circle at 88% 24%, rgba(212, 228, 216, .55), transparent 34%),
    radial-gradient(circle at 8% 82%, rgba(248, 236, 211, .48), transparent 28%),
    linear-gradient(135deg, #fbfaf6 0%, #f8faf7 100%);
}

.media-photo {
  overflow: hidden;
  border: 1px solid rgba(24, 24, 27, .08);
  border-radius: var(--radius-lg);
  background: #f3f1e9;
  box-shadow: 0 22px 58px rgba(24, 24, 27, .10), 0 2px 10px rgba(24, 24, 27, .05);
  isolation: isolate;
}

.media-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
  pointer-events: none;
}

.media-photo > img {
  border-radius: inherit;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), filter .3s ease;
}

.media-photo:hover > img { transform: scale(1.012); }

.page-hero .media-photo,
.hero-grid .media-photo,
.hero-diorama .media-photo,
.audit-hero .media-photo,
.audit-hero-slider .media-photo,
.audit-hero-slider.audit-hero .media-photo {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: var(--radius-media);
  background: rgba(255, 255, 255, .5);
  box-shadow:
    0 30px 70px rgba(24, 24, 27, .13),
    0 8px 22px rgba(24, 24, 27, .07),
    0 0 0 1px rgba(24, 24, 27, .045);
}

.page-hero .media-photo > img,
.hero-grid .media-photo > img,
.hero-diorama .media-photo > img,
.audit-hero .media-photo > img,
.audit-hero-slider .media-photo > img {
  border-radius: inherit;
  filter: saturate(.96) contrast(1.01);
}

.media-ui {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(24, 24, 27, .09);
}

.card,
.platform-card,
.catalog-card,
.news-card,
.start-option,
.niche-chip,
.proof-item,
.price-card,
.case-card,
.num-step,
.system-step,
.method-step,
.product-shot,
.solution-tile,
.contact-summary,
.office-map,
.company-details {
  border-radius: var(--radius);
}

.card,
.catalog-card,
.news-card,
.start-option,
.proof-item,
.price-card,
.case-card,
.num-step,
.system-step {
  box-shadow: 0 10px 32px rgba(24, 24, 27, .055);
}

.btn,
.switcher,
.account,
.nav-burger,
.slider-prev,
.slider-next,
.auth-text-button,
.booking-field input,
.booking-field select,
.booking-field textarea {
  border-radius: var(--radius-sm);
}

.pilot-code-slider .slide-media {
  display: grid;
  border-radius: var(--radius-media);
  border-color: rgba(255, 255, 255, .76);
  box-shadow: 0 28px 64px rgba(24, 24, 27, .12), 0 0 0 1px rgba(24, 24, 27, .04);
}

.pilot-code-slider .slide-media img { border-radius: calc(var(--radius-media) - 8px); }

.section.alt {
  border-top: 0;
  border-bottom: 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, .82), transparent 30%),
    linear-gradient(180deg, #f1f0eb 0%, #eeeee9 55%, #f4f4f1 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, .72), inset 0 -1px rgba(24, 24, 27, .035);
}

.section.dark {
  border-top: 0;
  border-bottom: 0;
  box-shadow: inset 0 1px rgba(255, 255, 255, .55), inset 0 -1px rgba(24, 24, 27, .05);
}

@media (max-width: 820px) {
  :root {
    --radius: 16px;
    --radius-lg: 20px;
    --radius-media: 22px;
  }

  .hero-diorama .media-photo { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .media-photo > img { transition: none; }
  .media-photo:hover > img { transform: none; }
}

/* ===== Unified editorial typography =====
   Одна шкала заголовков для всех продуктовых и служебных страниц.
   `balance` выравнивает строки заголовка и не оставляет последнее слово
   одинокой короткой строкой. Обычный текст выше использует `pretty`. */

:root {
  --type-h1: clamp(36px, 3.05vw, 44px);
  --type-h2: clamp(28px, 2.4vw, 36px);
  --type-h3: clamp(20px, 1.6vw, 23px);
  --type-card-title: clamp(21px, 1.8vw, 26px);
}

h1,
.slide h1,
.slide .slide-title,
.auth-copy h1,
.account-intro h1,
.account-card-head h1,
.docs-hero h1,
.audit-hero-slider h1,
.pc-copy h1 {
  font-size: var(--type-h1);
  line-height: 1.08;
  letter-spacing: -.035em;
}

h2,
.legal-section h2,
.final h2,
.consult-info h2,
.docs-section h2,
.office-copy h2,
.remote-consultation h2,
.company-details h2,
.booking-dialog__head h2,
.install-modal__copy h2,
.account-card-head h2 {
  font-size: var(--type-h2);
  line-height: 1.12;
  letter-spacing: -.025em;
}

h3,
.price-card h3,
.aud-panel h3,
.docs-section h3 {
  font-size: var(--type-h3);
  line-height: 1.2;
  letter-spacing: -.015em;
}

h1, h2, h3, h4, h5, h6,
.slide .slide-title,
.contact-summary > strong,
.method-main strong,
.system-step strong,
.ops-item strong {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

/* Keep long localized heading words inside narrow screens. */
h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; }

.contact-summary > strong {
  max-width: 24ch;
  font-size: var(--type-card-title);
  line-height: 1.14;
}

@media (max-width: 640px) {
  :root {
    --type-h1: clamp(32px, 8.7vw, 36px);
    --type-h2: clamp(26px, 7.2vw, 30px);
    --type-h3: clamp(19px, 5.5vw, 22px);
  }

  h1, h2, h3, h4, h5, h6,
  .slide .slide-title {
    text-wrap: balance;
  }

  .booking-phone-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ===== Editorial section heading =====
   Пояснение — часть заголовка секции, а не отдельная «карточка». Спокойный
   маршрутный маркер связывает его с брендом и не конкурирует с контентом. */
.section-head {
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .64fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: end;
}

/* Keep mixed text, links and emphasis in one inline formatting context.
   A grid would place each text run/element into the 18px marker column. */
.section-note {
  position: relative;
  display: block;
  max-width: 600px;
  margin: 0;
  padding: 4px 0 3px 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #43494a;
  font-size: clamp(15.5px, 1.05vw, 16.5px);
  font-weight: 540;
  line-height: 1.62;
  text-wrap: pretty;
  box-shadow: none;
}

.section-note::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 5px;
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(28, 122, 75, .10);
}

.section.alt .section-note,
.section.dark .section-note {
  background: transparent;
  color: #43494a;
}

.hero-note {
  width: 100%;
  max-width: 620px;
  min-width: 0;
  padding: 10px 13px;
  border: 1px solid rgba(24, 24, 27, .10);
  border-radius: 11px;
  background: rgba(255, 255, 255, .70);
  color: #3a3f42;
  font-size: 15px;
  font-weight: 570;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.card p,
.card li,
.catalog-card p,
.news-card p,
.start-option p,
.num-step p,
.system-step span,
.method-step span,
.ops-item p,
.control-item span,
.consult-step div span,
.office-list span,
.company-details dt {
  color: #45494c;
  font-size: 15.5px;
  line-height: 1.58;
}

.muted-small,
.price-note,
.case-reuse,
.pricing-disclaimer,
.service-price small,
.form-hint,
.auth-form-lead,
.account-switch,
.account-security {
  color: #45494c;
  font-size: 15px;
  line-height: 1.58;
}

.metric span,
.niche-chip span,
.consult-person span,
.card-head span,
.fact span {
  font-size: 14.5px;
  line-height: 1.5;
}

.pc-tabs button,
.slider-dots button,
.audit-slider-controls .slider-dots button {
  min-height: 44px;
  font-size: 13.5px;
}

.field-optional,
.auth-text-button.compact,
.account-divider,
.account-menu a span,
.booking-field__help,
.booking-field__error,
.case-meta span {
  color: #50545a;
  font-size: 13.5px;
  line-height: 1.5;
}

.booking-field__error { color: #8e1f1f; }

/* Intent-aware project request. Registration remains a separate account flow. */
.project-request-dialog {
  width: min(900px, calc(100vw - 28px));
  max-height: min(820px, calc(100dvh - 28px));
  border: 1px solid rgba(24, 62, 45, .16);
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(20, 35, 27, .24);
}

.project-request-form { padding: clamp(22px, 4vw, 36px); }

.project-request-dialog .booking-dialog__head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.project-request-dialog .booking-dialog__head p { max-width: 650px; }
.project-request-dialog .booking-field { align-content: start; }
.project-request-dialog .booking-field input,
.project-request-dialog .booking-field select { height: 52px; min-height: 52px; }
.project-request-dialog .booking-phone-row input,
.project-request-dialog .booking-phone-row select { width: 100%; }

.project-request-context {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 14px;
  margin: 18px 0;
  padding: 13px 16px;
  border: 1px solid rgba(24, 121, 78, .2);
  border-radius: 15px;
  background: rgba(232, 244, 237, .7);
}

.project-request-context span,
.project-request-context small { color: var(--muted); font-size: 13px; }
.project-request-context strong { font-size: 15px; }
.project-request-context small { text-align: right; }

.project-request-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.project-request-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--green); }
.project-request-dialog .booking-status[data-state="error"] { color: #8e1f1f; font-weight: 700; }

.project-request-success {
  display: grid;
  justify-items: start;
  gap: 14px;
  min-height: 400px;
  align-content: center;
  padding: clamp(10px, 4vw, 40px);
}

.project-request-success__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 28px;
  font-weight: 900;
}

.project-request-success h2 { margin: 0; font-size: clamp(30px, 5vw, 48px); }
.project-request-success p { max-width: 620px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.project-request-success__close { border: 0; padding: 0; color: var(--muted); background: none; font: inherit; text-decoration: underline; cursor: pointer; }

@media (max-width: 640px) {
  .project-request-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 22px; }
  .project-request-form { padding: 18px; }
  .project-request-dialog .booking-dialog__head { align-items: flex-start; }
  .project-request-context { grid-template-columns: 1fr; }
  .project-request-context small { text-align: left; }
  .project-request-success { min-height: 360px; padding: 12px; }
}

.crumbs {
  color: #50545a;
  font-size: 14px;
}

.crumbs span { color: #656970; }
.audit-hero-slider .hero-note,
.audit-hero .hero-note,
.hero-diorama .hero-note,
.remote-consultation__note {
  font-size: 15px !important;
  line-height: 1.55;
}
.section.dark p,
.section.dark .section-note { color: #34383b; }

@media (max-width: 1020px) {
  .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  .section-note { max-width: 680px; }
}

@media (max-width: 640px) {
  .section-note {
    margin-top: 0;
    padding: 2px 0 0 28px;
    font-size: 15.5px;
    line-height: 1.58;
  }

  .section-note::before { top: 9px; }

  .hero-note { font-size: 15px; }
}

/* Media story: the copy and hero geometry stay fixed while equal-size frames
   explain consecutive stages. Only opacity changes, so there is no layout shift. */
.media-story {
  --story-delay: 2800ms;
  position: relative;
  margin: 0;
  aspect-ratio: 8 / 5;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(176, 194, 183, .72);
  border-radius: var(--radius-media, 30px);
  background: #e9eee9;
  box-shadow: 0 24px 58px rgba(26, 45, 35, .13);
  isolation: isolate;
}

.media-story-frames,
.media-story-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.media-story-frame {
  display: block;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .62s ease, transform 2.8s ease;
}

.media-story-frame.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

/* Chat Pilot hero uses a real HTML interface over a quiet phone photograph.
   The brand mark and copy stay exact, localizable and animatable instead of
   being baked into generated pixels. */
.chat-pilot-frame {
  overflow: hidden;
}

.chat-phone-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-phone-screen {
  position: absolute;
  z-index: 1;
  left: 28%;
  top: 11.5%;
  width: 44%;
  height: 80.5%;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
  padding: 8px 9px 9px;
  color: #183226;
  background: #fbfaf6;
  font-size: clamp(8px, .72vw, 10px);
  line-height: 1.3;
}

.chat-phone-appbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 23px;
  font-size: 1.18em;
}

.chat-phone-appbar img,
.chat-phone-avatar {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.chat-phone-welcome {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 5px 12px 3px;
  text-align: center;
  font-size: 1.55em;
  line-height: 1.15;
}

.chat-phone-prompts {
  display: grid;
  gap: 6px;
}

.chat-phone-prompts span,
.chat-phone-input {
  border: 1px solid #dfe7df;
  border-radius: 9px;
  background: #f6f8f3;
}

.chat-phone-prompts span {
  position: relative;
  padding: 7px 20px 7px 9px;
  font-weight: 700;
}

.chat-phone-prompts span::after {
  content: "›";
  position: absolute;
  right: 9px;
  color: #48755d;
  font-size: 1.35em;
  line-height: .75;
}

.chat-phone-input {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 29px;
  padding: 5px 5px 5px 9px;
  color: #7a837e;
}

.chat-phone-input span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: white;
  background: #1f6b47;
  font-weight: 900;
}

.chat-phone-user {
  width: 76%;
  margin: 10px 0 10px auto;
  padding: 8px 9px;
  border-radius: 10px 10px 3px 10px;
  background: #edf1e9;
}

.chat-phone-answer-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 6px;
}

.chat-phone-answer,
.chat-phone-plan {
  min-height: 32px;
  padding: 8px 9px;
  border: 1px solid #e0e5df;
  border-radius: 3px 10px 10px 10px;
  background: white;
}

.chat-phone-caret {
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -.12em;
  background: #1f6b47;
  animation: chat-phone-caret .72s steps(1) infinite;
}

.chat-phone-plan {
  display: grid;
  gap: 3px;
}

.chat-phone-plan strong { margin-bottom: 1px; }

.chat-phone-action {
  margin: 7px 0 0 26px;
  padding: 5px 9px;
  border: 1px solid #397556;
  border-radius: 999px;
  color: #24583d;
  background: #fbfdf9;
  font: inherit;
  font-weight: 800;
}

.chat-pilot-story::after { height: 25%; }

@keyframes chat-phone-caret {
  50% { opacity: 0; }
}

@media (max-width: 760px) {
  .chat-phone-screen {
    left: 23.6%;
    width: 52.8%;
    font-size: 8px;
  }

  .chat-phone-appbar img,
  .chat-phone-avatar {
    width: 20px;
    height: 20px;
  }

  .chat-phone-answer-row { grid-template-columns: 20px minmax(0, 1fr); }
  .chat-phone-welcome { min-height: 45px; }
  .chat-phone-prompts { gap: 4px; }
  .chat-phone-prompts span { padding-block: 5px; }
}

.media-story::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(16, 29, 23, .78));
}

.media-story-meta {
  position: absolute;
  z-index: 3;
  left: clamp(14px, 3vw, 24px);
  right: clamp(14px, 3vw, 24px);
  bottom: clamp(13px, 2.4vw, 21px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.media-story-count {
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .78);
}

.media-story-label {
  min-width: 0;
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.25;
  font-weight: 850;
  text-wrap: balance;
}

.media-story-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.media-story-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
  box-shadow: none;
}

.media-story-dots button.is-active {
  width: 25px;
  background: #fff;
}

.media-story-progress {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .16);
}

.media-story-progress::after {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
}

/* Pilot Code: сильная продуктовая CTA и технические сведения рядом с продуктом,
   а не в текстовой колонке hero. */
.pilot-code-actions { gap: 10px; }

.pilot-code-team-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #454b50;
  font-size: 14px;
  font-weight: 760;
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, .28);
  text-underline-offset: 4px;
}

.pilot-code-team-link span {
  color: #2563eb;
  font-size: 17px;
  transition: transform .2s ease;
}

.pilot-code-team-link:hover { color: #1d4ed8; }
.pilot-code-team-link:hover span { transform: translateX(3px); }

.pilot-code-download {
  gap: 10px;
  min-height: 50px;
  padding-inline: 20px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  box-shadow: 0 14px 30px rgba(37, 99, 235, .25), inset 0 1px 0 rgba(255, 255, 255, .24);
}

.pilot-code-download:hover {
  color: #fff;
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  box-shadow: 0 18px 36px rgba(37, 99, 235, .34), 0 0 0 4px rgba(14, 165, 233, .12);
}

.pilot-code-download__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 9px;
  background: rgba(255, 255, 255, .14);
  font-size: 17px;
  line-height: 1;
}

.pilot-code-visual {
  min-width: 0;
  align-self: center;
  display: grid;
  gap: 12px;
}

.pilot-code-visual .media-story { width: 100%; }

.pilot-code-specs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 0;
  min-height: 32px;
  color: #555b60;
  font-size: 12.5px;
  font-weight: 680;
  line-height: 1.35;
}

.pilot-code-specs span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.pilot-code-specs span + span::before {
  content: "";
  width: 3px;
  height: 3px;
  margin: 0 9px;
  border-radius: 50%;
  background: #a5abb0;
}

@media (max-width: 760px) {
  .pilot-code-actions .btn { width: 100%; }
  .pilot-code-team-link { margin-top: 12px; }
  .pilot-code-specs { justify-content: flex-start; padding-inline: 4px; }
}

.media-story.is-running .media-story-progress::after {
  animation: media-story-progress var(--story-delay) linear forwards;
}

@keyframes media-story-progress {
  from { width: 0; }
  to { width: 100%; }
}

.hero-grid > .media-story,
.slide-grid > .media-story {
  width: 100%;
  align-self: center;
}

/* Flagship action hierarchy: secondary actions must read as real controls,
   not as plain text floating on the page. This final system override replaces
   legacy page-level border colors with one visible, calm contour. */
.btn-primary {
  border-color: rgba(9, 9, 11, .92);
}

.btn-secondary {
  border: 1.5px solid var(--button-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), var(--button-secondary-bg));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 5px 16px rgba(24, 24, 27, .065);
}

.btn-secondary:hover {
  border-color: var(--button-border-strong);
  background: #fff;
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgba(24, 24, 27, .11);
}

.btn-secondary:active {
  transform: translateY(0);
  border-color: rgba(24, 24, 27, .9);
  box-shadow: inset 0 1px 3px rgba(24, 24, 27, .08), 0 3px 10px rgba(24, 24, 27, .07);
}

/* Installation is a distinct product action. A restrained electric blue is
   deliberately outside the green/ink brand hierarchy, so the PWA action is
   immediately recognisable without turning the whole page into an advert. */
.btn-install {
  color: #fff;
  border-color: #1748b8;
  background: linear-gradient(180deg, #3578f6 0%, #1f5fd6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 10px 24px rgba(37, 99, 235, .25);
}

.btn-install:hover {
  border-color: #123f9f;
  background: linear-gradient(180deg, #2f70eb 0%, #194fbd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 14px 30px rgba(37, 99, 235, .32);
}

.btn-install:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(10, 37, 93, .22), 0 5px 14px rgba(37, 99, 235, .22);
}

.btn-install:focus-visible {
  outline-color: rgba(37, 99, 235, .5);
}

.remote-consultation .btn-primary { border-color: rgba(255, 255, 255, .9); }
.remote-consultation .btn-secondary { border-color: rgba(255, 255, 255, .42); }

/* Media-story pages use the top of the copy as their visual anchor. Centering
   a shorter 8:5 image against a long text column created a false empty band. */
.page-hero:has(.media-story) {
  padding-block: 28px 24px;
}

.page-hero .hero-grid > .media-story {
  align-self: start;
}

.page-hero:has(.media-story) .actions { margin-top: 22px; }
.page-hero:has(.media-story) .hero-note { margin-top: 12px; }

/* Responsive navigation panel. On wide screens the complete navigation is
   already visible, so the redundant burger stays hidden. */
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--button-border);
  background: rgba(255, 255, 255, .9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(24, 24, 27, .06);
}

.nav-burger span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}

.nav-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav[hidden] { display: none; }

body.mobile-menu-open .aip-consultant {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Paid audit: hot-lead order, account and payment flow in one dialog. */
.audit-order-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(880px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid rgba(24, 54, 37, .16);
  border-radius: 26px;
  background: #fffdfa;
  color: var(--text);
  box-shadow: 0 38px 120px rgba(15, 30, 21, .32);
  overflow: hidden;
}

.audit-order-dialog::backdrop { background: rgba(12, 20, 15, .56); backdrop-filter: blur(7px); }
.audit-order-dialog__shell { display: flex; flex-direction: column; max-height: min(880px, calc(100vh - 32px)); }
.audit-order-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 28px 30px 22px; border-bottom: 1px solid rgba(24, 54, 37, .1); background: linear-gradient(145deg, #f6f1e7, #eef5ef); }
.audit-order-dialog__head h2 { margin: 7px 0 8px; font-size: clamp(28px, 4vw, 40px); line-height: 1.02; letter-spacing: -.035em; }
.audit-order-dialog__head p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.5; }
.audit-order-dialog__close { flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid rgba(24, 54, 37, .13); border-radius: 50%; background: rgba(255,255,255,.72); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; }
.audit-order-dialog__close:hover { border-color: var(--green); background: #fff; }
.audit-order-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 30px; border-bottom: 1px solid rgba(24, 54, 37, .09); background: #fff; }
.audit-order-progress span { display: flex; align-items: center; gap: 8px; color: #8a928d; font-size: 12px; font-weight: 780; }
.audit-order-progress b { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #d8ddd9; border-radius: 50%; background: #f5f6f3; color: #7c857f; }
.audit-order-progress span.is-active { color: var(--green-dark); }
.audit-order-progress span.is-active b { border-color: var(--green); background: var(--green); color: #fff; }
.audit-order-dialog__body { overflow-y: auto; overscroll-behavior: contain; padding: 28px 30px 32px; scrollbar-width: thin; }
.audit-order-status { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #d8ddd9; border-radius: 12px; background: #f4f6f3; color: #445149; font-size: 13px; line-height: 1.45; }
.audit-order-status.error { border-color: rgba(168, 60, 60, .25); background: #fff4f2; color: #8c302e; }
.audit-order-status.success { border-color: rgba(25, 127, 80, .24); background: #edf8f1; color: #145b3b; }
.audit-order-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; }
.audit-order-form.single { grid-template-columns: 1fr; }
/* Author display:grid must not override the workflow hidden attribute. */
.audit-order-dialog [hidden] { display: none !important; }
.audit-order-step-copy, .audit-order-form .field-wide { grid-column: 1 / -1; }
.audit-order-step-copy { margin-bottom: 5px; }
.audit-order-step-copy > span { color: var(--green); font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.audit-order-step-copy h3, .audit-order-success h3 { margin: 6px 0 8px; font-size: clamp(25px, 3.4vw, 34px); line-height: 1.08; letter-spacing: -.03em; }
.audit-order-step-copy p { max-width: 590px; margin: 0; color: var(--muted); line-height: 1.55; }
.audit-order-form .field { display: grid; gap: 7px; margin: 0; }
.audit-order-form .field label { font-size: 12px; font-weight: 800; }
.audit-order-form .field label span { color: var(--muted); font-weight: 500; }
.audit-order-form input, .audit-order-form select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 49px; border: 1px solid #d6dbd7; border-radius: 11px; background: #fff; color: var(--text); padding: 11px 13px; font: inherit; }
.audit-order-form input:focus, .audit-order-form select:focus { outline: 3px solid rgba(25, 127, 80, .11); border-color: var(--green); }
.audit-order-phone { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 9px; }
.audit-order-consent { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.audit-order-consent input { width: 17px; min-height: 17px; margin-top: 1px; }
.audit-order-consent a { color: var(--green-dark); font-weight: 750; }
.audit-order-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.audit-order-actions .btn { justify-content: center; }
.audit-order-summary { display: grid; grid-template-columns: .55fr 1.45fr; gap: 12px; padding: 15px; border: 1px solid #dde1dd; border-radius: 14px; background: #f6f7f4; }
.audit-order-summary div { display: grid; gap: 3px; min-width: 0; }
.audit-order-summary span { color: var(--muted); font-size: 11px; }
.audit-order-summary strong { overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.audit-account-connected { display: grid; gap: 8px; padding: 18px; border: 1px solid rgba(25, 127, 80, .22); border-radius: 15px; background: #edf7f0; }
.audit-account-connected > span { color: var(--green-dark); font-size: 11px; font-weight: 800; }
.audit-account-connected .btn { margin-top: 5px; justify-content: center; }
.audit-account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.audit-account-actions .btn { justify-content: center; }
.audit-order-back { justify-self: start; border: 0; background: transparent; color: var(--muted); padding: 6px 0; font: inherit; font-size: 12px; font-weight: 720; cursor: pointer; }
.audit-order-back:hover { color: var(--green-dark); }
.audit-order-checkout-summary { display: grid; gap: 6px; padding: 19px; border: 1px solid rgba(24, 54, 37, .14); border-radius: 16px; background: linear-gradient(145deg, #f7f3e9, #eff6f0); }
.audit-order-checkout-summary > span { font-size: 13px; font-weight: 780; }
.audit-order-checkout-summary > strong { font-size: 29px; letter-spacing: -.03em; }
.audit-order-checkout-summary > small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.audit-payment-option { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; padding: 15px; border: 1px solid #d8ddd9; border-radius: 14px; background: #fff; cursor: pointer; }
.audit-payment-option:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 3px rgba(25, 127, 80, .09); }
.audit-payment-option input { width: 17px; min-height: 17px; margin-top: 2px; accent-color: var(--green); }
.audit-payment-option span { display: grid; gap: 3px; }
.audit-payment-option small { color: var(--muted); line-height: 1.45; }
.audit-order-pay { justify-content: center; min-height: 52px; margin-top: 3px; }
.audit-order-success { padding: 12px 0 4px; text-align: center; }
.audit-order-success__mark { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 15px; border-radius: 50%; background: var(--green); color: #fff; font-size: 28px; box-shadow: 0 14px 30px rgba(25, 127, 80, .22); }
.audit-order-success p { max-width: 520px; margin: 0 auto 20px; color: var(--muted); line-height: 1.55; }
.audit-order-success .audit-order-actions { justify-content: center; }
body:has(.audit-order-dialog[open]) .aip-consultant { opacity: 0; pointer-events: none; visibility: hidden; }

@media (max-width: 620px) {
  .audit-order-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); border-radius: 20px; }
  .audit-order-dialog__shell { max-height: calc(100vh - 16px); }
  .audit-order-dialog__head { padding: 21px 18px 17px; }
  .audit-order-dialog__head h2 { font-size: 28px; }
  .audit-order-dialog__head p { font-size: 13px; }
  .audit-order-progress { padding: 12px 18px; }
  .audit-order-progress span { font-size: 0; gap: 0; }
  .audit-order-progress b { font-size: 12px; }
  .audit-order-progress span::after { content: ''; height: 1px; flex: 1; background: #d8ddd9; margin-left: 7px; }
  .audit-order-progress span:last-child::after { display: none; }
  .audit-order-dialog__body { padding: 22px 18px 25px; }
  .audit-order-form { grid-template-columns: 1fr; }
  .audit-order-step-copy, .audit-order-form .field-wide { grid-column: auto; }
  .audit-order-phone { grid-template-columns: 108px minmax(0, 1fr); }
  .audit-account-actions { grid-template-columns: 1fr; }
  .audit-order-summary { grid-template-columns: 1fr; }
}

.mobile-nav {
  border-top: 1px solid rgba(24, 24, 27, .08);
  border-bottom: 1px solid rgba(24, 24, 27, .1);
  background: rgba(250, 250, 250, .98);
  box-shadow: 0 24px 52px rgba(24, 24, 27, .12);
  backdrop-filter: blur(22px) saturate(1.15);
}

.mobile-nav-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-block: 22px 26px;
}

.mobile-nav-intro {
  grid-column: 1 / 3;
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.mobile-nav-intro strong {
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.mobile-nav-intro span {
  max-width: 560px;
  color: var(--muted);
  font-size: 13px;
}

.mobile-switchers {
  grid-column: 3 / 5;
  align-self: center;
  justify-content: flex-end;
}

.mobile-top {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0 4px;
  border-top: 1px solid rgba(24, 24, 27, .09);
}

.mobile-top .btn { min-height: 44px; }

.mobile-group {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(24, 24, 27, .12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 8px 24px rgba(24, 24, 27, .045);
}

.mobile-group > strong {
  display: block;
  margin: 0 8px 8px;
  color: #68686f;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mobile-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 8px;
  border-radius: 10px;
  color: #29292d;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 720;
}

.mobile-group a::after {
  content: "→";
  flex: 0 0 auto;
  color: #8a8a91;
  transition: transform .18s ease, color .18s ease;
}

.mobile-group a:hover {
  background: #f1f1f3;
  color: var(--ink);
}

.mobile-group a:hover::after { color: var(--ink); transform: translateX(2px); }

@media (min-width: 1201px) {
  .mobile-nav { display: none !important; }
}

@media (max-width: 1200px) {
  .nav-burger { display: flex; }
  .mobile-switchers { display: flex; margin: 0; padding: 0; border: 0; }
}

@media (max-width: 820px) {
  [data-site-header] { min-height: 97px; }
  [data-site-header].site-header-without-announcement { min-height: 65px; }
  .nav { min-height: 64px; }
  .nav-contact-action { width: 40px; height: 40px; flex-basis: 40px; }
  .site-announcement-copy { gap: 8px; padding-inline: 20px; font-size: 11.5px; }
  .mobile-nav {
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mobile-nav-layout { grid-template-columns: 1fr 1fr; }
  .mobile-nav-intro { grid-column: 1 / -1; }
  .mobile-switchers { grid-column: 1 / -1; justify-content: flex-start; }
  .mobile-top { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .mobile-nav-layout { grid-template-columns: 1fr; gap: 10px; padding-block: 16px 22px; }
  .mobile-top { display: grid; grid-template-columns: 1fr; }
  .mobile-top .btn { width: 100%; }
  .mobile-group { padding: 12px; }
}

.media-only-slider .slide {
  background-image: linear-gradient(90deg, rgba(248,245,237,.99) 0%, rgba(248,245,237,.96) 54%, rgba(238,244,238,.72) 100%);
}

.media-only-slider .slide.active { animation: none; }

@media (max-width: 760px) {
  .media-story {
    aspect-ratio: 4 / 3;
    border-radius: 22px;
  }

  .media-story-meta {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .media-story-dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .media-story-frame { transition: none; }
  .media-story-progress { display: none; }
  .site-announcement-track { animation: none; transform: none; will-change: auto; }
  .site-announcement-copy:nth-child(2) { display: none; }
  .site-announcement-toggle { display: none; }
  .site-announcement { grid-template-columns: minmax(0, 1fr); }
  .site-announcement-link { justify-content: center; }
}

/* Registration CTA: photography carries emotion; copy and action remain accessible HTML. */
.account-intro-visual {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 620px;
  max-width: none;
  overflow: hidden;
  border: 1px solid rgba(24, 54, 37, .13);
  border-radius: 28px;
  background: #e7eadf;
  box-shadow: 0 30px 80px rgba(20, 45, 31, .11);
}
.account-intro-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
}
.account-intro-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(247, 244, 235, .98) 0%, rgba(247, 244, 235, .94) 35%, rgba(247, 244, 235, .64) 54%, rgba(247, 244, 235, .08) 78%);
  pointer-events: none;
}
.account-intro-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: clamp(30px, 4vw, 48px);
}
.account-intro-visual .account-back {
  align-self: flex-start;
  margin-bottom: clamp(48px, 7vh, 72px);
}
.account-intro-visual h1 {
  max-width: 430px;
  margin: 16px 0 18px;
  font-size: clamp(40px, 3.5vw, 48px);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.account-intro-visual .account-intro-copy > p {
  max-width: 370px;
  margin: 0;
  color: #46534c;
  font-size: 16px;
  line-height: 1.55;
}
.account-intro-cta {
  align-self: flex-start;
  margin-top: 24px;
}
.account-intro-visual .account-proof {
  width: min(100%, 380px);
  margin-top: auto;
  border-top-color: rgba(24, 54, 37, .16);
}
.account-intro-visual .account-proof > div {
  padding-block: 11px;
  border-bottom-color: rgba(24, 54, 37, .13);
}
#registration-form { scroll-margin-top: 96px; }

/* Account feedback: every network step must look active, then end in a clear next action. */
.auth-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(25,127,80,.18);
  border-radius: 13px;
  background: #f0f7f2;
  color: var(--green-dark);
}
.auth-progress > span:last-child { display: grid; gap: 2px; min-width: 0; }
.auth-progress strong { font-size: 13px; }
.auth-progress small { color: #5f6d65; font-size: 12px; line-height: 1.4; }
.auth-progress-spinner {
  width: 22px;
  height: 22px;
  flex: none;
  border: 2px solid rgba(25,127,80,.18);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: account-spin .8s linear infinite;
}
.btn.is-loading { cursor: wait; }
@keyframes account-spin { to { transform: rotate(360deg); } }
.signup-confirmation { padding: 4px 0 2px; }
.signup-confirmation-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 15px;
  background: var(--green);
  color: white;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(25,127,80,.2);
}
.signup-confirmation h2 { margin: 8px 0 10px; }
.signup-confirmation > p { color: var(--muted); line-height: 1.6; }
.signup-confirmation > p strong { color: var(--ink); overflow-wrap: anywhere; }
.signup-confirmation-steps { list-style: none; padding: 0; margin: 22px 0; border-top: 1px solid var(--line); }
.signup-confirmation-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.signup-confirmation-steps b { color: var(--green); font-size: 11px; letter-spacing: .08em; }
.signup-confirmation-steps span { font-size: 13px; font-weight: 720; }
.signup-confirmation-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.signup-confirmation-actions .btn { width: 100%; justify-content: center; }
.signup-confirmation .form-hint.error { color: #a92d22; }
.account-loading {
  width: min(100%, 520px);
  margin: clamp(20px,7vh,72px) auto;
  padding: clamp(24px,4vw,38px);
  border: 1px solid rgba(24,54,37,.13);
  border-radius: 22px;
  background: #fffdfa;
  box-shadow: 0 30px 80px rgba(20,45,31,.1);
}
.auth-section > .wrap {
  display: flow-root;
  min-height: 710px;
}
.account-loading[hidden] { display: none!important; }
.account-loading-mark { display: block; width: 42px; height: 42px; margin-bottom: 18px; }
.account-loading-mark img { width: 100%; height: 100%; object-fit: contain; }
.account-loading h1 { margin: 7px 0 8px; }
.account-loading p { margin: 0; color: var(--muted); }
.account-loading-line { display: block; height: 4px; margin-top: 24px; overflow: hidden; border-radius: 99px; background: #e4e9e5; }
.account-loading-line i { display: block; width: 42%; height: 100%; border-radius: inherit; background: var(--green); animation: account-loading-line 1.25s ease-in-out infinite; }
@keyframes account-loading-line { 0% { transform: translateX(-105%); } 100% { transform: translateX(245%); } }

@media (max-width: 760px) {
  .account-intro-visual {
    min-height: 430px;
    border-radius: 22px;
  }
  .account-intro-photo { object-position: 68% center; }
  .account-intro-visual::after {
    background: linear-gradient(90deg, rgba(247, 244, 235, .98) 0%, rgba(247, 244, 235, .90) 48%, rgba(247, 244, 235, .25) 100%);
  }
  .account-intro-copy { padding: 24px; }
  .account-intro-visual .account-back { margin-bottom: 42px; }
  .account-intro-visual h1 {
    max-width: 280px;
    font-size: 36px;
  }
  .account-intro-visual .account-intro-copy > p { max-width: 275px; }
  .account-intro-cta { margin-top: 20px; }
  .signup-confirmation-actions { grid-template-columns: 1fr; }
  .account-loading { margin: 8px auto; padding: 22px 18px; border-radius: 16px; }

  /* Mobile cabinet is an application surface, not a stack of desktop cards. */
  body.cabinet-active .auth-section { padding: 12px 0 22px; }
  .account-dashboard {
    min-height: 0;
    margin: 0;
    border-radius: 16px;
    box-shadow: 0 16px 46px rgba(20,45,31,.08);
  }
  .account-dashboard .side {
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
  }
  .account-dashboard .side .brand { margin: 0; gap: 7px; font-size: 13px; }
  .account-dashboard .side .brand .logo { width: 28px; height: 28px; }
  .account-dashboard .side-nav {
    display: flex;
    min-width: 0;
    gap: 3px;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .account-dashboard .side-nav::-webkit-scrollbar { display: none; }
  .account-dashboard .side-nav a,
  .account-dashboard .side-nav button { width: auto; padding: 7px 9px; border-radius: 8px; font-size: 11px; white-space: nowrap; }
  .account-dashboard .side-logout { margin: 0; padding: 7px; color: #f1c9c4; font-size: 11px; }
  .account-dashboard .dash-main { padding: 15px 12px 18px; }
  .account-dashboard .dash-topline { display: grid; gap: 12px; align-items: start; margin-bottom: 13px; }
  .account-dashboard .dash-topline h1 { margin-top: 5px; font-size: 28px; line-height: 1.05; }
  .account-dashboard .dash-topline p { font-size: 13px; line-height: 1.45; }
  .account-dashboard .dash-topline .btn { width: 100%; min-height: 42px; justify-content: center; }
  .account-dashboard .dash-grid { grid-template-columns: repeat(2,minmax(0,1fr))!important; gap: 8px; }
  .account-dashboard .dash-card { min-width: 0; padding: 12px; border-radius: 12px; }
  .account-dashboard .dash-card > span { font-size: 11px; }
  .account-dashboard .dash-card > strong { margin-top: 4px; font-size: 18px; line-height: 1.1; }
  .account-dashboard .dash-card > p { margin: 6px 0 0; font-size: 12px; line-height: 1.4; }
  .account-dashboard .dash-card:nth-child(-n+3) > p { display: none; }
  .account-dashboard .dash-card#profile,
  .account-dashboard .dash-card.wide,
  .account-dashboard .dash-card.full { grid-column: 1/-1; }
  .account-dashboard .cabinet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
  .account-dashboard .cabinet-actions .btn { min-height: 40px; padding: 9px 10px; justify-content: center; font-size: 12px; }
  .account-dashboard .dash-list { gap: 7px; margin-top: 9px; }
  .account-dashboard .dash-row { gap: 8px; padding: 9px; font-size: 12px; }
  .account-dashboard .cabinet-context { grid-template-columns: minmax(0,1fr) auto; margin-bottom: 12px; padding: 8px; }
  .account-dashboard .cabinet-context label { grid-column: 1/-1; }
  .account-dashboard .cabinet-context select { min-width: 0; width: 100%; }
  .account-dashboard .cabinet-summary-head { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  .account-dashboard .cabinet-summary-head > div { flex: 1 1 100%; min-width: 0; }
  .account-dashboard .cabinet-summary-head .geo-indicator { align-self: flex-start; max-width: 100%; }
  .account-dashboard .cabinet-summary-head .btn { width: auto; min-height: 36px; }
  .account-dashboard .cabinet-detail-list p { grid-template-columns: 105px minmax(0,1fr); gap: 9px; }
  .account-dashboard .cabinet-service-list { grid-template-columns: 1fr; }
  .account-dashboard .cabinet-service-card { padding: 13px; }
  .account-dashboard .cabinet-team-invite, .account-dashboard .cabinet-history-filters { grid-template-columns: 1fr; }
  .account-dashboard .cabinet-team-row { align-items: flex-start; flex-direction: column; }
  .account-dashboard .cabinet-team-controls { width: 100%; justify-content: stretch; }
  .account-dashboard .cabinet-team-controls select, .account-dashboard .cabinet-team-controls .btn { flex: 1; }
  .business-modal { align-items: end; padding: 0; }
  .business-dialog { width: 100%; max-height: 92vh; padding: 19px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
  .business-dialog-head { gap: 12px; }
  .business-dialog-head h2 { font-size: 27px; }
  .business-form-grid, .business-services-choice [data-service-options] { grid-template-columns: 1fr; gap: 9px; }
  .business-form-wide { grid-column: auto; }
  .business-dialog-actions { position: sticky; bottom: -19px; margin: 17px -16px -18px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,254,250,.96); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
  .business-dialog-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-progress-spinner,
  .account-loading-line i { animation: none; }
}

/* Длинная подводка секции не влезает в узкую правую колонку section-head:
   с align-items:end над заголовком повисает пустота высотой всей заметки.
   Для таких секций складываем шапку в столбик на всю ширину. */
.section-head.stack { display: block; }
.section-head.stack .section-note { max-width: 820px; margin-top: 12px; }
/* Flagship service pages: truthful product preview and service notes. */
.service-product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.service-disclaimer {
  margin: 24px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(28, 78, 58, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .68);
  color: var(--muted, #5f6f67);
  font-size: .94rem;
  line-height: 1.55;
}

.kreativ-preview {
  overflow: hidden;
  border: 1px solid rgba(29, 74, 55, .18);
  border-radius: 26px;
  background: #fffdf7;
  box-shadow: 0 28px 70px rgba(28, 55, 43, .13);
}

.kreativ-preview-head,
.kreativ-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  background: #173f30;
  color: #fff;
}

.kreativ-preview-head b,
.kreativ-preview-foot strong { color: #dce9aa; }

.kreativ-preview-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 0 20px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(29, 74, 55, .12);
}

.kreativ-preview-item:last-of-type { border-bottom: 0; }
.kreativ-preview-item div { display: grid; gap: 4px; }
.kreativ-preview-item small { color: #6f7c75; }
.kreativ-preview-item em {
  border-radius: 999px;
  padding: 7px 10px;
  background: #edf3df;
  color: #2b573f;
  font-size: .76rem;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}

.kreativ-format {
  display: grid;
  place-items: center;
  width: 58px;
  aspect-ratio: 1;
  border-radius: 16px;
  background: linear-gradient(145deg, #e7edc9, #f4d7bd);
  color: #244d3a;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .service-product-grid { grid-template-columns: 1fr; }
  .kreativ-preview-item { grid-template-columns: auto minmax(0, 1fr); }
  .kreativ-preview-item em { grid-column: 2; justify-self: start; }
}

/* Narrow-view proof cards must shrink to their grid track. */
.proof-item{min-width:0;overflow-wrap:anywhere}

/* At 320px keep the shared header controls inside the viewport. */
@media(max-width:340px){.nav{gap:4px}.nav-side{gap:4px}}

/* Seven product entries fit ordinary laptop screens; long menus remain scrollable. */
.nav-product-menu { max-height: calc(100dvh - 112px); overflow-y: auto; overscroll-behavior: contain; }
.nav-product-featured { gap: 5px; padding: 16px; }
.nav-product-card { min-height: 62px; grid-template-columns: 44px minmax(0,1fr) 16px; gap: 11px; padding: 8px 10px !important; }
.nav-product-icon { width: 44px; height: 44px; }
.mobile-product-icon { flex: 0 0 auto; object-fit: contain; margin-right: 8px; vertical-align: middle; }
.cat-icon img { display: block; object-fit: contain; }

.nav-group-products button.nav-trigger { font: inherit; background: transparent; border: 0; cursor: pointer; }
.nav-group-products button.nav-trigger:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; border-radius: 3px; }
.nav-group-products.is-menu-dismissed .nav-product-menu { display: none; }
