:root {
  --gold: #f7aa01;
  --gold-dark: #bf8828;
  --green: #009c1d;
  --green-light: #75b65d;
  --dark: #242424;
  --dark-bg: #060607;
  --text: #2e3135;
  --text-muted: #7a7a7a;
  --white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-warm: #f4f0eb;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --font-base: 16px;
  --line-height: 1.5;
  --letter-spacing: 0;
  --font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1200px;
  --a11y-scale: 1;
}

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

html {
  scroll-behavior: smooth;
  font-size: var(--font-base);
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
  color: var(--text);
  background: var(--page-bg, var(--white));
  overflow-x: visible;
}

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

.header .logo-img,
img.logo-img {
  max-width: none;
  width: 204px;
  height: 64px;
}

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

ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

.header-top {
  background: var(--dark-bg);
  color: var(--white);
  font-size: 0.8125rem;
  padding: 8px 0;
}

.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.header-top a:hover { color: var(--gold); }

.header-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.header-socials {
  display: flex;
  gap: 10px;
}

.header-socials a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.header-main {
  padding: 14px 0;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--dark);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color .2s;
}

.nav a:hover { color: var(--green); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  font-weight: 700;
  font-size: 1.0625rem;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--dark);
}

.btn-outline:hover {
  background: var(--gold);
}

.btn-green {
  background: var(--green);
  color: var(--white);
}

.btn-green:hover { background: #007a17; }

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-dark:hover { background: #333; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: .3s;
}

/* Hero Slider */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-warm);
}

.hero-slider {
  position: relative;
}

.hero-slide {
  display: none;
  min-height: 480px;
  padding: 60px 0;
  background: linear-gradient(135deg, #f4f0eb 0%, #e8e0d5 100%);
}

.hero-slide.active { display: block; }

.hero-slide-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--dark);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--dark);
}

.hero-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-price-current {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--green);
}

.hero-price-old {
  font-size: 1.25rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #c9d9c5, #8ab088);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.hero-nav {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0,0,0,.2);
  border: none;
  cursor: pointer;
  transition: .2s;
}

.hero-dot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 5px;
}

.hero-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
  z-index: 2;
}

.hero-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  box-shadow: var(--shadow);
  cursor: pointer;
  pointer-events: all;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}

.hero-arrow:hover { background: var(--gold); }

/* Section common */
section { padding: 48px 0; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* About */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text p {
  margin-bottom: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.about-image {
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #d5e8d0, #a8c9a0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  overflow: hidden;
}

/* Values */
.values {
  background: var(--bg-light);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s;
}

.value-card:hover { transform: translateY(-4px); }

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.value-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.value-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid rgba(0,0,0,.04);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
}

.service-image {
  height: 180px;
  background: linear-gradient(135deg, #e0ebe0, #b8d4b0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.service-body {
  padding: 24px;
}

.service-body h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.service-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-body .btn {
  padding: 10px 20px;
  font-size: 0.8125rem;
}

/* Consultation CTA */
.consultation {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #2a3a2a 100%);
  color: var(--white);
}

.consultation-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.consultation-text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.consultation-text p {
  font-size: 1.0625rem;
  opacity: .85;
  line-height: 1.6;
}

.consultation-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  color: var(--text);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.form-checkbox input { width: auto; margin-top: 3px; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show { display: block; }
.form-success + .form-fields { display: none; }

.form-success h3 {
  font-size: 1.5rem;
  color: var(--green);
  margin-bottom: 8px;
}

/* Team */
.team {
  background: var(--bg-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.doctor-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
}

.doctor-photo {
  height: 280px;
  background: linear-gradient(180deg, #d5e0d5, #a0b8a0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
}

.doctor-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: var(--dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.doctor-info {
  padding: 24px;
}

.doctor-info h3 {
  font-size: 1.125rem;
  margin-bottom: 4px;
  color: var(--dark);
}

.doctor-info .role {
  font-size: 0.875rem;
  color: var(--green);
  margin-bottom: 12px;
}

.doctor-info .experience {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.doctor-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.doctor-actions .btn {
  padding: 10px 16px;
  font-size: 0.8125rem;
}

/* Before/After */
.before-after-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.ba-tab {
  padding: 10px 20px;
  border: 2px solid #e5e5e5;
  border-radius: 50px;
  background: var(--white);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: .2s;
}

.ba-tab.active,
.ba-tab:hover {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.ba-panel { display: none; }
.ba-panel.active { display: block; }

.ba-comparison {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: ew-resize;
  user-select: none;
}

.ba-before, .ba-after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ba-before {
  background-color: #c8c2bc;
  z-index: 1;
  clip-path: inset(0 50% 0 0);
}

.ba-after {
  background-color: #e8e4df;
  z-index: 0;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--white);
  z-index: 2;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0,0,0,.3);
}

.ba-handle::after {
  content: '⟷';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow);
}

.ba-labels {
  display: flex;
  justify-content: space-between;
  max-width: 700px;
  margin: 12px auto 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Reviews */
.reviews {
  background: var(--bg-light);
}

.reviews-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.review-tab {
  padding: 10px 20px;
  border: 2px solid #e5e5e5;
  border-radius: 50px;
  background: var(--white);
  font-family: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  transition: .2s;
}

.review-tab.active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--dark);
}

.reviews-slider {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.review-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-style: italic;
}

.review-author {
  font-weight: 700;
  color: var(--dark);
}

.review-service {
  font-size: 0.8125rem;
  color: var(--green);
  margin-bottom: 8px;
}

/* Ratings */
.ratings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 48px;
}

.rating-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid #e5e5e5;
  transition: .2s;
}

.rating-card:hover {
  border-color: var(--gold);
}

.rating-score {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.rating-stars {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.rating-card .btn { width: 100%; }

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--gold);
  height: 400px;
  background: #e8e8e8;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer */
.footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.875rem;
  opacity: .7;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer h4 {
  font-size: 0.9375rem;
  margin-bottom: 16px;
  color: var(--gold);
}

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  font-size: 0.875rem;
  opacity: .7;
  transition: .2s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--gold);
}

.footer-contacts li {
  font-size: 0.875rem;
  opacity: .7;
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.75rem;
  opacity: .5;
}

.footer-bottom a { text-decoration: underline; }

.footer-a11y-link {
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: .2s;
}

.footer-a11y-link:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--gold);
}

.disclaimer {
  text-align: center;
  font-size: 0.75rem;
  opacity: .4;
  margin-top: 16px;
}

.promo-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 32px;
}

.promo-note a { color: var(--green); text-decoration: underline; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover { background: #f5f5f5; }

.modal h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: var(--dark);
}

.modal p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.9375rem;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  padding: 80px 24px 24px;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 1.125rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 1024px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav, .header-phone { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-slide-inner,
  .about-grid,
  .consultation-inner { grid-template-columns: 1fr; }
  .hero-slide { min-height: auto; padding: 40px 0; }
  .hero-title { font-size: 1.75rem; }
  .hero-image { display: none; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid,
  .team-grid,
  .reviews-slider,
  .ratings-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 36px 0; }
  .hero-arrows { display: none; }
}

@media (max-width: 480px) {
  .values-grid { grid-template-columns: 1fr; }
  .header-actions .btn { display: none; }
}
