:root {
  color-scheme: light;
  --ink: #21243a;
  --muted: #565970;
  --paper: #faf9ff;
  --navy: #15182d;
  --navy-text: #f6f5ff;
  --lavender: #c7beff;
  --accent: #584ca5;
  --line: #deddee;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--sans); color: var(--ink); background: var(--paper); }
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #8371d3; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 1.2em; height: 1.2em; flex: none; }
p, h1, h2, h3 { margin: 0; }
section[id] { scroll-margin-top: 22px; }
.shell { width: min(100% - 112px, 1320px); margin-inline: auto; }
.skip { position: absolute; z-index: 2; transform: translateY(-150%); padding: 10px 18px; background: white; }
.skip:focus { transform: translateY(0); }

.header, .hero, .contact { color: var(--navy-text); background: var(--navy); }
.header { border-bottom: 1px solid #30334a; }
.top-bar { min-height: 78px; display: flex; justify-content: space-between; align-items: center; gap: 26px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 21px; font-weight: 690; letter-spacing: -.045em; white-space: nowrap; }
.logo svg { width: 29px; height: 29px; }
.header .logo svg, .header .dot { color: var(--lavender); }
.main-nav, .header-actions { display: flex; align-items: center; gap: 26px; }
.main-nav { font-size: .9rem; color: #e5e2f5; }
.main-nav a, .language a, .top-telegram { text-decoration: none; }
.main-nav a:hover { color: var(--lavender); }
.language { display: flex; align-items: center; padding: 3px; border: 1px solid #444762; border-radius: 8px; }
.language a { display: grid; place-items: center; height: 34px; min-width: 36px; border-radius: 5px; color: #dfdced; font-size: .875rem; font-weight: 630; }
.language a:hover { background: #30334d; }
.language a[aria-current] { color: var(--navy); background: var(--lavender); }
.top-telegram { display: flex; align-items: center; gap: 8px; color: #ece9ff; font-size: .9rem; font-weight: 650; min-height: 44px; }
.top-telegram:hover { color: var(--lavender); }

.hero { background: radial-gradient(ellipse at 62% 78%, #252541 0, var(--navy) 66%); }
.hero-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(30px, 4vw, 64px); align-items: center; padding-block: 66px 76px; }
.hero-copy { padding-block: 12px; }
.hero-media { position: relative; overflow: hidden; background: #283442; border: 1px solid #595d77; border-radius: 18px; }
.hero-media img { width: 100%; height: clamp(360px, 34vw, 510px); object-fit: cover; object-position: 59% center; }
.hero-media::after { content: ""; position: absolute; inset: 12px; pointer-events: none; border: 1px solid #e9e6ff30; border-radius: 11px; }
.eyebrow { display: flex; align-items: center; gap: 11px; font-size: .875rem; line-height: 1.4; letter-spacing: .14em; font-weight: 730; color: var(--accent); }
.eyebrow span { width: 25px; height: 1px; background: currentColor; }
.hero .eyebrow { color: var(--lavender); }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; line-height: 1.05; }
h1 { font-size: clamp(3.2rem, 5.28vw, 5.65rem); margin-block: 18px 22px; }
h1 em { display: block; font-weight: inherit; color: var(--lavender); }
.hero-intro { max-width: 490px; color: #dedcee; font-size: clamp(1rem, 1.36vw, 1.125rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 51px; padding: 10px 18px; border: 1px solid transparent; border-radius: 8px; text-align: center; text-decoration: none; font-size: .94rem; font-weight: 700; line-height: 1.35; }
.primary { color: #202039; background: var(--lavender); }
.primary:hover { background: #ddd7ff; }
.secondary { border-color: #62647f; color: var(--navy-text); }
.secondary:hover { background: #353654; }
.hero a:focus-visible, .header a:focus-visible, .contact a:focus-visible { outline-color: #e0d7ff; }

.section { padding-block: 75px; }
.section h2, .contact h2 { font-size: clamp(2.45rem, 4vw, 4.15rem); }
.section .eyebrow + h2 { margin-top: 12px; }
.section-intro { margin-top: 14px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 22px; margin-top: 34px; }
.treatment { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.treatment img { width: 100%; aspect-ratio: 1.75; object-fit: cover; background: #ececf8; }
.card-body { padding: 20px 19px 24px; }
h3 { font-size: 1.1rem; line-height: 1.3; font-weight: 710; letter-spacing: -.026em; }
.card-body p, .steps p { margin-top: 10px; color: var(--muted); }

.visit { background: #efedf9; border-block: 1px solid #e5e2f1; }
.visit-grid, .faq { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 8%; }
.steps { padding: 0; margin: 0; list-style: none; }
.steps li { display: flex; align-items: start; gap: 17px; padding-block: 19px; border-bottom: 1px solid #d8d4ea; }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.step-icon { display: grid; place-items: center; flex: none; width: 43px; height: 43px; color: #56499b; background: #e4dff8; border-radius: 9px; }
.step-icon svg { width: 22px; height: 22px; }
.steps p { margin-top: 5px; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 0; cursor: pointer; font-weight: 670; list-style: none; }
summary::-webkit-details-marker { display: none; }
.faq details p, .card-body details p { padding: 0 26px 17px 0; color: var(--muted); }
.plus { position: relative; width: 15px; height: 15px; color: var(--accent); flex: none; }
.plus::before, .plus::after { position: absolute; left: 0; top: 7px; width: 15px; height: 1.5px; background: currentColor; content: ""; }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: none; }

.card-body details { margin-top: 15px; border-top: 1px solid var(--line); }
.card-body summary { padding: 13px 0 0; color: var(--accent); line-height: 1.45; }
.card-body details p { padding: 0; }

.signs { background: #f4f1fb; border-top: 1px solid #e6e2f4; }
.signs-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 6%; align-items: center; }
.signs-list { padding: 0; margin: 21px 0; list-style: none; }
.signs-list li { position: relative; padding: 12px 0 12px 20px; border-bottom: 1px solid var(--line); }
.signs-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); position: absolute; top: 21px; left: 0; }
.signs-list p { margin-top: 4px; color: var(--muted); }
.urgent { border-left: 3px solid #975677; padding: 8px 14px; background: #f7eaf1; color: #612d49; border-radius: 0 6px 6px 0; }
.anatomy { margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.anatomy img { width: 100%; }
.anatomy figcaption { padding: 18px 21px; }
.anatomy ul { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 9px 0 0; list-style: none; color: var(--muted); font-size: .875rem; }
.anatomy li { display: flex; align-items: center; gap: 7px; }
.anatomy li span { display: inline-block; flex: none; width: 11px; height: 11px; border: 1px solid #7f75ac; border-radius: 50%; }
.enamel { background: #faf9ff; }
.dentine { background: #b9ade4; }
.pulp { background: #a75d80; }

.contact-body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 8%; align-items: center; padding-block: 68px; }
.contact-copy p { margin: 13px 0 25px; color: #ddd9ef; }
.contact-form { padding: clamp(20px, 4vw, 34px); color: var(--ink); background: var(--paper); border-radius: 14px; }
.contact-form[hidden] { display: none; }
.contact-fields { display: grid; gap: 7px; }
.contact-fields label { margin-top: 9px; font-size: .93rem; font-weight: 650; }
.contact-fields label:first-child { margin-top: 0; }
.contact-fields input, .contact-fields select, .contact-fields textarea { width: 100%; min-height: 45px; border: 1px solid #c4c0d9; border-radius: 7px; padding: 9px 12px; background-color: #fff; color: var(--ink); font: inherit; }
.contact-fields select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: right 17px center, right 12px center; background-size: 5px 5px; background-repeat: no-repeat; }
.contact-fields textarea { resize: vertical; }
.contact-fields textarea::placeholder { color: var(--muted); opacity: 1; }
.contact-form .button { margin-top: 18px; cursor: pointer; font-family: inherit; }
.contact-form p { margin-top: 8px; color: var(--muted); font-size: .875rem; }
.footer-body { display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.footer-body { padding-block: 25px; }
.footer .logo svg, .footer .dot { color: var(--accent); }
.references { text-align: right; color: var(--muted); font-size: .875rem; }
.references a { text-underline-offset: 3px; }
.references span { padding-inline: 3px; }

@media (max-width: 1120px) {
  .shell { width: min(100% - 72px, 1320px); }
  .main-nav, .header-actions { gap: 16px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .treatment img { aspect-ratio: 1.9; object-fit: cover; }
}

@media (max-width: 820px) {
  .shell { width: calc(100% - 48px); }
  .main-nav { order: 3; width: 100%; gap: 25px; padding-bottom: 13px; }
  .top-bar { flex-wrap: wrap; gap: 4px 14px; padding-top: 11px; }
  .hero-body { grid-template-columns: 1fr; gap: 25px; padding-block: 40px; }
  .hero-media img { height: auto; max-height: 455px; aspect-ratio: 1.58; }
  .hero-copy { padding: 0; }
  .hero-intro { max-width: 550px; }
  h1 { font-size: clamp(3.05rem, 8.3vw, 4.65rem); }
  .section { padding-block: 54px; }
  .visit-grid, .faq, .signs-grid, .contact-body { grid-template-columns: 1fr; gap: 27px; }
}

@media (max-width: 480px) {
  .shell { width: calc(100% - 36px); }
  .logo { font-size: 19px; gap: 6px; }
  .logo svg { width: 23px; height: 23px; }
  .main-nav { flex-wrap: wrap; column-gap: 19px; row-gap: 3px; }
  .top-telegram { display: none; }
  h1 { font-size: clamp(2.45rem, 10vw, 3.7rem); margin-block: 15px; }
  .hero-actions { margin-top: 22px; }
  .hero-body { padding-block: 33px; }
  .hero-media { border-radius: 12px; }
  .hero-media::after { inset: 7px; border-radius: 7px; }
  .cards { grid-template-columns: 1fr; margin-top: 23px; }
  .treatment img { aspect-ratio: 1.6; }
  .contact-body { padding-block: 48px; }
  .footer-body { align-items: flex-start; flex-direction: column; gap: 17px; }
  .references { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
