/* iConsult — landing page styles */

:root {
  /* ─── Design Tokens v1 ─────────────────────────────────────── */
  /* Three families × 4 shades = 12 canonical color tokens       */

  /* White family — backgrounds, surfaces, rules */
  --white-0: #ffffff;
  --white-1: #fafafa;
  --white-2: #f5f5f5;
  --white-3: #e5e5e5;

  /* Black family — type, dark backgrounds */
  --black-0: #0a0a0a;
  --black-1: #171717;
  --black-2: #525252;
  --black-3: #737373; /* был #a3a3a3 — контраст 2.5:1 на белом, ниже WCAG AA; #737373 = 4.7:1 */

  /* Blue family — accent, interactive (Apple-tuned) */
  --blue-0: #004A99;
  --blue-1: #0066CC;
  --blue-2: #4D9FE6;
  --blue-3: #CCE0F5;

  /* ─── Aliases (backward-compat) ────────────────────────────── */
  --paper:           var(--white-0);
  --paper-soft:      var(--white-1);
  --cream:           var(--white-1);
  --cream-soft:      var(--white-2);
  --ink:             var(--black-0);
  --ink-soft:        var(--black-1);
  --mute:            var(--black-2);
  --mute-soft:       var(--black-3);
  --rule:            var(--white-3);
  --rule-soft:       var(--white-2);

  --accent:          var(--blue-1);
  --accent-deep:     var(--blue-0);
  --accent-soft:     var(--blue-3);

  /* legacy */
  --terracotta:      var(--blue-1);
  --terracotta-deep: var(--blue-0);
  --terracotta-soft: var(--blue-3);
  --indigo:          var(--black-0);
  --indigo-soft:     var(--black-1);
  --ochre:           var(--black-2);
  --sage:            var(--black-3);

  /* ─── Typography ────────────────────────────────────────────── */
  --serif: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
  --sans:  "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ─── Geometry ──────────────────────────────────────────────── */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;

  /* ─── Shadows ───────────────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.05);
  --shadow-md: 0 1px 3px rgba(10, 10, 10, 0.06), 0 8px 24px rgba(10, 10, 10, 0.06);
  --shadow-lg: 0 2px 8px rgba(10, 10, 10, 0.08), 0 24px 60px rgba(10, 10, 10, 0.08);

  /* ─── Grid ──────────────────────────────────────────────────── */
  --pad-x: clamp(20px, 5vw, 80px);
  --gap:   24px;
}

/* palettes */
body.palette-ink {
  --paper:           var(--white-0);
  --paper-soft:      var(--white-1);
  --cream:           var(--white-1);
  --cream-soft:      var(--white-2);
  --ink:             var(--black-0);
  --ink-soft:        var(--black-1);
  --mute:            var(--black-2);
  --mute-soft:       var(--black-3);
  --rule:            var(--white-3);
  --rule-soft:       var(--white-2);
  --accent:          var(--blue-1);
  --accent-deep:     var(--blue-0);
  --accent-soft:     var(--blue-3);
  --terracotta:      var(--blue-1);
  --terracotta-deep: var(--blue-0);
  --terracotta-soft: var(--blue-3);
  --indigo:          var(--black-0);
  --ochre:           var(--black-2);
}
/* palette-earth / palette-sage удалены (концепт «Синий графит» 11.06.2026: золото/охра/терракота вне палитры);
   если класс где-то навесится — токены упадут на :root, т.е. на синий графит */

body.density-compact {
  --gap: 16px;
}
body.density-airy {
  --gap: 32px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 120px;
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ————— shared layout ————— */
.section {
  padding: clamp(64px, 9vw, 128px) var(--pad-x);
  position: relative;
}
.container {
  max-width: 1240px;
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--accent);
}

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

.h-display {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(42px, 5.8vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ink);
}
.h-display em {
  font-style: normal;
  color: var(--accent);
  font-weight: 800;
}
.h-section {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
}
.h-section em {
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}
.lede {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62ch;
  text-wrap: pretty;
}
.body-s {
  font-size: 14px;
  color: var(--mute);
  line-height: 1.55;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--cream);
}
.btn svg {
  width: 14px;
  height: 14px;
}

/* ——— header ——— */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.header.scrolled {
  border-bottom-color: var(--rule);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: inline-block;
  position: relative;
}
.nav {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover {
  background: var(--cream);
  color: var(--ink);
}
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--rule);
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  background: var(--paper);
  flex-shrink: 0;
}
.lang-switch button {
  padding: 6px 11px;
  color: var(--mute);
  font-weight: 700;
  transition: background 0.15s, color 0.15s;
}
.lang-switch button.active {
  background: var(--ink);
  color: var(--paper);
}
.mobile-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
}
@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .lang-switch button {
    display: inline-flex;
    align-items: center;
  }
}

/* ——— hero ——— */
.hero {
  padding: clamp(24px, 5vw, 48px) var(--pad-x) clamp(60px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: min(640px, 82vh);
}
.hero-chat-mobile { display: none; }
@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual { display: none; }
  .hero-chat-mobile {
    display: flex;
    justify-content: center;
    margin: 28px 0 0;
  }
  .hero-chat-mobile .hchat {
    max-width: 100%;
    height: 380px;
    border-radius: var(--radius-lg);
  }
  .hero-chat-mobile .hero-phone {
    height: 360px;
    width: auto;
  }
}
@media (max-width: 480px) {
  .hero-meta { gap: 12px; }
  .hero-meta div { font-size: 12px; }
  .hero-meta strong { font-size: 22px; }
}
@media (max-width: 420px) {
  .h-section { font-size: 26px; }
  .lede { font-size: 14px; }
  .eyebrow { font-size: 12px; } /* правило проекта: метки на мобильных ≥12px */
}
.hero-text {
  max-width: 620px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--cream-soft);
  margin-bottom: 28px;
}
.hero-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  position: relative;
}
.hero-tag-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--terracotta);
  opacity: 0.3;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.6); opacity: 0; }
}
.hero h1 {
  margin-bottom: 24px;
}
.hero-cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-meta {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hero-meta div {
  font-size: 13px;
  color: var(--mute);
}
.hero-meta strong {
  display: block;
  font-family: var(--sans);
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}

/* hero visual wrapper */
.hero-visual {
  aspect-ratio: 1 / 1.05;
  max-height: 640px;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, var(--cream) 0%, var(--paper) 100%);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ——— value props ——— */
.values {
  background: var(--cream);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.values-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: end;
}
@media (max-width: 880px) {
  .values-head { grid-template-columns: 1fr; gap: 24px; }
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
@media (max-width: 1080px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .values-grid { grid-template-columns: 1fr; }
}
.value-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 28px 24px 28px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.value-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink-soft);
}
.value-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--terracotta);
}
.value-card h3 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.2;
}
.value-card p {
  margin: 0;
  color: var(--mute);
  font-size: 14.5px;
  flex: 1;
  line-height: 1.55;
}
.value-card-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute-soft);
  letter-spacing: 0.1em;
  margin-top: 16px;
}

/* ——— how it works ——— */
.flows {
  padding-top: clamp(80px, 10vw, 140px);
}
.flows-head {
  text-align: left;
  max-width: 720px;
  margin: 0 0 72px;
}
.flows-head .lede {
  margin: 20px 0 0;
}
.flows-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 980px) {
  .flows-grid { grid-template-columns: 1fr; gap: 24px; }
}
.flow {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--cream-soft);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.flow-title {
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.flow-subtitle {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 28px;
}
.flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.flow-step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  align-items: center;
}
.flow-step:last-child { border-bottom: none; }
.flow-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.08em;
}
.flow-step-label {
  font-size: 15px;
  color: var(--ink);
}
.flow-step-hint {
  font-size: 13px;
  color: var(--mute);
  margin-top: 2px;
}

/* ——— board ——— */
.board {
  background: var(--ink);
  color: var(--cream);
  --rule: #1f1f1f;
  --ink: var(--cream);
  --ink-soft: #e5e5e5;
  --mute: #737373;
  --paper: var(--ink);
}
.board .eyebrow::before { background: var(--terracotta-soft); }
.board .eyebrow { color: #a3a3a3; }
.board .h-section em { color: var(--terracotta-soft); }
.board-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 72px;
  align-items: end;
}
@media (max-width: 880px) {
  .board-head { grid-template-columns: 1fr; gap: 20px; }
}
.board-head p {
  color: #d4d4d4;
  font-size: 16px;
  line-height: 1.6;
  max-width: 52ch;
  text-wrap: pretty;
  margin: 0;
}
.board-section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a3a3a3;
  margin: 48px 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.board-section-label::before,
.board-section-label::after {
  content: "";
  height: 1px;
  background: #262626;
  flex: 1;
}
.board-section-label::before { max-width: 16px; }

.humans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .humans-grid { grid-template-columns: 1fr; } }

.human-card {
  background: #141414;
  border: 1px solid #1f1f1f;
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.human-card.empty {
  border-style: dashed;
  background: transparent;
  opacity: 0.85;
}
.portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: linear-gradient(170deg, #2d2620 0%, #1a1714 100%);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.portrait-monogram {
  font-family: var(--sans);
  font-size: 56px;
  font-weight: 700;
  color: var(--accent-soft);
  letter-spacing: -0.03em;
}
.portrait-empty {
  color: #4a4238;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.portrait svg.texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
}
.portrait-photo {
  padding: 0;
  overflow: hidden;
  background: transparent;
}
.portrait-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  border-radius: inherit;
  filter: saturate(0.95) contrast(1.02);
}
.human-name {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--white-1);
}
.human-role {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta-soft);
  margin-bottom: 10px;
}
.human-bio {
  font-size: 14px;
  color: #a3a3a3;
  line-height: 1.55;
  margin: 0;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #1f1f1f;
  border: 1px solid #1f1f1f;
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 880px) { .agents-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .agents-grid { grid-template-columns: 1fr; } }
.agent {
  background: #141414;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.2s ease;
  position: relative;
  overflow: hidden;
}
.agent:hover { background: #2a2620; }
.agent-mark {
  width: 72px;
  height: 72px;
  position: relative;
  flex-shrink: 0;
}
.agent-name {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--white-1);
  letter-spacing: -0.02em;
}
.agent-role {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta-soft);
  margin-top: 2px;
}
.agent-desc {
  font-size: 13.5px;
  color: #a3a3a3;
  line-height: 1.55;
  margin-top: 4px;
}
.agent-status {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #525252;
  display: flex;
  align-items: center;
  gap: 6px;
}
.agent-status-dot {
  width: 6px;
  height: 6px;
  background: #5a9e6a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(90, 158, 106, 0.15);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ——— become a tenant ——— */
.become {
  background: var(--cream);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.become-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 980px) {
  .become-inner { grid-template-columns: 1fr; gap: 48px; }
}
.become-left .lede { margin-top: 20px; }
.become-price {
  margin-top: 32px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.become-price-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 8px;
}
.become-price-value {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.become-price-value em {
  font-style: normal;
  color: var(--accent);
}
.become-price-hint {
  font-size: 13px;
  color: var(--mute);
  margin-top: 6px;
}

.tenant-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tenant-step {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 18px;
  align-items: center;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.tenant-step:hover {
  border-color: var(--ink-soft);
  transform: translateX(4px);
}
.tenant-step-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cream);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.tenant-step-title {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 2px;
}
.tenant-step-hint {
  font-size: 13.5px;
  color: var(--mute);
  margin: 0;
}
.tenant-step-by {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  padding: 4px 10px;
  background: color-mix(in oklab, var(--terracotta) 8%, transparent);
  border-radius: 999px;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .tenant-step { grid-template-columns: 40px 1fr; }
  .tenant-step-by { grid-column: 2; margin-top: 4px; justify-self: start; }
}

/* ——— form ——— */
.apply {
  padding: clamp(80px, 10vw, 140px) var(--pad-x);
}
.apply-inner {
  max-width: 900px;
  margin: 0 auto;
}
.apply-head {
  text-align: left;
  margin-bottom: 56px;
}
.apply-head .lede {
  margin: 16px 0 0;
}
.form {
  background: var(--cream-soft);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}
.field input,
.field textarea,
.field select {
  font-family: var(--sans);
  font-size: 15px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--terracotta) 20%, transparent);
}
.field textarea {
  min-height: 120px;
  resize: vertical;
  font-family: var(--sans);
}
.field.error input,
.field.error textarea,
.field.error select {
  border-color: #dc2626; /* семантический красный ошибки (как в saas.css), не терракота */
  background: color-mix(in oklab, #dc2626 5%, var(--paper));
}
.field-error {
  font-size: 12px;
  color: #dc2626; /* терракота-алиас теперь синий — текст ошибки должен быть красным */
  margin-top: 2px;
}
.form-footer {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.form-privacy {
  font-size: 12.5px;
  color: var(--mute);
  max-width: 50ch;
  line-height: 1.5;
}
.form-privacy a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.form-submit {
  padding: 16px 28px;
  font-size: 15px;
}

.form-success {
  text-align: center;
  padding: 48px 20px;
}
.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--terracotta) 15%, var(--paper));
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  color: var(--terracotta);
}
.form-success h3 {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.form-success p {
  color: var(--mute);
  margin: 0 auto;
  max-width: 44ch;
}

/* ——— contacts ——— */
.contacts {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(80px, 10vw, 128px) var(--pad-x);
}
.contacts-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) { .contacts-inner { grid-template-columns: 1fr; } }
.contacts h2 { color: var(--cream); }
.contacts .eyebrow { color: #a3a3a3; }
.contacts .eyebrow::before { background: var(--terracotta-soft); }
.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #1f1f1f;
  border: 1px solid #1f1f1f;
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-row {
  background: #141414;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  transition: background 0.15s ease;
}
.contact-row:hover { background: var(--paper, #fff); }
.contact-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a3a3a3;
}
.contact-value {
  font-size: 15px;
  color: var(--cream);
}
.contact-arrow {
  color: var(--terracotta-soft);
  opacity: 0.5;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.contact-row:hover .contact-arrow {
  opacity: 1;
  transform: translateX(2px);
}
@media (max-width: 520px) {
  .contact-row { grid-template-columns: 1fr auto; }
  .contact-label { grid-column: 1 / -1; }
}

/* ——— footer ——— */
.footer {
  background: var(--ink);
  color: #737373;
  padding: 48px var(--pad-x) 40px;
  border-top: 1px solid #1f1f1f;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.footer-brand {
  font-family: var(--sans);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  color: var(--white-1);
  letter-spacing: -0.03em;
  line-height: 1.1;
  padding-bottom: 40px;
  border-bottom: 1px solid #262626;
  margin-bottom: 32px;
}
.footer-brand span { color: #525252; font-weight: 400; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.footer-bottom a {
  color: #737373;
  transition: color 0.15s ease;
}
.footer-bottom a:hover { color: var(--cream); }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.footer-legal {
  color: #737373;
  font-size: 12px;
  width: 100%;
  margin-top: -8px;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* ——— scroll reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ——— mobile drawer ——— */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: #ffffff;          /* solid fallback for Android <8 */
  background: var(--paper);
  z-index: 200;                 /* above sticky header (z-index:50) */
  padding: 16px var(--pad-x) 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.mobile-nav.open { transform: translateY(0); }
@media (min-width: 881px) {
  .mobile-nav,
  .mobile-nav.open {
    display: none !important;
  }
}
.mobile-nav > a:not(.mobile-signin) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out, border-color 150ms ease-out;
}
.mobile-nav > a:not(.mobile-signin):hover,
.mobile-nav > a:not(.mobile-signin):active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}
.mobile-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-soft);
  background: transparent;
  flex-shrink: 0;
}

/* ——— iConsult brand logo (header) ——— */
.brand-logo {
  height: 120px;
  width: auto;
  display: block;
}
@media (max-width: 720px) {
  .brand-logo { height: 90px; }
}

/* ══════════════════════════════════════════════════════
   HERO CHAT (HeroChat component)
   Telegram-style animated chat in the Hero section
   ══════════════════════════════════════════════════════ */

.hchat {
  width: 100%;
  max-width: 360px;
  border-radius: 28px;
  background: #f7f9fc;
  border: 1px solid var(--rule);
  box-shadow:
    0 1px 3px rgba(10,10,10,0.05),
    0 30px 80px rgba(10,10,10,0.12),
    0 60px 120px color-mix(in srgb, var(--blue-1) 8%, transparent);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  /* fixed height so the chat doesn't grow unboundedly */
  height: 540px;
}

/* Status bar */
.hchat-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.hchat-battery {
  width: 18px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  position: relative;
  opacity: 0.6;
}
.hchat-battery::before {
  content: "";
  position: absolute;
  top: 2px; left: 2px; bottom: 2px; right: 5px;
  background: currentColor;
  border-radius: 1px;
}
.hchat-battery::after {
  content: "";
  position: absolute;
  right: -4px; top: 3px;
  width: 2px; height: 4px;
  background: currentColor;
  border-radius: 0 1px 1px 0;
  opacity: 0.5;
}

/* Chat header */
.hchat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 10px;
  background: #fff;
  border-bottom: 1px solid #eaeaea;
}
.hchat-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.hchat-header-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.hchat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hchat-online {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #10b981;
}
.hchat-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}
.hchat-header-menu {
  width: 18px;
  height: 3px;
  background: #9ca3af;
  border-radius: 2px;
  box-shadow: 0 5px 0 #9ca3af, 0 -5px 0 #9ca3af;
  flex-shrink: 0;
  opacity: 0.5;
}

/* Messages area */
.hchat-msgs {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  scroll-behavior: smooth;
}
.hchat-msgs::-webkit-scrollbar { width: 0; }

/* Individual message row */
.hchat-msg {
  display: flex;
  animation: hchat-in 0.3s ease both;
}
.hchat-msg--user { justify-content: flex-end; }
.hchat-msg--ai   { justify-content: flex-start; }

@keyframes hchat-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Text bubbles */
.hchat-bubble {
  max-width: 72%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
}
.hchat-msg--user .hchat-bubble {
  background: linear-gradient(135deg, var(--blue-1), var(--blue-0));
  color: #fff;
  border-radius: 16px 16px 4px 16px;
}
.hchat-msg--ai .hchat-bubble {
  background: #fff;
  color: var(--ink);
  border: 1px solid #eaeaea;
  border-radius: 16px 16px 16px 4px;
}

/* Card previews (poster / vton) */
.hchat-card {
  width: 160px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eaeaea;
  background: #fff;
}
.hchat-card-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.hchat-card-label {
  padding: 6px 10px;
  font-size: 12px;
  color: var(--mute);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Typing indicator */
.hchat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 16px 16px 16px 4px;
  animation: hchat-in 0.25s ease both;
}
.hchat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
  animation: hchat-dot 1.2s ease-in-out infinite;
}
.hchat-typing span:nth-child(2) { animation-delay: 0.18s; }
.hchat-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes hchat-dot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%       { transform: translateY(-4px); opacity: 1; }
}

/* Decorative input bar */
.hchat-inputbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 14px;
  background: #fff;
  border-top: 1px solid #eaeaea;
}
.hchat-inputbar-field {
  flex: 1;
  background: #f0f2f5;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  color: #9ca3af;
  user-select: none;
}
.hchat-inputbar-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent, var(--blue-1));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: default;
  flex-shrink: 0;
}

/* Mobile: full width, shorter, below hero text */
@media (max-width: 768px) {
  .hchat {
    max-width: 100%;
    height: 440px;
    border-radius: 20px;
  }
}

/* Footer Telegram channel link */
.footer-tg-row {
  padding: 0.75rem 0 1rem;
  border-bottom: 1px solid #1a1a1a;
  margin-bottom: 0.5rem;
}
.footer-tg-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5ba3d5;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.footer-tg-link:hover { opacity: 1; }

/* ——— Footer modal ——— */
@keyframes fmodal-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fmodal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.fmodal {
  position: relative;
  max-width: 560px; width: 90%; max-height: 80vh; overflow-y: auto;
  background: var(--bg, #fff);
  border-radius: 16px; padding: 32px;
  animation: fmodal-in 200ms ease both;
}
.fmodal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  color: var(--mute, #888); border-radius: 6px; transition: opacity 0.15s;
}
.fmodal-close:hover { opacity: 0.6; }
.fmodal-badge {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-deep); border: 1px dashed var(--accent); border-radius: 4px; /* было золото #a87f3a — вне палитры «Синий графит» */
  padding: 3px 10px; margin-bottom: 16px;
}
.fmodal-title {
  font-size: 22px; font-weight: 700; margin-bottom: 16px;
  color: var(--ink, var(--black-0)); line-height: 1.25;
}
.fmodal-body p { margin-bottom: 12px; line-height: 1.65; color: var(--ink, var(--black-0)); font-size: 15px; }
.fmodal-cta { margin-top: 20px; }
.footer-link-btn {
  background: none; border: none; padding: 4px 0; cursor: pointer;
  color: inherit; font: inherit; font-size: inherit;
  text-decoration: underline; text-underline-offset: 3px;
  opacity: 0.6; transition: opacity 0.15s;
  min-height: 44px; display: inline-flex; align-items: center;
}
.footer-link-btn:hover { opacity: 1; }
@media (max-width: 768px) {
  .fmodal { padding: 20px; max-height: 90vh; }
}

/* ═══ Доступность (аудит 02.07.2026) ═══════════════════════════ */
/* Видимый клавиатурный фокус — только от клавиатуры (:focus-visible),
   мышь/тач не рисуют рамку */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Глобальный guard: у пользователя отключены анимации — гасим всё,
   включая infinite pulse/pulse-dot/hchat-dot (точечные guard'ы в saas.css
   покрывали только reveal/marquee) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
