/* Ветклиника «Добрый доктор» — черновой стиль первой версии лендинга */

:root {
  --green: #2f8f6b;
  --green-dark: #226b4f;
  --ink: #1f2a28;
  --muted-bg: #f2f7f4;
  --line: #dfe7e3;
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  background: #fff;
}

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

a { color: inherit; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn--ghost:hover { background: var(--muted-bg); }
.btn--lg { padding: 14px 24px; font-size: 1.05rem; }

/* ---------- Телефон ---------- */
.phone {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.2;
}
.phone__label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--green-dark);
}
.phone__number { font-weight: 700; font-size: 1.05rem; }
.phone--inline { margin: 4px 0 16px; }

/* ---------- Шапка ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--green-dark);
}
.brand__mark { font-size: 1.3rem; }
.nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a:hover { color: var(--green-dark); }
.topbar__contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ---------- Заглушки фото ---------- */
.photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(45deg, #e7efeb, #e7efeb 12px, #eef4f1 12px, #eef4f1 24px);
  color: var(--green-dark);
  font-weight: 600;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.photo--hero { min-height: 320px; }
.photo--card { height: 150px; margin-bottom: 12px; }
.photo--wide { min-height: 260px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0; background: var(--muted-bg); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { font-size: 2.2rem; margin: 0 0 16px; line-height: 1.15; }
.hero__lead { font-size: 1.1rem; margin: 0 0 24px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Секции ---------- */
.section { padding: 56px 0; }
.section--muted { background: var(--muted-bg); }
.section__title { font-size: 1.8rem; margin: 0 0 8px; }
.section__subtitle { margin: 0 0 28px; color: #4a5854; max-width: 640px; }
.section__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.section__split--reverse .photo--wide { order: 2; }

/* ---------- Карточки направлений ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.card p { margin: 0; color: #4a5854; }

/* ---------- Цены ---------- */
.prices {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.prices th, .prices td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.prices th { background: var(--green); color: #fff; }
.prices tbody tr:last-child td { border-bottom: none; }
.prices td:last-child, .prices th:last-child { text-align: right; white-space: nowrap; }
.prices__note { margin: 12px 0 0; color: #6b7873; font-size: .9rem; }

/* ---------- Списки ---------- */
.list { margin: 0 0 20px; padding-left: 20px; }
.list li { margin-bottom: 6px; }

/* ---------- Форма / CTA ---------- */
.section--cta { background: var(--green); color: #fff; }
.section--cta .section__title,
.section--cta .section__subtitle { color: #fff; }
.form {
  background: #fff;
  color: var(--ink);
  padding: 24px;
  border-radius: var(--radius);
  max-width: 720px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-weight: 500; }
.form__field input,
.form__field textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
.form__field input:focus,
.form__field textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.form__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.form__note { margin: 14px 0 0; color: #6b7873; font-size: .9rem; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: #dfe7e3; padding: 40px 0 24px; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.brand--footer { color: #fff; }
.footer__addr { margin: 8px 0 0; color: #aab8b3; }
.footer__contacts { display: flex; align-items: center; gap: 16px; }
.footer .phone__label { color: #9fd3bf; }
.footer .phone__number { color: #fff; }
.footer__copy { margin: 28px auto 0; color: #8a9893; font-size: .85rem; }

/* ---------- Адаптив ---------- */
@media (max-width: 880px) {
  .hero__inner,
  .section__split,
  .cards { grid-template-columns: 1fr; }
  .section__split--reverse .photo--wide { order: 0; }
  .nav { width: 100%; margin-left: 0; order: 3; }
  .form__row { grid-template-columns: 1fr; }
}
