/* Сайт клиники: обычный корпоративный сайт на несколько страниц.
   Белый фон, один фирменный цвет, фотографии, плотная информация. */
:root {
  --brand: #0B6E8E;
  --brand-dark: #07506A;
  --brand-tint: #E6F2F6;
  --navy: #0F2A3B;
  --text: #1B3445;
  --muted: #5A6D7A;
  --line: #DFE7EC;
  --tint: #F4F8FA;
  --white: #FFFFFF;
  --ok: #1F9D62;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(15, 42, 59, .35);
  --font: "Figtree", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--text); font: 400 1.0625rem/1.6 var(--font); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 2.9vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.muted { color: var(--muted); }
.icon { width: 20px; height: 20px; flex: none; stroke-width: 1.8; }

/* полоса «это демо» */
.demobar { background: #000; color: #fff; font: 500 .86rem/1.3 system-ui, sans-serif; }
.demobar__in { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 18px; padding-block: 7px; }
.demobar a { color: #fff; }
.demobar__back:hover { text-decoration: underline; }
.demobar__txt { flex: 1 1 14em; opacity: .75; }
.demobar__cta { padding: 6px 14px; border-radius: 999px; background: #17D878; color: #000 !important; font-weight: 700; white-space: nowrap; }
html.embedded .demobar { display: none; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 12px 24px; border: 1.5px solid var(--brand); border-radius: 10px; background: var(--brand); color: #fff; font: 600 1rem/1.2 var(--font); cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); box-shadow: 0 10px 22px -12px var(--brand-dark); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { background: var(--tint); border-color: var(--navy); color: var(--navy); box-shadow: none; }
.btn--light { background: #fff; color: var(--brand-dark); border-color: #fff; }
.btn--light:hover { background: var(--brand-tint); border-color: var(--brand-tint); color: var(--brand-dark); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; box-shadow: none; }
.btn--sm { min-height: 42px; padding: 9px 16px; font-size: .95rem; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; }
.link .icon { width: 17px; height: 17px; transition: transform .2s ease; }
.link:hover .icon { transform: translateX(4px); }

/* верхняя строка и шапка */
.util { background: var(--navy); color: #C5D3DC; font-size: .88rem; }
.util__in { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; min-height: 40px; }
.util__list { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.util__list li, .util__list a { display: inline-flex; align-items: center; gap: 7px; }
.util .icon { width: 15px; height: 15px; }
.util a:hover { color: #fff; }
.util__lang { display: inline-flex; gap: 2px; font-weight: 600; }
.util__lang a { padding: 2px 7px; border-radius: 5px; }
.util__lang a[aria-current] { background: rgba(255, 255, 255, .16); color: #fff; }

.hdr { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.hdr.is-stuck { box-shadow: 0 8px 24px -18px rgba(15, 42, 59, .5); }
.hdr__in { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.22rem; color: var(--navy); letter-spacing: -.02em; white-space: nowrap; }
.logo svg { width: 38px; height: 38px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { padding: 9px 13px; border-radius: 8px; font-weight: 500; color: var(--text); transition: background-color .15s ease, color .15s ease; }
.nav a:hover { background: var(--tint); color: var(--navy); }
.nav a[aria-current] { color: var(--brand); font-weight: 600; }
.hdr__cta { margin-left: 8px; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); cursor: pointer; align-items: center; justify-content: center; }

/* первый экран */
.hero { padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5vw, 72px); background: linear-gradient(180deg, var(--tint), #fff 78%); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__txt { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero__open { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .92rem; font-weight: 500; }
.hero__open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(31, 157, 98, .18); }
.hero__sub { max-width: 34em; font-size: 1.15rem; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 10px; padding-top: 24px; border-top: 1px solid var(--line); }
.trust li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.trust .icon { width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.trust b { display: block; color: var(--navy); font-weight: 600; line-height: 1.3; }
.trust span { font-size: .93rem; color: var(--muted); }
.hero__media { position: relative; min-width: 0; }
.hero__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 22px; }
.float { position: absolute; left: -22px; bottom: 30px; display: flex; align-items: center; gap: 13px; padding: 14px 18px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); border: 1px solid var(--line); }
.float__i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--brand-tint); color: var(--brand); }
.float small { display: block; color: var(--muted); font-size: .85rem; }
.float b { color: var(--navy); font-weight: 600; }

/* быстрая запись */
.book { margin-top: clamp(28px, 4vw, 44px); padding: clamp(18px, 2.4vw, 26px); border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.book__t { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 600; color: var(--navy); }
.book__t .icon { color: var(--brand); }
.book__row { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 12px; align-items: end; }
.book__note { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font: 400 1rem/1.4 var(--font); transition: border-color .15s ease, box-shadow .15s ease; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.form__err { color: #B42318; font-weight: 600; font-size: .95rem; }

/* разделы */
.sec { padding-block: clamp(52px, 7vw, 96px); }
.sec--tint { background: var(--tint); }
.sec__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 40px; margin-bottom: clamp(26px, 3.6vw, 44px); }
.sec__head p { max-width: 34em; margin-top: 10px; color: var(--muted); }

.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.spec-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.spec-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.spec-card__i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); }
.spec-card__i .icon { width: 23px; height: 23px; }
.spec-card p { color: var(--muted); font-size: .98rem; flex: 1; }
.spec-card .link { font-size: .95rem; }

.about { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about__media { position: relative; padding: 0 56px 56px 0; }
.about__media img { width: 100%; border-radius: 18px; object-fit: cover; }
.about__media img:first-child { aspect-ratio: 4 / 4.2; }
.about__media img:last-child { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; border: 6px solid #fff; box-shadow: var(--shadow); }
.about__txt { display: flex; flex-direction: column; gap: 18px; }
.checks { display: flex; flex-direction: column; gap: 11px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; }
.checks .icon { color: var(--brand); margin-top: 3px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.stats b { display: block; font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 700; color: var(--brand); line-height: 1.1; letter-spacing: -.02em; }
.stats span { font-size: .93rem; color: var(--muted); }

.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 20px; }
.doc { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.doc__ph { overflow: hidden; border-radius: var(--radius); background: var(--brand-tint); }
.doc__ph img { width: 100%; aspect-ratio: 4 / 4.8; object-fit: cover; object-position: 50% 18%; transition: transform .5s ease; }
.doc:hover .doc__ph img { transform: scale(1.04); }
.doc__spec { color: var(--brand); font-weight: 600; font-size: .93rem; }
.doc p { color: var(--muted); font-size: .96rem; }
.doc__lang { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); }
.doc__lang .icon { width: 15px; height: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: s; }
.steps li { position: relative; counter-increment: s; padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; }
.steps p { margin-top: 6px; color: var(--muted); }

.price { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price caption { text-align: left; padding: 0 0 12px; font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.price th, .price td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.price tr:last-child td { border-bottom: 0; }
.price thead th { background: var(--tint); font-size: .88rem; font-weight: 600; color: var(--muted); }
.price td:last-child, .price th:last-child { text-align: right; white-space: nowrap; font-weight: 600; color: var(--navy); }
.price tbody tr:hover { background: var(--tint); }
.pricewrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pricewrap .price { border: 0; border-radius: 0; }
.two { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.two__side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }

.insure { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: clamp(22px, 3vw, 34px); border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.insure__i { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--brand-tint); color: var(--brand); }
.insure__i .icon { width: 30px; height: 30px; }
.insure p { margin-top: 6px; color: var(--muted); max-width: 44em; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; font-weight: 600; font-size: 1.08rem; color: var(--navy); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding-bottom: 20px; max-width: 46em; color: var(--muted); }

.band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: clamp(28px, 4.4vw, 56px); border-radius: 22px; background: radial-gradient(120% 160% at 100% 0, #0E86AC 0, var(--brand-dark) 55%, #05394D 100%); color: #D6E9F0; }
.band h2 { color: #fff; }
.band p { margin-top: 8px; }
.band__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* внутренние страницы */
.phead { padding-block: clamp(28px, 4vw, 52px); background: var(--tint); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: .92rem; color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.phead p { max-width: 42em; margin-top: 12px; font-size: 1.1rem; color: var(--muted); }

.spec { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 60px); align-items: center; padding-block: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.spec:last-child { border-bottom: 0; }
.spec:nth-child(even) .spec__ph { order: 2; }
.spec__ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.spec__txt { display: flex; flex-direction: column; gap: 14px; }
.spec__h { display: flex; align-items: center; gap: 14px; }
.spec__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.spec__price { font-weight: 600; color: var(--navy); }
.spec__price b { font-size: 1.3rem; color: var(--brand); }

.note { display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-dark); font-size: .97rem; }
.note .icon { margin-top: 2px; }
.prices { display: flex; flex-direction: column; gap: 36px; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.info__c { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.info__c .icon { color: var(--brand); width: 22px; height: 22px; margin-bottom: 4px; }
.info__c b { color: var(--navy); }
.info__c a:hover { color: var(--brand); }
.hours { width: 100%; border-collapse: collapse; margin-top: 8px; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 600; color: var(--navy); }
.card { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.map { width: 100%; height: clamp(280px, 38vw, 420px); border: 0; border-radius: 18px; display: block; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ways li { display: flex; gap: 12px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.ways .icon { color: var(--brand); margin-top: 3px; }
.ways b { display: block; color: var(--navy); }
.ways span { color: var(--muted); font-size: .96rem; }

/* подвал */
.ftr { background: var(--navy); color: #B9C8D1; font-size: .96rem; }
.ftr__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px 40px; padding-block: clamp(40px, 5vw, 64px); }
.ftr .logo { color: #fff; }
.ftr h4 { margin-bottom: 14px; color: #fff; font-size: 1rem; font-weight: 600; }
.ftr ul { display: flex; flex-direction: column; gap: 9px; }
.ftr a:hover { color: #fff; }
.ftr__about { margin-top: 14px; max-width: 26em; }
.ftr__c li { display: flex; gap: 10px; align-items: flex-start; }
.ftr__c .icon { width: 17px; height: 17px; margin-top: 4px; color: #7FB6C9; }
.ftr__bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
.ftr__bot ul { flex-direction: row; flex-wrap: wrap; gap: 6px 20px; }
.ftr__demo { padding-bottom: 18px; font-size: .84rem; opacity: .7; }

.wa { position: fixed; right: 18px; bottom: 18px; z-index: 30; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 12px 26px -8px rgba(0, 0, 0, .4); transition: transform .2s ease; }
.wa:hover { transform: scale(1.07); }
.wa .icon { width: 27px; height: 27px; }
html.embedded .wa { display: none; }

/* спокойное появление при прокрутке */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 80ms); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

@media (max-width: 1020px) {
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 10px clamp(18px, 4vw, 40px) 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(15, 42, 59, .4); }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .burger { display: inline-flex; }
  .hdr__cta { margin-left: 0; }
  .hero__in, .about, .two, .contact, .spec { grid-template-columns: minmax(0, 1fr); }
  .spec:nth-child(even) .spec__ph { order: 0; }
  .two__side { position: static; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .insure, .band { grid-template-columns: minmax(0, 1fr); }
  .float { left: 12px; }
  .demobar__txt { display: none; }
  .demobar__cta { margin-left: auto; }
}
@media (max-width: 640px) {
  .util__list:first-child li:nth-child(2) { display: none; }
  .hdr__cta { display: none; }
  .trust, .steps, .ways, .specs, .info, .form__row, .book__row, .ftr__top { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__cta .btn, .band__cta .btn { flex: 1 1 100%; }
  .about__media { padding: 0 28px 28px 0; }
  .price th, .price td { padding: 13px 14px; }
}

@media (max-width: 640px) {
  .util__in { padding-block: 8px; }
}

/* ---- узкие телефоны: длинное слово переносится, а не вылезает из блока ---- */
h1, h2, h3, h4, p, li, dt, dd, td, th, label, b, strong, small, a { overflow-wrap: break-word; }

/* ---- телефоны: по ссылкам и кнопкам легче попасть пальцем ---- */
@media (max-width: 700px) {
  .demobar__back, .demobar__cta { display: inline-flex; align-items: center; min-height: 40px; }
  footer a:not([class*="btn"]):not([class*="logo"]):not([class*="brand"]):not([class*="marca"]) { display: inline-block; padding-block: 7px; }
  .link, .tl, .more, .tlink, .lnk, .band__link { display: inline-block; padding-block: 9px; }
}

@media (max-width: 700px) {
  .util__lang a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; }
}
