/* ==========================================================================
   Токени
   ========================================================================== */
:root {
    --bg: #0D0E11;
    --surface: #16171C;
    --surface-2: #1B1C21;
    --border: #26282E;
    --border-soft: #1E2025;
    --border-strong: #3A3C43;
    --text: #F2F0EA;
    --text-muted: #B9B7B0;
    --text-dim: #8E8C86;
    --accent: #E8C468;
    --on-accent: #0D0E11;

    --light-bg: #F2F0EA;
    --light-text: #0D0E11;
    --light-muted: #4A4842;

    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;

    --container: 1200px;
    --gutter: 24px;
    --section-y: clamp(64px, 9vw, 96px);

    --font-display: 'Unbounded', system-ui, sans-serif;
    --font-body: 'Manrope', system-ui, sans-serif;
}

/* ==========================================================================
   Шрифти (локальні, кирилиця + латиниця)
   ========================================================================== */
@font-face { font-family: 'Unbounded'; font-weight: 500; font-display: swap; src: url('../fonts/unbounded-cyrillic-500.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 500; font-display: swap; src: url('../fonts/unbounded-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url('../fonts/unbounded-cyrillic-700.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 700; font-display: swap; src: url('../fonts/unbounded-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('../fonts/manrope-cyrillic-400.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('../fonts/manrope-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('../fonts/manrope-cyrillic-700.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url('../fonts/manrope-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================================
   База
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 16px; }

/* ==========================================================================
   Розкладка
   ========================================================================== */
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 780px; }

.section { padding-block: var(--section-y); }
.section--bordered { border-top: 1px solid var(--border-soft); }
.section--tight-top { padding-top: 0; }
.section--light { background: var(--light-bg); color: var(--light-text); }

.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-lg { display: flex; flex-direction: column; gap: 32px; }
.stack-xl { display: flex; flex-direction: column; gap: 48px; }

.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.grid--gap-lg { gap: 32px 24px; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.section-head__text { max-width: 420px; margin: 0; }
.section-head__side { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.section--flush-top { padding-top: 0; }

/* ==========================================================================
   Типографіка
   ========================================================================== */
.h1, .h2, .h1-article { margin: 0; font-family: var(--font-display); font-weight: 500; }
.h1 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; }
.h2 { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -0.03em; }
.h1-article { font-size: clamp(30px, 4vw, 52px); line-height: 1.12; letter-spacing: -0.03em; }
.lead { margin: 0; max-width: 560px; font-size: clamp(17px, 1.5vw, 19px); color: var(--text-muted); }
.muted { color: var(--text-muted); }
.accent { color: var(--accent); }
.link-strong { font-weight: 700; }

.prose { font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; margin-top: 1.8em; }
.prose a { color: var(--accent); }
.prose img { border-radius: var(--radius-md); height: auto; }
.prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 2px solid var(--accent); color: var(--text-muted); }
.article-cover { width: 100%; height: auto; border-radius: var(--radius-lg); }

/* ==========================================================================
   Кнопки
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--self-start { align-self: flex-start; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { background: #F0D184; }
.btn--ghost { border-color: var(--border-strong); color: var(--text); font-weight: 600; }
.btn--ghost:hover { border-color: var(--text-dim); }

/* ==========================================================================
   Шапка
   ========================================================================== */
.site-header { position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; }
.logo { font: 700 20px var(--font-display); letter-spacing: -0.02em; text-decoration: none; }
.logo--sm { font-size: 16px; color: var(--text); }

.site-nav { display: flex; align-items: center; gap: 32px; }
.menu { display: flex; flex-wrap: wrap; gap: 28px; margin: 0; padding: 0; list-style: none; }
.menu a { color: var(--text-muted); text-decoration: none; font-size: 15px; transition: color .2s ease; }
.menu a:hover, .menu .current-menu-item > a { color: var(--text); }

.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border-strong); border-radius: 12px; background: transparent; cursor: pointer; }

@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }
    .site-nav { position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); flex-direction: column; align-items: stretch; gap: 20px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
    .site-nav:not(.is-open) { display: none; }
    .menu { flex-direction: column; gap: 4px; }
    .menu a { display: block; padding: 10px 0; font-size: 17px; }
}

/* ==========================================================================
   Перший екран
   ========================================================================== */
.hero { padding: clamp(40px, 6vw, 72px) 0 var(--section-y); }
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 56px 64px; align-items: end; }
.hero__text { display: flex; flex-direction: column; gap: 28px; }

.badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 8px 16px; border: 1px solid #2E3036; border-radius: 999px; font-size: 14px; color: var(--text-muted); }
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(232, 196, 104, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232, 196, 104, .55); } 70% { box-shadow: 0 0 0 10px rgba(232, 196, 104, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 196, 104, 0); } }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.stats { display: flex; flex-wrap: wrap; gap: 48px; margin: 0; padding-top: 24px; border-top: 1px solid var(--border); }
.stats__value { font: 500 32px var(--font-display); color: var(--accent); }
.stats__label { margin: 0; font-size: 14px; color: var(--text-dim); }

/* Ілюстрація */
.hero-visual { position: relative; padding: 36px 0 56px 28px; }
.hero-visual__glow { position: absolute; top: 0; right: 8%; width: 70%; height: 80%; border-radius: 50%; background: var(--accent); opacity: .12; filter: blur(70px); pointer-events: none; }

.browser { position: relative; overflow: hidden; border: 1px solid #2A2C33; border-radius: 22px; background: var(--surface); box-shadow: 0 40px 90px rgba(0, 0, 0, .55); }
.browser__bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid #2A2C33; }
.browser__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.browser__url { flex: 1; display: flex; align-items: center; height: 26px; margin-left: 12px; padding: 0 12px; border-radius: 8px; background: var(--bg); font-size: 12px; color: var(--text-dim); overflow: hidden; white-space: nowrap; }
.browser__body { display: flex; flex-direction: column; gap: 14px; padding: 28px; }

.skeleton { border-radius: 8px; background: #33353C; }
.skeleton--title { height: 16px; width: 72%; background: var(--text); }
.skeleton--accent { height: 16px; width: 48%; background: var(--accent); }
.skeleton--line { height: 9px; width: 86%; margin-top: 6px; border-radius: 5px; }
.skeleton--short { width: 64%; margin-top: 0; }
.skeleton--button { height: 36px; width: 150px; margin-top: 6px; border-radius: 999px; background: var(--accent); }

.chart { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding: 18px; border-radius: 16px; background: var(--bg); }
.chart__head { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-dim); }
.chart__area { fill: var(--accent); opacity: .14; }
.chart__line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 1.6s .3s ease-out forwards; }
.chart__dot { fill: var(--accent); }
@keyframes draw { to { stroke-dashoffset: 0; } }

.toast { position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 18px; background: var(--light-bg); color: var(--light-text); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); animation: rise .6s 1s ease-out both; }
.toast__icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); flex-shrink: 0; }
.toast__text { display: flex; flex-direction: column; line-height: 1.3; font-size: 15px; }
.toast__text span { font-size: 13px; color: var(--light-muted); }

.chip-float { position: absolute; right: -8px; top: 8px; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid #33353C; border-radius: var(--radius-sm); background: #1E2026; font-size: 13px; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); animation: rise .6s 1.4s ease-out both; }
.chip-float .icon { color: var(--accent); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
    .hero-visual { padding-left: 0; }
    .chip-float { right: 0; }
}

/* ==========================================================================
   Послуги
   ========================================================================== */
.service { display: flex; flex-direction: column; gap: 18px; min-height: 240px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); text-decoration: none; transition: transform .25s ease, border-color .25s ease; }
.service:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.service .icon { color: var(--accent); }
.service__top { display: flex; justify-content: space-between; align-items: start; }
.service__title { font: 500 24px/1.25 var(--font-display); letter-spacing: -0.02em; }
.service__text { font-size: 16px; line-height: 1.5; color: var(--text-muted); }
.service__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.service__price { font-weight: 700; }
.service__more { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); transition: transform .25s ease, background-color .25s ease; }
.service:hover .service__more { transform: translateX(3px); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.service--featured .service__more { border-color: var(--on-accent); }
.service--featured:hover .service__more { background: var(--on-accent); color: var(--accent); }

.service--featured { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.service--featured .icon { color: var(--on-accent); }
.service--featured .service__text { color: var(--on-accent); }
.service--featured:hover { border-color: var(--accent); }
.service__badge { padding: 4px 12px; border-radius: 999px; background: var(--on-accent); color: var(--accent); font-size: 13px; font-weight: 700; }

/* ==========================================================================
   Кейси (світла секція)
   ========================================================================== */
.section--light a { color: var(--light-text); }
.case { display: flex; flex-direction: column; gap: 16px; }
.case__title { margin: 0; font: 500 22px var(--font-display); letter-spacing: -0.02em; }
.case__text { margin: 0; color: var(--light-muted); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag { padding: 4px 12px; border: 1px solid var(--light-text); border-radius: 999px; font-size: 13px; font-weight: 600; }

.mock { display: flex; flex-direction: column; aspect-ratio: 4 / 3; overflow: hidden; padding: 24px 24px 0; border-radius: 22px; background: var(--bg); }
.mock__window { flex: 1; display: flex; flex-direction: column; overflow: hidden; border-radius: 12px 12px 0 0; background: var(--surface-2); transition: transform .35s ease; }
.case:hover .mock__window { transform: translateY(-6px); }
.mock__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid #2A2C33; }
.mock__bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.mock__body { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.mock__body .skeleton--title, .mock__body .skeleton--accent { height: 12px; }
.mock__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.mock__tiles span { aspect-ratio: 1; border-radius: 8px; background: #2A2C33; }
.mock__tiles .is-accent { background: var(--accent); opacity: .85; }

/* ==========================================================================
   Як працюємо
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; gap: 12px; padding: 28px 28px 28px 0; border-top: 2px solid var(--border-strong); }
.step--active { border-top-color: var(--accent); }
.step__num { font: 500 15px var(--font-display); color: var(--accent); }
.step__title { margin: 0; font-size: 20px; font-weight: 700; }
.step__text { margin: 0; font-size: 16px; color: var(--text-muted); }

/* ==========================================================================
   Картки (блог)
   ========================================================================== */
.card { display: flex; flex-direction: column; gap: 14px; padding: 28px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); text-decoration: none; }
.card--link { transition: transform .25s ease, border-color .25s ease; }
.card--link:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card__art, .card__image { width: 100%; height: auto; border-radius: var(--radius-sm); background: var(--bg); }
.card__meta { font-size: 13px; color: var(--text-dim); }
.card__title { font: 500 19px/1.35 var(--font-display); }
.card__text { font-size: 15px; color: var(--text-muted); }

.art-line { fill: none; stroke: var(--border-strong); stroke-width: 2; }
.art-fill { fill: var(--accent); }
.art-accent-line { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.art-light { fill: var(--text); }
.art-muted { fill: var(--border-strong); }
.art-stroke-light { fill: none; stroke: var(--text); stroke-width: 3; stroke-linecap: round; }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: 12px; text-decoration: none; }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }

/* ==========================================================================
   Форма заявки
   ========================================================================== */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; padding: clamp(28px, 5vw, 64px); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); }
.contact .h2 { line-height: 1.1; }

.lead-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 14px; color: var(--text-muted); }
.field__input { min-height: 52px; padding: 0 18px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg); font-size: 16px; transition: border-color .2s ease; }
.field__input:focus { outline: none; border-color: var(--accent); }
.field__input::placeholder { color: #6E6C66; }
.field__input--area { padding-block: 14px; resize: vertical; min-height: 110px; }
select.field__input { appearance: none; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23B9B7B0' stroke-width='1.8'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.form-note { margin: 0; font-size: 13px; color: var(--text-dim); }
.form-status { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--bg); font-size: 15px; }

/* ==========================================================================
   Футер
   ========================================================================== */
.site-footer { border-top: 1px solid var(--border-soft); }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-block: 40px; font-size: 14px; color: var(--text-dim); }
.footer-menu { display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; }
.footer-menu a { color: var(--text-muted); }

/* ==========================================================================
   Внутрішні сторінки: перший екран, хлібні крихти
   ========================================================================== */
.page-hero { padding: clamp(24px, 4vw, 40px) 0 clamp(48px, 7vw, 80px); }
.page-hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px 64px; align-items: end; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--text-dim); }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; color: var(--border-strong); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }

/* ==========================================================================
   Сторінка послуги
   ========================================================================== */
.service-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px 64px; align-items: center; }
.service-hero__text { display: flex; flex-direction: column; gap: 28px; }

.offer { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); overflow: hidden; }
.offer::before { content: ''; position: absolute; top: -40%; right: -20%; width: 70%; height: 90%; border-radius: 50%; background: var(--accent); opacity: .1; filter: blur(60px); pointer-events: none; }
.offer__icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 18px; background: var(--accent); color: var(--on-accent); }
.offer__row { display: flex; flex-direction: column; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.offer__label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.offer__value { font: 500 30px/1.2 var(--font-display); letter-spacing: -0.02em; }
.offer__value--sm { font-size: 20px; }
.offer__note { margin: 0; font-size: 14px; color: var(--text-muted); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.feature { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.feature__icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: rgba(232, 196, 104, .14); color: var(--accent); }

.service-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px 64px; align-items: start; }
.service-body > .h2 { max-width: 360px; }
.service-body > :last-child { grid-column: span 2; }
@media (max-width: 760px) { .service-body > :last-child { grid-column: auto; } }

.steps--light .step { border-top-color: #CFCAC0; }
.steps--light .step--active { border-top-color: var(--light-text); }
.steps--light .step__num { color: var(--light-text); }
.steps--light .step__text { color: var(--light-muted); }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.faq__item[open] { border-color: var(--border-strong); }
.faq__question { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; }
.faq__question::-webkit-details-marker { display: none; }
.faq__question::after { content: '+'; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border-strong); font-weight: 400; font-size: 20px; color: var(--accent); transition: transform .2s ease; }
.faq__item[open] .faq__question::after { transform: rotate(45deg); }
.faq__answer { padding: 0 24px 22px; color: var(--text-muted); }

/* Ілюстрація в картці послуги */
.service__art { position: relative; display: block; margin: -12px -12px 4px; padding: 12px 20px; border-radius: 18px; background: var(--bg); overflow: hidden; }
.service__art .illustration { transition: transform .4s ease; }
.service:hover .service__art .illustration { transform: scale(1.04); }
.service__art .illustration { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: contain; }
.service__art .service__badge { position: absolute; top: 12px; right: 12px; }

.service--featured .service__art { background: rgba(13, 14, 17, .1); }

/* Список послуг: групи */
.center { display: flex; justify-content: center; }
.btn__count { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 14px; }

.group-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 15px; color: var(--text-muted); text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.chip:hover { border-color: var(--accent); color: var(--text); }

.service-group + .service-group { padding-top: clamp(48px, 6vw, 72px); }
.group-head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.group-head__title { margin: 0; font: 500 clamp(22px, 2.4vw, 30px) var(--font-display); letter-spacing: -0.02em; }
.group-head__count { font: 500 15px var(--font-display); color: var(--accent); }

/* Сторінка послуги: ілюстрація й рядок з ціною */
.service-hero__art { position: relative; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); overflow: hidden; }
.service-hero__glow { position: absolute; top: -30%; right: -10%; width: 70%; height: 90%; border-radius: 50%; background: var(--accent); opacity: .1; filter: blur(70px); pointer-events: none; }
.service-hero__art .illustration { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: contain; border-radius: var(--radius-md); }

.offer-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; padding: 24px 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.offer-bar__item { display: flex; flex-direction: column; gap: 2px; }
.offer-bar__note { flex: 1 1 260px; }
.offer-bar__cta { flex-shrink: 0; }
@media (max-width: 640px) { .offer-bar__cta { width: 100%; } }

/* Стани форми заявки (плагін ServiceSite Leads) */
.field__input[aria-invalid="true"] { border-color: #E5484D; }
.field__error { font-size: 13px; color: #FF8A8E; }
.form-status--ok { border: 1px solid var(--accent); color: var(--text); }
.form-status--error { border: 1px solid #E5484D; color: #FFB4B6; }
.lead-form button[disabled] { opacity: .7; cursor: progress; }
.service__top .service__badge { margin-left: auto; }

/* ==========================================================================
   Кейси
   ========================================================================== */
.case__link { display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.case__media { position: relative; display: block; overflow: hidden; border-radius: 22px; background: var(--bg); aspect-ratio: 4 / 3; }
.case__media .mock { height: 100%; aspect-ratio: auto; border-radius: 0; }
.case__media .mock span, .case__media .skeleton { display: block; }
.case__media .mock__bar span { display: inline-block; }
.case__image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case__link:hover .case__image, .case__link:hover .mock__window { transform: scale(1.03); }
.case__metric { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: baseline; gap: 6px; max-width: calc(100% - 28px); padding: 8px 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 600; }
.case__metric strong { font: 500 18px var(--font-display); }
.case__title { font: 500 22px/1.25 var(--font-display); letter-spacing: -0.02em; }
.case__meta { font-size: 14px; font-weight: 600; color: var(--light-muted); }
.case__link .case__text { color: var(--light-muted); }
.case__link:hover .case__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.chip--active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip--active:hover { color: var(--on-accent); }
.section--tight { padding-block: clamp(32px, 5vw, 48px); }

/* Сторінка кейсу */
.case-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px 64px; align-items: center; }
.case-hero__text { display: flex; flex-direction: column; gap: 24px; }
.case-hero__cover { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); }
.case-hero__img { display: block; width: 100%; height: auto; }

.case-facts { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 0; }
.case-facts dt { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.case-facts dd { margin: 4px 0 0; font-weight: 600; }
.case-facts a { color: var(--accent); }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.metric { display: flex; flex-direction: column; gap: 6px; padding: 24px 0; border-top: 2px solid var(--accent); }
.metric__value { font: 500 clamp(36px, 4.4vw, 56px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--accent); }
.metric__label { color: var(--text-muted); }

/* Слайдер «до / після» */
.ba { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg); user-select: none; touch-action: pan-y; }
.ba__img { display: block; width: 100%; height: auto; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__before .ba__img { width: 100%; height: 100%; object-fit: cover; }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--accent); pointer-events: none; }
.ba__handle::after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 18px var(--font-body); letter-spacing: 2px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__range:focus-visible + .ba__handle, .ba:focus-within .ba__handle::after { outline: 3px solid var(--light-text); outline-offset: 2px; }
.ba__label { position: absolute; top: 16px; padding: 6px 14px; border-radius: 999px; background: rgba(13, 14, 17, .75); color: var(--text); font-size: 14px; font-weight: 700; pointer-events: none; }
.ba__label--before { left: 16px; }
.ba__label--after { right: 16px; background: var(--accent); color: var(--on-accent); }

.ba-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.ba-pair__item { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ba-pair__img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
.ba-pair__item figcaption { font-weight: 700; }

.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.compare__col { padding: 28px; border-radius: var(--radius-lg); }
.compare__col--before { background: #E4E0D6; }
.compare__col--after { background: var(--bg); color: var(--text); }
.compare__title { margin: 0 0 16px; font: 500 22px var(--font-display); }
.compare__col--after .compare__title { color: var(--accent); }
.compare__list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.compare__list li { position: relative; padding-left: 30px; }
.compare__list li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.compare__col--before li::before { content: '✕'; color: #B5483B; }
.compare__col--after li::before { content: '✓'; color: var(--accent); }

.review { max-width: 900px; margin: 0 auto; text-align: center; }
.review__text { margin: 0; font: 500 clamp(20px, 2.4vw, 28px)/1.45 var(--font-display); letter-spacing: -0.01em; }
.review__text::before { content: '“'; display: block; font-size: 72px; line-height: .6; color: var(--accent); }
.review__author { margin-top: 20px; color: var(--text-muted); font-weight: 600; }
.section--light + .section--tight-top { padding-top: var(--section-y); }

/* Логотип-зображення й контакти у футері */
.logo { display: inline-flex; align-items: center; }
.logo__img { display: block; width: auto; height: 40px; }
.logo__img--sm { height: 32px; }
.site-footer__inner { align-items: flex-start; }
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; }
.footer-contacts { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-contacts a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
.footer-contacts a:hover { color: var(--accent); }
.form-note a { color: inherit; }
[hidden] { display: none !important; }

/* ==========================================================================
   Сторінка «Партнерська програма» (template-partners.php)
   ========================================================================== */
.partner-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px 64px; align-items: center; }
.partner-hero__text { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.partner-hero .btn .icon { margin-right: 8px; }

/* Калькулятор винагороди */
.partner-calc { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); overflow: hidden; }
.partner-calc__glow { position: absolute; top: -45%; right: -25%; width: 75%; height: 95%; border-radius: 50%; background: var(--accent); opacity: .12; filter: blur(70px); pointer-events: none; }
.partner-calc__head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.partner-calc__title { font: 500 18px/1.3 var(--font-display); }
.partner-calc__badge { flex-shrink: 0; padding: 8px 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 700 18px/1 var(--font-display); }
.partner-calc__label { position: relative; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
.partner-calc__amount { position: relative; font: 500 clamp(26px, 3vw, 34px)/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.partner-calc__range { position: relative; width: 100%; height: 28px; margin: 4px 0 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; --fill: 15%; }
.partner-calc__range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--fill), var(--border-strong) var(--fill)); }
.partner-calc__range::-moz-range-track { height: 6px; border-radius: 3px; background: var(--border-strong); }
.partner-calc__range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
.partner-calc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border: 4px solid var(--surface); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 4px 14px rgba(232, 196, 104, .45); }
.partner-calc__range::-moz-range-thumb { width: 16px; height: 16px; border: 4px solid var(--surface); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.partner-calc__range:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.partner-calc__scale { position: relative; display: flex; justify-content: space-between; font-size: 13px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.partner-calc__result { position: relative; display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 22px; border-top: 1px solid var(--border); }
.partner-calc__reward { font: 700 clamp(40px, 5.5vw, 64px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--accent); font-variant-numeric: tabular-nums; }
.partner-calc__note { position: relative; margin: 6px 0 0; font-size: 14px; color: var(--text-muted); }

/* Умови + «кого рекомендувати» */
.partner-terms { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px 64px; align-items: start; }
.features--single { grid-template-columns: 1fr; }
.partner-who { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: var(--radius-xl); background: var(--accent); color: var(--on-accent); }
.partner-who__title { margin: 0; font: 500 22px/1.25 var(--font-display); letter-spacing: -0.02em; }
.partner-who p { margin: 0; }
.partner-who .link-strong { color: var(--on-accent); }
@media (max-width: 900px) {
    .partner-terms { grid-template-columns: 1fr; }
    .partner-who { position: static; }
}

/* Формати для агенцій */
.partner-light-muted { color: var(--light-muted); }
.format-card { color: var(--text); }
.format-card__value { font: 700 clamp(34px, 4vw, 48px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--accent); }
.format-card--main { background: var(--bg); border-color: var(--accent); }
.partner-perks { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.partner-perks li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border: 1px solid var(--light-text); border-radius: 999px; font-size: 15px; font-weight: 600; }

/* Фінальний заклик */
.partner-final { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(32px, 5vw, 56px); border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--surface); overflow: hidden; }
.partner-final__glow { position: absolute; bottom: -60%; left: 20%; width: 60%; height: 120%; border-radius: 50%; background: var(--accent); opacity: .1; filter: blur(80px); pointer-events: none; }
.partner-final__text { position: relative; display: flex; flex-direction: column; gap: 16px; max-width: 640px; min-width: 0; }
.partner-final__text .lead { margin: 0; }
.partner-final__btn { position: relative; }
.partner-final .btn .icon { margin-right: 8px; }
@media (max-width: 640px) { .partner-final__btn { width: 100%; justify-content: center; } }

/* Ілюстрація першого екрана з медіатеки */
.hero-visual--image { padding: 0; }
.hero-visual__img { position: relative; display: block; width: 100%; max-width: 640px; height: auto; margin-left: auto; animation: hero-float 7s ease-in-out infinite; }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-visual__img { animation: none; } }
