/* Ист Клиника — сайт клиники в Черёмушках (ООО «Азбука Здоровья») */

:root {
  --brand: #2d7ff9;
  --brand-cyan: #01b3ff;
  --brand-dark: #1e63d0;
  --text: #262633;
  --muted: #666e81;
  --muted-2: #878fa2;
  --line: #e4e7ef;
  --bg: #ffffff;
  --bg-soft: #f6f7fa;
  --radius: 16px;
  --maxw: 1170px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Roboto Flex', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

img { max-width: 100%; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 15px;
  padding: 13px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease;
}
.btn:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }
.btn--ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--bg-soft); color: var(--brand); }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.site-header__logo { display: inline-flex; }
.site-header__logo img { width: 210px; height: 28px; display: block; }
.site-header__contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}
.phone-block { text-align: right; line-height: 1.25; }
.phone-block a {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}
.phone-block span { display: block; color: var(--muted); font-size: 13px; }

.site-nav {
  border-top: 1px solid var(--line);
}
.site-nav__inner {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 6px 0;
}
.site-nav a {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 10px;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--brand); text-decoration: none; }
.site-nav a.is-active { color: var(--brand); }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 40px;
  text-align: center;
}
.hero h1 {
  font-size: 48px;
  line-height: 1.1;
  margin: 0 auto 16px;
  max-width: 760px;
  font-weight: 700;
}
.hero p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 auto 28px;
  max-width: 620px;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section--soft { background: var(--bg-soft); }
.section h2 {
  font-size: 32px;
  margin: 0 0 8px;
  scroll-margin-top: 120px;
  font-weight: 700;
}
.section > .container > .section__lead {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 28px;
  max-width: 720px;
}

/* Advantages / cards grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.section--soft .card { background: #fff; }
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(45, 127, 249, .1);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Price table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-table th,
.price-table td {
  text-align: left;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.price-table thead th {
  color: var(--muted);
  font-weight: 600;
  background: var(--bg-soft);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table td:last-child,
.price-table th:last-child { text-align: right; white-space: nowrap; font-weight: 600; }

/* Legal / article pages */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: 34px; margin: 0 0 8px; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.breadcrumbs a { color: var(--muted); }
.article { padding: 24px 0 56px; max-width: 820px; }
.article h2 { font-size: 22px; margin: 32px 0 12px; }
.article h3 { font-size: 18px; margin: 24px 0 8px; }
.article p { margin: 0 0 14px; }
.article ol, .article ul { margin: 0 0 14px; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.muted { color: var(--muted); }

/* Requisites */
.requisites {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 12px 28px;
  font-size: 16px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 820px;
}
.requisites dt { color: var(--muted); }
.requisites dd { margin: 0; font-weight: 500; }

.contacts-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.contacts-grid .muted { font-size: 14px; }
.contacts-grid a, .contacts-grid strong { font-size: 18px; font-weight: 600; }

/* Payment cards row */
.pay-cards {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 40px 0 32px;
  margin-top: 24px;
}
.site-footer__pay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.site-footer__pay-text { font-size: 16px; font-weight: 600; }
.site-footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.site-footer__links a { color: var(--muted); font-size: 15px; }
.site-footer__legal {
  padding-top: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.site-footer__legal p { margin: 0 0 8px; }
.site-footer__warn { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.age-badge {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--muted); border-radius: 40px;
  color: var(--muted); font-weight: 600; font-size: 15px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero h1 { font-size: 34px; }
  .section h2 { font-size: 26px; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  body { font-size: 15px; }
  .hero { padding: 40px 0 28px; }
  .hero h1 { font-size: 28px; }
  .site-header__top { flex-wrap: wrap; }
  .phone-block a { font-size: 16px; }
  .requisites { grid-template-columns: 1fr; gap: 4px 0; padding: 20px; }
  .requisites dt { margin-top: 14px; }
  .requisites dt:first-child { margin-top: 0; }
  .price-table th, .price-table td { padding: 12px 14px; }
  .site-footer__pay { flex-direction: column; align-items: flex-start; }
}
