/* ====== Dental Site — публичный сайт стоматологии ====== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --accent: #06b6d4;
  --text: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(15, 23, 42, 0.15);
  --maxw: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    'Manrope',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 800;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.narrow {
  max-width: 760px;
}
.center {
  text-align: center;
}
.muted {
  color: var(--muted);
  font-weight: 400;
}
.lead {
  font-size: 1.2rem;
  color: var(--text);
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: 0.18s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-sm {
  padding: 7px 16px;
  font-size: 0.9rem;
}
.btn-lg {
  padding: 14px 30px;
  font-size: 1.05rem;
}
.btn-block {
  width: 100%;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}
.btn-light {
  background: #fff;
  color: var(--primary);
}
.btn-light:hover {
  background: #f1f5f9;
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary-soft);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--bg-alt);
}

/* ====== Header ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand:hover {
  text-decoration: none;
}
.brand-logo {
  font-size: 28px;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-weight: 800;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand-slogan {
  font-size: 0.75rem;
  color: var(--muted);
}
.main-nav {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.main-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover {
  background: var(--bg-alt);
  text-decoration: none;
}
.main-nav a.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.header-phone {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.header-phone:hover {
  color: var(--primary);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
}

/* ====== Flash ====== */
.flash-wrap {
  margin-top: 16px;
}
.flash {
  padding: 12px 18px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-weight: 600;
}
.flash-success {
  background: #dcfce7;
  color: #166534;
}
.flash-error {
  background: #fee2e2;
  color: #991b1b;
}
.flash-info {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* ====== Hero ====== */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);
  padding: 70px 0 80px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  font-size: 0.9rem;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
}
.hero-text {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-talk {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.hero-talk-text {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 520px;
}
.hero-trust {
  display: flex;
  gap: 36px;
  margin-top: 40px;
}
.hero-trust div {
  display: flex;
  flex-direction: column;
}
.hero-trust strong {
  font-size: 1.7rem;
  color: var(--primary);
}
.hero-trust span {
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-card {
  background: #fff;
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow);
  text-align: center;
}
.hero-card-emoji {
  font-size: 56px;
  margin-bottom: 10px;
}
.hero-card-title {
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 18px;
}
.hero-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
}
.hero-card-list li {
  padding: 8px 0;
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px dashed var(--border);
}

/* ====== Sections ====== */
.section {
  padding: 70px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 44px;
  max-width: 600px;
}

.page-head {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
  padding: 56px 0;
  text-align: center;
}
.page-head h1 {
  font-size: 2.4rem;
  margin-bottom: 8px;
}
.page-head p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

/* ====== Features ====== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: 0.2s;
}
.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.feature-icon {
  font-size: 38px;
  margin-bottom: 12px;
}
.feature-card h3 {
  font-size: 1.15rem;
}
.feature-card p {
  color: var(--muted);
  margin: 0;
}

/* ====== Doctors ====== */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 36px;
}
.doctors-grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.doctor-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.2s;
  color: var(--text);
  display: block;
}
.doctor-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  text-decoration: none;
}
.doctor-photo {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--c, #3b82f6), #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doctor-photo span {
  font-size: 3rem;
  font-weight: 800;
}
.doctor-info {
  padding: 20px;
}
.doctor-info h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.doctor-spec {
  color: var(--primary);
  font-weight: 600;
  margin: 0 0 4px;
}
.doctor-exp {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
.doctor-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Doctor detail */
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 600;
}
.doctor-detail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}
.doctor-detail-photo {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--c, #3b82f6), #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.doctor-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doctor-detail-photo span {
  font-size: 5rem;
  font-weight: 800;
}
.doctor-detail-info h1 {
  font-size: 2.2rem;
  margin-bottom: 6px;
}
.doctor-detail-spec {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0 0 8px;
}
.doctor-detail-exp {
  color: var(--muted);
  margin: 0 0 20px;
}
.doctor-bio {
  margin-bottom: 28px;
  color: #334155;
}

/* ====== Prices ====== */
.price-preview {
  max-width: 720px;
  margin: 0 auto 32px;
}
.price-list {
  display: grid;
  gap: 28px;
}
.price-group {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}
.price-group-title {
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-soft);
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
}
.price-name {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
}

.price-dots {
  flex: 1;
  border-bottom: 2px dotted var(--border);
}
.price-value {
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}
.price-desc {
  margin: -2px 0 10px;
  padding-left: 2px;
  font-size: 13px;
  line-height: 1.55;
  font-style: italic;
  color: var(--muted, #6b7280);
}

/* ====== CTA ====== */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 56px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta h2 {
  margin-bottom: 6px;
  color: #fff;
}
.cta p {
  margin: 0;
  opacity: 0.9;
}

/* ====== Footer ====== */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 56px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.footer-col h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 1rem;
}
.footer-col a {
  display: block;
  color: #cbd5e1;
  padding: 4px 0;
}
.footer-col a:hover {
  color: #fff;
}
.footer-col p {
  margin: 4px 0;
}
.footer-text {
  color: #94a3b8;
  font-size: 0.95rem;
}
.brand-footer .brand-name {
  color: #fff;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  font-size: 0.85rem;
  color: #64748b;
}

/* ====== Forms / Auth ====== */
.auth-card {
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.auth-card-wide {
  max-width: 640px;
}
.auth-card h1 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}
.auth-switch {
  text-align: center;
  margin-top: 18px;
  color: var(--muted);
}
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 22px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field > span {
  font-weight: 600;
  font-size: 0.92rem;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  transition: 0.15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.field input:disabled {
  background: var(--bg-alt);
  color: var(--muted);
}
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 8px 0;
}

.alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-weight: 600;
}
.alert-error {
  background: #fee2e2;
  color: #991b1b;
}
.alert-info {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* ====== Booking slots ====== */
.booking-form {
  max-width: 100%;
}
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 44px;
  align-items: center;
}
.slots-hint {
  margin: 0;
}
.slot {
  font: inherit;
  font-weight: 700;
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.15s;
}
.slot:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.slot.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ====== Cabinet ====== */
.cabinet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.cabinet-head h1 {
  margin-bottom: 4px;
}
.cabinet-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-alt);
  padding: 5px;
  border-radius: 12px;
}
.cabinet-tabs a {
  padding: 8px 16px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}
.cabinet-tabs a:hover {
  background: #fff;
  text-decoration: none;
}
.cabinet-tabs a.is-active {
  background: var(--primary);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
}
.stat-label {
  color: var(--muted);
  font-size: 0.92rem;
}

.cabinet-section {
  margin-bottom: 40px;
}
.cabinet-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cabinet-section-head h2 {
  font-size: 1.3rem;
  margin: 0;
}
.link {
  font-weight: 600;
}

.appt-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.appt-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.appt-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: var(--primary-soft);
  border-radius: 12px;
  flex-shrink: 0;
}
.appt-day {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.appt-month {
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: lowercase;
}
.appt-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.appt-actions {
  margin-left: auto;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--c, #64748b);
}
.badge-soft {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.table th {
  background: var(--bg-alt);
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.table tr:last-child td {
  border-bottom: none;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 30px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 18px;
}
.timeline-dot {
  position: absolute;
  left: -30px;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 6px;
}
.timeline-date {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}
.timeline-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.timeline-price {
  font-weight: 800;
  color: var(--text);
}

/* ====== About / Contacts ====== */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}
.about-stat {
  background: var(--primary-soft);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.about-stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--primary);
}
.about-stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.contact-icon {
  font-size: 34px;
  margin-bottom: 10px;
}
.contact-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.contact-card p {
  margin: 0;
}
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* ====== Misc ====== */
.empty {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
}

/* ====== Responsive ====== */
@media (max-width: 900px) {
  .hero-inner,
  .doctor-detail {
    grid-template-columns: 1fr;
  }
  .features-grid,
  .doctors-grid,
  .stats-grid,
  .about-stats,
  .contacts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    font-size: 2.3rem;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 12px;
    border-bottom: 1px solid var(--border);
    margin: 0;
    gap: 2px;
  }
  .main-nav.is-open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  .header-phone {
    display: none;
  }
}

@media (max-width: 560px) {
  .features-grid,
  .doctors-grid,
  .stats-grid,
  .about-stats,
  .contacts-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.9rem;
  }
  .hero-trust {
    gap: 20px;
  }
  .cabinet-head {
    flex-direction: column;
    align-items: stretch;
  }
  .cabinet-tabs {
    overflow-x: auto;
  }
  .appt-card {
    flex-wrap: wrap;
  }
  .appt-actions {
    margin-left: 0;
  }
}

/* ===== Promo / Акции ===== */
.promo {
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 20px;
}
.promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.promo-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 16%, #fff), #fff);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.promo-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--c);
}
.promo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}
.promo-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--c);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.promo-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}
.promo-card p {
  margin: 0 0 18px;
  color: #475569;
  font-size: 0.95rem;
}
.promo-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--c);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.promo-old {
  font-size: 1rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: line-through;
}

/* ===== Отзывы ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 1.05rem;
}
.review-text {
  margin: 0;
  color: #334155;
  line-height: 1.6;
  flex: 1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-name {
  font-weight: 700;
}
.review-role {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ===== FAQ ===== */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 22px;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  color: #0f172a;
}
.faq-q::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: #6366f1;
  transition: transform 0.2s ease;
}
.faq-item.is-open .faq-q::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  color: #475569;
  line-height: 1.6;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
}
.faq-item.is-open .faq-a {
  max-height: 300px;
  padding: 0 22px 18px;
}

/* ===== Фильтр врачей ===== */
.doctors-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}
.filter-chip {
  border: 1px solid #d8e0ea;
  background: #fff;
  color: #334155;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-chip:hover {
  border-color: #6366f1;
  color: #6366f1;
}
.filter-chip.is-active {
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  border-color: transparent;
  color: #fff;
}

/* ===== Плавающие кнопки ===== */
.float-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 60;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.22);
  transition: transform 0.2s ease;
}
.float-btn:hover {
  transform: scale(1.1);
}
.float-wa {
  background: #25d366;
}
.float-tg {
  background: #29a9eb;
}
.float-top {
  background: #6366f1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.float-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ===== Анимация появления ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.is-revealed {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .promo-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}
