/* Лендінг «Claude без паніки». Бренд: білий, #111111, червоний #E1251B; Oswald + PT Serif. */
:root {
  --ink: #111111;
  --red: #E1251B;
  --paper: #ffffff;
  --sheet: #f1f1f1;
  --grey: #5f5f5f;
  --line: #dcdcdc;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --text: "PT Serif", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--ink); font: 19px/1.6 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, .btn, .stat b, .letter { font-family: var(--display); font-weight: 700; }
h2 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.02; margin-bottom: 24px; max-width: 16ch; }
h3 { font-size: 26px; line-height: 1.15; font-weight: 600; }
p + p { margin-top: 12px; }
.muted { color: var(--grey); }
section { padding: clamp(64px, 9vw, 112px) 0; }

/* Кнопка */
.btn {
  display: inline-flex; align-items: center; min-height: 56px;
  background: var(--red); color: #fff; text-decoration: none;
  font-size: 22px; font-weight: 600; padding: 12px 34px;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--ink); }
.btn.dark { background: var(--ink); }
.btn.dark:hover { background: var(--red); }
.btn-note { font-size: 15px; color: var(--grey); margin-top: 12px; }

/* Шапка */
.top { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-family: var(--display); font-size: 18px; font-weight: 600; }
.top a { text-decoration: none; }
.top .price-link { border-bottom: 3px solid var(--red); }

/* Рваний край — як у каруселях і Reels */
.torn-top { clip-path: polygon(0 14px, 4% 4px, 9% 12px, 15% 2px, 22% 11px, 28% 3px, 35% 13px, 41% 5px, 48% 12px, 55% 2px, 61% 10px, 68% 4px, 74% 13px, 81% 3px, 87% 11px, 93% 2px, 100% 9px, 100% 100%, 0 100%); }
.torn-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 94% 100%, 88% calc(100% - 12px), 81% calc(100% - 3px), 74% calc(100% - 13px), 67% calc(100% - 2px), 60% calc(100% - 11px), 53% calc(100% - 4px), 46% calc(100% - 13px), 39% calc(100% - 3px), 32% calc(100% - 12px), 25% calc(100% - 2px), 18% calc(100% - 11px), 11% calc(100% - 4px), 5% calc(100% - 12px), 0 calc(100% - 3px)); }

/* 1. Перший екран */
.hero { padding: 24px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(64px, 10.5vw, 148px); line-height: .9; letter-spacing: -.01em; text-transform: uppercase; }
.hero h1 .strike { position: relative; display: inline-block; color: var(--red); }
.hero .lead { font-size: clamp(21px, 2.3vw, 26px); line-height: 1.45; max-width: 30ch; margin: 28px 0 32px; }
.hero-photo { position: relative; }
.hero-photo .frame { background: var(--sheet); aspect-ratio: 4 / 5; transform: rotate(1.5deg); box-shadow: 0 18px 40px -18px rgba(17,17,17,.45); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-photo .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .tag { position: absolute; left: -18px; bottom: 28px; background: var(--ink); color: #fff; font-family: var(--display); font-size: 22px; font-weight: 600; padding: 10px 18px; transform: rotate(-3deg); }
.hero-photo .tag b { color: var(--red); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { max-width: 360px; margin-left: 12px; }
}

/* 2. Цифри */
.stats { background: var(--ink); color: #fff; padding: 56px 0 64px; }
.stat-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.stat b { display: block; font-size: clamp(56px, 7vw, 96px); line-height: .95; }
.stat b.red { color: var(--red); }
.stat span { display: block; margin-top: 8px; font-size: 17px; color: #cfcfcf; max-width: 16ch; }
@media (max-width: 860px) { .stat-row { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; } .stat:last-child { grid-column: 1 / -1; } }

/* 3. Біль */
.pain-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.pain-list { list-style: none; }
.pain-list li { font-size: 22px; line-height: 1.4; padding: 18px 0; border-top: 1px solid var(--line); }
.pain-list li:last-child { border-bottom: 1px solid var(--line); }
.pain-answer { margin-top: 28px; font-size: 22px; }
.pain-answer mark { background: linear-gradient(transparent 55%, rgba(225,37,27,.28) 55%); color: inherit; padding: 0 2px; }
@media (max-width: 860px) { .pain-grid { grid-template-columns: 1fr; gap: 8px; } }

/* 4. Живий приклад */
.demo { background: var(--sheet); }
.demo-intro { max-width: 640px; margin-bottom: 40px; font-size: 21px; }
.chat { display: grid; gap: 22px; max-width: 900px; }
.bubble { padding: 24px 28px; }
.bubble .who { font-family: var(--display); font-size: 16px; font-weight: 600; margin-bottom: 10px; color: var(--grey); }
.bubble.you { background: #fff; border-left: 6px solid var(--ink); }
.bubble.claude { background: #fff; border-left: 6px solid var(--red); }
.bars { list-style: none; margin-top: 8px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 4px 14px; align-items: center; padding: 7px 0; }
.bars .label { font-size: 17px; line-height: 1.3; }
.bars .n { font-family: var(--display); font-size: 22px; font-weight: 700; text-align: right; }
.bars .bar { grid-column: 1 / -1; height: 10px; background: #ececec; }
.bars .bar i { display: block; height: 100%; background: var(--ink); }
.bars li:first-child .bar i { background: var(--red); }
.insight { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.check { margin-top: 26px; max-width: 900px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.check div { border-top: 3px solid var(--ink); padding-top: 12px; }
.check h3 { font-size: 21px; margin-bottom: 6px; }
@media (max-width: 700px) { .check { grid-template-columns: 1fr; } .bubble { padding: 20px; } }

/* 5. Що всередині */
.parts { border-top: 3px solid var(--ink); }
.part { display: grid; grid-template-columns: 110px 1fr 1.3fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.letter { font-size: 80px; line-height: .85; color: var(--red); }
.part h3 { font-size: 30px; }
.part .count { font-family: var(--display); font-size: 18px; color: var(--grey); margin-top: 6px; }
.part ul { list-style: none; columns: 2; column-gap: 28px; }
.part li { font-size: 17px; line-height: 1.35; padding: 5px 0 5px 18px; position: relative; break-inside: avoid; }
.part li::before { content: ""; position: absolute; left: 0; top: 14px; width: 9px; height: 3px; background: var(--red); }
.part li.pro::after { content: "Pro"; font-family: var(--display); font-size: 13px; background: var(--ink); color: #fff; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
@media (max-width: 900px) { .part { grid-template-columns: 70px 1fr; } .letter { font-size: 56px; } .part ul { grid-column: 1 / -1; columns: 1; } }

.start { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-bottom: 48px; max-width: 900px; }
.start div { background: var(--sheet); padding: 24px 26px; }
.start h3 { margin-bottom: 6px; }
@media (max-width: 700px) { .start { grid-template-columns: 1fr; } }

.bonus { margin-top: 56px; background: var(--ink); color: #fff; padding: 44px 40px 48px; }
.bonus h3 { font-size: 34px; margin-bottom: 26px; }
.bonus-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.bonus-grid div { border-top: 3px solid var(--red); padding-top: 14px; }
.bonus-grid b { display: block; font-family: var(--display); font-size: 21px; font-weight: 600; margin-bottom: 6px; }
.bonus-grid p { font-size: 16px; color: #cfcfcf; }
@media (max-width: 1000px) { .bonus-grid { grid-template-columns: repeat(2, 1fr); } .bonus { padding: 34px 22px 38px; } }
@media (max-width: 520px) { .bonus-grid { grid-template-columns: 1fr; } }

/* 6. Тарифи */
.free { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.free .big { font-family: var(--display); font-weight: 700; font-size: clamp(110px, 18vw, 230px); line-height: .8; color: var(--red); }
.free .big small { font-size: .42em; color: var(--ink); }
.free p { font-size: 22px; max-width: 36ch; }
@media (max-width: 760px) { .free { grid-template-columns: 1fr; gap: 20px; } }

/* 7. Авторка */
.author-photo { position: relative; margin-bottom: 40px; }
.author-photo img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 60% 45%; }
.author-photo figcaption { font-size: 15px; color: var(--grey); margin-top: 10px; }
.author-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.author-grid .bio { font-size: 21px; }
.facts { list-style: none; }
.facts li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 18px; }
.facts li b { font-family: var(--display); font-size: 22px; }
@media (max-width: 760px) { .author-grid { grid-template-columns: 1fr; gap: 24px; } .author-photo img { aspect-ratio: 4 / 3; } }

/* 8. Ціна */
.buy { background: var(--sheet); }
.ticket { background: #fff; max-width: 760px; margin: 0 auto; padding: 48px 44px 52px; box-shadow: 0 18px 50px -24px rgba(17,17,17,.35); }
.ticket .price { font-family: var(--display); font-weight: 700; font-size: clamp(96px, 14vw, 150px); line-height: .9; }
.ticket .price small { font-size: .35em; }
.ticket ul { list-style: none; margin: 24px 0 32px; }
.ticket li { padding: 9px 0 9px 30px; position: relative; border-top: 1px solid var(--line); }
.ticket li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.guarantee { margin-top: 32px; padding: 20px 22px; border: 3px solid var(--ink); }
.guarantee h3 { font-size: 24px; margin-bottom: 6px; }
@media (max-width: 600px) { .ticket { padding: 34px 22px 38px; } }

/* 9. FAQ */
.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 3px solid var(--ink); }
summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1.25; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 32px; color: var(--red); }
details[open] summary::after { content: "−"; }
details p { padding: 0 0 22px; max-width: 64ch; }

/* 10. Фінал */
.final { background: var(--ink); color: #fff; }
.final h2 { font-size: clamp(40px, 6.5vw, 80px); max-width: 18ch; margin-bottom: 36px; }
.final h2 span { color: var(--red); }

footer { padding: 36px 0 48px; font-size: 15px; color: var(--grey); }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 10px 0; }
footer a { color: var(--ink); }

/* Чернетка: місця, які треба заповнити перед публікацією */
.todo { outline: 2px dashed var(--red); outline-offset: 2px; background: #fdeceb; padding: 0 4px; color: var(--ink); }

/* Фото і клієнти в блоці «Авторка» */
.photos { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 44px; align-items: start; }
.photos img { width: 100%; object-fit: cover; }
.ph-main img { aspect-ratio: 3 / 2; object-position: 60% 45%; }
.ph-side img { aspect-ratio: 4 / 3.3; }
.photos figcaption { font-size: 15px; line-height: 1.45; color: var(--grey); margin-top: 10px; }
@media (max-width: 760px) { .photos { grid-template-columns: 1fr; } }
.clients { margin-top: 56px; border-top: 3px solid var(--ink); padding-top: 22px; }
.clients h3 { font-size: 22px; margin-bottom: 18px; }
.clients ul { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: baseline; }
.clients li { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3vw, 34px); color: #9a9a9a; }

.awards { margin-top: 56px; }
.awards h3 { font-size: 22px; margin-bottom: 18px; }
.award-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.award-img { background: var(--sheet); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.award-img img { width: 100%; height: 100%; object-fit: contain; }
.award-grid figcaption { font-size: 16px; line-height: 1.45; margin-top: 10px; }
@media (max-width: 600px) { .award-grid { grid-template-columns: 1fr; } }

.facts .inds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.facts .inds span { border: 2px solid var(--ink); padding: 2px 12px; font-family: var(--display); font-size: 17px; font-weight: 500; }

/* Обкладинка гайда */
.cover { box-shadow: 0 22px 44px -18px rgba(17,17,17,.5), 0 0 0 1px rgba(17,17,17,.08); }
.ticket { max-width: 980px; display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; }
@media (max-width: 760px) { .ticket { grid-template-columns: 1fr; gap: 28px; } }
.inside-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 8px; }
.inside-head .cover.small { width: 170px; transform: rotate(3deg); margin-bottom: 24px; }
@media (max-width: 700px) { .inside-head .cover.small { width: 110px; } }

/* 3D-книга */
.book { --w: 280px; --t: 30px; width: var(--w); perspective: 1800px; margin: 10px auto 0; }
.book-3d { position: relative; width: var(--w); aspect-ratio: 620 / 877; transform-style: preserve-3d; transform: rotateY(32deg) rotateX(4deg); transition: transform .5s ease; }
.book:hover .book-3d { transform: rotateY(18deg) rotateX(2deg); }
@media (prefers-reduced-motion: reduce) { .book-3d { transition: none; } }
.book-3d > * { position: absolute; top: 0; }
.b-front { left: 0; width: 100%; height: 100%; transform: translateZ(calc(var(--t) / 2)); box-shadow: inset 4px 0 6px -3px rgba(0,0,0,.25); }
.b-back { left: 0; width: 100%; height: 100%; background: var(--ink); transform: translateZ(calc(var(--t) / -2)); box-shadow: 30px 34px 50px -10px rgba(17,17,17,.45); }
.b-spine { left: 0; width: var(--t); height: 100%; background: var(--red); transform-origin: left center; transform: translateZ(calc(var(--t) / 2)) rotateY(-90deg); display: flex; align-items: center; justify-content: center; }
.b-spine span { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--display); font-weight: 700; font-size: 15px; color: #fff; text-transform: uppercase; white-space: nowrap; }
.b-pages { right: 0; width: var(--t); height: calc(100% - 6px); top: 3px; transform-origin: right center; transform: translateZ(calc(var(--t) / 2)) rotateY(90deg); background: repeating-linear-gradient(90deg, #fff 0 2px, #e2e2e2 2px 3px); }
.ticket .book { --w: 260px; }
@media (max-width: 760px) { .ticket .book { --w: 200px; --t: 24px; margin: 0 0 0 30px; } }

/* Книга в різних блоках */
.book.in-hero { --w: 170px; --t: 20px; position: absolute; right: -34px; bottom: -40px; margin: 0; }
.book.in-hero .b-spine span { font-size: 10px; }
.book.in-hero .book-3d { transform: rotateY(-28deg) rotateX(4deg); }
.book.in-hero .b-back { box-shadow: -20px 26px 40px -10px rgba(17,17,17,.5); }
.inside-head { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; margin-bottom: 40px; }
.inside-lead { font-size: 22px; max-width: 34ch; }
.book.in-inside { --w: 230px; --t: 28px; margin: 0 40px 0 0; }
.book.in-inside .book-3d { transform: rotateY(-30deg) rotateX(4deg); }
.book.in-inside .b-back { box-shadow: -30px 34px 50px -10px rgba(17,17,17,.4); }
.final-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.book.in-final { --w: 260px; --t: 30px; margin: 0 40px 0 0; }
.book.in-final .b-back { box-shadow: 30px 34px 60px -10px rgba(0,0,0,.8); }
.book.in-final .b-pages { background: repeating-linear-gradient(90deg, #f4f4f4 0 2px, #cfcfcf 2px 3px); }
@media (max-width: 760px) {
  .book.in-hero { --w: 120px; --t: 15px; right: -10px; bottom: -30px; }
  .inside-head, .final-grid { grid-template-columns: 1fr; gap: 28px; }
  .book.in-inside, .book.in-final { --w: 180px; --t: 22px; margin: 0 0 0 36px; }
}

/* Форма перед оплатою */
.buy-dialog { margin: auto; border: 0; padding: 0; max-width: 460px; width: calc(100% - 32px); box-shadow: 0 30px 80px -20px rgba(17,17,17,.6); }
.buy-dialog::backdrop { background: rgba(17,17,17,.6); }
.buy-dialog form { padding: 36px 24px 28px; position: relative; display: grid; gap: 8px; }
.buy-dialog h2 { font-size: 34px; margin: 0 0 4px; }
.buy-dialog label { font-family: var(--display); font-weight: 600; font-size: 17px; margin-top: 10px; }
.buy-dialog input[type=text], .buy-dialog input[type=email] { font: 18px var(--text); padding: 12px 14px; border: 2px solid var(--ink); min-height: 48px; width: 100%; }
.buy-dialog .agree { font-family: var(--text); font-weight: 400; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.buy-dialog .agree input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }
.buy-dialog .btn { margin-top: 14px; justify-content: center; }
.buy-dialog .close { position: absolute; right: 12px; top: 8px; background: none; border: 0; font-size: 34px; cursor: pointer; line-height: 1; padding: 4px 10px; }
.buy-dialog .err { color: var(--red); font-size: 16px; }
