/* Полезнямки — новая версия. Цвета и шрифты из брендбука (как на poleznyamki.ru). */
@font-face { font-family: "Uncage"; src: url(/assets/fonts/Uncage-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tilda Sans"; src: url(/assets/fonts/TildaSans-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tilda Sans"; src: url(/assets/fonts/TildaSans-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --purple: #834F8D; --purple-d: #6B3F74; --lilac: #AE79B3; --green: #5BB56C; --green-d: #3f9a52;
  --brown: #AE5819; --orange-d: #D86B15; --orange: #F28A04; --yellow: #F7A700; --ink: #1D1D1B;
  --purple-soft: #F4ECF5; --green-soft: #E7F4E9; --yellow-soft: #FEF1CE; --orange-soft: #FDEBDA;
  --bg: #FAF7F3; --paper: #FFFFFF; --muted: #67615C; --line: #ECE4DC;
  --head: "Uncage", "Tilda Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Tilda Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 24px;
  --shadow: 0 1px 2px rgba(29, 29, 27, .06), 0 12px 32px rgba(29, 29, 27, .08);
  --shadow-lg: 0 2px 4px rgba(29, 29, 27, .05), 0 30px 60px -20px rgba(107, 63, 116, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --top: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 17px/1.55 var(--body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .4 0 0 0 0 .3 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::selection { background: var(--purple); color: #fff; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--purple); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(1180px, 100% - 64px); } }
.muted { color: var(--muted); }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s; }
.btn:active { transform: scale(.97); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn--primary { background: var(--purple); color: #fff; box-shadow: 0 8px 22px -6px rgba(131, 79, 141, .55); }
.btn--primary:hover { background: var(--purple-d); transform: translateY(-2px); }
.btn--ghost { border: 1.5px solid var(--line); background: var(--paper); }
.btn--ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn--light { background: #fff; color: var(--purple-d); }
.btn--light:hover { transform: translateY(-2px); }
.btn--outline { border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; }
.btn--outline:hover { background: rgba(255, 255, 255, .12); }
.btn svg { width: 18px; height: 18px; }
.link { color: var(--purple); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* аватар Полли: фиолетовый «шарик» с листиком из логотипа */
.polly-av { --s: 44px; position: relative; display: inline-block; width: var(--s); height: var(--s); flex: none; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #b98bc0 0, var(--purple) 46%, var(--purple-d) 100%); box-shadow: inset 0 -3px 6px rgba(0, 0, 0, .15), 0 6px 16px -6px rgba(131, 79, 141, .7); }
.polly-av::before { /* листик */
  content: ''; position: absolute; width: 46%; height: 46%; right: -10%; top: -16%; border-radius: 0 70% 0 70%;
  background: linear-gradient(135deg, #7fd38d, var(--green)); transform: rotate(-8deg); box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
}
.polly-av::after { /* глаза: левый — сам элемент, правый — его тень */
  content: ''; position: absolute; left: 31%; top: 42%; width: 15%; height: 17%; border-radius: 50%;
  background: #fff; box-shadow: calc(var(--s) * .23) 0 0 #fff;
  animation: pblink 5s infinite;
}
.polly-av--xs { --s: 26px; }
.polly-av--sm { --s: 36px; }
.polly-av--lg { --s: 60px; }
.polly-av.is-thinking::after { animation: plook 1.2s ease-in-out infinite; }
@keyframes pblink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.15); } }
@keyframes plook { 50% { transform: translateX(10%); } }

/* шапка */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--top); transition: background .3s, box-shadow .3s; }
.top.is-solid { background: rgba(250, 247, 243, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo img { width: 176px; height: auto; }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a { text-decoration: none; font-size: 15px; color: var(--muted); white-space: nowrap; transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--purple); }
.top__polly { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px 0 7px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; white-space: nowrap; transition: border-color .2s; }
.top__polly:hover { border-color: var(--purple); }
.top__burger { display: none; width: 44px; height: 44px; border-radius: 14px; background: var(--paper); border: 1.5px solid var(--line); position: relative; }
.top__burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.top__burger span:first-child { top: 16px; }
.top__burger span:last-child { bottom: 16px; }
.top__burger[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.top__burger[aria-expanded="true"] span:last-child { bottom: 20px; transform: rotate(-45deg); }
@media (max-width: 1120px) { .nav { gap: 16px; } .top__join { display: none; } }
@media (max-width: 940px) {
  .top__burger { display: block; }
  .top__polly { margin-left: auto; }
  .nav { position: fixed; inset: var(--top) 0 auto; flex-direction: column; gap: 0; padding: 8px 16px 20px; background: rgba(250, 247, 243, .97); backdrop-filter: blur(14px); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .2); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .3s var(--ease); }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 14px 4px; font-size: 18px; color: var(--ink); border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) { .logo img { width: 140px; } .top__polly { padding: 0 12px 0 6px; font-size: 13px; } .top__in { gap: 10px; } }

/* общее для секций */
.sec { position: relative; padding: clamp(72px, 10vw, 124px) 0; }
.head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 48px); }
.head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 18px 40px; }
.head--row > div { max-width: 640px; }
.head--row > p { max-width: 440px; margin: 0; color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; color: var(--purple); margin-bottom: 16px; }
.kicker::before { content: ''; width: 18px; height: 18px; background: var(--green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4c-8 0-14 4-14 11 0 1.8.6 3.3 1.5 4.5C9 14 12.5 10.6 17 9c-3.8 2.3-6.6 5.5-8 10.3.9.5 2 .7 3 .7 6 0 8-6 8-16z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4c-8 0-14 4-14 11 0 1.8.6 3.3 1.5 4.5C9 14 12.5 10.6 17 9c-3.8 2.3-6.6 5.5-8 10.3.9.5 2 .7 3 .7 6 0 8-6 8-16z'/%3E%3C/svg%3E") center / contain no-repeat; }
h2 { font: 500 clamp(32px, 4.6vw, 58px)/1.02 var(--head); text-transform: uppercase; letter-spacing: .005em; margin: 0; text-wrap: balance; }
.head p { color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); margin: 16px 0 0; }
.hl { background: linear-gradient(transparent 60%, var(--yellow-soft) 60%); padding: 0 .06em; }
h2 .hl { color: var(--purple); background: linear-gradient(transparent 64%, rgba(247, 167, 0, .28) 64%); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.row-center { display: flex; align-items: center; justify-content: center; gap: 12px 22px; flex-wrap: wrap; margin-top: 30px; }
.row-center a:not(.btn) { color: var(--purple); font-weight: 700; }

/* ——— первый экран ——— */
.hero { position: relative; padding: calc(var(--top) + 40px) 0 0; overflow: hidden; }
.hero__blobs i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: -1; animation: drift 18s ease-in-out infinite alternate; }
.hero__blobs .b1 { width: 520px; height: 520px; background: #e8d4ec; right: -120px; top: -60px; }
.hero__blobs .b2 { width: 380px; height: 380px; background: #d7efdb; left: -140px; top: 280px; animation-delay: -6s; }
.hero__blobs .b3 { width: 300px; height: 300px; background: #fde5b4; right: 22%; top: 420px; animation-delay: -12s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: 15px; margin: 0 0 22px; box-shadow: 0 2px 8px rgba(0, 0, 0, .03); }
.eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(91, 181, 108, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(91, 181, 108, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 181, 108, 0); } }
.hero__title { font: 500 clamp(38px, 6.6vw, 94px)/.98 var(--head); text-transform: uppercase; letter-spacing: -.005em; margin: 0 0 34px; }
.hero__title .ln { display: flex; align-items: center; flex-wrap: wrap; gap: 0 .22em; }
.hero__title .w { display: inline-block; opacity: 0; transform: translateY(40%); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.hero__title .ln:nth-child(2) .w { transition-delay: .12s; }
.hero__title .ln:nth-child(3) .w { transition-delay: .24s; }
.is-loaded .hero__title .w { opacity: 1; transform: none; }
.hero__title .w.hl { color: var(--purple); background: linear-gradient(transparent 66%, rgba(247, 167, 0, .35) 66%); }
.pill { position: relative; display: inline-block; width: 1.9em; height: .82em; border-radius: 999px; overflow: hidden; background: var(--purple-soft); vertical-align: middle; box-shadow: var(--shadow); transform: scale(0) rotate(-6deg); transition: transform .9s var(--ease) .35s; }
.pill--round { width: .82em; }
.is-loaded .pill { transform: none; }
.pill img { width: 100%; height: 100%; object-fit: cover; transition: opacity .8s; }
.pill img + img { position: absolute; inset: 0; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.hero__lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); margin: 0 0 26px; max-width: 580px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.ask { display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 8px 8px 8px 10px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.ask:focus-within { border-color: var(--purple); box-shadow: 0 0 0 5px rgba(131, 79, 141, .12), var(--shadow); }
.ask input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; height: 44px; }
.ask input::placeholder { color: #9a928b; }
.ask button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--purple); color: #fff; transition: transform .2s; }
.ask button:hover { transform: rotate(-12deg) scale(1.05); }
.hero__side { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.stats div { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; box-shadow: 0 2px 8px rgba(0, 0, 0, .03); }
.stats dt { font: 500 clamp(22px, 2.4vw, 30px)/1.05 var(--head); color: var(--purple); }
.stats dt.sm { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.2; }
.stats dd { margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.3; }
.sticker { position: relative; width: 150px; height: 150px; border-radius: 50%; background: var(--yellow); box-shadow: var(--shadow-lg); display: grid; place-items: center; transform: rotate(-8deg); }
.sticker svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.sticker text { font: 500 13.4px var(--head); letter-spacing: .12em; text-transform: uppercase; fill: var(--ink); stroke: none; }
.sticker__leaf { width: 58px; height: 58px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.sticker__leaf svg { position: static; width: 30px; height: 30px; fill: var(--green); stroke: none; animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.open-now { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 10px; justify-self: start; padding: 10px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; font-size: 15px; }
.open-now i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.open-now.is-open { color: var(--green-d); }
.open-now.is-open i { animation: ping 2s infinite; box-shadow: 0 0 0 0 rgba(91, 181, 108, .6); }
.open-now.is-closed { color: var(--brown); }
.open-now span { color: var(--muted); }
.shelf { margin-top: 56px; padding: 18px 0 30px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.shelf__track { display: flex; gap: 18px; width: max-content; animation: slide 60s linear infinite; }
.shelf:hover .shelf__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.jar { position: relative; flex: none; width: 250px; text-decoration: none; background: var(--paper); border-radius: 22px; padding: 10px; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; transform: rotate(var(--r, 0deg)); }
.jar:hover { transform: rotate(0) translateY(-6px); box-shadow: var(--shadow-lg); }
.jar img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 15px; background: var(--purple-soft); }
.jar b { display: block; font-size: 15px; line-height: 1.25; margin: 10px 4px 2px; }
.jar .tag { position: absolute; left: 18px; top: 18px; }
.tag { display: inline-block; font: 500 11px/1 var(--head); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px 6px; border-radius: 8px; background: var(--yellow); color: var(--ink); }
.tag--new { background: var(--green); color: #fff; }
.tag--top { background: var(--purple); color: #fff; }
.tag--season { background: var(--orange); color: #fff; }
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__side { grid-template-columns: 1fr; }
  .sticker { position: absolute; right: 0; top: -80px; width: 120px; height: 120px; }
  .sticker text { font-size: 15px; }
}
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--top) + 24px); }
  .hero__title { margin-bottom: 24px; font-size: 8.3vw; }
  .sticker { display: none; }
  .jar { width: 200px; }
  .hero__cta .btn { flex: 1 1 auto; }
}

/* лента */
.ribbon { overflow: hidden; background: var(--purple); color: #fff; padding: 16px 0; transform: rotate(-1.4deg); margin: 10px -2% 0; box-shadow: 0 16px 40px -20px rgba(107, 63, 116, .7); }
.ribbon__track { display: flex; width: max-content; animation: slide 50s linear infinite; }
.ribbon__track span { display: inline-flex; align-items: center; gap: 22px; padding: 0 22px; font: 500 clamp(17px, 1.8vw, 22px)/1 var(--head); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.ribbon__track span::after { content: ''; width: 20px; height: 20px; background: #9be3a8; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4c-8 0-14 4-14 11 0 1.8.6 3.3 1.5 4.5C9 14 12.5 10.6 17 9c-3.8 2.3-6.6 5.5-8 10.3.9.5 2 .7 3 .7 6 0 8-6 8-16z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4c-8 0-14 4-14 11 0 1.8.6 3.3 1.5 4.5C9 14 12.5 10.6 17 9c-3.8 2.3-6.6 5.5-8 10.3.9.5 2 .7 3 .7 6 0 8-6 8-16z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ——— что такое СП ——— */
.flow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.flow__path { position: absolute; left: 0; right: 0; top: 34px; width: 100%; height: 120px; z-index: 0; }
.flow__path path { fill: none; stroke: var(--lilac); stroke-width: 2.5; stroke-dasharray: 8 10; stroke-linecap: round; opacity: .6; }
.flow__step { position: relative; z-index: 1; background: var(--paper); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.flow__n { position: absolute; right: 20px; top: 14px; font: 500 64px/1 var(--head); color: var(--purple-soft); }
.flow__ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-d); margin-bottom: 18px; }
.flow__ic svg { width: 28px; height: 28px; }
.flow__step:nth-child(3) .flow__ic { background: var(--yellow-soft); color: var(--brown); }
.flow__step:nth-child(4) .flow__ic { background: var(--purple-soft); color: var(--purple); }
.flow h3 { font: 700 21px/1.2 var(--body); margin: 0 0 8px; }
.flow p { margin: 0; color: var(--muted); }
.hand-note { margin: 34px 0 0; text-align: center; font: 500 clamp(20px, 2.2vw, 28px)/1.2 var(--head); text-transform: uppercase; color: var(--brown); transform: rotate(-1.5deg); }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } .flow__path { display: none; } }

/* ——— квиз ——— */
.quiz-sec { background: linear-gradient(180deg, transparent, var(--purple-soft) 18%, var(--purple-soft) 82%, transparent); }
.quiz-sec__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.quiz { position: relative; background: var(--paper); border-radius: 28px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-lg); min-height: 420px; }
.quiz__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.quiz__dots { display: flex; gap: 6px; }
.quiz__dots i { width: 32px; height: 6px; border-radius: 6px; background: var(--line); transition: background .4s; }
.quiz__dots i.on { background: var(--purple); }
.quiz__back { font-size: 14px; color: var(--muted); font-weight: 700; }
.quiz__back:hover { color: var(--purple); }
.quiz h3 { font: 700 clamp(22px, 2.2vw, 28px)/1.2 var(--body); margin: 0 0 6px; }
.quiz__hint { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--bg); text-align: left; font-weight: 700; font-size: 16px; transition: border-color .2s, background .2s, transform .2s; animation: optin .45s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }
@keyframes optin { from { opacity: 0; transform: translateY(10px); } }
.opt:hover { border-color: var(--lilac); transform: translateY(-2px); }
.opt[aria-pressed="true"] { border-color: var(--purple); background: var(--purple-soft); }
.opt__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); font-size: 20px; flex: none; }
.opt small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.quiz__next { margin-top: 20px; }
.receipt { position: relative; background: #fffdf8; border-radius: 6px; padding: 26px 24px 30px; font-family: var(--body); box-shadow: 0 1px 0 var(--line); animation: optin .6s var(--ease) both;
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 50% 100% / 18px 100% repeat-x; mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 50% 100% / 18px 100% repeat-x; }
.receipt__h { text-align: center; border-bottom: 2px dashed var(--line); padding-bottom: 14px; margin-bottom: 14px; }
.receipt__h b { display: block; font: 500 22px/1.1 var(--head); text-transform: uppercase; color: var(--purple); }
.receipt__h span { font-size: 13px; color: var(--muted); }
.receipt__row { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; padding: 4px 0; }
.receipt__row span { color: var(--muted); }
.receipt__row b { text-align: right; }
.receipt__plan { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 2px dashed var(--line); counter-reset: s; display: grid; gap: 12px; }
.receipt__plan li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; font-size: 15px; }
.receipt__plan li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--purple); color: #fff; font-weight: 700; font-size: 14px; }
.receipt__plan a { color: var(--purple); font-weight: 700; }
.receipt__albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.receipt__albums a { display: flex; gap: 8px; align-items: center; padding: 6px; border-radius: 12px; background: var(--bg); text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--ink) !important; }
.receipt__albums img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; flex: none; }
.receipt__total { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 2px dashed var(--line); font: 500 18px var(--head); text-transform: uppercase; }
.quiz__end { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 900px) { .quiz-sec__grid { grid-template-columns: 1fr; gap: 0; } }

/* ——— сейчас в закупке ——— */
.live-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.live-dot.is-live { color: var(--green-d); }
.live-dot.is-live::before { background: var(--green); animation: ping 2s infinite; box-shadow: 0 0 0 0 rgba(91, 181, 108, .6); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chips button { height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: 15px; transition: .2s; }
.chips button:hover { border-color: var(--lilac); }
.chips button[aria-checked="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.fresh { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.fcard { position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; animation: optin .5s var(--ease) both; animation-delay: calc(var(--i) * 60ms); }
.fcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.fcard__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--purple-soft); }
.fcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.fcard:hover .fcard__img img { transform: scale(1.06); }
.fcard .tag { position: absolute; left: 14px; top: 14px; }
.fcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fcard h3 { margin: 0; font: 700 19px/1.25 var(--body); }
.fcard p { margin: 0; color: var(--muted); font-size: 15px; }
.fcard__go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; color: var(--purple); font-weight: 700; font-size: 15px; }
.fcard__go svg { width: 16px; height: 16px; transition: transform .2s; }
.fcard:hover .fcard__go svg { transform: translate(2px, -2px); }
.fresh__empty { grid-column: 1 / -1; padding: 30px; border: 2px dashed var(--line); border-radius: var(--r); text-align: center; color: var(--muted); }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 12px; margin-top: 30px; }
.cat { position: relative; overflow: hidden; border-radius: 20px; text-decoration: none; color: #fff; background: var(--purple-d); }
.cats[data-big="4"] .cat:first-child { grid-row: span 2; grid-column: span 2; }
.cats[data-big="2"] .cat:first-child { grid-row: span 2; }
.cats[data-wide-last="true"] .cat:last-child { grid-column: span 2; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(29, 20, 32, .78)); }
.cat:hover img { transform: scale(1.07); }
.cat span { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; font-weight: 700; font-size: 18px; line-height: 1.2; }
.cat small { display: block; font-weight: 500; font-size: 13px; opacity: .85; margin-top: 3px; }
.cats[data-big="4"] .cat:first-child span, .cats[data-big="2"] .cat:first-child span { font-size: 24px; }
.cat.is-dim { opacity: .35; filter: grayscale(.5); }
@media (max-width: 860px) { .cats { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } .cats .cat:first-child { grid-column: span 2; grid-row: span 1; } .cats[data-wide-last] .cat:last-child { grid-column: auto; } .cats .cat:nth-child(even):last-child { grid-column: span 2; } }

/* ——— как заказать ——— */
.how__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.steps { list-style: none; margin: 0 0 24px; padding: 0; counter-reset: st; display: grid; gap: 12px; }
.steps li { counter-increment: st; position: relative; padding: 20px 22px 20px 82px; background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); }
.steps li::before { content: counter(st); position: absolute; left: 20px; top: 18px; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 500 22px var(--head); background: var(--purple-soft); color: var(--purple); }
.steps b { font-size: 19px; }
.steps p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.steps .link { display: inline-block; margin-top: 8px; font-size: 15px; }
.help { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; padding: 20px 22px; border-radius: 22px; background: var(--yellow-soft); }
.help b { font-size: 18px; }
.help p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.help__btns { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.phone { margin: 0; position: sticky; top: calc(var(--top) + 24px); }
.phone__frame { position: relative; width: min(330px, 100%); margin-inline: auto; aspect-ratio: 9 / 16; border-radius: 38px; padding: 10px; background: var(--ink); box-shadow: var(--shadow-lg), inset 0 0 0 2px #3a3a38; }
.phone__frame video { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; background: #000; }
.phone__play { position: absolute; inset: 10px; border-radius: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; background: rgba(29, 20, 32, .25); transition: background .3s; }
.phone__play:hover { background: rgba(29, 20, 32, .1); }
.phone__play svg { width: 74px; height: 74px; padding: 20px 18px 20px 22px; border-radius: 50%; background: var(--purple); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.phone__play span { font-weight: 700; background: rgba(0, 0, 0, .45); padding: 6px 12px; border-radius: 999px; font-size: 14px; }
.phone.is-playing .phone__play { opacity: 0; pointer-events: none; }
.phone figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }
@media (max-width: 900px) { .how__grid { grid-template-columns: 1fr; } .phone { position: relative; top: 0; order: -1; } .phone__frame { width: min(280px, 80%); } }

/* ——— получение ——— */
.tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); gap: 4px; }
.tabs button { height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--muted); white-space: nowrap; transition: .25s; }
.tabs button[aria-selected="true"] { background: var(--purple); color: #fff; }
.tabpanel { animation: optin .45s var(--ease); }
.get__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.place { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--paper); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.place__photo { background: var(--purple-soft); min-height: 320px; }
.place__photo img { width: 100%; height: 100%; object-fit: cover; }
.place__body { padding: 26px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.place__body h3 { font: 500 26px/1.1 var(--head); text-transform: uppercase; margin: 0; }
.place__status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.place__status i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.place__status.is-open { color: var(--green-d); }
.place__status.is-closed { color: var(--brown); }
.route-steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 15px; display: grid; gap: 4px; }
.hours { display: flex; gap: 16px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.hours b { color: var(--ink); }
.get__tips { display: grid; gap: 12px; }
.tip { display: flex; gap: 14px; padding: 18px; border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); }
.tip svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--green-soft); color: var(--green-d); }
.tip b { font-size: 17px; }
.tip p { margin: 3px 0 0; color: var(--muted); font-size: 15px; }
.ship { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 40px; align-items: start; background: var(--paper); border-radius: 28px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); }
.ship__logos { display: flex; gap: 8px; margin-bottom: 14px; }
.ship__logos span { padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; background: var(--green-soft); color: var(--green-d); }
.ship__logos span + span { background: #e6eefc; color: #1f4fbf; }
.ship h3 { font: 500 clamp(24px, 2.4vw, 32px)/1.1 var(--head); text-transform: uppercase; margin: 0 0 10px; }
.ship p { color: var(--muted); margin: 0 0 18px; }
.cityline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: var(--bg); }
.cityline label { font-weight: 700; font-size: 14px; }
.cityline input { flex: 1; min-width: 140px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 12px; background: var(--paper); outline: 0; }
.cityline input:focus { border-color: var(--purple); }
#cityOut { flex-basis: 100%; font-size: 14px; color: var(--green-d); font-weight: 700; min-height: 0; }
.ship__steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.ship__steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; gap: 2px 12px; }
.ship__steps li::before { content: counter(s); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow-soft); color: var(--brown); font: 500 17px var(--head); }
.ship__steps span { color: var(--muted); font-size: 15px; }
.ship > .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 980px) { .get__grid, .ship { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .place { grid-template-columns: 1fr; } .place__photo { min-height: 220px; } .tabs { width: 100%; } .tabs button { flex: 1; padding: 0 10px; font-size: 14px; } }

/* ——— почему клуб ——— */
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perk { padding: 24px; border-radius: 24px; background: var(--c); transform: rotate(var(--r)); transition: transform .4s var(--ease); }
.perk.reveal { transform: translateY(26px) rotate(var(--r)); }
.perk.reveal.in { transform: rotate(var(--r)); }
.perk:hover, .perk.reveal.in:hover { transform: rotate(0) scale(1.02); }
.perk svg { width: 48px; height: 48px; padding: 11px; border-radius: 15px; background: var(--paper); color: var(--purple); margin-bottom: 14px; }
.perk b { display: block; font-size: 19px; margin-bottom: 6px; }
.perk p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) { .perks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .perks { grid-template-columns: 1fr; } }

/* ——— Юлия ——— */
.about__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.about__photo { position: relative; margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 200px 200px 28px 28px; box-shadow: var(--shadow-lg); }
.tagline { position: absolute; right: -10px; bottom: 30px; background: var(--paper); box-shadow: var(--shadow); border-radius: 18px; padding: 10px 16px; font: 500 18px var(--head); color: var(--purple); transform: rotate(4deg); }
.about__text p { color: var(--muted); font-size: 18px; }
.sign { font: 500 26px var(--head); color: var(--brown) !important; transform: rotate(-2deg); display: inline-block; }
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; gap: 30px; } .about__photo { max-width: 360px; } }

/* ——— отзывы ——— */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.note { position: relative; margin: 0; padding: 30px 24px 22px; background: var(--c); border-radius: 6px; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .3); transform: rotate(var(--r)); transition: transform .4s var(--ease); }
.note.reveal { transform: translateY(26px) rotate(var(--r)); }
.note.reveal.in { transform: rotate(var(--r)); }
.note::before { content: ''; position: absolute; left: 50%; top: -12px; width: 90px; height: 26px; translate: -50% 0; background: rgba(255, 255, 255, .6); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); transform: rotate(-3deg); }
.note:hover, .note.reveal.in:hover { transform: rotate(0) translateY(-4px); }
.note blockquote { margin: 0 0 14px; font-size: 17px; line-height: 1.5; }
.note figcaption { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .notes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .notes { grid-template-columns: 1fr; } }

/* ——— статьи ——— */
.reads__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rcard { display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.rcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.rcard img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--purple-soft); }
.rcard div { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rcard .kicker { margin: 0; font-size: 12px; }
.rcard h3 { margin: 0; font: 700 19px/1.25 var(--body); }
.rcard p { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rcard small { margin-top: auto; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .reads__grid { grid-template-columns: 1fr; } .rcard { flex-direction: row; } .rcard img { width: 38%; aspect-ratio: auto; } }
@media (max-width: 560px) { .rcard { flex-direction: column; } .rcard img { width: 100%; aspect-ratio: 3 / 2; } }

/* ——— вопросы ——— */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq .head .btn { margin-top: 24px; gap: 10px; padding-left: 8px; }
.faq__list { display: grid; gap: 10px; }
.faq details { background: var(--paper); border-radius: 20px; box-shadow: var(--shadow); transition: background .3s; }
.faq details[open] { background: #fffcf6; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 22px; font-weight: 700; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--purple-soft); color: var(--purple); font-size: 20px; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }
.faq details a { color: var(--purple); font-weight: 700; }
@media (max-width: 900px) { .faq__grid { grid-template-columns: 1fr; gap: 10px; } }

/* ——— вступить ——— */
.join { padding-top: 0; }
.join__box { position: relative; overflow: hidden; text-align: center; color: #fff; border-radius: 36px; padding: clamp(40px, 6vw, 80px) 24px; background: radial-gradient(100% 120% at 0% 0%, #9b62a6, transparent 60%), radial-gradient(80% 100% at 100% 100%, #5e3566, transparent 60%), var(--purple); box-shadow: var(--shadow-lg); }
.join__leaves { position: absolute; inset: 0; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M20 4c-8 0-14 4-14 11 0 1.8.6 3.3 1.5 4.5C9 14 12.5 10.6 17 9c-3.8 2.3-6.6 5.5-8 10.3.9.5 2 .7 3 .7 6 0 8-6 8-16z'/%3E%3C/svg%3E"); background-size: 90px; animation: leaves 40s linear infinite; }
@keyframes leaves { to { background-position: 360px 180px; } }
.join h2 { position: relative; color: #fff; }
.join p { position: relative; max-width: 560px; margin: 16px auto 28px; font-size: 19px; opacity: .92; }
.join__btns { position: relative; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.join__count { position: relative; display: block; margin-top: 26px; font: 500 20px var(--head); text-transform: uppercase; opacity: .95; }

/* ——— подвал ——— */
.foot { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot__in { display: flex; gap: 30px; align-items: flex-start; flex-wrap: wrap; }
.foot p { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--purple); }
.foot .foot__made { margin: 14px 0 0; }
.credit { display: inline-flex; align-items: center; gap: 10px; padding: 7px 15px 7px 13px; border: 1px solid rgba(29, 29, 27, .2); border-radius: 999px; color: var(--muted); font: 500 13px/1 var(--body); letter-spacing: .02em; white-space: nowrap; text-decoration: none; transition: border-color .3s, background .3s, color .3s; }
.credit img { display: block; height: 20px; width: auto; max-width: none; }
.credit:hover { border-color: var(--purple); background: rgba(131, 79, 141, .07); }
.foot__demo { display: inline-block; margin-top: 6px !important; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--line); }

/* ——— Полли: кнопка и чат ——— */
.polly-fab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 7px 18px 7px 7px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); box-shadow: var(--shadow-lg); font-weight: 700; transition: transform .35s var(--ease), opacity .3s; }
.polly-fab:hover { transform: translateY(-3px); border-color: var(--purple); }
.polly-fab small { display: block; font-weight: 500; font-size: 12px; color: var(--green-d); }
.polly-fab.is-hidden { opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none; }
.polly { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: min(420px, calc(100vw - 40px)); height: min(700px, calc(100dvh - 40px)); display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; background: var(--bg); box-shadow: 0 40px 100px -20px rgba(60, 30, 70, .45), 0 0 0 1px var(--line); transform-origin: 100% 100%; transition: transform .45s var(--ease), opacity .3s; }
.polly[hidden] { display: flex; opacity: 0; transform: translateY(16px) scale(.92); pointer-events: none; visibility: hidden; transition: transform .35s var(--ease), opacity .25s, visibility 0s .35s; }
.polly__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--purple); color: #fff; }
.polly__who { flex: 1; min-width: 0; }
.polly__who b { display: block; font: 500 20px/1 var(--head); text-transform: uppercase; }
.polly__who span { display: block; font-size: 13px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.polly__hb { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; opacity: .85; transition: .2s; }
.polly__hb:hover { opacity: 1; background: rgba(255, 255, 255, .14); }
.polly__hb svg { width: 19px; height: 19px; }
.polly__log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 12px 15px; border-radius: 20px; font-size: 15.5px; line-height: 1.5; animation: optin .4s var(--ease) both; overflow-wrap: anywhere; }
.msg--user { align-self: flex-end; background: var(--purple); color: #fff; border-bottom-right-radius: 6px; }
.msg--bot { align-self: flex-start; background: var(--paper); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); border-bottom-left-radius: 6px; }
.msg p { margin: 0 0 8px; }
.msg p:last-child { margin: 0; }
.msg ul, .msg ol { margin: 4px 0 8px; padding-left: 20px; }
.msg a { color: var(--purple); font-weight: 700; }
.msg .w { animation: wordin .4s ease-out both; }
@keyframes wordin { from { opacity: 0; } }
.typing { display: inline-flex; gap: 4px; padding: 15px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--lilac); animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.polly__att { display: flex; flex-direction: column; gap: 8px; animation: optin .5s var(--ease) both; }
.pcard { display: grid; grid-template-columns: 64px 1fr; gap: 3px 12px; align-items: center; padding: 8px; border-radius: 16px; background: var(--paper); text-decoration: none; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); transition: transform .2s; }
.pcard:hover { transform: translateY(-2px); }
.pcard img { grid-row: span 2; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--purple-soft); }
.pcard b { font-size: 14.5px; line-height: 1.25; }
.pcard span { font-size: 13px; color: var(--purple); font-weight: 700; }
.plinks { display: flex; gap: 6px; flex-wrap: wrap; }
.plinks a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--purple); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; }
.plinks a svg { width: 15px; height: 15px; }
.pchips { display: flex; gap: 6px; flex-wrap: wrap; }
.pchips button { padding: 8px 13px; border-radius: 999px; border: 1.5px solid var(--lilac); background: var(--paper); color: var(--purple-d); font-weight: 700; font-size: 13.5px; text-align: left; transition: .2s; }
.pchips button:hover { background: var(--purple-soft); }
.polly__form { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 6px; border-top: 1px solid var(--line); background: var(--paper); }
.polly__form textarea { flex: 1; min-height: 46px; max-height: 130px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg); outline: 0; resize: none; font: 500 15.5px/1.4 var(--body); }
.polly__form textarea:focus { border-color: var(--purple); }
.polly__send { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--purple); color: #fff; flex: none; transition: opacity .2s; }
.polly__send:disabled { opacity: .35; cursor: default; }
.polly__note { margin: 0; padding: 4px 14px 10px; font-size: 11.5px; color: var(--muted); text-align: center; background: var(--paper); }
@media (max-width: 560px) {
  .polly { right: 0; bottom: 0; width: 100%; height: 100dvh; border-radius: 0; }
  .polly-fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
}
body.polly-open-mobile { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .hero__title .w { opacity: 1; transform: none; }
  .pill { transform: none; }
}

/* ═══════════ Перенос на главную (09.10.2026) ═══════════
   Карточки «Сейчас в закупке» и блок статей пишет бот Марк в разметке прежней главной
   (a.fresh-card, a.cat, section.reads с a.read-card) — здесь она выглядит как новый дизайн.
   Плюс то, что было на прежней главной: cookie и Метрика, окно «Вступить в клуб», чат VK,
   нижняя панель на телефоне, карта со входом, кнопка «Как это работает». */

/* наклонная лента шире экрана: обрезаем по горизонтали (clip не мешает position: sticky) */
main { overflow-x: clip; }

/* подзаголовок первого экрана внутри h1 (ключевые слова для поиска); строки заголовка сдвинулись на одну */
.hero__title .eyebrow { display: flex; width: fit-content; font: 500 15px/1.4 var(--body); text-transform: none; letter-spacing: normal; }
.hero__title .ln:nth-child(2) .w { transition-delay: 0s; }
.hero__title .ln:nth-child(3) .w { transition-delay: .12s; }
.hero__title .ln:nth-child(4) .w { transition-delay: .24s; }

/* «▶ Как это работает» */
.btn--play { padding: 0 18px 0 6px; gap: 12px; }
.btn--play .btn__ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--purple); color: #fff; box-shadow: 0 8px 18px -6px rgba(131, 79, 141, .6); transition: transform .25s var(--ease); }
.btn--play .btn__ic svg { width: 16px; height: 16px; margin-left: 2px; }
.btn--play:hover { color: var(--purple); }
.btn--play:hover .btn__ic { transform: scale(1.08); }

/* шапка: ссылка для поставщиков — на широких экранах и в мобильном меню */
.nav .nav__biz { color: var(--purple); font-weight: 700; }
@media (min-width: 941px) and (max-width: 1239px) { .nav .nav__biz { display: none; } }

/* свежие закупки — разметка бота */
.fresh > .fresh-card { position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; animation: optin .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.fresh > .fresh-card[hidden] { display: none !important; }
.fresh > .fresh-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.fresh > .fresh-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--purple-soft); }
.fresh > .fresh-card > div { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fresh > .fresh-card .tag { position: absolute; left: 14px; top: 14px; }
.fresh > .fresh-card h3 { margin: 0; font: 700 19px/1.25 var(--body); }
.fresh > .fresh-card p { margin: 0; color: var(--muted); font-size: 15px; }
.fresh > .fresh-card em { margin-top: auto; padding-top: 8px; font-style: normal; color: var(--purple); font-weight: 700; font-size: 15px; }

/* блок статей — разметка бота (section.reads между метками articles:start/end) */
.reads { position: relative; padding: clamp(72px, 10vw, 124px) 0; }
.reads .section-head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 48px); }
.reads .section-head p { color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); margin: 16px 0 0; }
.reads-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.read-card { display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.read-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.read-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--purple-soft); }
.read-card > div { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.read-card .kicker { margin: 0; font-size: 12px; }
.read-card h3 { margin: 0; font: 700 19px/1.25 var(--body); }
.read-card p { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.read-card small { margin-top: auto; color: var(--muted); font-size: 13px; }
.read-card .read-more { font-style: normal; font-weight: 700; color: var(--purple); font-size: 15px; }
.read-card:hover .read-more { text-decoration: underline; text-underline-offset: 3px; }
.more-row { display: flex; justify-content: center; margin-top: 30px; }
@media (max-width: 900px) { .reads-grid { grid-template-columns: 1fr; } .read-card { flex-direction: row; } .read-card img { width: 38%; aspect-ratio: auto; } }
@media (max-width: 560px) { .read-card { flex-direction: column; } .read-card img { width: 100%; aspect-ratio: 3 / 2; } }
/* кнопки в разметке бота (прежние имена классов) */
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 8px 22px -6px rgba(131, 79, 141, .55); }
.btn-primary:hover { background: var(--purple-d); transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--line); background: var(--paper); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }

/* карта со входом (вкладка «Я в Кирове») */
.map { margin-top: 18px; height: clamp(280px, 38vw, 380px); border-radius: 28px; overflow: hidden; background: #EDE7DC; box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* баннер cookie */
.cookie { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 80; max-width: 600px; margin: 0 auto; display: none; gap: 14px; flex-wrap: wrap; align-items: center; padding: 18px 20px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: 15px; line-height: 1.5; }
.cookie.show { display: flex; animation: optin .45s var(--ease) both; }
.cookie p { flex: 1 1 260px; margin: 0; color: #3E3A36; }
.cookie .btns { display: flex; gap: 8px; }

/* окно «Вступить в клуб»: два шага — группа и рассылка */
.join-dialog { border: 0; border-radius: 28px; padding: 30px 26px 26px; width: min(440px, calc(100% - 32px)); background: var(--bg); color: var(--ink); font: inherit; box-shadow: 0 40px 100px -20px rgba(60, 30, 70, .45); }
.join-dialog[open] { animation: optin .4s var(--ease) both; }
.join-dialog::backdrop { background: rgba(29, 20, 32, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.join-dialog h3 { font: 500 26px/1.1 var(--head); text-transform: uppercase; margin: 0 44px 10px 0; }
.join-dialog p { margin: 0 0 6px; color: var(--muted); font-size: 16px; }
.join-dialog .step { display: flex; gap: 10px; align-items: center; font-weight: 700; margin: 20px 0 10px; }
.join-dialog .step b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--purple); color: #fff; font-size: 14px; }
.join-dialog .btn { width: 100%; }
.join-dialog .close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); font-size: 22px; line-height: 1; }

/* чат VK «Написать нам»: над кнопкой Полли; без Полли (первый экран) — в углу */
.vk-chat-fab { position: fixed; right: 20px; bottom: calc(94px + env(safe-area-inset-bottom)); z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #0077FF; color: #fff; box-shadow: 0 6px 20px rgba(0, 119, 255, .35); transition: transform .25s var(--ease), box-shadow .25s, bottom .35s var(--ease), opacity .3s; }
.vk-chat-fab:hover { transform: scale(1.06); box-shadow: 0 8px 26px rgba(0, 119, 255, .45); }
.vk-chat-fab svg, .dock__vk svg { width: 28px; height: 28px; stroke: none; }
body:has(.polly-fab.is-hidden) .vk-chat-fab { bottom: calc(20px + env(safe-area-inset-bottom)); }
body:has(.polly:not([hidden])) .vk-chat-fab { opacity: 0; pointer-events: none; }
#vk_community_messages { bottom: 160px !important; filter: drop-shadow(0 12px 28px rgba(31, 26, 34, .22)); }
#vk_community_messages iframe { clip-path: inset(0 27px 0 25px round 16px); }
@media (max-width: 560px) {
  .vk-chat-fab { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); }
  body:has(.polly-fab.is-hidden) .vk-chat-fab { bottom: calc(14px + env(safe-area-inset-bottom)); }
  #vk_community_messages { bottom: 88px !important; }
}

/* нижняя панель на телефоне */
.dock { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 55; display: flex; gap: 8px; align-items: center; transform: translateY(160%); transition: transform .35s var(--ease); }
.dock.show { transform: none; }
.dock .btn { flex: 1; min-width: 0; box-shadow: 0 10px 30px -6px rgba(39, 37, 31, .35); }
.dock__ic { width: 52px; height: 52px; flex: none; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(39, 37, 31, .35); }
.dock__vk { background: #0077FF; color: #fff; }
.dock__polly { background: var(--paper); border: 1.5px solid var(--line); }
@media (min-width: 720px) { .dock { display: none; } }
@media (max-width: 719px) {
  body.dock-on .polly-fab, body.dock-on .vk-chat-fab { opacity: 0; pointer-events: none; }
  /* внизу страницы панели нет, а кнопки чата VK и Полли стоят друг над другом — ссылки подвала выше них */
  .foot { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
}
body:has(.cookie.show) .polly-fab, body:has(.cookie.show) .vk-chat-fab, body:has(.cookie.show) .dock { opacity: 0; pointer-events: none; }
