:root {
  --primary: #0046ad;
  --primary-dark: #003580;
  --primary-light: #00a0e9;
  --accent: #e8f4fc;
  --text: #333333;
  --text-muted: #666666;
  --white: #ffffff;
  --bg-light: #f5f8fc;
  --border: #e2e8f0;
  --footer-bg: #0a2d5c;
  --footer-bottom: #061d3d;
  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 8px 30px rgba(0, 70, 173, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-light);
}

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

/* Top bar */
.top-bar {
  background: var(--primary);
  color: var(--white);
  font-size: 0.875rem;
  padding: 10px 0;
}

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

.top-bar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-bar a {
  color: var(--white);
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo-link img {
  height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: var(--white) !important;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white) !important;
}

.btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border-color: var(--primary-light);
}

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

.btn-light {
  background: var(--white);
  color: var(--primary) !important;
}

/* Hero */
.hero {
  padding: 60px 0 100px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--white) 55%);
  position: relative;
  overflow: hidden;
}

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

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--primary-dark);
  line-height: 1.2;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-circle {
  width: min(380px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid var(--white);
  box-shadow: var(--shadow);
}

.hero-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating feature cards */
.hero-cards {
  margin-top: -60px;
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
}

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

.feature-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.feature-card .icon {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 1.5rem;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Section typography */
section {
  padding: 70px 0;
}

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

.section-head .label {
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.section-head h2 {
  color: var(--primary-dark);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 10px 0 16px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

.bg-light {
  background: var(--bg-light);
}

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

.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-gallery img {
  border-radius: var(--radius-lg);
  object-fit: cover;
  width: 100%;
  height: 200px;
}

.about-gallery img:first-child {
  grid-row: span 2;
  height: 100%;
  min-height: 280px;
}

.badge-exp {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  margin-bottom: 16px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.check-list li {
  padding: 8px 0 8px 32px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Service cards */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-card .icon-box {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary-light);
}

.service-card:hover .icon-box {
  background: var(--primary);
  color: var(--white);
}

.service-card h3 {
  margin: 0 0 12px;
  color: var(--primary-dark);
}

/* Doctors */
.doctors-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.doctor-card {
  text-align: center;
}

.doctor-card .photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 4px solid var(--accent);
}

.doctor-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctor-card h4 {
  margin: 0 0 4px;
  color: var(--primary-dark);
}

.doctor-card .role {
  color: var(--primary-light);
  font-size: 0.9rem;
}

/* Icon strip */
.icon-strip {
  background: var(--primary);
  padding: 36px 0;
}

.icon-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 24px;
}

.icon-strip-item {
  color: var(--white);
  text-align: center;
  min-width: 100px;
}

.icon-strip-item .ico {
  font-size: 2rem;
  margin-bottom: 8px;
}

/* Appointment band */
.appointment-band {
  background: var(--primary-dark);
  background-image: radial-gradient(circle at 20% 50%, rgba(0, 160, 233, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 70px 0;
  color: var(--white);
}

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

.appointment-grid h2 {
  margin-top: 0;
  font-size: 2rem;
}

.form-box {
  background: rgba(255, 255, 255, 0.08);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.appointment-band .form-group input,
.appointment-band .form-group select {
  background: var(--white);
  border: none;
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15);
}

.field-error {
  color: #ffb4b4;
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
}

.form-light .field-error {
  color: #dc3545;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 3px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-group label {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  cursor: pointer;
}

.form-success {
  display: none;
  padding: 20px;
  background: #d4edda;
  color: #155724;
  border-radius: var(--radius);
  margin-top: 16px;
  text-align: center;
  font-weight: 600;
}

.form-success.show {
  display: block;
}

/* Tabs */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.tabs-nav button {
  padding: 10px 22px;
  border: 2px solid var(--border);
  background: var(--white);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  color: var(--text);
}

.tabs-nav button.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

/* Stats */
.stats-section {
  background: var(--primary-dark);
  color: var(--white);
  padding: 70px 0;
}

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

.stats-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 2.5rem;
  color: var(--primary-light);
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card .body {
  padding: 22px;
}

.blog-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 50px 0;
  color: var(--white);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr auto 200px;
  gap: 32px;
  align-items: center;
}

.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 16px;
  border: none;
  border-radius: var(--radius);
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 0;
}

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

.site-footer h4 {
  color: var(--white);
  margin: 0 0 20px;
  font-size: 1.1rem;
}

.site-footer p,
.site-footer li {
  font-size: 0.9rem;
  line-height: 1.7;
}

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

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.site-footer a:hover {
  color: var(--primary-light);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}

.footer-bottom {
  background: var(--footer-bottom);
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
}

.footer-legal {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

/* Page hero */
.page-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.page-banner h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.breadcrumb {
  opacity: 0.9;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--white);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
}

.price-card.featured {
  border-color: var(--primary);
  transform: scale(1.03);
}

.price-card .price {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 700;
}

.price-card .price small {
  font-size: 1rem;
  color: var(--text-muted);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
}

.price-card li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Doctor finder */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.filter-bar select,
.filter-bar input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  min-width: 180px;
}

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

.doctor-list-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  gap: 20px;
}

.doctor-list-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

/* Legal content */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h2 {
  color: var(--primary-dark);
  margin-top: 40px;
  font-size: 1.35rem;
}

.legal-content h3 {
  color: var(--primary);
  margin-top: 28px;
  font-size: 1.1rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
}

.legal-content ul {
  padding-left: 1.25rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--accent);
  padding: 32px;
  border-radius: var(--radius-lg);
}

.form-light {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.article-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-content img {
  border-radius: var(--radius-lg);
  margin: 24px 0;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.map-visual {
  background: var(--accent);
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.map-visual img {
  margin: 0 auto;
  max-height: 320px;
  border-radius: var(--radius);
}

.schedule-list {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.schedule-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.schedule-row.header {
  background: var(--primary);
  color: var(--white);
  font-weight: 600;
}

.dept-tag {
  background: var(--accent);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: inline-block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.label {
  color: var(--primary-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

@media (max-width: 992px) {
  .hero-grid,
  .about-split,
  .appointment-grid,
  .stats-grid,
  .tab-panel.active,
  .contact-grid,
  .appointment-grid {
    grid-template-columns: 1fr;
  }

  .cards-3,
  .doctors-row,
  .blog-grid,
  .pricing-grid,
  .doctor-list-grid,
  .hero-cards .container {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .newsletter-inner {
    grid-template-columns: 1fr;
  }

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

  .schedule-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .schedule-row.header {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

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

  .nav-toggle {
    display: block;
  }

  .header-actions .btn {
    display: none;
  }

  .site-header {
    position: relative;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .price-card.featured {
    transform: none;
  }

  .doctor-list-card {
    flex-direction: column;
    text-align: center;
  }

  .doctor-list-card img {
    margin: 0 auto;
  }
}
