/* ДивоКадр — редизайн 26.09.2026 за референсом власника (журнал подорожей:
   папір, рвані краї, вузька антиква капсом, рукописні підписи).
   Підпис сайту — «шлях дорослішання»: пунктирна стежка з червоними точками
   веде від розділу до розділу, а бліді рукописні цифри за фото — це вік. */

:root {
  --paper: #FBFAF6;
  --paper-2: #F2EEE6;
  --ink: #24231F;
  --stone: #77716A;
  --mist: #E6E1D8;
  --route: #B53B3B;
  --moss: #5E6B4E;
  --display: 'Oranienbaum', 'Times New Roman', serif;
  --script: 'Marck Script', 'Segoe Script', cursive;
  --body: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .32  0 0 0 0 .28  0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: hidden;
}

a { color: var(--route); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--route); outline-offset: 3px; }
img { max-width: 100%; display: block; }
p { margin: 0 0 14px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

h1, h2, .display {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  letter-spacing: .03em; line-height: 1.04; margin: 0;
}
h2 { font-size: clamp(26px, 3.1vw, 38px); margin-bottom: 16px; }
h3 { font-size: 17px; margin: 18px 0 6px; font-weight: 700; }
.script { font-family: var(--script); font-weight: 400; }
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--stone);
}

/* ── кнопки ───────────────────────────────────────────── */
.btn, .btn-line {
  display: inline-block; font: 700 13px/1 var(--body); letter-spacing: .16em; text-transform: uppercase;
  text-decoration: none; padding: 17px 30px; border-radius: 2px; transition: background .2s, color .2s;
  white-space: nowrap;
}
.btn { background: var(--route); color: var(--paper); border: 1.5px solid var(--route); }
.btn:hover { background: #9B2F2F; border-color: #9B2F2F; }
.btn-line { color: var(--route); border: 1.5px solid var(--route); padding: 12px 20px; background: transparent; }
.btn-line:hover { background: var(--route); color: var(--paper); }

/* ── шапка поверх фото ────────────────────────────────── */
header.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 36px; color: #fff;
}
.logo { font-family: var(--display); font-size: 26px; letter-spacing: .06em; text-transform: uppercase; color: #fff; text-decoration: none; line-height: 1; }
.logo span { font-family: var(--script); text-transform: none; font-size: 22px; letter-spacing: 0; margin-left: 2px; opacity: .92; }
header.top nav { display: flex; gap: 26px; margin-left: auto; }
header.top nav a { color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .88; }
header.top nav a:hover { opacity: 1; text-decoration: underline; }
header.top .btn-line { color: #fff; border-color: rgba(255,255,255,.75); }
header.top .btn-line:hover { background: #fff; color: var(--ink); }

/* ── перший екран: фото на всю ширину, рваний край ───── */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: 72% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(22,20,17,.62) 0%, rgba(22,20,17,.34) 42%, rgba(22,20,17,0) 68%),
              linear-gradient(0deg, rgba(22,20,17,.25) 0%, rgba(22,20,17,0) 30%);
}
.hero-in { position: relative; z-index: 2; width: 100%; padding-top: 90px; padding-bottom: 110px; }
.hero h1 { font-size: clamp(36px, 5vw, 70px); max-width: 15ch; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero .script { display: block; font-size: clamp(24px, 2.6vw, 36px); margin-top: 14px; color: #fff; }
.hero .script::after {
  content: ""; display: block; width: 180px; height: 16px; margin-top: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 16'%3E%3Cpath d='M2 10 C 40 2, 80 14, 120 7 S 165 4, 176 9 M166 3 L176 9 L167 14' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}
.hero .crumbs { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; opacity: .85; }
.hero .crumbs a { color: #fff; text-decoration: none; }
.hero .hero-cta { margin-top: 30px; }
.torn { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; width: 100%; height: 70px; display: block; }
.torn path { fill: var(--paper); }

/* ── вступ ────────────────────────────────────────────── */
.intro { text-align: center; padding: 30px 0 20px; }
.intro .lead { font-size: 19px; line-height: 1.6; max-width: 62ch; margin: 0 auto 10px; }
.intro .ai-note { color: var(--stone); max-width: 58ch; margin: 0 auto 26px; font-size: 15.5px; }
.deal { display: flex; justify-content: center; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 8px; }
.stamp { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--display); font-size: 42px; line-height: 1; }
.stamp s { font-size: 22px; color: var(--stone); }
.stamp small { font-family: var(--body); font-size: 13px; color: var(--stone); letter-spacing: .08em; text-transform: uppercase; }
.promo-note { color: var(--stone); font-size: 13.5px; margin-top: 14px; }

/* ── маршрут розділів ─────────────────────────────────── */
.route { position: relative; padding: 30px 0 10px; }
.chapter { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.chapter.flip .ch-media { order: 2; }
.chapter > *, .prices > * { min-width: 0; }
.chapter.text-only { grid-template-columns: 1fr; max-width: 760px; margin: 0 auto; }
.ch-media { position: relative; }
.ch-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%;
  -webkit-mask: url(/assets/ui/brush.svg) center / 100% 100% no-repeat; mask: url(/assets/ui/brush.svg) center / 100% 100% no-repeat;
}
.ch-age {
  position: absolute; z-index: -1; font-family: var(--script); font-size: clamp(110px, 13vw, 190px); line-height: 1;
  color: rgba(36, 35, 31, .075); right: -6%; bottom: -18%; white-space: nowrap; pointer-events: none;
}
.chapter.flip .ch-age { right: auto; left: -6%; }
.ch-text { position: relative; }
.ch-text h2 { position: relative; padding-left: 26px; }
.ch-text h2::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 11px; height: 11px; border-radius: 50%;
  background: var(--route); box-shadow: 0 0 0 5px rgba(181, 59, 59, .14);
}
.ch-text p, .ch-text li { color: #3E3C37; }
.ch-more { margin-top: 18px; display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--route); padding-bottom: 4px; }
.trail { display: block; width: 100%; height: 120px; margin: 6px 0; overflow: visible; }
.trail path { fill: none; stroke: #A9A298; stroke-width: 1.6; stroke-dasharray: 2 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trail circle { fill: var(--route); }

details.more { margin-top: 8px; }
details.more > summary { cursor: pointer; list-style: none; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--route); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: " +"; }
details.more[open] > summary::after { content: " −"; }
details.more[open] > summary { margin-bottom: 12px; }

ul.plain, ol.plain { list-style: none; padding: 0; margin: 0 0 14px; }
ul.plain li, ol.plain li { position: relative; padding-left: 22px; margin-bottom: 9px; }
ul.plain li::before, ol.plain li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 10px; height: 1.5px; background: var(--route); }
ol.steps { list-style: none; padding: 0; margin: 0 0 14px; counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 14px; min-height: 30px; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: -8px; font-family: var(--script); font-size: 34px; color: var(--route); line-height: 1; }
.answer-box { border-left: 3px solid var(--route); background: var(--paper-2); padding: 16px 20px; margin: 10px 0 16px; }
.answer-box p:last-child { margin: 0; }
.scroll-x { overflow-x: auto; }
table.gifts { width: 100%; border-collapse: collapse; font-size: 15px; margin: 6px 0 16px; }
table.gifts th { text-align: left; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); font-weight: 700; padding: 10px 12px; border-bottom: 1.5px solid var(--ink); }
table.gifts td { padding: 12px; border-bottom: 1px solid var(--mist); vertical-align: top; }
table.compare td:first-child { font-weight: 700; }

/* ── стрічка кадрів ───────────────────────────────────── */
.strip { padding: 40px 0 10px; }
.strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.strip-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 23%); gap: 22px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; }
.strip-row figure { margin: 0; scroll-snap-align: start; }
.strip-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; -webkit-mask: url(/assets/ui/brush-tall.svg) center / 100% 100% no-repeat; mask: url(/assets/ui/brush-tall.svg) center / 100% 100% no-repeat; }
.strip-row figcaption { font-family: var(--script); font-size: 21px; margin-top: 6px; color: var(--ink); }
.strip-note { color: var(--stone); font-size: 13.5px; }

/* ── як це працює (головна) ───────────────────────────── */
.how { padding: 60px 0 20px; text-align: center; }
.how ol { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; counter-reset: h; position: relative; }
.how ol::before { content: ""; position: absolute; top: 22px; left: 10%; right: 10%; border-top: 1.6px dashed #A9A298; }
.how li { counter-increment: h; position: relative; padding-top: 58px; font-size: 15px; color: #3E3C37; }
.how li::before {
  content: counter(h); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--route);
  font-family: var(--script); font-size: 26px; line-height: 44px; color: var(--route);
}

/* ── ціни (головна) ───────────────────────────────────── */
.prices { padding: 50px 0 10px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.prices .big-price { font-family: var(--display); font-size: clamp(64px, 9vw, 120px); line-height: .9; }
.prices .big-price small { display: block; font-family: var(--script); font-size: 30px; text-transform: none; color: var(--stone); margin-top: 8px; }

/* ── відповіді одним рядком (головна) ─────────────────── */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 34px auto 0; max-width: 980px; text-align: left; }
.notes div { border-top: 1.5px solid var(--ink); padding-top: 12px; }
.notes b { display: block; font-family: var(--display); font-weight: 400; font-size: 19px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.notes span { color: var(--stone); font-size: 14.5px; }

/* ── питання ──────────────────────────────────────────── */
.faq { padding: 56px 0 10px; }
.faq details { border-bottom: 1px solid var(--mist); padding: 16px 0; }
.faq summary { cursor: pointer; list-style: none; font-size: 17px; font-weight: 700; display: flex; justify-content: space-between; gap: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--script); font-size: 28px; line-height: .8; color: var(--route); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: #3E3C37; max-width: 70ch; }

/* ── фінальний заклик ─────────────────────────────────── */
.final { text-align: center; padding: 70px 0 40px; }
.final .script { font-size: clamp(34px, 4.4vw, 56px); display: block; margin-bottom: 22px; }

/* ── куди далі ────────────────────────────────────────── */
.next { padding: 40px 0 60px; }
.next-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 26px 22px; margin-top: 20px; }
.next-card { text-decoration: none; color: var(--ink); display: block; }
.next-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 72% 40%; -webkit-mask: url(/assets/ui/brush.svg) center / 100% 100% no-repeat; mask: url(/assets/ui/brush.svg) center / 100% 100% no-repeat; transition: transform .3s; }
.next-card:hover img { transform: scale(1.02); }
.next-card b { display: block; font-family: var(--display); font-weight: 400; font-size: 19px; text-transform: uppercase; letter-spacing: .04em; margin-top: 10px; line-height: 1.1; }
.next-card span { font-size: 13.5px; color: var(--stone); }

.adults { text-align: center; color: var(--stone); padding: 10px 0 30px; }

/* ── підвал ───────────────────────────────────────────── */
footer.site { position: relative; background: var(--ink); color: #D8D3CA; padding: 90px 0 40px; margin-top: 30px; font-size: 14px; }
footer.site .torn-top { position: absolute; top: -1px; left: 0; width: 100%; height: 60px; transform: scaleY(-1); }
footer.site .torn-top path { fill: var(--paper); }
footer.site a { color: #F2EDE4; }
.foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; }
.foot .logo { font-size: 30px; }
.foot h4 { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: #A59F95; margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 7px; }
.foot-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid #3A3833; color: #A59F95; font-size: 13px; }

/* ── мобільний ────────────────────────────────────────── */
@media (max-width: 900px) {
  header.top { padding: 16px 18px; }
  header.top nav { display: none; }
  .hero { min-height: 78vh; align-items: flex-end; text-align: center; }
  .hero::before { background: linear-gradient(0deg, rgba(22,20,17,.72) 0%, rgba(22,20,17,.35) 45%, rgba(22,20,17,.1) 100%); }
  .hero picture img { object-position: 68% 30%; }
  .hero h1 { margin: 0 auto; }
  .hero .script::after { margin: 4px auto 0; }
  .hero .hero-in { padding: 110px 18px 96px; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .hero .script { font-size: 24px; }
  .hero .hero-cta { margin-top: 20px; }
  header.top .btn-line { font-size: 10.5px; letter-spacing: .1em; padding: 9px 12px; }
  .logo { font-size: 22px; }
  .logo span { font-size: 19px; }
  .intro .lead { font-size: 17px; }
  .torn { height: 44px; }
  .chapter, .chapter.flip { grid-template-columns: 1fr; gap: 16px; }
  .chapter.flip .ch-media { order: 0; }
  .ch-age { font-size: 120px; right: 4%; bottom: -10%; left: auto !important; }
  .trail { height: 60px; }
  .how ol { grid-template-columns: 1fr; text-align: left; }
  .how ol::before { display: none; }
  .how li { padding: 0 0 0 64px; min-height: 48px; }
  .how li::before { left: 0; transform: none; }
  .prices { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .notes { grid-template-columns: 1fr; gap: 16px; }
  .foot { grid-template-columns: 1fr; }
  .strip-row { grid-auto-columns: 62%; }
  .wrap, .narrow { padding: 0 18px; }
}
