:root {
  --ink: #09101d;
  --ink-soft: #111a29;
  --paper: #e8e0d2;
  --paper-soft: #cfc5b5;
  --amber: #e2a550;
  --amber-light: #f1c878;
  --coral: #b95d51;
  --sage: #718678;
  --line: rgba(232, 224, 210, .16);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: var(--sans); line-height: 1.65; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .16; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; background: var(--paper); color: var(--ink); padding: .75rem 1rem; z-index: 100; }
.skip-link:focus { top: 1rem; }
.site-header { height: 86px; max-width: 1440px; margin: 0 auto; padding: 0 clamp(1.3rem, 5vw, 5rem); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; position: absolute; inset: 0 0 auto; z-index: 10; }
.brand { font-family: var(--serif); font-size: 1.2rem; letter-spacing: -.01em; }
.nav { display: flex; gap: 2rem; font-size: .8rem; color: var(--paper-soft); }
.nav a, .text-link { position: relative; }
.nav a::after, .text-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.35rem; height: 1px; background: var(--amber); transition: right .25s ease; }
.nav a:hover::after, .nav a:focus-visible::after, .text-link:hover::after, .text-link:focus-visible::after { right: 0; }
.header-cta { justify-self: end; }
.menu-toggle { display: none; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 1.4rem; padding: .85rem 1.45rem; border: 0; border-radius: 4px; background: var(--amber); color: #20170d; font-weight: 600; font-size: .84rem; cursor: pointer; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); background: var(--amber-light); box-shadow: 0 12px 30px rgba(226,165,80,.18); }
.button:active { transform: translateY(0); }
.button:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--amber-light); outline-offset: 4px; }
.button-small { min-height: 40px; padding: .55rem 1rem; }
.button-coral { background: var(--coral); color: #fff7ec; }
.button-coral:hover { background: #cd6b5f; box-shadow: 0 12px 30px rgba(185,93,81,.18); }
.hero { min-height: 760px; height: 100svh; max-height: 980px; position: relative; display: grid; grid-template-columns: minmax(350px, .8fr) 1.2fr; align-items: center; overflow: hidden; padding: 110px clamp(1.3rem, 5vw, 5rem) 40px; max-width: 1600px; margin: 0 auto; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 22%; background: linear-gradient(transparent, var(--ink)); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; max-width: 600px; padding-left: max(0px, calc((100vw - 1440px) / 2)); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(4.4rem, 7.3vw, 7.8rem); line-height: .97; letter-spacing: -.055em; margin-bottom: 1.8rem; }
.hero-copy > p { max-width: 520px; font-size: clamp(1.05rem, 1.45vw, 1.35rem); color: var(--paper-soft); }
.hero-actions { margin-top: 2.3rem; display: flex; align-items: center; gap: 1.8rem; }
.text-link { color: var(--paper-soft); font-size: .82rem; }
.hero-art { position: absolute; inset: 80px -2% 0 39%; display: grid; place-items: center; perspective: 1800px; }
.hero-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 60% 48%, rgba(226,165,80,.12), transparent 45%); }
.book-stage { --open: 0deg; --tilt-x: 0deg; --tilt-y: -7deg; position: relative; width: min(720px, 52vw); aspect-ratio: 1.38; display: grid; place-items: center; perspective: 1800px; touch-action: pan-y; cursor: ew-resize; }
.book { position: relative; width: 74%; aspect-ratio: 1.4; transform-style: preserve-3d; transform: rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) rotateZ(-1deg); transition: transform .16s ease-out; }
.book-shadow { position: absolute; width: 72%; height: 20%; left: 18%; bottom: 12%; background: rgba(0,0,0,.72); filter: blur(35px); transform: rotate(-2deg); transition: transform .3s ease, opacity .3s ease; }
.book-inside { position: absolute; inset: 0; border-radius: 4px 15px 15px 4px; overflow: hidden; background: #d6c7aa; box-shadow: 0 25px 65px rgba(0,0,0,.62), inset 0 0 0 8px #d1bea0; transform: translateZ(7px); }
.book-inside::after { content: ""; position: absolute; inset: 0; box-shadow: inset 22px 0 28px rgba(23,13,7,.48), inset -8px 0 18px rgba(40,22,10,.28); pointer-events: none; }
.book-inside img { width: 100%; height: 100%; object-fit: cover; object-position: 57% center; filter: saturate(.86) contrast(1.05); }
.inside-glow { position: absolute; width: 38%; aspect-ratio: 1; left: 48%; top: 25%; background: rgba(238,173,73,.25); border-radius: 50%; filter: blur(35px); animation: breathe 3s ease-in-out infinite alternate; }
.book-pages { position: absolute; inset: 6px -11px -11px 6px; border-radius: 3px 15px 15px 3px; background: #b49e7c; transform: translateZ(-1px); box-shadow: 0 20px 50px rgba(0,0,0,.55); }
.book-pages span { position: absolute; inset: auto 3px calc(var(--i, 0) * 3px) 8px; height: 2px; background: rgba(249,231,196,.5); }
.book-pages span:nth-child(1) { --i: 1; }.book-pages span:nth-child(2) { --i: 2; }.book-pages span:nth-child(3) { --i: 3; }.book-pages span:nth-child(4) { --i: 4; }
.book-cover { position: absolute; inset: -3px; z-index: 3; padding: 0; color: var(--paper); background: linear-gradient(135deg, #253a36, #101d22 64%, #34231c); border: 1px solid rgba(226,165,80,.42); border-radius: 4px 16px 16px 4px; box-shadow: inset 16px 0 22px rgba(0,0,0,.55), inset 0 0 0 6px rgba(226,165,80,.08), 0 25px 55px rgba(0,0,0,.55); transform-origin: left center; transform-style: preserve-3d; transform: translateZ(15px) rotateY(var(--open)); cursor: ew-resize; transition: transform .18s cubic-bezier(.2,.65,.3,1), box-shadow .3s ease; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.book-cover::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(226,165,80,.27); border-radius: 1px 10px 10px 1px; }
.book-cover::after { content: ""; position: absolute; inset: 0; opacity: .24; border-radius: inherit; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='f'%3E%3CfeTurbulence baseFrequency='.45' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23f)' opacity='.24'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; pointer-events: none; }
.cover-frame { position: absolute; inset: 12%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(226,165,80,.4); }
.cover-frame::before, .cover-frame::after { content: ""; position: absolute; width: 28px; height: 28px; border-color: var(--amber); opacity: .6; }
.cover-frame::before { left: -1px; top: -1px; border-left: 2px solid; border-top: 2px solid; }.cover-frame::after { right: -1px; bottom: -1px; border-right: 2px solid; border-bottom: 2px solid; }
.cover-star { color: var(--amber); font-size: 1.2rem; margin-bottom: 1rem; }
.cover-title { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 3.25rem); line-height: 1.04; text-align: center; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.cover-author { margin-top: 1.7rem; font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--amber-light); }
.book-cover[aria-pressed="true"] { box-shadow: inset 16px 0 22px rgba(0,0,0,.45), -20px 25px 50px rgba(0,0,0,.38); }
.book-instruction { position: absolute; bottom: 3%; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .7rem; margin: 0; font-size: .65rem; color: rgba(232,224,210,.65); letter-spacing: .05em; white-space: nowrap; transition: opacity .3s ease; }
.mouse-icon { width: 15px; height: 22px; border: 1px solid currentColor; border-radius: 9px; position: relative; }
.mouse-icon::before { content: ""; width: 1px; height: 5px; position: absolute; left: 6px; top: 3px; background: currentColor; animation: mousewheel 1.4s ease-in-out infinite; }
.book-stage.is-open .book-instruction { opacity: .35; }
@keyframes mousewheel { 0%,100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(5px); opacity: 1; } }
@keyframes breathe { from { transform: scale(.9); opacity: .45; } to { transform: scale(1.08); opacity: .8; } }
.scroll-hint { position: absolute; left: clamp(1.3rem, 5vw, 5rem); bottom: 2.1rem; z-index: 3; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-soft); }
.scroll-hint span { color: var(--amber); margin-left: .5rem; }
.section { max-width: 1440px; margin: 0 auto; padding: clamp(5.5rem, 9vw, 9rem) clamp(1.3rem, 5vw, 5rem); position: relative; }
.section-number { position: absolute; right: 5vw; top: 8rem; font-family: var(--serif); color: rgba(232,224,210,.13); font-size: 7rem; line-height: 1; }
.section-label { color: var(--amber); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.4rem; }
.about { display: grid; grid-template-columns: 1fr 1fr; column-gap: 10vw; }
.about h2, .section-heading h2, .process h2, .contact h2 { font-size: clamp(2.8rem, 5vw, 5rem); line-height: 1.08; letter-spacing: -.035em; }
.about-body { padding-top: 4rem; color: var(--paper-soft); max-width: 530px; }
.about-body .lead { font-family: var(--serif); color: var(--paper); font-size: 1.35rem; line-height: 1.6; }
.proof-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 5rem; }
.proof-strip article { padding: 2rem; min-height: 140px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); }
.proof-strip article:last-child { border-right: 0; }
.proof-strip span { color: var(--amber); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.proof-strip strong { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; }
.flagship { max-width: none; min-height: 800px; display: grid; grid-template-columns: 1.15fr .85fr; padding: 0; background: #0b1320; }
.flagship-visual { min-height: 720px; position: relative; overflow: hidden; background: radial-gradient(circle at 53% 48%, rgba(226,165,80,.65) 0 6%, rgba(226,165,80,.18) 18%, transparent 45%), linear-gradient(135deg, #20271f, #0d1622 60%); }
.paper-moon { position: absolute; width: 150px; aspect-ratio: 1; border-radius: 50%; background: #f0c36e; left: 50%; top: 23%; box-shadow: 0 0 70px rgba(240,195,110,.35); }
.forest { position: absolute; inset: auto 0 0; background-repeat: repeat-x; }
.forest-back { height: 68%; opacity: .65; background-image: linear-gradient(150deg, transparent 49%, #526356 50% 53%, transparent 54%), linear-gradient(210deg, transparent 49%, #526356 50% 53%, transparent 54%); background-size: 130px 220px; background-position: 0 100%; }
.forest-front { height: 53%; background-image: linear-gradient(150deg, transparent 49%, #17241f 50% 55%, transparent 56%), linear-gradient(210deg, transparent 49%, #17241f 50% 55%, transparent 56%); background-size: 150px 260px; background-position: 40px 100%; }
.lantern { position: absolute; left: 48%; bottom: 22%; width: 78px; height: 98px; border: 3px solid #2d2418; color: #fff0b0; display: grid; place-items: center; font-size: 2rem; background: #e4a94d; box-shadow: 0 0 90px #e4a94d; }
.flagship-copy { padding: clamp(5rem, 8vw, 9rem) clamp(2rem, 7vw, 8rem); align-self: center; }
.flagship h2 { font-size: clamp(4rem, 7vw, 7rem); line-height: .94; letter-spacing: -.045em; margin-bottom: 2rem; }
.flagship-copy > p:not(.section-label) { color: var(--paper-soft); max-width: 500px; }
.feature-list { list-style: none; padding: 0; margin: 2.3rem 0; border-top: 1px solid var(--line); }
.feature-list li { padding: .8rem 0; border-bottom: 1px solid var(--line); color: var(--paper-soft); font-size: .9rem; }
.audiences { padding-top: 10rem; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; }
.audience-list { margin-top: 5rem; border-top: 1px solid var(--line); }
.audience { min-height: 210px; display: grid; grid-template-columns: 90px .8fr 1.2fr 180px; gap: 2rem; align-items: center; border-bottom: 1px solid var(--line); transition: padding .25s ease, background .25s ease; }
.audience:hover { padding-left: 1rem; background: rgba(232,224,210,.025); }
.audience-index { color: var(--amber); font-family: var(--serif); }
.audience h3 { font-size: clamp(1.8rem, 3vw, 2.7rem); margin: 0; }
.audience p { color: var(--paper-soft); margin: 0; max-width: 500px; }
.status { justify-self: end; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sage); }
.prototype-note { color: rgba(232,224,210,.45); font-size: .72rem; margin-top: 1.5rem; }
.process { background: var(--paper); color: var(--ink); max-width: none; padding-left: max(5vw, calc((100vw - 1280px) / 2)); padding-right: max(5vw, calc((100vw - 1280px) / 2)); }
.process .section-label { color: var(--coral); }
.process-heading { max-width: 700px; }
.steps { list-style: none; padding: 0; margin: 5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps li { padding: 1.7rem 2rem; border-top: 1px solid rgba(9,16,29,.25); border-right: 1px solid rgba(9,16,29,.15); }
.steps li:last-child { border-right: 0; }
.steps span { display: grid; place-items: center; width: 38px; aspect-ratio: 1; border: 1px solid rgba(9,16,29,.35); border-radius: 50%; font-size: .7rem; margin-top: -3rem; background: var(--paper); }
.steps h3 { font-size: 1.35rem; margin-top: 1.8rem; }
.steps p { color: #4e514f; font-size: .84rem; }
.testimonial { min-height: 620px; display: grid; grid-template-columns: .35fr .65fr; align-items: center; background: radial-gradient(circle at 80% 45%, rgba(226,165,80,.08), transparent 30%); }
.testimonial blockquote { margin: 0; position: relative; max-width: 800px; }
.testimonial blockquote p { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1.5; }
.quote-mark { position: absolute; left: -4rem; top: -3.5rem; font-family: var(--serif); font-size: 8rem; color: var(--amber); opacity: .35; }
.testimonial footer { color: var(--paper-soft); font-size: .78rem; }
.contact { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; align-items: center; background: linear-gradient(120deg, #17221e, var(--ink-soft)); padding-left: max(5vw, calc((100vw - 1280px) / 2)); padding-right: max(5vw, calc((100vw - 1280px) / 2)); }
.contact-copy p:last-child { color: var(--paper-soft); max-width: 580px; }
.contact-card { padding: 3rem; border: 1px solid var(--line); background: rgba(9,16,29,.35); }
.contact-card > p { font-family: var(--serif); font-size: 1.3rem; }
.demo-message { max-height: 0; opacity: 0; overflow: hidden; color: var(--amber-light); font-size: .8rem; transition: .3s ease; }
.demo-message.visible { max-height: 70px; opacity: 1; margin-top: 1.3rem; }
.site-footer { max-width: 1440px; margin: 0 auto; min-height: 110px; padding: 2rem clamp(1.3rem, 5vw, 5rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: rgba(232,224,210,.55); font-size: .7rem; }
.site-footer .brand { color: var(--paper); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .menu-toggle { display: grid; width: 42px; height: 42px; place-content: center; gap: 6px; border: 1px solid var(--line); background: var(--ink-soft); color: var(--paper); cursor: pointer; z-index: 2; }
  .menu-toggle span { display: block; width: 18px; height: 1px; background: currentColor; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav { display: none; position: absolute; left: 1.3rem; right: 1.3rem; top: 75px; padding: 1.5rem; background: #101927; border: 1px solid var(--line); flex-direction: column; gap: 1rem; }
  .nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: 780px; align-items: end; padding-bottom: 5rem; }
  .hero-art { inset: 55px -23% 27% 20%; opacity: .88; }
  .book-stage { width: min(720px, 80vw); --open: -142deg; }
  .book-cover { transform: translateZ(15px) rotateY(var(--open)); }
  .book-instruction { bottom: -8%; }
  .instruction-text { font-size: 0; }
  .instruction-text::after { content: "Проведите пальцем по книге"; font-size: .65rem; }
  .hero-copy { padding: 0; }
  h1 { font-size: clamp(3.8rem, 13vw, 6rem); }
  .scroll-hint { display: none; }
  .about { grid-template-columns: 1fr; }
  .about-body { padding-top: 1rem; }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip article { border-right: 0; border-bottom: 1px solid var(--line); }
  .flagship { grid-template-columns: 1fr; }
  .flagship-visual { min-height: 520px; }
  .audience { grid-template-columns: 45px 1fr; padding: 2rem 0; }
  .audience p, .status { grid-column: 2; justify-self: start; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .testimonial { grid-template-columns: 1fr; align-content: center; }
  .testimonial blockquote { margin-top: 4rem; }
  .quote-mark { left: 0; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header { height: 72px; }
  .brand { font-size: 1rem; }
  .hero { min-height: 720px; padding-top: 95px; }
  .hero-art { inset: 65px -44% 33% 13%; }
  .book-stage { width: 104vw; }
  h1 { font-size: clamp(3.35rem, 16vw, 4.7rem); }
  .hero-copy > p { font-size: .95rem; max-width: 90%; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1rem; }
  .about h2, .section-heading h2, .process h2, .contact h2 { font-size: 2.55rem; }
  .section-number { display: none; }
  .flagship-visual { min-height: 390px; }
  .paper-moon { width: 100px; }
  .flagship h2 { font-size: 3.7rem; }
  .flagship-copy { padding-left: 1.3rem; padding-right: 1.3rem; }
  .audiences { padding-top: 6rem; }
  .steps { grid-template-columns: 1fr; gap: 3rem; }
  .steps li { border-right: 0; }
  .testimonial { min-height: 700px; }
  .testimonial blockquote p { font-size: 1.45rem; }
  .contact-card { padding: 1.5rem; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .book-stage { --open: -150deg !important; --tilt-x: 0deg !important; --tilt-y: -5deg !important; }
  .inside-glow, .mouse-icon::before { animation: none; }
  .book-instruction { display: none; }
}
