

/* Start:/local/templates/agency/assets/css/main.css?179017941964568*/
/* ==========================================================================
   Kretinin Agency — design system
   Статический порт дизайн-системы NextSaaS «app-builder» на 1С-Битрикс.
   Источник токенов: nextsaas-templates/app-builder/src/styles/variables.css
   Без Tailwind: те же значения перенесены в CSS-переменные и компоненты.
   ========================================================================== */

/* ==========================================================================
   1. Токены
   ========================================================================== */
:root {
    /* Палитра — primary */
    --primary-50: #f4f2fe;
    --primary-100: #ece8ff;
    --primary-200: #dcd4ff;
    --primary-300: #c3b1ff;
    --primary-400: #a585ff;
    --primary-500: #864ffe;
    --primary-600: #7c31f6;
    --primary-700: #6d1fe2;
    --primary-800: #5a19be;

    /* Палитра — нейтральные */
    --secondary: #1a1a1c;
    --accent: #fcfcfc;
    --bg-1: #fcfcfd;
    --bg-2: #f9fafb;
    --bg-3: #f4f5f8;
    --bg-4: #f0f2f6;
    --bg-5: #13171e;
    --bg-6: #0f1217;
    --bg-7: #181d26;
    --bg-8: #070b10;
    --bg-9: #1f252f;
    --bg-12: #eaeceb;

    --stroke-1: #dfe4eb;
    --stroke-2: #e3e7ed;
    --stroke-3: #d7dde5;
    --stroke-4: #eceff4;
    --stroke-6: #202731;
    --stroke-7: #2a333e;

    /* Акцентные «ns» цвета донора */
    --ns-yellow: #f9eb57;
    --ns-green: #c6f56f;
    --ns-red: #ffb9a2;
    --ns-cyan: #83e7ee;
    --ns-green-light: #e8fbc6;
    --ns-cyan-light: #cdf5f8;
    --ns-yellow-light: #fdf7bc;

    /* Текст */
    --text: var(--secondary);
    --text-muted: rgba(26, 26, 28, .6);
    --text-invert: #fcfcfc;
    --text-invert-muted: rgba(252, 252, 252, .6);

    /* Градиенты */
    --gradient-1: linear-gradient(135deg, #a585ff 0%, #ffc2ad 100%);
    --gradient-4: linear-gradient(135deg, #864ffe 0%, #23eed6 100%);
    --gradient-10: linear-gradient(135deg, #83e7ee 0%, #c6f56f 100%);

    /* Тени */
    --shadow-1: 0 1px 2px 0 rgba(16, 24, 40, .05);
    --shadow-2: 0 10px 20px -5px rgba(28, 34, 43, .05), 0 20px 65px -5px rgba(28, 34, 43, .05);
    --shadow-3: 0 25px 80px -12px rgba(28, 34, 43, .1);
    --shadow-8: 0 12.5px 40px -6px rgba(28, 34, 43, .1);
    --shadow-15: 40px 28px 80px 0 rgba(0, 0, 0, .08);

    /* Типографика (шкала донора) */
    --text-h1: 4.25rem;
    --text-h2: 3.25rem;
    --text-h3: 2.5rem;
    --text-h4: 2rem;
    --text-h5: 1.5rem;
    --text-h6: 1.25rem;
    --text-tagline-1: 1rem;
    --text-tagline-2: .875rem;
    --text-tagline-3: .75rem;

    /* Геометрия */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-pill: 999px;
    --container: 1290px;
    --header-h: 84px;

    --font: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ==========================================================================
   2. База
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg-1);
    color: var(--text);
    font-family: var(--font);
    font-size: var(--text-tagline-1);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

/* Заголовки — крупные и лёгкие, как в доноре (font-weight: 400) */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 .5em;
    font-weight: 400;
    letter-spacing: -.02em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.5rem, 1.4rem + 4.6vw, var(--text-h1));
    line-height: 1.1;
}

h2 {
    font-size: clamp(2rem, 1.3rem + 3vw, var(--text-h2));
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.75rem, 1.4rem + 1.5vw, var(--text-h3));
    line-height: 1.2;
}

h4 {
    font-size: clamp(1.5rem, 1.3rem + 1vw, var(--text-h4));
    line-height: 1.3;
}

h5 {
    font-size: var(--text-h5);
    line-height: 1.4;
}

h6 {
    font-size: var(--text-h6);
    line-height: 1.4;
}

p {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

p:last-child {
    margin-bottom: 0;
}

strong,
b {
    font-weight: 500;
    color: var(--text);
}

ul,
ol {
    margin: 0 0 1rem;
    padding-left: 1.2em;
}

:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--primary-200);
}

.detail-content table {
    width: 100%;
    margin: 24px 0;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--stroke-2);
    border-radius: var(--radius-md);
    font-size: .95rem;
}

.detail-content th,
.detail-content td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--stroke-2);
    text-align: left;
    vertical-align: top;
}

.detail-content th {
    background: var(--bg-3);
    font-weight: 500;
}

.detail-content tr:last-child td {
    border-bottom: 0;
}

.price-table td:first-child,
.price-table th:first-child {
    font-weight: 500;
    color: var(--text);
}

.product-note {
    margin: 24px 0;
    padding: 18px 20px;
    border: 1px solid var(--stroke-2);
    border-left: 4px solid var(--primary-500);
    border-radius: var(--radius-md);
    background: var(--bg-2);
    color: var(--text-muted);
}

.product-note strong {
    color: var(--text);
}

/* ==========================================================================
   3. Раскладка
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 56px 0;
}

@media (min-width: 768px) {
    .section {
        padding: 64px 0;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 88px 0;
    }
}

@media (min-width: 1280px) {
    .section {
        padding: 100px 0;
    }
}

.section--tight {
    padding-top: 0;
}

.section--soft {
    background: var(--bg-3);
}

.section--muted {
    background: var(--bg-2);
}

.section--dark {
    background: var(--bg-8);
    color: var(--text-invert);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5 {
    color: var(--text-invert);
}

.section--dark p {
    color: var(--text-invert-muted);
}

.section-head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-head > .badge {
    margin-bottom: 16px;
}

.section-head h2 {
    margin-bottom: 12px;
}

.section-head p {
    font-size: var(--text-tagline-1);
}

.section-head--split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: 24px 40px;
    align-items: end;
    max-width: none;
    text-align: left;
}

@media (max-width: 900px) {
    .section-head--split {
        grid-template-columns: 1fr;
        align-items: start;
    }
}

.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 40px;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   4. Типографические утилиты
   ========================================================================== */
.tagline-1 {
    font-size: var(--text-tagline-1);
}

.tagline-2 {
    font-size: var(--text-tagline-2);
}

.tagline-3 {
    font-size: var(--text-tagline-3);
}

.lead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.text-primary {
    color: var(--primary-500);
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-720 {
    max-width: 720px;
}

.max-w-900 {
    max-width: 900px;
}

/* Градиентный акцент в заголовке (hero-text-gradient донора) */
.text-gradient {
    background: linear-gradient(45deg, #a585ff, #ffc2ad, #a585ff);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: text-shift 5s linear infinite;
}

@keyframes text-shift {
    0% {
        background-position: 0 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

/* ==========================================================================
   5. Кнопки (pill + стрелка на ховере — как в button.css донора)
   ========================================================================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    padding: 10px 20px;
    font-size: var(--text-tagline-1);
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .3s var(--ease), background-color .3s var(--ease),
        border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}

.btn::after {
    content: "";
    width: 0;
    height: 12px;
    opacity: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z'/%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 256 256'%3E%3Cpath d='M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: width .3s var(--ease), opacity .3s var(--ease);
}

.btn:hover {
    transform: scale(1.02);
}

.btn:hover::after {
    width: 12px;
    opacity: 1;
}

.btn:active {
    transform: scale(.99);
}

/* Размеры */
.btn--sm {
    padding: 6px 16px;
    font-size: var(--text-tagline-2);
}

.btn--sm::after {
    display: none;
}

.btn--lg {
    padding: 12px 24px;
}

.btn--xl {
    padding: 14px 32px;
}

.btn--block {
    width: 100%;
}

/* Цвета */
.btn--primary {
    background: var(--primary-500);
    border-color: var(--primary-600);
    color: #fff;
    box-shadow: var(--shadow-1);
}

.btn--primary:hover {
    background: var(--primary-600);
}

.btn--secondary {
    background: var(--secondary);
    border-color: #000;
    color: #fff;
    box-shadow: var(--shadow-1);
}

.btn--secondary:hover {
    background: #000;
}

.btn--white {
    background: var(--bg-1);
    border-color: var(--stroke-3);
    color: var(--secondary);
    box-shadow: var(--shadow-1);
}

.btn--white:hover {
    background: #fff;
    border-color: var(--secondary);
}

.btn--green {
    background: var(--ns-green);
    border-color: var(--ns-green-light);
    color: var(--secondary);
}

.btn--green:hover {
    background: #b9f04f;
}

.btn--ghost {
    background: transparent;
    border-color: var(--stroke-3);
    color: var(--secondary);
}

.btn--ghost:hover {
    background: var(--bg-3);
}

.btn--dark-ghost {
    background: rgba(252, 252, 252, .08);
    border-color: var(--stroke-7);
    color: var(--text-invert);
}

.btn--dark-ghost:hover {
    background: rgba(252, 252, 252, .16);
}

/* Текстовая ссылка со стрелкой */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-700);
    font-size: var(--text-tagline-2);
    transition: gap .25s var(--ease), color .25s var(--ease);
}

.link-arrow::after {
    content: "";
    width: 12px;
    height: 12px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z'/%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 256 256'%3E%3Cpath d='M181.66,133.66l-80,80a8,8,0,0,1-11.32-11.32L164.69,128,90.34,53.66a8,8,0,0,1,11.32-11.32l80,80A8,8,0,0,1,181.66,133.66Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.link-arrow:hover {
    gap: 10px;
    color: var(--primary-800);
}

/* ==========================================================================
   6. Бейджи
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--radius-pill);
    padding: 6px 20px;
    background: var(--bg-3);
    color: var(--secondary);
    font-size: var(--text-tagline-2);
    line-height: 1.4;
}

.badge--green {
    background: var(--ns-green-light);
}

.badge--cyan {
    background: var(--ns-cyan-light);
}

.badge--yellow {
    background: var(--ns-yellow-light);
}

.badge--primary {
    background: var(--primary-100);
    color: var(--primary-800);
}

.badge--white {
    background: #fff;
    color: var(--text-muted);
    box-shadow: var(--shadow-1);
}

.badge--dark {
    background: rgba(252, 252, 252, .1);
    color: var(--text-invert);
}

.badge--dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-500);
}

/* Чипы-теги */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.tag-list li {
    border-radius: var(--radius-pill);
    padding: 4px 12px;
    background: var(--bg-3);
    color: var(--text-muted);
    font-size: var(--text-tagline-3);
}

/* ==========================================================================
   7. Шапка
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(252, 252, 253, .8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), background-color .3s var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: var(--stroke-4);
    background: rgba(252, 252, 253, .94);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 1.0625rem;
    letter-spacing: -.01em;
}

.brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.brand__text b {
    font-weight: 500;
}

.brand__text span {
    display: block;
    color: var(--text-muted);
    font-size: var(--text-tagline-3);
    line-height: 1;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.main-nav a {
    border-radius: var(--radius-pill);
    padding: 8px 14px;
    color: var(--text-muted);
    font-size: var(--text-tagline-2);
    white-space: nowrap;
    transition: color .25s var(--ease), background-color .25s var(--ease);
}

/* CTA внутри меню нужен только в мобильной раскладке */
.main-nav > .btn {
    display: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    background: var(--bg-3);
    color: var(--secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-phone {
    font-size: var(--text-tagline-2);
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--stroke-3);
    border-radius: var(--radius-pill);
    background: #fff;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    margin: 4px auto;
    background: var(--secondary);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
}

@media (max-width: 1180px) {
    .header-phone {
        display: none;
    }
}

@media (max-width: 1024px) {
    .nav-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        margin: 0;
        padding: 12px 20px 20px;
        background: var(--bg-1);
        border-bottom: 1px solid var(--stroke-4);
        box-shadow: var(--shadow-2);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 14px;
        font-size: var(--text-tagline-1);
    }

    .header-actions .btn {
        display: none;
    }

    .main-nav > .btn {
        display: inline-flex;
        justify-content: center;
        margin-top: 8px;
    }
}

/* ==========================================================================
   8. Hero
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 56px;
}

@media (min-width: 768px) {
    .hero {
        padding: 96px 0 72px;
    }
}

@media (min-width: 1280px) {
    .hero {
        padding: 120px 0 88px;
    }
}

.hero__glow {
    position: absolute;
    top: -180px;
    left: 50%;
    z-index: 0;
    width: min(1100px, 120vw);
    height: 620px;
    transform: translateX(-50%);
    pointer-events: none;
    background:
        radial-gradient(45% 45% at 50% 50%, rgba(134, 79, 254, .18) 0%, rgba(134, 79, 254, 0) 100%),
        radial-gradient(35% 40% at 25% 60%, rgba(131, 231, 238, .22) 0%, rgba(131, 231, 238, 0) 100%),
        radial-gradient(30% 35% at 78% 45%, rgba(198, 245, 111, .22) 0%, rgba(198, 245, 111, 0) 100%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    max-width: 1075px;
    margin: 0 auto 16px;
}

.hero__lead {
    max-width: 650px;
    margin: 0 auto 32px;
    font-size: 1.125rem;
    color: var(--text-muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.hero__note {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: center;
    margin-bottom: 48px;
    color: var(--text-muted);
    font-size: var(--text-tagline-2);
}

.hero__note span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero__note span::before {
    content: "";
    width: 16px;
    height: 16px;
    background: url("/local/templates/agency/assets/css/../img/icon-check.svg") center / contain no-repeat;
}

.hero__visual {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-3);
}

.hero__visual img {
    width: 100%;
}

@media (max-width: 640px) {
    .hero__actions .btn {
        width: 100%;
    }
}

/* Полоса логотипов / доверия */
.logo-strip {
    padding: 32px 0;
}

.logo-strip__title {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: var(--text-tagline-2);
    text-align: center;
}

.logo-strip__items {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.logo-strip__items li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--stroke-4);
    border-radius: var(--radius-pill);
    padding: 8px 18px;
    background: #fff;
    color: var(--text-muted);
    font-size: var(--text-tagline-2);
    box-shadow: var(--shadow-1);
}

.logo-strip__items img {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   9. Карточки
   ========================================================================== */
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--stroke-4);
    border-radius: var(--radius-xl);
    padding: 28px;
    background: #fff;
    box-shadow: var(--shadow-1);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--stroke-3);
    box-shadow: var(--shadow-8);
}

.card--flat:hover {
    transform: none;
    box-shadow: var(--shadow-1);
}

.card--muted {
    background: var(--bg-2);
}

.card--dark {
    border-color: var(--stroke-7);
    background: var(--bg-6);
    color: var(--text-invert);
}

.card--dark h3,
.card--dark h4,
.card--dark h5 {
    color: var(--text-invert);
}

.card--dark p {
    color: var(--text-invert-muted);
}

.card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.card__icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: var(--bg-3);
}

.card__icon img,
.card__icon svg {
    width: 28px;
    height: 28px;
}

.card h3,
.card h4 {
    font-size: var(--text-h5);
    line-height: 1.35;
    margin-bottom: 8px;
}

.card p {
    font-size: var(--text-tagline-2);
    line-height: 1.6;
}

.card__footer {
    margin-top: auto;
    padding-top: 20px;
}

.card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 16px;
    color: var(--text-muted);
    font-size: var(--text-tagline-3);
}

/* Карточка услуги c номером */
.service-card__num {
    color: var(--primary-500);
    font-size: var(--text-tagline-2);
}

.service-card ul {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.service-card ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: var(--text-tagline-2);
}

.service-card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3em;
    width: 16px;
    height: 16px;
    background: url("/local/templates/agency/assets/css/../img/icon-check.svg") center / contain no-repeat;
}

/* Карточка кейса */
.case-card {
    padding: 0;
    overflow: hidden;
}

.case-card__visual {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: var(--bg-3);
}

.case-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-card__visual .badge {
    position: absolute;
    left: 16px;
    top: 16px;
}

.case-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.case-card__result {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    background: var(--ns-green-light);
    color: var(--secondary);
    font-size: var(--text-tagline-2);
}

.case-card__result strong {
    color: var(--secondary);
    font-size: var(--text-h4);
}

.case-card__industry {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: var(--text-tagline-3);
}

.case-hero-metric {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.case-hero-metric strong {
    color: var(--primary-500);
    font-size: 64px;
    line-height: 1;
}

.case-hero-metric span {
    max-width: 500px;
    color: var(--text-muted);
    font-size: var(--text-tagline-1);
}

.case-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.case-tech-grid > div {
    border-top: 2px solid var(--stroke-2);
    padding-top: 16px;
}

.case-tech-grid h3 {
    margin-bottom: 10px;
    font-size: var(--text-h4);
}

.case-tech-grid ul {
    margin-bottom: 0;
}

.case-ui {
    margin: 32px 0;
    border: 1px solid var(--stroke-2);
    border-radius: 8px;
    padding: 24px;
    overflow: hidden;
    background: var(--bg-2);
}

.case-ui__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.case-ui__head h3 {
    margin: 3px 0 0;
    font-size: var(--text-h3);
}

.case-ui__eyebrow {
    color: var(--primary-500);
    font-size: var(--text-tagline-3);
    font-weight: 700;
    text-transform: uppercase;
}

.case-ui__primary-stat {
    min-width: 150px;
    text-align: right;
}

.case-ui__primary-stat strong,
.case-ui__primary-stat span {
    display: block;
}

.case-ui__primary-stat strong {
    color: var(--primary-500);
    font-size: 32px;
    line-height: 1;
}

.case-ui__primary-stat span,
.case-ui__note {
    color: var(--text-muted);
    font-size: var(--text-tagline-3);
}

.case-ui__note {
    margin: 20px 0 0;
    padding-top: 14px;
    border-top: 1px solid var(--stroke-2);
}

.case-ui__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: var(--text-tagline-3);
    font-weight: 700;
}

.case-ui__status i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #25a765;
    box-shadow: 0 0 0 4px rgba(37, 167, 101, .14);
}

.case-funnel {
    display: grid;
    grid-template-columns: repeat(7, minmax(88px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
}

.case-funnel__step {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 10px;
    min-width: 88px;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

.case-funnel__step::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-200);
}

.case-funnel__step span {
    position: relative;
    z-index: 1;
    width: 18px;
    height: 18px;
    border: 4px solid var(--primary-100);
    border-radius: 50%;
    background: var(--primary-500);
}

.case-ui__stats,
.case-monitor-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.case-ui__stats > div,
.case-monitor-summary > div {
    border-left: 3px solid var(--primary-400);
    padding: 10px 12px;
    background: var(--bg-1);
}

.case-ui__stats strong,
.case-ui__stats span,
.case-monitor-summary strong,
.case-monitor-summary span {
    display: block;
}

.case-ui__stats strong {
    color: var(--secondary);
    font-size: var(--text-h4);
}

.case-ui__stats span,
.case-monitor-summary span {
    color: var(--text-muted);
    font-size: var(--text-tagline-3);
}

.case-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1.2fr) 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.case-flow__column {
    display: grid;
    gap: 8px;
}

.case-flow__column strong,
.case-flow__column span {
    border: 1px solid var(--stroke-2);
    border-radius: 6px;
    padding: 9px 11px;
    background: var(--bg-1);
    font-size: var(--text-tagline-3);
}

.case-flow__column strong {
    border: 0;
    padding-left: 0;
    background: transparent;
    color: var(--text-muted);
}

.case-flow__column--engine span {
    border-color: var(--primary-200);
    background: var(--primary-50);
}

.case-flow__column .is-warning,
.case-monitor-summary .is-warning {
    border-color: #e8b13e;
    background: #fff8e8;
}

.case-flow__arrow {
    color: var(--primary-500);
    font-size: 24px;
    text-align: center;
}

.case-ui__explain {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    border-left: 3px solid #26a6a1;
    padding: 12px 14px;
    background: var(--bg-1);
}

.case-ui__explain span {
    color: var(--text-muted);
    font-size: var(--text-tagline-3);
}

.case-monitor-line {
    display: grid;
    grid-template-columns: 1fr 32px 1fr 32px 1fr 32px 1fr;
    align-items: start;
    margin-top: 24px;
}

.case-monitor-line > div {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

.case-monitor-line i {
    width: 16px;
    height: 16px;
    border: 3px solid var(--stroke-3);
    border-radius: 50%;
    background: var(--bg-1);
}

.case-monitor-line > b {
    height: 2px;
    margin-top: 7px;
    background: var(--stroke-2);
}

.case-monitor-line .is-done i { border-color: #25a765; background: #25a765; }
.case-monitor-line .is-error i { border-color: #d9544d; background: #d9544d; }

.case-register-filters,
.case-escalation {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.case-register-filters span,
.case-escalation span {
    border: 1px solid var(--stroke-2);
    border-radius: 6px;
    padding: 7px 10px;
    background: var(--bg-1);
    font-size: var(--text-tagline-3);
}

.case-register-filters span:first-child {
    border-color: var(--primary-400);
    color: var(--primary-500);
}

.case-register-table {
    min-width: 560px;
}

.case-ui--registration {
    overflow-x: auto;
}

.case-register-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    border-bottom: 1px solid var(--stroke-2);
}

.case-register-row span {
    padding: 10px;
    font-size: var(--text-tagline-3);
}

.case-register-row--head {
    background: var(--secondary);
    color: var(--text-invert);
    font-weight: 700;
}

.case-register-row .is-ok { color: #167b4b; font-weight: 700; }
.case-register-row .is-warning { color: #9b6710; font-weight: 700; }

.case-escalation {
    align-items: center;
    margin: 18px 0 0;
}

.case-escalation b { color: var(--primary-500); }

.employee-ui,
.call-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.employee-onboarding,
.employee-assistant,
.call-review,
.call-dynamics {
    border: 1px solid var(--stroke-2);
    border-radius: 8px;
    padding: 18px;
    background: var(--bg-1);
}

.employee-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.employee-profile > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-100);
    color: var(--primary-500);
    font-weight: 700;
}

.employee-profile strong,
.employee-profile small,
.employee-today strong,
.employee-today small,
.employee-today span,
.employee-actions small,
.call-recommendation small,
.call-focus small,
.call-signals small {
    display: block;
}

.employee-profile small,
.employee-today small,
.employee-today span,
.employee-actions small,
.call-meta,
.call-signals small,
.call-recommendation small,
.call-focus small {
    color: var(--text-muted);
    font-size: var(--text-tagline-3);
}

.employee-progress {
    height: 7px;
    margin: 18px 0;
    border-radius: 4px;
    overflow: hidden;
    background: var(--bg-3);
}

.employee-progress span {
    display: block;
    height: 100%;
    background: var(--primary-500);
}

.employee-today {
    display: grid;
    gap: 4px;
    border-left: 3px solid var(--primary-500);
    padding: 12px 14px;
    background: var(--primary-50);
}

.employee-today b {
    margin-top: 5px;
    color: var(--primary-500);
    font-size: var(--text-tagline-3);
}

.employee-checklist {
    display: grid;
    gap: 8px;
    margin: 16px 0 0 !important;
    padding: 0;
    list-style: none;
}

.employee-checklist li {
    position: relative;
    margin: 0 !important;
    padding-left: 24px !important;
    font-size: var(--text-tagline-3);
}

.employee-checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3em;
    width: 16px !important;
    height: 16px !important;
    border: 1px solid var(--stroke-3);
    border-radius: 50%;
    background: transparent !important;
}

.employee-checklist .is-done::before {
    border-color: #25a765;
    background: #25a765 !important;
}

.employee-checklist .is-current::before {
    border: 4px solid var(--primary-100);
    background: var(--primary-500) !important;
}

.employee-assistant h4,
.call-dynamics h4 {
    margin: 4px 0 14px;
    font-size: var(--text-h5);
}

.employee-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.employee-actions > span {
    border: 1px solid var(--stroke-2);
    border-radius: 6px;
    padding: 10px;
    font-size: var(--text-tagline-2);
    font-weight: 600;
}

.employee-dialog {
    display: grid;
    gap: 7px;
    margin-top: 14px;
    border-left: 3px solid #26a6a1;
    padding: 12px 14px;
    background: var(--bg-2);
    font-size: var(--text-tagline-3);
}

.employee-dialog p {
    margin: 0;
}

.employee-dialog a {
    color: var(--primary-500);
    font-weight: 700;
}

.employee-timeline,
.call-pipeline,
.call-loop {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.employee-timeline span,
.call-pipeline span,
.call-loop span {
    flex: 1 0 auto;
    border: 1px solid var(--stroke-2);
    border-radius: 6px;
    padding: 8px 10px;
    background: var(--bg-1);
    font-size: var(--text-tagline-3);
    text-align: center;
}

.employee-timeline b {
    display: block;
    color: var(--primary-500);
}

.employee-timeline i,
.call-pipeline i,
.call-loop b {
    color: var(--primary-500);
    font-style: normal;
}

.call-pipeline {
    margin: 0 0 16px;
}

.call-pipeline span {
    border-color: var(--primary-200);
    background: var(--primary-50);
    font-weight: 600;
}

.call-meta,
.call-signals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.call-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
}

.call-meta span,
.call-signals span {
    border: 1px solid var(--stroke-2);
    border-radius: 6px;
    padding: 9px 10px;
}

.call-meta b,
.call-signals b {
    display: block;
    margin-top: 3px;
    color: var(--text);
    font-size: var(--text-tagline-3);
}

.call-signals .is-warning {
    border-color: #e8b13e;
    background: #fff8e8;
}

.call-recommendation,
.call-focus {
    display: grid;
    gap: 5px;
    margin-top: 14px;
    border-left: 3px solid var(--primary-500);
    padding: 12px 14px;
    background: var(--primary-50);
}

.call-recommendation strong,
.call-focus strong {
    font-size: var(--text-tagline-2);
    line-height: 1.45;
}

.call-chart {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
    gap: 12px;
    height: 130px;
    border-bottom: 1px solid var(--stroke-3);
    padding: 10px 12px 0;
    background: var(--bg-2);
}

.call-chart span {
    min-height: 20px;
    border-radius: 4px 4px 0 0;
    background: var(--primary-400);
}

.call-chart-labels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 6px 12px 0;
    color: var(--text-muted);
    font-size: var(--text-tagline-3);
    text-align: center;
}

.call-loop span {
    border-color: #b9dedc;
    background: #eef9f8;
}

.performance-scale {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.performance-scale > div {
    min-height: 92px;
    border: 1px solid var(--stroke-2);
    border-radius: 8px;
    padding: 14px;
    background: var(--bg-1);
}

.performance-scale strong,
.performance-scale span,
.performance-pipeline small,
.performance-pipeline b,
.cache-compare small,
.cache-compare b,
.price-cache-flow small,
.price-cache-flow strong,
.html-weight small,
.html-weight strong {
    display: block;
}

.performance-scale strong {
    color: var(--secondary);
    font-size: 25px;
    line-height: 1.1;
}

.performance-scale span,
.performance-pipeline small,
.cache-compare small,
.price-cache-flow small,
.html-weight small,
.html-weight p {
    color: var(--text-muted);
    font-size: var(--text-tagline-3);
}

.performance-scale .is-primary {
    border-color: var(--primary-400);
    background: var(--primary-50);
}

.performance-scale .is-primary strong {
    color: var(--primary-500);
}

.performance-pipeline {
    display: grid;
    grid-template-columns: minmax(126px, 1fr) 18px minmax(126px, 1fr) 18px minmax(126px, 1fr) 18px minmax(126px, 1fr) 18px minmax(126px, 1fr);
    align-items: stretch;
    gap: 5px;
    margin: 18px 0;
    overflow-x: auto;
    padding-bottom: 5px;
}

.performance-pipeline > span {
    display: grid;
    align-content: center;
    min-height: 72px;
    border: 1px solid var(--primary-200);
    border-radius: 7px;
    padding: 10px;
    background: var(--primary-50);
}

.performance-pipeline b {
    margin-top: 4px;
    font-size: var(--text-tagline-3);
    line-height: 1.35;
}

.performance-pipeline i,
.price-cache-flow i {
    align-self: center;
    color: var(--primary-500);
    font-style: normal;
    text-align: center;
}

.performance-grid {
    display: grid;
    grid-template-columns: 1.3fr .9fr;
    gap: 14px;
}

.performance-cache,
.performance-html {
    border: 1px solid var(--stroke-2);
    border-radius: 8px;
    padding: 18px;
    background: var(--bg-1);
}

.performance-cache h4,
.performance-html h4 {
    margin: 4px 0 15px;
    font-size: var(--text-h5);
}

.cache-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cache-compare > div {
    display: grid;
    align-content: start;
    gap: 6px;
    border: 1px solid var(--stroke-2);
    border-radius: 7px;
    padding: 12px;
    background: var(--bg-2);
}

.cache-compare span {
    border-left: 2px solid var(--stroke-3);
    padding: 5px 7px;
    font-size: 12px;
}

.cache-compare b {
    margin-top: 3px;
    font-size: 12px;
}

.cache-compare__old b {
    color: #9b6710;
}

.cache-compare .cache-compare__new {
    border-color: #b9dedc;
    background: #eef9f8;
}

.cache-compare__new span {
    border-color: #26a6a1;
}

.cache-compare__new b {
    color: #167b4b;
}

.html-weight {
    display: grid;
    gap: 18px;
}

.html-weight > div {
    display: grid;
    gap: 6px;
}

.html-weight__bar {
    display: block;
    height: 13px;
    border-radius: 3px;
}

.html-weight__bar--before {
    width: 100%;
    background: #e8b13e;
}

.html-weight__bar--after {
    width: 34%;
    min-width: 72px;
    background: #26a6a1;
}

.html-weight p {
    margin: 0;
}

.price-cache-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr) 18px) minmax(0, 1fr);
    gap: 6px;
    margin-top: 14px;
}

.price-cache-flow > div {
    min-height: 65px;
    border: 1px solid var(--stroke-2);
    border-radius: 7px;
    padding: 10px;
    background: var(--bg-1);
}

.price-cache-flow > div.is-primary {
    border-color: var(--primary-400);
    background: var(--primary-50);
}

.price-cache-flow strong {
    margin-top: 3px;
    font-size: var(--text-tagline-3);
    line-height: 1.35;
}

.tender-intelligence {
    display: grid;
    grid-template-columns: minmax(120px, .7fr) 24px minmax(150px, .8fr) 24px minmax(300px, 1.6fr);
    align-items: center;
    gap: 8px;
}

.tender-sources,
.tender-engine,
.tender-queue,
.tender-card-mock,
.manager-morning {
    border: 1px solid var(--stroke-2);
    border-radius: 8px;
    padding: 16px;
    background: var(--bg-1);
}

.tender-sources,
.tender-engine {
    display: grid;
    gap: 8px;
}

.tender-sources > small,
.tender-engine > small,
.tender-queue__head small,
.tender-card-mock__head small,
.tender-matching small,
.tender-next small,
.manager-morning small,
.tender-pipeline small {
    color: var(--text-muted);
    font-size: var(--text-tagline-3);
}

.tender-sources > span {
    display: grid;
    border-left: 3px solid var(--primary-400);
    padding: 8px 9px;
    background: var(--bg-2);
}

.tender-sources em,
.tender-queue em,
.tender-card-mock em,
.tender-pipeline em {
    color: var(--text-muted);
    font-size: 11px;
    font-style: normal;
}

.tender-engine {
    border-color: var(--primary-300);
    background: var(--primary-50);
}

.tender-engine > div {
    display: grid;
    justify-items: center;
    gap: 4px;
}

.tender-engine span {
    width: 100%;
    border: 1px solid var(--primary-200);
    border-radius: 5px;
    padding: 6px 8px;
    background: var(--bg-1);
    font-size: 12px;
    text-align: center;
}

.tender-engine i,
.tender-arrow,
.tender-pipeline > i {
    color: var(--primary-500);
    font-style: normal;
    text-align: center;
}

.tender-queue__head,
.tender-card-mock__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.tender-queue__head span,
.tender-queue__head small,
.tender-queue__head b,
.tender-card-mock__head span,
.tender-card-mock__head small,
.tender-card-mock__head b {
    display: block;
}

.tender-queue__head em,
.tender-card-mock__head em {
    border: 1px solid var(--primary-200);
    border-radius: 4px;
    padding: 3px 6px;
    color: var(--primary-500);
    white-space: nowrap;
}

.tender-queue__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 12px 0;
}

.tender-queue__stats span {
    border-radius: 5px;
    padding: 7px;
    background: var(--bg-2);
    color: var(--text-muted);
    font-size: 11px;
}

.tender-queue__stats strong {
    display: block;
    color: var(--secondary);
    font-size: 18px;
}

.tender-queue ol {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tender-queue li {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 7px;
    border-top: 1px solid var(--stroke-2);
    padding-top: 6px;
    font-size: 11px;
}

.tender-queue li > b {
    color: var(--primary-500);
}

.tender-queue li span,
.tender-queue li small {
    display: block;
}

.tender-queue li small {
    color: var(--text-muted);
    font-size: 10px;
}

.tender-queue li > em {
    border-radius: 4px;
    padding: 4px 6px;
    background: #eef9f8;
    color: #167b4b;
}

.tender-pipeline {
    display: grid;
    grid-template-columns: repeat(6, minmax(74px, 1fr) 14px) minmax(74px, 1fr);
    align-items: center;
    gap: 3px;
    margin: 16px 0;
    overflow-x: auto;
    padding-bottom: 4px;
}

.tender-pipeline > span {
    min-height: 76px;
    border: 1px solid var(--stroke-2);
    border-radius: 6px;
    padding: 9px;
    background: var(--bg-1);
}

.tender-pipeline b,
.tender-pipeline em {
    display: block;
}

.tender-pipeline b {
    margin: 3px 0;
    font-size: 12px;
    text-transform: uppercase;
}

.tender-workspace {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 14px;
}

.tender-card-mock dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 14px 0;
}

.tender-card-mock dl > div {
    border: 1px solid var(--stroke-2);
    border-radius: 5px;
    padding: 8px;
}

.tender-card-mock dt,
.tender-card-mock dd {
    margin: 0;
    font-size: 11px;
}

.tender-card-mock dt {
    color: var(--text-muted);
}

.tender-matching,
.manager-morning > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.tender-matching > span,
.manager-morning > div > span {
    border-left: 3px solid #26a6a1;
    padding: 9px 10px;
    background: #eef9f8;
}

.tender-matching small,
.tender-matching b,
.manager-morning small,
.manager-morning b {
    display: block;
}

.tender-next {
    display: grid;
    gap: 4px;
    margin-top: 12px;
    border-left: 3px solid var(--primary-500);
    padding: 10px 12px;
    background: var(--primary-50);
}

.tender-next span {
    color: var(--primary-500);
    font-size: var(--text-tagline-3);
    font-weight: 700;
}

.manager-morning h4 {
    margin: 4px 0 8px;
    font-size: var(--text-h4);
}

.manager-morning > p {
    margin: 0 0 13px;
    color: var(--text-muted);
    font-size: var(--text-tagline-3);
}

.manager-morning > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 14px;
}

.manager-morning > div > span {
    border-left: 0;
    border-top: 3px solid #26a6a1;
}

.manager-morning > strong {
    display: block;
    border-radius: 6px;
    padding: 11px;
    background: var(--secondary);
    color: var(--text-invert);
    font-size: var(--text-tagline-2);
    text-align: center;
}

.manager-morning .manager-morning__effect {
    margin: 12px 0 0;
    color: var(--text);
    font-weight: 700;
    text-align: center;
}

@media (max-width: 760px) {
    .case-ui { padding: 18px; }
    .case-ui__head { display: grid; gap: 14px; }
    .case-ui__primary-stat { text-align: left; }
    .case-ui__stats,
    .case-monitor-summary,
    .case-tech-grid { grid-template-columns: 1fr; }
    .case-flow { grid-template-columns: 1fr; }
    .case-flow__arrow { transform: rotate(90deg); }
    .case-monitor-line { grid-template-columns: 1fr; gap: 6px; }
    .case-monitor-line > b { width: 2px; height: 18px; margin: 0 auto; }
    .case-hero-metric { display: grid; gap: 8px; }
    .case-hero-metric strong { font-size: 44px; }
    .employee-ui,
    .call-review-grid { grid-template-columns: 1fr; }
    .call-signals { grid-template-columns: 1fr; }
    .performance-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .performance-grid,
    .cache-compare { grid-template-columns: 1fr; }
    .performance-pipeline {
        grid-template-columns: 1fr;
        overflow: visible;
    }
    .performance-pipeline i { transform: rotate(90deg); }
    .price-cache-flow { grid-template-columns: 1fr; }
    .price-cache-flow i { transform: rotate(90deg); }
    .tender-intelligence,
    .tender-workspace { grid-template-columns: 1fr; }
    .tender-arrow { transform: rotate(90deg); }
    .tender-pipeline {
        grid-template-columns: 1fr;
        overflow: visible;
    }
    .tender-pipeline > i { transform: rotate(90deg); }
    .manager-morning > div { grid-template-columns: 1fr; }
}

/* Карточка статьи */
.article-card__visual {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--bg-3);
}

.article-card time {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: var(--text-tagline-3);
}

/* Метрики */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 900px) {
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.stat {
    border-top: 2px solid var(--stroke-2);
    padding-top: 16px;
}

.stat strong {
    display: block;
    font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.stat span {
    color: var(--text-muted);
    font-size: var(--text-tagline-2);
}

.section--dark .stat {
    border-top-color: var(--stroke-7);
}

/* ==========================================================================
   10. Шаги / процесс (progress-line донора)
   ========================================================================== */
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
}

@media (max-width: 1024px) {
    .steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

.step__line {
    position: relative;
    height: 2px;
    margin-bottom: 12px;
    background: var(--stroke-2);
    overflow: hidden;
}

.step__line::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: var(--ns-green);
    transition: width 1.6s var(--ease);
}

.is-revealed .step__line::after {
    width: 100%;
}

.step__num {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-500);
    font-size: var(--text-tagline-2);
}

.step h5 {
    margin-bottom: 6px;
}

.step p {
    font-size: var(--text-tagline-2);
}

/* ==========================================================================
   11. Аккордеон FAQ
   ========================================================================== */
.faq-list {
    display: grid;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--stroke-4);
    border-radius: var(--radius-lg);
    background: #fff;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.faq-item.is-open {
    border-color: var(--stroke-3);
    box-shadow: var(--shadow-1);
}

.faq-item__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    border: 0;
    border-radius: inherit;
    padding: 20px 24px;
    background: transparent;
    font-size: var(--text-tagline-1);
    text-align: left;
    cursor: pointer;
}

.faq-item__icon {
    position: relative;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-3);
    transition: background-color .25s var(--ease), transform .3s var(--ease);
}

.faq-item__icon::before,
.faq-item__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 1.5px;
    background: var(--secondary);
    transform: translate(-50%, -50%);
    transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.faq-item__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-item__icon {
    background: var(--primary-500);
}

.faq-item.is-open .faq-item__icon::before,
.faq-item.is-open .faq-item__icon::after {
    background: #fff;
}

.faq-item.is-open .faq-item__icon::after {
    opacity: 0;
}

.faq-item__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s var(--ease);
}

.faq-item.is-open .faq-item__a {
    grid-template-rows: 1fr;
}

.faq-item__a > div {
    overflow: hidden;
}

.faq-item__a p {
    padding: 0 24px 20px;
    font-size: var(--text-tagline-2);
}

/* ==========================================================================
   12. Отзывы
   ========================================================================== */
.review {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--stroke-4);
    border-radius: var(--radius-xl);
    padding: 28px;
    background: #fff;
}

.review__stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.review__stars i {
    width: 16px;
    height: 16px;
    background: url("/local/templates/agency/assets/css/../img/icon-star.svg") center / contain no-repeat;
}

.review__text {
    margin-bottom: 20px;
    color: var(--secondary);
    font-size: var(--text-tagline-1);
    line-height: 1.6;
}

.review__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.review__avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-100);
    color: var(--primary-800);
    font-size: var(--text-tagline-2);
}

.review__author b {
    display: block;
    font-weight: 500;
}

.review__author span {
    color: var(--text-muted);
    font-size: var(--text-tagline-3);
}

/* ==========================================================================
   13. CTA-полоса
   ========================================================================== */
.cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    padding: 48px;
    background: var(--bg-8);
    color: var(--text-invert);
}

.cta::before {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -180px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(134, 79, 254, .55) 0%, rgba(134, 79, 254, 0) 70%);
    pointer-events: none;
}

.cta > * {
    position: relative;
    z-index: 1;
}

.cta h2 {
    max-width: 720px;
    color: var(--text-invert);
}

.cta p {
    max-width: 620px;
    color: var(--text-invert-muted);
}

.cta__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .cta__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cta {
        padding: 32px 24px;
    }
}

.cta__list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.cta__list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    color: var(--text-invert-muted);
    font-size: var(--text-tagline-2);
}

.cta__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .25em;
    width: 18px;
    height: 18px;
    background: url("/local/templates/agency/assets/css/../img/icon-check-light.svg") center / contain no-repeat;
}

.cta-contact {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 28px;
    border: 1px solid var(--stroke-7);
    border-radius: var(--radius-xl);
    background: rgba(252, 252, 252, .06);
}

.cta-contact .badge {
    justify-self: start;
    margin-bottom: 4px;
}

.cta-contact__note {
    margin: 2px 0 0;
    font-size: var(--text-tagline-3);
}

@media (max-width: 640px) {
    .cta-contact {
        padding: 20px;
    }
}

/* ========================================================================== 
   14. Формы
   ========================================================================== */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-field {
    display: grid;
    gap: 6px;
}

.form-field--wide {
    grid-column: 1 / -1;
}

.form-field > span {
    color: var(--text-muted);
    font-size: var(--text-tagline-3);
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field select,
.form-field textarea,
.form-control {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--stroke-3);
    border-radius: var(--radius-pill);
    padding: 12px 20px;
    background: #fff;
    color: var(--secondary);
    font-size: var(--text-tagline-2);
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.form-field textarea,
textarea.form-control {
    min-height: 120px;
    border-radius: var(--radius-lg);
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: 0 0 0 4px rgba(134, 79, 254, .12);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(26, 26, 28, .4);
}

.form-note {
    margin-top: 12px;
    color: var(--text-invert-muted);
    font-size: var(--text-tagline-3);
}

.cta .form-field > span {
    color: var(--text-invert-muted);
}

.form-message {
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 16px;
    background: var(--ns-green-light);
    color: var(--secondary);
    font-size: var(--text-tagline-2);
}

.form-message--error {
    background: #ffe8e2;
}

/* ==========================================================================
   15. Внутренние страницы
   ========================================================================== */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0 40px;
    background: var(--bg-3);
}

@media (min-width: 768px) {
    .page-hero {
        padding: 80px 0 64px;
    }
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-hero .badge {
    margin-bottom: 16px;
}

.page-hero h1 {
    margin-bottom: 16px;
    font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.25rem);
}

.page-hero p {
    max-width: 720px;
    font-size: 1.0625rem;
}

.page-hero--case .page-hero__inner {
    max-width: var(--container);
}

.page-hero--case h1 {
    max-width: 1120px;
}

.page-hero--case p {
    max-width: 920px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: var(--text-tagline-3);
}

.breadcrumbs a:hover {
    color: var(--secondary);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

.detail-content {
    border: 1px solid var(--stroke-4);
    border-radius: var(--radius-xl);
    padding: 32px;
    background: #fff;
}

@media (max-width: 640px) {
    .detail-content {
        padding: 24px 20px;
    }
}

.detail-content h2 {
    font-size: var(--text-h4);
    margin-top: 32px;
}

.detail-content h3 {
    font-size: var(--text-h5);
    margin-top: 28px;
}

.detail-content > *:first-child {
    margin-top: 0;
}

.detail-content img {
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.detail-content ul {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.detail-content ul li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.detail-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3em;
    width: 20px;
    height: 20px;
    background: url("/local/templates/agency/assets/css/../img/icon-check.svg") center / contain no-repeat;
}

.detail-aside {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    display: grid;
    gap: 16px;
}

.aside-card {
    border: 1px solid var(--stroke-4);
    border-radius: var(--radius-xl);
    padding: 24px;
    background: #fff;
}

.aside-card h4 {
    font-size: var(--text-h6);
    margin-bottom: 12px;
}

.aside-card dl {
    margin: 0;
}

.aside-card dt {
    color: var(--text-muted);
    font-size: var(--text-tagline-3);
}

.aside-card dd {
    margin: 0 0 12px;
    font-size: var(--text-tagline-2);
}

.aside-card--primary {
    border-color: transparent;
    background: var(--primary-50);
}

/* Контакты */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-card b {
    display: block;
    font-size: var(--text-h6);
    font-weight: 400;
    margin-bottom: 4px;
}

/* Якоря и подсветка предпросмотра из модуля управления блоками */
.agency-block-anchor {
    display: block;
    position: relative;
    top: -88px;
    width: 1px;
    height: 1px;
    visibility: hidden;
}

.agency-block-preview {
    position: relative;
    outline: 3px solid #37b26c;
    outline-offset: -3px;
}

.agency-block-preview__label {
    position: absolute;
    z-index: 20;
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    border-radius: 4px;
    background: #1f2d33;
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
}

/* Пагинация */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--stroke-4);
    border-radius: var(--radius-pill);
    padding: 0 12px;
    background: #fff;
    font-size: var(--text-tagline-2);
}

.pagination .is-active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #fff;
}

/* Пустое состояние */
.empty-state {
    border: 1px dashed var(--stroke-3);
    border-radius: var(--radius-xl);
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
}

.empty-state h3 {
    color: var(--secondary);
    font-size: var(--text-h5);
}

/* ==========================================================================
   16. Подвал
   ========================================================================== */
.site-footer {
    padding: 64px 0 24px;
    background: var(--bg-8);
    color: var(--text-invert-muted);
}

.site-footer h4 {
    margin-bottom: 16px;
    color: var(--text-invert);
    font-size: var(--text-tagline-1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-grid .brand {
    color: var(--text-invert);
    margin-bottom: 16px;
}

.footer-grid .brand__text b,
.section--dark strong,
.section--dark b,
.cta strong,
.cta b,
.card--dark strong,
.card--dark b {
    color: var(--text-invert);
}

.footer-grid .brand__text span {
    color: var(--text-invert-muted);
}

.footer-grid p {
    color: var(--text-invert-muted);
    font-size: var(--text-tagline-2);
}

.footer-links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    position: relative;
    display: inline-block;
    color: var(--primary-50);
    font-size: var(--text-tagline-2);
    opacity: .75;
    transition: opacity .25s var(--ease);
}

.footer-links a::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s var(--ease);
}

.footer-links a:hover {
    opacity: 1;
}

.footer-links a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--stroke-7);
    font-size: var(--text-tagline-3);
}

/* ==========================================================================
   17. Анимации появления
   ========================================================================== */
/* Скрываем только при работающем JS: если скрипт не загрузился, контент виден */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   18. Печать
   ========================================================================== */
@media print {
    .site-header,
    .site-footer,
    .cta,
    .nav-toggle,
    #panel {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .detail-content {
        border: 0;
        padding: 0;
    }
}

/* End */


/* Start:/local/templates/agency/template_styles.css?178309731938*/
@import url("/local/templates/agency/./assets/css/main.css");

/* End */
/* /local/templates/agency/assets/css/main.css?179017941964568 */
/* /local/templates/agency/template_styles.css?178309731938 */
