/* ---------- Шрифты (лежат у нас, с чужих серверов ничего не грузим) ---------- */
@font-face { font-family: "Piazzolla"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/piazzolla-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Piazzolla"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/piazzolla-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Piazzolla"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("../fonts/piazzolla-cyrillic-wght-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Piazzolla"; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url("../fonts/piazzolla-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212; }

/* ---------- Основа ---------- */
:root {
  --paper: #f2ede3;
  --paper-2: #e8e0d1;
  --ink: #17211c;
  --muted: #58625b;
  --green: #1d3a2f;
  --green-2: #264a3c;
  --copper: #b9683f;
  --copper-text: #96492a;
  --on-green: #efe9dc;
  --on-green-muted: #b4c2b8;
  --line: rgba(23, 33, 28, .17);
  --line-on-green: rgba(239, 233, 220, .2);
  --serif: "Piazzolla", Georgia, "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(18px, 4.5vw, 64px);
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 clamp(16px, 1.05vw + 12px, 18px)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }
p { text-wrap: pretty; }
em { font-style: italic; color: var(--copper-text); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--green); color: var(--on-green); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font: 500 .74rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font: 500 1rem/1 var(--sans); white-space: nowrap; cursor: pointer; border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--copper-text); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--on-green); color: var(--green); }
.btn-light:hover { background: #fff; }
.btn-outline-light { border-color: var(--line-on-green); color: var(--on-green); }
.btn-outline-light:hover { border-color: var(--on-green); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font: 500 1.28rem/1.1 var(--serif); letter-spacing: -.01em; }
.brand-text span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
/* Знак-весы: при загрузке чаши качнутся и встанут ровно, при наведении — качнутся снова */
.logo { flex: none; width: 44px; height: 44px; }
.logo-beam { transform-origin: 32px 21.5px; animation: weigh 2.2s var(--ease) .3s both; }
.brand:hover .logo-beam { animation: weigh-again 1.6s var(--ease); }
@keyframes weigh { 0% { transform: rotate(-11deg); } 35% { transform: rotate(7deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(2deg); } 100% { transform: rotate(0); } }
@keyframes weigh-again { 0% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 50% { transform: rotate(6deg); } 75% { transform: rotate(-3deg); } 100% { transform: rotate(0); } }
@media (max-width: 560px) { .logo { width: 38px; height: 38px; } .brand { gap: 10px; } }
.nav { display: flex; gap: 28px; font-size: .94rem; }
.nav a { position: relative; padding: 6px 0; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--copper); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-tel { font: 500 1rem/1 var(--sans); white-space: nowrap; padding: 12px 18px; border: 1px solid var(--line); border-radius: 999px; transition: background .25s, color .25s, border-color .25s; }
.header-tel:hover { background: var(--green); color: var(--on-green); border-color: var(--green); }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; padding: 0; position: relative; color: var(--ink); }
.burger i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger i:first-child { top: 18px; } .burger i:last-child { top: 26px; }
.burger[aria-expanded="true"] i:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 22px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .burger { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 6px var(--pad) 18px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { font: 500 1.5rem/1.2 var(--serif); color: var(--ink); padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
}
@media (max-width: 560px) {
  .header-tel { display: none; }
  .header-in { min-height: 64px; }
}

/* ---------- Первый экран ---------- */
.hero { padding: clamp(36px, 6vw, 84px) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.hero h1 { font-size: clamp(2.7rem, 7.4vw, 6.6rem); font-weight: 480; line-height: .96; letter-spacing: -.03em; margin: clamp(20px, 3vw, 36px) 0 clamp(20px, 2.6vw, 32px); }
.hero h1 em { display: block; }
.lead { font-size: clamp(1.06rem, .6vw + .95rem, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 36em; }
.lead b { color: var(--ink); font-weight: 500; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3vw, 40px); }
.hero-note { margin-top: 18px; font-size: .88rem; color: var(--muted); }

.panel { overflow: hidden; background: var(--green); color: var(--on-green); border-radius: 28px; align-self: start; }
.panel-photo { display: block; position: relative; }
.panel-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.panel-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(to top, var(--green) 4%, transparent); }
.panel-body { position: relative; padding: 0 clamp(22px, 2.4vw, 34px) clamp(14px, 1.6vw, 22px); margin-top: -34px; }
.panel-name { font: 500 clamp(1.5rem, 2.2vw, 2rem)/1.1 var(--serif); margin-bottom: 4px; }
.panel-role { color: var(--on-green-muted); font-size: .92rem; margin-bottom: 22px; }
.facts { display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line-on-green); font-size: .93rem; line-height: 1.4; }
.facts dt { color: var(--on-green-muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- Бегущая строка ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 16px 0; }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker-track span { font: italic 400 clamp(1.1rem, 1.6vw, 1.5rem)/1 var(--serif); white-space: nowrap; padding-right: 2.2em; display: flex; align-items: center; gap: 2.2em; }
.ticker-track span::after { content: "•"; color: var(--copper); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { padding: clamp(60px, 9vw, 128px) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(30px, 4.5vw, 60px); }
.section-head h2 { font-size: clamp(2.1rem, 4.8vw, 4.1rem); margin-top: 18px; }
.section-head p { color: var(--muted); max-width: 32em; }
@media (max-width: 800px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Практика: список ---------- */
.index { border-top: 1px solid var(--ink); }
.index a {
  position: relative; display: grid; grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 1.15fr) 56px; gap: clamp(14px, 2.5vw, 40px); align-items: center;
  padding: clamp(22px, 3vw, 38px) clamp(0px, 1vw, 16px); border-bottom: 1px solid var(--line);
  transition: color .35s var(--ease), padding .35s var(--ease);
}
.index a::before { content: ""; position: absolute; inset: 0; background: var(--green); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); z-index: -1; }
.index { position: relative; z-index: 0; }
.index a:hover, .index a:focus-visible { color: var(--on-green); padding-inline: clamp(12px, 2vw, 32px); }
.index a:hover::before, .index a:focus-visible::before { transform: scaleY(1); }
.index .n { font: italic 400 1.15rem/1 var(--serif); color: var(--copper-text); transition: color .35s; }
.index a:hover .n, .index a:focus-visible .n { color: var(--copper); }
.index h3 { font-size: clamp(1.6rem, 3.1vw, 2.7rem); }
.index p { color: var(--muted); font-size: .96rem; line-height: 1.5; transition: color .35s; }
.index a:hover p, .index a:focus-visible p { color: var(--on-green-muted); }
.arrow { width: 56px; height: 56px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; opacity: .55; transition: transform .45s var(--ease), opacity .3s, background .3s, color .3s; }
.arrow svg { width: 20px; height: 20px; }
.index a:hover .arrow, .index a:focus-visible .arrow { transform: rotate(-45deg); opacity: 1; background: var(--on-green); color: var(--green); border-color: var(--on-green); }
@media (max-width: 800px) {
  .index a { grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "n ar" "h ar" "p p"; row-gap: 8px; }
  .index .n { grid-area: n; } .index h3 { grid-area: h; } .index p { grid-area: p; }
  .arrow { grid-area: ar; width: 44px; height: 44px; align-self: start; }
}

/* ---------- Карточки ---------- */
.band { background: var(--paper-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 12px; transition: transform .4s var(--ease), border-color .3s; }
a.card:hover { transform: translateY(-4px); border-color: var(--ink); }
.card .n { font: italic 400 1rem/1 var(--serif); color: var(--copper-text); }
.card h3 { font-size: clamp(1.35rem, 1.8vw, 1.7rem); line-height: 1.12; }
.card p { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.card .more { margin-top: auto; padding-top: 10px; font-size: .9rem; font-weight: 500; color: var(--copper-text); }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); counter-reset: s; }
.steps li { counter-increment: s; padding: 26px 24px 8px 0; border-right: 1px solid var(--line); }
.steps li + li { padding-left: 24px; }
.steps li:last-child { border-right: 0; }
.steps li::before { content: "Шаг " counter(s); display: block; font: italic 300 clamp(2.2rem, 3.6vw, 3.2rem)/1 var(--serif); color: var(--copper); margin-bottom: 22px; }
.steps h3 { font-size: 1.4rem; margin-bottom: 10px; }
.steps p { color: var(--muted); font-size: .95rem; line-height: 1.55; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li { border-bottom: 1px solid var(--line); padding-bottom: 26px; }
  .steps li:nth-child(2n) { border-right: 0; }
  .steps li:nth-child(2n+1) { padding-left: 0; }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { border-right: 0; padding-left: 0; padding-right: 0; }
}

/* ---------- Обо мне ---------- */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); }
.about h2 { font-size: clamp(2.1rem, 4.8vw, 4.1rem); margin-top: 18px; }
.about-text > p { font: 400 clamp(1.3rem, 2.1vw, 1.95rem)/1.32 var(--serif); letter-spacing: -.01em; }
.about-list { margin-top: clamp(26px, 3vw, 42px); border-top: 1px solid var(--ink); }
.about-list div { display: grid; grid-template-columns: 11em 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .97rem; }
.about-list dt { color: var(--muted); }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .about-list div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Контакты ---------- */
.contact { background: var(--green); color: var(--on-green); border-radius: clamp(24px, 3vw, 44px) clamp(24px, 3vw, 44px) 0 0; padding: clamp(56px, 8vw, 116px) 0 clamp(40px, 5vw, 64px); position: relative; overflow: hidden; isolation: isolate; }
/* Крупный знак параграфа на фоне убран 16.11.2026: условные значки заменены словами. */
.contact .eyebrow { color: var(--on-green-muted); }
.contact h2 { font-size: clamp(2.1rem, 4.8vw, 4.1rem); margin: 18px 0 14px; max-width: 14em; }
.contact h2 em { color: var(--copper); }
.contact > .wrap > p { color: var(--on-green-muted); max-width: 34em; }
.tel-big { display: inline-block; font: 400 clamp(2.3rem, 8.4vw, 7.2rem)/1 var(--serif); letter-spacing: -.035em; margin: clamp(26px, 4vw, 52px) 0 clamp(22px, 3vw, 36px); white-space: nowrap; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.tel-big:hover { background-size: 100% 2px; color: #fff; }
.contact-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 0 32px; margin-top: clamp(34px, 5vw, 64px); border-top: 1px solid var(--line-on-green); }
.contact-meta div { padding: 18px 0; border-bottom: 1px solid var(--line-on-green); }
.contact-meta dt { color: var(--on-green-muted); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.contact-meta a:hover { color: var(--copper); }

.footer { background: var(--green); color: var(--on-green-muted); font-size: .85rem; padding: 0 0 clamp(28px, 4vw, 44px); }
.footer-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 28px 32px; padding: 0 0 clamp(28px, 4vw, 44px); line-height: 1.4; }
.footer-map .fm-head { display: block; color: var(--on-green); font: 500 1.1rem/1.2 var(--serif); margin-bottom: 12px; }
.footer-map li + li { margin-top: 8px; }
.footer-in { border-top: 1px solid var(--line-on-green); padding-top: 20px; }
.footer-in { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
.footer a:hover { color: var(--on-green); }
/* Подпись разработчика — как на других сайтах Нейвокс: логотип и слоган, буквы которого перебираются, как на табло */
.footer-in { align-items: flex-start; }
.dev { display: inline-flex; align-items: flex-start; gap: 10px; }
.dev > span:first-child { line-height: 30px; }
.dev img { height: 30px; width: auto; transition: translate .35s var(--ease), filter .35s var(--ease); }
.dev__mark { display: grid; justify-items: start; gap: 3px; }
.dev__tag { font: 9.5px/1.3 ui-monospace, "SF Mono", "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; opacity: .8; transition: color .35s var(--ease), opacity .35s; }
.dev:is(:hover, :focus-visible) .dev__tag { color: var(--copper); opacity: 1; }
.dev:is(:hover, :focus-visible) img { translate: 0 -2px; filter: drop-shadow(0 4px 10px rgb(98 94 255 / .45)); }
@media (max-width: 760px) { .dev { flex-basis: 100%; justify-content: center; margin-top: 10px; } }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Внутренние страницы ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.page-hero { padding: clamp(28px, 4vw, 52px) 0 clamp(48px, 7vw, 96px); }
.page-hero .n { font: italic 400 clamp(1.2rem, 2vw, 1.6rem)/1 var(--serif); color: var(--copper-text); display: block; margin-top: clamp(28px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(2.6rem, 7.6vw, 6.4rem); font-weight: 480; line-height: .98; letter-spacing: -.03em; margin: 14px 0 clamp(20px, 2.6vw, 32px); max-width: 11em; }
.case { display: grid; grid-template-columns: 4.5rem minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(12px, 3vw, 48px); padding: clamp(24px, 3.2vw, 40px) 0; border-bottom: 1px solid var(--line); }
.cases { border-top: 1px solid var(--ink); }
.case .n { font: italic 400 1.1rem/1.6 var(--serif); color: var(--copper-text); }
.case h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
.case p { color: var(--muted); }
a.case { position: relative; transition: padding .35s var(--ease); }
a.case h3 { transition: color .3s; }
a.case:hover h3, a.case:focus-visible h3 { color: var(--copper-text); }
.case .more { grid-column: 3; font-size: .9rem; font-weight: 500; color: var(--copper-text); }
.checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 clamp(20px, 4vw, 56px); border-top: 1px solid var(--ink); counter-reset: c; }
.checklist li { counter-increment: c; display: grid; grid-template-columns: 2.6rem 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.checklist li::before { content: counter(c, decimal-leading-zero); font: italic 400 1rem/1.7 var(--serif); color: var(--copper-text); }
@media (max-width: 800px) { .case { grid-template-columns: 1fr; gap: 8px; } .case .more { grid-column: 1; } }

.faq { border-top: 1px solid var(--ink); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font: 500 clamp(1.2rem, 1.8vw, 1.5rem)/1.2 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font: 300 1.4rem/1 var(--sans); transition: transform .35s var(--ease), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--green); color: var(--on-green); }
.faq details p { color: var(--muted); padding: 0 58px 24px 0; max-width: 46em; }
.note { margin-top: 26px; font-size: .86rem; color: var(--muted); max-width: 46em; }

/* ---------- Картинки ---------- */
.media { margin: 0; border-radius: 28px; overflow: hidden; background: var(--paper-2); }
.media picture, .media img { display: block; width: 100%; height: 100%; }
.media img { object-fit: cover; scale: 1.12; }
.media.ph { aspect-ratio: 4 / 3; }
.media.tall { aspect-ratio: 4 / 5; margin-top: clamp(24px, 3vw, 40px); max-width: 460px; }
.media.wide { aspect-ratio: 21 / 9; margin-bottom: clamp(28px, 4vw, 56px); }
.media.wide img { object-position: 50% 30%; }
@media (max-width: 700px) { .media.wide { aspect-ratio: 3 / 2; } .media { border-radius: 22px; } }
/* появление шторкой + лёгкий наезд */
/* шторка на внутреннем блоке: полностью обрезанный элемент браузер не считает видимым */
.js .media.reveal { opacity: 1; transform: none; background: none; }
.js .media.reveal picture { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); }
.js .media.reveal.in picture { clip-path: inset(0 0 0 0); }
.js .media.reveal img { scale: 1.3; transition: scale 1.8s var(--ease); }
.js .media.reveal.in img { scale: 1.12; }
/* параллакс: картинка чуть отстаёт от прокрутки (браузеры с scroll-driven animations) */
@supports (animation-timeline: view()) {
  .media img { animation: par linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes par { from { translate: 0 -5%; } to { translate: 0 5%; } }
}

/* шапка внутренней страницы с картинкой */
.ph-grid { display: block; }
.page-hero.has-media .ph-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.page-hero.has-media h1 { font-size: clamp(2.3rem, 4.9vw, 4.3rem); line-height: 1.02; max-width: none; }
@media (max-width: 900px) { .page-hero.has-media .ph-grid { grid-template-columns: 1fr; } }

/* слова заголовка выезжают снизу */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .06em .05em .16em; margin: -.06em -.05em -.16em; }
.w > span { display: inline-block; animation: rise 1s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 60ms); }
@keyframes rise { from { transform: translateY(115%); } }
.panel { animation: panel-in 1.1s var(--ease) .15s both; }
.panel-photo img { animation: zoom-out 1.8s var(--ease) .15s both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(26px); } }
@keyframes zoom-out { from { transform: scale(1.14); } }

/* полоса прочтения страницы */
.progress { display: none; }
@supports (animation-timeline: scroll()) {
  .progress { display: block; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; background: var(--copper); transform-origin: 0 50%; animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* картинка, плывущая за курсором над списком практик */
.peek { position: fixed; left: 0; top: 0; z-index: 40; width: 300px; aspect-ratio: 3 / 2; border-radius: 18px; overflow: hidden; pointer-events: none; opacity: 0; scale: .8; transition: opacity .35s var(--ease), scale .45s var(--ease); box-shadow: 0 24px 60px rgba(23, 33, 28, .35); will-change: transform; }
.peek.on { opacity: 1; scale: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 900px) { .peek { display: none; } }

/* блик на карточке под курсором */
.card { position: relative; overflow: hidden; }
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--copper) 16%, transparent), transparent 70%); }
.card:hover::after { opacity: 1; }

@keyframes drift { to { transform: translate3d(-3%, -4%, 0) rotate(-5deg); } }

/* ---------- Нижняя кнопка на телефоне ---------- */
.callbar { display: none; }
@media (max-width: 560px) {
  .callbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; box-shadow: 0 10px 30px rgba(23, 33, 28, .28); }
  .footer { padding-bottom: 96px; }
}

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .media.reveal picture { clip-path: none; }
  .js .media.reveal img { scale: 1; }
  .progress { display: none !important; }
  @view-transition { navigation: none; }
}

@media print {
  .header, .callbar, .ticker, .cta { display: none; }
  .contact, .footer, .panel { background: none; color: #000; }
}
