/* Сайт Елены Стрельниковой. Стиль — как у обложки воркбука «Новая жизнь как проект». */
:root {
  --paper: #f2ece4;      /* фон обложки */
  --sand: #e6dacb;       /* плашки */
  --white: #fffcf8;      /* «бумага» страниц */
  --ink: #1d1816;        /* текст */
  --ink-2: #5f544e;      /* второстепенный */
  --wine: #8a1c2c;       /* круг на обложке */
  --wine-dark: #5e1220;
  --rule: #d6c7b5;
  --serif: "Lora", Georgia, serif;
  --sans: "PT Sans", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.125rem/1.6 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-underline-offset: .18em; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }

.wrap { width: min(74rem, 100% - 2rem); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.015em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); text-wrap: balance; }
h1, h3, .lead { text-wrap: balance; }
h3 { font-size: 1.35rem; letter-spacing: 0; }
.it { font-style: italic; font-weight: 400; color: var(--wine); }
.lead { font-size: 1.25rem; color: var(--ink-2); max-width: 36rem; }
p { margin: 0 0 1em; }

/* шапка */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(242,236,228,.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand { font-family: var(--serif); font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.1rem; margin-right: auto; }
.site-nav { display: flex; gap: 1.4rem; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 1rem; }
.site-nav a:hover { color: var(--wine); }

/* кнопки */
.btn { display: inline-flex; align-items: center; gap: .6em; font: 700 1.05rem/1 var(--sans); text-decoration: none;
  padding: 1em 1.6em; border-radius: 999px; background: var(--wine); color: #fff; border: 2px solid var(--wine); cursor: pointer; }
.btn:hover { background: var(--wine-dark); border-color: var(--wine-dark); }
.btn.line { background: transparent; color: var(--wine); }
.btn.line:hover { background: var(--white); }
.btn.small { padding: .7em 1.2em; font-size: .95rem; }
.btn[aria-disabled="true"] { background: transparent; border-color: var(--rule); color: var(--ink-2); cursor: default; }

/* первый экран */
.hero { padding: 3rem 0 4rem; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.kicker { font-size: 1rem; color: var(--ink-2); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4.3rem); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 1.2rem; }
.hero .kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--wine); font-weight: 700; }
.hero-note { font-size: .92rem; color: var(--ink-2); margin-top: 1rem; }
.hero h1 .it { display: block; text-transform: none; font-size: .42em; letter-spacing: 0; margin-top: .35em; }
.hero .promise { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.3; margin: 1.6rem 0 1rem; max-width: 30rem; }
.checks { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: 1rem; }
.checks li { display: flex; gap: .45em; align-items: center; }
.checks li::before { content: "✓"; width: 1.15em; height: 1.15em; border: 2px solid var(--wine); border-radius: 3px;
  color: var(--wine); font-weight: 700; font-size: .95em; line-height: 1; display: grid; place-items: center; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 2rem; }
.book3d { position: relative; justify-self: center; width: min(100%, 23rem); }
.book3d img { width: 100%; height: auto; aspect-ratio: 900 / 1273; object-fit: contain;
  border-radius: 3px 8px 8px 3px; transform: rotate(2.5deg);
  box-shadow: -6px 0 0 -2px #d9cbb9, 24px 30px 50px -18px rgba(40,20,15,.45); }
.book3d .stamp { position: absolute; left: -2.5rem; bottom: 2.2rem; width: 8.5rem; height: 8.5rem; border-radius: 50%;
  background: var(--wine); color: #fff; display: grid; place-items: center; text-align: center; font: italic 400 1.05rem/1.2 var(--serif);
  transform: rotate(-10deg); box-shadow: 0 10px 20px -8px rgba(60,10,20,.5); padding: 1rem; }

/* тёмный блок вопросов */
.questions { background: var(--ink); color: #f3ebe2; padding: 5.5rem 0; }
.questions .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; }
.questions h2 { color: #fff; }
.questions .lead { color: #c9bbb0; }
.qlist { list-style: none; margin: 0; padding: 0; font-family: var(--serif); font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.3; }
.qlist li { padding: .8rem 0; border-bottom: 1px solid #3c322e; }
.qlist li::before { content: "— "; color: #d0485c; }
.questions .answer { margin-top: 2rem; font-size: 1.15rem; color: #f3ebe2; max-width: 34rem; }

section { padding: 5.5rem 0; }

/* маршрут: три части и главы */
.route { display: grid; grid-template-columns: 8fr 2.6fr 3.4fr; gap: 0; margin-top: 3rem; }
.leg { border-top: 3px solid var(--wine); padding: 1.3rem 1.5rem 0 0; position: relative; }
.leg::before { content: ""; position: absolute; top: -.6rem; left: 0; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--paper); border: 3px solid var(--wine); }
.leg h3 { margin-bottom: .2rem; }
.leg .when { color: var(--ink-2); font-size: .98rem; margin-bottom: 1rem; }
.leg ol { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.leg li { font-size: 1rem; padding: .3rem 0; break-inside: avoid; display: flex; gap: .6rem; }
.leg li b { font-family: var(--serif); color: var(--wine); min-width: 1.6rem; }
.route .leg:not(:first-child) ol { columns: 1; }

/* устройство главы */
.anatomy { background: var(--white); }
.anatomy .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.parts { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.parts li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--rule); font-size: 1.02rem; }
.parts li b { font-family: var(--serif); }
.stack { position: relative; height: 34rem; }
.stack img { position: absolute; width: 62%; border: 1px solid #e3d8ca; box-shadow: 0 20px 40px -22px rgba(40,20,15,.45); }
.stack img:nth-child(1) { left: 0; top: 2rem; transform: rotate(-4deg); }
.stack img:nth-child(2) { right: 0; top: 0; transform: rotate(3deg); }

/* лента страниц */
.pages { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 1rem max(1rem, calc((100% - 74rem) / 2)) 2rem; scroll-padding-inline: max(1rem, calc((100% - 74rem) / 2)); margin-top: 2rem;
  scrollbar-color: var(--wine) transparent; }
.pages figure { flex: 0 0 min(19rem, 72vw); margin: 0; scroll-snap-align: start; }
.pages img { border: 1px solid #e0d4c5; box-shadow: 0 14px 30px -20px rgba(40,20,15,.5); background: #fff; }
.pages figcaption { font-size: .95rem; color: var(--ink-2); margin-top: .6rem; }
.pages-hint { color: var(--ink-2); font-size: .95rem; }

/* внутри */
.inside { background: var(--white); }
.inside-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: end; }
.inside-top h3 { font-size: 1.15rem; }
.tools-inline { color: var(--ink-2); margin: 0; }
.zoom { all: unset; display: block; cursor: zoom-in; }
.zoom:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(20,14,12,.85); }
.lightbox img { max-height: 92vh; width: auto; max-width: 94vw; display: block; background: #fff; }
.lightbox .close { position: fixed; top: .8rem; right: 1rem; font-size: 2.2rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }

/* отзывы */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; margin-top: 2rem; }
.review { margin: 0; background: var(--white); border-radius: 14px; padding: 1.6rem; }
.review blockquote { border: 0; padding: 0; margin: 0 0 1rem; font: 400 1.02rem/1.55 var(--sans); }
.review { display: flex; flex-direction: column; justify-content: space-between; }
.review { position: relative; }
.review.sample { outline: 2px dashed #e0b400; }
.review .badge { position: absolute; top: -.7rem; right: 1rem; background: #fff0b8; color: #5a4300; font: 700 .75rem var(--sans);
  text-transform: uppercase; letter-spacing: .06em; padding: .2rem .55rem; border-radius: 4px; }
.review figcaption { font-size: .92rem; color: var(--ink-2); }
.fitsec { background: var(--sand); }

/* подарок */
.gift { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 2.5rem; padding: 1.6rem 1.8rem;
  border: 2px dashed var(--wine); border-radius: 14px; }
.gift .btn { white-space: nowrap; flex-shrink: 0; }
.gift h3 { margin-bottom: .3rem; } .gift p { margin: 0; color: var(--ink-2); }

/* инструменты */
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.toollist { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.toollist li { counter-increment: t; display: flex; gap: 1rem; padding: .85rem 0; border-top: 1px solid var(--rule); }
.toollist li::before { content: counter(t, decimal-leading-zero); font: 700 1.2rem/1.3 var(--serif); color: var(--wine); min-width: 2rem; }

/* автор */
.author { background: var(--sand); }
.author .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: center; }
.author img { border-radius: 14px; }
.cities { list-style: none; padding: 0; margin: 1.8rem 0; display: flex; flex-wrap: wrap; align-items: center; font-family: var(--serif); font-size: 1.05rem; }
.cities li { display: flex; align-items: flex-start; }
.cities li span { display: flex; flex-direction: column; }
.cities { row-gap: .7rem; }
.cities li:not(:last-child)::after { content: ""; width: 1.2rem; border-top: 2px dotted var(--wine); margin: .8rem .45rem 0; }
.cities li:last-child { color: var(--wine); font-weight: 700; }
.cities small { display: block; font: .8rem var(--sans); color: var(--ink-2); }
blockquote { margin: 1.5rem 0 0; padding-left: 1.2rem; border-left: 3px solid var(--wine); font: italic 1.25rem/1.45 var(--serif); }

/* для кого */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2rem; }
.fit ul { padding-left: 1.2rem; margin: 0; }
.fit li { margin-bottom: .6rem; }
.fit .no { color: var(--ink-2); }

/* посадочные талоны с ценами */
.tickets { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2.5rem; }
.ticket { display: grid; grid-template-columns: 1fr 8.5rem; background: var(--white); border-radius: 14px; overflow: hidden;
  box-shadow: 0 22px 44px -26px rgba(40,20,15,.45); }
.ticket .main { padding: 0 1.8rem 1.8rem; }
.ticket .band { background: var(--wine); color: #fff; margin: 0 -1.8rem 1.4rem; padding: .55rem 1.8rem; font-size: .9rem; letter-spacing: .04em; }
.ticket.best .band { background: var(--ink); }
.ticket h3 { font-size: 1.6rem; margin-bottom: .3rem; }
.route-line { display: flex; justify-content: space-between; font-size: .9rem; color: var(--ink-2); border-bottom: 2px dotted var(--rule); padding-bottom: .7rem; margin: 1rem 0; }
.route-line b { display: block; color: var(--ink); font: 700 1.05rem var(--serif); }
.ticket ul { padding-left: 1.1rem; margin: 0 0 1.2rem; font-size: 1rem; }
.ticket .stub { border-left: 2px dashed var(--rule); padding: 1.8rem 1rem; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; position: relative; }
.ticket .stub::before, .ticket .stub::after { content: ""; position: absolute; left: -.8rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--paper); }
.ticket .stub::before { top: -.75rem; } .ticket .stub::after { bottom: -.75rem; }
.price { font: 700 1.9rem/1.1 var(--serif); }
.price s { display: block; font: 400 1rem var(--sans); color: var(--ink-2); }
.price small { display: block; font: .85rem var(--sans); color: var(--ink-2); margin-top: .3rem; }
.barcode { width: 100%; height: 3.2rem; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px); opacity: .85; }
.todo { background: #fff0b8; color: #5a4300; padding: 0 .25em; border-radius: 3px; font-style: normal; }

/* колода — дополнение */
.deckblock .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.deckblock img { border-radius: 14px; }

/* вопросы-ответы */
.faq { max-width: 50rem; }
.faq details { border-top: 1px solid var(--rule); padding: 1.1rem 0; }
.faq summary { font: 700 1.2rem/1.35 var(--serif); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--wine); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: .8rem 0 0; color: var(--ink-2); }

.final { background: var(--wine); color: #fff; text-align: center; }
.final h2 { color: #fff; max-width: 52rem; margin-inline: auto; }
.final p { color: #f1d9dc; max-width: 34rem; margin-inline: auto; }
.final .btn { background: #fff; color: var(--wine); border-color: #fff; }

/* подвал */
.site-foot { padding: 3rem 0 6rem; font-size: .95rem; color: var(--ink-2); }
.site-foot .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
.site-foot h4 { color: var(--ink); margin: 0 0 .5rem; font: 700 1rem var(--serif); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .35rem; }
.disclaimer { grid-column: 1 / -1; font-size: .85rem; border-top: 1px solid var(--rule); padding-top: 1.2rem; }

/* кнопка покупки, приклеенная к низу экрана на телефоне */
.buybar { display: none; }

/* внутренние страницы */
.page-head { padding: 2rem 0 0; font-size: .95rem; color: var(--ink-2); }
.page-head a { color: var(--ink-2); }
.doc { max-width: 46rem; }
.doc h1 { font-size: 2.4rem; } .doc h2 { font-size: 1.45rem; margin-top: 2rem; }
.note { border-left: 3px solid var(--wine); padding: .3rem 0 .3rem 1rem; color: var(--ink-2); font-style: italic; }

@media (max-width: 900px) {
  body { font-size: 1.05rem; }
  .site-nav { display: none; }
  .hero { padding-top: 1.5rem; }
  .hero .wrap, .questions .wrap, .anatomy .wrap, .tools, .author .wrap, .fit, .inside-top, .reviews, .tickets, .deckblock .wrap { grid-template-columns: 1fr; }
  .book3d { width: min(52%, 12rem); order: -1; margin: 0 auto .5rem; }
  .gift { flex-direction: column; align-items: flex-start; }
  .book3d .stamp { left: -1.2rem; width: 6.5rem; height: 6.5rem; font-size: .9rem; }
  .route { grid-template-columns: 1fr; gap: 2.2rem; }
  .leg ol { columns: 1; }
  .stack { height: 24rem; }
  .parts li { grid-template-columns: 1fr; gap: .2rem; }
  section, .questions { padding: 3.8rem 0; }
  .ticket { grid-template-columns: 1fr; }
  .ticket .stub { border-left: 0; border-top: 2px dashed var(--rule); flex-direction: row; gap: 1rem; padding: 1.2rem 1.8rem; }
  .ticket .stub::before, .ticket .stub::after { display: none; }
  .barcode { width: 6rem; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .buybar { display: flex; position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 30; justify-content: space-between; align-items: center;
    gap: 1rem; background: var(--ink); color: #fff; border-radius: 999px; padding: .5rem .5rem .5rem 1.2rem; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); font-size: .95rem; }
  .buybar .btn { padding: .75em 1.2em; font-size: .95rem; }
}

/* колода: универсальные вопросы */
.parts4 small { display: block; font: 1rem/1.45 var(--sans); color: #b9aba0; margin-top: .3rem; }
.same-q { background: var(--white); border-radius: 14px; padding: 2rem; margin-top: 2rem; }
.same-q .q { font: italic 1.6rem/1.3 var(--serif); color: var(--wine); margin-bottom: 1.4rem; }
.same-q dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 2.5rem; margin: 0; }
.same-q dt { font: 700 1.05rem var(--serif); margin-bottom: .2rem; }
.same-q dd { margin: 0; color: var(--ink-2); }
.hint-line { margin-top: 1.5rem; font-size: 1.1rem; max-width: 44rem; }
@media (max-width: 900px) { .same-q dl { grid-template-columns: 1fr; } .same-q { padding: 1.4rem; } }

/* автор: цифры */
.author .kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--wine); font-weight: 700; }
.stats { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stats li { border-top: 2px solid var(--wine); padding-top: .7rem; font-size: .92rem; color: var(--ink-2); line-height: 1.35; }
.stats b { display: block; font: 700 1.9rem/1.1 var(--serif); color: var(--ink); margin-bottom: .25rem; }
.author .wrap { align-items: start; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr 1fr; gap: .7rem; } .stats b { font-size: 1.4rem; } .stats li { font-size: .82rem; } }

.roles { font-size: 1rem; color: var(--ink-2); margin: -.2rem 0 0; max-width: 40rem; }
@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr; gap: .2rem; }
  .stats li { display: flex; align-items: baseline; gap: .7rem; border-top: 1px solid var(--rule); padding: .55rem 0; font-size: .92rem; }
  .stats b { font-size: 1.3rem; margin: 0; min-width: 8.2rem; white-space: nowrap; }
  .author .cities { display: none; }
}

/* автор: четыре переезда как остановки маршрута */
.moves-intro { font: italic 1.3rem/1.4 var(--serif); margin: 0 0 1.4rem; }
.moves { list-style: none; padding: 0 0 0 1.6rem; margin: 0; border-left: 2px dotted var(--wine); }
.moves > li { position: relative; padding-bottom: 1.6rem; }
.moves > li::before { content: ""; position: absolute; left: calc(-1.6rem - 8px); top: .35rem; width: 14px; height: 14px; border-radius: 50%;
  background: var(--sand); border: 3px solid var(--wine); }
.moves > li:last-child::before { background: var(--wine); }
.moves h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.moves h3 span { display: block; font: 700 .78rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--wine); margin-bottom: .2rem; }
.moves p { margin-bottom: .7rem; }
.did { margin: 0 0 .9rem; padding-left: 1.2rem; }
.did li { margin-bottom: .2rem; }
.did li::marker { color: var(--wine); }
.moves-final { font: 700 1.2rem/1.45 var(--serif); border-left: 3px solid var(--wine); padding-left: 1.2rem; margin: .4rem 0 0; }
@media (min-width: 901px) {
  .did { columns: 2; column-gap: 2rem; }
  .did li { break-inside: avoid; }
  .did li:last-child { column-span: all; margin-top: .2rem; }
}

.author-page { padding-top: 2rem; }
.author-page h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
@media (min-width: 901px) { .author-page img { position: sticky; top: 6rem; } }

/* списки в «Не советы» */
.inside-top { align-items: start; }
.inside-top h3 { font-size: 1.15rem; margin-top: .4rem; }
.chk { list-style: none; padding: 0; margin: 0; }
.chk li { display: flex; gap: .7rem; padding: .7rem 0; border-top: 1px solid var(--rule); font-size: 1.05rem; }
.chk li::before { content: "✓"; color: var(--wine); font-weight: 700; }
/* цены колоды */
.deal { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1rem; margin-top: 1.6rem; }
.deal > div { background: var(--white); border-radius: 12px; padding: .9rem 1.1rem; }
.deal > div:last-child { outline: 2px solid var(--wine); }
.deal span { display: block; font-size: .9rem; color: var(--ink-2); }
.deal b { font: 700 1.5rem/1.2 var(--serif); }
.deal s { font: 400 1rem var(--sans); color: var(--ink-2); }
.deal small { display: block; font-size: .85rem; color: var(--wine); margin-top: .15rem; }
.deckonly { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-top: 2rem; padding: 1.1rem 1.6rem; background: var(--white); border-radius: 14px; }
.deckonly p { margin: 0; } .deckonly s { color: var(--ink-2); }
@media (max-width: 900px) { .deal { grid-template-columns: 1fr; } .deckonly { flex-direction: column; align-items: flex-start; } }
.deckonly .btn { white-space: nowrap; flex-shrink: 0; }

/* три страницы вместо ленты */
.peek { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.2rem; max-width: 50rem; margin-left: max(1rem, calc((100% - 74rem) / 2)); }
.peek figure { margin: 0; }
.peek img { border: 1px solid #e0d4c5; box-shadow: 0 14px 30px -20px rgba(40,20,15,.5); background: #fff; }
.peek figcaption { font-size: .95rem; color: var(--ink-2); margin-top: .6rem; }
.pages-hint { margin-top: 1rem; }
/* подарки */
.gifts { margin-top: 3rem; }
.gifts-title { font-size: 1.6rem; }
.gift-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.2rem; }
.giftcard { display: grid; grid-template-columns: 9.5rem 1fr; gap: 1.3rem; align-items: start; border: 2px dashed var(--wine); border-radius: 14px; padding: 1.4rem; }
.giftcard img { border-radius: 6px; box-shadow: 0 12px 24px -16px rgba(40,20,15,.5); background: #fff; }
.giftcard .tag { font: 700 .78rem var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--wine); margin-bottom: .3rem; }
.giftcard h3 { font-size: 1.3rem; margin-bottom: .4rem; }
.giftcard p { color: var(--ink-2); font-size: .98rem; }
.giftcard .btn { padding: .75em 1.2em; font-size: .95rem; }
@media (max-width: 900px) {
  .peek { grid-template-columns: 1fr 1fr; gap: 1rem; } .peek figure:last-child { display: none; }
  .gift-cards { grid-template-columns: 1fr; } .giftcard { grid-template-columns: 6.5rem 1fr; padding: 1.1rem; gap: 1rem; }
}
@media (max-width: 900px) {
  .giftcard { grid-template-columns: 1fr; }
  .giftcard img { width: 7.5rem; }
  .giftcard .btn { white-space: nowrap; }
}

.giftcard.big { grid-template-columns: 12rem 1fr; padding: 1.8rem; gap: 2rem; }
.giftcard.big h3 { font-size: 1.55rem; }
.giftcard .also { margin: 1.1rem 0 0; font-size: .95rem; }
/* сравнение бот / колода */
.compare { background: var(--white); }
.cmp-wrap { overflow-x: auto; margin-top: 2rem; }
.cmp { width: 100%; border-collapse: collapse; min-width: 34rem; font-size: 1rem; }
.cmp th, .cmp td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cmp thead th { font: 700 1.05rem var(--serif); border-bottom: 2px solid var(--ink); }
.cmp tbody th { font-weight: 700; color: var(--ink); width: 26%; }
.cmp td { color: var(--ink-2); }
.cmp .hl { background: #f6ece6; color: var(--ink); }
.cmp thead .hl { background: var(--wine); color: #fff; border-radius: 10px 10px 0 0; }
@media (max-width: 900px) { .giftcard.big { grid-template-columns: 1fr; padding: 1.2rem; } .giftcard.big img { width: 8rem; } .cmp { font-size: .92rem; } }
@media (max-width: 900px) {
  .cmp { min-width: 0; font-size: .82rem; }
  .cmp th, .cmp td { padding: .6rem .45rem; }
  .cmp tbody th { width: 28%; }
  .cmp thead th { font-size: .88rem; }
}

/* первый экран: название продукта крупно, обещание вторым */
.hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -.03em; margin: 0 0 .9rem; }
.hero h1 .it { display: inline; font-size: 1em; color: var(--wine); }
.hero .promise { font: 400 clamp(1.3rem, 2.2vw, 1.75rem)/1.3 var(--serif); color: var(--ink); margin: 0 0 1rem; max-width: 32rem; text-wrap: balance; }
.hero .lead { max-width: 32rem; margin-bottom: 0; }
.hero .actions { margin-top: 1.8rem; }
.hero-note s { color: var(--ink-2); }
.hero-author { margin: .6rem 0 0; font-size: .95rem; }
.hero-author a { color: var(--wine); text-decoration: none; border-bottom: 1px solid rgba(138,28,44,.3); }
@media (max-width: 900px) { .hero h1 { font-size: 2.6rem; } .hero .actions .btn { width: 100%; justify-content: center; } }

.hero .product { font: 700 1.15rem/1.3 var(--serif); color: var(--wine); margin: 0 0 .8rem; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); line-height: 1.05; text-wrap: balance; margin-bottom: 1.1rem; }
@media (max-width: 900px) { .hero h1 { font-size: 2.15rem; } }

/* заголовок страницы колоды */
.hero h1.deck-title { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; margin-bottom: 1rem; }
.hero h1.deck-title .sub { display: block; font: italic 400 .42em/1.25 var(--serif); color: var(--wine); letter-spacing: 0; margin-top: .5em; }
@media (max-width: 900px) { .hero h1.deck-title { font-size: 2.4rem; } .hero h1.deck-title .sub { font-size: .55em; } }

.story-note { margin: 1.4rem 0 0; padding: 1rem 1.2rem; background: var(--paper); border-left: 3px solid var(--wine); border-radius: 0 10px 10px 0; font-size: 1rem; color: var(--ink-2); }
.story-note b { display: block; font-family: var(--serif); color: var(--ink); margin-bottom: .25rem; }

/* защита картинок от сохранения долгим нажатием и перетаскиванием */
.pages img, .peek img, .deckblock img, .hero img, .author img, .giftcard img, .lightbox img {
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
}
.pages figure { position: relative; }
.pages figure::after { content: ""; position: absolute; inset: 0; }

/* интрига: маршрут в три этапа, инструменты, тизер */
.route.route3 { grid-template-columns: 1.7fr 1fr 1fr; }
.route.route3 .leg ol { columns: 1; }
.route.route3 .leg li b { min-width: 1.2rem; }
.tools-more { margin: .9rem 0 0; padding-top: .85rem; border-top: 1px solid var(--rule); font-family: var(--serif); font-style: italic; color: var(--wine); font-size: 1.05rem; }
@media (max-width: 900px) { .route.route3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .peek figure:last-child { display: block; } .peek figure:nth-child(2) { display: none; } }

.result { margin-top: 2.8rem; max-width: 40rem; background: var(--sheet, #fffcf8); border: 1px solid var(--rule); border-radius: 14px; padding: 1.4rem 1.6rem; }
.result h3 { margin: 0 0 .6rem; }
.result .chk li { font-size: 1.05rem; }

.result { max-width: none; padding: 1.8rem 1.8rem 1.6rem; }
.result h3 { font-size: 1.5rem; }
.result-lead { color: var(--ink-2); margin: 0 0 1.3rem; font-size: 1.05rem; }
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem 1.4rem; }
.result-grid div { border-top: 3px solid var(--wine); padding-top: .8rem; font-size: .98rem; line-height: 1.5; color: var(--ink-2); }
.result-grid b { display: block; font-family: var(--serif); font-size: 1.12rem; color: var(--ink); margin-bottom: .3rem; }
.result-final { margin: 1.6rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--wine); }
@media (max-width: 1000px) { .result-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .result-grid { grid-template-columns: 1fr; } .result { padding: 1.3rem 1.1rem; } }

.resultsec { padding: 4.5rem 0; }
.resultsec .result { margin-top: 0; }
@media (max-width: 560px) { .resultsec { padding: 3rem 0; } }

.resultsec { padding-bottom: 0; }
