/* Феникс — layout modelled on the Nicepage "Psychological Wellness" template:
   white page, soft grey rounded cards, an orange band with white cards, slate bands,
   rounded photos, Montserrat headings + Open Sans text. */

/* ---------- Fonts ---------- */
@font-face { font-family: "Montserrat"; font-weight: 400 800; font-display: swap; src: url(assets/fonts/montserrat-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Montserrat"; font-weight: 400 800; font-display: swap; src: url(assets/fonts/montserrat-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Montserrat"; font-weight: 400 800; font-display: swap; src: url(assets/fonts/montserrat-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-weight: 400 700; font-display: swap; src: url(assets/fonts/opensans-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Open Sans"; font-weight: 400 700; font-display: swap; src: url(assets/fonts/opensans-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Open Sans"; font-weight: 400 700; font-display: swap; src: url(assets/fonts/opensans-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --white: #FFFFFF;
  --grey: #F2F2F2;          /* template card grey */
  --grey-2: #E2E2E2;
  --orange: #D17F28;        /* logo orange — bands, icons */
  --orange-btn: #B35F14;    /* buttons: white text 4.6:1 */
  --orange-ink: #9A500F;    /* orange text on white / grey */
  --slate: #6B6E78;         /* template slate, darkened so white text passes */
  --ink: #1F1F1F;
  --ink-2: #4D4F55;
  --f-head: "Montserrat", system-ui, sans-serif;
  --f-body: "Open Sans", system-ui, sans-serif;
  --r-xl: 50px;             /* big cards and photos, as in the template */
  --r-lg: 30px;
  --r-md: 20px;
  --wrap: 1140px;
  --pad: clamp(20px, 4vw, 40px);
  --sec: clamp(64px, 8vw, 110px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1); /* for things rolling back out of view */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.65 var(--f-body); }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--orange-ink); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--f-head); color: var(--ink); text-wrap: balance; overflow-wrap: break-word; }
h1 { font-weight: 400; font-size: clamp(2.25rem, 1.2rem + 3.4vw, 4rem); line-height: 1.14; letter-spacing: -0.01em; }
h2 { font-weight: 700; font-size: clamp(1.875rem, 1.2rem + 2.2vw, 3rem); line-height: 1.18; }
h3 { font-weight: 700; font-size: 1.25rem; line-height: 1.3; }
.h3 { font-size: 1.375rem; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 3px solid var(--orange-btn); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }
.muted { color: var(--ink-2); font-size: .9375rem; }
.sub { margin-top: 16px; max-width: 46em; color: var(--ink-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 32px; border-radius: 999px;
  background: var(--orange-btn); color: #fff; border: 2px solid var(--orange-btn);
  font: 700 1.0625rem/1.2 var(--f-head); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform 160ms var(--ease);
}
.btn:hover { background: var(--orange-ink); border-color: var(--orange-ink); }
.btn:active { transform: scale(.97); }
.btn-line { background: transparent; color: var(--orange-ink); }
.btn-line:hover { background: var(--orange-btn); color: #fff; }
.btn-white { background: #fff; border-color: #fff; color: var(--ink); }
.btn-white:hover { background: var(--grey); border-color: var(--grey); }
.band-slate .btn-white:focus-visible, .band-orange .btn-white:focus-visible { outline-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--white); transition: box-shadow .3s var(--ease); }
.header.is-stuck { box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .35); } /* taste-skill-ignore: sticky bar */
.header-in { display: flex; align-items: center; gap: 24px; min-height: 92px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 52px; height: auto; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text b { font: 700 1.375rem/1.1 var(--f-head); }
.brand-text small { font-size: .8125rem; color: var(--ink-2); }
.menu { margin-left: auto; display: flex; gap: 32px; }
.menu a { color: var(--ink); text-decoration: none; font: 500 .9375rem/1 var(--f-head); padding: 8px 0; }
.menu a:hover { color: var(--orange-ink); }
.menu-btn { display: none; }

/* ---------- Phone strip ---------- */
.strip { background: var(--orange); color: #fff; }
.strip-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.strip a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.strip-phone { font: 700 1.625rem/1 var(--f-head); white-space: nowrap; min-height: 44px; }
.strip-phone .ico { width: 26px; height: 26px; }
.strip-note { font: 700 1.1875rem/1 var(--f-head); }
.strip-wa { margin-left: auto; font: 700 1.1875rem/1 var(--f-head); white-space: nowrap; min-height: 44px; }
.strip-wa .ico { width: 24px; height: 24px; }

/* ---------- Sections ---------- */
.sec { padding: var(--sec) 0; }
.sec-tight { padding-top: 0; }
.sec-top0 { padding-top: 0; }
.sec-grey { background: var(--grey); }
.card { background: var(--grey); border-radius: var(--r-xl); }
.photo { width: 100%; border-radius: var(--r-xl); object-fit: cover; }
/* one warm grade for the centre's own interior photos (cold LED light otherwise) */
.hero-photo .photo, .split-photo .photo, .gallery .photo, .contact-photo .photo { filter: sepia(.14) saturate(.9) brightness(1.03); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lead { margin-top: 28px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--ink-2); max-width: 32em; }
.hero .actions { margin-top: 36px; }
.reassure { margin-top: 18px; font-size: .9375rem; color: var(--ink-2); max-width: 34em; }
.hero-photo .photo { aspect-ratio: 4 / 5; }

/* ---------- Hero visual ---------- */
/* brand: no photo at all, the logo and the one sentence that matters */
.hero-brand { background: var(--orange); border-radius: var(--r-xl); padding: clamp(32px, 4vw, 52px); color: #fff; aspect-ratio: 4 / 5; display: flex; flex-direction: column; }
.hero-brand img { width: clamp(110px, 12vw, 180px); filter: brightness(0) invert(1); opacity: .95; }
.hb-big { margin-top: auto; font: 700 clamp(1.75rem, 1rem + 2vw, 2.75rem)/1.15 var(--f-head); }
.hb-facts { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.hb-facts li { background: #fff; color: var(--ink); border-radius: 999px; padding: 10px 18px; font-size: .875rem; }
.hb-facts b { font-family: var(--f-head); margin-right: 6px; }
@media (max-width: 860px) {
  .hero-brand { aspect-ratio: auto; min-height: 360px; }
}

/* ---------- Intro: facts card + text ---------- */
.intro { padding-bottom: var(--sec); }
.intro-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; padding: clamp(28px, 4vw, 44px); }
.facts b { display: block; font: 700 1.75rem/1.1 var(--f-head); color: var(--orange-ink); }
.facts span { display: block; margin-top: 6px; font-size: .9375rem; color: var(--ink-2); line-height: 1.4; }
.intro-text p { margin-top: 14px; font-size: 1.125rem; }

/* ---------- Bands ---------- */
.band-slate { background: var(--slate); color: #fff; padding: clamp(56px, 6vw, 80px) 0; }
.band-slate h2 { color: #fff; }
.band-slate p { margin-top: 16px; max-width: 58em; font-size: 1.0625rem; }
.band-orange { background: var(--orange); padding: var(--sec) 0; }
.band-orange h2 { color: #fff; }
.band-orange .sub { color: var(--ink); font-weight: 600; }

/* ---------- Help cards ---------- */
.cards4 { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cards4 .card { padding: 32px 26px 34px; border-radius: var(--r-lg); text-align: center; }
.icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--orange); margin-bottom: 18px; }
.icon svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon svg circle[r="1.6"] { fill: #fff; stroke: none; }
.cards4 h3 { font-size: 1.125rem; }
.cards4 p { margin-top: 10px; font-size: .9688rem; color: var(--ink-2); line-height: 1.55; }

/* ---------- Split: text + photo ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-photo .photo { aspect-ratio: 5 / 4; }
.dots { margin-top: 24px; display: grid; gap: 12px; }
.dots li { position: relative; padding-left: 22px; color: var(--orange-ink); font-weight: 600; }
.dots li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); }
.dots-sm { gap: 8px; margin-top: 14px; }
.dots-sm li { font-size: .9375rem; }
.h-small { margin-top: 36px; font-size: 1.125rem; }

/* ---------- Steps (white cards on orange) ---------- */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps li { background: #fff; border-radius: var(--r-lg); padding: 28px 22px 30px; }
.steps .n { display: block; font: 700 2.5rem/1 var(--f-head); color: var(--orange-ink); }
.steps h3 { margin-top: 14px; font-size: 1.0625rem; }
.steps p { margin-top: 8px; font-size: .9375rem; color: var(--ink-2); line-height: 1.55; }

/* ---------- Programme «12 шагов» ---------- */
.twelve { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: none; }
.twelve li { background: var(--grey); border-radius: var(--r-lg); padding: 26px 26px 28px; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-content: start; }
.twelve .n { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--orange-btn); color: #fff; font: 700 1.0625rem/1 var(--f-head); }
.twelve h3 { font-size: 1.0625rem; align-self: center; min-height: 44px; display: flex; align-items: center; }
.twelve p { margin-top: 8px; font-size: .9375rem; color: var(--ink-2); line-height: 1.55; }
.twelve-more { display: none; margin-top: 16px; }
.prog-result { margin-top: 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.prog-gives { padding: clamp(28px, 4vw, 44px); }
.prog-gives .dots { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.prog-note p { color: var(--ink-2); }
.prog-quote { margin-top: 20px; font: 600 clamp(1.25rem, 1rem + .8vw, 1.625rem)/1.35 var(--f-head); color: var(--ink) !important; }
.prog-note .btn { margin-top: 28px; }

/* ---------- Quiz ---------- */
.check-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.check-head p { margin-top: 16px; }
.check-head .muted { margin-top: 20px; }
.quiz { padding: clamp(24px, 3.5vw, 44px); }
.quiz-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-tabs button, .yn button {
  font: 600 .9375rem/1 var(--f-head); border: 2px solid var(--grey-2); background: #fff; color: var(--ink);
  border-radius: 999px; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform 160ms var(--ease);
}
.quiz-tabs button { min-height: 46px; padding: 0 22px; }
.quiz-tabs button:hover, .yn button:hover { border-color: var(--orange); }
.quiz-tabs button[aria-checked="true"] { background: var(--orange-btn); border-color: var(--orange-btn); color: #fff; }
.quiz-q { margin-top: 24px; display: grid; gap: 10px; }
.quiz-q li { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: #fff; border-radius: var(--r-md); padding: 16px 16px 16px 22px; }
.quiz-q .q { font-size: 1rem; line-height: 1.45; }
.yn { display: flex; gap: 6px; }
.yn button { min-width: 64px; min-height: 44px; }
.yn button:active { transform: scale(.95); }
.yn button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.yn button[aria-pressed="true"].yes { background: var(--orange-btn); border-color: var(--orange-btn); }
.quiz-result { margin-top: 20px; min-height: 3em; }
.qprog { display: flex; gap: 6px; margin-bottom: 10px; }
.qprog i { width: 12px; height: 12px; border-radius: 50%; background: var(--grey-2); transform: scale(.9); transition: background-color .2s var(--ease), transform .2s var(--ease); }
.qprog i.on { background: var(--orange); transform: none; }
.quiz-result .hint { color: var(--ink-2); font-size: .9375rem; }
.quiz-result .res { background: #fff; border-radius: var(--r-lg); padding: 26px 28px; }
.quiz-result .res h3 { font-size: 1.25rem; }
.quiz-result .res p { margin-top: 8px; color: var(--ink-2); }
.quiz-result .res-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- Gallery ---------- */
.gallery { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery .photo { aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
.gallery figcaption { margin-top: 10px; font: 600 .9375rem/1.3 var(--f-head); color: var(--ink-2); padding-left: 6px; }

/* ---------- Social project ---------- */
.social { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.social p { max-width: 44em; }
.social .btn { flex: none; }

/* ---------- Team ---------- */
.team { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.person .photo { aspect-ratio: 4 / 5; border-radius: var(--r-xl); object-position: 50% 22%; background: var(--grey); }
.person-body { padding: 22px 8px 0; }
.person h3 { font-size: 1.1875rem; }
.role { margin-top: 6px; color: var(--orange-ink); font-weight: 600; font-size: .9688rem; }
.more { margin-top: 14px; }
.more summary { cursor: pointer; font: 600 .9375rem/1.4 var(--f-head); color: var(--ink); list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .25s var(--ease); }
.more[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.more p { margin-top: 12px; font-size: .9375rem; color: var(--ink-2); }
.person-empty { display: grid; align-content: center; justify-items: start; gap: 6px; padding: 40px 32px; aspect-ratio: 4 / 5; }
.person-empty img { width: 64px; margin-bottom: 10px; }
.person-empty p:last-child { margin-top: 8px; color: var(--ink-2); font-size: .9375rem; }

/* ---------- Reviews ---------- */
.reviews-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.rating { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 999px; padding: 10px 26px 10px 12px; }
.rating b { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--orange-btn); color: #fff; font: 700 1.25rem/1 var(--f-head); }
.rating span { font-size: .9375rem; line-height: 1.4; }
.reviews { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: #fff; border-radius: var(--r-lg); padding: 30px 28px; display: flex; flex-direction: column; gap: 20px; }
.review blockquote { margin: 0; font-size: 1rem; line-height: 1.6; }
.who { margin-top: auto; font-size: .875rem; color: var(--ink-2); }
.who b { display: block; font: 700 1rem/1.3 var(--f-head); color: var(--ink); }

/* ---------- Payment ---------- */
.pay { margin: 40px 0 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 900px; }
.pay li { background: #fff; border-radius: var(--r-lg); padding: 26px 24px; text-align: center; }
.pay b { display: block; font: 700 1.5rem/1.2 var(--f-head); }
.pay span { display: block; margin-top: 6px; color: var(--ink-2); font-size: .9375rem; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { background: var(--grey); border-radius: var(--r-md); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 64px 22px 26px; font: 700 1.0625rem/1.4 var(--f-head); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 28px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--orange-btn); border-bottom: 2px solid var(--orange-btn); transform: rotate(45deg); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq details p { padding: 0 26px 24px; max-width: 42em; color: var(--ink-2); }
:root { interpolate-size: allow-keywords; }
.faq details::details-content, .more::details-content { block-size: 0; overflow: clip; transition: block-size .25s var(--ease), content-visibility .25s allow-discrete; }
.faq details[open]::details-content, .more[open]::details-content { block-size: auto; }

/* ---------- Contacts ---------- */
.contact-grid { margin-top: 36px; display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: stretch; }
.contact-card { padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 28px; }
.contact-list { margin: 0; display: grid; gap: 14px; }
.contact-list div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.contact-list dt { color: var(--ink-2); font-size: .9375rem; }
.contact-list dd { margin: 0; font-weight: 600; }
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--orange-ink); }
.contact-photo .photo { height: 100%; min-height: 280px; border-radius: var(--r-xl); }

/* ---------- Footer ---------- */
.footer { background: var(--slate); color: #fff; padding: 36px 0 calc(40px + env(safe-area-inset-bottom)); }
html { background: var(--slate); } /* iOS rubber-band at the bottom shows grey, not white */
body { background: var(--white); }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand-light, .brand-light .brand-text small { color: #fff; }
.footer p { font-size: .875rem; }

/* ---------- Floating contact bar (phones) ---------- */
.float-bar {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; display: none;
  grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 999px; background: #fff;
  box-shadow: 0 8px 30px -10px rgba(0, 0, 0, .35);
  transform: translateY(150%); transition: transform 180ms var(--ease);
}
.float-bar.show { transform: none; transition-duration: 300ms; } /* arrives in 300ms, leaves faster */
.float-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 999px; font: 700 1rem/1 var(--f-head); text-decoration: none; background: var(--orange-btn); color: #fff; }
.float-bar a + a { background: var(--grey); color: var(--ink); }
.float-bar svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Entrances ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-text > * { animation: rise .6s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: 50ms; }
.hero-text > :nth-child(3) { animation-delay: 90ms; }
.hero-text > :nth-child(4) { animation-delay: 140ms; }
.hero-photo, .hero-brand { animation: rise .7s 80ms var(--ease) both; }
.js .reveal > * { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in > * { opacity: 1; transform: none; }
.js .reveal.in > *:nth-child(2) { transition-delay: 50ms; }
.js .reveal.in > *:nth-child(3) { transition-delay: 90ms; }
.js .reveal.in > *:nth-child(4) { transition-delay: 120ms; }
.js .reveal.in > *:nth-child(5) { transition-delay: 150ms; }
.js .reveal.in > *:nth-child(6) { transition-delay: 170ms; }
.js .reveal.in > *:nth-child(7) { transition-delay: 190ms; }
.js .reveal.in > *:nth-child(8) { transition-delay: 210ms; }
.js .reveal.in > *:nth-child(9) { transition-delay: 225ms; }
.js .reveal.in > *:nth-child(10) { transition-delay: 240ms; }
.js .reveal.in > *:nth-child(n+11) { transition-delay: 255ms; }

/* ---------- Scroll motion ---------- */
.progress { position: fixed; z-index: 70; left: 0; top: 0; width: 100%; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.menu a { position: relative; }
.menu a[aria-current] { color: var(--orange-ink); }
/* one underline that slides between menu items (active section, or the item under the pointer) */
.menu { position: relative; }
.menu-ink { position: absolute; left: 0; bottom: 2px; width: 1px; height: 2px; background: var(--orange); transform-origin: 0 50%; opacity: 0; pointer-events: none;
  transition: transform 250ms var(--ease), opacity .2s var(--ease); }
.menu-ink.snap { transition: none; }
@media (max-width: 960px) { .menu-ink { display: none; } }

/* section heads and text blocks rise in once */
.js .fade { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .fade.in { opacity: 1; transform: none; }
.js .sub.fade { transition-delay: 80ms; }
/* photos open from a smaller rounded window, the picture settles from a slight zoom */
.unveil { overflow: hidden; border-radius: var(--r-xl); }
.gallery figure.unveil { border-radius: var(--r-lg); overflow: visible; }
/* the window opens (clip-path) while the picture stays put, so the parallax below never jumps */
.js .unveil .photo { clip-path: inset(10% 10% 10% 10% round var(--r-xl)); transition: clip-path 800ms var(--ease); }
.js .unveil.in .photo { clip-path: inset(0 round var(--r-xl)); }
.js .gallery .unveil .photo { clip-path: inset(10% round var(--r-lg)); }
.js .gallery .unveil.in .photo { clip-path: inset(0 round var(--r-lg)); }
.js .gallery .unveil:nth-child(2) .photo { transition-delay: 90ms; }
/* gentle parallax on the large photos where the browser supports scroll-driven animation */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 861px) {
    .hero-photo .photo, .split-photo .photo, .contact-photo .photo { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
  }
}
@keyframes drift { from { translate: 0 -3%; scale: 1.08; } to { translate: 0 3%; scale: 1.08; } }
.hero-photo { overflow: hidden; border-radius: var(--r-xl); }

/* Reduced motion: no travel or scaling; colour and opacity stay */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @keyframes rise { from { opacity: 0; } to { opacity: 1; } }
  .js .reveal > *, .js .reveal.in > * { opacity: 1; transform: none; transition: none; }
  .js .fade, .js .fade.in { opacity: 1; transform: none; transition: none; }
  .js .unveil .photo, .js .unveil.in .photo { clip-path: none; transition: none; }
  .progress { display: none; }
  .menu-ink { transition: opacity .2s linear; }
  .menu, .menu.open, .menu a, .menu.open a { transform: none; clip-path: none; }
  .menu { transition: opacity 220ms linear, visibility 0s 220ms; }
  .menu.open { transition: opacity 220ms linear, visibility 0s; }
  .menu a, .menu.open a { transition: none; opacity: 1; }
  .btn:active, .yn button:active { transform: none; }
  .qprog i { transform: none; }
  .faq details::details-content, .more::details-content { transition: none; }
  .float-bar { transform: none; opacity: 0; pointer-events: none; transition: opacity .2s linear; }
  .float-bar.show { opacity: 1; pointer-events: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .twelve { grid-template-columns: repeat(2, 1fr); }
  .cards4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .strip-note { display: none; }
}
@media (max-width: 960px) {
  .menu-btn { display: grid; gap: 5px; margin-left: auto; width: 48px; height: 48px; place-content: center; border: 0; background: none; cursor: pointer; border-radius: 12px; }
  .menu-btn i { display: block; width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
  .menu-btn[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] i:nth-of-type(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] i:nth-of-type(3) { transform: translateY(-7.5px) rotate(-45deg); }
  /* the panel unrolls down from under the header and rolls back up when it closes */
  .menu { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: #fff; padding: 8px var(--pad) 20px; box-shadow: 0 16px 24px -18px rgba(0, 0, 0, .4);
    visibility: hidden; pointer-events: none; opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(-10px);
    transition: clip-path 340ms var(--ease-io), transform 340ms var(--ease-io), opacity 260ms 80ms var(--ease-io), visibility 0s 340ms; }
  .menu.open { visibility: visible; pointer-events: auto; opacity: 1; clip-path: inset(0 0 -40px 0); transform: none;
    transition: clip-path 460ms var(--ease), transform 460ms var(--ease), opacity 260ms var(--ease), visibility 0s; }
  /* links drift in one after another on open, fade out together (bottom first) on close */
  .menu a { opacity: 0; transform: translateY(-8px); transition: opacity 200ms var(--ease-io), transform 200ms var(--ease-io); }
  .menu.open a { opacity: 1; transform: none; transition: opacity 380ms var(--ease), transform 380ms var(--ease); }
  .menu.open a:nth-child(1) { transition-delay: 60ms; }
  .menu.open a:nth-child(2) { transition-delay: 95ms; }
  .menu.open a:nth-child(3) { transition-delay: 125ms; }
  .menu.open a:nth-child(4) { transition-delay: 150ms; }
  .menu.open a:nth-child(5) { transition-delay: 170ms; }
  .menu.open a:nth-child(6) { transition-delay: 185ms; }
  .menu.open a:nth-child(7) { transition-delay: 200ms; }
  .header:has(.menu.open) { box-shadow: none; }
  .menu a { padding: 16px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--grey); }
  .header-in { position: relative; min-height: 76px; }
}
@media (max-width: 860px) {
  .hero-grid, .intro-grid, .split, .check-grid, .faq-grid, .contact-grid, .prog-result { grid-template-columns: 1fr; }
  .hero-photo .photo { aspect-ratio: 4 / 3; }
  .split-rev > .split-photo { order: 1; }
  .team { grid-template-columns: 1fr 1fr; }
  .reviews { grid-template-columns: 1fr 1fr; }
  .social { flex-direction: column; align-items: flex-start; }
  .float-bar { display: grid; }
  /* room for the floating call bar lives inside the grey footer, so the page ends in grey, not white */
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  :root { --r-xl: 32px; --r-lg: 24px; }
  .strip .strip-wa { display: none; }
  .strip-phone { font-size: 1.375rem; }
  .strip-in { min-height: 60px; justify-content: center; }
  .brand img { width: 44px; }
  .brand-text b { font-size: 1.25rem; }
  .actions .btn { width: 100%; }
  .cards4, .steps, .team, .reviews, .pay, .twelve { grid-template-columns: 1fr; }
  .prog-gives .dots { grid-template-columns: 1fr; }
  .js .twelve-more { display: flex; width: 100%; }
  /* ---- phones: same content, tighter shapes (critique: page was ~17,700px) ---- */
  .about-band { display: none; }                     /* repeats the intro text right above it */
  .cards4 .card { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; text-align: left; padding: 22px 20px; }
  .cards4 .icon { grid-row: span 2; width: 52px; height: 52px; margin: 0; }
  .cards4 .icon svg { width: 28px; height: 28px; }
  .cards4 p { margin-top: 6px; }
  .steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 20px; }
  .steps .n { grid-row: span 2; font-size: 2rem; }
  .steps h3 { margin-top: 2px; }
  .js .twelve:not(.all) li:nth-child(n+4) { display: none; }
  .twelve li { padding: 20px; }
  .prog-note p:first-child { display: none; }
  .prog-gives .dots { gap: 8px; }
  .person .photo { aspect-ratio: 1 / 1; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery .photo { aspect-ratio: 1 / 1; }
  .contact-photo { display: none; }
  .sec { padding: 56px 0; }
  .band-orange { padding: 56px 0; }
  .reviews .review:nth-child(n+4) { display: none; } /* phones: three reviews, the rest are one tap away in 2GIS */
  .facts b { font-size: 1.375rem; }
  .quiz-q li { grid-template-columns: 1fr; gap: 12px; }
  .quiz-result .res-actions .btn { width: 100%; }
  .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .person-empty { aspect-ratio: auto; }
  .rating { width: 100%; }
}

/* without JS the quiz controls do nothing: hide them, the <noscript> line offers a call instead */
html:not(.js) .quiz-tabs, html:not(.js) .quiz-q, html:not(.js) .quiz-result { display: none; }
@media (min-width: 561px) { .nowrap { white-space: nowrap; } }
