/* Основные переменные */
:root {
  --color-bg: #f8f8f9;
  --color-primary: #1e7b7b;
  --color-primary-dark: #135050;
  --color-accent: #e5b85c;
  --color-text: #222222;
  --color-muted: #777777;
  --color-white: #ffffff;

  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.06);
  --radius-lg: 18px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

main {
  min-height: 60vh;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(248, 248, 249, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 8px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Marck Script', cursive;
  font-weight: 400;
  font-size: 32px;
  letter-spacing: 0.01em;
  color: var(--color-text);
  line-height: 1.1;
}

.logo-subtitle {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 2px;
}

.header-phone {
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  color: var(--color-text);
}

.header-nav {
  padding: 0 0 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.nav-links > a {
  padding: 6px 12px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
  color: var(--color-muted);
}

.nav-links > a:hover,
.nav-links > a.is-active {
  background-color: rgba(30, 123, 123, 0.07);
  color: var(--color-primary-dark);
}

.nav-links > a.nav-service {
  color: var(--color-text);
  font-weight: 500;
}

.nav-links > a.nav-service:hover,
.nav-links > a.nav-service.is-active {
  background-color: rgba(30, 123, 123, 0.08);
  color: var(--color-primary-dark);
}

.nav-sep {
  width: 1px;
  height: 16px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0 4px;
  flex-shrink: 0;
}

.btn,
button {
  border: none;
  cursor: pointer;
  font: inherit;
}

.btn-primary {
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(19, 80, 80, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(19, 80, 80, 0.25);
}

.btn-outline {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(30, 123, 123, 0.25);
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-primary-dark);
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-outline:hover {
  background-color: rgba(30, 123, 123, 0.05);
  border-color: var(--color-primary);
}

/* Hero carousel */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  position: relative;
  min-width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 25, 30, 0.82) 0%,
    rgba(10, 25, 30, 0.55) 60%,
    rgba(10, 25, 30, 0.3) 100%
  );
  z-index: 1;
}

.carousel-overlay {
  position: relative;
  z-index: 2;
  padding: 72px 0 56px;
}

.hero-inner {
  max-width: 680px;
  width: 100%;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #fff;
}

.hero-highlight {
  color: #5ed9d1;
}

.hero-text {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-actions .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-actions .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.carousel-dots {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.25s ease, width 0.25s ease;
}

.carousel-dot.is-active {
  width: 28px;
  background: #fff;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 16px;
}

/* Features strip */
.features-strip {
  padding: 0 0 48px;
}

.features-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.feature-item strong {
  font-size: 14px;
  color: var(--color-text);
}

.feature-item span {
  color: var(--color-muted);
}

/* Блок преимуществ и услуг */
.section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}

.section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}

.section-title {
  font-size: 26px;
  letter-spacing: -0.01em;
}

.section-description {
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 620px;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 22px 20px 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.card-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.card-text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-muted);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--color-primary-dark);
}

.advantages-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.advantage-item {
  display: flex;
  gap: 10px;
  font-size: 14px;
}

.advantage-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(30, 123, 123, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.advantage-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.advantage-text {
  color: var(--color-muted);
}

/* CTA */
.cta {
  margin: 0 0 48px;
}

.cta-box {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: 22px;
  padding: 32px 28px;
  color: var(--color-white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.cta-text h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.cta-text p {
  margin: 0;
  font-size: 15px;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-cta-secondary {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  color: var(--color-white);
  font-weight: 500;
}

/* Подвал */
.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #f1f2f4;
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 18px 0;
  font-size: 13px;
  color: var(--color-muted);
  justify-content: space-between;
}

.footer-column {
  min-width: 180px;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: #555;
}

.footer-links a {
  display: block;
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  padding: 10px 0 14px;
  font-size: 12px;
  color: var(--color-muted);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Общий контент страниц направлений */
.page-hero {
  padding: 26px 0 18px;
}

.breadcrumbs {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.breadcrumbs a {
  color: var(--color-muted);
}

.page-title {
  margin: 0 0 6px;
  font-size: 24px;
}

.page-subtitle {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--color-muted);
  max-width: 640px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 26px;
  margin-bottom: 24px;
}

.content-block {
  background: var(--color-white);
  padding: 16px 16px 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.content-block h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}

.content-block p {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--color-muted);
}

.content-block ul {
  padding-left: 18px;
  margin: 6px 0;
}

.content-block li {
  margin-bottom: 4px;
  font-size: 14px;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.side-widget {
  background: var(--color-white);
  padding: 14px 14px 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
}

.side-widget h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(30, 123, 123, 0.06);
  font-size: 12px;
}

.page-cta {
  margin-bottom: 26px;
}

.page-cta-box {
  background: rgba(30, 123, 123, 0.06);
  border-radius: 16px;
  padding: 14px 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.page-cta-box strong {
  color: var(--color-primary-dark);
}

/* Формы */
.form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.field label {
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 8px 10px;
  font: inherit;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(30, 123, 123, 0.25);
  border-color: var(--color-primary);
}

.form-hint {
  font-size: 12px;
  color: var(--color-muted);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.form-message {
  font-size: 13px;
}

.form-message--success {
  color: #1a7f4b;
}

.form-message--error {
  color: #b3261e;
}

/* Контакты */
.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
  gap: 24px;
}

.contacts-list {
  font-size: 14px;
}

.contacts-list dt {
  font-weight: 600;
  margin-top: 10px;
}

.contacts-list dd {
  margin: 2px 0 0;
  color: var(--color-muted);
}

.map-embed iframe {
  border: 0;
  width: 100%;
  height: 320px;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

/* Врачи */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.doctor-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 14px 14px 16px;
}

.doctor-photo {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5f5f5, #e2e2e2);
  margin-bottom: 10px;
}

.doctor-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.doctor-role {
  font-size: 13px;
  color: var(--color-primary-dark);
  margin-bottom: 4px;
}

.doctor-exp {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.doctor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 11px;
}

.doctor-tag {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(30, 123, 123, 0.06);
}

/* Цены */
.prices-category {
  margin-bottom: 20px;
}

.prices-category h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.price-table th,
.price-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.price-table th {
  text-align: left;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.02);
}

.price-table td:last-child {
  white-space: nowrap;
  font-weight: 600;
}

.prices-note {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 6px;
}

/* Блог */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 14px 14px 18px;
  box-shadow: var(--shadow-soft);
}

.blog-card h2 {
  margin: 0 0 6px;
  font-size: 16px;
}

.blog-card p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--color-muted);
}

.blog-meta {
  font-size: 12px;
  color: var(--color-muted);
}

.article {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 18px 16px 22px;
}

.article h1 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 24px;
}

.article-meta {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 14px;
}

.article p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0 0 10px;
}

.article ul {
  padding-left: 18px;
}

.article li {
  margin-bottom: 6px;
}

/* Mobile bottom bar (phone + booking) */
.mobile-bottom-bar {
  display: none;
}

/* Menu toggle default hidden on desktop */
.menu-toggle {
  display: none;
}

/* ========== Tablet (<=960px) ========== */
@media (max-width: 960px) {
  .two-column,
  .contacts-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-cards {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .features-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== Mobile nav (<=768px) ========== */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  /* Header */
  .header-top {
    padding: 10px 0 6px;
    gap: 10px;
  }

  .header-phone {
    display: none;
  }

  .header-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 0;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: var(--color-white);
  }

  .menu-toggle::before {
    content: "";
    width: 20px;
    height: 2px;
    background: var(--color-text);
    box-shadow: 0 6px 0 var(--color-text), 0 -6px 0 var(--color-text);
    border-radius: 1px;
  }

  .site-header.is-menu-open .menu-toggle::before {
    background: transparent;
    box-shadow: none;
  }

  .site-header.is-menu-open .header-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    padding: 80px 20px 20px;
    background: rgba(248, 248, 249, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-header.is-menu-open .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header.is-menu-open .nav-links > a {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 17px;
    color: var(--color-text);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .site-header.is-menu-open .nav-sep {
    display: none;
  }

  /* Logo */
  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .logo-title {
    font-size: 20px;
  }

  .logo-subtitle {
    font-size: 10px;
  }

  /* Hero carousel */
  .carousel-overlay {
    padding: 40px 0 44px;
  }

  .carousel-dots {
    padding: 12px 0;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-text {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-lg {
    text-align: center;
    padding: 14px 20px;
  }

  /* Features strip */
  .features-strip {
    padding: 0 0 32px;
  }

  .features-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0;
  }

  /* Sections */
  .section {
    padding: 32px 0;
  }

  .section-title {
    font-size: 22px;
  }

  /* Cards */
  .grid-cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card {
    padding: 18px 16px;
    border-radius: 14px;
  }

  .card:hover {
    transform: none;
  }

  /* CTA */
  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    border-radius: 16px;
  }

  .cta-text h2 {
    font-size: 20px;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-actions .btn-primary,
  .cta-actions .btn-cta-secondary {
    width: 100%;
    text-align: center;
    padding: 14px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
  }

  .footer-column {
    min-width: 0;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  /* Page content */
  .page-title {
    font-size: 22px;
  }

  .content-block {
    padding: 16px;
    border-radius: 14px;
  }

  .side-widget {
    padding: 14px;
    border-radius: 14px;
  }

  .page-cta-box {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  /* Doctors */
  .doctors-grid {
    grid-template-columns: 1fr;
  }

  /* Prices */
  .price-table {
    font-size: 13px;
  }

  .price-table th,
  .price-table td {
    padding: 8px 6px;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Contact map */
  .map-embed iframe {
    height: 240px;
    border-radius: 14px;
  }

  /* Forms */
  .form-row {
    grid-template-columns: 1fr;
  }

  .field input,
  .field select,
  .field textarea {
    padding: 12px 14px;
    font-size: 16px;
  }

  /* Mobile bottom bar */
  .mobile-bottom-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 10px 16px;
    gap: 10px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }

  .mobile-bottom-bar a {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
  }

  .mobile-bottom-bar .btn-call {
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--color-text);
  }

  .mobile-bottom-bar .btn-book {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-white);
  }

  .site-footer {
    padding-bottom: 80px;
  }
}

/* ========== Small phones (<=380px) ========== */
@media (max-width: 380px) {
  .hero-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .cta-text h2 {
    font-size: 18px;
  }
}
