/* =========================================================
   Design tokens — Private clinic style
   Вдохновение: современные премиальные медицинские клиники.
   Светлая база, медицинский teal, мягкие тени, крупные радиусы.
   ========================================================= */
:root {
  /* Text & ink */
  --color-ink: #0b1f2a;
  --color-text: #1f2a37;
  --color-muted: #55667a;
  --color-soft: #8a97a8;

  /* Surfaces */
  --color-surface: #ffffff;
  --color-surface-soft: #f7faf9;
  --color-surface-alt: #eef7f4;   /* soft mint tint */
  --color-surface-cream: #faf6ef; /* warm cream accent */

  /* Medical teal — primary */
  --color-primary: #0d9488;
  --color-primary-strong: #0b6a60;
  --color-primary-soft: #ccfbf1;
  --color-primary-tint: #f0fdfa;

  /* Deep clinic navy — for headings accent */
  --color-navy: #0b3954;

  /* Warm gold accent (подпись, подчёркивания) */
  --color-accent: #c08a33;
  --color-accent-soft: #fbf0d9;

  /* Status */
  --color-success: #0f766e;
  --color-success-bg: #ecfdf5;
  --color-warning: #92400e;
  --color-warning-bg: #fff7ed;
  --color-danger: #9f1239;
  --color-danger-bg: #fff1f2;

  /* Borders */
  --color-border: #e5ecee;
  --color-border-soft: #eef2f5;
  --color-border-strong: #cfd8dc;

  /* Radii — клинике нравятся крупные округления */
  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-pill: 999px;

  /* Shadows — мягкие, тёплые, с teal‑оттенком */
  --shadow-xs: 0 1px 2px rgba(11, 31, 42, 0.04);
  --shadow-sm: 0 6px 18px rgba(11, 31, 42, 0.05);
  --shadow-md: 0 18px 40px rgba(11, 31, 42, 0.08);
  --shadow-lg: 0 30px 70px rgba(11, 31, 42, 0.1);
  --shadow-teal: 0 24px 50px rgba(13, 148, 136, 0.18);
  --shadow-teal-sm: 0 10px 24px rgba(13, 148, 136, 0.14);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;

  /* Fonts */
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: Manrope, Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
}

p {
  margin: 0;
  color: var(--color-text);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 140ms ease;
}

a:hover,
a:focus-visible {
  color: var(--color-primary-strong);
}

:focus-visible {
  outline: 3px solid rgba(13, 148, 136, 0.35);
  outline-offset: 2px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  z-index: 100;
  font-weight: 600;
  box-shadow: var(--shadow-teal-sm);
  transition: top 150ms ease;
}

.skip-link:focus {
  top: 0.75rem;
  color: #fff;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
}

main {
  flex: 1;
}

/* =========================================================
   Header / navigation — clinic style
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border-soft);
}

.site-header__inner {
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--color-ink);
  font-weight: 700;
}

.brand:hover,
.brand:focus-visible {
  color: var(--color-ink);
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(140deg, #14b8a6 0%, #0b6a60 100%);
  box-shadow: var(--shadow-teal-sm);
  position: relative;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.brand__mark svg {
  width: 24px;
  height: 24px;
}

.brand__text {
  display: grid;
  gap: 0.1rem;
}

.brand__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

.brand__subtitle {
  font-size: 0.78rem;
  color: var(--color-muted);
  letter-spacing: 0.01em;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.15rem;
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav a {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 140ms ease, color 140ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--color-primary-tint);
  color: var(--color-primary-strong);
}

.site-header__cta {
  justify-self: end;
}

/* =========================================================
   Hero — lighthearted, airy clinic style
   ========================================================= */
.hero {
  position: relative;
  color: var(--color-ink);
  background:
    radial-gradient(900px 360px at 85% -20%, rgba(13, 148, 136, 0.16), transparent 60%),
    radial-gradient(700px 340px at 0% 100%, rgba(192, 138, 51, 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--color-surface-alt) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(13, 148, 136, 0.18) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 75% 50%, #000 0%, transparent 55%);
  -webkit-mask-image: radial-gradient(ellipse at 75% 50%, #000 0%, transparent 55%);
  opacity: 0.5;
  pointer-events: none;
}

.hero__overlay {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem;
  padding-block: clamp(3rem, 6vw, 5.5rem);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(13, 148, 136, 0.3);
  background: #fff;
  color: var(--color-primary-strong);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-xs);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(13, 148, 136, 0.08); }
}

.hero h1 {
  margin: 1.3rem 0 0.95rem;
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
  color: var(--color-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero__title-accent {
  color: var(--color-primary-strong);
  position: relative;
  white-space: nowrap;
}

.hero__title-accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05em;
  height: 0.32em;
  background: rgba(13, 148, 136, 0.18);
  border-radius: 999px;
  z-index: -1;
}

.hero__lead {
  max-width: 56ch;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.15vw, 1.08rem);
  line-height: 1.65;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.75rem;
}

.hero__trust {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(13, 148, 136, 0.18);
}

.hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-muted);
}

.hero__trust svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero__metrics {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 2rem 0 0;
  padding: 0;
}

.hero__metrics li {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.1rem 1rem;
  box-shadow: var(--shadow-xs);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hero__metrics li:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: var(--shadow-teal-sm);
  transform: translateY(-2px);
}

.hero__metrics strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-primary-strong);
  letter-spacing: -0.02em;
}

.hero__metrics span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.4;
}

/* Hero panel (right side) — clinic card */
.hero__panel {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero__panel::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(140deg, rgba(13, 148, 136, 0.2), rgba(192, 138, 51, 0.08));
  filter: blur(8px);
  pointer-events: none;
}

.hero__visual {
  margin: 0 0 1.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff 0%, var(--color-primary-tint) 100%);
  overflow: hidden;
  position: relative;
}

.hero__visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero__panel-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
}

.hero__panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.hero__panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--color-text);
}

.hero__panel-check {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}

.hero__panel-check svg {
  width: 14px;
  height: 14px;
}

/* =========================================================
   Section scaffolding
   ========================================================= */
.section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.section--alt {
  background:
    radial-gradient(500px 200px at 10% 0%, rgba(13, 148, 136, 0.06), transparent 60%),
    linear-gradient(180deg, var(--color-surface-soft) 0%, #fff 100%);
  border-block: 1px solid var(--color-border-soft);
}

.section__head {
  max-width: 780px;
  margin: 0 auto 2.8rem;
  text-align: center;
}

.section__head--left {
  margin: 0 0 2rem;
  text-align: left;
  max-width: 720px;
}

.section h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section__lead {
  margin-top: 0.85rem;
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-primary);
  margin-bottom: 0.9rem;
  padding: 0.35rem 0.8rem;
  background: var(--color-primary-tint);
  border-radius: var(--radius-pill);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.eyebrow--on-dark {
  color: #a7f3d0;
  background: rgba(167, 243, 208, 0.12);
}

.eyebrow--on-dark::before {
  background: #a7f3d0;
}

/* =========================================================
   Features (About program)
   ========================================================= */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.feature {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-xs);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.feature:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: var(--shadow-teal-sm);
  transform: translateY(-3px);
}

.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--color-primary-tint);
  color: var(--color-primary-strong);
  margin-bottom: 1rem;
  position: relative;
}

.feature__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(13, 148, 136, 0.18);
  pointer-events: none;
}

.feature__icon svg {
  width: 26px;
  height: 26px;
}

.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
  font-weight: 700;
}

.feature p {
  color: var(--color-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

/* =========================================================
   Steps (How to get)
   ========================================================= */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
}

.step {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-xs);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.step:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: var(--shadow-teal-sm);
  transform: translateY(-3px);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(140deg, #14b8a6 0%, #0b6a60 100%);
  box-shadow: var(--shadow-teal-sm);
  margin-bottom: 1rem;
  position: relative;
}

.step__num::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px dashed rgba(13, 148, 136, 0.35);
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.step p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =========================================================
   Card surfaces
   ========================================================= */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  padding: clamp(1.5rem, 2.6vw, 2.5rem);
}

.card--accent {
  background:
    radial-gradient(400px 200px at 100% 0%, var(--color-primary-tint), transparent 60%),
    #fff;
  border-color: var(--color-border);
}

h2 { font-size: 1.34rem; }
h3 { font-size: 1.02rem; }

/* =========================================================
   Help types list
   ========================================================= */
.help-types {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.help-types li {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.3rem 1.3rem 1.2rem 1.7rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.help-types li::before {
  content: "";
  position: absolute;
  left: 0.7rem;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #14b8a6 0%, #0b6a60 100%);
}

.help-types li:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: var(--shadow-teal-sm);
  transform: translateY(-2px);
}

.help-types h3 {
  font-size: 1.08rem;
  color: var(--color-ink);
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.help-types p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* =========================================================
   State messages
   ========================================================= */
.state {
  margin-top: 0.9rem;
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  font-size: 0.93rem;
  line-height: 1.5;
  border: 1px solid transparent;
}

.state--loading,
.state--empty {
  background: var(--color-warning-bg);
  border-color: #fed7aa;
  color: var(--color-warning);
}

.state--error {
  background: var(--color-danger-bg);
  border-color: #fecdd3;
  color: var(--color-danger);
}

.state--success {
  background: var(--color-success-bg);
  border-color: #bbf7d0;
  color: var(--color-success);
}

/* =========================================================
   Telemetry block
   ========================================================= */
.telemetry {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  margin-bottom: 1.6rem;
  background: var(--color-surface-soft);
}

.telemetry__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.telemetry__title {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.telemetry__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-primary-tint);
  color: var(--color-primary-strong);
}

.telemetry__icon svg {
  width: 22px;
  height: 22px;
}

.telemetry__description {
  margin: 0.7rem 0 1rem;
  color: var(--color-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.telemetry--notice {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--color-primary-tint) 70%, transparent) 0%,
    var(--color-surface-soft) 100%);
  border-left: 4px solid var(--color-primary-strong);
}

.telemetry--notice .telemetry__description {
  color: var(--color-text);
  font-size: 0.97rem;
  line-height: 1.7;
}

.telemetry--notice .telemetry__description strong {
  color: var(--color-primary-strong);
}

.telemetry__description--accent {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed color-mix(in srgb, var(--color-primary-strong) 40%, transparent);
  font-weight: 600;
  color: var(--color-primary-strong) !important;
  text-align: center;
}

.context-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.7rem;
}

.context-grid div {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.95rem;
  background: #fff;
}

.context-grid dt {
  color: var(--color-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.context-grid dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-ink);
  word-break: break-word;
}

/* =========================================================
   Form
   ========================================================= */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.field > span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  font: inherit;
  color: var(--color-ink);
  background: #fff;
  padding: 0.85rem 1rem;
  transition: border-color 130ms ease, box-shadow 130ms ease, background 130ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #a0aec0;
}

textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.55;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23566577' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--color-primary);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
  background: #fff;
}

.field--checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
  padding: 0.95rem 1.1rem;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.field--checkbox:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-tint);
}

.field--checkbox input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--color-primary);
}

.field--checkbox span {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text);
  font-weight: 500;
}

.field-error {
  color: var(--color-danger);
  min-height: 1rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.geo-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
  margin: 1.1rem 0 1.2rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(400px 150px at 0% 0%, rgba(13, 148, 136, 0.1), transparent 60%),
    linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 100%);
  border: 1px solid rgba(13, 148, 136, 0.2);
  color: #0b6a60;
  font-size: 0.94rem;
  line-height: 1.55;
}

.geo-hint__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  color: var(--color-primary-strong);
  box-shadow: var(--shadow-xs);
}

.geo-hint__icon svg {
  width: 22px;
  height: 22px;
}

.geo-hint__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.geo-hint__body strong {
  color: #0b3f3a;
  font-weight: 700;
  font-size: 0.98rem;
}

.geo-hint__body span {
  color: #3d615c;
  font-size: 0.9rem;
}

/* =========================================================
   App prompt
   ========================================================= */
.app-prompt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: flex-start;
  margin-top: 1.3rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.3rem;
  background: var(--color-surface-soft);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.app-prompt__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-primary-tint);
  color: var(--color-primary-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.app-prompt__icon svg {
  width: 24px;
  height: 24px;
}

.app-prompt h3 {
  font-size: 1.08rem;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.app-prompt p {
  margin: 0 0 0.85rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.app-prompt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.app-prompt--highlight {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
  background: #fff;
}

/* =========================================================
   Buttons — pill, clinic-style
   ========================================================= */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0 1.35rem;
  min-height: var(--btn-h);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease, transform 140ms ease;
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.005em;
}

.btn:active {
  transform: translateY(1px);
}

.btn--compact {
  --btn-h: 40px;
  padding: 0 1.05rem;
  font-size: 0.92rem;
}

.btn--small {
  --btn-h: 36px;
  padding: 0 0.85rem;
  font-size: 0.86rem;
}

.btn--primary {
  background: linear-gradient(140deg, #14b8a6 0%, #0b6a60 100%);
  color: #fff;
  box-shadow: var(--shadow-teal-sm);
}

.btn--primary:hover {
  background: linear-gradient(140deg, #0f766e 0%, #083f39 100%);
  color: #fff;
  box-shadow: var(--shadow-teal);
  transform: translateY(-1px);
}

.btn--primary:disabled {
  background: #9bb0ad;
  cursor: wait;
  box-shadow: none;
  transform: none;
}

.btn--outline {
  background: #fff;
  color: var(--color-primary-strong);
  border-color: rgba(13, 148, 136, 0.35);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--color-primary-tint);
  color: var(--color-primary-strong);
  border-color: var(--color-primary);
}

/* В тёмной секции — outline на прозрачном фоне */
.section--cta .btn--outline,
.cta-card .btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.section--cta .btn--outline:hover,
.cta-card .btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: #fff;
}

.btn--ghost {
  background: #fff;
  color: var(--color-primary-strong);
  border-color: var(--color-border-strong);
}

.btn--ghost:hover {
  background: var(--color-primary-tint);
  color: var(--color-primary-strong);
  border-color: var(--color-primary);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  display: grid;
  gap: 0.8rem;
  max-width: 900px;
  margin: 0 auto;
}

.faq__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0 1.4rem;
  box-shadow: var(--shadow-xs);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.faq__item[open] {
  border-color: rgba(13, 148, 136, 0.4);
  box-shadow: var(--shadow-teal-sm);
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.2rem 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink);
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq__item summary::after {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary-tint);
  color: var(--color-primary-strong);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230b6a60' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 220ms ease, background-color 220ms ease;
  flex-shrink: 0;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--color-primary);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
}

.faq__item p {
  padding: 0 0 1.3rem;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.97rem;
  line-height: 1.65;
}

.faq__item a {
  color: var(--color-primary-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

/* =========================================================
   Contacts / CTA card — teal gradient вместо navy
   ========================================================= */
.section--cta {
  background:
    radial-gradient(700px 240px at 85% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    radial-gradient(500px 200px at 10% 100%, rgba(167, 243, 208, 0.15), transparent 60%),
    linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section--cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.14) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}

.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  color: #fff;
  padding: clamp(1.8rem, 3vw, 2.8rem) 0;
}

.cta-card h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  font-size: 1.02rem;
  line-height: 1.65;
}

.cta-card__contacts {
  list-style: none;
  margin: 0;
  padding: 1.5rem 1.5rem;
  display: grid;
  gap: 0.95rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.cta-card__contacts li {
  display: grid;
  gap: 0.2rem;
}

.cta-card__label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 700;
}

.cta-card__contacts a {
  color: #fff;
  font-weight: 600;
  font-size: 1.02rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  width: max-content;
  max-width: 100%;
}

.cta-card__contacts a:hover,
.cta-card__contacts a:focus-visible {
  color: #ecfdf5;
  border-bottom-color: #ecfdf5;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  margin-top: auto;
  background: #0a1f26;
  color: rgba(255, 255, 255, 0.9);
  padding-block: 3rem 1.6rem;
  border-top: 1px solid rgba(167, 243, 208, 0.12);
}

.site-footer__inner {
  display: grid;
  gap: 1.8rem;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.site-footer__mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(20, 184, 166, 0.25), rgba(15, 118, 110, 0.3));
  border: 1px solid rgba(167, 243, 208, 0.22);
  color: #a7f3d0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-footer__mark svg {
  width: 26px;
  height: 26px;
}

.site-footer__org {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
}

.site-footer__tagline {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.site-footer__section h3 {
  margin: 0 0 0.9rem;
  font-size: 0.82rem;
  color: #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.88);
}

.site-footer__list li {
  display: grid;
  gap: 0.15rem;
}

.site-footer__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
}

.site-footer__list a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.22);
  padding-bottom: 1px;
  width: max-content;
  max-width: 100%;
  transition: color 130ms ease, border-color 130ms ease;
}

.site-footer__list a:hover,
.site-footer__list a:focus-visible {
  color: #a7f3d0;
  border-bottom-color: #a7f3d0;
}

.site-footer__address {
  margin: 0;
  font-style: normal;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__copy,
.site-footer__legal {
  margin: 0;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav {
    order: 3;
    grid-column: 1 / -1;
  }

  .site-nav ul {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 4px;
  }

  .site-header__cta {
    grid-column: 3;
    grid-row: 1;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 960px) {
  .cta-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 68px;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
    gap: 0.7rem;
  }

  .brand__subtitle {
    display: none;
  }

  .site-header__cta {
    grid-row: 1;
    grid-column: 2;
  }

  .site-nav {
    order: 3;
    grid-column: 1 / -1;
  }

  .hero__metrics {
    grid-template-columns: 1fr;
  }

  .hero__trust {
    gap: 0.8rem 1.2rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-prompt {
    grid-template-columns: 1fr;
  }

  .app-prompt__icon {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }

  .hero__ctas .btn,
  .actions .btn,
  .app-prompt__actions .btn {
    width: 100%;
  }

  .site-header__cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
