/* МойИстории — визуальный редизайн по референсу StoryWiz */
:root {
  color-scheme: light;
  --cream: #f6f8ff;
  --paper: #fff;
  --ink: #142146;
  --muted: #65708b;
  --plum: #6546d4;
  --plum-deep: #5232b6;
  --lavender: #efedff;
  --pink: #ffe9f1;
  --blush: #f3dfe0;
  --gold: #ffe45c;
  --line: #e8ebf3;
  --navy: #0c1838;
  --blue: #3b87ed;
  --mint: #43b76f;
  --body: 'Manrope', 'Segoe UI', sans-serif;
  --display: 'Nunito', 'Manrope', sans-serif;
  --radius-card: 24px;
  --shadow-soft: 0 20px 55px rgba(22, 38, 82, .10);
  font-family: var(--body);
  color: var(--ink);
  scroll-padding-top: 84px;
}
body { background: #f6f8fd; color: var(--ink); font-size: 14px; line-height: 1.65; }
.container { width: min(1260px, calc(100% - 64px)); }
.section-padding { padding: clamp(64px, 8vw, 96px) 0; }
:focus-visible { outline-color: #7354e3 !important; }

/* Navigation */
.site-header { background: rgba(12, 24, 56, .98); border-bottom: 1px solid rgba(255,255,255,.1); box-shadow: 0 5px 24px rgba(6,14,36,.12); }
.header-inner { width: min(1360px, calc(100% - 64px)); height: 76px; }
.brand { color: #fff; font-family: var(--display); font-weight: 900; letter-spacing: -.7px; font-size: 20px; }
.brand > span:last-child > span { color: #ffe45c; font-family: var(--display); font-size: inherit; font-weight: 900; }
.brand-mark { width: 42px; height: 42px; border-radius: 15px; color: #fff4bb; background: linear-gradient(145deg,#7552e8,#3a307d); box-shadow: 0 0 22px rgba(125,94,255,.28); }
.brand-mark svg { width: 30px; }
.main-nav { gap: clamp(15px, 2.4vw, 32px); }
.main-nav a, .mobile-nav a { color: #e6eafa; font-size: 11px; font-weight: 700; }
.main-nav a:hover, .mobile-nav a:hover { color: var(--gold); }
.button { min-height: 52px; padding: 0 26px; font-size: 12px; font-weight: 800; }
.button-primary { color: #172044; background: var(--gold); box-shadow: 0 9px 24px rgba(255, 220, 49, .23); }
.button-primary:hover { color: #172044; background: #ffec7a; box-shadow: 0 13px 28px rgba(255, 220, 49, .32); }
.button-small { min-height: 42px; color: #172044; background: #ffe45c; }
.menu-toggle { border-color: rgba(255,255,255,.3); }
.menu-toggle span { background: white; }

/* Full-bleed cinematic hero */
.hero { min-height: min(670px, calc(100svh - 76px)); padding: 0; display: flex; align-items: center; background: #0a1534; isolation: isolate; }
.hero::before, .hero-ambient { display: none; }
.hero-inner { position: static; width: 100%; margin: 0; display: block; }
.hero-copy { width: min(560px, calc(100% - 54px)); max-width: 560px; margin-left: max(32px, calc((100vw - 1260px) / 2)); padding: 76px 0 90px; }
.hero .eyebrow { color: #d7ddef; letter-spacing: .13em; font-size: 10px; }
.eyebrow-sparkle { color: var(--gold); }
.hero h1 { max-width: 550px; margin: 20px 0 20px; color: white; font: 900 clamp(48px, 5.6vw, 76px)/1.03 var(--display); letter-spacing: -.055em; }
h1 em, h2 em { color: #ffe45c; font-style: normal; }
.hero-description { max-width: 440px; margin-bottom: 0; color: #e1e7fa; font-size: 14px; line-height: 1.8; }
.hero-actions { margin-top: 26px; gap: 22px; }
.hero-actions .button { min-height: 56px; }
.hero .text-link { color: #fff; }
.hero .text-link:hover { color: var(--gold); }
.hero .tiny-play { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .text-link:hover .tiny-play { color: var(--navy); border-color: var(--gold); background: var(--gold); }
.hero-trust { margin-top: 27px; gap: 12px; color: #dae2f8; font-size: 10px; }
.trust-divider { background: rgba(255,255,255,.3); }
@media (min-width: 761px) and (max-height: 820px) {
  .hero-copy { padding-top: 36px; padding-bottom: 38px; }
  .hero h1 { margin: 12px 0 13px; font-size: clamp(44px, 4.8vw, 64px); }
  .hero-description { line-height: 1.55; }
  .hero-actions { margin-top: 16px; }
  .hero-trust { margin-top: 13px; }
}
@media (min-width: 761px) and (max-height: 690px) {
  .hero-copy { padding-top: 18px; padding-bottom: 18px; }
  .hero h1 { margin: 9px 0 10px; font-size: clamp(38px, 4.2vw, 54px); }
  .hero-description { font-size: 13px; line-height: 1.45; }
  .hero-actions { margin-top: 12px; }
  .hero-actions .button { min-height: 50px; }
  .hero-trust { margin-top: 10px; }
}
.trust-note { color: #e8ecf8; }
.trust-note > span { color: var(--gold); }
.hero-art-wrap { position: absolute; z-index: -1; inset: 0; width: 100%; min-width: 0; padding: 0; pointer-events: none; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; border-radius: 0; background: #0b1738; box-shadow: none; }
.hero-art::before { inset: 0; border-radius: 0; background: linear-gradient(90deg,rgba(7,16,42,.97) 0%,rgba(9,19,47,.86) 30%,rgba(10,22,52,.24) 58%,rgba(10,22,52,.02) 100%),linear-gradient(0deg,rgba(7,16,42,.27),transparent 40%); }
.hero-art img { width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: right center; }
.art-note { right: max(30px,calc((100vw - 1260px) / 2)); bottom: 12%; padding: 12px 17px; border-color: rgba(255,255,255,.25); border-radius: 18px; background: rgba(9,19,46,.36); font-size: 12px; line-height: 1.5; }
.art-note em { font-family: var(--display); font-size: 14px; font-weight: 800; }
.art-note-icon { color: #ffe45c; }
.floating-star { color: #ffe45c; }
.star-a { right: 35%; top: 10%; }.star-b { left: 55%; top: 19%; color: #ead7ff; }
.floating-card { left: auto; right: 9%; bottom: 7%; border: 1px solid rgba(255,255,255,.55); border-radius: 17px; padding: 11px 16px 11px 11px; background: rgba(255,255,255,.94); }
.floating-card-book { color: #fff8da; background: #6041cc; }
.floating-card strong { font-size: 12px; }.floating-card small { font-size: 10px; }
.scroll-cue { display: none; }

/* Four concise reasons to listen */
.why { padding: 43px 0 48px; background: #fff; }
.why .section-heading { margin-bottom: 27px; }
.why .section-heading h2 { margin: 8px 0 0; font: 900 clamp(30px,3.2vw,42px)/1.12 var(--display); color: var(--ink); }
.why .section-heading h2 em { color: var(--plum); }
.why .section-heading > p { margin-top: 8px; font-size: 11px; }
.benefit-row { grid-template-columns: repeat(4,1fr); border: 0; }
.benefit-card { min-height: 180px; padding: 8px 25px 10px 20px; border-left: 1px solid #edf0f6; }
.benefit-card:first-child { border-left: 0; padding-left: 0; }
.benefit-card + .benefit-card { padding-left: 25px; border-left: 1px solid #edf0f6; }
.benefit-icon { width: 46px; height: 46px; margin-bottom: 14px; border-radius: 50%; color: white; background: #8058e9; box-shadow: 0 6px 15px rgba(95,70,194,.18); }
.benefit-icon span { font: 900 23px var(--display); }
.icon-pink { color: white; background: #ed6092; }.icon-peach { color: white; background: #4d91e8; }.icon-mint { color: white; background: #52b676; }
.benefit-card h3 { min-height: 24px; margin-bottom: 6px; color: #182449; font: 900 14px/1.35 var(--display); }
.benefit-card p { max-width: 260px; color: #65708b; font-size: 10px; line-height: 1.65; }
.benefit-index { display: none; }

/* Colorful, swipeable story categories */
.categories { padding: 57px 0 66px; background: #f6f8fd; }
.categories-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.categories-heading .eyebrow { color: #7461b2; }
.categories-heading h2 { margin: 7px 0 0; color: var(--ink); font: 900 clamp(29px,3.6vw,42px)/1.12 var(--display); letter-spacing: -.04em; }
.categories-heading h2 em { color: var(--plum); }
.category-all { display: inline-flex; gap: 10px; align-items: center; color: #385dba; font-size: 11px; font-weight: 800; white-space: nowrap; }
.category-rail { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 16px; }
.category-card { position: relative; display: block; min-width: 0; aspect-ratio: 1 / 1.02; overflow: hidden; isolation: isolate; border-radius: 20px; background: #303f6a; box-shadow: 0 10px 24px rgba(21,34,75,.12); transition: transform .28s ease, box-shadow .28s ease; }
.category-card:hover { transform: translateY(-5px); box-shadow: 0 16px 30px rgba(21,34,75,.20); }
.category-card::after { content: ''; position: absolute; z-index: 0; inset: 25% 0 0; background: linear-gradient(180deg,transparent,rgba(7,14,35,.84)); }
.category-card img { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.category-card:hover img { transform: scale(1.06); }
.category-card > span { position: absolute; z-index: 1; left: 15px; right: 12px; bottom: 14px; color: white; font: 900 13px/1.18 var(--display); text-shadow: 0 2px 9px rgba(0,0,0,.28); }

/* Steps and builder */
.how { padding-top: 72px; padding-bottom: 48px; background: #fff; }
.heading-split { grid-template-columns: 1fr .68fr; align-items: end; gap: 38px; margin-bottom: 33px; }
.section-heading h2, .listen-copy h2, .pricing-copy h2, .faq-title h2 { color: var(--ink); font: 900 clamp(34px,4vw,48px)/1.1 var(--display); letter-spacing: -.045em; }
.heading-split h2 em, .listen-copy h2 em, .pricing-copy h2 em, .faq-title h2 em { color: var(--plum); }
.heading-split > p { color: #66718b; font-size: 12px; }
.steps-line { margin-top: 26px; border: 0; gap: 14px; }
.step-card { min-height: 192px; padding: 18px 20px; border: 1px solid #eaedf4; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(20,35,75,.045); }
.step-card + .step-card { padding-left: 20px; border: 1px solid #eaedf4; }
.step-number { justify-content: flex-start; gap: 11px; margin-bottom: 13px; color: #7250d4; font: 900 12px var(--display); }
.step-number > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: linear-gradient(145deg,#9c66ec,#5834c5); font-size: 15px; }
.step-card h3 { min-height: 0; margin-bottom: 7px; color: #172345; font: 900 16px/1.25 var(--display); }
.step-card p { margin-bottom: 9px; color: #65708a; font-size: 10px; line-height: 1.65; }
.step-script { color: #7052c8; font: 700 italic 13px var(--display); }

.builder { padding: 40px 0 85px; background: #fff; }
.builder-container { padding: 43px; border: 1px solid #e9ebf5; border-radius: 34px; background: linear-gradient(125deg,#f2f8ff 0%,#f8f7ff 52%,#f3edff 100%); box-shadow: 0 18px 50px rgba(37,48,102,.08); }
.builder-heading { margin-bottom: 30px; text-align: left; }
.builder-heading .eyebrow { color: #6751b6; }
.builder-heading h2 { margin: 9px 0 9px; color: var(--ink); font: 900 clamp(31px,3.5vw,42px)/1.12 var(--display); letter-spacing: -.04em; }
.builder-heading h2 em { color: var(--plum); }
.builder-heading > p { max-width: 680px; margin-bottom: 0; color: #5e6983; font-size: 12px; }
.builder-layout { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(0,1.2fr); align-items: stretch; gap: 25px; }
.builder-showcase { min-width: 0; position: relative; overflow: hidden; padding: 21px 23px 18px; border-radius: 24px; color: white; background: radial-gradient(circle at 55% 52%,#42348c 0, #221f5e 40%, #111b48 100%); box-shadow: 0 16px 30px rgba(42,37,112,.18); }
.showcase-topline { position: relative; z-index: 2; display: flex; gap: 10px; align-items: center; color: #e9e4ff; font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.showcase-sparkle { color: var(--gold); font-size: 20px; }
.dragon-art { position: relative; height: 250px; margin: 5px -6px -7px; overflow: hidden; border-radius: 18px; background: radial-gradient(circle at 55% 55%,#8955db,#181d55 74%); }
.dragon-art::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(0deg,rgba(13,19,56,.7),transparent); pointer-events: none; }
.dragon-art img { width: 100%; height: 100%; object-fit: cover; }
.showcase-quote { position: relative; z-index: 1; margin: -49px 10px 22px; color: white; font: 800 20px/1.22 var(--display); text-shadow: 0 2px 12px rgba(10,13,47,.8); }
.showcase-quote em { color: #ffe45c; font-style: normal; }
.sound-wave { height: 25px; display: flex; align-items: center; justify-content: center; gap: 4px; margin: 0 0 7px; }
.sound-wave span { width: 3px; height: 8px; border-radius: 8px; background: #d6c9ff; animation: wave-pulse 1.2s ease-in-out infinite alternate; }
.sound-wave span:nth-child(3n) { height: 18px; animation-delay: -.55s; }.sound-wave span:nth-child(4n) { height: 12px; animation-delay: -.3s; }.sound-wave span:nth-child(5n) { height: 22px; animation-delay: -.7s; }
.sound-wave + small { display: block; text-align: center; color: #d9d8f2; font-size: 9px; }
.builder-form-panel { min-width: 0; padding: 26px 27px 23px; border: 1px solid rgba(255,255,255,.94); border-radius: 23px; background: rgba(255,255,255,.96); box-shadow: 0 12px 33px rgba(36,42,91,.09); }
.builder-progress-wrap { margin-bottom: 20px; }
.builder-progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: #6851bd; font-size: 9px; font-weight: 900; letter-spacing: .05em; }
.builder-progress-meta span:last-child { color: #74809a; font-weight: 600; letter-spacing: 0; text-align: right; }
.builder-progress { height: 6px; border-radius: 6px; background: #eceaf8; }.builder-progress span { background: linear-gradient(90deg,#a56ae9,#5b3ac9); border-radius: inherit; transition: width .35s ease; }
.form-step { padding: 0; border: 0; }
.form-step legend { margin-bottom: 5px; color: #172345; font: 900 19px/1.3 var(--display); }
.step-intro { margin-bottom: 18px; color: #73809b; font-size: 10px; }
.form-grid { gap: 13px; margin: 12px 0; }
.form-grid-first { margin-top: 0; }
.field-group { gap: 5px; color: #1b284a; font-size: 10px; font-weight: 800; }
.field-group i, .required-note i { color: #ec6092; font-style: normal; }
.field-group input, .field-group select, .field-group textarea { min-height: 42px; padding: 10px 12px; border: 1px solid #e4e7f0; border-radius: 11px; color: #1c294b; background: #fff; font-size: 11px; transition: border-color .2s, box-shadow .2s; }
.field-group textarea { min-height: 62px; resize: vertical; }
.field-group input:focus, .field-group select:focus, .field-group textarea:focus { border-color: #7858db; outline: 0; box-shadow: 0 0 0 3px rgba(112,82,205,.12); }
.field-group input::placeholder, .field-group textarea::placeholder { color: #a0a7b8; }
.field-group small { color: #8992a6; font-size: 9px; font-weight: 500; }
.step-actions { gap: 12px; margin-top: 17px; }
.required-note { color: #858fa5; font-size: 9px; }
.step-actions .button { min-height: 46px; }
.button-back { color: #5b49a6; background: #f1effb; }
.privacy-hint { color: #717d94; font-size: 9px; }
.story-result { padding: 23px; border: 1px solid #ece9fb; border-radius: 17px; background: linear-gradient(140deg,#fff,#f7f4ff); }
.story-result .eyebrow { color: #7151cb; }
.story-result h3 { margin: 8px 0; color: #1a264a; font: 900 27px/1.16 var(--display); }
.result-subtitle, .story-excerpt { color: #626d87; font-size: 11px; line-height: 1.75; }
.story-excerpt { padding: 15px; border-radius: 12px; background: #fff; }
.story-excerpt p { margin: 0; }
.result-tag { color: #5942a2; background: #eeeaff; }
.result-note { color: #8790a4; font-size: 9px; }

/* Audio sample and testimonials */
.listen { background: #f5f7fc; }
.listen-grid { gap: 55px; }
.listen-copy h2 { margin: 11px 0 17px; }
.listen-copy p { color: #65708b; font-size: 12px; }
.listen-caption { color: #6b5bb4; font: 800 12px var(--display); }
.caption-line { background: #7052d4; }
.player-scene { padding: 32px; border: 0; border-radius: 26px; background: radial-gradient(circle at 55% 0,#e9e4ff,#eaf3ff 66%,#f9f4ff); }
.player-scene::before { display: none; }
.audio-card { padding: 21px; border: 1px solid #eef0f6; border-radius: 19px; background: white; box-shadow: 0 16px 35px rgba(25,38,84,.12); }
.book-cover { height: 145px; border-radius: 14px; background: linear-gradient(135deg,#415acb,#b477e2 55%,#ffcb6c); }
.book-cover::before { background: #6048c8; }.book-cover::after { background: #3a327e; }
.player-kicker { color: #6d53ca; }
.player-meta h3 { color: #1c294b; font-family: var(--display); font-size: 21px; font-weight: 900; }
.player-meta p, .player-hint, .player-footnote { color: #7a849a; }
.round-play { background: #6546d4; }
.progress-fill { background: #7651df; }.progress-knob { background: #6546d4; }
.reviews { background: #fff; }
.reviews .section-heading h2 { color: #172345; }
.review-grid { gap: 17px; }
.review-card { border: 1px solid #eceef5; border-radius: 19px; box-shadow: 0 8px 24px rgba(19,34,75,.05); }
.review-cream { background: #fffdf5; }.review-lilac { background: #f9f7ff; }.review-pink { background: #fff6f8; }
.review-card h3 { color: #182548; font-family: var(--display); font-weight: 900; }.review-card > p { color: #5e6982; }
.reviews-note { color: #7d879b; }

/* Clear, accessible gift pricing */
.pricing { overflow: hidden; color: white; background: radial-gradient(ellipse at 12% 10%,#263d7b 0,transparent 40%),linear-gradient(135deg,#111f49,#0b1534 72%); }
.pricing-wrap { gap: 55px; }
.pricing-copy .eyebrow { color: #dbd7ff; }
.pricing-copy h2 { margin-top: 12px; color: white; }
.pricing-copy h2 em { color: #ffe45c; }
.pricing-copy > p { color: #d6def2; font-size: 13px; }
.price-perk { color: #eff0ff; }
.price-card { border: 1px solid rgba(255,255,255,.72); border-radius: 23px; color: #182449; background: white; box-shadow: 0 22px 55px rgba(0,0,0,.2); }
.price-card-top { color: #6953c1; }
.price-amount { color: #152143; font-family: var(--display); font-weight: 900; }.price-amount span { color: #684acf; }
.price-label, .price-features { color: #65708a; }
.price-features li > span { color: #7353da; }
.price-card .button-wide { color: #172044; background: #ffe45c; }
.price-small { color: #8690a4; }

/* FAQ and footer */
.faq { background: #f7f8fc; }
.faq-title h2 em { color: var(--plum); }
.faq-title p { color: #64708b; }
.faq-item { border-color: #e6e9f1; }
.faq-item summary { color: #1c294a; font-family: var(--display); font-size: 14px; font-weight: 900; }
.faq-item > p { color: #65708b; }
.faq-plus { color: #6546d4; }
.site-footer { position: relative; overflow: hidden; color: #edf0ff; background: #0b1534; }
.site-footer::before { content: ''; position: absolute; top: -25px; left: -3%; width: 106%; height: 50px; border-radius: 0 0 50% 50%; background: #f7f8fc; }
.footer-main { padding-top: 72px; }
.footer-brand { color: white; }.footer-brand > span:last-child > span { color: #ffe45c; }
.footer-brand-block > p, .footer-links a, .footer-note, .footer-bottom { color: #d2daef; }
.footer-note .footer-stars { color: #ffe45c; }
.footer-links a:hover, .footer-bottom a:hover { color: #ffe45c; }
.footer-bottom { border-color: rgba(255,255,255,.16); }
.order-dialog { color: #182449; border: 1px solid #ecebf4; border-radius: 24px; box-shadow: 0 30px 100px rgba(0,0,0,.32); }
.order-dialog::backdrop { background: rgba(6,12,32,.72); backdrop-filter: blur(5px); }
.order-dialog .eyebrow { color: #7152ce; }
.order-dialog h2 { color: #172345; font-family: var(--display); font-weight: 900; }
.order-dialog .button-primary { color: #172044; background: #ffe45c; }
.toast { color: #fff; background: #14224b; box-shadow: 0 15px 38px rgba(10,19,46,.24); }

@keyframes wave-pulse { from { transform: scaleY(.55); opacity: .66; } to { transform: scaleY(1.08); opacity: 1; } }
@media (max-width: 1040px) {
  .header-inner { gap: 17px; }
  .main-nav { gap: 14px; }
  .main-nav a { font-size: 10px; }
  .hero { min-height: 580px; }
  .hero-copy { margin-left: 34px; }
  .hero-art img { object-position: 57% center; }
  .category-rail { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .category-card { aspect-ratio: 1.45 / 1; }
  .builder-container { padding: 30px; }
  .builder-layout { grid-template-columns: .76fr 1.24fr; gap: 17px; }
  .builder-showcase { padding-inline: 17px; }
  .builder-form-panel { padding: 22px; }
}
@media (max-width: 760px) {
  :root { scroll-padding-top: 72px; }
  .container { width: min(100% - 36px, 560px); }
  .section-padding { padding: 55px 0; }
  .header-inner { width: calc(100% - 32px); height: 68px; gap: 12px; }
  .brand { gap: 7px; font-size: 18px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 13px; }
  .main-nav { display: none; }
  .header-cta { margin-left: auto; min-height: 39px; padding-inline: 13px; font-size: 10px; }
  .menu-toggle { width: 40px; height: 40px; display: flex; }
  .mobile-nav { position: absolute; inset: 68px 0 auto; display: flex; flex-direction: column; gap: 0; padding: 8px 18px 16px; background: #0c1838; border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 30px rgba(6,14,36,.24); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 13px; }
  .hero { min-height: 670px; min-height: min(760px, calc(100svh - 68px)); max-height: 780px; align-items: flex-end; }
  .hero-inner { width: 100%; }
  .hero-copy { width: calc(100% - 42px); max-width: 560px; margin: 0 auto; padding: 320px 0 45px; }
  .hero-art img { object-fit: cover; object-position: 62% top; }
  .hero-art::before { background: linear-gradient(0deg,rgba(7,16,42,.99) 0%,rgba(8,17,43,.95) 22%,rgba(8,17,43,.42) 56%,rgba(8,17,43,.06) 100%); }
  .hero .eyebrow { font-size: 8px; }
  .hero h1 { max-width: 520px; margin: 13px 0 13px; font-size: clamp(38px, 10vw, 55px); }
  .hero-description { max-width: 490px; font-size: 12px; line-height: 1.65; }
  .hero-actions { gap: 13px; margin-top: 18px; }
  .hero-actions .button { min-height: 49px; padding-inline: 19px; font-size: 11px; }
  .hero .text-link { font-size: 10px; }
  .hero-trust { margin-top: 17px; flex-wrap: wrap; gap: 8px; font-size: 9px; }
  .hero-trust .trust-note:last-child { white-space: normal; }
  .art-note { display: none; }
  .floating-star { font-size: 19px; }.star-a { right: 17%; top: 9%; }.star-b { left: 17%; top: 24%; font-size: 23px; }
  .floating-card { right: 18px; bottom: 250px; padding: 8px 11px 8px 8px; border-radius: 13px; }
  .floating-card-book { width: 32px; height: 32px; border-radius: 10px; }
  .floating-card strong { font-size: 10px; }.floating-card small { font-size: 8px; }
  .why { padding: 37px 0 34px; }
  .why .section-heading { margin-bottom: 17px; }
  .why .section-heading h2 { font-size: 30px; }
  .why .section-heading > p { font-size: 10px; }
  .benefit-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .benefit-card, .benefit-card + .benefit-card { min-height: 0; padding: 15px 12px 17px; border-left: 1px solid #edf0f6; }
  .benefit-card:nth-child(odd) { border-left: 0; padding-left: 0; }
  .benefit-card:nth-child(n+3) { border-top: 1px solid #edf0f6; }
  .benefit-icon { width: 39px; height: 39px; margin-bottom: 9px; }
  .benefit-icon span { font-size: 20px; }
  .benefit-card h3 { min-height: 0; font-size: 12px; }
  .benefit-card p { font-size: 9px; }
  .categories { padding: 41px 0 45px; }
  .categories-heading { align-items: end; margin-bottom: 17px; }
  .categories-heading .eyebrow { font-size: 8px; }
  .categories-heading h2 { font-size: 27px; }
  .category-all { gap: 5px; font-size: 9px; }
  .category-rail { display: flex; gap: 11px; margin-right: -18px; padding: 0 18px 11px 0; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .category-card { flex: 0 0 43%; aspect-ratio: 1.12/1; border-radius: 16px; scroll-snap-align: start; }
  .category-card > span { left: 12px; bottom: 11px; font-size: 12px; }
  .how { padding-top: 56px; padding-bottom: 36px; }
  .heading-split { grid-template-columns: 1fr; gap: 11px; margin-bottom: 22px; }
  .section-heading h2, .listen-copy h2, .pricing-copy h2, .faq-title h2 { font-size: 35px; }
  .heading-split > p { justify-self: start; font-size: 10px; }
  .steps-line { grid-template-columns: 1fr; gap: 10px; margin-top: 17px; }
  .step-card, .step-card + .step-card { min-height: 0; padding: 15px; }
  .step-number { float: left; width: 34px; margin: 0 12px 15px 0; }
  .step-number > span { width: 28px; height: 28px; }
  .step-card h3 { padding-top: 3px; font-size: 14px; }
  .step-card p { clear: both; margin-bottom: 7px; }
  .step-script { font-size: 12px; }
  .builder { padding: 25px 0 58px; }
  .builder-container { width: calc(100% - 24px); padding: 22px 16px 18px; border-radius: 25px; }
  .builder-heading { margin-bottom: 19px; }
  .builder-heading .eyebrow { font-size: 8px; }
  .builder-heading h2 { font-size: 30px; }
  .builder-heading > p { font-size: 10px; }
  .builder-layout { grid-template-columns: 1fr; gap: 14px; }
  .builder-form-panel { order: 1; padding: 18px 15px; border-radius: 17px; }
  .builder-showcase { order: 2; padding: 14px 15px 12px; border-radius: 18px; }
  .showcase-topline { font-size: 7px; }
  .dragon-art { height: 180px; border-radius: 13px; }
  .showcase-quote { margin-top: -37px; margin-bottom: 13px; font-size: 17px; }
  .builder-progress-meta { font-size: 8px; }
  .form-step legend { font-size: 17px; }
  .step-intro { font-size: 9px; }
  .form-grid { grid-template-columns: 1fr; gap: 10px; }
  .field-group { font-size: 10px; }
  .field-group input, .field-group select, .field-group textarea { font-size: 12px; }
  .step-actions { flex-wrap: wrap; }
  .step-actions .button { min-height: 43px; padding-inline: 15px; }
  .required-note { width: 100%; order: -1; }
  .listen { padding: 55px 0; }
  .listen-grid { grid-template-columns: 1fr; gap: 24px; }
  .listen-copy h2 { margin: 8px 0 12px; }
  .listen-copy p { font-size: 10px; }
  .player-scene { padding: 15px; border-radius: 20px; }
  .audio-card { padding: 15px; }
  .book-cover { height: 120px; }
  .player-meta h3 { font-size: 19px; }
  .reviews { padding: 55px 0; }
  .review-grid { grid-template-columns: 1fr; gap: 12px; }
  .review-card { padding: 19px; }
  .pricing { padding: 58px 0; }
  .pricing-wrap { grid-template-columns: 1fr; gap: 23px; }
  .pricing-copy h2 { margin: 9px 0 12px; }
  .price-card { padding: 23px 20px; }
  .price-amount { font-size: 50px; }
  .faq { padding: 56px 0; }
  .faq-layout { grid-template-columns: 1fr; gap: 22px; }
  .faq-title h2 { margin-top: 9px; }
  .faq-item summary { font-size: 12px; }
  .site-footer::before { top: -18px; height: 36px; }
  .footer-main { grid-template-columns: 1fr; gap: 24px; padding-top: 52px; }
  .footer-links { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .footer-note { text-align: left; }
  .footer-bottom { flex-wrap: wrap; gap: 8px 16px; font-size: 9px; }
  .footer-bottom span:nth-child(2) { order: 3; width: 100%; }
  .order-dialog { width: min(450px,calc(100% - 30px)); padding: 30px 22px 22px; }
}
@media (max-width: 390px) {
  .header-cta { padding-inline: 10px; font-size: 9px; }
  .hero { min-height: min(745px,calc(100svh - 68px)); }
  .hero-copy { padding-top: 285px; }
  .hero h1 { font-size: 37px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .floating-card { bottom: 270px; }
  .category-card { flex-basis: 52%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 760px) {
  .hero .floating-card { top: 18%; right: 16px; bottom: auto; }
}
@media (max-width: 1040px) { .hero .art-note { display: none; } }


/* Доступные и функциональные состояния демо-плеера и предпросмотра заказа */
.progress-track[role="slider"] { cursor: pointer; touch-action: pan-y; }
.progress-track[role="slider"]:focus-visible { outline: 3px solid #7354e3; outline-offset: 5px; border-radius: 8px; }
.round-play[aria-busy="true"] { opacity: .72; cursor: progress; }
.sample-transcript { position: relative; z-index: 1; margin: 16px auto 0; max-width: 560px; color: #514b68; font-size: 11px; line-height: 1.75; }
.sample-transcript summary { width: fit-content; margin: 0 auto; color: #6046bd; font-size: 10px; font-weight: 800; cursor: pointer; }
.sample-transcript summary:focus-visible { outline: 3px solid #7354e3; outline-offset: 4px; border-radius: 5px; }
.sample-transcript p { margin: 9px 0 0; padding: 12px 15px; border: 1px solid rgba(104,78,180,.12); border-radius: 12px; color: #626d87; background: rgba(255,255,255,.74); }
.order-summary { margin: 16px 0; padding: 16px; border: 1px solid #e7e4f5; border-radius: 15px; background: #f7f6ff; text-align: left; }
.order-summary[hidden], #prepareOrder[hidden] { display: none !important; }
.order-summary h3 { margin: 0 0 10px; color: #172345; font: 900 16px/1.3 var(--display); }
.order-summary dl { display: grid; grid-template-columns: minmax(80px,.7fr) minmax(0,1.3fr); gap: 7px 14px; margin: 0; font-size: 10px; line-height: 1.5; }
.order-summary dt { color: #77809a; }
.order-summary dd { margin: 0; color: #263354; font-weight: 800; overflow-wrap: anywhere; }
.order-summary dd:last-child { color: #5232b6; }
.order-status { margin: 13px 0 0; padding-top: 10px; border-top: 1px solid #e7e4f5; color: #737d95; font-size: 9px; line-height: 1.6; }
.dialog-note { line-height: 1.7; }
@media (max-width: 390px) {
  .sample-transcript { font-size: 10px; }
  .order-summary { padding: 13px; }
  .order-summary dl { grid-template-columns: 70px minmax(0,1fr); gap: 7px 10px; }
}


/* Link to the full story library; the existing redesign remains unchanged above. */
.templates-library-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: #5a4c91;
  font-weight: 800;
  text-decoration: none;
}
.templates-library-link:hover { color: #3f356f; text-decoration: underline; text-underline-offset: 4px; }
.templates-library-link:focus-visible { outline: 3px solid rgba(118, 91, 179, .35); outline-offset: 4px; border-radius: 5px; }


/* Mobile hero composition: title above the illustration's face, copy below it. */
@media (max-width: 700px) {
  .hero-copy { padding-top: 64px; }
  .hero h1 { font-size: clamp(32px, 8.6vw, 36px); }
  .hero-description { margin-top: 255px; }
}
@media (max-width: 390px) {
  .hero-copy { padding-top: 38px; }
  .hero h1 { font-size: 32px; }
}
@media (max-width: 340px) {
  .hero-copy { padding-top: 30px; }
  .hero h1 { font-size: 29px; }
  .hero-description { margin-top: 278px; }
}
