:root {
  --bg: #f6f9fb;
  --surface: #ffffff;
  --surface-soft: #eef6f7;
  --text: #122026;
  --muted: #64757d;
  --line: #dbe8eb;
  --accent: #1aa6a6;
  --accent-dark: #0f7f82;
  --accent-soft: #dff5f4;
  --blue: #245a78;
  --shadow: 0 18px 45px rgba(18, 32, 38, 0.08);
  --radius: 22px;
  --container: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }
.topline { background: #0e252e; color: rgba(255,255,255,0.86); font-size: 14px; }
.topline-inner { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topline span { color: rgba(255,255,255,0.72); }
.header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,0.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; letter-spacing: -0.03em; white-space: nowrap; }
.logo-mark { width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--blue)); display: grid; place-items: center; color: #fff; font-weight: 900; box-shadow: 0 10px 28px rgba(26,166,166,0.28); }
.nav { display: flex; align-items: center; gap: 20px; color: #31464f; font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--accent-dark); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.phone { font-weight: 800; color: #10242d; white-space: nowrap; }
.btn { border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 20px; border-radius: 999px; font-weight: 800; font-size: 15px; transition: 0.2s ease; white-space: nowrap; }
.btn-primary { color: #fff; background: var(--accent); box-shadow: 0 12px 25px rgba(26,166,166,0.22); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-secondary { color: var(--accent-dark); background: var(--accent-soft); }
.btn-secondary:hover { background: #ccefed; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 24px; cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 12px 0 18px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 11px 0; font-weight: 800; }
.hero { position: relative; overflow: hidden; padding: 72px 0 54px; background: radial-gradient(circle at 15% 20%, rgba(26,166,166,0.15), transparent 32%), radial-gradient(circle at 88% 12%, rgba(36,90,120,0.15), transparent 28%), linear-gradient(180deg, #ffffff 0%, #f2fafb 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 46px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; color: var(--accent-dark); background: var(--accent-soft); font-weight: 800; font-size: 14px; margin-bottom: 18px; }
.hero h1, .page-hero h1 { margin: 0 0 18px; font-size: clamp(38px, 5vw, 68px); line-height: 0.98; letter-spacing: -0.055em; color: #0e252e; }
.hero p, .page-hero p { margin: 0 0 28px; font-size: 19px; color: var(--muted); max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 680px; }
.stat { background: rgba(255,255,255,0.78); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.stat strong { display: block; font-size: 22px; line-height: 1.1; color: #0e252e; margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: 14px; }
.hero-card { position: relative; min-height: 470px; border-radius: 36px; overflow: hidden; background: linear-gradient(145deg, #dff5f4 0%, #ffffff 46%, #dbeef5 100%); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.86); padding: 32px; }
.hero-device { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 72%; max-width: 360px; aspect-ratio: 0.78; border-radius: 32px; background: #10242d; box-shadow: 0 26px 70px rgba(16,36,45,0.24); padding: 18px; }
.device-screen { width: 100%; height: 100%; border-radius: 24px; background: linear-gradient(90deg, rgba(26,166,166,0.15) 1px, transparent 1px), linear-gradient(rgba(26,166,166,0.15) 1px, transparent 1px), linear-gradient(180deg, #12303b, #0a1a21); background-size: 28px 28px, 28px 28px, auto; padding: 22px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.wave { height: 122px; border-radius: 20px; background: rgba(255,255,255,0.06); overflow: hidden; }
.wave svg { width: 100%; height: 100%; }
.screen-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.72); }
.screen-row strong { color: #fff; font-size: 20px; }
.floating-card { position: absolute; background: rgba(255,255,255,0.9); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 18px; padding: 14px 16px; max-width: 210px; }
.floating-card strong { display: block; margin-bottom: 3px; }
.floating-card span { color: var(--muted); font-size: 13px; }
.floating-card.one { top: 34px; left: 28px; }
.floating-card.two { right: 28px; bottom: 34px; }
section { padding: 78px 0; }
.page-hero { padding: 72px 0 42px; background: linear-gradient(180deg, #fff 0%, #f2fafb 100%); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.section-title { max-width: 760px; }
.section-title h2 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 46px); line-height: 1.06; letter-spacing: -0.045em; color: #0e252e; }
.section-title p { margin: 0 0 14px; color: var(--muted); font-size: 17px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3, .services-grid, .doctors-grid, .why-grid, .reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 12px 30px rgba(18, 32, 38, 0.045); transition: 0.2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-icon { width: 52px; height: 52px; border-radius: 17px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; font-weight: 900; margin-bottom: 16px; }
.card h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.15; color: #0e252e; }
.card p { margin: 0 0 18px; color: var(--muted); }
.card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.price { font-weight: 900; color: var(--accent-dark); }
.link-more { font-weight: 800; color: var(--blue); }
.soft-block { background: #0e252e; color: #fff; border-radius: 32px; padding: 34px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 22px; box-shadow: var(--shadow); }
.soft-block h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -0.035em; }
.soft-block p { margin: 0; color: rgba(255,255,255,0.72); max-width: 720px; }
.symptoms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.symptom { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; color: #213840; }
.doctor-photo { height: 220px; border-radius: 20px; background: radial-gradient(circle at 50% 20%, rgba(26,166,166,0.18), transparent 34%), linear-gradient(135deg, #e4f3f4, #ffffff); display: grid; place-items: center; margin-bottom: 18px; color: var(--accent-dark); font-weight: 900; font-size: 52px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.tag { padding: 7px 10px; border-radius: 999px; background: var(--surface-soft); color: var(--blue); font-size: 13px; font-weight: 800; }
.price-table-wrap { overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 30px rgba(18, 32, 38, 0.045); margin-bottom: 24px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 18px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--surface-soft); color: #0e252e; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
td { color: #31464f; }
tr:last-child td { border-bottom: 0; }
.about-grid, .contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; }
.about-visual { min-height: 390px; border-radius: 32px; background: radial-gradient(circle at 40% 30%, rgba(26,166,166,0.23), transparent 28%), linear-gradient(135deg, #dff5f4, #ffffff 58%, #dcecf4); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.86); padding: 28px; display: flex; align-items: end; }
.about-visual-card { width: 100%; padding: 22px; border-radius: 22px; background: rgba(255,255,255,0.86); border: 1px solid var(--line); box-shadow: 0 16px 34px rgba(18,32,38,0.08); }
.about-visual-card strong { display: block; font-size: 24px; margin-bottom: 6px; }
.about-visual-card span { color: var(--muted); }
.review-stars { color: #f3a712; letter-spacing: 2px; margin-bottom: 12px; }
.contact-list { display: grid; gap: 12px; }
.contact-item { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.contact-item strong { display: block; margin-bottom: 4px; }
.contact-item span { color: var(--muted); }
.form-card { background: #0e252e; color: #fff; border-radius: 30px; padding: 30px; box-shadow: var(--shadow); }
.form-card h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -0.035em; }
.form-card p { margin: 0 0 22px; color: rgba(255,255,255,0.72); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { color: rgba(255,255,255,0.76); font-size: 13px; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid rgba(255,255,255,0.14); border-radius: 14px; padding: 14px 15px; font: inherit; background: rgba(255,255,255,0.08); color: #fff; outline: none; }
option { color: #111; }
textarea { min-height: 112px; resize: vertical; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.46); }
.form-note { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,0.55); }
.alert { padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 700; }
.alert-success { background: #dff5f4; color: #0f7f82; border: 1px solid #bfe8e5; }
.alert-error { background: #ffe8e8; color: #9c2222; border: 1px solid #ffc7c7; }
.footer { padding: 42px 0; background: #0e252e; color: rgba(255,255,255,0.72); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 0.8fr 0.8fr; gap: 28px; }
.footer h3, .footer strong { color: #fff; }
.footer a { display: block; margin: 8px 0; color: rgba(255,255,255,0.72); }
.footer a:hover { color: #fff; }
@media (max-width: 1040px) {
  .nav, .header-actions .phone { display: none; }
  .menu-btn { display: block; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 420px; }
  .grid-3, .services-grid, .doctors-grid, .why-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .symptoms { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 22px, var(--container)); }
  .topline-inner { flex-direction: column; align-items: flex-start; padding: 10px 0; gap: 4px; }
  .header-inner { min-height: 68px; }
  .logo { font-size: 21px; }
  .logo-mark { width: 38px; height: 38px; border-radius: 13px; }
  .header-actions .btn { display: none; }
  .hero, .page-hero { padding: 44px 0 36px; }
  .hero h1, .page-hero h1 { font-size: 42px; }
  .hero p, .page-hero p { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-stats, .grid-2, .grid-3, .services-grid, .doctors-grid, .why-grid, .reviews-grid, .symptoms, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 380px; border-radius: 26px; padding: 18px; }
  .hero-device { width: 78%; }
  .floating-card { max-width: 180px; padding: 12px; }
  .floating-card.one { top: 18px; left: 18px; }
  .floating-card.two { right: 18px; bottom: 18px; }
  section { padding: 54px 0; }
  .section-head { display: block; }
  .soft-block { grid-template-columns: 1fr; padding: 24px; border-radius: 24px; }
  .card { padding: 20px; }
  .form-card { padding: 22px; border-radius: 24px; }
  .footer { padding-bottom: 80px; }
}

.map-placeholder {
  min-height: 260px;
  border-radius: var(--radius);
  border: 1px dashed var(--line);
  background: linear-gradient(135deg, #ffffff, #eef6f7);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.badge-muted {
  background: #edf2f4;
  color: #64757d;
}

.download-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.content-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 12px 30px rgba(18, 32, 38, 0.045);
}

.content-block h2,
.content-block h3 {
  color: #0e252e;
}

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

.error-code {
  font-size: clamp(80px, 12vw, 150px);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.08em;
  color: var(--accent-dark);
  margin: 0 0 16px;
}


.appointment-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.75fr;
  gap: 22px;
  align-items: start;
}

.appointment-booking-form {
  grid-column: 1 / -1;
}

.calendar-card,
.slots-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 30px rgba(18, 32, 38, 0.045);
}

.calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.calendar-top strong {
  display: block;
  font-size: 24px;
  color: #0e252e;
}

.calendar-top span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.calendar-nav {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--accent-dark);
  border-radius: 14px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calendar-legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.legend-free { background: #c9f2df; }
.legend-partial { background: #ffe2a8; }
.legend-full { background: #ffc4c4; }
.legend-closed { background: #d7dde0; }

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-weekdays {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: #0e252e;
  cursor: pointer;
  padding: 8px;
  text-align: left;
  font-weight: 800;
  position: relative;
}

.calendar-day:hover {
  border-color: var(--accent);
}

.calendar-day.is-empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.calendar-day.is-selected {
  outline: 3px solid rgba(26, 166, 166, 0.22);
  border-color: var(--accent);
}

.calendar-day.is-free { background: #effcf6; }
.calendar-day.is-partial { background: #fff7e6; }
.calendar-day.is-full { background: #fff0f0; }
.calendar-day.is-closed { background: #f0f3f4; color: #9aa7ad; cursor: not-allowed; }

.calendar-day small {
  display: block;
  margin-top: 6px;
  font-weight: 700;
  color: var(--muted);
  font-size: 11px;
}

.slots-card h2 {
  margin-top: 0;
  color: #0e252e;
}

.slots-card p {
  color: var(--muted);
}

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

.slot-btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #effcf6;
  color: #0e252e;
  padding: 12px 8px;
  cursor: pointer;
  font-weight: 800;
}

.slot-btn:hover {
  border-color: var(--accent);
}

.slot-btn.is-selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.slot-btn.is-busy {
  background: #fff0f0;
  color: #a04444;
  cursor: not-allowed;
  text-decoration: line-through;
}

.selected-slot-box {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 18px 0;
  color: rgba(255,255,255,0.82);
}

.selected-slot-box strong {
  color: #fff;
}

@media (max-width: 1040px) {
  .appointment-layout {
    grid-template-columns: 1fr;
  }

  .appointment-booking-form {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .calendar-weekdays,
  .calendar-grid {
    gap: 5px;
  }

  .calendar-day {
    min-height: 58px;
    border-radius: 12px;
    padding: 6px;
    font-size: 13px;
  }

  .calendar-day small {
    font-size: 9px;
  }

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