/* detist.ru — вариант D: белая основа, оттенки лаванды, Literata + Manrope. */
:root {
  --ink: #2E2659;
  --ink-2: #3A3368;
  --muted: #5F5888;
  --faint: #6A6394;
  --lav-50: #F7F4FE;
  --lav-100: #EFE9FD;
  --lav-200: #E2D8FB;
  --lav-300: #CDBDF6;
  --lav-400: #AD97EE;
  --violet: #5B45B0;
  --violet-dark: #3F2F8A;
  --white: #ffffff;
  --r-xl: 32px;
  --r-lg: 28px;
  --r-md: 22px;
  --serif: Literata, Georgia, "Times New Roman", serif;
  --sans: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: #1A1540; }
:focus-visible { outline: 3px solid var(--lav-400); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(26px, 3vw, 34px); }
h3 { font-size: 22px; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.main { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; padding-bottom: 48px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--white); padding: 8px 14px; border-radius: 12px; }

/* --- Шапка ------------------------------------------------------------- */
.hdr { background: var(--white); border-bottom: 1px solid var(--lav-100); position: sticky; top: 0; z-index: 5; }
.hdr__in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px/1.1 var(--serif); }
.logo__img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--lav-300); }
.nav { display: flex; gap: 4px 18px; flex: 1 1 auto; justify-content: center; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: #8B72E0; }

@media (max-width: 1080px) {
  .nav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 24px; }
  .nav::-webkit-scrollbar { display: none; }
  .hdr__in { justify-content: space-between; }
}

/* --- Кнопки -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 12px 22px; border-radius: 999px; background: var(--violet); color: var(--white); text-decoration: none; font: 700 15px/1.2 var(--sans); border: 0; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.btn:hover { color: var(--white); background: var(--violet-dark); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--lav-50); color: var(--ink); }
.btn--soft { background: var(--lav-100); color: var(--ink); }
.btn--soft:hover { background: var(--lav-200); color: var(--ink); }
.btn--outline { background: transparent; border: 2px solid #A897F4; color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,.12); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.more { font-weight: 700; color: var(--violet); }

/* --- Тона ---------------------------------------------------------------- */
.tone-white { background: var(--white); border: 1px solid var(--lav-200); }
.tone-50 { background: var(--lav-50); }
.tone-100 { background: var(--lav-100); }
.tone-200 { background: var(--lav-200); }
.tone-300 { background: var(--lav-300); }

/* --- Первый экран главной ---------------------------------------------- */
.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.hero__card { position: relative; overflow: hidden; background: var(--lav-100); border-radius: var(--r-xl); padding: 56px 44px; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.hero__card > :not(.sky) { position: relative; }
.hero__lead { font-size: 20px; line-height: 1.55; max-width: 560px; color: #4A4377; }
.hero__photo { margin: 0; position: relative; min-height: 440px; border-radius: var(--r-xl); overflow: hidden; border: 6px solid var(--lav-300); }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.pill { align-self: flex-start; background: var(--white); color: var(--violet); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; }

/* Снег и месяц (решение владельца, исключение из ТЗ §2). */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.snow { position: absolute; top: -16px; border-radius: 50%; background: var(--lav-300); animation: snowfall linear infinite; }
.snow--b { background: var(--lav-400); }
.snow--c { background: var(--lav-200); }
@keyframes snowfall { 0% { transform: translate(0, 0); } 50% { transform: translate(18px, 270px); } 100% { transform: translate(-6px, 560px); } }
.moon { position: absolute; right: 56px; top: 24px; width: 96px; height: 96px; transform-origin: 50% 50%; animation: moon 9s ease-in-out 1s 1 forwards; }
.moon__sway { display: block; width: 100%; height: 100%; transform-origin: 50% 0; animation: moonsway 3.6s ease-in-out 10s infinite; }
@keyframes moon {
  0% { top: 24px; transform: rotate(0); }
  12% { transform: rotate(-8deg); } 22% { transform: rotate(10deg); } 32% { transform: rotate(-14deg); }
  42% { transform: rotate(18deg); } 52% { transform: rotate(-24deg); }
  62% { top: 24px; transform: rotate(32deg); animation-timing-function: ease-in; }
  78% { top: calc(100% - 104px); transform: rotate(190deg); animation-timing-function: ease-out; }
  86% { top: calc(100% - 136px); transform: rotate(180deg); animation-timing-function: ease-in; }
  94% { top: calc(100% - 104px); transform: rotate(176deg); }
  100% { top: calc(100% - 104px); transform: rotate(180deg); }
}
@keyframes moonsway { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }

/* --- Плашки под первым экраном ------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: var(--r-md); text-decoration: none; background: var(--white); border: 1px solid var(--lav-200); }
.stat__big { font: 700 30px/1.15 var(--serif); color: var(--violet); }
.stat__big--sm { font-size: 22px; line-height: 1.25; }
.stat__small { font-size: 15px; color: var(--muted); }
.stat--soft { background: var(--lav-50); border-color: transparent; }
.stat--mid { background: var(--lav-200); border-color: transparent; }
.stat--mid .stat__big { color: var(--violet-dark); }
.stat--mid .stat__small { color: #4A4377; }
.stat--deep { background: var(--violet); border-color: transparent; }
.stat--deep .stat__big, .stat--deep:hover .stat__big { color: var(--white); }
.stat--deep .stat__small { color: #E8E1FF; }

/* --- Блоки-переходы ------------------------------------------------------ */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 14px; padding: 14px; border-radius: var(--r-lg); text-decoration: none; color: var(--ink); }
.tile, .tile-lift { transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover, .tile-lift:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(60, 40, 140, .13); color: var(--ink); }
.tile__media { display: block; height: 200px; border-radius: 20px; overflow: hidden; }
.tile__img { width: 100%; height: 100%; object-fit: cover; }
.tile__img--contain { object-fit: contain; }
.tile--platform .tile__media { background: var(--white); }
.tile--podcast .tile__img { object-position: center 58%; }
.tile__body { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 12px; }
.tile__body--center { justify-content: center; padding: 18px 12px 12px 0; }
.tile__title { font: 700 28px/1.15 var(--serif); }
.tile__title--lg { font-size: 34px; }
.tile__text { font-size: 15px; line-height: 1.5; color: var(--muted); }
.tile__text--lg { font-size: 18px; line-height: 1.55; color: #4A4377; }
.tone-200 .tile__text, .tone-300 .tile__text { color: var(--ink-2); }
.tile--wide { grid-column: span 2; flex-direction: row; flex-wrap: wrap; gap: 24px; padding: 16px; min-height: 360px; }
.tile__media--side { flex: 1 1 280px; height: auto; min-height: 260px; }
.tile--wide .tile__body { flex: 1 1 260px; }
.tile--strip { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 26px 32px; }
.tile--strip .tile__body { padding: 0; }
.tile--big .tile__media { height: 280px; }
.tile--quote .tile__text { font-family: var(--serif); font-style: italic; }

.fan { display: flex !important; align-items: center; justify-content: center; height: 200px; border-radius: 20px; background: var(--lav-300); }
.fan img { width: 104px; height: 104px; object-fit: cover; border-radius: 10px; border: 4px solid var(--white); }
.fan__mid { width: 124px !important; height: 124px !important; position: relative; z-index: 1; }
.fan__side--l { transform: rotate(-10deg) translateY(10px); margin-right: -26px; }
.fan__side--r { transform: rotate(10deg) translateY(10px); margin-left: -26px; }
.tile .fan { height: 200px; }

/* --- Шапки внутренних страниц -------------------------------------------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--faint); }
.crumbs a { color: var(--faint); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--violet); }
.lead { font-size: 19px; line-height: 1.6; color: #4A4377; max-width: 680px; }
.muted { color: var(--muted); }
.head { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: stretch; }
.head--plain { grid-template-columns: 1fr; }
.head__text { display: flex; flex-direction: column; gap: 14px; justify-content: center; padding: 12px 0; }
.head__card { border-radius: var(--r-xl); padding: 44px; }
.head__photo { margin: 0; position: relative; min-height: 340px; border-radius: var(--r-xl); overflow: hidden; }
.head__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.head__photo--framed { border: 6px solid var(--lav-300); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--lav-50); color: var(--violet); border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 13px; }
.block { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.prose { display: flex; flex-direction: column; gap: 12px; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.prose h3 { font-size: 22px; margin-top: 12px; color: var(--ink); }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* --- О нас --------------------------------------------------------------- */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.person { border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 20px; }
.person__img { width: 100%; height: 360px; object-fit: cover; object-position: center 25%; border-radius: 20px; }
.person__text { display: flex; flex-direction: column; gap: 14px; padding: 0 16px 16px; align-items: flex-start; }

/* --- Книги --------------------------------------------------------------- */
.books { display: flex; flex-direction: column; gap: 20px; }
.book-row { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; padding: 20px; border-radius: var(--r-lg); background: var(--lav-50); }
.book-row:nth-child(even) { background: var(--white); border: 1px solid var(--lav-200); }
.book-row__cover img { border-radius: 16px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.book-row__text { display: flex; flex-direction: column; gap: 12px; }
.book-row__text h2 a { text-decoration: none; }
.book { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.book__cover { background: var(--white); border: 1px solid var(--lav-200); border-radius: var(--r-xl); padding: 36px; display: flex; align-items: center; justify-content: center; }
.book__cover img { max-width: 340px; width: 100%; filter: drop-shadow(0 18px 30px rgba(46, 38, 89, .25)); }
.book__text { display: flex; flex-direction: column; gap: 16px; justify-content: center; padding: 20px 8px; }
.about-book { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.about-book--solo { grid-template-columns: 1fr; }
.about-book__text { border-radius: var(--r-lg); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.about-book__img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; border-radius: var(--r-lg); }
.others { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-md); border: 1px solid var(--lav-200); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(60, 40, 140, .13); }
.card__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.card__title { font: 700 18px/1.25 var(--serif); }
.card__text { font-size: 14px; color: var(--muted); }

/* --- Чтение -------------------------------------------------------------- */
.reading { max-width: 860px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.reading--wide { max-width: 1000px; }
.reading__head { display: flex; flex-direction: column; gap: 10px; }
.reading__img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--r-xl); margin-bottom: 14px; }
.prose--read { font-size: 19px; line-height: 1.8; gap: 14px; }
.back { display: flex; flex-wrap: wrap; gap: 10px; }
.back--split { justify-content: space-between; }
/* Галерея — рядами одной высоты: последний ряд растягивается во всю ширину, пустого места не остаётся. */
.gallery { display: flex; flex-wrap: wrap; gap: 12px; }
.gallery img { flex: 1 1 200px; height: 200px; min-width: 0; object-fit: cover; border-radius: 18px; }
.gallery--club img { height: 180px; }
.stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.story { display: grid; grid-template-columns: 180px 1fr; gap: 20px; padding: 16px; border-radius: var(--r-lg); background: var(--lav-50); text-decoration: none; }
.story:nth-child(4n+2), .story:nth-child(4n+3) { background: var(--white); border: 1px solid var(--lav-200); }
.story__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.story__body { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.story__title { font: 700 24px/1.2 var(--serif); }
.story__intro { color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pb { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.pb__page { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 90px; }
.pb__img { width: 100%; border-radius: var(--r-lg); }
.pb__text { background: var(--lav-50); border-radius: var(--r-md); padding: 18px 22px; font-size: 18px; display: flex; flex-direction: column; gap: 6px; }
.pb__n { font-size: 13px; font-weight: 700; color: var(--violet); }

/* --- Клуб ---------------------------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fact { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--lav-200); }
.fact--1 { background: var(--lav-50); border-color: transparent; }
.fact--2 { background: var(--lav-200); border-color: transparent; }
.fact--3 { background: var(--lav-300); border-color: transparent; }
.fact__label { font-size: 13px; font-weight: 700; color: var(--faint); }
.fact--3 .fact__label, .fact--2 .fact__label { color: var(--violet-dark); }
.fact__value { font: 700 22px/1.25 var(--serif); }
.fact__note { font-size: 15px; color: #4A4377; }
.cards4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mini { border-radius: var(--r-md); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.mini p { font-size: 15px; line-height: 1.6; color: #4A4377; }
.quote { font: italic 400 20px/1.6 var(--serif); color: #4A4377; max-width: 860px; }
.lessons { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; counter-reset: lesson; }
.lessons > li { border-top: 2px solid var(--lav-200); padding-top: 10px; counter-increment: lesson; }
.lessons summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; gap: 10px; }
.lessons summary::-webkit-details-marker { display: none; }
.lessons summary::before { content: counter(lesson); color: var(--violet); min-width: 18px; }
.lessons summary::after { content: "+"; margin-left: auto; color: var(--violet); }
.lessons details[open] summary::after { content: "−"; }
.lessons ul { margin: 8px 0 4px 28px; padding: 0; color: #4A4377; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.hosts { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.hosts__img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; border-radius: var(--r-lg); }
.hosts__text { border-radius: var(--r-lg); padding: 36px; display: flex; flex-direction: column; gap: 12px; }
.reviews__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.reviews__arrows { display: flex; gap: 10px; }
.arrow { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--lav-300); background: var(--white); color: var(--violet); font: 700 20px var(--sans); cursor: pointer; }
.arrow--on { background: var(--violet); color: var(--white); border: 0; }
.track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; }
.review { margin: 0; flex: 0 0 min(440px, 86%); scroll-snap-align: start; background: var(--white); border: 1px solid var(--lav-200); border-radius: var(--r-md); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.review.tone-50 { border-color: transparent; }
.review figcaption { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.review__ava { width: 44px; height: 44px; border-radius: 50%; background: var(--lav-200); color: var(--violet-dark); display: flex; align-items: center; justify-content: center; font: 700 20px var(--serif); }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.signup { border-radius: var(--r-xl); padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; scroll-margin-top: 90px; }
.signup > div { display: flex; flex-direction: column; gap: 12px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"] { font: inherit; font-weight: 400; font-size: 16px; border: 1px solid var(--lav-300); border-radius: 14px; padding: 13px 14px; background: var(--white); color: var(--ink); }
.form__check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; line-height: 1.5; color: #4A4377; }
.form__check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--violet); }
.form__trap { position: absolute; left: -9999px; }
.form .btn { align-self: flex-start; }
.form__status { font-weight: 600; }
.form__status--error { color: #A1263A; }

/* --- Подкаст, мерч, награды, события, контакты --------------------------- */
.episodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.episode { border-radius: var(--r-md); padding: 26px; border: 1px solid var(--lav-200); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.episode.tone-50 { border-color: transparent; }
.episode p:not(.eyebrow) { color: var(--ink-2); flex: 1; }
.products { display: flex; flex-direction: column; gap: 20px; }
.product { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; padding: 20px; border-radius: var(--r-lg); background: var(--lav-50); }
.product__img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; }
.product__text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.year { font-size: 26px; color: var(--violet); margin-top: 8px; }
.awards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.award { display: grid; grid-template-columns: 160px 1fr; gap: 18px; padding: 16px; border-radius: var(--r-md); background: var(--lav-50); }
.award--text { grid-template-columns: 1fr; }
.award__img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; }
.award__text { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.award__text h4 { font-size: 20px; }
.award__text p { font-size: 15px; color: var(--ink-2); }
.events { display: flex; flex-direction: column; gap: 20px; }
.event { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; border-radius: var(--r-lg); background: var(--lav-50); }
.event:nth-child(even) { background: var(--white); border: 1px solid var(--lav-200); }
.event__text { display: flex; flex-direction: column; gap: 10px; }
.event--text { grid-template-columns: 1fr; }
.event__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.event__photos img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 25%; border-radius: 14px; }
/* Единственное фото — тоже квадрат, по центру. */
.event__photos img:only-child { grid-column: span 2; justify-self: center; width: min(100%, 420px); }
.contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: var(--r-md); border: 1px solid var(--lav-200); text-decoration: none; }
.contact__value { font: 700 22px/1.25 var(--serif); word-break: break-word; }
.contact--soft { background: var(--lav-50); border-color: transparent; }
.contact--deep { background: var(--violet); border-color: transparent; color: var(--white); }
.contact--deep .eyebrow, .contact--deep:hover { color: var(--white); }

/* --- Контакты внизу и подвал --------------------------------------------- */
.band { margin-top: 24px; background: var(--violet); color: var(--white); border-radius: var(--r-lg); padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.band__text { flex: 1 1 360px; display: flex; flex-direction: column; gap: 6px; }
.band__text h2 { margin-bottom: 4px; }
.band__text p { color: #E8E1FF; margin-bottom: 6px; max-width: 560px; }
.band__mail { color: var(--white); font-weight: 700; font-size: 18px; }
.band__mail:hover { color: #E8E1FF; }
.band__note { color: #E8E1FF; }
.band__line { display: block; }
.band__links { display: flex; flex-wrap: wrap; gap: 10px; }
.band .btn--light { color: var(--violet-dark); }
.ftr { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 4px; padding-bottom: 32px; font-size: 13px; color: var(--faint); }
.ftr a { color: var(--faint); }

/* --- Телефон и планшет ---------------------------------------------------- */
@media (max-width: 960px) {
  .hero, .head, .book, .about-book, .hosts, .signup, .product, .event { grid-template-columns: 1fr; }
  .stats, .facts, .cards4, .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles, .tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stories, .people, .awards, .episodes { grid-template-columns: 1fr; }
  .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__photo { min-height: 360px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav { margin: 0 -16px; padding: 0 16px; }
  .hero__card, .head__card, .signup { padding: 32px 22px; }
  .hero__card { min-height: 420px; }
  .moon { right: 18px; width: 72px; height: 72px; }
  .stats, .facts, .cards4, .tiles, .tiles--2, .tiles--3, .contacts, .lessons { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide { grid-column: auto; }
  .book-row, .story, .award { grid-template-columns: 1fr; }
  .book-row__cover img, .story__img { max-width: 260px; }
  .band { padding: 28px 22px; }
  .about-book__text, .hosts__text { padding: 24px; }
  .prose--read { font-size: 18px; }
  .logo span { font-size: 18px; }
  .hdr .btn--sm { padding: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .snow, .moon, .moon__sway { animation: none; }
  .tile, .tile-lift, .card, .btn { transition: none; }
  .tile:hover, .tile-lift:hover, .card:hover { transform: none; }
  .track { scroll-behavior: auto; }
}

/* --- Страницы чтения: лавандовый фон, иллюстрация в рамке, текст на листе --- */
.page-read { background: var(--lav-50); }
.page-read .hdr { background: rgba(255, 255, 255, .92); }
.rd-head { display: grid; grid-template-columns: 1fr minmax(240px, 380px); gap: 40px; align-items: center; max-width: 1000px; width: 100%; margin: 8px auto 0; }
.rd-head--solo { grid-template-columns: 1fr; }
.rd-head__text { display: flex; flex-direction: column; gap: 14px; }
.rd-head__meta { font-size: 17px; color: var(--muted); }
.rd-head__art { margin: 0; background: var(--white); padding: 12px 12px 36px; border-radius: 6px; box-shadow: 0 18px 40px rgba(46, 38, 89, .16); transform: rotate(2.5deg); justify-self: center; max-width: 100%; }
.rd-head__art img { width: 100%; max-height: 380px; object-fit: contain; border-radius: 2px; }
.paper { max-width: 820px; width: 100%; margin: 8px auto 0; background: var(--white); border-radius: 24px; padding: clamp(28px, 6vw, 64px); box-shadow: 0 1px 0 var(--lav-200), 0 24px 60px rgba(60, 40, 140, .07); }
.paper .prose > p:first-child:not(:has(> em:only-child))::first-letter,
.paper .prose > p:first-child:has(> em:only-child) + p::first-letter { float: left; font: 700 3.3em/0.82 var(--serif); color: var(--violet); margin: 6px 10px 0 0; }
/* Посвящение перед текстом — курсивом справа, без буквицы. */
.paper .prose > p:first-child:has(> em:only-child) { text-align: right; color: var(--muted, inherit); }
.page-read .back { max-width: 820px; width: 100%; margin: 0 auto; }

/* --- Дневник Кити: пожелтевшие страницы и карандашные зарисовки ---------- */
.journal { --paper: #F6EED9; --paper-edge: #E9DCBB; --pencil: #4B3F2C; max-width: 1000px; width: 100%; margin: 0 auto; background: var(--paper); background-image: repeating-linear-gradient(transparent 0 31px, rgba(122, 98, 58, .12) 31px 32px); color: var(--pencil); border-radius: 10px 24px 24px 10px; box-shadow: inset 14px 0 18px -14px rgba(90, 70, 30, .35), 0 24px 60px rgba(90, 70, 30, .18); border: 1px solid var(--paper-edge); padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: 36px; }
.journal__head { display: flex; flex-direction: column; gap: 6px; border-bottom: 2px dashed rgba(122, 98, 58, .35); padding-bottom: 20px; }
.journal__kicker { font: 600 26px/1.1 Caveat, "Segoe Print", cursive; color: #8A6B3A; }
.journal h1 { color: #3A2F1F; }
.journal__day { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: 32px; align-items: start; }
.journal__day--flip { grid-template-columns: 1fr minmax(200px, 300px); }
.journal__day--flip .journal__sketch { order: 2; }
.journal__sketch { margin: 0; background: #FBF6E8; padding: 10px; border-radius: 4px; box-shadow: 0 6px 16px rgba(90, 70, 30, .18); transform: rotate(-1.5deg); }
.journal__day--flip .journal__sketch { transform: rotate(1.5deg); }
.journal__sketch img { width: 100%; mix-blend-mode: multiply; }
.journal__text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.journal__text h2 { font: 600 30px/1.15 Caveat, "Segoe Print", cursive; color: #3A2F1F; }
.journal__text h2 span { display: block; font-size: 20px; color: #8A6B3A; }
.journal .prose { color: var(--pencil); font-size: 17px; line-height: 2; gap: 0; }
.journal .prose strong { color: #3A2F1F; }

/* --- Дипломы ------------------------------------------------------------- */
.diplomas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.diploma { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.diploma img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; background: var(--lav-50); }
.diploma figcaption { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* --- Мерч: картинка и описание одной высоты ------------------------------ */
.product { grid-template-columns: 1fr 1fr; align-items: stretch; }
.product__img { aspect-ratio: auto; height: 100%; min-height: 420px; max-height: 620px; }

@media (max-width: 960px) {
  .rd-head, .journal__day, .journal__day--flip { grid-template-columns: 1fr; }
  .journal__day--flip .journal__sketch { order: 0; }
  .journal__sketch { max-width: 360px; }
  .rd-head__art { max-width: 380px; }
  .diplomas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product { grid-template-columns: 1fr; }
  .product__img { min-height: 0; aspect-ratio: 1; }
}

/* --- Книжка-листалка «Даня, Элли и красные башмачки» ---------------------- */
.bk-head { display: flex; flex-direction: column; gap: 8px; max-width: 1100px; width: 100%; margin: 0 auto; }
.bk { max-width: 1100px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; outline: none; }
/* Сцена одной высоты для обложки и разворотов — без скачков при перелистывании. */
.bk__stage { position: relative; width: 100%; height: min(72vh, 560px); display: flex; align-items: center; justify-content: center; background: var(--lav-50); border-radius: var(--r-lg); overflow: hidden; touch-action: pan-y pinch-zoom; }
.bk__sheet { position: relative; margin: 0; max-width: 100%; max-height: 100%; }
.bk__img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 18px 40px rgba(46, 38, 89, .18); user-select: none; -webkit-user-drag: none; }
[data-kind="front"] .bk__img { animation: bk-cover-in .8s ease both; }
@keyframes bk-cover-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.bk__sheet--in-r { animation: bk-in-r .28s ease both; }
.bk__sheet--in-l { animation: bk-in-l .28s ease both; }
@keyframes bk-in-r { from { opacity: .2; transform: translateX(3%); } to { opacity: 1; transform: none; } }
@keyframes bk-in-l { from { opacity: .2; transform: translateX(-3%); } to { opacity: 1; transform: none; } }
.bk__fx { position: absolute; inset: 0; pointer-events: none; }
.bk__fx > * { position: absolute; }
.bk-rain { overflow: hidden; }
.bk-rain i { position: absolute; top: -12%; width: 2px; height: 9%; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(220, 235, 255, .85)); border-radius: 2px; animation: bk-drop 1.1s linear infinite; }
@keyframes bk-drop { to { transform: translate(-6px, 1250%); } }
.bk-shimmer { border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255, 235, 170, .55), rgba(255, 235, 170, 0) 70%); animation: bk-breathe 3.2s ease-in-out infinite; mix-blend-mode: screen; }
.bk-warm { border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255, 196, 110, .45), rgba(255, 196, 110, 0) 70%); animation: bk-breathe 6s ease-in-out infinite; mix-blend-mode: screen; }
@keyframes bk-breathe { 50% { opacity: .55; } }
.bk-tap { pointer-events: auto; border: 0; background: transparent; border-radius: 40%; cursor: pointer; padding: 0; }
.bk-tap:focus-visible { outline: 3px solid #F4C542; outline-offset: 2px; }
.bk-tap--on { animation: bk-glow 1.1s ease-out; }
@keyframes bk-glow { 0% { box-shadow: 0 0 0 0 rgba(255, 214, 102, .0); } 30% { box-shadow: 0 0 26px 14px rgba(255, 214, 102, .75); background: rgba(255, 236, 170, .25); } 100% { box-shadow: 0 0 0 0 rgba(255, 214, 102, 0); } }
.bk-spark { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: #FFE08A; box-shadow: 0 0 8px 2px rgba(255, 220, 120, .9); animation: bk-spark .9s ease-out forwards; }
@keyframes bk-spark { to { transform: translate(var(--sx), var(--sy)) scale(.2); opacity: 0; } }
.bk__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bk__progress { font-weight: 700; color: var(--violet); text-align: center; font-variant-numeric: tabular-nums; }
.bk__nav { min-width: 132px; }
.bk__nav:disabled, .bk__tools button:disabled { opacity: .45; cursor: default; }
.bk__tools, .bk__end, .bk__modes, .bk__player { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.bk__end { padding: 8px 0; }
.bk__modes button { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--lav-300); background: var(--white); font: 600 14px var(--sans); color: var(--ink); cursor: pointer; }
.bk__modes button[aria-pressed="true"] { background: var(--violet); color: var(--white); border-color: var(--violet); }
.bk__player progress { width: 180px; accent-color: var(--violet); }
.bk__note { text-align: center; font-size: 14px; color: var(--muted); }
.bk__hint { text-align: center; font-size: 14px; }
.bk__fallback { display: flex; flex-direction: column; gap: 16px; }
.bk__fallback img { width: 100%; border-radius: 12px; }
@media (max-width: 640px) {
  .bk__stage { height: auto; aspect-ratio: 1199 / 1312; max-height: 78vh; }
  .bk__nav { min-width: 0; flex: 1 1 0; }
  .bk__progress { flex: 0 0 auto; font-size: 14px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .bk__stage { height: calc(100vh - 140px); }
}
@media (prefers-reduced-motion: reduce) {
  .bk__sheet--in-r, .bk__sheet--in-l, [data-kind="front"] .bk__img, .bk-shimmer, .bk-warm, .bk-tap--on { animation: none; }
}

/* Листалка: стрелки по бокам вместо кнопок, подсказка нажатия (владелец 18.11.2026). */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bk__stage { overflow: visible; }
.bk__arrow { position: absolute; top: 50%; z-index: 3; width: 56px; height: 56px; margin-top: -28px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--violet); box-shadow: 0 8px 22px rgba(46, 38, 89, .22); font: 700 38px/1 var(--serif); cursor: pointer; display: flex; align-items: center; justify-content: center; padding-bottom: 6px; transition: transform .2s ease, background .2s ease; }
.bk__arrow:hover { transform: scale(1.08); background: var(--white); }
.bk__arrow--prev { left: 10px; }
.bk__arrow--next { right: 10px; }
.bk__again { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); z-index: 3; min-height: 52px; padding: 12px 22px; border: 0; border-radius: 999px; background: var(--violet); color: var(--white); font: 700 15px var(--sans); box-shadow: 0 8px 22px rgba(46, 38, 89, .25); cursor: pointer; }
.bk__again:hover { background: var(--violet-dark); }
/* Куда нажать: мягкое золотое свечение, которое дышит. */
.bk-tap--hint { box-shadow: 0 0 0 2px rgba(255, 221, 120, .75), 0 0 22px 8px rgba(255, 221, 120, .45); animation: bk-hint 2s ease-in-out infinite; }
@keyframes bk-hint { 50% { box-shadow: 0 0 0 3px rgba(255, 221, 120, .95), 0 0 34px 14px rgba(255, 221, 120, .7); } }
.bk-tap--hint.bk-tap--on { animation: bk-glow 1.1s ease-out; }
@media (max-width: 640px) {
  .bk__arrow { width: 44px; height: 44px; margin-top: -22px; font-size: 30px; }
  .bk__arrow--prev { left: 4px; }
  .bk__arrow--next { right: 4px; }
  .bk__again { right: 4px; min-height: 44px; padding: 10px 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-tap--hint { animation: none; }
}

/* --- Перелистывание: лист поворачивается вокруг корешка (владелец 18.11.2026) --- */
.bk__sheet { perspective: 2200px; }
.bk-flip { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.bk-half { position: absolute; top: 0; width: 50%; height: 100%; background-size: 200% 100%; background-repeat: no-repeat; }
.bk-half--l { left: 0; border-radius: 6px 0 0 6px; }
.bk-half--r { left: 50%; border-radius: 0 6px 6px 0; }
.bk-leaf { position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; }
.bk-leaf--r { left: 50%; transform-origin: 0 50%; animation: bk-turn-fwd .48s cubic-bezier(.45, .05, .35, 1) forwards; }
.bk-leaf--l { left: 0; transform-origin: 100% 50%; animation: bk-turn-back .48s cubic-bezier(.45, .05, .35, 1) forwards; }
.bk-leaf .bk-half { left: 0; width: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bk-leaf__back { transform: rotateY(180deg); }
/* Тень на изгибе листа: темнеет к середине поворота. */
.bk-leaf__shade { position: absolute; inset: 0; pointer-events: none; backface-visibility: hidden; }
.bk-leaf--r .bk-leaf__shade { background: linear-gradient(to right, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 45%); animation: bk-shade .48s ease-in-out forwards; }
.bk-leaf--l .bk-leaf__shade { background: linear-gradient(to left, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 45%); animation: bk-shade .48s ease-in-out forwards; }
@keyframes bk-turn-fwd { 0% { transform: rotateY(0); } 100% { transform: rotateY(-180deg); } }
@keyframes bk-turn-back { 0% { transform: rotateY(0); } 100% { transform: rotateY(180deg); } }
@keyframes bk-shade { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
/* Тень, которую лист отбрасывает на страницу под ним. */
.bk-flip--fwd .bk-half--r::after, .bk-flip--back .bk-half--l::after { content: ""; position: absolute; inset: 0; animation: bk-cast .48s ease-in-out forwards; }
.bk-flip--fwd .bk-half--r::after { background: linear-gradient(to right, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0) 60%); }
.bk-flip--back .bk-half--l::after { background: linear-gradient(to left, rgba(0, 0, 0, .3), rgba(0, 0, 0, 0) 60%); }
@keyframes bk-cast { 0% { opacity: .9; } 100% { opacity: 0; } }
/* Обложка: книга открывается и закрывается. */
.bk__sheet--close .bk__img { transform-origin: 0 50%; animation: bk-cover-open .26s ease-in forwards; }
.bk__sheet--open .bk__img { animation: bk-spread-in .3s ease-out both; }
.bk__sheet--shut .bk__img { transform-origin: 100% 50%; animation: bk-spread-out .26s ease-in forwards; }
.bk__sheet--unshut .bk__img { transform-origin: 100% 50%; animation: bk-cover-shut .3s ease-out both; }
@keyframes bk-cover-open { to { transform: perspective(1800px) rotateY(-75deg); opacity: .2; } }
@keyframes bk-spread-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes bk-spread-out { to { transform: scale(.94); opacity: 0; } }
@keyframes bk-cover-shut { from { transform: perspective(1800px) rotateY(70deg); opacity: .2; } to { transform: none; opacity: 1; } }

/* --- Книжка: места со звуком, сияние башмачков, ветерок (владелец 18.11.2026) --- */
.bk-spot { position: absolute; pointer-events: auto; padding: 0; border: 0; border-radius: 45%; background: transparent; cursor: pointer; animation: bk-spot-hint 5.5s ease-in-out infinite; }
/* Подсказка: раз в несколько секунд место мягко обводится светом. */
@keyframes bk-spot-hint { 0%, 78%, 100% { box-shadow: 0 0 0 0 rgba(255, 236, 170, 0); } 86% { box-shadow: 0 0 0 2px rgba(255, 236, 170, .7), 0 0 20px 6px rgba(255, 236, 170, .45); } }
.bk-spot:hover, .bk-spot:focus-visible { animation: none; box-shadow: 0 0 0 2px rgba(255, 236, 170, .95), 0 0 24px 8px rgba(255, 236, 170, .55); outline: none; }
.bk-spot--on { animation: bk-pop .6s ease-out; }
@keyframes bk-pop { 0% { box-shadow: 0 0 0 0 rgba(255, 236, 170, .9); } 100% { box-shadow: 0 0 0 26px rgba(255, 236, 170, 0); } }
.bk-spot--glow { animation: bk-glow 1.1s ease-out; }
.bk-glowzone { border-radius: 50%; pointer-events: none; background: radial-gradient(ellipse at center, rgba(255, 210, 120, .5), rgba(255, 190, 90, .18) 45%, rgba(255, 190, 90, 0) 70%); mix-blend-mode: screen; animation: bk-boots 3.4s ease-in-out infinite; }
@keyframes bk-boots { 50% { opacity: .55; transform: scale(1.06); } }
.bk-ambient { overflow: hidden; pointer-events: none; }
.bk-leaf { position: absolute; width: 14px; height: 9px; border-radius: 0 100% 0 100%; background: #E8912F; opacity: .85; animation: bk-wind linear infinite; }
.bk-leaf-1 { background: #D7642A; width: 11px; height: 7px; }
.bk-leaf-2 { background: #F2B13A; width: 16px; height: 10px; }
@keyframes bk-wind { 0% { transform: translate(0, 0) rotate(0); opacity: 0; } 10% { opacity: .85; } 50% { transform: translate(60px, 260px) rotate(200deg); } 90% { opacity: .85; } 100% { transform: translate(-30px, 560px) rotate(420deg); opacity: 0; } }
.bk-mote { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 245, 205, .95); box-shadow: 0 0 6px 2px rgba(255, 236, 170, .7); animation: bk-mote ease-in-out infinite alternate; }
@keyframes bk-mote { 0% { transform: translate(0, 0); opacity: .2; } 50% { opacity: .9; } 100% { transform: translate(24px, -30px); opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
  .bk-spot, .bk-glowzone { animation: none; }
}

/* --- Значки: победитель конкурса, интерактивная книга (владелец 18.11.2026) --- */
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; font: 700 13px/1.25 var(--sans); }
.badge > span { display: flex; flex-direction: column; }
.badge small { font-weight: 500; font-size: 12px; opacity: .85; }
.badge__icon { width: 20px; height: 20px; flex: 0 0 auto; }
.badge--award { background: #FFF1C9; color: #7A4B00; box-shadow: inset 0 0 0 1px #F2C75C; }
.badge--award .badge__icon { color: #D99A00; }
.badge--live { background: var(--violet); color: var(--white); }
.badge--big { padding: 10px 16px 10px 12px; font-size: 15px; }
.badge--big .badge__icon { width: 28px; height: 28px; }
.tile__media { position: relative; }
.badges--tile { position: absolute; left: 10px; top: 10px; right: 10px; z-index: 2; }
.badges--tile .badge { font-size: 12px; }

/* Места со звуком: ярче и дольше (владелец 18.11.2026) — светятся всегда, пульсируют сильнее. */
.bk-spot { box-shadow: 0 0 0 2px rgba(255, 228, 140, .55), 0 0 18px 6px rgba(255, 228, 140, .35); animation: bk-spot-hint 2.4s ease-in-out infinite; }
@keyframes bk-spot-hint { 0%, 100% { box-shadow: 0 0 0 2px rgba(255, 228, 140, .5), 0 0 16px 5px rgba(255, 228, 140, .3); } 50% { box-shadow: 0 0 0 4px rgba(255, 214, 90, 1), 0 0 38px 16px rgba(255, 214, 90, .7); } }
.bk-spot:hover, .bk-spot:focus-visible { box-shadow: 0 0 0 4px rgba(255, 214, 90, 1), 0 0 40px 18px rgba(255, 214, 90, .75); }
@media (prefers-reduced-motion: reduce) {
  .bk-spot { animation: none; box-shadow: 0 0 0 3px rgba(255, 214, 90, .9), 0 0 24px 8px rgba(255, 214, 90, .5); }
}

/* --- Быстродействие книжки (владелец 18.11.2026: «долго переворачиваются») ---
   Пульсация теней и смешивание слоёв перерисовывали страницу каждый кадр.
   Теперь свет нарисован один раз в псевдоэлементе, а анимируется только
   прозрачность и масштаб — это делает видеокарта, без перерисовки. */
.bk-spot, .bk-spot:hover, .bk-spot:focus-visible { box-shadow: none; animation: none; }
.bk-spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 4px rgba(255, 214, 90, 1), 0 0 38px 16px rgba(255, 214, 90, .7); opacity: .45; animation: bk-spot-pulse 2.4s ease-in-out infinite; will-change: opacity; pointer-events: none; }
.bk-spot:hover::after, .bk-spot:focus-visible::after { animation: none; opacity: 1; }
@keyframes bk-spot-pulse { 50% { opacity: 1; } }
.bk-spot--on::after, .bk-spot--glow::after { animation: bk-spot-flash .7s ease-out; }
@keyframes bk-spot-flash { 0% { opacity: 1; transform: scale(1); } 100% { opacity: .45; transform: scale(1.25); } }
.bk-glowzone { mix-blend-mode: normal; background: radial-gradient(ellipse at center, rgba(255, 214, 120, .42), rgba(255, 200, 100, .14) 45%, rgba(255, 200, 100, 0) 70%); animation: bk-boots-soft 3.4s ease-in-out infinite; will-change: opacity; }
@keyframes bk-boots-soft { 50% { opacity: .5; } }
.bk-leaf, .bk-mote, .bk-rain i { will-change: transform; }
.bk-mote { box-shadow: none; background: radial-gradient(circle, rgba(255, 248, 215, 1), rgba(255, 236, 170, 0) 70%); width: 8px; height: 8px; }
/* Во время переворота живой слой спит. */
.bk--turning .bk__fx { display: none; }
@media (prefers-reduced-motion: reduce) {
  .bk-spot::after, .bk-glowzone { animation: none; opacity: .8; }
}

/* Черновик в окне просмотра: страница прокручивается внутри себя, поэтому
   каждая новая открывается сверху. На настоящем detist.ru этого слоя нет. */
.is-preview, .is-preview body { height: 100%; overflow: hidden; }
.is-preview .pv { height: 100%; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* Половинки страниц при перевороте — <img> того же файла, обрезанный рамкой слоя. */
.bk-half { overflow: hidden; background: none !important; }
.bk-half > img { position: absolute; top: 0; width: 200%; height: 100%; max-width: none; display: block; }

/* --- Плоский переворот (владелец 18.11.2026: 3D «зависает») ---------------
   Половина 1 (0–50 %): уходящий лист сжимается к корешку и темнеет.
   Половина 2 (50–100 %): оборот раскрывается от корешка. Только transform
   и opacity — это анимирует видеокарта на любом устройстве. */
.bk__sheet { perspective: none; }
.bk-p { position: absolute; top: 0; width: 50%; height: 100%; overflow: hidden; will-change: transform; }
.bk-p .bk-half { position: absolute; inset: 0; width: 100%; left: 0 !important; }
.bk-p__shade { position: absolute; inset: 0; pointer-events: none; will-change: opacity; }
.bk-p--out-r { left: 50%; transform-origin: 0 50%; animation: bk-out .26s ease-in forwards; }
.bk-p--in-l { left: 0; transform-origin: 100% 50%; transform: scaleX(0); animation: bk-in .26s ease-out .26s forwards; }
.bk-p--out-l { left: 0; transform-origin: 100% 50%; animation: bk-out .26s ease-in forwards; }
.bk-p--in-r { left: 50%; transform-origin: 0 50%; transform: scaleX(0); animation: bk-in .26s ease-out .26s forwards; }
@keyframes bk-out { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes bk-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bk-p--out-r .bk-p__shade { background: linear-gradient(to right, rgba(0, 0, 0, .35), rgba(0, 0, 0, .05)); opacity: 0; animation: bk-dim .26s ease-in forwards; }
.bk-p--out-l .bk-p__shade { background: linear-gradient(to left, rgba(0, 0, 0, .35), rgba(0, 0, 0, .05)); opacity: 0; animation: bk-dim .26s ease-in forwards; }
.bk-p--in-l .bk-p__shade { background: linear-gradient(to left, rgba(0, 0, 0, .35), rgba(0, 0, 0, .05)); animation: bk-undim .26s ease-out .26s forwards; }
.bk-p--in-r .bk-p__shade { background: linear-gradient(to right, rgba(0, 0, 0, .35), rgba(0, 0, 0, .05)); animation: bk-undim .26s ease-out .26s forwards; }
@keyframes bk-dim { to { opacity: 1; } }
@keyframes bk-undim { from { opacity: 1; } to { opacity: 0; } }

/* Огоньки за окном (развороты 8–9): мягкие звёздочки, без мигания резким светом. */
.bk-star { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 252, 230, 1) 0, rgba(255, 238, 170, .85) 35%, rgba(255, 230, 150, 0) 70%); opacity: .15; transform: scale(.6); animation: bk-twinkle ease-in-out infinite; will-change: opacity, transform; }
.bk-star::before, .bk-star::after { content: ""; position: absolute; left: 50%; top: 50%; width: 260%; height: 1.5px; margin: -.75px 0 0 -130%; background: linear-gradient(to right, rgba(255, 250, 220, 0), rgba(255, 250, 220, .9), rgba(255, 250, 220, 0)); }
.bk-star::after { transform: rotate(90deg); }
.bk-star--warm { background: radial-gradient(circle, rgba(255, 236, 190, 1) 0, rgba(255, 200, 110, .85) 35%, rgba(255, 190, 90, 0) 70%); }
@keyframes bk-twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.15); } }

/* Сертификаты в альбомной ориентации — целиком, без обрезки. */
.award__img--wide { aspect-ratio: 4 / 3; object-fit: contain; background: var(--white); }
.bk__credits { font-size: 12px; line-height: 1.5; color: var(--faint); text-align: center; max-width: 900px; margin: 0 auto; }
.bk__credits a { color: var(--faint); }
/* Фото нельзя перетащить, выделить и сохранить долгим нажатием на телефоне (владелец 18.11.2026). */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
