:root {
  --blue-950: #061f3d;
  --blue-900: #0a2d57;
  --blue-800: #0d4a8f;
  --blue-700: #1159a8;
  --blue-600: #1a6fd1;
  --blue-500: #2f86e8;
  --blue-200: #c9ddf6;
  --blue-100: #e5effb;
  --blue-50: #f3f8fe;
  --cyan: #38c3e0;
  --ink: #0e1f36;
  --text: #2b3d55;
  --muted: #62738b;
  --line: #dbe5f1;
  --white: #fff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(13, 74, 143, 0.08);
  --shadow-lg: 0 24px 60px rgba(6, 31, 61, 0.18);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue-600); color: var(--white); box-shadow: 0 8px 20px rgba(26, 111, 209, 0.3); }
.btn-primary:hover { background: var(--blue-700); }
.btn-white { background: var(--white); color: var(--blue-800); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 12px;
}
.eyebrow-light { color: var(--cyan); }

/* ---------- topbar & header ---------- */
.topbar { background: var(--blue-950); color: rgba(255, 255, 255, 0.75); font-size: 0.85rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px; }
.topbar-phones { display: flex; gap: 20px; }
.topbar-phones a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.topbar-phones svg { color: var(--cyan); }

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue-800); }
.logo-mark { width: 42px; height: 42px; stroke: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text b { font-size: 1.3rem; color: var(--ink); letter-spacing: -0.01em; }
.logo-text small { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; }
.logo-light { color: var(--blue-500); }
.logo-light .logo-text b { color: var(--white); }
.logo-light .logo-text small { color: rgba(255, 255, 255, 0.6); }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover { background: var(--blue-50); color: var(--blue-700); }
.nav .nav-phone { display: none; }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; padding: 0; }
.burger span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(circle at 85% 20%, rgba(56, 195, 224, 0.35), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(47, 134, 232, 0.35), transparent 50%),
    linear-gradient(135deg, var(--blue-900), var(--blue-800) 55%, var(--blue-700));
}
.hero::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -60px;
  height: 120px;
  background: var(--white);
  border-radius: 50% 50% 0 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  padding-block: 72px 120px;
}
.hero h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -0.025em; margin-bottom: 20px; }
.hero-sub { font-size: 1.12rem; max-width: 600px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts li {
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.hero-facts b { color: var(--white); font-size: 1.25rem; }
.hero-facts span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.hero-visual { display: flex; justify-content: center; }
.hero-art { width: 100%; max-width: 420px; height: auto; stroke: none; }

/* ---------- sections ---------- */
.section { padding-block: 96px; }
.section-tint { background: var(--blue-50); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* about */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.checklist svg { color: var(--white); background: var(--blue-600); border-radius: 50%; padding: 4px; width: 22px; height: 22px; stroke-width: 3; margin-top: 1px; }
.values { display: grid; gap: 16px; }
.value-card {
  position: relative;
  padding: 28px 28px 24px 92px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.value-card p { margin: 0; color: var(--muted); }
.value-num {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-weight: 800;
}

/* dental services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-card p { color: var(--muted); margin: 0; }
.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
  color: var(--white);
  font-size: 26px;
  margin-bottom: 18px;
}
.icon-badge-lg { width: 64px; height: 64px; font-size: 32px; border-radius: 18px; }

/* implant */
.implant-intro { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; margin-bottom: 64px; }
.allon-art { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--blue-50); box-shadow: var(--shadow); }
.allon-art img { width: 100%; height: auto; }
.steps-title { font-size: 1.4rem; margin-bottom: 24px; }
.steps { list-style: none; margin: 0 0 64px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: none; }
.step { padding: 24px; border-radius: var(--radius); background: var(--blue-50); border: 1px solid var(--line); }
.step h4 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.step-num { display: inline-block; font-weight: 800; color: var(--blue-600); font-size: 1.4rem; margin-bottom: 8px; }

.implant-prices {
  padding: 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: rgba(255, 255, 255, 0.8);
}
.implant-prices h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 24px; }
.implant-prices .muted { color: rgba(255, 255, 255, 0.6); margin: 16px 0 0; }
.implant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.implant-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.implant-card b { color: var(--white); font-size: 1.35rem; }

/* prices */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab {
  font: inherit;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
}
.tab:hover { border-color: var(--blue-500); color: var(--blue-700); }
.tab.is-active { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }
.tab-panel[hidden] { display: none; }
.js-tabs .panel-title { display: none; }
.panel-title { font-size: 1.4rem; margin: 8px 0 20px; }
.price-groups { columns: 2; column-gap: 24px; }
.price-group {
  break-inside: avoid;
  margin-bottom: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.price-group h4 { font-size: 1.1rem; margin-bottom: 4px; }
.price-note { font-size: 0.88rem; color: var(--muted); margin-bottom: 8px; }
.price-list { list-style: none; margin: 12px 0 0; padding: 0; }
.price-list li { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; border-top: 1px solid var(--blue-100); }
.price-list li:first-child { border-top: none; }
.pl-name { flex: 0 1 auto; }
.pl-dots { flex: 1 1 24px; border-bottom: 1px dotted var(--blue-200); transform: translateY(-4px); min-width: 16px; }
.pl-price { flex: 0 0 auto; font-weight: 700; color: var(--blue-800); white-space: nowrap; text-align: right; }
.disclaimer { font-size: 0.85rem; color: var(--muted); margin-top: 8px; }

/* departments */
.departments { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dept-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--white), var(--blue-50));
}
.dept-card .icon-badge { margin-bottom: 0; }
.dept-card p { color: var(--muted); }
.dept-lead { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue-600); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow:hover { gap: 10px; }

/* doctors */
.doctors { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.doctor-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.doctor-photo { aspect-ratio: 4 / 5; background: var(--blue-100); display: grid; place-items: center; color: var(--blue-200); font-size: 96px; }
.doctor-photo img { width: 100%; height: 100%; object-fit: cover; }
.doctor-body { padding: 20px 22px 24px; }
.doctor-body h3 { margin-bottom: 4px; }
.doctor-role { color: var(--blue-600); font-weight: 600; font-size: 0.92rem; margin-bottom: 10px; }
.doctor-bio { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--blue-50); border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 12px 16px; font-size: 0.9rem; color: var(--muted); }

/* contact & form */
.contact-section {
  background:
    radial-gradient(circle at 90% 10%, rgba(56, 195, 224, 0.25), transparent 40%),
    linear-gradient(135deg, var(--blue-900), var(--blue-800));
  color: rgba(255, 255, 255, 0.8);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info h2 { color: var(--white); }
.contact-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 1.05rem; }
.contact-list svg {
  width: 44px;
  height: 44px;
  padding: 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--cyan);
}
.contact-list a { color: var(--white); font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.form { background: var(--white); border-radius: 24px; padding: 36px; box-shadow: var(--shadow-lg); color: var(--text); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 134, 232, 0.15); background: var(--white); }
.field textarea { resize: vertical; }
.field.has-error input { border-color: #d64545; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 600; min-height: 1.6em; }
.form-status.ok { color: #1c8a52; }
.form-status.err { color: #c62f2f; }
.form-legal { font-size: 0.8rem; color: var(--muted); margin: 4px 0 0; }

/* footer */
.footer { background: var(--blue-950); color: rgba(255, 255, 255, 0.6); padding-top: 48px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-brand p { margin: 12px 0 0; font-size: 0.9rem; }
.footer-phones { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.footer-phones a { color: var(--white); font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.footer-bottom { display: flex; flex-direction: column; gap: 6px; padding-block: 20px 28px; font-size: 0.8rem; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav a { padding: 8px 9px; font-size: 0.9rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .burger { display: block; }
  .header-cta { display: none; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 1.05rem; border-radius: 10px; }
  .nav .nav-phone { display: block; color: var(--blue-700); font-weight: 700; }
  .hero-inner { grid-template-columns: 1fr; padding-block: 56px 110px; }
  .hero-visual { display: none; }
  .about,
  .implant-intro,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .services { grid-template-columns: 1fr 1fr; }
  .departments { grid-template-columns: 1fr; }
  .implant-grid { grid-template-columns: 1fr 1fr; }
  .price-groups { columns: 1; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .topbar-note { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar-phones { gap: 14px; font-size: 0.82rem; }
  .section { padding-block: 64px; }
  .services,
  .steps,
  .checklist,
  .implant-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-facts li { flex: 1 1 140px; }
  .dept-card { flex-direction: column; gap: 16px; padding: 24px; }
  .value-card { padding: 84px 22px 22px; }
  .implant-prices,
  .form { padding: 24px; }
  .price-group { padding: 20px; }
  .price-list li { flex-wrap: wrap; gap: 2px 8px; }
  .pl-dots { display: none; }
  .pl-name { flex: 1 1 100%; }
  .pl-price { text-align: left; }
  .footer-phones { text-align: left; }
}
