:root {
  color-scheme: light;
  --ink: #263e34;
  --accent: #355846;
  --muted: #56655b;
  --paper: #faf9f4;
  --line: #d8ddd1;
  --switch-bg: #eceee5;
  --label: #5b705e;
  --rule: #8d9e80;
  --emphasis: #526e53;
  --doctor-line: #b5aa83;
  --badge: #fffef8;
  --badge-border: #e2e2d5;
  --icon-bg: #eaf0e2;
  --section-bg: #eff2e9;
  --section-line: #dce2d5;
  --card-line: #d3dbcc;
  --card-bg: #fbfbf5;
  --hover-line: #99ab91;
  --hover-bg: #fffef9;
  --icon: #637b61;
  --chevron: #75876f;
  --serif: "Baskervville", Georgia, "Times New Roman", serif;
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
html[data-mode="stomatologie"] {
  --ink: #203e53;
  --accent: #295e80;
  --muted: #4c687a;
  --paper: #f5faff;
  --line: #cfdfeb;
  --switch-bg: #e4eff6;
  --label: #43677c;
  --rule: #8baabc;
  --emphasis: #467999;
  --doctor-line: #92b4c9;
  --badge: #fbfdff;
  --badge-border: #d2e1eb;
  --icon-bg: #e3f0f9;
  --section-bg: #e7f2fa;
  --section-line: #d3e4f0;
  --card-line: #c9dce9;
  --card-bg: #f9fcff;
  --hover-line: #7ca3bf;
  --hover-bg: #fff;
  --icon: #477691;
  --chevron: #64859a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body, h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #ad682e; outline-offset: 4px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: fixed; top: -5rem; left: 1rem; z-index: 3; background: white; padding: 1rem; }
.skip:focus { top: 1rem; }
.wrap { width: min(1232px, 89%); margin-inline: auto; }
header { border-bottom: 1px solid var(--line); }
.topbar { min-height: 87px; display: flex; align-items: center; gap: clamp(1rem, 4.4vw, 4.5rem); }
.brand { display: inline-flex; align-items: center; gap: .8rem; margin-right: auto; }
.brand-icon { flex: none; }
.brand strong { display: block; font: 500 1.65rem/1.02 var(--serif); letter-spacing: -.05em; }
.brand small { display: block; color: var(--muted); font-size: .79rem; margin-top: 4px; }
[hidden] { display: none !important; }
.department-switch { display: flex; align-items: stretch; border: 1px solid var(--line); background: var(--switch-bg); padding: 4px; border-radius: 28px; }
.department-switch a { display: grid; place-items: center; text-align: center; padding: .55rem 1rem; min-height: 38px; border-radius: 22px; font-weight: 600; font-size: .94rem; }
.department-switch a[aria-current] { color: white; background: var(--accent); }
.department-switch a:not([aria-current]):hover { text-decoration: underline; }
.languages { display: flex; align-items: center; }
.languages { background: var(--switch-bg); border: 1px solid var(--line); border-radius: 30px; padding: 3px; }
.languages button { font-size: .8rem; font-weight: 650; min-height: 31px; padding: .3rem .68rem; background: transparent; border: 0; border-radius: 25px; }
.languages [aria-pressed=true] { background: var(--accent); color: white; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4.1%; padding-block: clamp(3rem, 5vw, 5rem) clamp(3.6rem, 5.8vw, 5.3rem); }
.eyebrow { font-size: .77rem; line-height: 1.35; text-transform: uppercase; font-weight: 650; letter-spacing: .17em; color: var(--label); display: flex; align-items: center; gap: .8rem; }
.eyebrow > span:empty { width: 32px; height: 1px; background: var(--rule); }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { margin: 1.35rem 0 1.55rem; font-size: clamp(3.15rem, 5.25vw, 4.85rem); line-height: 1.075; letter-spacing: -.05em; }
h1 em { display: block; color: var(--emphasis); font-weight: 400; }
.doctor { display: grid; grid-template-columns: 1fr; gap: .28rem; font-size: 1.03rem; color: var(--muted); line-height: 1.5; }
.doctor-rule { width: 42px; height: 1px; background: var(--doctor-line); margin-bottom: .65rem; }
.doctor strong { font: 400 1.68rem/1.08 var(--serif); color: var(--ink); }
.contact-info svg { width: 18px; height: 18px; }
.hero-art { position: relative; }
.hero-art img { display: block; width: 100%; height: clamp(365px, 32vw, 440px); object-fit: cover; border-radius: 92px 14px 92px 14px; }
.photo-card { position: absolute; display: flex; gap: .85rem; align-items: center; background: var(--badge); padding: .85rem 1.25rem .85rem .9rem; border: 1px solid var(--badge-border); border-radius: 13px; box-shadow: 0 6px 18px #21342812; }
.hours { left: -1.15rem; bottom: 1.2rem; }
.card-icon { width: 40px; height: 40px; display: grid; place-items: center; background: var(--icon-bg); border-radius: 50%; }
.card-icon svg { width: 22px; height: 22px; }
.photo-card small { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .15rem; }
.hours b { font-size: .93rem; font-weight: 600; }
.hours i { font-style: normal; padding: 0 .4rem; }
.treatments { background: var(--section-bg); border-block: 1px solid var(--section-line); padding-block: 3.3rem 4rem; }
.centered { justify-content: center; text-align: center; }
h2 { font-size: clamp(2.5rem, 3.6vw, 3.4rem); letter-spacing: -.045em; line-height: 1.15; }
.acupuncture-guide {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "title title" "intro indications" "safety indications";
  align-items: start;
  gap: 1.75rem clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 5vw, 4.5rem);
  text-align: left;
  line-height: 1.65;
}
.acupuncture-guide h2 { grid-area: title; overflow-wrap: anywhere; }
.acupuncture-guide h3 { margin: 0 0 .75rem; font: 400 clamp(1.45rem, 2vw, 1.8rem)/1.24 var(--serif); }
.guide-intro { grid-area: intro; }
.guide-intro p + p { margin-top: .85rem; }
.guide-indications {
  grid-area: indications;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  background: var(--section-bg);
  border: 1px solid var(--section-line);
  border-radius: 12px 38px 12px 12px;
}
.guide-indications ul { margin: .85rem 0 0; padding-inline-start: 1.15rem; }
.guide-indications li { padding-inline-start: .25rem; }
.guide-indications li + li { margin-top: .45rem; }
.guide-indications li::marker { color: var(--emphasis); }
.guide-safety { grid-area: safety; border-top: 1px solid var(--doctor-line); padding-top: 1.2rem; }
.safety-mark { width: 34px; height: 34px; color: var(--accent); margin-bottom: .5rem; }
@media (max-width: 800px) {
  .acupuncture-guide { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "intro" "indications" "safety"; }
}
.treatments h2 { margin: .65rem 0 1.9rem; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; gap: clamp(.6rem, 1.15vw, 1.1rem); }
.dental-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
details { border: 1px solid var(--card-line); border-radius: 13px; background: var(--card-bg); transition: border-color .2s, background .2s; }
details:hover, details[open] { border-color: var(--hover-line); background: var(--hover-bg); }
summary { list-style: none; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.6rem .55rem 1rem; cursor: pointer; min-height: 192px; border-radius: inherit; position: relative; }
summary::-webkit-details-marker { display: none; }
summary svg { width: 70px; height: 62px; color: var(--icon); margin-bottom: .75rem; }
summary span { font: 400 clamp(1.18rem, 1.65vw, 1.5rem)/1.12 var(--serif); }
summary::after { content: ""; margin-top: auto; width: 7px; height: 7px; border: solid var(--chevron); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
details[open] summary::after { transform: rotate(225deg); }
details p { margin: 0 1rem; border-top: 1px solid var(--line); padding: .9rem 0 1.15rem; font-size: 1rem; line-height: 1.5; color: var(--muted); }
.treatment-price { display: block; margin-top: .55rem; color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; padding-block: 4rem; align-items: center; }
.contact h2 { margin: .55rem 0 .75rem; }
.contact-grid > div > p:last-child { color: var(--muted); line-height: 1.6; max-width: 29rem; }
.contact-info { border-left: 1px solid var(--line); padding-left: clamp(1rem, 5vw, 4rem); }
.contact-info address { display: flex; align-items: center; gap: .65rem; margin-bottom: .75rem; font-style: normal; }
.contact-info address svg { flex-shrink: 0; }
.contact-info p, .contact-info a { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.contact-info p { margin-bottom: .75rem; color: var(--muted); }
.contact-info a { width: fit-content; font: 400 1.75rem/1.5 var(--serif); }
.contact-info a:hover { text-decoration: underline; }
footer { border-top: 1px solid var(--line); padding-block: 1.4rem; display: flex; align-items: center; gap: .7rem; font-size: .85rem; color: var(--muted); }
footer img { flex-shrink: 0; }
html[lang=ru] h1 { font-size: clamp(2.7rem, 4.65vw, 4.15rem); }
@media(max-width: 930px) {
  .wrap { width: 91%; }
  .hero { gap: 3.5%; }
  .hero-art img { height: 365px; }
  h1 { font-size: clamp(2.9rem, 5.6vw, 3.35rem); }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width: 720px) {
  .wrap { width: min(90%, 540px); }
  .topbar { flex-wrap: wrap; gap: .8rem; padding-block: .85rem; }
  .department-switch { order: 1; width: 100%; }
  .department-switch a { flex: 1; padding-inline: .4rem; }
  html[data-mode="stomatologie"][lang="ru"] h1 { font-size: clamp(1.75rem, 7.4vw, 3.1rem); }
  .cards.dental-cards { grid-template-columns: 1fr; }
  .dental-cards summary { flex-direction: row; gap: .8rem; min-height: 76px; padding: .9rem; text-align: left; }
  .dental-cards summary svg { flex: none; width: 42px; height: 42px; margin: 0; }
  .dental-cards summary::after { flex: none; margin: 0 4px 0 auto; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding-block: 2.6rem 3rem; }
  h1 { font-size: clamp(2.85rem, 9.6vw, 3.85rem); margin-block: .9rem 1.25rem; }
  html[lang=ru] h1 { font-size: clamp(2.4rem, 8.15vw, 3.6rem); }
  .hero-art img { height: auto; aspect-ratio: 1.5; border-radius: 65px 12px 65px 12px; }
  .photo-card { padding: .6rem .8rem; }
  .hours { left: .65rem; bottom: -.75rem; }
  .treatments { padding-block: 2.65rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  summary { min-height: 168px; padding-top: 1.1rem; }
  summary span { font-size: 1.24rem; }
  .contact-grid { grid-template-columns: 1fr; padding-block: 2.8rem; gap: 1.5rem; }
  .contact-info { padding: 1.3rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media(max-width: 380px) {
  summary span { overflow-wrap: anywhere; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0s !important; }
}
