/* ============================================
   THEME.CSS — Доктор Потанова (Bootstrap)
   ============================================ */

:root {
  --primary: #2196F3;
  --primary-dark: #1976D2;
  --primary-light: #E3F2FD;
  --accent: #FF6B35;
  --dark: #1A1A2E;
  --text: #333;
  --text-light: #666;
  --text-muted: #999;
}

/* --- GLOBAL --- */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  overflow-x: hidden;
}

a { color: var(--primary); transition: all 0.3s; }
a:hover { color: var(--primary-dark); text-decoration: none; }

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 12px 30px;
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(33,150,243,0.3); }

.btn-outline-light { border-radius: 50px; font-weight: 600; padding: 12px 30px; }
.btn-light { border-radius: 50px; font-weight: 600; padding: 12px 30px; color: var(--primary); }

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.section-title span { color: var(--primary); }

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
}

.ftco-section { padding: 80px 0; }

/* --- NAVBAR --- */

#mainNav {
  padding: 15px 0;
  transition: all 0.3s;
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(20px);
}

.navbar-phone {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text) !important;
}
.navbar-phone:hover { color: var(--primary) !important; }

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text) !important;
  padding: 8px 15px !important;
}
.nav-link:hover { color: var(--primary) !important; }

.nav-cta .btn-cta {
  background: var(--primary);
  color: #fff !important;
  border-radius: 50px;
  padding: 8px 24px !important;
}
.nav-cta .btn-cta:hover { background: var(--primary-dark); }

/* --- HERO --- */

.hero-section {
  min-height: 700px;
  padding-top: 130px;
  padding-bottom: 50px;
  background-size: cover;
  background-position: center center;
  position: relative;
  display: flex;
}
.hero-section__mobile-photo { display: none; }
.hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.hero-top { max-width: 620px; }
.hero-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-top: auto;
}
.hero-bottom { max-width: 720px; flex: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(33,150,243,0.10);
  color: var(--primary, #2196F3);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(33,150,243,0.20);
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  font-weight: 800;
  color: var(--primary, #2196F3);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}
.hero-title span { color: inherit; }

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 0;
}
.hero-features span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  border: 1px solid rgba(33,150,243,0.18);
}
.hero-features i { color: var(--primary, #2196F3); }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  align-items: stretch;
  min-width: 240px;
}
.hero-actions .btn { white-space: nowrap; }
.hero-actions .btn-light {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  color: #0d1b2a;
  border: 1px solid rgba(15,20,40,0.12);
  font-weight: 600;
}
.hero-actions .btn-light:hover {
  background: #fff;
  color: var(--primary, #2196F3);
}

/* === MOBILE: фото отдельным блоком сверху, текст и кнопки на белом фоне === */
@media (max-width: 991.98px) {
  .hero-section {
    background-image: none !important;
    background: #fff;
    min-height: 0;
    padding: 88px 0 28px;
    display: block;
  }
  .hero-section__mobile-photo {
    display: block;
    width: 100%;
    height: 280px;
    background-image: var(--hero-mobile-photo, url('/assets/img/hero/team.webp'));
    background-size: cover;
    background-position: center 20%;
    border-radius: 0 0 12px 12px;
    margin-bottom: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  }
  .hero-container {
    display: block;
    padding-left: 15px;
    padding-right: 15px;
  }
  .hero-top { max-width: 100%; padding: 0 0 14px; }
  .hero-bottom-row {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-top: 0;
  }
  .hero-bottom { max-width: 100%; }
  .hero-title {
    text-shadow: none;
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .hero-features { gap: 8px; }
  .hero-features span { font-size: 0.82rem; padding: 6px 12px; }
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
    gap: 10px;
  }
  .hero-actions .btn {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }
}
@media (max-width: 575.98px) {
  .hero-section { padding: 80px 0 24px; }
  .hero-section__mobile-photo { height: 240px; border-radius: 0 0 10px 10px; }
  .hero-title { font-size: 1.6rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { flex: 1 1 100%; width: 100%; }
}

/* --- INFO BAR (цвета + скругления) --- */

.ftco-intro {
  padding-top: 30px;
  padding-bottom: 30px;
}
.ftco-intro .container {
  border-radius: 20px;
  overflow: hidden;
  margin-top: 0;
}

.ftco-intro .row.no-gutters > [class*="col-"]:first-child {
  border-radius: 20px 0 0 20px;
}
.ftco-intro .row.no-gutters > [class*="col-"]:last-child {
  border-radius: 0 20px 20px 0;
}

@media (max-width: 767px) {
  .ftco-intro .row.no-gutters > [class*="col-"]:first-child {
    border-radius: 20px 20px 0 0;
  }
  .ftco-intro .row.no-gutters > [class*="col-"]:last-child {
    border-radius: 0 0 20px 20px;
  }
}

.ftco-intro .color-1 { background: #2196F3; }
.ftco-intro .color-2 { background: #1976D2; }

/* --- ABOUT --- */

.about-img {
  min-height: 500px;
  background-size: cover;
  background-position: center 20%;
}
@media (min-width: 992px) {
  .about-img { min-height: 100%; }
}

.about-content {
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
}

.about-wrap {
  padding: 50px 40px;
}
.about-wrap h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #fff;
}
.about-wrap > p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
}

/* --- Сертификаты-плашки в about-блоке --- */
.cert-thumb {
  display: block;
  width: 70px;
  height: 90px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
}
.cert-thumb:hover {
  background: rgba(255,255,255,0.3);
  border-color: #fff;
  transform: translateY(-3px);
}
.cert-thumb__inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(255,255,255,0.8);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px;
  gap: 2px;
}
.cert-thumb:hover .cert-thumb__inner {
  color: #fff;
}
.cert-thumb--img {
  background-size: cover;
  background-position: center top;
  border-color: rgba(255,255,255,0.6);
}
.cert-thumb--img:hover {
  border-color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* --- PAIN CARDS --- */

.pain-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 25px;
  width: 100%;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}
.pain-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  border-bottom-color: var(--primary);
}
.pain-card__emoji { font-size: 2.5rem; margin-bottom: 15px; }
.pain-card h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.pain-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0; }

/* --- SERVICE CARDS --- */

.service-card {
  display: block;
  text-align: center;
  padding: 35px 25px;
  background: #fff;
  border-radius: 12px;
  width: 100%;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
  transition: all 0.3s;
  color: var(--text);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(33,150,243,0.15);
  color: var(--text);
}
.service-card__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-light);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card__icon span { font-size: 2rem; color: var(--primary); }
.service-card:hover .service-card__icon { background: var(--primary); }
.service-card:hover .service-card__icon span { color: #fff; }

.service-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 15px; }
.service-card__price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

/* --- COUNTER --- */

.ftco-counter {
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.counter-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,46,0.85);
}
.counter-item { color: #fff; }
.counter-number {
  font-size: 3rem;
  font-weight: 800;
  display: inline;
}
.counter-plus { font-size: 2rem; font-weight: 800; color: var(--primary); }
.counter-item p { font-size: 0.9rem; opacity: 0.8; margin-top: 5px; }

/* --- STEP CARDS --- */

.step-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px 15px 25px;
  width: 100%;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
  transition: all 0.3s;
}
.step-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.step-card__num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}
.step-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0; }

/* --- DOCTOR CARDS (DentaCare staff style) --- */

.staff {
  width: 100%;
  display: block;
  padding: 25px;
  border: 1px solid #f5f5f5;
  box-shadow: 0 3px 50px rgba(0,0,0,0.08);
  border-radius: 8px;
  transition: all 0.3s;
  margin-bottom: 30px;
  background: #fff;
}
.staff:hover { box-shadow: 0 5px 60px rgba(0,0,0,0.15); transform: translateY(-3px); }

.staff .img {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background-size: cover;
  background-position: center top;
  transition: all 0.3s;
}

.staff .info { width: 100%; }
.staff .info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 2px; }
.staff .info h3 a { color: var(--text); }
.staff .info span.position {
  display: block;
  margin-bottom: 5px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
}
.staff .info .experience {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.staff .info .staff-desc {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 10px;
}

.staff .ftco-social {
  padding: 0;
  margin: 0;
}
.staff .ftco-social li {
  list-style: none;
  display: inline-block;
  margin: 0 4px;
}
.staff .ftco-social li a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  transition: all 0.3s;
}
.staff .ftco-social li a:hover {
  background: var(--primary);
  color: #fff;
}

/* --- ДО/ПОСЛЕ СЛАЙДЕР С ПОЛЗУНКОМ --- */

.ba-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.1);
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}

.ba-slider__after {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center center;
}

.ba-slider__before {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 3px solid #fff;
  z-index: 2;
}

.ba-slider__before img {
  position: absolute;
  top: 0;
  left: 0;
  /* Ширина = полная ширина слайдера, устанавливается JS */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.ba-slider__before::after {
  content: 'ДО';
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.ba-slider::after {
  content: 'ПОСЛЕ';
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  z-index: 1;
}

.ba-slider__handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 40px;
  height: 100%;
  margin-left: -20px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-slider__handle span {
  width: 36px;
  height: 36px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ba-slider__handle span::before,
.ba-slider__handle span::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}
.ba-slider__handle span::before {
  border-width: 5px 6px 5px 0;
  border-color: transparent var(--primary) transparent transparent;
  left: 7px;
}
.ba-slider__handle span::after {
  border-width: 5px 0 5px 6px;
  border-color: transparent transparent transparent var(--primary);
  right: 7px;
}

/* --- ТАЙМЕР АКЦИИ --- */

.promo__timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}

.promo__timer-item {
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  min-width: 70px;
}

.promo__timer-item span {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.promo__timer-item small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 4px;
  text-transform: uppercase;
}

.promo__timer-sep {
  font-size: 1.5rem;
  font-weight: 700;
  opacity: 0.5;
  color: #fff;
}

@media (max-width: 575px) {
  .promo__timer-item { padding: 8px 10px; min-width: 55px; }
  .promo__timer-item span { font-size: 1.3rem; }
}

/* --- CTA SECTION --- */

.cta-section {
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.cta-section h2 { font-size: 2rem; font-weight: 800; }

/* --- REVIEW CARDS --- */

.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  width: 100%;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}
.review-card__stars { color: #FFC107; font-size: 1.2rem; margin-bottom: 15px; }
.review-card__text { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; font-style: italic; }
.review-card__author { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.review-card__avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* --- PRICE TABLE --- */

.price-table td {
  padding: 14px 20px;
  font-size: 0.95rem;
  vertical-align: middle;
}
.price-table tr { border-bottom: 1px solid #eee; }
.price-table tr:last-child { border-bottom: none; }
.price-table tr:hover { background: var(--primary-light); }
.price-table td:last-child { text-align: right; white-space: nowrap; }

/* --- FOOTER --- */

.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 30px;
}
.site-footer h5 { color: #fff; font-weight: 700; margin-bottom: 15px; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul li a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.site-footer ul li a:hover { color: #fff; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.site-footer p { font-size: 0.9rem; }
.site-footer .border-secondary { border-color: rgba(255,255,255,0.2) !important; }

/* --- STICKY CTA --- */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  display: flex;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 8px;
  gap: 8px;
}
.sticky-cta__call, .sticky-cta__book {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}
.sticky-cta__call { background: #f5f5f5; color: var(--text); }
.sticky-cta__book { background: var(--primary); color: #fff; }
.sticky-cta__book:hover { color: #fff; }

/* --- PROMO (from JSON) --- */

.promo {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
}
.promo__badge {
  display: inline-block;
  background: var(--accent);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 15px;
}
.promo__title { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.promo__item { margin-bottom: 8px; }
.promo__item-name { font-size: 0.95rem; opacity: 0.9; }
.promo__price { font-size: 1.5rem; font-weight: 800; }
.promo__old-price { text-decoration: line-through; opacity: 0.6; font-size: 1rem; margin-right: 8px; }
.promo__deadline { font-size: 0.85rem; opacity: 0.8; margin: 15px 0; }
.promo__spots { background: rgba(255,255,255,0.15); padding: 8px 20px; border-radius: 50px; font-size: 0.85rem; display: inline-block; margin-bottom: 20px; }

/* --- КНОПКИ МЕССЕНДЖЕРОВ (контакты) --- */

.messenger-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  transition: all 0.3s;
}
.messenger-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.messenger-btn svg { flex-shrink: 0; }

.messenger-btn--tg { background: #0088CC; }
.messenger-btn--tg:hover { background: #006da3; }
.messenger-btn--wa { background: #25D366; }
.messenger-btn--wa:hover { background: #1da851; }
.messenger-btn--vk { background: #4A76A8; }
.messenger-btn--vk:hover { background: #3b6290; }
.messenger-btn--max { background: linear-gradient(135deg, #00D4FF, #7B68EE, #8B00FF); }
.messenger-btn--max:hover { background: linear-gradient(135deg, #00b8e0, #6a57dd, #7a00e0); }

/* --- MODAL --- */

.modal-content { border-radius: 16px; border: none; }
.modal-header { padding: 25px 25px 10px; }
.modal-body { padding: 10px 25px 30px; }

/* --- MOBILE FIXES --- */

@media (max-width: 991px) {
  .hero-section { min-height: 80vh; }
  .about-img { min-height: 300px; }
  .about-wrap { padding: 30px 20px; }
  .info-bar__item { padding: 20px; }
  body { padding-bottom: 70px; }
}

@media (max-width: 575px) {
  .hero-title { font-size: 1.8rem; }
  .section-title { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}
