/* admo-accred.ru — дизайн-система «Клиническое доверие + конверсия»
   Синий = бренд/доверие/заголовки. Зелёный = ТОЛЬКО основная CTA. */
:root {
  color-scheme: light;
  --brand: #1a4480;
  --brand-700: #14366a;
  --brand-050: #eef3fb;
  --accent: #1f9d55;
  --accent-700: #167a41;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #1a1f36;
  --muted: #5a6478;
  --line: #e1e5eb;
  --warm-bg: #fff8e6;
  --warm-tx: #8a5a00;
  --guard-bg: #e0f4e8;
  --guard-tx: #166434;
  --star: #f5a623;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(26, 31, 54, .06), 0 10px 30px rgba(26, 31, 54, .07);
  --shadow-sm: 0 1px 2px rgba(26, 31, 54, .06), 0 4px 14px rgba(26, 31, 54, .05);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-700); }

img { max-width: 100%; }

/* ───────── Header (sticky) ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  color: var(--brand);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.01em;
  text-decoration: none;
}

.site-header nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-header nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.site-header nav a:hover { color: var(--brand); }

.header-phone {
  color: var(--brand);
  font-weight: 800;
  white-space: nowrap;
  text-decoration: none;
  padding: 8px 14px;
  border: 1.5px solid var(--brand);
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.header-phone:hover { background: var(--brand); color: #fff; }

/* ───────── Layout / sections ───────── */
main {
  width: min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.page-hero { padding: 56px 0 16px; }
.scaffold-hero { padding: 48px 0; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-700);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  color: var(--brand);
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.02em;
}

h2 {
  margin: 0 0 18px;
  color: var(--brand);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.01em;
}

h3 { font-size: 19px; font-weight: 700; color: var(--text); }

.hero-intro {
  max-width: 760px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.5;
}

/* ───────── Buttons ───────── */
.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(31, 157, 85, .28);
  transition: transform .12s, background .15s, box-shadow .15s;
}
.button:hover { background: var(--accent-700); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(31, 157, 85, .34); }
.button:active { transform: translateY(0); }

.button-secondary {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand);
  box-shadow: none;
}
.button-secondary:hover { background: var(--brand-050); color: var(--brand-700); box-shadow: none; }

.cta-note {
  margin: 14px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

/* ───────── Notes / urgency ───────── */
.urgency-note {
  max-width: 760px;
  margin: 20px 0 0;
  padding: 16px 18px;
  background: var(--warm-bg);
  color: var(--warm-tx);
  border: 1px solid #f3e3b3;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.section-note { max-width: 760px; margin: 16px 0 0; color: var(--muted); }

/* ───────── Cards / sections ───────── */
.content-section {
  margin-top: 40px;
  padding: clamp(22px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.content-section > :last-child { margin-bottom: 0; }
.content-section p { color: var(--muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.info-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.info-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9d4e6; }
.info-card h3 { margin: 0 0 8px; color: var(--brand); font-size: 18px; }
.info-card p { color: var(--muted); margin: 0; }
/* clickable cards (links inside) */
.info-card a { font-weight: 700; }

.license-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  gap: 28px;
  align-items: start;
}
.license-image {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.text-link { font-weight: 700; color: var(--brand); }

.faq-list { display: grid; gap: 10px; margin: 0; padding-left: 20px; }
.faq-list h3 { margin: 0; font-size: 17px; color: var(--brand); }

/* ───────── Forms ───────── */
.lead-section { background: linear-gradient(180deg, var(--brand-050), var(--surface)); }
.lead-section form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
label { display: grid; gap: 6px; color: var(--text); font-weight: 600; font-size: 15px; }
input, select, textarea {
  min-height: 50px;
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26, 68, 128, .12);
}
.full-width { grid-column: 1 / -1; }
textarea { resize: vertical; }
.checkbox { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--muted); }
.checkbox input { min-height: auto; }
.form-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 14px; }

/* ───────── Quiz ───────── */
.quiz-form { display: grid; gap: 18px; }
.quiz-step {
  margin: 0;
  padding: clamp(20px, 3vw, 30px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.quiz-step[hidden] { display: none; }
.quiz-step legend { padding: 0; color: var(--brand); font-size: 22px; font-weight: 800; }
.quiz-step legend span { color: var(--muted); font-size: 15px; font-weight: 600; }
.quiz-options { display: grid; gap: 12px; margin-top: 16px; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.choice:hover { border-color: var(--brand); background: var(--brand-050); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--guard-bg); box-shadow: 0 0 0 2px rgba(31, 157, 85, .25); }
.choice input { min-height: auto; margin-top: 3px; accent-color: var(--accent); }
.quiz-actions { display: flex; gap: 12px; margin-top: 20px; }

/* ───────── Footer ───────── */
.site-footer {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(240px, 1fr);
  gap: 28px;
  align-items: flex-start;
  padding: 40px clamp(16px, 4vw, 48px);
  background: var(--brand);
  color: #cdd8ec;
}
.site-footer a { color: #fff; }
.footer-legal { display: grid; gap: 8px; }
.footer-legal p { margin: 0; color: #b9c6df; font-size: 14px; }
.footer-legal strong { color: #fff; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer nav a { color: #cdd8ec; text-decoration: none; font-size: 14px; }
.site-footer nav a:hover { color: #fff; }

/* ───────── Misc ───────── */
.route-panel, .not-found {
  margin-top: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.not-found { max-width: 760px; margin: 48px auto; }
.not-found ul { display: grid; gap: 12px; list-style: none; margin: 28px 0 0; padding: 0; }
.not-found a {
  display: flex; align-items: center; min-height: 52px;
  padding: 14px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text); font-weight: 700; text-decoration: none;
}
.not-found a:hover { border-color: var(--brand); background: var(--brand-050); }

dl { display: grid; gap: 12px; margin: 0; }
dl div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
ul { margin: 0; padding-left: 20px; }

:focus-visible { outline: 3px solid rgba(26, 68, 128, .45); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* ───────── Mobile ───────── */
@media (max-width: 760px) {
  .site-header { flex-wrap: wrap; gap: 10px 16px; padding: 12px 16px; }
  .site-header nav { order: 3; width: 100%; gap: 14px; font-size: 14px; }
  .site-footer, .license-layout, dl div, .lead-section form { grid-template-columns: 1fr; }
  .button { width: 100%; }
  .quiz-actions .button { flex: 1; }
  label { margin-top: 4px; }
}
