:root {
  --milk: #fff9ec;
  --butter: #f6d980;
  --butter-soft: #fcefc4;
  --ink: #2a211c;
  --ink-soft: #66574d;
  --peri: #5b5fef;       /* колір «технологій» */
  --peri-ink: #4347c9;   /* для тексту й кнопок — контраст з білим */
  --peri-soft: #e7e8ff;
  --blush: #f6b9c6;
  --blush-soft: #fde4ea;
  --sage: #d6eedf;
  --radius-l: 40px;
  --radius-m: 26px;
  --shadow: 0 2px 0 rgba(160, 120, 60, .12), 0 12px 20px -14px rgba(110, 80, 40, .4);
  --stitch: 2px dashed rgba(42, 33, 28, .2);
  --knit-ochre: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='15'><rect width='18' height='15' fill='%238f6410'/><g fill='%23a8791c' stroke='%23714c0b' stroke-width='.8'><ellipse cx='5.2' cy='7.5' rx='3.4' ry='6.4' transform='rotate(-28 5.2 7.5)'/><ellipse cx='12.8' cy='7.5' rx='3.4' ry='6.4' transform='rotate(28 12.8 7.5)'/></g></svg>");
  --display: "Unbounded", "Manrope", sans-serif;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --knit: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='26' height='22'><rect width='26' height='22' fill='%23efcb62'/><g fill='%23f8df92' stroke='%23d4ad40' stroke-width='1.2'><ellipse cx='7.5' cy='11' rx='5' ry='9.5' transform='rotate(-28 7.5 11)'/><ellipse cx='18.5' cy='11' rx='5' ry='9.5' transform='rotate(28 18.5 11)'/></g></svg>");
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scrollbar-color: #e2c470 var(--milk); caret-color: var(--peri-ink); }
::selection { background: var(--butter); color: var(--ink); }
html.lamb-hover { cursor: pointer; }
body {
  font-family: "Manrope", system-ui, sans-serif; color: var(--ink); background: var(--milk);
  line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
/* дрібне зерно — прибирає «пластиковість» градієнтів */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: var(--noise); opacity: .07; mix-blend-mode: multiply;
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--peri); outline-offset: 3px; }

/* ---------- навігація ---------- */
.nav {
  position: fixed; inset: 16px 16px auto; z-index: 50; max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(255, 249, 236, .72); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow);
}
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.logo b { color: var(--peri-ink); font-weight: inherit; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink-soft); transition: background .2s, color .2s; }
.nav-links a:hover { background: #fff; color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 15px 28px; border-radius: 999px;
  font-weight: 800; text-decoration: none; color: #fff; background: var(--peri-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 14px 26px -14px var(--peri-ink);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1), background .2s;
}
.btn:hover { background: var(--peri); }
.btn-small { padding: 11px 20px; font-size: .9rem; }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn-light:hover { background: var(--butter-soft); }
.btn-butter { background: var(--butter); color: var(--ink); box-shadow: 0 14px 26px -14px #c9a440; }
.btn-butter:hover { background: #fbe39b; }

/* ---------- 3D-шар ---------- */
.lamb-wrap { position: fixed; inset: 0; z-index: 40; pointer-events: none; will-change: transform; }
.lamb-wrap canvas { width: 100%; height: 100%; display: block; }
.no-webgl .lamb-wrap, .no-webgl .bubble, .no-webgl .buddy { display: none; }
.fx { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.bit {
  position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fffbe8, var(--butter)); box-shadow: 0 4px 8px rgba(160, 120, 40, .25);
  animation: bit 1s cubic-bezier(.2, .8, .3, 1) forwards;
}
.bit.heart { width: auto; height: auto; background: none; box-shadow: none; font-size: var(--s); color: #e8768f; line-height: 1; }
@keyframes bit { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.4); opacity: 0; } }

/* ---------- вступ ---------- */
.intro { height: 580vh; position: relative; }
.intro-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: linear-gradient(#fdf3dc, var(--milk) 55%, #fbefd6);
}
.sun {
  position: absolute; left: 50%; top: 58%; width: min(90vw, 760px); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; background: radial-gradient(circle, rgba(246, 217, 128, .55), rgba(246, 217, 128, 0) 65%);
}
.puff {
  position: absolute; width: 220px; height: 70px; border-radius: 999px;
  background: radial-gradient(70% 120% at 50% 0%, #fff 40%, #f6eedf 100%);
  filter: drop-shadow(0 18px 18px rgba(190, 160, 110, .2));
  animation: drift 50s ease-in-out infinite;
}
.puff::before, .puff::after { content: ""; position: absolute; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff 45%, #f6eedf 100%); }
.puff::before { width: 110px; height: 110px; left: 30px; bottom: 20px; }
.puff::after { width: 80px; height: 80px; right: 34px; bottom: 26px; }
.p1 { top: 14%; left: 5%; }
.p2 { top: 26%; right: 3%; transform: scale(1.25); animation-duration: 64s; animation-direction: reverse; }
.p3 { top: 62%; left: -50px; transform: scale(.8); animation-duration: 70s; }
@keyframes drift { 50% { translate: 60px 0; } }

.giant { position: absolute; inset: 0; text-align: center; display: flex; flex-direction: column; align-items: center; padding-top: max(108px, 13vh); }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow); font-weight: 700; font-size: .85rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3cbf86; box-shadow: 0 0 0 3px #fff; }
.giant-word {
  margin-top: 1vh; font-size: clamp(3.2rem, 13vw, 12rem); font-weight: 800; letter-spacing: -.06em; line-height: .9;
  color: #8f6410; /* запасний колір, якщо в'язана текстура не підтримується */
  background: var(--knit-ochre) 0 0 / .14em auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #fff) drop-shadow(0 18px 24px rgba(110, 80, 40, .25));
}
.giant-sub { max-width: 34em; margin-top: 14px; padding: 0 16px; font-size: 1.05rem; color: var(--ink-soft); font-weight: 600; }

.bubble {
  position: fixed; z-index: 45; left: 60%; top: 40%; width: 250px;
  padding: 14px 18px; border-radius: 22px 22px 22px 6px;
  background: #fff; box-shadow: var(--shadow); outline: var(--stitch); outline-offset: -7px; font-size: .95rem; line-height: 1.45;
  animation: pop .7s .9s cubic-bezier(.2, .9, .3, 1) backwards;
}
.bubble b { display: block; font-family: var(--display); font-size: 1.05rem; margin-bottom: 4px; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.9); } }

.story { position: fixed; z-index: 45; left: max(24px, 7vw); top: 50%; translate: 0 -50%; width: min(460px, 40vw); pointer-events: none; }
.story-line { position: absolute; inset: auto 0; top: 50%; translate: 0 -50%; opacity: 0; }
.story-line h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin-bottom: 18px; }
.story-line p { font-size: 1.12rem; color: var(--ink-soft); max-width: 26em; }
.story-line h2 { color: var(--c, var(--ink)); }

.veil { position: absolute; inset: 0; background: var(--milk); opacity: 0; pointer-events: none; }
.scroll-hint {
  position: absolute; bottom: 22px; right: 28px; display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .85rem; color: var(--ink-soft);
}
.scroll-hint span { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.scroll-hint span::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px;
  border-radius: 2px; background: currentColor; animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 60% { transform: translateY(10px); opacity: 0; } }

/* ---------- основна частина ---------- */
.inside { position: relative; overflow: hidden; isolation: isolate; }
.inside::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 22% at 0% 6%, var(--butter-soft), transparent 70%),
    radial-gradient(40% 18% at 100% 30%, var(--peri-soft), transparent 70%),
    radial-gradient(40% 18% at 0% 58%, var(--blush-soft), transparent 70%),
    radial-gradient(40% 18% at 100% 84%, var(--sage), transparent 70%);
}
.block { max-width: 1180px; margin: 0 auto; padding: 120px 16px; }
.block > h2 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); margin-bottom: 48px; max-width: 16em; }
h3 { font-size: 1.1rem; margin-bottom: 8px; }
.statement { max-width: 22em; font-size: clamp(1.8rem, 4.2vw, 3.3rem); font-weight: 400; }
.lead { max-width: 36em; margin-top: 28px; font-size: 1.15rem; color: var(--ink-soft); }

/* в'язана стрічка */
.knit {
  overflow: hidden; padding: 20px 0; margin: 0 -20px; rotate: -2deg;
  background: var(--knit); background-size: 26px 22px;
  box-shadow: 0 20px 40px -22px rgba(180, 140, 40, .6), inset 0 6px 10px rgba(0, 0, 0, .1), inset 0 -6px 10px rgba(0, 0, 0, .1);
}
.knit-track { display: flex; gap: 32px; padding: 0 24px; width: max-content; animation: marquee 34s linear infinite; }
.knit span, .knit i { font-family: var(--display); font-weight: 800; font-size: clamp(1.3rem, 2.8vw, 2rem); font-style: normal; color: var(--ink); white-space: nowrap; }
.knit-dot { width: .7em; flex: none; align-self: center; fill: var(--peri-ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* хто отримує допомогу */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile, .svc, .steps li {
  position: relative; border-radius: 30px 26px 32px 24px; /* трохи нерівні — як вирізані ножицями */
  background: #fffdf7 var(--noise); background-blend-mode: multiply;
  box-shadow: var(--shadow); outline: var(--stitch); outline-offset: -10px;
}
.tile { overflow: hidden; padding: 28px; }
.tile p { color: var(--ink-soft); font-size: .95rem; }
.ico {
  width: 50px; height: 50px; padding: 12px; margin-bottom: 18px; border-radius: 16px;
  background: var(--t); fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.tile-free {
  grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 360px; border-radius: var(--radius-l); background-color: var(--butter-soft);
}
.zero { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 12vw, 9.5rem); line-height: 1; letter-spacing: -.05em; color: var(--ink); }
.tile-free p { max-width: 24em; font-size: 1.06rem; margin-top: 10px; color: #5a4b3c; }
.tile-yarn { position: absolute; top: 24px; right: 24px; width: 110px; animation: roll 16s linear infinite; }
@keyframes roll { to { rotate: 360deg; } }
.tile-paid {
  grid-column: span 4; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--knit) top / 26px 22px repeat-x, var(--ink); color: #fff; padding: 58px 38px 34px; outline-color: rgba(255, 255, 255, .3);
}
.tile-paid h3 { font-size: 1.4rem; }
.tile-paid p { color: #d8cdc4; max-width: 34em; }

/* послуги */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc { padding: 16px 16px 30px; }
.svc h3, .svc p { padding: 0 16px; }
.svc p { color: var(--ink-soft); font-size: .95rem; }
.svc-yarn { width: 60px; margin: -34px 0 10px 16px; position: relative; transition: rotate 1.2s cubic-bezier(.2, .9, .3, 1); filter: drop-shadow(0 10px 10px rgba(110, 80, 40, .22)); }
.svc:hover .svc-yarn { rotate: 200deg; }
.mock { height: 190px; border-radius: 18px; padding: 18px; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 8px; background: var(--butter-soft); }
.mock-chat .msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: .82rem; font-weight: 600; box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .2); }
.msg.in { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.out { background: var(--peri-ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.typing { display: flex; gap: 4px; padding: 12px 14px !important; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #b5a596; animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 30% { transform: translateY(-4px); opacity: .5; } }
.mock-site { background: var(--sage); justify-content: flex-start; }
.mock-site .bar, .mock-site .page { background: #fff; }
.mock-site .bar { display: flex; align-items: center; gap: 5px; padding: 8px 12px; border-radius: 12px 12px 0 0; margin-bottom: -8px; }
.bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--blush); }
.bar i:nth-child(2) { background: var(--butter); } .bar i:nth-child(3) { background: #9fd6b8; }
.bar span { margin-left: 8px; font-size: .7rem; color: var(--ink-soft); font-weight: 700; }
.page { flex: 1; border-radius: 0 0 12px 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.page b { width: 60%; height: 14px; border-radius: 6px; background: var(--ink); }
.page s { width: 85%; height: 8px; border-radius: 4px; background: #ece3d6; }
.page s.short { width: 55%; }
.page u { width: 70px; height: 22px; border-radius: 999px; background: var(--peri); margin-top: 4px; }
.mock-flow { flex-direction: row; align-items: center; justify-content: center; gap: 0; background: var(--peri-soft); }
.node { padding: 10px 12px; border-radius: 14px; background: #fff; font-size: .74rem; font-weight: 800; box-shadow: 0 6px 14px -8px rgba(60, 50, 160, .4); }
.wire { position: relative; flex: 1; max-width: 46px; height: 2px; background: repeating-linear-gradient(90deg, #9a9df5 0 5px, transparent 5px 9px); }
.wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--peri); animation: flow 1.8s linear infinite; }
@keyframes flow { to { left: calc(100% - 8px); } }

/* кроки + нитка */
.steps-wrap { position: relative; }
.thread { position: absolute; left: 0; top: 18px; width: 100%; height: 120px; overflow: visible; }
.thread path { fill: none; stroke: var(--butter); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pulse { position: absolute; z-index: 1; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(91, 95, 239, .35), 0 2px 6px rgba(67, 71, 201, .5); pointer-events: none; }
.steps { position: relative; list-style: none; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.steps li { padding: 30px 26px; }
.steps span {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff3c8, var(--butter)); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 1rem;
}
.steps p { color: var(--ink-soft); font-size: .95rem; }

.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: 1180px; margin: 0 auto; padding: 10px 160px 140px 16px; color: var(--ink-soft); font-size: .9rem;
}
.logo.small { font-size: 1rem; color: var(--ink); }

/* ---------- живі приклади: дві фетрові латки-сцени ---------- */
.demos-lead { max-width: 46ch; margin: -18px 0 40px; color: var(--ink-soft); font-size: 1.05rem; }
.scene {
  position: relative; display: grid; align-items: center; gap: 56px; padding: 52px;
  border-radius: 46px 38px 48px 36px; box-shadow: var(--shadow); outline: 2px dashed var(--st); outline-offset: -13px;
  /* дрібні світлі цятки — фактура фетру, без сірого шуму */
  background: radial-gradient(rgba(255, 255, 255, .55) 1px, transparent 1.5px) 0 0 / 7px 7px, var(--bg);
}
.scene + .scene { margin-top: 32px; }
.scene-bot { --bg: var(--peri-soft); --st: rgba(67, 71, 201, .3); grid-template-columns: 1fr 320px 1fr; }
.scene-site { --bg: var(--blush-soft); --st: rgba(176, 64, 94, .28); grid-template-columns: 1.45fr 1fr; }

.scene-tag { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #fff; font-weight: 800; font-size: .78rem; color: var(--peri-ink); box-shadow: var(--shadow); }
.scene-site .scene-tag { color: #9c3553; }
.scene-text h3 { margin: 16px 0 12px; font-size: clamp(1.35rem, 2.1vw, 1.85rem); }
.scene-text > p:not(.scene-tag) { color: var(--ink-soft); max-width: 36ch; }
.scene-points { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; font-weight: 700; font-size: .95rem; }
.scene-points li { display: flex; align-items: center; gap: 10px; }
.scene-points li::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--butter); box-shadow: inset -3px -3px 0 rgba(160, 110, 20, .3); }

/* телефон */
.phone { position: relative; width: 100%; max-width: 320px; justify-self: center; padding: 9px; border-radius: 46px; background: var(--ink);
  box-shadow: inset 0 0 0 2px #54463d, 0 34px 50px -30px rgba(42, 33, 28, .75); rotate: -2deg; }
.notch { position: absolute; z-index: 2; top: 17px; left: 50%; translate: -50% 0; width: 82px; height: 22px; border-radius: 999px; background: var(--ink); }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 42px 16px 12px; border-radius: 37px 37px 0 0; background: #fff; border-bottom: 1px solid #ece9f7; }
.phone-top b { display: block; font-size: .88rem; line-height: 1.3; }
.phone-top small { color: var(--peri-ink); font-weight: 700; font-size: .76rem; }
.ava { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(140deg, var(--peri), #b06fd8); color: #fff; font-family: var(--display); font-weight: 800; }
.chat { height: 330px; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth;
  background: radial-gradient(rgba(67, 71, 201, .11) 1px, transparent 1.6px) 0 0 / 14px 14px, #e9eafc; }
.chat > div { max-width: 86%; padding: 9px 13px; border-radius: 18px; font-size: .86rem; line-height: 1.45; animation: msg .35s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes msg { from { opacity: 0; transform: translateY(8px); } }
.msg-b { background: #fff; align-self: flex-start; border-bottom-left-radius: 5px; box-shadow: 0 1px 2px rgba(40, 40, 90, .12); }
.msg-u { background: var(--peri-ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 5px; }
.msg-u::after { content: ' ✓✓'; font-size: .7rem; opacity: .7; }
.msg-n { background: var(--butter-soft); align-self: flex-start; outline: var(--stitch); outline-offset: -4px; }
.msg-s { align-self: center !important; padding: 4px 12px !important; border-radius: 999px !important; background: rgba(47, 122, 88, .12) !important; color: #2f7a58; font-size: .76rem !important; font-weight: 800; }
.chat .typing { display: flex; gap: 4px; padding: 12px 14px; }
/* відповіді — як інлайн-клавіатура Telegram */
.replies { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-height: 66px; padding: 10px 10px 16px; border-radius: 0 0 37px 37px; background: #fff; }
.rp { min-height: 44px; padding: 8px 10px; border: 0; border-radius: 12px; background: var(--peri-soft); color: var(--peri-ink);
  font: 700 .8rem "Manrope", sans-serif; cursor: pointer; transition: background .2s; }
.rp:last-child:nth-child(odd) { grid-column: 1 / -1; }
.rp:hover { background: #d9dbff; }

/* таблиця на кінці нитки */
.sheet-wrap { position: relative; align-self: center; }
.yarn-link { position: absolute; right: 100%; top: 0; width: 56px; height: 100%; overflow: visible; }
.yarn-link path { fill: none; stroke: #d4ad40; stroke-width: 4; stroke-linecap: round; stroke-dasharray: .1 9; vector-effect: non-scaling-stroke; }
.yarn-ball { position: absolute; z-index: 2; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; pointer-events: none;
  background: var(--butter); box-shadow: inset -3px -3px 0 rgba(160, 110, 20, .35), 0 3px 6px -2px rgba(110, 80, 40, .5); opacity: 0; transition: opacity .2s; }
.sheet { border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 26px 40px -28px rgba(42, 33, 28, .6); rotate: 1.5deg; }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--sage); }
.sheet-ico { flex: none; width: 32px; height: 32px; padding: 6px; border-radius: 10px; background: #2f7a58; fill: none; stroke: #fff; stroke-width: 2; }
.sheet-head b { display: block; font-size: .9rem; line-height: 1.3; }
.sheet-head small { color: #2f6b4f; font-weight: 700; font-size: .76rem; }
.sheet table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.sheet th, .sheet td { padding: 9px 12px; text-align: left; border-bottom: 1px solid #f1ebe0; }
.sheet th { color: var(--ink-soft); font-weight: 700; background: #fbf8f2; }
.sheet td:first-child, .sheet th:first-child { width: 30px; padding-right: 0; color: #a3978c; font-size: .74rem; }
.sheet tr.new td { animation: row 2.4s ease-out; }
@keyframes row { 0%, 30% { background: var(--butter); } }

/* браузер */
.browser { position: relative; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 34px 50px -32px rgba(42, 33, 28, .6); rotate: -1deg; --accent: #4347c9; }
.browser .bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #f4efe6; }
.browser .url { flex: 1; display: flex; align-items: center; gap: 6px; max-width: 260px; margin-left: 12px; padding: 6px 12px; border-radius: 999px; background: #fff; font-size: .74rem; font-weight: 700; color: var(--ink-soft); }
.url svg { width: 12px; height: 12px; fill: none; stroke: #2f7a58; stroke-width: 2.4; }
.site-page { padding: 24px 28px 30px; }
.site-nav { display: flex; gap: 16px; align-items: baseline; font-size: .8rem; color: var(--ink-soft); margin-bottom: 24px; }
.site-nav b { margin-right: auto; color: var(--accent); font-size: .9rem; transition: color .4s; }
.site-hero { display: grid; grid-template-columns: 1fr 130px; gap: 22px; align-items: center; }
.site-page h4 { font-family: var(--display); font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.15; color: var(--accent); margin-bottom: 10px; transition: color .4s; }
.site-page [contenteditable] { border-radius: 8px; outline: 2px dashed transparent; outline-offset: 4px; cursor: text; transition: outline-color .2s, color .4s; }
.site-page [contenteditable]:hover, .site-page [contenteditable]:focus { outline-color: rgba(42, 33, 28, .3); }
.site-page p { color: var(--ink-soft); font-size: .92rem; max-width: 34ch; }
.site-btn { display: inline-block; margin-top: 16px; padding: 9px 18px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: .85rem; transition: background .4s; }
.books { width: 100%; }
.books .bk1 { fill: var(--accent); transition: fill .4s; }
.books .bk2 { fill: color-mix(in srgb, var(--accent) 45%, #fff); transition: fill .4s; }
.books .bk3 { fill: var(--butter); }
.bk-line { stroke: #fff; stroke-width: 3; stroke-linecap: round; opacity: .7; }
.site-sub { margin-top: 26px; font-weight: 800; font-size: .78rem !important; color: var(--ink-soft); }
.site-events { display: grid; gap: 8px; margin-top: 10px; }
.ev { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 10%, #fff); animation: msg .4s cubic-bezier(.2, .9, .3, 1) both; transition: background .4s; }
.ev b { font-family: var(--display); font-size: 1.3rem; color: var(--accent); transition: color .4s; }
.ev small { color: var(--ink-soft); margin-left: -6px; }
.ev span { font-weight: 700; font-size: .9rem; }
.edit-hint { position: absolute; top: 9px; right: 14px; padding: 6px 12px; border-radius: 999px; background: var(--butter); font-weight: 800; font-size: .76rem;
  box-shadow: var(--shadow); animation: hint 2.4s ease-in-out infinite; transition: opacity .3s; pointer-events: none; }
@keyframes hint { 50% { transform: translateY(-4px); } }
.browser.edited .edit-hint { opacity: 0; }
.toast { position: absolute; right: 14px; bottom: 14px; padding: 7px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.toast.on { opacity: 1; transform: none; }

/* панель керування сайтом */
.panel { display: grid; gap: 14px; margin-top: 26px; padding: 20px 22px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); outline: var(--stitch); outline-offset: -7px; }
.panel-title { font-weight: 800; font-size: .78rem; color: var(--ink-soft); }
.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; font-size: .9rem; }
.swatches { display: flex; gap: 10px; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; background: var(--c); box-shadow: var(--shadow); cursor: pointer; }
.sw[aria-pressed="true"] { outline: 3px solid var(--ink); outline-offset: 2px; }
.add-ev { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 0; background: var(--butter); color: var(--ink); font: 800 .88rem "Manrope", sans-serif; cursor: pointer; }
.add-ev:hover { background: #fbe39b; }

@media (max-width: 1100px) {
  .scene-bot { grid-template-columns: 1fr 1fr; }
  .scene-bot .scene-text { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .scene, .scene-bot, .scene-site { grid-template-columns: 1fr; gap: 30px; padding: 30px 18px; }
  .scene-site .scene-text { order: -1; }
  .yarn-link, .yarn-ball { display: none; }
  .phone, .sheet, .browser { rotate: none; }
  .site-hero { grid-template-columns: 1fr; }
  .books { display: none; }
  .site-page { padding: 20px; }
}

/* ---------- контакти: фетрова латка з пришитими рядками ---------- */
.contact-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 60px;
  border-radius: 44px 38px 46px 40px; background: var(--butter-soft) var(--noise); background-blend-mode: multiply;
  box-shadow: var(--shadow); outline: var(--stitch); outline-offset: -14px;
}
.contact-text h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); max-width: 12em; }
.contact-text .lead { margin-top: 20px; max-width: 30em; }
.contact-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.c-row {
  display: flex; align-items: center; gap: 16px; padding: 14px 20px 14px 14px; border-radius: 24px; background: #fff;
  text-decoration: none; box-shadow: var(--shadow); outline: 2px dashed rgba(42, 33, 28, .16); outline-offset: -6px;
  transition: transform .3s cubic-bezier(.2, .9, .3, 1), background .2s;
}
.c-row:hover { transform: translateX(6px); background: color-mix(in srgb, var(--t) 45%, #fff); }
.c-ico { flex: none; width: 50px; height: 50px; padding: 12px; border-radius: 50%; background: var(--t); fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c-row b { display: block; font-family: var(--display); font-weight: 600; font-size: .98rem; }
.c-row small { color: var(--ink-soft); font-size: .9rem; }
.c-mail { display: flex; gap: 10px; }
.c-mail .c-row { flex: 1; min-width: 0; }
.copy { flex: none; padding: 0 18px; border-radius: 24px; border: 0; background: #fff; color: var(--ink); font: 800 .85rem "Manrope", sans-serif; cursor: pointer; box-shadow: var(--shadow); outline: 2px dashed rgba(42, 33, 28, .16); outline-offset: -6px; }
.copy:hover { background: var(--butter); }

/* ---------- ягнятко-помічник ---------- */
.buddy { position: fixed; right: 16px; bottom: 12px; z-index: 60; display: flex; align-items: flex-end; gap: 6px; pointer-events: none; visibility: hidden; }
.buddy.show { visibility: visible; }
.buddy-lamb { width: 96px; height: 120px; padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; border-radius: 50%; }
.buddy-bubble {
  max-width: 220px; margin-bottom: 80px; padding: 10px 14px; border-radius: 18px 18px 4px 18px;
  background: #fff; box-shadow: var(--shadow); outline: var(--stitch); outline-offset: -6px; font-size: .88rem; font-weight: 700;
  opacity: 0; scale: .8; transform-origin: bottom right; transition: opacity .3s, scale .4s cubic-bezier(.2, .9, .3, 1);
}
.buddy-bubble.on { opacity: 1; scale: 1; }

/* ---------- рух ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .8s cubic-bezier(.2, .9, .2, 1); transition-delay: calc(min(var(--i), 14) * 30ms); }
.split.in .w > span { transform: none; }
.split.reveal { opacity: 1; transform: none; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.blob {
  position: fixed; left: 0; top: 0; z-index: 90; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 35% 30%, #fffbe8, var(--butter));
  box-shadow: 0 4px 10px rgba(160, 120, 40, .3);
  opacity: 0; transition: scale .25s cubic-bezier(.2, .9, .3, 1), opacity .3s;
}
.blob.on { opacity: 1; }
.blob.big { scale: 2.3; opacity: .55; }
@media (hover: none), (pointer: coarse) { .blob { display: none; } }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-free, .tile-paid { grid-column: span 2; }
  .tile-paid { flex-direction: column; align-items: flex-start; padding-left: 28px; padding-right: 28px; }
  .services, .steps, .demo-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; gap: 28px; padding: 40px 28px; }
  .thread, .pulse { display: none; }
}
@media (max-width: 760px) {
  .story { left: 16px; right: 16px; top: 15vh; translate: none; width: auto; text-align: center; }
  .story-line { top: 0; translate: none; }
  .story-line p { margin: 0 auto; font-size: 1rem; }
  .bubble { width: min(260px, 70vw); }
  .giant-sub { font-size: .95rem; }
  .bento { grid-template-columns: 1fr; }
  .tile-free, .tile-paid { grid-column: auto; grid-row: auto; }
  .tile-yarn { width: 76px; }
  .block { padding: 90px 16px; }
  .demo { padding: 18px; }
  .contact-card { padding: 34px 20px; }
  .c-mail { flex-direction: column; }
  .copy { min-height: 48px; }
  .float { width: 64px !important; }
  .scroll-hint { right: 50%; translate: 50% 0; }
  .buddy-lamb { width: 76px; height: 96px; }
  .footer { padding-right: 16px; padding-bottom: 150px; }
  .buddy-bubble { max-width: 180px; margin-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .split .w > span { transform: none; }
  .thread path { stroke-dashoffset: 0; }
  .blob { display: none; }
}
