:root {
  color-scheme: light;
  --bg: #f4f2ed;
  --paper: #ffffff;
  --ink: #10131f;
  --muted: #55596a;
  --line: #d6d3cb;
  --lime: #dcff3f;
  --pink: #ffb8dc;
  --sky: #b9d4ff;
  --peach: #ffcfa8;
  --red: #d4142f;
  --hot: #ff5fa8;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Onest", system-ui, "Segoe UI", sans-serif;
  --gutter: 16px;
  --round: 32px;
  --sec: 48px;

  /* Дуга кадрів */
  --r: 196px;
  --tile-w: 74px;
  --tile-h: 102px;
  --cy: 255px;
  --arc-h: 240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.45 var(--sans);
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }

h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }

h1, h2 { font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: 34px; line-height: 1.06; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }

section { padding: 56px max(var(--gutter), calc((100% - 1056px) / 2)); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  text-decoration: none;
  transition: transform .2s, background .2s, color .2s;
}
.btn:active { background: var(--lime); color: var(--ink); transform: scale(.97); }
.btn:focus-visible, .cta:focus-visible, summary:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
@media (hover: hover) {
  .btn:hover { background: var(--lime); color: var(--ink); transform: translateY(-2px); }
}

/* 1. Перший екран */
.hero { position: relative; }

.pin { position: relative; overflow: hidden; padding: 0 var(--gutter) 40px; }

.anim .hero { height: 200vh; height: 200svh; }
.anim .pin { position: sticky; top: 0; height: 100vh; height: 100svh; padding-bottom: 0; }

.arc {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--arc-h);
  overflow: hidden;
  z-index: 2;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}
.anim .arc { height: 100%; overflow: visible; -webkit-mask-image: none; mask-image: none; }

.ring { position: absolute; left: 50%; top: var(--cy); width: 0; height: 0; }

.tile {
  position: absolute;
  left: calc(var(--tile-w) / -2);
  top: calc(var(--tile-h) / -2);
  width: var(--tile-w);
  height: var(--tile-h);
  border-radius: 12px;
  overflow: hidden;
  transform: rotate(calc(var(--i) * 23deg)) translateY(calc(var(--r) * -1));
  backface-visibility: hidden;
}
.anim .tile { will-change: transform, opacity; box-shadow: -2px 3px 10px rgba(16, 19, 31, .16); }
.tile picture { display: block; width: 100%; height: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }

.hero-text {
  position: relative;
  z-index: 5;
  max-width: 720px;
  margin: 0 auto;
  padding-top: 236px;
  text-align: center;
  will-change: transform, opacity;
}

h1 { font-size: 42px; line-height: 1; font-weight: 800; letter-spacing: -.045em; }

/* Головна кнопка у формі папки */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 420px;
  min-height: 72px;
  margin: 34px auto 0;
  padding: 12px 12px 12px 20px;
  background: var(--lime);
  color: var(--ink);
  border-radius: 6px 20px 20px 20px;
  font-size: 19px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.025em;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(16, 19, 31, .18);
  transition: transform .2s;
}
.cta::before {
  content: "";
  position: absolute;
  left: 0;
  top: -12px;
  width: 42%;
  height: 16px;
  background: inherit;
  border-radius: 8px 12px 0 0;
}
.cta i {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--lime);
  font-style: normal;
  font-size: 22px;
}
.cta:active { transform: scale(.98); }
@media (hover: hover) {
  .cta:hover { transform: translateY(-3px); }
}

.note { margin-top: 12px; font-size: 16px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }

/* Папка, у яку падають кадри */
.folder { display: none; position: absolute; left: 50%; bottom: 76px; width: min(88vw, 520px); will-change: transform; }
.anim .folder { display: block; visibility: hidden; }
.folder-back { z-index: 1; background: #c6ea22; border-radius: 22px; }
.folder-front {
  z-index: 3;
  padding: 24px 22px;
  background: var(--lime);
  border-radius: 8px 22px 22px 22px;
  box-shadow: 0 -4px 14px rgba(16, 19, 31, .12);
}
.folder-front::before {
  content: "";
  position: absolute;
  left: 0;
  top: -24px;
  width: 44%;
  height: 34px;
  background: inherit;
  border-radius: 14px 18px 0 0;
}
.folder-front p { position: relative; font-size: 32px; line-height: 1.04; font-weight: 800; letter-spacing: -.04em; }

/* 2. Про мене і з ким працювала */
.about { position: relative; z-index: 6; display: grid; gap: 22px; background: var(--lime); color: var(--ink); overflow: hidden; }
.about-photo { overflow: hidden; border-radius: 20px; aspect-ratio: 4 / 5; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.facts { margin-top: 16px; }
.facts li { padding: 10px 0; border-top: 2px solid var(--ink); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.worked { margin-top: 16px; font-size: 44px; line-height: 1; font-weight: 500; letter-spacing: -.05em; }
.profiles { display: grid; gap: 16px; }
.ig { width: 92%; padding: 12px 14px 14px; background: #fff; border-radius: 8px; box-shadow: 0 8px 20px rgba(16, 19, 31, .14); will-change: transform; }
.ig:nth-child(even) { justify-self: end; }
.ig-nick { display: flex; align-items: center; gap: 5px; font-size: 18px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.ig-badge { width: 17px; height: 17px; flex: none; }
.ig-body { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.ig-ava { flex: none; width: 72px; height: 72px; padding: 3px; border-radius: 50%; background: #dbdbdb; }
.ig-ava.story { background: conic-gradient(from 210deg, #feda75, #fa7e1e, #d62976, #962fbf, #d62976, #fa7e1e, #feda75); }
.ig-ava img { width: 100%; height: 100%; border: 2px solid #fff; border-radius: 50%; object-fit: cover; }
.ig-name { margin-bottom: 4px; font-size: 14px; line-height: 1.2; font-weight: 600; }
.ig-stats { display: flex; gap: 12px; margin: 0; }
.ig-stats dd { margin: 0; font-size: 14px; line-height: 1.2; font-weight: 700; white-space: nowrap; }
.ig-stats dt { font-size: 11px; line-height: 1.2; color: var(--muted); }

/* Плаваюча плашка між блоками */
.note-float { position: relative; z-index: 8; height: 0; padding: 0 var(--gutter); }
.note-float p { max-width: 460px; margin: 0 auto; transform: translateY(-50%) rotate(-2deg); will-change: transform; }
.note-float span {
  display: block;
  padding: 18px 20px;
  background: var(--ink);
  color: var(--lime);
  border-radius: 22px;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.03em;
  text-align: center;
  text-wrap: balance;
  box-shadow: 0 16px 34px rgba(16, 19, 31, .3);
}
.anim .note-float span { animation: bob 4s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(-5px); }
  50% { transform: translateY(5px); }
}

/* 3. Інструкція зі збирання */
.manual { padding-top: 104px; padding-bottom: 56px; background: #fff; }
.manual .sheet { max-width: 1000px; margin: 0 auto; color: var(--ink); }
.sheet-head h2 { font-weight: 800; font-size: 30px; line-height: 1.06; letter-spacing: -.035em; }
.sheet-head p { margin-top: 10px; }

.manual svg { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.manual .thin { stroke-width: 2; }
.manual .cross { stroke-width: 5; }
.manual .dash { stroke-dasharray: 2 8; }
.manual text { fill: var(--ink); stroke: none; font: 800 24px var(--sans); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.pair svg { width: 100%; height: auto; }

.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 14px; margin-top: 28px; }
.num { display: block; font-weight: 800; font-size: 60px; line-height: .95; letter-spacing: -.05em; color: var(--hot); }
.steps svg { width: 100%; height: auto; margin: 6px 0 8px; }
.steps p { font-size: 16px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }

.honest { display: flex; align-items: flex-end; gap: 10px; margin-top: 30px; }
.honest svg { flex: none; width: 50px; }
.bubble { position: relative; padding: 14px; background: var(--lime); border-radius: 16px; font-size: 16px; line-height: 1.35; }
.bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  bottom: 22px;
  width: 14px;
  height: 14px;
  background: var(--lime);
  transform: rotate(45deg);
}
.formats-sub { margin: -10px 0 8px; color: var(--muted); }

/* 4. Формати */
.formats { padding-bottom: 40px; overflow: hidden; }
.formats h2, .audience h2, .inside h2, .tariffs h2, .faq h2 { margin-bottom: 24px; }

.reels { display: grid; gap: 30px; margin-top: 22px; }
.reel { width: 80%; }
.reel:nth-child(even) { justify-self: end; }
.reel-video { position: relative; }
.reel-video.loading::after {
  content: "Завантажую…";
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 19, 31, .78);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.reel video {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 20px;
  object-fit: cover;
  background: #ddd;
}
.sound {
  position: absolute;
  left: 10px;
  bottom: 10px;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 19, 31, .78);
  color: #fff;
  font: 600 14px var(--sans);
  cursor: pointer;
}
.reel h3 { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 10px; background: var(--lime); font-size: 18px; font-weight: 800; }
.caption { margin-top: 6px; font-size: 14px; line-height: 1.3; color: var(--muted); }
.reel h3 + p { margin-top: 6px; font-size: 15px; line-height: 1.3; }

/* Що вміє Клод */
.skill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.skills h2 { margin-bottom: 22px; }
.skill-grid li { padding: 14px; border-radius: 18px; background: var(--lime); }
.skill-grid li:nth-child(4n+2), .skill-grid li:nth-child(4n+3) { background: #ffd1e6; }
.skill-grid svg { width: 56px; height: 56px; margin-bottom: 10px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.skill-grid p { margin-top: 4px; font-size: 16px; line-height: 1.25; }

/* Нічого не треба монтувати */
.nothing { background: #fff; color: var(--ink); }
.nothing h2 { font-size: 42px; line-height: 1; font-weight: 800; }
.crossed { margin: 22px 0; }
.crossed li { width: max-content; max-width: 100%; font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--hot); }
.nothing p { max-width: 560px; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }

/* 5. Для кого */
.audience { background: var(--ink); color: #fff; }
.audience h2 { font-size: 54px; color: var(--lime); }
.two { display: grid; gap: 26px; }
.two h3 { margin-bottom: 6px; color: var(--pink); }

/* 6–7. Склад */
.inside-list { counter-reset: n; }
.inside-list li { counter-increment: n; position: relative; padding: 14px 0 14px 50px; border-top: 2px solid var(--ink); }
.inside-list li::before { content: counter(n); position: absolute; left: 0; top: 2px; font-size: 40px; line-height: 1.3; font-weight: 800; letter-spacing: -.04em; color: var(--hot); }
.sub { margin-top: 44px; }

/* Комплект складається, як папки */
.kit { padding-bottom: 12px; }
.kit li {
  position: sticky;
  top: calc(22px + var(--n) * 44px);
  min-height: 96px;
  margin-top: 18px;
  padding: 10px 18px 24px;
  background: var(--tab, var(--lime));
  border-radius: 6px 18px 18px 18px;
  font-size: 16px;
  line-height: 1.3;
  box-shadow: 0 -3px 10px rgba(16, 19, 31, .1);
}
.kit li::before {
  content: "";
  position: absolute;
  left: 0;
  top: -11px;
  width: 38%;
  height: 15px;
  background: inherit;
  border-radius: 10px 14px 0 0;
}
.kit strong { display: block; margin-bottom: 14px; font-size: 19px; line-height: 1.2; letter-spacing: -.02em; }
.kit li:nth-child(5n+1) { --tab: var(--lime); }
.kit li:nth-child(5n+2) { --tab: var(--pink); }
.kit li:nth-child(5n+3) { --tab: var(--sky); }
.kit li:nth-child(5n+4) { --tab: var(--peach); }
.kit li:nth-child(5n+5) { --tab: var(--paper); }

/* 9. Тарифи: дві папки */
.cards { display: grid; gap: 44px; margin-top: 44px; }
.card { position: relative; display: flex; flex-direction: column; padding: 20px 20px 22px; background: var(--paper); border-radius: 6px 22px 22px 22px; box-shadow: 0 10px 28px rgba(16, 19, 31, .08); }
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: -24px;
  width: 46%;
  height: 28px;
  background: inherit;
  border-radius: 12px 16px 0 0;
}
.price { font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -.05em; margin: 6px 0 14px; }
.card ul { flex: 1; margin-bottom: 18px; }
.card li { position: relative; padding: 6px 0 6px 20px; font-size: 16px; line-height: 1.35; }
.card li::before { content: ""; position: absolute; left: 0; top: 15px; width: 10px; height: 2px; background: currentColor; }
.card.accent { background: var(--pink); }
.after { margin-top: 18px; color: var(--muted); font-size: 16px; text-align: center; text-wrap: balance; }

.stickers { margin-top: 40px; text-align: center; }
.stickers h3 { margin-bottom: 16px; }
.sticker {
  display: inline-block;
  max-width: 310px;
  margin: 6px;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -.01em;
  box-shadow: 0 3px 0 rgba(16, 19, 31, .2);
  will-change: transform;
}
.s1 { background: var(--lime); transform: rotate(-3deg); }
.s2 { background: var(--sky); transform: rotate(2.5deg); }

/* 11. FAQ */
.faq { padding-bottom: 32px; }
details { border-top: 2px solid var(--ink); }
details:last-of-type { border-bottom: 2px solid var(--ink); }
summary { cursor: pointer; list-style: none; position: relative; padding: 15px 34px 15px 0; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 8px; font-size: 26px; font-weight: 500; line-height: 1.3; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 16px; }

footer { padding: 24px var(--gutter) calc(28px + env(safe-area-inset-bottom)); text-align: center; color: var(--muted); font-size: 14px; }
.foot-links a { display: inline-block; padding: 8px 10px; color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.foot-info { display: grid; gap: 18px; max-width: 760px; margin: 18px auto 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: left; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.foot-info h3 { margin-bottom: 4px; font-size: 15px; color: var(--ink); }
.foot-info a { color: inherit; }
.copy { margin-top: 18px; }

/* Юридичні сторінки */
.legal { max-width: 720px; margin: 0 auto; padding: 32px var(--gutter) 56px; }
.legal h1 { font-size: 34px; line-height: 1.06; }
.legal h2 { margin: 28px 0 8px; font-size: 22px; line-height: 1.15; letter-spacing: -.02em; }
.legal p { margin-top: 10px; overflow-wrap: anywhere; }
.legal ul { margin-top: 10px; padding-left: 22px; list-style: disc; }
.legal li { margin-top: 4px; }
.back { display: inline-block; margin-bottom: 20px; color: var(--ink); font-weight: 600; }

/* Високі екрани телефонів: дуга більша, текст нижче */
@media (max-width: 759px) and (min-height: 780px) {
  :root { --r: 212px; --tile-w: 80px; --tile-h: 110px; --cy: 275px; --arc-h: 260px; }
  h1 { font-size: 46px; }
  .hero-text { padding-top: 256px; }
}

/* Низькі екрани телефонів, вбудований браузер соцмереж */
@media (max-width: 759px) and (max-height: 720px) {
  :root { --r: 172px; --tile-w: 64px; --tile-h: 88px; --cy: 224px; --arc-h: 206px; }
  .hero-text { padding-top: 202px; }
  h1 { font-size: 36px; }
  .cta { min-height: 62px; font-size: 18px; margin-top: 26px; }
  .cta i { width: 42px; height: 42px; }
  .note { margin-top: 8px; font-size: 15px; }
}

/* Планшет і десктоп */
@media (min-width: 760px) {
  :root { --gutter: 32px; --round: 56px; --sec: 80px; --r: 640px; --tile-w: 170px; --tile-h: 234px; --cy: 770px; --arc-h: 860px; }
  body { font-size: 18px; }
  section { padding-top: 80px; padding-bottom: 80px; }
  h2 { font-size: 52px; }
  .pin { min-height: 760px; }
  .hero-text { padding-top: 300px; }
  h1 { font-size: 60px; }
  .cta { font-size: 21px; }
  .folder-front p { font-size: 46px; }
  .about { grid-template-columns: 5fr 6fr; gap: 40px 56px; align-items: center; }
  .worked, .profiles { grid-column: 1 / -1; }
  .worked { font-size: 72px; }
  .profiles { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .ig { width: 100%; }
  .sheet-head h2 { font-size: 42px; max-width: 760px; }
  .pair { max-width: 420px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .note-float span { font-size: 32px; padding: 24px 30px; }
  .formats { overflow: visible; }
  .reels { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .reel { width: auto; }
  .audience h2 { font-size: 90px; }
  .skill-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .nothing h2 { font-size: 72px; }
  .foot-info { grid-template-columns: 1fr 1fr; }
  .two { grid-template-columns: 1fr 1fr; gap: 48px; }
  .inside { padding-left: max(32px, calc((100% - 820px) / 2)); padding-right: max(32px, calc((100% - 820px) / 2)); }
  .cards { grid-template-columns: 1fr 1fr; gap: 24px; }
  .card { padding: 32px; }
  .faq { padding-left: max(32px, calc((100% - 820px) / 2)); padding-right: max(32px, calc((100% - 820px) / 2)); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Без руху: кадри лишаються дугою, сторінка просто прокручується */
@media (prefers-reduced-motion: reduce) {
  .kit li { position: static; }
}

/* Заокруглені переходи між кольоровими блоками: кожен наїжджає на сусідів на величину заокруглення */
.about, .formats, .audience, .inside { position: relative; z-index: 2; }
.about { z-index: 6; margin: calc(var(--round) * -1) 0; border-radius: var(--round); padding-top: var(--sec); padding-bottom: calc(var(--sec) + var(--round)); }
.skills { padding-top: calc(var(--sec) + var(--round) + 56px); }
.formats { margin-bottom: calc(var(--round) * -1); border-radius: 0 0 var(--round) var(--round); background-color: var(--bg); padding-top: 8px; padding-bottom: calc(var(--sec) + 8px); }
.nothing { padding-top: calc(var(--sec) + var(--round)); padding-bottom: calc(var(--sec) + var(--round)); }
.audience .cta { margin: 30px 0 0; }
.audience { margin: calc(var(--round) * -1) 0; border-radius: var(--round); }
.manual { padding-top: calc(var(--sec) + var(--round)); padding-bottom: calc(var(--sec) + var(--round)); }
.inside { margin-top: calc(var(--round) * -1); border-radius: var(--round) var(--round) 0 0; background-color: var(--bg); }

/* На телефоні сторінка рухається лише вгору-вниз, масштабування лишається */
@media (max-width: 759px) {
  html, body { touch-action: pan-y pinch-zoom; }
}
