/* Сайт «Столпы судьбы»: те же токены и шрифты, что у кабинета (style.css), свои шапка, подвал и секции. */

body.site { background-color: var(--paper); }
.site main.wrap { gap: 72px; padding-top: 48px; padding-bottom: 72px; }

/* ── Шапка ─────────────────────────────────────────────────────────── */
.sh { background: var(--paper-head); border-bottom: 1px solid var(--line-strong); position: sticky; top: 0; z-index: 30; }
.sh-row { display: flex; align-items: center; gap: 16px 28px; padding-top: 12px; padding-bottom: 12px; }
.sh-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; white-space: nowrap; }
.sh-brand:hover { color: var(--ink); }
.sh-name { display: flex; flex-direction: column; font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1; }
.sh-name small { font-family: var(--sans); font-size: 12px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-top: 4px; }
.sh-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.sh-nav a:not(.btn) { padding: 10px 14px; border-radius: 4px; color: var(--ink-2); text-decoration: none; }
.sh-nav a:not(.btn):hover { background: var(--tab); color: var(--ink); }
.sh-nav a[aria-current="page"] { color: var(--accent); font-weight: 700; background: var(--tab); }
.sh-cta { margin-left: 12px; min-height: 42px; }
.sh-burger { display: none; margin-left: auto; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--card); font: inherit; cursor: pointer; }

/* ── Секции ────────────────────────────────────────────────────────── */
.section { display: flex; flex-direction: column; gap: var(--gap-l); }
.section-head { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.section-head h2 { font-size: 38px; }
.section-head p { margin: 0; font-size: 18px; color: var(--muted); }
.eyebrow { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 760px; margin: 0; }

.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: 62px; line-height: 1.02; }
.hero h1 small { display: block; font-size: 30px; font-weight: 600; color: var(--ink-2); margin-top: 12px; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.hero-quote { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--accent-dark); margin: 0; }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 460px; justify-self: end; width: 100%; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.hero-art .seal-logo { position: absolute; right: 12%; top: 10%; width: 96px; height: 96px; font-size: 34px; border-radius: 6px; box-shadow: 0 8px 24px rgba(122, 31, 24, 0.25); }

/* Главная картинка — тушевый пейзаж; текст на пустой левой половине листа. */
.hero.hero-photo { position: relative; display: block; min-height: 600px; padding: 56px 0 56px 48px; border-radius: 8px; overflow: hidden; background: #f6f0e3; }
.hero-photo > .hero-img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-photo .hero-text { position: relative; z-index: 1; max-width: 50%; }
.hero.hero-photo.hero-short { min-height: 460px; }
.banner { width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: 8px; display: block; }
/* Иконки-рисунки тушью: фон листа растворяется в фоне страницы. */
.ink-icon { width: 104px; height: 104px; margin: -8px 0 -4px -8px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-l); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .cards, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .cards, .cards.four { grid-template-columns: 1fr; } }
.card.feature { gap: 10px; }
.feature .glyph { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--accent); color: var(--accent); border-radius: 4px; font-family: var(--han); font-size: 24px; font-weight: 600; }
.feature h3 { font-size: 23px; }
.feature p { margin: 0; color: var(--ink-2); }
.feature .more { margin-top: auto; font-weight: 700; text-decoration: none; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap-l); counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 24px 22px 22px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--card); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; font-weight: 700; }
.steps h3 { font-size: 21px; }
.steps p { margin: 0; color: var(--ink-2); }

.guarantees { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--gap-m) var(--gap-xl); }
.guarantees div { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; }
.guarantees b { display: block; font-family: var(--serif); font-size: 21px; margin-bottom: 4px; }
.guarantees p { margin: 0; color: var(--ink-2); }

.master { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 40px; align-items: start; }
.master-photo { aspect-ratio: 4 / 5; border-radius: 6px; background: var(--tab); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--muted-2); font-size: 14px; text-align: center; padding: 16px; }
.master-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.master-photo:has(img) { padding: 0; border: 0; background: none; overflow: hidden; box-shadow: 0 14px 36px rgba(31, 27, 23, 0.12); }
.master-photo img { object-position: center 25%; }
.master-text { display: flex; flex-direction: column; gap: 14px; }
.master-text p { margin: 0; font-size: 17px; line-height: 1.65; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.facts div { display: flex; flex-direction: column; }
.facts b { font-family: var(--serif); font-size: 34px; color: var(--accent); line-height: 1; }
.facts span { font-size: 14px; color: var(--muted); }

/* Учителя — компактной сеткой; дипломы — отдельной лентой (по клику — крупно с подписью). */
.t-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.t-item { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.t-item b { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.t-item p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.diplomas .car-track { grid-auto-columns: max-content; align-items: end; gap: 20px; padding: 10px 4px 18px; }
.diplomas .cert { display: block; line-height: 0; transition: transform 0.15s; }
.diplomas .cert img { height: 190px; width: auto; box-shadow: 0 6px 18px rgba(31, 27, 23, 0.18); }
.diplomas .cert:hover { transform: translateY(-3px) rotate(-1deg); }
.diplomas .cert:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.lightbox { width: min(900px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 18px 18px 14px; overflow: auto; border: 0; border-radius: 10px; background: var(--card); box-shadow: 0 24px 64px rgba(31, 27, 23, 0.35); }
.lightbox::backdrop { background: rgba(31, 27, 23, 0.7); }
body:has(.lightbox[open]) { overflow: hidden; }
.lightbox img { display: block; max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; margin: 0 auto; }
.lightbox p { margin: 12px 48px 0 0; color: var(--ink-2); font-size: 15px; }
.lightbox .dlg-close { position: sticky; top: 0; float: right; margin: 0 0 -44px; z-index: 1; }

.offline { columns: 2 280px; gap: var(--gap-xl); margin: 0; padding-left: 20px; color: var(--ink-2); }
.offline li { margin-bottom: 6px; break-inside: avoid; }

.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap-l); align-items: stretch; }
.price { gap: 14px; }
.price.accent { border: 2px solid var(--accent); }
.price h3 { font-size: 26px; }
.price .amount { font-family: var(--serif); font-size: 36px; font-weight: 700; color: var(--ink); line-height: 1; }
.price .amount small { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--muted); }
.price ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); }
.price .btn, .price .btn-outline { margin-top: auto; align-self: flex-start; }
.badge.soon { background: var(--tab); color: var(--muted); }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 36px 40px; background: var(--ink); color: #f6efe2; border-radius: 6px; }
.cta-band h2 { color: #fdfaf3; font-size: 32px; }
.cta-band p { margin: 6px 0 0; color: #d8cfc0; }
.cta-band .btn-outline { border-color: #f6efe2; color: #f6efe2; }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }


/* ── Подвал ────────────────────────────────────────────────────────── */
.sf { background: var(--paper-head); border-top: 1px solid var(--line-strong); padding: 40px 0 28px; }
.sf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.sf-col { display: flex; flex-direction: column; gap: 6px; }
.sf-col p { margin: 0; color: var(--muted); font-size: 14px; }
.sf-col b { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.sf-col a { color: var(--ink-2); text-decoration: none; }
.sf-col a:hover { color: var(--accent); }
.sf-brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 24px; font-weight: 700; }
.sf-brand .seal-logo { width: 36px; height: 36px; font-size: 14px; }
.sf-note { margin-top: 24px; font-size: 12px; color: var(--muted-2); }
.contact-req { padding-top: 0; }
.contact-req h2 { font-size: 26px; margin: 0 0 12px; }
.contact-req p { margin: 0 0 10px; color: var(--ink-2); overflow-wrap: anywhere; }
.sf-link { padding: 0; border: 0; background: none; font: inherit; color: var(--ink-2); text-align: left; cursor: pointer; }
.sf-link:hover { color: var(--accent); }

/* Плашка cookie: внизу экрана, не закрывает весь сайт; обе кнопки одинаково заметны */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 980px; margin: 0 auto; display: flex; align-items: center; gap: 16px 24px; padding: 16px 20px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 8px 28px rgba(43, 33, 24, 0.16); }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; flex: 1; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-actions .btn, .cookie-actions .btn-outline { min-height: 44px; padding: 0 20px; }
@media (max-width: 720px) {
  .cookie-bar { flex-direction: column; align-items: stretch; left: 8px; right: 8px; bottom: 8px; padding: 14px 16px; }
  .cookie-actions > * { flex: 1; }
}
@media print { .cookie-bar { display: none !important; } }
.sf-req { margin-top: 20px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.sf-req a { color: var(--ink-2); }

/* Документы: политика обработки данных, согласия, оферта */
.legal { width: 100%; max-width: 860px; min-width: 0; margin: 0 auto; padding: 32px 0 64px; }
.legal h1 { font-size: 40px; line-height: 1.15; margin: 12px 0 8px; }
.legal-meta { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 28px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; font-size: 15px; }
.legal-nav b { color: var(--muted-2); font-weight: 600; }
.legal-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: none; }
.legal h2 { font-size: 25px; margin: 34px 0 12px; scroll-margin-top: 96px; }
.legal p, .legal li { font-size: 16.5px; line-height: 1.65; color: var(--ink); }
.legal p { margin: 0 0 12px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 24px; }
.legal li { margin-bottom: 6px; }
.legal-table { max-width: 100%; margin: 0 0 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.legal table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.legal th, .legal td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal tr > * + * { border-left: 1px solid var(--line); }
.legal tbody tr:last-child td { border-bottom: 0; }
.legal th { background: var(--tab); font-weight: 600; }
.legal-req { margin-top: 32px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.legal-req b { display: block; margin-bottom: 6px; }
.legal-req p { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .legal { padding-top: 20px; }
  .legal h1 { font-size: 29px; }
  .legal h2 { font-size: 21px; }
  .legal p, .legal li { font-size: 16px; }
}

@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { max-width: 280px; justify-self: center; order: -1; }
  .hero.hero-photo { display: flex; flex-direction: column; min-height: 0; padding: 0; background: none; border-radius: 0; overflow: visible; }
  .hero-photo > .hero-img { position: static; order: -1; height: auto; aspect-ratio: 3 / 2; border-radius: 8px; margin-bottom: 20px; }
  .hero-photo .hero-text { max-width: none; }
  .hero h1 { font-size: 44px; }
  .hero h1 small { font-size: 22px; }
  .master { grid-template-columns: 1fr; }
  .master-photo { max-width: 320px; }
}
@media (max-width: 767px) {
  .site main.wrap { gap: 48px; padding-top: 28px; padding-bottom: 48px; }
  .sh-burger { display: inline-flex; align-items: center; }
  .sh-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; background: var(--paper-head); border-bottom: 1px solid var(--line-strong); box-shadow: 0 10px 24px rgba(31, 27, 23, 0.12); }
  .sh-nav.open { display: flex; }
  .sh-cta { margin: 8px 0 0; }
  .sh-name { font-size: 24px; }
  .section-head h2 { font-size: 30px; }
  .lead { font-size: 17px; }
  .cta-band { padding: 28px 22px; }
  .cta-band h2 { font-size: 26px; }
}

/* ── Переключатель «Для себя / Для бизнеса» ────────────────────────── */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--tab); border-radius: 999px; align-self: flex-start; scroll-margin-top: 96px; }
.seg [role="tab"] { min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 17px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.seg [role="tab"]:hover { color: var(--ink); }
.seg [role="tab"][aria-selected="true"] { background: var(--ink); color: #fdfaf3; }
.seg [role="tab"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[role="tabpanel"] { display: flex; flex-direction: column; gap: var(--gap-l); scroll-margin-top: 96px; }
[role="tabpanel"][hidden] { display: none; }
.panel-intro { margin: 0; max-width: 760px; color: var(--muted); font-size: 17px; }

/* ── Плитки (услуги и возможности кабинета) ────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap-m); }
.svc-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; scroll-margin-top: 96px; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.svc:has(.svc-open):hover { border-color: var(--line-strong); box-shadow: 0 10px 28px rgba(31, 27, 23, 0.08); transform: translateY(-2px); }
.svc .ink-icon { width: 96px; height: 96px; margin: -10px 0 -2px -10px; }
.svc h3 { font-size: 22px; margin: 0; }
.svc p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.svc-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-s { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--tab); color: var(--muted); }
.chip-s.away { background: var(--accent-soft); color: var(--accent-dark); }
.svc-open { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--accent); cursor: pointer; text-decoration: none; }
.svc-open:hover { color: var(--accent-dark); }
.svc-open::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.svc-open:focus-visible { outline: none; }
.svc-open:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.svc-detail[hidden] { display: none; }

/* Окно с подробным описанием услуги. */
.svc-dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; overflow: auto; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--ink); box-shadow: 0 24px 64px rgba(31, 27, 23, 0.28); }
.svc-dialog::backdrop { background: rgba(31, 27, 23, 0.45); }
body:has(.svc-dialog[open]) { overflow: hidden; }
.dlg-inner { display: flex; flex-direction: column; gap: 14px; padding: 26px 32px 28px; }
.dlg-head { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.dlg-head .ink-icon { width: 92px; height: 92px; margin: -8px; }
.dlg-head h2 { font-size: 30px; }
.dlg-close { width: 44px; height: 44px; align-self: start; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--paper); font: inherit; font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; }
.dlg-close:hover { background: var(--tab); }
.dlg-lead { margin: 0; font-size: 17px; color: var(--ink-2); }
.dlg-body h4 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin: 16px 0 6px; }
.dlg-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; }
.dlg-body p { margin: 0; }
.dlg-body .note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.dlg-actions { padding-top: 8px; }

/* ── Карусель ──────────────────────────────────────────────────────── */
.carousel { display: flex; flex-direction: column; gap: 14px; }
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--gap-m)) / 4); gap: var(--gap-m); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.car-track > * { scroll-snap-align: start; }
.car-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.car-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.car-nav { display: flex; gap: 10px; margin-left: auto; }
.car-nav button:disabled { opacity: 0.35; cursor: default; }
.carousel.static .car-nav { display: none; }
.carousel .svc .ink-icon { width: 88px; height: 88px; }

/* Экраны кабинета: по одному, следующий выглядывает справа. */
.screen { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.screen-img { border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--card); box-shadow: 0 14px 36px rgba(31, 27, 23, 0.1); }
.screen-img img { display: block; width: 100%; height: auto; }
.screen figcaption { display: flex; flex-direction: column; gap: 4px; max-width: 760px; }
.screen figcaption b { font-family: var(--serif); font-size: 24px; }
.screen figcaption span { color: var(--ink-2); }

/* ── Тарифы ────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--gap-l); align-items: stretch; }
.plan { gap: 16px; }
.plan.main { border: 2px solid var(--accent); box-shadow: 0 18px 44px rgba(158, 43, 34, 0.12); }
.plan-head { display: flex; flex-direction: column; gap: 4px; }
.plan h3 { font-size: 30px; margin: 0; }
.plan .for { color: var(--muted); }
.plan .amount { font-family: var(--serif); font-size: 40px; font-weight: 700; line-height: 1; }
.plan .amount small { font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.checks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border-left: 2.5px solid var(--good); border-bottom: 2.5px solid var(--good); transform: rotate(-45deg); }
.checks li.soon { color: var(--muted-2); }
.checks li.soon::before { border-color: var(--line-strong); }
.checks b { color: var(--ink); }
.checks.two-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; }
.plan .btn, .plan .btn-outline { margin-top: auto; align-self: flex-start; }

.ask-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.ask-chips span { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-family: var(--serif); font-size: 19px; font-style: italic; color: var(--ink); }

.benefit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: center; }
.benefit.flip .benefit-text { order: 2; }
.benefit-text { display: flex; flex-direction: column; gap: 12px; }
.benefit-text h3 { font-size: 30px; margin: 0; }
.benefit-text p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.benefit-text h2 { font-size: 38px; margin: 0; }
.report-img { width: 100%; max-width: 560px; height: auto; justify-self: center; }

.faq { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 18px 40px 18px 0; position: relative; cursor: pointer; list-style: none; font-family: var(--serif); font-size: 22px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 14px; font-family: var(--sans); font-size: 26px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--ink-2); max-width: 760px; }

.price-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 24px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-row b { font-family: var(--serif); font-size: 21px; }
.price-row span { display: block; font-size: 14px; color: var(--muted); }
.price-row .amount { font-family: var(--serif); font-size: 20px; font-weight: 700; white-space: nowrap; }

.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 22px 26px; background: var(--hl); border: 1px solid var(--line); border-radius: 8px; }
.callout p { margin: 0; max-width: 760px; font-size: 17px; }
.hero-note { margin: 0; font-size: 14px; color: var(--muted); }

@media (max-width: 1180px) {
  .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .car-track { grid-auto-columns: calc((100% - 2 * var(--gap-m)) / 3); }
}
@media (max-width: 899px) {
  .svc-grid, .svc-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .car-track { grid-auto-columns: calc((100% - var(--gap-m)) / 2); }
  .plans { grid-template-columns: 1fr; }
  .checks.two-cols { grid-template-columns: 1fr; }
  .t-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit { grid-template-columns: 1fr; gap: 20px; }
  .benefit.flip .benefit-text { order: 0; }
}
@media (max-width: 599px) {
  .svc-grid, .svc-grid.three { grid-template-columns: 1fr; gap: 12px; }
  .svc-grid .svc { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 16px; }
  .svc-grid .svc .ink-icon { grid-row: span 3; width: 72px; height: 72px; margin: -6px; }
  .svc-grid .svc h3 { font-size: 20px; }
  .svc-grid .svc-foot { grid-column: 2; padding-top: 6px; }
  .cards .card.feature { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 16px; }
  .cards .card.feature .ink-icon { grid-row: span 3; width: 72px; height: 72px; margin: -6px; }
  .cards .card.feature h3 { font-size: 20px; margin: 0; }
  .cards .card.feature .more { grid-column: 2; }
  .t-grid { grid-template-columns: 1fr; }
  .diplomas .cert img { height: 150px; }
  .car-track { grid-auto-columns: 80%; }
  .seg { display: flex; width: 100%; }
  .seg [role="tab"] { flex: 1; padding: 0 10px; font-size: 16px; }
  .svc-dialog { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 14px 14px 0 0; }
  .dlg-inner { padding: 20px 18px 24px; }
  .dlg-head { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .dlg-head .ink-icon { width: 72px; height: 72px; }
  .dlg-head h2 { font-size: 24px; }
  .price-row { grid-template-columns: minmax(0, 1fr) auto; }
  .price-row .btn-outline { grid-column: 1 / -1; justify-self: start; }
  .ask-chips span { font-size: 17px; }
  .faq summary { font-size: 19px; }
  .benefit-text h3, .plan h3 { font-size: 26px; }
}

/* ── Заказать звонок: компактная форма и пояснения с иконками тушью ── */
.contact-layout { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: var(--gap-xl); align-items: start; }
.callback { gap: 14px; padding: 22px 24px 20px; scroll-margin-top: 96px; }
.callback-head { display: flex; align-items: center; gap: 12px; }
.callback-head .ink-icon { width: 72px; height: 72px; margin: -10px -4px -10px -10px; }
.callback h2 { font-size: 26px; margin: 0; }
.callback-topic { margin: 2px 0 0; font-size: 14px; color: var(--accent-dark); }
.callback-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.callback label.field { font-size: 13px; gap: 4px; }
.callback input[type="text"], .callback input[type="tel"], .callback textarea { min-height: 44px; padding: 8px 12px; font-size: 16px; }
.callback input[type="tel"] { width: 100%; border: 1px solid var(--line-strong); border-radius: 4px; background: #ffffff; font: inherit; color: var(--ink); }
.callback textarea { min-height: 0; }
.callback legend { font-size: 13px; margin-bottom: 6px; }
.req { color: var(--accent); font-weight: 700; }
.time-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.time-chips label { position: relative; cursor: pointer; }
.time-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.time-chips span { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px 0 5px; border: 1px solid var(--line-strong); border-radius: 999px; background: #ffffff; font-size: 14px; color: var(--ink-2); }
.time-chips i { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--han); font-style: normal; font-size: 15px; font-weight: 600; }
.time-chips input:checked + span { background: var(--ink); border-color: var(--ink); color: #fdfaf3; }
.time-chips input:checked + span i { background: var(--accent); color: #fdfaf3; }
.time-chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { align-items: flex-start; margin: 0; min-height: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.consent input { flex: none; margin-top: 1px; }
.callback-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.form-status { margin: 0; font-size: 14px; color: var(--ink-2); }
.form-status:empty { display: none; }
.form-status.error { color: var(--accent); }
.callback-done { display: flex; flex-direction: column; gap: 8px; }
.callback-done p { margin: 0; }
.contact-notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-notes li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; }
.contact-notes .ink-icon { width: 84px; height: 84px; margin: -8px; }
.contact-notes b { display: block; font-family: var(--serif); font-size: 21px; }
.contact-notes span { color: var(--ink-2); }
@media (max-width: 899px) { .contact-layout { grid-template-columns: 1fr; } .contact-layout .callback { max-width: 560px; } }
@media (max-width: 599px) { .callback-grid { grid-template-columns: 1fr; } .callback { padding: 18px 16px; } }

/* ── Китайские первоисточники: название — вертикально, как на корешке ── */
.books { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-m); }
.book { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 18px; padding: 22px 22px 20px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.book-zh { writing-mode: vertical-rl; text-orientation: upright; font-family: var(--han); font-size: 24px; font-weight: 600; letter-spacing: 0.06em; line-height: 1; color: var(--accent); padding-right: 14px; border-right: 1px solid var(--line); }
.book-text { display: flex; flex-direction: column; gap: 3px; }
.book-age { align-self: flex-start; margin-bottom: 6px; padding: 2px 10px; border: 1px solid var(--accent); border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); white-space: nowrap; }
.book h3 { font-size: 22px; margin: 0; }
.book-ru { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink-2); line-height: 1.3; }
.book p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.books-note { margin: 0; max-width: 900px; color: var(--muted); }
#books { scroll-margin-top: 96px; }
@media (max-width: 1023px) { .books { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .books { grid-template-columns: 1fr; } .book-zh { font-size: 22px; } }

/* ── Блог ──────────────────────────────────────────────────────────── */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--gap-m); }
.post-card { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; transition: border-color 0.15s, box-shadow 0.15s; }
.post-card:hover { border-color: var(--line-strong); box-shadow: 0 10px 28px rgba(31, 27, 23, 0.08); }
.post-card-img .ink-icon { width: 104px; height: 104px; margin: -8px; }
.post-card-text { display: flex; flex-direction: column; gap: 6px; }
.post-card h2 { font-size: 23px; line-height: 1.2; margin: 0; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.post-card h2 a:focus-visible { outline: none; }
.post-card h2 a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.post-card p { margin: 0; font-size: 15px; color: var(--ink-2); }
.post-meta { font-size: 13px; color: var(--muted-2); margin: 0; }
.post-empty { margin: 0; color: var(--muted); }

.post { display: flex; flex-direction: column; gap: 22px; max-width: 780px; margin: 0 auto; width: 100%; }
.crumbs { font-size: 14px; color: var(--muted-2); }
.crumbs a { color: var(--muted); }
.post-head { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; align-items: center; }
.post-head .ink-icon { width: 124px; height: 124px; margin: -10px; }
.post-head h1 { font-size: 44px; line-height: 1.1; margin: 0 0 8px; }
.post-toc { padding: 16px 20px; background: var(--hl); border: 1px solid var(--line); border-radius: 8px; }
.post-toc b { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.post-toc ol { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.post-body { font-size: 18px; line-height: 1.7; color: var(--ink); }
.post-body > * { margin: 0 0 16px; }
.post-body h2 { font-size: 32px; margin: 36px 0 12px; scroll-margin-top: 96px; }
.post-body h3 { font-size: 23px; margin: 26px 0 8px; scroll-margin-top: 96px; }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body li { margin-bottom: 6px; }
.post-body blockquote { margin: 0 0 18px; padding: 6px 0 6px 20px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 21px; font-style: italic; color: var(--ink-2); }
.post-body blockquote p { margin: 0; }
.han { font-family: var(--han); font-style: normal; }
.post-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; }
.post-cta b { font-family: var(--serif); font-size: 22px; }
.post-cta p { margin: 4px 0 0; color: var(--ink-2); }
.post-more h2 { font-size: 30px; }

.subscribe { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px 28px; align-items: center; padding: 26px 30px; background: var(--hl); border: 1px solid var(--line); border-radius: 10px; }
.subscribe .ink-icon { width: 124px; height: 124px; margin: -12px; }
.subscribe h2 { font-size: 28px; margin: 0 0 6px; }
.subscribe-text p { margin: 0; color: var(--ink-2); }
.subscribe-form { display: flex; flex-direction: column; gap: 10px; }
.subscribe-row { display: flex; gap: 8px; }
.subscribe-row input { flex: 1; min-width: 0; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: #ffffff; font: inherit; font-size: 16px; color: var(--ink); }
.subscribe-done { margin: 0; font-family: var(--serif); font-size: 20px; color: var(--good); }
@media (max-width: 1023px) { .subscribe { grid-template-columns: 90px minmax(0, 1fr); } .subscribe-form { grid-column: 1 / -1; } .subscribe .ink-icon { width: 100px; height: 100px; } }
@media (max-width: 599px) {
  .post-list { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .post-card-img .ink-icon { width: 72px; height: 72px; margin: -6px; }
  .post-card h2 { font-size: 20px; }
  .post-head { grid-template-columns: 1fr; gap: 0; }
  .post-head .ink-icon { width: 96px; height: 96px; margin: -10px 0 0 -10px; }
  .post-head h1 { font-size: 32px; }
  .post-body { font-size: 17px; }
  .post-body h2 { font-size: 26px; }
  .subscribe { grid-template-columns: 1fr; padding: 20px 18px; }
  .subscribe .ink-icon { width: 84px; height: 84px; margin: -8px; }
  .subscribe h2 { font-size: 24px; }
  .subscribe-row { flex-direction: column; }
}

/* ── Живая картинка главной: солнце встаёт, птицы летят, лепестки слетают, туман плывёт ──
   Слои — SVG в координатах картинки (1600×1067, кадр как у картинки: справа, по центру).
   Ветер — справа налево: лепестки и туман сносит влево, птицы летят ему навстречу.
   Только transform, opacity и clip-path; при «уменьшить движение» в системе — неподвижно. */
.hero-photo .hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media > * { transform-origin: 72% 62%; }
.hero-media .hero-img, .hero-media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media .hero-img { object-fit: cover; object-position: right center; }
.hero-media svg { pointer-events: none; overflow: hidden; }
.hero-sun { mix-blend-mode: multiply; } /* тушь и фактура бумаги проступают сквозь солнце */
.hero-live .birds { fill: #2b2622; }
.hero-live .petals { fill: #cf3b2c; }
.hero-live .birds, .hero-live .petals { display: none; }
.hero-live g, .hero-sun g, .hero-live ellipse { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero-live .birds, .hero-live .petals { display: inline; }

  /* «Камера»: очень медленный наезд на горы и обратно — глубина без суеты. */
  .hero-media > * { animation: camera 40s ease-in-out infinite alternate; }

  /* Солнце: медленно выходит из-за хребта, потом свечение «дышит». */
  .sun { animation: sun-rise 8s cubic-bezier(0.25, 0.6, 0.25, 1) 0.5s both; }
  .sun-glow { animation: sun-breathe 6s ease-in-out 8.5s infinite alternate; }

  /* Птицы: перелёт (дальние — мельче и медленнее), серия взмахов → скольжение, на взмахе набор высоты и крен. */
  .fly { animation: fly 30s linear infinite; opacity: 0; }
  .fly.b2 { animation-duration: 38s; animation-delay: -14s; }
  .fly.b3 { animation-duration: 47s; animation-delay: -30s; }
  .bob { animation: bob-glide 2.4s ease-in-out infinite; }
  .flap { animation: flap-glide 2.4s linear infinite; }
  .b2 .bob, .b2 .flap { animation-duration: 2.1s; animation-delay: -0.8s; }
  .b3 .bob, .b3 .flap { animation-duration: 2.9s; animation-delay: -1.7s; }

  /* Лепестки: срываются по одному, переворачиваются в воздухе, ветер сносит влево. */
  .fall { animation: fall 14s cubic-bezier(0.45, 0, 0.75, 1) infinite; opacity: 0; }
  .fall.p2 { animation-duration: 17s; animation-delay: 3s; }
  .fall.p3 { animation-duration: 15s; animation-delay: 6s; }
  .fall.p4 { animation-duration: 19s; animation-delay: 9s; }
  .fall.p5 { animation-duration: 16s; animation-delay: 11.5s; }
  .fall.p6 { animation-duration: 18s; animation-delay: 1.5s; }
  .petals ellipse { animation: flutter 0.9s ease-in-out infinite alternate; }
  .p2 ellipse { animation-duration: 1.2s; }
  .p3 ellipse { animation-duration: 0.75s; }
  .p4 ellipse { animation-duration: 1.4s; }
  .p5 ellipse { animation-duration: 1s; }
  .p6 ellipse { animation-duration: 1.1s; }

  /* Туман плывёт по ветру и растворяется — без возврата назад. */
  .mist .m1 { animation: mist-drift 70s linear infinite; }
  .mist .m2 { animation: mist-drift 86s linear -40s infinite; }
  .mist .m3 { animation: mist-drift 96s linear -66s infinite; }

  .hero-media.paused, .hero-media.paused * { animation-play-state: paused; }

  /* Первый экран — по блокам в темпе чтения: надзаголовок → заголовок → подзаголовок → абзац строка за строкой → цитата → кнопки.
     Печать в шапке — штампом. */
  .hero-photo .hero-text > *, .hero-photo .hero-text h1 small { animation: rise-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-photo .hero-text > h1 { animation-delay: 0.3s; }
  .hero-photo .hero-text h1 small { animation-delay: 1.1s; }
  .hero-photo .hero-text > .lead {
    animation: rise-in 0.8s ease-out 1.9s both, lines-in 2.6s cubic-bezier(0.4, 0, 0.6, 1) 1.9s both;
    -webkit-mask-image: linear-gradient(to bottom, #000 0 48%, transparent 58% 100%); mask-image: linear-gradient(to bottom, #000 0 48%, transparent 58% 100%);
    -webkit-mask-size: 100% 220%; mask-size: 100% 220%;
  }
  .hero-photo .hero-text > .hero-quote { animation-delay: 4s; }
  .hero-photo .hero-text > .btn-row { animation-delay: 4.5s; }
  body[data-nav="home"] .sh-brand .seal-logo { animation: stamp 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) 0.15s both; }

  /* Блоки ниже — появляются при прокрутке (класс reveal ставит site.js). */
  .reveal { opacity: 0; transform: translateY(22px); }
  .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .reveal.is-in[data-d="1"] { transition-delay: 0.08s; }
  .reveal.is-in[data-d="2"] { transition-delay: 0.16s; }
  .reveal.is-in[data-d="3"] { transition-delay: 0.24s; }
  .reveal.is-in[data-d="4"] { transition-delay: 0.32s; }
  .reveal.is-in[data-d="5"] { transition-delay: 0.4s; }
  /* Иконки тушью «растекаются»; названия книг «пишутся» сверху вниз; номера шагов — капля туши. */
  .card.feature.reveal .ink-icon { filter: blur(5px); transform: scale(0.82); }
  .card.feature.reveal.is-in .ink-icon { filter: none; transform: none; transition: filter 1.1s ease 0.2s, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s; }
  .book.reveal .book-zh { clip-path: inset(0 0 100% 0); }
  .book.reveal.is-in .book-zh { clip-path: inset(0 0 0 0); transition: clip-path 1.4s cubic-bezier(0.5, 0, 0.3, 1) 0.3s; }
  .steps li.reveal::before { transform: scale(0.3); }
  .steps li.reveal.is-in::before { transform: none; transition: transform 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) 0.25s; }
  .report-img.reveal { transform: translateY(30px) rotate(-3deg); }
  .report-img.reveal.is-in { transform: none; transition: opacity 1s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
}

@keyframes camera { from { transform: none; } to { transform: scale(1.04) translate(-1%, -0.6%); } }
@keyframes sun-rise { from { transform: translateY(130px); } to { transform: none; } }
@keyframes sun-breathe { from { opacity: 0.7; } to { opacity: 1; } }
@keyframes fly {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translate(1100px, -260px); opacity: 0; }
}
@keyframes fly-wide {
  0% { transform: translate(-760px, 120px); opacity: 0; }
  6% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translate(1100px, -260px); opacity: 0; }
}
@keyframes bob-glide {
  0% { transform: translateY(6px) rotate(-8deg); }
  40% { transform: translateY(-12px) rotate(-15deg); }
  100% { transform: translateY(6px) rotate(-8deg); }
}
@keyframes flap-glide {
  0% { transform: scaleY(1); }
  7% { transform: scaleY(-0.45); }
  14% { transform: scaleY(1); }
  21% { transform: scaleY(-0.45); }
  28% { transform: scaleY(1); }
  35% { transform: scaleY(-0.4); }
  44% { transform: scaleY(0.85); }
  100% { transform: scaleY(0.8); }
}
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0); opacity: 0; }
  6% { opacity: 0.95; }
  30% { transform: translate(-40px, 170px) rotate(130deg); }
  55% { transform: translate(-120px, 330px) rotate(250deg); }
  80% { transform: translate(-175px, 470px) rotate(390deg); opacity: 0.85; }
  100% { transform: translate(-240px, 580px) rotate(520deg); opacity: 0; }
}
@keyframes flutter { from { transform: scaleX(1); } to { transform: scaleX(0.25); } }
@keyframes mist-drift {
  0% { transform: translateX(220px); opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { transform: translateX(-260px); opacity: 0; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes lines-in { from { -webkit-mask-position: 0 100%; mask-position: 0 100%; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes stamp { from { transform: scale(1.35) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 899px) {
  .hero-photo .hero-media { position: relative; order: -1; align-self: stretch; width: 100%; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
  .hero-photo .hero-media .hero-img { border-radius: 0; }
  /* На телефоне текст под картинкой — птицы летят через всю картинку. */
  .fly { animation-name: fly-wide; }
}

/* ── Показ кабинета: живой макет, курсор делает то, что сделал бы человек; окно — в лёгкой перспективе ── */
.demo { position: relative; }
.stage3d { perspective: 1900px; perspective-origin: 50% 20%; }
.app { --rx: 5deg; --ry: -5deg; --s: 0.97; transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--s)); transform-origin: 50% 40%; transition: transform 1.6s cubic-bezier(0.3, 0.7, 0.2, 1); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; box-shadow: 0 46px 80px -34px rgba(31, 27, 23, 0.38), 0 0 0 1px rgba(31, 27, 23, 0.03); }
.a-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--paper-head); border-bottom: 1px solid var(--line); }
.a-top .seal-logo { width: 28px; height: 28px; font-size: 11px; border-radius: 5px; flex: none; }
.a-brand { font-family: var(--serif); font-size: 18px; white-space: nowrap; }
.a-nav { display: flex; gap: 2px; margin-left: 10px; }
.a-tab { padding: 7px 12px; border-radius: 6px; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; cursor: pointer; transition: background 0.25s, color 0.25s, transform 0.15s; }
.a-tab.on { background: var(--tab); color: var(--accent); font-weight: 700; }
.a-tab.muted { cursor: default; }
.a-tab.hov, .a-tab:not(.muted):hover { background: var(--tab); }
.a-people { margin-left: auto; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.a-tab.pressed, .a-btn.pressed, .a-drop span.pressed { transform: scale(0.94); }
.a-in.pressed, .a-sel.pressed { transform: scale(0.985); }
.a-in, .a-sel { transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s; }
.a-main { position: relative; padding: 18px 20px 20px; min-height: 490px; }
.a-scr { display: none; }
.a-scr.on { display: block; animation: scr-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes scr-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.a-main h5 { font-family: var(--serif); font-size: 19px; margin: 0; }
.a-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }

/* Сцена 1: данные → карта */
.a-form { display: grid; grid-template-columns: 0.8fr 1fr 0.8fr 1fr auto; gap: 12px; align-items: end; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; transition: opacity 0.35s, transform 0.35s; }
.a-field { display: flex; flex-direction: column; gap: 5px; }
.a-field small { font-size: 12px; color: var(--muted); }
.a-in { display: block; min-height: 40px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: #ffffff; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.a-in.focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.a-in.focus::after { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: var(--ink); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.a-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 6px; background: var(--accent); color: #fdfaf3; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background 0.2s, transform 0.15s; }
.a-btn.hov { background: var(--accent-dark); }
.a-result { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr); gap: 14px; margin-top: 14px; }
[data-scr="chart"].calc .a-form { opacity: 0.35; transform: scale(0.98); }
.pils { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.pil { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 10px; border-radius: 8px; opacity: 0; transform: rotateY(80deg) translateY(8px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.pil.in { opacity: 1; transform: none; }
.pil.me { background: var(--hl); }
.pil small { font-size: 12px; color: var(--muted); }
.pil.me small { color: var(--accent); font-weight: 700; }
.pil b { font-family: var(--han); font-size: 36px; font-weight: 600; line-height: 1.15; }
.pil em { font-style: normal; font-size: 12px; color: var(--muted-2); }
.e-earth { color: var(--earth); } .e-fire { color: var(--fire); } .e-wood { color: var(--wood); } .e-metal { color: var(--metal); } .e-water { color: var(--water); }
.bg-earth { background: var(--earth); } .bg-fire { background: var(--fire); } .bg-wood { background: var(--wood); } .bg-metal { background: var(--metal); } .bg-water { background: var(--water); }
.a-luck { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.a-luck h6 { margin: 0 0 8px; font-family: var(--serif); font-size: 15px; }
.a-luck h6 small { font-family: var(--sans); font-size: 11.5px; font-weight: 400; color: var(--muted-2); margin-left: 4px; }
.lk { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.l { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 7px; opacity: 0; transform: translateY(6px); transition: opacity 0.45s, transform 0.5s, background 0.5s; }
.l.in { opacity: 1; transform: none; }
.l small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.l b { font-family: var(--han); font-size: 20px; font-weight: 600; line-height: 1.2; }
.l.now.in { background: var(--hl); box-shadow: inset 0 0 0 1px var(--accent); }
.l.now small { color: var(--accent); font-weight: 700; }
.gauge { margin: 22px 0 4px; }
.g-track { position: relative; display: block; height: 10px; border-radius: 999px; background: var(--tab); }
.g-zone { position: absolute; left: 55%; width: 25%; top: 0; bottom: 0; background: var(--accent); border-radius: 2px; opacity: 0; transition: opacity 0.6s; }
.g-mark { position: absolute; left: 0; top: -5px; width: 3px; height: 20px; border-radius: 2px; background: var(--ink); transition: left 1.3s cubic-bezier(0.3, 0.7, 0.2, 1); }
.g-mark b { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 12px; white-space: nowrap; }
.g-lbl { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--muted-2); }
.g-verdict { margin: 8px 0 10px; font-size: 14px; color: var(--ink-2); opacity: 0; transition: opacity 0.6s; }
.g-verdict b { color: var(--ink); }
.a-strength.lit .g-verdict { opacity: 1; }
.a-strength.lit .g-zone { opacity: 0.28; }
.els { display: flex; flex-direction: column; gap: 7px; }
.el { display: grid; grid-template-columns: 96px minmax(0, 1fr) 40px 74px; gap: 10px; align-items: center; }
.el > span:first-child { display: flex; flex-direction: column; line-height: 1.15; }
.el b { font-size: 14px; }
.el small { font-size: 11px; color: var(--muted-2); }
.el-tr { height: 10px; border-radius: 999px; background: var(--tab); overflow: hidden; }
.el-tr i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 0.9s cubic-bezier(0.3, 0.7, 0.2, 1); }
.el-v { font-weight: 700; font-size: 14px; text-align: right; }
.tag { justify-self: start; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; opacity: 0; transform: scale(0.8); transition: opacity 0.4s, transform 0.4s; }
.tag.good { background: #e3efdd; color: var(--good); }
.tag.bad { background: var(--accent-soft); color: var(--accent-dark); }
.tag.warn { background: #f6ecdc; color: var(--earth); }
.el.in .tag, .nob.in .tag, .bd.in .tag { opacity: 1; transform: none; }

/* Сцена 2: подбор даты */
.a-h { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 14px; }
.a-h h5 { margin-right: auto; }
.a-sub { width: 100%; font-size: 12.5px; color: var(--muted); }
.a-sel { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 6px; background: #ffffff; font-size: 14px; transition: border-color 0.2s; }
.a-sel small { font-size: 12px; color: var(--muted); }
.a-sel.open { border-color: var(--accent); }
.a-drop { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; min-width: 100%; display: none; flex-direction: column; padding: 4px; background: #ffffff; border: 1px solid var(--line-strong); border-radius: 8px; box-shadow: 0 14px 30px -12px rgba(31, 27, 23, 0.35); }
.a-sel.open .a-drop { display: flex; }
.a-drop span { padding: 7px 10px; border-radius: 5px; font-size: 13.5px; white-space: nowrap; }
.a-drop span.hov { background: var(--tab); }
.days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.day { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.day.in { opacity: 1; transform: none; }
.day-h { display: flex; align-items: center; gap: 10px; }
.day-h b { display: block; font-size: 15px; }
.day-h small { font-size: 12px; color: var(--muted); }
.rank { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fdfaf3; font-size: 12px; font-weight: 700; flex: none; }
.day-h .hz { margin-left: auto; font-family: var(--han); font-size: 24px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { padding: 3px 9px; border-radius: 999px; font-size: 11.5px; border: 1px solid; }
.chip.good { color: var(--good); border-color: #b9d3ae; background: #f1f7ee; }
.chip.bad { color: var(--accent-dark); border-color: #e3b5ae; background: #fbf0ed; }
.hours { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding-top: 8px; border-top: 1px dashed var(--line); }
.hours small { font-size: 12px; color: var(--muted); margin-right: 2px; }
.hr { padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 12px; }
.hr { color: var(--good); border-color: #b9d3ae; }
.hr.best { border-color: var(--good); background: #f1f7ee; box-shadow: inset 0 0 0 1px var(--good); font-weight: 700; }
.day.in .hr.best { animation: best 1.6s ease-in-out 0.6s 2; }
@keyframes best { 50% { box-shadow: inset 0 0 0 1px var(--good), 0 0 0 5px #e3efdd; } }

/* Сцена 3: активизации — звёзды «влетают» в сектора по пути Летящих звёзд */
.act-body { display: grid; grid-template-columns: minmax(230px, 330px) minmax(0, 1fr) minmax(0, 0.95fr); gap: 24px; align-items: start; }
.loshu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 8px; background: var(--card); transition: box-shadow 0.5s, border-color 0.5s, background 0.5s; }
.cell small { font-size: 11px; color: var(--muted); }
.cell b { font-family: var(--serif); font-size: 30px; line-height: 1; font-variant-numeric: lining-nums; }
.cell b i { font-style: normal; font-size: 16px; margin-left: 3px; color: var(--muted); }
.cell em { font-style: normal; font-family: var(--han); font-size: 11px; color: var(--muted-2); }
.cell b, .cell em { opacity: 0; transform: translate(-22px, -18px) scale(0.5); transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.25, 1.4, 0.5, 1); }
.cell.lit b, .cell.lit em { opacity: 1; transform: none; }
.cell.five.lit { background: #f1ebe8; }
.loshu.framed .cell.noble { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #fbf3ea; }
.nobles h6 { margin: 0 0 8px; font-family: var(--serif); font-size: 17px; }
.nob { display: grid; grid-template-columns: minmax(0, 1fr) 42px 106px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; opacity: 0; transform: translateX(10px); transition: opacity 0.45s, transform 0.5s; }
.nob.in, .bd.in { opacity: 1; transform: none; }
.nob b { font-weight: 400; }

/* Календарь: месяц целиком и почему отсеяны остальные дни */
.cal-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.month, .why { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.m-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.m-head b, .why h6, .a-best h6 { font-family: var(--serif); font-size: 16px; }
.m-head small { font-size: 12px; color: var(--muted); }
.m-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.m-grid .wd { font-size: 11px; color: var(--muted-2); text-align: center; }
.m-grid .d { display: grid; place-items: center; height: 22px; border-radius: 5px; font-size: 12px; color: var(--muted-2); transition: background 0.35s, color 0.35s; }
.m-grid .d.in.ok { background: #e3efdd; color: var(--good); font-weight: 700; }
.m-grid .d.in.best { background: var(--good); color: #fdfaf3; font-weight: 700; }
.m-grid .d.in.no { background: #f8ece9; color: #a5675f; }
.m-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 11.5px; color: var(--muted); }
.sw { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 3px; vertical-align: -1px; }
.sw.best { background: var(--good); } .sw.ok { background: #cfe3c6; } .sw.no { background: #efd6d1; }
.why h6, .a-best h6 { margin: 0 0 6px; }
.why ul { list-style: none; margin: 0; padding: 0; }
.why li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); opacity: 0; transform: translateX(10px); transition: opacity 0.45s, transform 0.5s; }
.why li.in { opacity: 1; transform: none; }
.why li b { color: var(--accent-dark); }
.why li b::after { content: " дн."; font-weight: 400; color: var(--muted); }
/* Активизации: лучшие дни месяца */
.bd { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); opacity: 0; transform: translateX(10px); transition: opacity 0.45s, transform 0.5s; }
.bd b { display: block; font-size: 14px; }
.bd small { font-size: 12px; color: var(--muted); }
.bd small, .day-h small { white-space: nowrap; }

/* Курсор и «круги» от нажатия — поверх сцены, в экранных координатах. */
.cursor { position: absolute; left: 0; top: 0; z-index: 30; width: 30px; height: 30px; pointer-events: none; opacity: 0; fill: #ffffff; stroke: #1f1b17; stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 5px 7px rgba(31, 27, 23, 0.3)); transition: opacity 0.45s; will-change: transform; }
.cursor.on { opacity: 1; }
.cursor path { transform-origin: 3px 3px; transition: transform 0.14s cubic-bezier(0.3, 0.7, 0.3, 1); }
.cursor.press path { transform: scale(0.82); }
.ripple { position: absolute; z-index: 29; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid var(--accent); pointer-events: none; animation: ripple 0.6s ease-out forwards; }
@keyframes ripple { from { transform: scale(0.3); opacity: 0.9; } to { transform: scale(1.4); opacity: 0; } }
.demo-note { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--muted-2); }

@media (max-width: 899px) {
  .app { --rx: 0deg !important; --ry: 0deg !important; --s: 1 !important; }
  .a-people, .a-brand { display: none; }
  .a-nav { margin-left: 4px; overflow-x: auto; scrollbar-width: none; }
  .a-main { padding: 12px; min-height: 0; height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent); mask-image: linear-gradient(to bottom, #000 88%, transparent); }
  [data-scr="chart"].done .a-form { display: none; }
  [data-scr="chart"].done .a-result { margin-top: 0; }
  .cal-more { grid-template-columns: 1fr; }
  .why, .a-best { display: none; }
  .a-form { grid-template-columns: 1fr 1fr; }
  .a-form .a-btn { grid-column: 1 / -1; }
  .a-result { grid-template-columns: 1fr; }
  .days { grid-template-columns: 1fr; }
  .days .day:nth-child(3) { display: none; }
  .act-body { grid-template-columns: 1fr; }
  .loshu { max-width: 320px; }
  .a-h h5 { width: 100%; }
}
@media (max-width: 599px) {
  .a-tab { padding: 6px 9px; font-size: 13px; }
  .a-tab.muted { display: none; }
  .pil b { font-size: 28px; }
  .el { grid-template-columns: 78px minmax(0, 1fr) 36px; }
  .el .tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .app, .demo * { transition: none !important; animation: none !important; }
}
