/* Шрифты лежат у нас, ничего не грузится со сторонних серверов */
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/cormorant-garamond-cyrillic-500-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/cormorant-garamond-cyrillic-600-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/cormorant-garamond-cyrillic-400-italic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/cormorant-garamond-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@font-face { font-family: "Literata"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/literata-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/literata-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/literata-greek-400-normal.woff2) format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF, U+1F00-1FFF; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/literata-cyrillic-400-italic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/literata-latin-400-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/literata-cyrillic-600-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/literata-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/literata-greek-600-normal.woff2) format("woff2");
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF, U+1F00-1FFF; }

/* Цвета взяты с обложек: тёмная живопись, золото, пергамент */
:root {
  --bg: #17110c;
  --bg-2: #1d1712;
  --bg-3: #261e17;
  --ink: #eadfcb;
  --ink-soft: #b9ab94;
  --gold: #d4a95a;
  --gold-deep: #a9803c;
  --line: rgba(212, 169, 90, .28);
  --display: "Cormorant", "Literata", Georgia, "Times New Roman", serif;
  --text: "Literata", Georgia, "Times New Roman", serif;
  --wrap: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .83 0 0 0 0 .66 0 0 0 0 .35 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--text);
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: .18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 10px 22px;
  border: 1px solid var(--gold); border-radius: 2px;
  font: 600 .8rem/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  transition: background .2s, color .2s;
}
.btn-gold { background: var(--gold); color: #1a130c; }
.btn-gold:hover { background: #e6bf72; color: #1a130c; }
.btn-line { color: var(--gold); background: transparent; }
.btn-line:hover { background: rgba(212, 169, 90, .12); color: var(--ink); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Шапка */
.hero {
  position: relative;
  padding: 56px 0 64px;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 70% 45%, rgba(230, 170, 80, .22), transparent 70%),
    linear-gradient(180deg, rgba(15, 11, 8, .35) 0%, rgba(23, 17, 12, .5) 100%),
    url(img/bg-hero.webp) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 {
  margin: 0;
  font: 500 clamp(3.6rem, 16vw, 7.5rem)/.95 var(--display);
  letter-spacing: .02em;
  color: var(--gold);
}
.hero .author {
  margin: 14px 0 28px;
  font: italic 400 clamp(1.4rem, 5vw, 1.9rem)/1.2 var(--display);
  color: var(--ink);
}
.hero .lead { margin: 0 0 30px; font-size: 1.15rem; color: var(--ink-soft); max-width: 30ch; }
.hero .lead strong { color: var(--ink); font-weight: 400; display: block; }

.fan { position: relative; height: 340px; max-width: 420px; margin: 0 auto; width: 100%; }
.fan img {
  position: absolute; top: 20px; width: 56%;
  border-radius: 3px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .7), 0 0 0 1px rgba(212, 169, 90, .25);
}
.fan img:nth-child(1) { left: 0; transform: rotate(-8deg); }
.fan img:nth-child(2) { right: 0; transform: rotate(8deg); }
.fan img:nth-child(3) { left: 22%; top: 0; z-index: 2; }

/* Разделы */
section { padding: 72px 0; }
.kicker {
  margin: 0 0 8px;
  font: 600 .75rem/1 var(--text); letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-deep);
}
h2 { margin: 0 0 32px; font: 500 clamp(2.2rem, 8vw, 3.4rem)/1.05 var(--display); color: var(--ink); }

/* Золотой разделитель между блоками, как завитки на обложках */
.divider {
  height: 24px; max-width: 320px; margin: 0 auto;
  background: url(img/divider.svg) center / contain no-repeat;
}

/* Вышедшие части: за каждой — её же обложка, размытая */
.books { display: grid; }
.book { display: grid; gap: 24px; position: relative; isolation: isolate; padding: 56px 0; }
.book::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0;
  left: 50%; width: 100vw; transform: translateX(-50%);
  background:
    linear-gradient(rgba(23, 17, 12, .45), rgba(23, 17, 12, .45)),
    var(--art) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 25%, #000 75%, transparent 100%);
}
.book-1 { --art: url(img/bg-1.webp); }
.book-2 { --art: url(img/bg-2.webp); }
.book-3 { --art: url(img/bg-3.webp); }
.book-cover {
  width: 100%; max-width: 300px; margin: 0 auto;
  border-radius: 3px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .6), 0 0 0 1px rgba(212, 169, 90, .2);
}
.book .num {
  margin: 0;
  font: 600 .75rem/1 var(--text); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep);
}
.book h3 {
  margin: 6px 0 14px;
  font: italic 400 clamp(2rem, 7vw, 2.8rem)/1.05 var(--display); color: var(--gold);
}
.book p { margin: 0 0 22px; color: var(--ink-soft); max-width: 52ch; }

/* Будущие части */
.soon {
  position: relative; isolation: isolate;
}
.soon::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(23, 17, 12, .68), rgba(23, 17, 12, .68)),
    url(img/bg-soon.webp) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%);
}
.soon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.soon-item img {
  border-radius: 3px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55);
  filter: saturate(.75) brightness(.8);
}
.soon-item h3 {
  margin: 12px 0 2px;
  font: 600 .95rem/1.25 var(--text); color: var(--ink); letter-spacing: .02em;
  overflow-wrap: anywhere;
}
.soon-item .greek { font-family: "Literata", Georgia, serif; letter-spacing: .06em; }
.soon-item p { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--ink-soft); font-style: italic; }

/* Аудиокнига */
.audio-grid { display: grid; gap: 28px; align-items: center; }
.audio-grid img {
  max-width: 260px; margin: 0 auto; border-radius: 3px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .6), 0 0 0 1px rgba(212, 169, 90, .2);
}
.audio-grid p { color: var(--ink-soft); margin: 0 0 22px; }

/* Цитата */
.verse {
  text-align: center;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(212, 169, 90, .13), transparent 70%);
}
.verse blockquote { margin: 0 auto; max-width: 34ch; }
.verse blockquote p {
  margin: 0;
  font: italic 400 clamp(1.5rem, 5.5vw, 2.1rem)/1.35 var(--display); color: var(--ink);
}
.verse cite { display: block; margin-top: 20px; font-style: normal; font-size: .9rem; letter-spacing: .08em; }
.ornament { display: block; margin: 0 auto 26px; color: var(--gold); font-size: 1.4rem; letter-spacing: .6em; }

/* О книге */
.about p { max-width: 62ch; margin: 0 0 1.2em; font-size: 1.12rem; }
.about h2 + p::first-letter {
  float: left; font: 500 4.2rem/.8 var(--display); color: var(--gold); padding: 8px 10px 0 0;
}

/* Подвал */
footer { padding: 44px 0 56px; background: rgba(0, 0, 0, .25); font-size: .92rem; color: var(--ink-soft); }
.foot { display: grid; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--ink-soft); }
.foot a:hover { color: var(--gold); }
.social { display: flex; gap: 14px; }
.social a {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--gold);
}
.social a:hover { border-color: var(--gold); color: var(--ink); }
.social svg { width: 20px; height: 20px; fill: currentColor; }

/* Юридические страницы */
.legal { padding: 40px 0 72px; }
.legal .back { display: inline-block; margin-bottom: 28px; font-size: .95rem; }
.legal h1 { margin: 0 0 28px; font: 500 clamp(2.4rem, 9vw, 3.4rem)/1.05 var(--display); color: var(--gold); }
.legal h2 { margin: 36px 0 10px; font: 600 1.1rem/1.3 var(--text); color: var(--ink); }
.legal p, .legal dl { max-width: 68ch; color: var(--ink-soft); margin: 0 0 1em; overflow-wrap: anywhere; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; }
.legal dt { color: var(--ink); }
.legal dd { margin: 0; }

@media (min-width: 760px) {
  body { font-size: 1.125rem; }
  .hero { padding: 88px 0 96px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
  .fan { height: 460px; }
  section { padding: 104px 0; }
  .book { padding: 64px 0; }
  .book { grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
  .book:nth-child(even) { grid-template-columns: 1fr 300px; }
  .book:nth-child(even) .book-cover { order: 2; }
  .book-cover { margin: 0; }
  .soon-grid { gap: 32px; }
  .soon-item h3 { font-size: 1.1rem; }
  .audio-grid { grid-template-columns: 260px 1fr; gap: 48px; }
  .audio-grid img { margin: 0; }
  .foot { grid-template-columns: 1fr auto; align-items: center; }
}

/* Блоки мягко проявляются при прокрутке (только если работает скрипт) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.js .reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Cormorant по умолчанию рисует «1» как «I» — просим обычные цифры */
h1, h2, h3, .btn, .kicker, .num, cite { font-variant-numeric: lining-nums; }
