/* Public site (spec 007), style C4 – docs/DESIGN-SYSTEM.md «Стиль C4». */
@font-face { font-family:'Onest'; font-style:normal; font-weight:400; font-display:swap; src:url(../fonts/onest/onest-latin-400-normal.woff2) format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Onest'; font-style:normal; font-weight:400; font-display:swap; src:url(../fonts/onest/onest-cyrillic-400-normal.woff2) format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Onest'; font-style:normal; font-weight:500; font-display:swap; src:url(../fonts/onest/onest-latin-500-normal.woff2) format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Onest'; font-style:normal; font-weight:500; font-display:swap; src:url(../fonts/onest/onest-cyrillic-500-normal.woff2) format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Onest'; font-style:normal; font-weight:600; font-display:swap; src:url(../fonts/onest/onest-latin-600-normal.woff2) format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Onest'; font-style:normal; font-weight:600; font-display:swap; src:url(../fonts/onest/onest-cyrillic-600-normal.woff2) format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Onest'; font-style:normal; font-weight:700; font-display:swap; src:url(../fonts/onest/onest-latin-700-normal.woff2) format('woff2'); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family:'Onest'; font-style:normal; font-weight:700; font-display:swap; src:url(../fonts/onest/onest-cyrillic-700-normal.woff2) format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }

:root {
    --c4-bg: #fbfaf7; --c4-card: #fff; --c4-soft: #f3f1ea;
    --c4-text: #17201c; --c4-muted: #5a625e; --c4-caption: #6b716d;
    --c4-line: #e8e4da; --c4-line-strong: #d9d4c7;
    --c4-brand: #027754; --c4-brand-50: #e7f5ee;
    --c4-deep: #0f3b2e; --c4-deep-2: #1c4d3e; --c4-on-deep: #eef4f0; --c4-on-deep-muted: #b8cfc4; --c4-mint-on-deep: #8fd9b6;
    --c4-highlight: #ffcd00;
    --c4-font: 'Onest', system-ui, -apple-system, "Segoe UI", sans-serif;
    --c4-r-btn: 12px; --c4-r-sm: 14px; --c4-r: 20px; --c4-r-lg: 24px;
    --c4-ease: cubic-bezier(.2, .7, .2, 1); --c4-fast: .16s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--c4-font); color: var(--c4-text); background: var(--c4-bg); font-size: 17px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--c4-deep); text-underline-offset: 4px; }
a:hover { color: var(--c4-brand); }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--c4-bg), 0 0 0 4px var(--c4-brand); border-radius: 4px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 72px; }
.muted { color: var(--c4-muted); }
.caption { color: var(--c4-caption); font-size: 14px; }
.lead { font-size: 20px; color: #3b4440; max-width: 620px; }
.mark { background: linear-gradient(transparent 62%, var(--c4-highlight) 62%, var(--c4-highlight) 92%, transparent 92%); }
.link { font-weight: 600; }
/* Link kinds: a page of this site, a talk with us in the bot, another site. */
.link--go, .link--chat, .link--out, .btn--out { display: inline-flex; align-items: center; gap: 6px; }
.link--go::after, .link--chat::before, .link--out::after, .btn--out::after { content: ""; flex: none; width: 1em; height: 1em; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.link--go::after { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); transition: transform var(--c4-fast) var(--c4-ease); }
.link--go:hover::after, a:hover .link--go::after { transform: translateX(3px); }
.link--chat::before { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 4L3 11l6 2 2 6 3-4 5 4z'/%3E%3C/svg%3E"); }
.link--out::after, .btn--out::after { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E"); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border: 0; border-radius: var(--c4-r-btn); background: var(--c4-text); color: var(--c4-bg); font: 600 16px/1 var(--c4-font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background var(--c4-fast) var(--c4-ease), color var(--c4-fast) var(--c4-ease); }
.btn:hover { background: var(--c4-deep); color: var(--c4-bg); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--yellow { background: var(--c4-highlight); color: var(--c4-text); font-weight: 700; }
.btn--yellow:hover { background: #ffd83d; color: var(--c4-text); }
.btn--ghost { background: transparent; color: var(--c4-text); box-shadow: inset 0 0 0 1px var(--c4-line-strong); }
.btn--ghost:hover { background: var(--c4-card); color: var(--c4-text); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 40px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--c4-bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--c4-line); }
.site-header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: var(--c4-text); text-decoration: none; }
.site-brand:hover { color: var(--c4-text); }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav > a { color: var(--c4-text); font-size: 15px; font-weight: 500; text-decoration: none; }
.site-nav > a:hover, .site-nav > a.active { color: var(--c4-brand); }
.site-nav > a.active { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.site-langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--c4-line); border-radius: 8px; }
.site-langs a { padding: 3px 8px; border-radius: 6px; font-size: 13px; font-weight: 500; text-transform: uppercase; color: var(--c4-caption); text-decoration: none; }
.site-langs a:hover { color: var(--c4-text); }
.site-langs a.active { background: var(--c4-text); color: var(--c4-bg); }
.site-menu-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.site-menu-button { display: none; }
.site-menu-toggle:focus-visible + .site-menu-button { box-shadow: 0 0 0 2px var(--c4-bg), 0 0 0 4px var(--c4-brand); }

/* Page heads */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; padding-top: 88px; padding-bottom: 96px; }
.hero-main { grid-column: 1 / span 7; }
.hero-side { grid-column: 9 / span 4; }
.display { font-size: clamp(44px, 6.9vw, 88px); line-height: 1; font-weight: 700; letter-spacing: -.04em; }
.display + .lead { margin-top: 36px; }
.page-head { padding-top: 80px; padding-bottom: 56px; }
.page-head h1 { max-width: 900px; font-size: clamp(38px, 5vw, 60px); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; }
.page-head .lead { margin-top: 24px; }
.back { display: inline-block; margin-top: 40px; font-size: 15px; font-weight: 500; }

.section { padding-top: 104px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 32px; }
.section-title { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.section-lead { margin-top: 12px; color: var(--c4-muted); max-width: 560px; }
.section-title + .cards, .section-title + .setup, .section-title + .widget-grid, .section-title + .steps, .section-title + .table-card { margin-top: 32px; }

/* Page heads with a drawing on the right */
.page-head--art { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.page-head--art .page-head-text { grid-column: 1 / span 7; }
.page-head--art .art { grid-column: 8 / span 5; width: 100%; height: auto; }

/* Drawings (docs/DESIGN-SYSTEM.md «Стиль C4»): thin lines, cards like the site's, motion only where data moves */
.art text { font-family: var(--c4-font); font-size: 14px; font-weight: 600; fill: var(--c4-text); text-anchor: middle; }
.art-line { fill: none; stroke: var(--c4-line-strong); stroke-width: 1.5; stroke-dasharray: 4 6; animation: wm-dash 1.6s linear infinite; }
.art-node rect { fill: var(--c4-card); stroke: var(--c4-line); }
.art-core rect { fill: var(--c4-deep); }
.art-core .art-core-mark { fill: var(--c4-highlight); }
.art-core text { fill: var(--c4-on-deep); text-anchor: start; font-size: 15px; }
.art-dot { fill: var(--c4-brand); offset-rotate: 0deg; animation: wm-travel 2.4s var(--c4-ease) infinite; }
.art-packet { fill: var(--c4-highlight); stroke: var(--c4-text); stroke-width: 1.2; offset-rotate: 0deg; animation: wm-travel 3.6s var(--c4-ease) infinite; }
.art-step rect { animation: wm-lit 3.6s var(--c4-ease) infinite; animation-delay: inherit; }
.art-done rect { fill: var(--c4-brand-50); }
.art-done text { fill: var(--c4-brand); text-anchor: start; }
.art--growth .art-done text { text-anchor: middle; }
.art-done path { stroke: var(--c4-brand); }
.art-base { stroke: var(--c4-line-strong); }
.art-bar { fill: var(--c4-deep); transform-box: fill-box; transform-origin: bottom; animation: wm-grow 1s var(--c4-ease) both; }
.art-bar--first { fill: var(--c4-line-strong); }
.art-caption { font-size: 12px; font-weight: 500; fill: var(--c4-muted); }
@keyframes wm-dash { to { stroke-dashoffset: -20; } }
@keyframes wm-travel { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes wm-lit { 0%, 20%, 100% { stroke: var(--c4-line); } 8% { stroke: var(--c4-brand); } }
@keyframes wm-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Blocks come in as they scroll into view. Only the script hides them (html.reveal-ready), so without it everything is there.
   `translate`, not `transform`, so the hover lift of tiles and cards still works. */
.reveal-ready .reveal { opacity: 0; translate: 0 16px; transition: opacity .6s var(--c4-ease), translate .6s var(--c4-ease); }
.reveal-ready .reveal.is-in { opacity: 1; translate: none; }
.reveal-ready .chat .bubble, .reveal-ready .chat .chat-note { opacity: 0; translate: 0 8px; }
.reveal-ready .chat.is-in .bubble, .reveal-ready .chat.is-in .chat-note { animation: wm-say .45s var(--c4-ease) forwards; }
.reveal-ready .chat.is-in > :nth-child(2) { animation-delay: .5s; }
.reveal-ready .chat.is-in > :nth-child(3) { animation-delay: 1.3s; }
.reveal-ready .chat.is-in > :nth-child(4) { animation-delay: 2.1s; }
.reveal-ready .chat.is-in > :nth-child(5) { animation-delay: 2.8s; }
@keyframes wm-say { to { opacity: 1; translate: none; } }

/* Chat (the bot's window) */
.chat { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.45; }
.chat--card { padding: 20px; background: var(--c4-card); border: 1px solid var(--c4-line); border-radius: var(--c4-r); box-shadow: 0 18px 40px -24px rgba(23, 32, 28, .25); }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #efece4; }
.chat-head svg { width: 32px; height: 32px; }
.chat-head b { display: block; font-size: 14px; }
.chat-head span { font-size: 12px; color: var(--c4-caption); }
.bubble { max-width: 88%; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: var(--c4-soft); align-self: flex-start; }
.bubble--user { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--c4-text); color: var(--c4-bg); }
.chat-note { font-size: 12px; color: var(--c4-caption); }
.chat--deep { font-size: 15px; }
.chat--deep .bubble { background: var(--c4-deep-2); color: var(--c4-on-deep); padding: 10px 14px; max-width: 85%; }
.chat--deep .bubble--user { background: var(--c4-on-deep); color: var(--c4-text); }
.chat--deep .chat-note { font-size: 13px; color: var(--c4-mint-on-deep); }

/* Offer tiles of different weight */
.offers { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; padding: 32px; border-radius: var(--c4-r); color: var(--c4-text); text-decoration: none; transition: transform var(--c4-fast) var(--c4-ease); }
a.tile:hover { color: inherit; transform: translateY(-2px); }
.tile--main { grid-column: 1 / span 7; grid-row: span 2; padding: 36px; background: var(--c4-card); border: 1px solid var(--c4-line); }
.tile--yellow { grid-column: 8 / span 5; background: var(--c4-highlight); }
.tile--deep { grid-column: 8 / span 5; background: var(--c4-deep); color: var(--c4-on-deep); }
a.tile--deep:hover { color: var(--c4-on-deep); }
.tile-label { font-size: 13px; font-weight: 600; }
.tile--deep .tile-label { color: var(--c4-mint-on-deep); }
.tile-title { margin-top: 14px; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.tile--main .tile-title { margin-top: 20px; font-size: 34px; line-height: 1.15; letter-spacing: -.025em; }
.tile-text { margin-top: 12px; font-size: 15px; }
.tile--main .tile-text { margin-top: 10px; max-width: 460px; font-size: 17px; color: var(--c4-muted); }
.tile--deep .tile-text { color: var(--c4-on-deep-muted); }
.badge { align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--c4-brand-50); color: var(--c4-brand); font-size: 13px; font-weight: 600; }
.examples { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 32px; }
.example { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; background: var(--c4-bg); border-radius: 12px; }
.example b { font-weight: 600; }
.example span { color: var(--c4-caption); font-size: 15px; text-align: right; }
.examples .link { margin-top: 6px; color: var(--c4-deep); }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; font-size: 15px; font-weight: 600; }
.chain span { padding: 6px 12px; background: rgba(255, 255, 255, .6); border-radius: 8px; }
.chain svg { width: 22px; height: 12px; }

/* Plain tiles (what we do, scenarios, terms) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.card { padding: 28px; background: var(--c4-card); border: 1px solid var(--c4-line); border-radius: var(--c4-r); }
.card h3 { font-size: 20px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.card p { margin-top: 8px; color: var(--c4-muted); font-size: 16px; }

/* Grouped lists (integrations) */
.groups-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
.groups-intro { grid-column: 1 / span 4; }
.groups-intro p { margin: 12px 0 20px; color: var(--c4-muted); }
.groups { grid-column: 6 / span 7; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.group { padding: 16px 0; border-top: 1px solid var(--c4-line-strong); }
.group-name { margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--c4-brand); }
.group-items { font-size: 18px; }

/* Steps as a quiet list, not numbered cards */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--c4-line-strong); }
.steps li { padding: 20px 24px 0 0; }
.steps h3 { font-size: 18px; font-weight: 600; }
.steps p { margin-top: 6px; color: var(--c4-muted); font-size: 16px; }

/* The bot block */
.bot-block { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: center; padding: 56px; background: var(--c4-deep); color: var(--c4-on-deep); border-radius: var(--c4-r-lg); }
.bot-block-main { grid-column: 1 / span 6; }
.bot-block-side { grid-column: 8 / span 5; }
.bot-block h2 { font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -.03em; }
.bot-block p { margin: 16px 0 28px; color: var(--c4-on-deep-muted); }
.bot-block--solo .bot-block-main { grid-column: 1 / span 8; }
.bot-block--solo .bot-block-side { grid-column: 10 / span 3; justify-self: end; }

.quiet-box { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 24px; padding: 32px 40px; border: 1px solid var(--c4-line-strong); border-radius: var(--c4-r); }
.quiet-box h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.quiet-box p { margin-top: 4px; color: var(--c4-muted); }
.quiet-box .link { white-space: nowrap; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.split .quiet-box { margin-top: 0; flex-direction: column; align-items: flex-start; gap: 16px; }

.empty-box { padding: 40px; border: 1px dashed var(--c4-line-strong); border-radius: var(--c4-r); }
.empty-box h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.empty-box p { margin: 10px 0 24px; color: var(--c4-muted); max-width: 620px; }

/* Widget cards and page */
.widget-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.widget-card { display: flex; flex-direction: column; background: var(--c4-card); border: 1px solid var(--c4-line); border-radius: var(--c4-r); overflow: hidden; color: var(--c4-text); text-decoration: none; transition: transform var(--c4-fast) var(--c4-ease); }
.widget-card:hover { color: var(--c4-text); transform: translateY(-2px); }
.widget-card-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 22px 24px 24px; }
.widget-card h3 { font-size: 20px; font-weight: 600; }
.widget-card p { color: var(--c4-muted); font-size: 15px; }
.widget-card-foot { margin-top: auto; padding-top: 12px; }
.cover { position: relative; display: flex; align-items: flex-end; gap: 12px; min-height: 140px; padding: 20px 22px; background: var(--c4-deep); color: var(--c4-on-deep); }
.cover::after { content: ""; position: absolute; right: 22px; top: 20px; width: 12px; height: 12px; border-radius: 3px; background: var(--accent, var(--c4-highlight)); }
.cover-icon svg { width: 40px; height: 40px; }
.cover-title { font-size: 22px; line-height: 1.1; letter-spacing: -.02em; text-transform: uppercase; }
.cover-title b { font-weight: 700; }
.widget-hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; padding-top: 32px; }
.widget-hero h1 { margin-top: 16px; font-size: clamp(38px, 5vw, 60px); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; }
.widget-hero .lead { margin-top: 24px; }
.widget-family { font-size: 14px; font-weight: 600; color: var(--c4-brand); }
.widget-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.widget-meta .caption::before { content: "·"; margin-right: 10px; }
.platforms { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.platform { padding: 2px 10px; border-radius: 999px; background: var(--c4-soft); border: 1px solid var(--c4-line); font-size: 13px; font-weight: 600; }
.widget-card-foot { display: flex; flex-direction: column; gap: 12px; }
.price-box { position: sticky; top: 96px; background: var(--c4-card); border: 1px solid var(--c4-line); border-radius: var(--c4-r); overflow: hidden; }
.price-box-body { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.price-box h2 { font-size: 15px; font-weight: 600; color: var(--c4-caption); }
.price-list { margin: 0; }
.price-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--c4-line); }
.price-list div:last-child { border-bottom: 0; }
.price-list dt { color: var(--c4-muted); }
.price-list dd { margin: 0; text-align: right; }
.price-list b, .price-free { font-size: 20px; font-weight: 700; }
.price-uah { display: block; font-size: 13px; color: var(--c4-caption); }
.setup { margin: 0; padding: 0; list-style: none; counter-reset: setup; max-width: 760px; }
.setup li { position: relative; padding: 18px 0 18px 48px; border-top: 1px solid var(--c4-line-strong); counter-increment: setup; }
.setup li::before { content: counter(setup); position: absolute; left: 0; top: 18px; font-weight: 700; color: var(--c4-brand); }

/* Terms as a definition list with rules, two per row */
.terms-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin: 0; }
.terms-list > div { padding: 24px 0; border-top: 1px solid var(--c4-line-strong); }
.terms-list dt { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.terms-list dd { margin: 8px 0 0; color: var(--c4-muted); }

/* Pricing table */
.table-card { background: var(--c4-card); border: 1px solid var(--c4-line); border-radius: var(--c4-r); overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 16px 24px; text-align: left; border-bottom: 1px solid var(--c4-line); vertical-align: top; }
.price-table thead th { font-size: 13px; font-weight: 600; color: var(--c4-caption); }
.price-table-group th { font-size: 13px; font-weight: 600; color: var(--c4-brand); background: var(--c4-bg); }
.price-table tr:last-child td { border-bottom: 0; }
.note { margin-top: 16px; color: var(--c4-caption); font-size: 14px; }

/* Support contacts */
.contact-card { display: flex; flex-direction: column; gap: 10px; }
.contact-card a { font-weight: 600; }

/* Legal */
.legal { max-width: 800px; padding-top: 72px; }
.legal h1 { font-size: clamp(34px, 4vw, 48px); font-weight: 700; letter-spacing: -.03em; }
.legal h2 { margin-top: 40px; font-size: 22px; font-weight: 700; }
.legal h3 { margin-top: 24px; font-size: 17px; font-weight: 600; }
.legal p, .legal ul, .legal ol { margin: 12px 0 0; }
.legal li { margin-bottom: 6px; }

/* Footer */
.site-footer { margin-top: 104px; padding: 48px 0 40px; border-top: 1px solid var(--c4-line); font-size: 14px; color: var(--c4-caption); }
.site-footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.site-footer h2 { margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--c4-text); }
.site-footer-grid a { display: flex; width: fit-content; padding: 2px 0; color: var(--c4-caption); text-decoration: none; }
.site-footer-grid a:hover { color: var(--c4-text); }
.site-footer-grid .site-brand { display: inline-flex; margin-bottom: 8px; color: var(--c4-text); font-size: 16px; }
.site-footer-bottom { margin-top: 32px; }

/* Consent */
.consent { position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; max-width: 760px; margin: 0 auto; padding: 18px 22px; border-radius: var(--c4-r); background: var(--c4-card); border: 1px solid var(--c4-line); box-shadow: 0 18px 40px -24px rgba(23, 32, 28, .35); font-size: 14px; }
.consent p { flex: 1 1 320px; }
.consent-actions { display: flex; gap: 8px; }
.consent .btn { height: 40px; padding: 0 16px; font-size: 14px; }

@media (max-width: 1080px) {
    .wrap { padding: 0 40px; }
    .hero-main { grid-column: 1 / span 12; }
    .hero-side { grid-column: 1 / span 7; margin-top: 48px; }
    .tile--main { grid-column: 1 / span 12; grid-row: auto; }
    .tile--yellow, .tile--deep { grid-column: span 6; }
    .groups-intro, .groups { grid-column: 1 / span 12; }
    .groups { margin-top: 24px; }
    .page-head--art .page-head-text, .page-head--art .art { grid-column: 1 / span 12; }
    .page-head--art .art { max-width: 480px; margin-top: 40px; }
    .bot-block-main, .bot-block-side, .bot-block--solo .bot-block-main, .bot-block--solo .bot-block-side { grid-column: 1 / span 12; justify-self: stretch; }
    .bot-block-side { margin-top: 32px; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .widget-hero { grid-template-columns: 1fr; }
    .price-box { position: static; max-width: 480px; }
    .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .site-menu-button { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border-radius: var(--c4-r-btn); cursor: pointer; }
    .site-menu-button span, .site-menu-button span::before, .site-menu-button span::after { display: block; width: 20px; height: 2px; background: var(--c4-text); border-radius: 2px; content: ""; }
    .site-menu-button span { position: relative; }
    .site-menu-button span::before { position: absolute; top: -6px; }
    .site-menu-button span::after { position: absolute; top: 6px; }
    .site-nav { position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 40px 24px; background: var(--c4-bg); border-bottom: 1px solid var(--c4-line); display: none; }
    .site-menu-toggle:checked ~ .site-nav { display: flex; }
    .split { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .site-nav { padding: 16px 16px 20px; }
    .hero { padding-top: 48px; padding-bottom: 64px; }
    .hero-side { grid-column: 1 / span 12; }
    .lead { font-size: 18px; }
    .section { padding-top: 72px; }
    .tile--yellow, .tile--deep { grid-column: 1 / span 12; }
    .tile, .tile--main { padding: 24px; }
    .tile--main .tile-title { font-size: 28px; }
    .example { flex-direction: column; gap: 2px; }
    .example span { text-align: left; }
    .groups { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .terms-list { grid-template-columns: 1fr; }
    .bot-block { padding: 28px 22px; }
    .quiet-box { flex-direction: column; align-items: flex-start; padding: 24px; }
    .page-head { padding-top: 48px; padding-bottom: 40px; }
    .site-footer-grid { grid-template-columns: 1fr; }
    .consent { left: 12px; right: 12px; bottom: 12px; }
    .btn { white-space: normal; height: auto; min-height: 52px; padding: 14px 20px; line-height: 1.2; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .reveal-ready .reveal, .reveal-ready .chat .bubble, .reveal-ready .chat .chat-note { opacity: 1; translate: none; }
    .art-dot, .art-packet { display: none; }
}
