/* DentJob: лендинг и документы. Мобильная версия первична (390 px), десктоп от 900 px.
   Системные шрифты, без внешних библиотек. Контраст текста и кнопок не ниже AA. */

:root {
  --ink: #14262c;
  --muted: #3f555c;
  --bg: #ffffff;
  --tint: #eef5f5;
  --line: #cfdedf;
  --brand: #0a5c61;
  --brand-dark: #07454a;
  --accent-bg: #0a5c61;
  --on-brand: #ffffff;
  --focus: #c25e00;
  --ok: #1d6b2f;
  --err: #a1261b;
  --radius: 14px;
  --wrap: 1200px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 6.4vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 4.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px;
}
.skip:focus { top: 8px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 2px solid var(--brand);
  background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: var(--on-brand); }
.btn--small { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.btn--large { min-height: 56px; font-size: 1.05rem; width: 100%; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--tint); color: var(--brand-dark); }
.btn--light { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn--light:hover { background: var(--tint); border-color: var(--tint); color: var(--brand-dark); }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- шапка ---------- */
.header { border-bottom: 1px solid var(--line); background: #fff; }
.header__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.header__nav { display: flex; align-items: center; gap: 12px; }
.header__link { font-weight: 600; }
/* на узком экране главная кнопка уже в первом экране: в шапке остаётся только «Клиникам» */
.header__nav .btn { display: none; }

/* ---------- первый экран ---------- */
.hero { padding: 32px 0 40px; }
.hero__grid { display: grid; gap: 32px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 38em; }
.trust { margin-top: 14px; font-size: .9rem; color: var(--muted); }

.phone { margin: 0 auto; width: min(100%, 320px); }
.phone__screen {
  border: 10px solid var(--ink); border-radius: 34px; background: #e4eef0; padding: 14px 12px 22px;
  min-height: 300px;
}
.phone__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.phone__avatar { font-weight: 700; font-size: .95rem; }
.phone__badge {
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: #fff; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px;
}
.msg { background: #fff; border-radius: 14px 14px 14px 4px; padding: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.msg p { margin: 0 0 6px; }
.msg__title { font-weight: 700; }
.msg__line { color: var(--ink); }
.msg__why { font-size: .9rem; color: var(--muted); }
.msg__btn {
  display: block; margin-top: 10px; text-align: center; font-weight: 600; color: var(--brand-dark);
  border-top: 1px solid var(--line); padding-top: 10px;
}
.phone__caption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* ---------- секции ---------- */
.section { padding: 44px 0; }
.section--tint { background: var(--tint); }
.section--accent { background: var(--accent-bg); color: var(--on-brand); }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.card p { color: var(--muted); margin: 0; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; position: relative; padding: 16px 16px 16px 64px;
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}

.launch { max-width: 760px; }
.launch__actions { display: grid; gap: 12px; margin-top: 8px; }

.clinics { display: grid; gap: 24px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field input, .field select {
  font: inherit; color: var(--ink); background: #fff; min-height: 48px; padding: 10px 12px;
  border: 1.5px solid #7d9196; border-radius: 10px; width: 100%;
}
.field--hidden { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.form__status { margin: 0; font-weight: 600; }
.form__status:empty { display: none; }
.form__status--ok { color: var(--ok); }
.form__status--err { color: var(--err); }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; font-weight: 600; padding: 12px 0; min-height: 48px; list-style-position: outside;
}
.faq details p { color: var(--muted); }

.final { text-align: center; }
.final h2 { color: #fff; }

/* ---------- подвал ---------- */
.footer { padding: 36px 0 44px; background: #0f1e22; color: #d6e2e4; font-size: .95rem; }
.footer a { color: #ffffff; }
.footer__grid { display: grid; gap: 24px; }
.footer__title { font-weight: 700; color: #fff; margin-bottom: .4em; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.logo--footer { color: #fff; margin-bottom: .3em; }

/* ---------- документы ---------- */
.doc { max-width: 820px; padding-top: 28px; padding-bottom: 48px; }
.doc h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
.doc h2 { font-size: 1.3rem; margin-top: 1.6em; }
.doc li { margin-bottom: .4em; }

/* ---------- десктоп ---------- */
@media (min-width: 640px) {
  .btn--large { width: auto; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .launch__actions { grid-auto-flow: column; justify-content: start; }
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
@media (min-width: 900px) {
  body { font-size: 18px; }
  .header__nav .btn { display: inline-flex; }
  .hero { padding: 64px 0 72px; }
  .hero__grid { grid-template-columns: 1.25fr .75fr; align-items: center; gap: 56px; }
  .section { padding: 72px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 64px 20px 20px; }
  .steps li::before { top: 20px; transform: none; left: 20px; }
  .clinics { grid-template-columns: 1fr 1fr; align-items: start; gap: 48px; }
}
