/* ============================================================
   Стоматология «Ак Тиш» — стили
   Мобильный дизайн в приоритете. Меняйте цвета в блоке :root.
   ============================================================ */

:root {
  --brand:        #0f766e;   /* основной цвет (кнопки, акценты) */
  --brand-dark:   #0b5c55;
  --brand-soft:   #e6f4f2;   /* светлый фон-подложка */
  --wa:           #25d366;   /* цвет WhatsApp */
  --wa-dark:      #1da851;
  --ink:          #1f2933;   /* основной текст */
  --ink-soft:     #52616b;   /* второстепенный текст */
  --bg:           #ffffff;
  --tint:         #f6f8f8;   /* фон чередующихся секций */
  --line:         #e2e8e7;
  --radius:       16px;
  --shadow:       0 6px 24px rgba(15, 118, 110, .10);
  --maxw:         1100px;
  --font:         system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: 80px;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-dark); }

h1, h2, h3 { line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin-bottom: .5rem; }
h3 { font-size: 1.15rem; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 760px; }

.section { padding: 56px 0; }
.section--tint { background: var(--tint); }
.section__sub { color: var(--ink-soft); margin-bottom: 1.5rem; max-width: 60ch; }

/* ---------- Доступность ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .06s ease, background-color .15s ease, box-shadow .15s ease;
  line-height: 1.1;
}
.btn:active { transform: translateY(1px); }
.btn--lg { padding: 15px 26px; font-size: 1.05rem; }
.btn--block { width: 100%; }

.btn--wa { background: var(--wa); color: #06331d; }
.btn--wa:hover { background: var(--wa-dark); color: #06331d; }

.btn--ghost { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand-soft); }

.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { background: #f0faf8; }

.btn--map { background: var(--brand-soft); color: var(--brand-dark); }
.btn--map:hover { background: #d8ece9; }

.ic { width: 20px; height: 20px; fill: currentColor; flex: none; }

.link-wa {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  color: var(--wa-dark);
  text-decoration: none;
}
.link-wa:hover { text-decoration: underline; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  flex: none;
}
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
}

.nav {
  display: none;
  gap: 20px;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .98rem;
}
.nav a:hover { color: var(--brand-dark); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button {
  border: 0;
  background: #fff;
  padding: 7px 11px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}
.lang-switch button.is-active { background: var(--brand); color: #fff; }

.header__actions .btn--wa { display: none; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Мобильное меню */
.nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 20px 18px;
  gap: 4px;
  box-shadow: var(--shadow);
}
.nav.is-open a { padding: 10px 0; border-bottom: 1px solid var(--line); }
.nav.is-open a:last-child { border-bottom: 0; }

/* ---------- Первый экран ---------- */
.hero {
  background: linear-gradient(180deg, var(--brand-soft), #fff);
  padding: 32px 0 48px;
}
.hero__inner { display: grid; gap: 28px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 10px;
}
.hero h1 { margin-bottom: 14px; }
.lead { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 22px; max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero__trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.hero__trust li {
  position: relative;
  padding-left: 22px;
  font-size: .92rem;
  color: var(--ink-soft);
}
.hero__trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}
.hero__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

/* ---------- Сетки ---------- */
.grid { display: grid; gap: 16px; }
.grid--3, .grid--4 { grid-template-columns: 1fr; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.service img { margin-bottom: 12px; }
.service h3 { margin-bottom: 6px; }
.service p { color: var(--ink-soft); font-size: .96rem; }
.price {
  margin-top: 12px;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
}
.price span { color: var(--ink-soft); font-weight: 500; font-size: .92rem; }

/* Преимущества */
.feature { padding: 6px 0; }
.feature__ic {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
  margin-bottom: 10px;
}
.feature p { color: var(--ink-soft); font-size: .96rem; }

/* Шаги */
.steps {
  list-style: none;
  display: grid;
  gap: 16px;
  counter-reset: none;
}
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 20px 64px;
  position: relative;
}
.step__num {
  position: absolute;
  left: 18px;
  top: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.step p { color: var(--ink-soft); font-size: .96rem; }

/* Отзывы */
.notice {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: .92rem;
  margin-bottom: 18px;
}
.review blockquote { font-size: 1rem; margin-bottom: 10px; }
.review figcaption { color: var(--ink-soft); font-size: .88rem; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px 16px;
}
.faq__item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--brand);
  flex: none;
  line-height: 1;
}
.faq__item[open] summary::after { content: "–"; }
.faq__a { padding: 0 0 14px; color: var(--ink-soft); }

/* Контакты */
.contacts { display: grid; gap: 28px; }
.contacts__col h3 { margin: 16px 0 4px; }
.contacts__col h3:first-child { margin-top: 0; }
.contacts__cta { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* Форма */
.lead-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.lead-form h3 { margin-bottom: 6px; }
.lead-form__hint { color: var(--ink-soft); font-size: .9rem; margin-bottom: 16px; }
.lead-form label { display: block; margin-bottom: 14px; }
.lead-form label span { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}
.lead-form input:focus,
.lead-form textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.lead-form input.invalid,
.lead-form textarea.invalid { border-color: #dc2626; box-shadow: 0 0 0 3px #fee2e2; }
.form-status {
  margin-top: 12px;
  font-size: .95rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.ok { color: var(--wa-dark); }
.form-status.err { color: #dc2626; }
.lead-form__privacy { margin-top: 12px; font-size: .8rem; color: var(--ink-soft); }

/* Финальный призыв */
.cta-final {
  background: var(--brand);
  color: #fff;
  padding: 52px 0;
  text-align: center;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: #d6f0ec; margin: 8px 0 22px; }

/* Подвал */
.site-footer {
  background: #0b1f1d;
  color: #b8c9c6;
  padding: 26px 0;
  font-size: .9rem;
}
.footer__inner { display: grid; gap: 6px; }
.footer__mini { color: #7f9793; font-size: .82rem; }

/* Липкая панель на телефоне */
.mobilebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: flex;
  gap: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.mobilebar__btn {
  flex: 1;
  text-align: center;
  padding: 13px 8px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.mobilebar__btn--wa { background: var(--wa); color: #06331d; }

body { padding-bottom: 68px; } /* место под липкую панель */

/* ============================================================
   Планшет / десктоп
   ============================================================ */
@media (min-width: 700px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: 1fr 1fr; align-items: start; }
  .hero__trust { gap: 10px 24px; }
}

@media (min-width: 960px) {
  .section { padding: 72px 0; }
  .nav { display: flex; margin-left: auto; }
  .header__actions { margin-left: 20px; }
  .nav-toggle { display: none; }
  .header__actions .btn--wa { display: inline-flex; }
  .lang-switch { order: 2; }

  .hero { padding: 56px 0 64px; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }

  .mobilebar { display: none; }
  body { padding-bottom: 0; }
}

/* Печать / очень широкие экраны не требуют доработок */
