/* Readability and interaction refinements. Keep this after the visual layout. */
:root { --muted: #53665c; }
html { scrollbar-gutter: stable; scroll-padding-block: 120px 100px; }
body { font-size: 16px; }
[hidden] { display: none !important; }
main, section { outline-offset: 6px; }
/* Programmatic section focus announces the destination, not a giant control. */
main[tabindex="-1"]:focus, section[tabindex="-1"]:focus { outline: none; }
a, button, summary { touch-action: manipulation; }
a, button, summary, iframe { scroll-margin-block: 16px; }
.hero-copy, .hero-visual, .contact-copy, .map-panel,
.section-heading > *, .approach-grid > *, .approach-points article > div { min-width: 0; }
.hero-description, .section-description, .service-card p,
.approach-intro > p:not(.eyebrow), .approach-points p, .steps p,
.faq-intro, .faq-list details p, #dialog-description {
  font-size: 16px;
  line-height: 1.75;
}
.hero-description { max-width: 35em; }
.section-description { max-width: 360px; }
.hero-note, .values small, .service-footnote, .phone-caption,
.address span, .contact-note, .footer-main p, .dialog-note,
.care-label small, .map-caption small { font-size: 13px; line-height: 1.7; }
.values strong, .care-label strong, .address strong, .map-caption strong { font-size: 15px; }
.eyebrow, .hero-copy > .eyebrow, .section-heading .eyebrow,
.approach .eyebrow, .service-category { font-size: 11px; letter-spacing: 1.1px; }
.footer-bottom { font-size: 12px; flex-wrap: wrap; }
.telegram-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-size: 14px; text-decoration: underline; text-decoration-color: #b4c7ba; text-underline-offset: 5px; }
.telegram-link:hover { text-decoration-color: currentColor; }
.contact-copy > .telegram-link { margin-top: 10px; }
.photo-label { font-size: 11px; background: #fffffff0; }
.medical-note { color: var(--muted); font-size: 16px; }
.topline { font-size: 12px; }
.topline .container { min-height: 44px; height: auto; }
.topline a { min-height: 44px; }
.nav { gap: 24px; }
.nav a { display: flex; align-items: center; min-height: 44px; font-size: 14px; }
.header-contact > a { display: inline-flex; align-items: center; min-height: 44px; }
.header-contact > span { font-size: 12px; }
.header-contact { line-height: 1.3; }
.header-inner { gap: 24px; }
.button, .hero-actions .button, .contacts .button { font-size: 14px; min-height: 52px; }
.hero-actions { flex-wrap: wrap; gap: 16px 24px; }
.text-link, .hero-actions .text-link { font-size: 14px; min-height: 44px; }
.service-footnote a, .footer-main > a:not(.brand), .dialog-phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.back-top, .dialog-close { min-width: 44px; min-height: 44px; }
.values { gap: 16px; }
.values > div, .values > div:first-child { padding: 0 16px; }
.values small { max-width: 240px; }
.service-card { position: relative; min-width: 0; padding: 28px 24px 18px; }
.service-card h3 { font-size: 24px; letter-spacing: -.6px; }
.service-card p { margin-bottom: 22px; }
.service-card:focus-within { outline: 3px solid var(--red); outline-offset: 4px; }
.service-icon { flex-shrink: 0; }
.card-bottom { background: transparent; padding-inline: 0; padding-bottom: 0; font-size: 14px; min-height: 48px; }
.card-bottom::after { content: ''; position: absolute; inset: 0; border-radius: 9px; }
.card-bottom:focus-visible { outline: none; }
.round-arrow { flex-shrink: 0; }
.approach-points h3 { font-size: 21px; line-height: 1.35; }
.approach-points p { max-width: 430px; }
.approach-points article { gap: 18px; }
.steps h3 { font-size: 23px; }
.step-number { font-size: 14px; }
summary { font-size: 16px; min-height: 64px; line-height: 1.5; }
summary span { flex-shrink: 0; }
.large-phone { min-height: 48px; flex-wrap: wrap; gap: 12px; }
.address > div { min-width: 0; }
.map-panel { min-height: 460px; }
.map-caption small { line-height: 1.3; }
.map-caption > span:not(.map-logo):not(.map-arrow) { min-width: 0; }

/* A separate fixed toolbar keeps the close action reachable on short screens. */
dialog { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
dialog[open] { display: flex; flex-direction: column; }
.dialog-toolbar { display: flex; justify-content: flex-end; padding: 8px 10px 0; flex-shrink: 0; }
.dialog-close { position: static; }
.dialog-inner { min-height: 0; padding: 0 36px 32px; overflow-y: auto; overscroll-behavior: contain; }
dialog h2 { margin-top: 12px; }

@media (max-width: 1150px) {
  .nav { gap: 18px; }
  .header-contact { display: none; }
  .section-description .desktop-break { display: none; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values { gap: 0; }
  .values > div, .values > div:first-child { padding-inline: 12px; }
  .approach-grid { gap: 42px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
  .hero-description .desktop-break { display: none; }
  .hero-actions .end-arrow { margin-left: 0; }
  .values { grid-template-columns: 1fr; padding-block: 0; }
  .values > div, .values > div:first-child { justify-content: flex-start; padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .values > div:last-child { border-bottom: 0; }
  .values small { max-width: none; }
  .approach-grid, .faq-section, .contacts { grid-template-columns: 1fr; gap: 36px; }
  .approach-mark { display: none; }
  .approach-points p { max-width: 600px; }
  .faq-section h2 { font-size: 36px; }
  .contacts h2 { font-size: 38px; }
  .map-panel { min-height: 470px; }
  .steps { gap: 22px; }
}
@media (max-width: 640px) {
  html { scroll-padding-block: 92px calc(100px + env(safe-area-inset-bottom, 0px)); }
  .nav { max-height: calc(100dvh - 90px); overflow-y: auto; }
  .nav a { font-size: 16px; }
  .hero { display: flex; }
  h1 { font-size: clamp(40px, 10.8vw, 62px); letter-spacing: -1.8px; }
  .hero-copy > .eyebrow { align-items: flex-start; max-width: 310px; font-size: 10px; }
  .hero-copy .dot { margin-top: 5px; }
  .hero-description { max-width: none; }
  .hero-actions { gap: 12px; }
  .hero-actions .button { width: 100%; padding: 17px 15px; }
  .hero-actions .text-link { margin-top: 0; }
  .hero-note { align-items: flex-start; }
  .hero-note .icon { margin-top: 3px; }
  .image-shell { height: 410px; }
  .care-label { left: -14px; padding: 14px; gap: 10px; }
  .care-label strong { font-size: 14px; }
  .care-label small { font-size: 12px; }
  .photo-label { font-size: 10px; }
  .section-description { max-width: none; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .service-card { padding: 25px 22px 16px; }
  .service-icon { position: absolute; top: 20px; right: 19px; width: 34px; height: 34px; }
  .service-category { margin: 0 45px 13px 0; }
  .service-card h3 { font-size: 25px; }
  .service-card p { max-width: 27em; }
  .card-bottom { min-height: 50px; padding-top: 12px; }
  .service-footnote { gap: 7px; }
  .service-footnote p { max-width: none; }
  .approach-points article { gap: 14px; }
  .approach-points h3 { font-size: 21px; }
  .approach-icon { width: 36px; height: 36px; }
  .steps h3 { font-size: 24px; }
  .faq-section h2, .contacts h2 { font-size: 34px; }
  .faq-list details p { padding-right: 0; }
  .address strong { font-size: 15px; }
  .address span { font-size: 13px; }
  .large-phone { font-size: clamp(24px, 6.9vw, 30px); letter-spacing: -.7px; }
  .contacts .button { width: 100%; }
  .map-panel { min-height: 470px; }
  .footer-main > .brand { display: none; }
  .footer-main p { font-size: 13px; order: 0; width: auto; flex: 1; margin-right: 0; }
  .footer-main .back-top { order: 1; margin-left: 0; }
  .footer-main > a:not(.brand):not(.back-top) { order: 2; flex-basis: 100%; }
  .footer-bottom { font-size: 12px; }
  .medical-note { padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
  .mobile-call { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); font-size: 14px; min-height: 54px; }
  .dialog-inner { padding: 0 24px 26px; }
  .dialog-note { font-size: 13px; }
}
@media (max-height: 480px) {
  .header { position: relative; }
  html { scroll-padding-block: 16px; }
  .mobile-call { display: none; }
}
