/* ==========================================================================
   Скорая наркология — версия 2, в духе apple.com
   Светлые и чёрные блоки, крупные заголовки по центру, плитки, минимум декора.
   3D-узел — «продукт» на чёрной сцене в начале.
   ========================================================================== */
:root {
  --white: #fff;
  --gray: #f5f5f7;
  --gray2: #e8e8ed;
  --ink: #1d1d1f;
  --ink2: #6e6e73;
  --ink3: #86868b;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-h: #0077ed;
  --link: #0066cc;
  --link-d: #2997ff;
  --red: #e30000;
  --coral: #ff5a5f;
  --violet: #8a5cff;
  --sky: #2f8cff;
  --grad: linear-gradient(90deg, #ff5a5f 0%, #b45cff 45%, #2f8cff 100%);
  --mint: #e4f2e3;   /* светло-зелёный — вместо чёрного */
  --butter: #fbf3d2; /* светло-жёлтый — вместо чёрного */
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
  --r: 28px;
  --ease: cubic-bezier(.25, .1, .25, 1);
  --nav: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 17px/1.47 var(--font); letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  font-feature-settings: 'cv11', 'ss01'; /* Inter: ближе к SF */
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1068px; margin: 0 auto; padding: 0 22px; }
.wrap--text { max-width: 820px; }
.center { text-align: center; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- типографика ---------- */
.eyebrow { font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--ink2); margin-bottom: 10px; }
.eyebrow--red { color: var(--red); }
.eyebrow--onDark { color: var(--ink2); }
.h2 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.06; font-weight: 600; letter-spacing: -.035em; }
.h2--xl { font-size: clamp(44px, 7vw, 88px); line-height: 1.03; }
.sec__lead { font-size: clamp(19px, 1.7vw, 21px); line-height: 1.42; color: var(--ink2); max-width: 640px; margin-top: 18px; font-weight: 400; letter-spacing: -.016em; }
.sec__lead.center { margin-left: auto; margin-right: auto; }

/* ---------- кнопки (как у Apple: таблетки) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px; border-radius: 980px;
  font-size: 17px; font-weight: 400; letter-spacing: -.022em; line-height: 1.18;
  text-decoration: none !important; transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease);
}
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-h); }
.btn--outline { border: 1px solid var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn--onDark { border-color: var(--link-d); color: var(--link-d); }
.btn--onDark:hover { background: var(--link-d); color: #000; }
.btn--lg { font-size: 21px; padding: 16px 32px; min-height: 56px; }
.btn--full { width: 100%; }
.btn:active { transform: scale(.98); }

/* ---------- меню ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav);
  background: rgba(250, 250, 252, .8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
}
.nav__in { max-width: 1068px; height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.nav__brand:hover { text-decoration: none; }
.nav__mark { width: 24px; height: 24px; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { color: rgba(0, 0, 0, .8); font-size: 12px; letter-spacing: -.01em; transition: color .2s; }
.nav__links a:hover { color: #000; text-decoration: none; }
.nav__call { display: flex; align-items: center; gap: 7px; color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.nav__dot { width: 7px; height: 7px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 3px rgba(48, 209, 88, .2); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(48, 209, 88, 0); } }

.ribbon { background: var(--white); text-align: center; padding: 14px 22px; font-size: 14px; letter-spacing: -.016em; color: var(--ink); border-bottom: 1px solid var(--gray2); }

/* ---------- 1. сцена ---------- */
.stage { position: relative; min-height: min(720px, calc(100svh - var(--nav))); background: var(--mint); color: var(--ink); }
.stage__sticky { position: relative; height: min(720px, calc(100svh - var(--nav))); min-height: 560px; overflow: hidden; }
.stage__canvas, .stage__fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__fallback { z-index: -1; background: radial-gradient(40% 40% at 50% 70%, rgba(138, 92, 255, .18), transparent 70%), radial-gradient(30% 30% at 60% 75%, rgba(255, 90, 95, .12), transparent 70%), var(--mint); }
.hero { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 22px; pointer-events: none; }
.hero > * { pointer-events: auto; }
.hero__title { font-size: clamp(48px, 8vw, 96px); line-height: 1.02; font-weight: 600; letter-spacing: -.045em; color: var(--ink); }
.hero__sub { margin-top: 14px; font-size: clamp(21px, 2.2vw, 28px); line-height: 1.2; font-weight: 400; color: var(--ink2); letter-spacing: -.025em; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; max-width: 640px; }
.chips button { padding: 9px 16px; border-radius: 980px; font-size: 14px; color: var(--ink); background: rgba(255, 255, 255, .6); border: 1px solid rgba(0, 0, 0, .08); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: background .25s; }
.chips button:hover { background: #fff; }

.story { display: none; }
.story__line {
  position: absolute; left: 22px; right: 22px; top: 50%; transform: translateY(-50%); opacity: 0; visibility: hidden;
  text-align: center; font-size: clamp(36px, 5.6vw, 72px); line-height: 1.06; font-weight: 600; letter-spacing: -.04em; color: var(--ink);
}
.story__line .dim { color: var(--ink3); }
.story__line--final { pointer-events: auto; color: var(--ink); }
.story__line--final p { margin-bottom: 30px; }
.stage__hint { position: absolute; z-index: 2; left: 50%; bottom: 10px; width: 1px; height: 0; }

/* ---------- секции ---------- */
.sec { padding: clamp(48px, 6vw, 72px) 0; }
.sec--white { background: var(--white); }
.sec--gray { background: var(--gray); }
.sec--black { background: var(--butter); color: var(--ink); }
.sec__head { margin-bottom: clamp(26px, 4vw, 42px); }
.sec__head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.sec__head.row .sec__lead { margin-top: 0; max-width: 420px; }

/* ---------- 2. плитки услуг ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 42px 28px 0; min-height: 340px; border-radius: var(--r); background: var(--gray); overflow: hidden; color: var(--ink);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tile:hover { transform: scale(1.012); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .22); }
.tile--dark { background: var(--mint); }
.tile--butter { background: var(--butter); }
.tile__no { font-size: 14px; font-weight: 600; color: var(--ink3); margin-bottom: 8px; }
.tile h3 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.08; font-weight: 600; letter-spacing: -.035em; }
.tile__lead { margin-top: 10px; font-size: 19px; line-height: 1.35; color: var(--ink2); max-width: 400px; }
.tile__links { display: flex; gap: 22px; margin-top: 18px; font-size: 17px; flex-wrap: wrap; justify-content: center; }
.tile__links button, .tile__links a { color: var(--link); }
.tile__links button:hover { text-decoration: underline; }
.tile__art { margin-top: auto; width: 100%; height: 120px; display: grid; place-items: center; position: relative; }
.tile__art::before { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, var(--h1) 0%, transparent 65%); opacity: .35; filter: blur(10px); transition: transform .8s var(--ease), opacity .8s; }
.tile:hover .tile__art::before { transform: scale(1.18); opacity: .5; }
.tile__art svg { position: relative; width: 90px; height: 90px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .8s var(--ease); }
.tile:hover .tile__art svg { transform: translateY(-6px) scale(1.04); }
.tile__count { position: absolute; top: 22px; right: 26px; font-size: 12px; font-weight: 600; color: var(--ink3); }

/* ---------- 3. галерея шагов ---------- */
.gallery__track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px max(22px, calc((100vw - 1024px) / 2)) 30px; scroll-padding: 0 max(22px, calc((100vw - 1024px) / 2));
}
.gallery__track::-webkit-scrollbar { display: none; }
.gcard {
  position: relative; flex: 0 0 clamp(280px, 30vw, 372px); min-height: 480px; padding: 34px 32px; border-radius: var(--r);
  background: var(--white); scroll-snap-align: start; display: flex; flex-direction: column; box-shadow: 2px 4px 12px rgba(0, 0, 0, .08);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.gcard:hover { transform: scale(1.015); box-shadow: 2px 4px 16px rgba(0, 0, 0, .16); }
.gcard__t { font-size: 14px; font-weight: 600; color: var(--ink2); }
.gcard h3 { font-size: 28px; line-height: 1.14; font-weight: 600; letter-spacing: -.03em; margin: 8px 0 12px; }
.gcard p { color: var(--ink2); font-size: 17px; }
.gcard__ic { margin-top: auto; width: 88px; height: 88px; fill: none; stroke: url(#brandG); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.gallery__nav { display: flex; justify-content: flex-end; gap: 14px; }
.circ { width: 44px; height: 44px; border-radius: 50%; background: rgba(210, 210, 215, .64); display: grid; place-items: center; transition: background .25s; }
.circ:hover { background: rgba(223, 223, 227, .9); }
.circ svg { width: 18px; height: 18px; fill: none; stroke: rgba(0, 0, 0, .56); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.circ:disabled { opacity: .4; cursor: default; }

/* ---------- 4. срочно ---------- */
.symptoms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; border-top: 1px solid var(--line); }
.symptoms li { display: flex; gap: 12px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.symptoms li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; transform: translateY(-1px); }
.sos { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; border-radius: 22px; background: #fff2f2; }
.sos__t { font-weight: 600; font-size: 19px; margin-bottom: 4px; }
.sos p { color: var(--ink); }
.sos a:not(.btn) { color: var(--red); font-weight: 600; }

/* ---------- 5. анонимно ---------- */
.anon { padding: clamp(120px, 16vw, 200px) 0; }
.anon__text { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.12; font-weight: 600; letter-spacing: -.035em; }
.anon__text .wd { color: #cfc7a2; transition: color .3s; }
.anon__text .wd.on { color: var(--ink); }
.anon__text .wd.on.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 6. врачи (без фото) ---------- */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.doc { padding: 36px 32px 34px; border-radius: var(--r); background: var(--gray); display: flex; flex-direction: column; min-height: 260px; }
.doc__role { font-size: 14px; font-weight: 600; color: var(--ink2); margin-bottom: 10px; }
.doc__name { font-size: 28px; line-height: 1.12; font-weight: 600; letter-spacing: -.03em; }
.doc__note { margin-top: auto; padding-top: 22px; font-size: 14px; color: var(--ink2); }

/* ---------- 7. бенто стационара ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bcard { padding: 34px 32px; border-radius: var(--r); background: var(--white); min-height: 250px; display: flex; flex-direction: column; }
.bcard--wide { grid-column: span 2; }
.bcard--dark { background: var(--mint); }
.bcard__big { font-size: clamp(56px, 7vw, 96px); line-height: 1; font-weight: 700; letter-spacing: -.05em; margin-bottom: auto; padding-bottom: 24px; }
.bcard__ic { width: 56px; height: 56px; fill: none; stroke: url(#brandG); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; }
.bcard h3 { font-size: 21px; font-weight: 600; letter-spacing: -.025em; margin: 22px 0 6px; }
.bcard p { color: var(--ink2); }

.bcard .grad { color: transparent; } /* иначе .bcard p перекрашивает градиентный текст в серый */
@media (min-width: 901px) { .bento .bcard:last-child { grid-column: span 3; } }

/* ---------- 8. вопросы ---------- */
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.025em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--ink2), var(--ink2)) center / 14px 2px no-repeat, linear-gradient(var(--ink2), var(--ink2)) center / 2px 14px no-repeat; transition: transform .35s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { color: var(--ink2); padding: 0 40px 26px 0; font-size: 17px; }

/* ---------- 9. контакты ---------- */
.final__phone { display: inline-block; margin-top: 18px; font-size: clamp(32px, 4.6vw, 56px); font-weight: 600; letter-spacing: -.04em; color: var(--ink); }
.final__phone:hover { text-decoration: none; color: var(--blue); }
.final__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.final__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: stretch; max-width: 900px; margin: 0 auto; }
.card { background: var(--white); border-radius: var(--r); padding: 34px 32px; }
.help { display: flex; flex-direction: column; gap: 20px; }
.help h3, .info h3 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.help__lead { color: var(--ink2); font-size: 16px; line-height: 1.5; }
.help__steps { display: grid; gap: 20px; list-style: none; }
.help__steps li { display: flex; align-items: flex-start; gap: 14px; }
.help__number { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; background: var(--mint); color: var(--ink); font-size: 13px; font-weight: 600; }
.help__steps h4 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.help__steps p { margin-top: 4px; color: var(--ink2); font-size: 15px; line-height: 1.45; }
.help .btn { margin-top: auto; }
.help__note { text-align: center; font-size: 13px; line-height: 1.5; color: var(--ink2); }
.info dl { display: grid; gap: 22px; }
.info dt { font-size: 14px; font-weight: 600; color: var(--ink2); margin-bottom: 3px; }
.info dd { font-size: 19px; letter-spacing: -.02em; }

/* ---------- подвал ---------- */
.foot { background: var(--gray); color: var(--ink2); font-size: 12px; line-height: 1.34; padding: 26px 0 30px; letter-spacing: -.01em; }
.foot__warn { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.3; font-weight: 600; color: var(--ink); letter-spacing: -.02em; padding: 22px 0 26px; border-bottom: 1px solid var(--line); }
.foot__warn span { display: inline-block; margin-left: 8px; padding: 2px 8px; border: 1px solid var(--ink3); border-radius: 6px; font-size: 13px; color: var(--ink2); vertical-align: 3px; }
.foot__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.foot h4 { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.foot li { margin-bottom: 8px; }
.foot a { color: var(--ink2); }
.foot a:hover { color: var(--ink); }
.foot__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 16px; flex-wrap: wrap; }

/* ---------- мобильная кнопка вызова ---------- */
.callbar { display: none; }

/* ---------- окно услуг ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; }
.sheet.open { visibility: visible; pointer-events: auto; }
.sheet__veil { position: absolute; inset: 0; background: rgba(0, 0, 0, .48); opacity: 0; transition: opacity .4s var(--ease); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet.open .sheet__veil { opacity: 1; }
.sheet__panel {
  position: absolute; left: 50%; top: 40px; bottom: 40px; width: min(820px, calc(100vw - 40px)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--white); border-radius: 30px; padding: 64px clamp(24px, 6vw, 76px) 40px; display: flex; flex-direction: column;
  transform: translate(-50%, 40px) scale(.98); opacity: 0; transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.sheet.open .sheet__panel { transform: translate(-50%, 0) scale(1); opacity: 1; }
.sheet__close { position: sticky; top: 0; align-self: flex-end; margin: -40px -40px 0 0; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; z-index: 2; flex: none; }
.sheet__close svg { width: 16px; height: 16px; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.sheet__ic svg { width: 72px; height: 72px; fill: none; stroke: url(#brandG); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.sheet__title { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; font-weight: 600; letter-spacing: -.04em; }
.sheet__lead { font-size: 21px; color: var(--ink2); margin: 12px 0 34px; letter-spacing: -.02em; }
.sheet__list { display: grid; gap: 12px; margin-bottom: 32px; }
.svc { border-radius: 20px; background: var(--gray); transition: background .3s; }
.svc[open] { background: #eef4ff; }
.svc.flash { animation: flash 1.8s var(--ease); }
@keyframes flash { 0%, 50% { box-shadow: 0 0 0 3px var(--blue); } 100% { box-shadow: 0 0 0 0 transparent; } }
.svc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.svc summary::-webkit-details-marker { display: none; }
.svc summary::after { content: ''; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--blue), var(--blue)) center / 12px 2px no-repeat, linear-gradient(var(--blue), var(--blue)) center / 2px 12px no-repeat; transition: transform .35s var(--ease); }
.svc[open] summary::after { transform: rotate(45deg); }
.svc__body { padding: 0 24px 22px; }
.svc__body p { color: var(--ink); font-size: 17px; margin-bottom: 14px; }
.svc__body p.urg { color: var(--red); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { font-size: 12px; padding: 5px 11px; border-radius: 980px; background: var(--white); color: var(--ink2); }
.sheet__foot { margin-top: auto; display: grid; gap: 12px; }
.sheet__warn { font-size: 12px; color: var(--ink3); text-align: center; }

/* ---------- адаптив ---------- */
@media (max-width: 1068px) {
  .nav__links { gap: 20px; }
  .symptoms { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .tiles, .docs { grid-template-columns: 1fr; }
  .tile { min-height: 320px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bcard--wide { grid-column: span 2; }
  .final__grid { grid-template-columns: 1fr; }
}
@media (max-width: 734px) {
  .nav__brand span { font-size: 14px; }
  .nav__call { display: none; }
  .ribbon { font-size: 12px; padding: 11px 16px; }
  .wrap { padding: 0 16px; }
  .stage__sticky { height: max(590px, calc(100svh - var(--nav))); min-height: 590px; }
  .hero { padding: 32px 16px; }
  .hero__cta { flex-direction: column; align-items: center; gap: 12px; }
  .hero__cta .btn { min-width: 240px; }
  .chips button { font-size: 13px; padding: 8px 13px; }
  .story__line { font-size: clamp(32px, 9vw, 42px); }
  .tile { padding: 38px 22px 0; min-height: 320px; }
  .tile__art { height: 100px; }
  .tile__art svg { width: 78px; height: 78px; }
  .gallery__track { padding: 4px 16px 24px; scroll-padding: 0 16px; gap: 14px; }
  .gcard { flex-basis: 82vw; min-height: 420px; padding: 28px 26px; }
  .symptoms { grid-template-columns: 1fr; }
  .sos { flex-direction: column; align-items: stretch; padding: 24px; }
  .bento { grid-template-columns: 1fr; }
  .bcard--wide { grid-column: auto; }
  .bcard { min-height: 0; }
  .card { padding: 28px 22px; }
  .foot__cols { grid-template-columns: 1fr; gap: 6px; }
  .foot { padding-bottom: 100px; }
  .sheet__panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 92vh; border-radius: 26px 26px 0 0; padding: 52px 20px 24px; transform: translateY(100%); }
  .sheet.open .sheet__panel { transform: none; }
  .sheet__close { margin: -36px -6px 0 0; }
  .callbar {
    display: flex; align-items: center; justify-content: center; gap: 10px; position: fixed; z-index: 60;
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); height: 54px; border-radius: 980px;
    background: var(--blue); color: #fff; font-size: 17px; font-weight: 600; box-shadow: 0 10px 30px -8px rgba(0, 113, 227, .55);
  }
  .callbar:hover { text-decoration: none; }
  .callbar .nav__dot { background: #fff; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
}

/* ==========================================================================
   МОБИЛЬНАЯ ВЕРСИЯ — доработка (v43)
   Цель: телефон в шапке, крупные зоны нажатия, кнопка вызова не перекрывает
   контент, компактные блоки, окно услуг с закреплённой кнопкой звонка.
   ========================================================================== */
html { -webkit-tap-highlight-color: transparent; }
.nav__short { display: none; }

/* на сенсорных экранах hover «залипает» после касания — отключаем */
@media (hover: none) {
  .tile:hover { transform: none; box-shadow: none; }
  .tile:hover .tile__art::before { transform: none; opacity: .35; }
  .tile:hover .tile__art svg { transform: none; }
  .btn--outline:hover { background: transparent; color: var(--blue); }
  .btn--blue:hover { background: var(--blue); }
  .chips button:hover { background: rgba(255, 255, 255, .6); }
}

@media (max-width: 734px) {
  /* --- шапка: телефон всегда под рукой --- */
  .nav__in { gap: 10px; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .nav__call { display: inline-flex; min-height: 34px; padding: 0 14px; border-radius: 980px; background: var(--blue); color: #fff; font-size: 14px; }
  .nav__call:hover { text-decoration: none; }
  .nav__num { display: none; }
  .nav__short { display: inline; }
  .nav__call .nav__dot { background: #fff; box-shadow: none; animation: none; }
  .ribbon p { text-wrap: balance; }

  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }

  /* --- первый экран --- */
  .stage__canvas { opacity: .55; }                      /* спираль не мешает тексту */
  .hero { padding: 24px 16px calc(96px + env(safe-area-inset-bottom)); }   /* нижняя кнопка не перекрывает чипы */
  .hero__title, .hero__sub { text-shadow: 0 0 14px var(--mint), 0 0 28px var(--mint); }
  .hero__sub { color: #4a4a50; }
  .hero__cta { gap: 10px; margin-top: 22px; }
  .hero__cta .btn { width: min(100%, 300px); min-width: 0; }
  .chips { gap: 8px; margin-top: 18px; }
  .chips button { min-height: 40px; }

  /* --- ритм секций --- */
  .sec { padding: 44px 0; }
  #uslugi { padding-bottom: 28px; }
  #urgent { padding-top: 28px; }

  /* --- плитки услуг --- */
  .tiles { gap: 12px; }
  .tile { padding: 26px 20px 0; min-height: 0; }
  .tile__count { position: static; margin: 0 0 6px; font-size: 13px; }
  .tile h3 { font-size: 30px; }
  .tile__lead { font-size: 17px; margin-top: 8px; }
  .tile__links { gap: 0 14px; margin-top: 10px; }
  .tile__links button, .tile__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
  .tile__art { height: 84px; margin-top: 4px; }
  .tile__art::before { width: 110px; height: 110px; }
  .tile__art svg { width: 62px; height: 62px; }

  /* --- симптомы --- */
  .symptoms li { padding: 13px 0; font-size: 16px; }
  .sos__t { font-size: 18px; }
  .sos .btn { min-height: 50px; }

  /* --- «анонимно» --- */
  .anon { padding: 72px 0; }
  .anon__text { font-size: clamp(27px, 7.8vw, 34px); }

  /* --- контакты и помощь --- */
  .h2--xl { font-size: clamp(38px, 11vw, 52px); }
  .final__phone { font-size: clamp(29px, 9vw, 40px); }
  .final__cta { flex-direction: column; align-items: stretch; }
  .final__cta .btn { width: 100%; min-height: 50px; }
  .help .btn { min-height: 52px; }
  .info dd { font-size: 17px; }
  .info .lnk { display: inline-block; padding: 6px 0; }

  /* --- подвал: ссылки крупнее, чтобы попадать пальцем --- */
  .foot { font-size: 14px; }
  .foot__cols { gap: 0; }
  .foot h4 { font-size: 13px; margin: 16px 0 2px; }
  .foot li { margin: 0; }
  .foot li a, .foot__bottom a { display: inline-block; padding: 8px 0; }
  .foot__bottom { flex-direction: column; gap: 0; }

  /* --- окно услуг --- */
  .sheet__panel { max-height: 92vh; max-height: 92dvh; padding: 44px 18px 0; }
  .sheet__close { width: 40px; height: 40px; margin: -34px -4px 0 0; }
  .sheet__ic svg { width: 52px; height: 52px; margin-bottom: 10px; }
  .sheet__title { font-size: 34px; }
  .sheet__lead { font-size: 17px; margin: 8px 0 20px; }
  .svc summary { padding: 16px 18px; font-size: 17px; min-height: 56px; }
  .svc__body { padding: 0 18px 18px; }
  .svc__body p { font-size: 16px; }
  /* кнопка звонка не уезжает за край при прокрутке окна */
  .sheet__foot { position: sticky; bottom: 0; padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(255, 255, 255, 0), #fff 22%); }
}

/* узкие телефоны (iPhone SE, 320–380 px) */
@media (max-width: 380px) {
  .nav__brand { font-size: 13px; gap: 7px; }
  .nav__brand span { font-size: 13px; }
  .nav__call { padding: 0 12px; font-size: 13px; }
  .hero__title { font-size: 46px; }
  .hero__sub { font-size: 20px; }
  .tile h3 { font-size: 27px; }
  .callbar { font-size: 16px; }
}
@media (max-width: 734px) { .sheet__foot .btn { text-align: center; } }

/* Мобильное меню */
.nav__toggle { display: none; }
@media (max-width: 900px) {
  .nav__in { position: relative; }
  .nav__toggle { display: flex; order: 3; width: 44px; height: 44px; padding: 12px 10px; flex-direction: column; justify-content: space-around; align-items: stretch; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
  .nav__toggle span { height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }
  .nav__links.is-open { display: flex; position: absolute; top: 100%; left: 0; right: 0; z-index: 51; flex-direction: column; gap: 0; padding: 8px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)); background: #fff; box-shadow: 0 12px 24px rgba(0,0,0,.12); }
  .nav__links.is-open a { display: block; padding: 14px 4px; font-size: 15px; }
  .nav__toggle:focus-visible, .nav__links a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
}
