/* Главная Shatenev Photography.
   Система по скиллу landing-page-design: один шрифт (Manrope), шкала размеров Tailwind,
   отступы только из таблицы (0 2 4 8 12 16 24 32 40 48 64 80 96), радиусы Tailwind,
   плоские фоны, градиент только на тексте заголовка, движение — одна кривая. */

:root {
  --bg: #131209;
  --surface: #181818;
  --surface-2: #1f1f1f;
  --surface-3: #272727;
  --line: #313131;
  --text: #ffffff;
  --muted: #a3a3a3;
  --accent: #f4661b;
  --accent-hover: #ff7a33;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 700ms;
  --pad: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/24px Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only, .sr-defs { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 100;
  padding: 8px 12px; border-radius: 8px; background: var(--accent); color: #fff;
  font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none;
  transform: translateY(-200%); transition: transform var(--dur) var(--ease);
}
.skip:focus { transform: none; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 12px; border-radius: 9999px; border: 1px solid transparent; cursor: pointer;
  font: 600 16px/24px Manrope, system-ui, sans-serif; text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform 200ms var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn i { font-size: 16px; }
.btn-sm { font-size: 14px; line-height: 20px; }
.btn-lg { padding: 12px 24px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-3); }

/* ---------- Логотип ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.logo-bear { width: 40px; height: 24px; flex: none; }
.logo-text { display: flex; flex-direction: column; font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: 0.2em; }
.logo-text small { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.3em; color: var(--muted); }

/* ---------- Плавающее меню (island) ---------- */
.island { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.island-bar {
  pointer-events: auto; position: relative; z-index: 2;
  margin-top: 24px; width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 16px; border-radius: 9999px;
  background: rgb(24 24 24 / 0.72); border: 1px solid var(--line);
  backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4);
}
.island-links { display: flex; gap: 4px; }
.island-links a {
  display: block; padding: 8px 12px; border-radius: 9999px;
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.island-links a:hover { color: var(--text); background: var(--surface-3); }
.island-links a[aria-current="true"] { color: var(--text); background: var(--surface-3); }

/* Бургер: две линии плавно складываются в крестик */
.burger { display: none; position: relative; width: 40px; height: 40px; border: 0; border-radius: 9999px; background: var(--surface-3); cursor: pointer; }
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.burger span:first-child { top: 16px; }
.burger span:last-child { top: 22px; }
.island[data-open="true"] .burger span:first-child { top: 19px; transform: rotate(45deg); }
.island[data-open="true"] .burger span:last-child { top: 19px; transform: rotate(-45deg); }

/* Раскрытое меню: экран под тяжёлым стеклом, пункты выезжают по очереди */
.menu {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: rgb(0 0 0 / 0.8); backdrop-filter: blur(64px); -webkit-backdrop-filter: blur(64px);
  opacity: 0; transition: opacity var(--dur) var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.menu ul { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.menu li { transform: translateY(48px); opacity: 0; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.menu a { font-size: 30px; line-height: 36px; font-weight: 600; text-decoration: none; }
.island[data-open="true"] .menu { opacity: 1; pointer-events: auto; }
.island[data-open="true"] .menu li { transform: none; opacity: 1; }
.island[data-open="true"] .menu li:nth-child(1) { transition-delay: 100ms; }
.island[data-open="true"] .menu li:nth-child(2) { transition-delay: 150ms; }
.island[data-open="true"] .menu li:nth-child(3) { transition-delay: 200ms; }
.island[data-open="true"] .menu li:nth-child(4) { transition-delay: 250ms; }
.island[data-open="true"] .menu li:nth-child(5) { transition-delay: 300ms; }

/* ---------- Общая сетка разделов ---------- */
.section, .hero, .final { width: min(1200px, 100% - 2 * var(--pad)); margin-inline: auto; }
.section { padding-block: 96px; }
.section-head { max-width: 680px; margin-bottom: 48px; display: grid; gap: 12px; }
.section-head h2 { font-size: 48px; line-height: 1; letter-spacing: -0.02em; }
.section-sub { color: var(--muted); font-size: 18px; line-height: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Обложка ---------- */
.hero { padding-top: 160px; padding-bottom: 64px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.hero-title {
  max-width: 680px; font-size: 72px; line-height: 1; letter-spacing: -0.03em; font-weight: 700;
  background: linear-gradient(90deg, #ffffff, #9b9b9b); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 4px;
}
.hero-sub { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 28px; }
.hero-actions { margin-top: 8px; }
.proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; color: var(--muted); font-size: 14px; line-height: 20px; }
.proof b { color: var(--text); font-weight: 600; }
.hero-visual { position: relative; margin: 40px 0 0; width: 100%; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.hero-visual > img:first-child { width: 100%; height: 100%; object-fit: cover; }
.hero-book { position: absolute; right: 4%; bottom: -6%; width: 46%; filter: drop-shadow(0 32px 48px rgb(0 0 0 / 0.6)); }

/* ---------- Книги ---------- */
.books { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.book { display: flex; flex-direction: column; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); padding: 8px; transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.book:hover { border-color: #4a4a4a; transform: translateY(-4px); }
/* Вложенный радиус: 24 − 8 = 16 */
.book-media { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.book-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
.book-media-png img { object-fit: contain; padding: 16px; }
.book:hover .book-media img { transform: scale(1.03); }
.stock {
  position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 9999px; background: rgb(0 0 0 / 0.72); backdrop-filter: blur(12px);
  font-size: 12px; line-height: 16px; font-weight: 600; color: #8fe0a0;
}
.book-body { display: flex; flex-direction: column; gap: 16px; padding: 24px 16px 16px; flex: 1; }
.book-title { width: 100%; max-width: 440px; }
.book-title-kam { max-width: 280px; }
.book-sub { margin-top: -8px; font-size: 18px; line-height: 28px; font-weight: 600; }
.book-lead { color: var(--muted); }
.checks { display: grid; gap: 8px; font-size: 14px; line-height: 20px; color: var(--muted); }
.checks li { display: flex; gap: 8px; }
.checks i { color: var(--accent); font-size: 16px; margin-top: 2px; flex: none; }
.checks b { color: var(--text); font-weight: 600; }
.book-buy { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.price { display: grid; }
.price > b { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -0.02em; }
.price > span { color: var(--muted); font-size: 14px; line-height: 20px; }
.book-actions { display: flex; gap: 8px; }

/* ---------- Крупная фраза: слова загораются по очереди ---------- */
.tagline { width: min(1200px, 100% - 2 * var(--pad)); margin-inline: auto; padding-block: 96px; }
.tagline-text { max-width: 840px; font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.tagline-text .w { color: rgb(255 255 255 / 0.28); transition: color var(--dur) var(--ease); }
.tagline-text .w.on { color: var(--text); }

/* ---------- Польза ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benefit { padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.benefit i { font-size: 30px; color: var(--accent); margin-bottom: 8px; }
.benefit h3 { font-size: 18px; line-height: 28px; }
.benefit p { color: var(--muted); font-size: 14px; line-height: 20px; }

/* ---------- Галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 12px; }
.g { position: relative; border-radius: 16px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.g img:not(.loaded) { opacity: 0; }
.g:hover img { transform: scale(1.04); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

/* ---------- Автор ---------- */
.author { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.author-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--surface-2); }
.author-photo img { width: 100%; height: 100%; object-fit: cover; }
.author-text { display: grid; gap: 16px; }
.author-text h2 { font-size: 48px; line-height: 1; letter-spacing: -0.02em; margin-bottom: 8px; }
.author-text > p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 28px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.stats b { display: block; font-size: 36px; line-height: 40px; font-weight: 700; letter-spacing: -0.02em; }
.stats span { color: var(--muted); font-size: 14px; line-height: 20px; }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.step-num { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9999px; background: var(--surface-3); font-size: 18px; line-height: 28px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.step h3 { font-size: 20px; line-height: 28px; }
.step p { color: var(--muted); }

/* ---------- Вопросы ---------- */
.faq { max-width: 840px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); padding: 8px 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 0; cursor: pointer; list-style: none; font-size: 18px; line-height: 28px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { font-size: 20px; color: var(--muted); flex: none; transition: transform var(--dur) var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); color: var(--accent); }
.faq details p { padding-bottom: 24px; color: var(--muted); max-width: 680px; }

/* ---------- Финальный призыв ---------- */
.final { padding-block: 48px 96px; }
.final-card { border-radius: 24px; background: var(--surface); border: 1px solid var(--line); padding: 80px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.final-card h2 { max-width: 680px; font-size: 60px; line-height: 1; letter-spacing: -0.03em; }
.final-card > p { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 28px; }
.soon { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; line-height: 20px; }

/* ---------- Подвал ---------- */
.foot { width: min(1200px, 100% - 2 * var(--pad)); margin-inline: auto; padding-block: 48px 96px; border-top: 1px solid var(--line); display: grid; gap: 24px; justify-items: center; text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 14px; line-height: 20px; }
.foot-links a { color: var(--muted); text-decoration: none; display: inline-flex; gap: 4px; align-items: center; transition: color var(--dur) var(--ease); }
.foot-links a:hover { color: var(--text); }
.copy { color: #6f6f6f; font-size: 12px; line-height: 16px; }

/* ---------- Кнопка внизу экрана (телефон) ---------- */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; transform: translateY(160%); transition: transform var(--dur) var(--ease); }
.sticky-cta.show { transform: none; }

/* ---------- Просмотр фото ---------- */
.lb { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgb(0 0 0 / 0.92); color: #fff; }
.lb::backdrop { background: rgb(0 0 0 / 0.6); backdrop-filter: blur(12px); }
.lb[open] { display: grid; place-items: center; }
.lb img { max-width: calc(100vw - 160px); max-height: calc(100dvh - 96px); object-fit: contain; border-radius: 8px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 9999px; background: var(--surface); color: #fff; font-size: 20px; cursor: pointer; display: grid; place-items: center; transition: background-color var(--dur) var(--ease); }
.lb-btn:hover { background: var(--surface-3); }
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: calc(50% - 24px); }
.lb-next { right: 24px; top: calc(50% - 24px); }
.lb-count { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 14px; line-height: 20px; }

/* ---------- Появление при прокрутке ---------- */
.reveal { transform: translateY(64px); filter: blur(12px); opacity: 0; transition: transform 900ms var(--ease), filter 900ms var(--ease), opacity 900ms var(--ease); }
.reveal.in { transform: none; filter: blur(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transform: none; filter: none; opacity: 1; transition: none; }
  .tagline-text .w { color: var(--text); }
}

/* ---------- Окно заказа в стиле главной ---------- */
.home .od {
  --od-bg: var(--surface); --od-card: var(--surface-2); --od-line: var(--line);
  --od-text: #fff; --od-muted: var(--muted); --od-accent: var(--accent); --od-accent-2: var(--accent-hover);
  font-family: Manrope, system-ui, sans-serif; border-radius: 24px;
}
.home .od-title, .home .od-total, .home .od-item-info b, .home .od-done h3, .home .od-submit { font-family: Manrope, system-ui, sans-serif; }
.home .od-submit { background: var(--accent); box-shadow: none; font-weight: 600; font-size: 16px; border-radius: 9999px; }
.home .od-submit:hover { background: var(--accent-hover); filter: none; box-shadow: none; }
.home .od-kicker { letter-spacing: 0.08em; }

/* ---------- Планшет ---------- */
@media (max-width: 1024px) {
  .benefits { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .island-links { display: none; }
  .island-cta { display: none; }
  .burger { display: block; }
  .island-bar { gap: 16px; }
  .books, .author, .steps { grid-template-columns: 1fr; }
  .author { gap: 40px; }
}

/* ---------- Телефон ---------- */
@media (max-width: 640px) {
  :root { --pad: 16px; }
  .hero { padding-top: 128px; gap: 16px; }
  .hero-title { font-size: 48px; }
  .section { padding-block: 64px; }
  .section-head { margin-bottom: 32px; }
  .section-head h2, .author-text h2 { font-size: 36px; line-height: 40px; }
  .tagline { padding-block: 64px; }
  .tagline-text { font-size: 36px; line-height: 40px; }
  .final-card { padding: 48px 16px; }
  .final-card h2 { font-size: 36px; line-height: 40px; }
  .hero-visual { aspect-ratio: 4 / 3; margin-top: 24px; }
  .hero-book { width: 64%; right: 2%; }
  .benefits { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; gap: 8px; }
  .g-wide { grid-column: span 2; }
  .book-buy { align-items: stretch; }
  .book-actions { width: 100%; }
  .book-actions .btn { flex: 1; }
  .faq { padding: 0 16px; }
  .faq summary { font-size: 16px; line-height: 24px; padding: 16px 0; }
  .lb img { max-width: 100vw; max-height: calc(100dvh - 160px); border-radius: 0; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; }
  .lb-count { bottom: 32px; }
  .foot { padding-bottom: 96px; }
}
@media (min-width: 641px) { .sticky-cta { display: none; } }

/* ---------- Служебные страницы: 404 и политика ---------- */
.notfound { min-height: 100dvh; width: min(680px, 100% - 2 * var(--pad)); margin-inline: auto; padding-block: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 24px; }
.notfound-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; border: 1px solid var(--line); margin-bottom: 16px; }
.notfound .hero-title { font-size: 48px; }
.doc { width: min(680px, 100% - 2 * var(--pad)); margin-inline: auto; padding-block: 64px 96px; display: grid; gap: 16px; }
.doc h1 { font-size: 36px; line-height: 40px; letter-spacing: -0.02em; margin-bottom: 16px; }
.doc h2 { font-size: 20px; line-height: 28px; margin-top: 16px; }
.doc p { color: var(--muted); }
.doc-back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: 14px; line-height: 20px; margin-bottom: 24px; }
.doc-back:hover { color: var(--text); }
.doc-date { font-size: 14px; line-height: 20px; margin-top: 24px; }

/* Подпись над заголовком обложки: значок остаётся рядом с текстом при переносе */
.hero .eyebrow { display: block; }
.hero .eyebrow i { vertical-align: -2px; margin-right: 4px; }
