/* ============================================================
   PORTFOLIO — Upgraded Design v6.0
   Fonts loaded via <link rel="preload"+"stylesheet"> in HTML head
   for parallel non-blocking loading (no @import).
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    --bg: #ffffff;
    --bg-soft: #f4f8fb;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --border: #e6edf3;
    --border-hover: #c8d6e2;
    --text: #0d0e10;
    --text-sec: #56657a;
    --text-dim: #8090a0;
    --blue: #0098ea;
    --blue-dark: #0077bd;
    --blue-soft: #e7f5fe;
    --purple: #6d5efc;
    --cyan: #06b6d4;
    --pink: #ec4899;
    --green: #16a34a;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --shadow-sm: 0 1px 2px rgba(13, 18, 30, 0.04);
    --shadow-blue: 0 8px 24px rgba(0, 152, 234, 0.22);
    --shadow-card: 0 1px 2px rgba(13, 18, 30, 0.04), 0 10px 30px rgba(13, 18, 30, 0.06);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font);
    background: var(--bg);
    background-image: linear-gradient(180deg, var(--bg-soft), var(--bg) 360px);
    background-repeat: no-repeat;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: var(--blue);
    z-index: 999;
    transition: width .1s linear;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---------- Background (light theme: no dark orbs / dot-grid) ---------- */
.bg-glow { display: none; }
.bg-glow::after { display: none; }
.bg-glow__orb { display: none; }

/* ---------- Layout ---------- */
.page {
    position: relative;
    z-index: 1;
    max-width: 840px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

/* ---------- Card util ---------- */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}

.card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 1px 2px rgba(13,18,30,.05), 0 16px 40px rgba(13,18,30,.10);
    transform: translateY(-2px);
}

/* ---------- Language ---------- */
.lang {
    position: fixed;
    top: 20px; right: 20px;
    z-index: 100;
    display: flex;
    gap: 3px;
    padding: 3px;
    border-radius: 40px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.lang__btn {
    padding: 7px 15px;
    border: none;
    border-radius: 40px;
    background: transparent;
    color: var(--text-sec);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .4px;
    cursor: pointer;
    transition: all .25s var(--ease);
}

.lang__btn.active {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 152, 234, 0.28);
}

.lang__btn:hover:not(.active) {
    color: var(--text);
}

/* ---------- Header ---------- */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 8px 0;
}

.logo {
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    transition: transform .3s var(--ease), filter .3s var(--ease);
}

.logo:hover {
    transform: scale(1.08) rotate(-6deg);
    filter: drop-shadow(0 4px 10px rgba(0, 152, 234, 0.28));
}

.logo img { width: 100%; height: 100%; object-fit: contain; }

.socials {
    display: flex;
    gap: 8px;
}

.socials__link {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-sec);
    font-size: 1.05rem;
    transition: all .3s var(--ease);
}

.socials__link:hover {
    transform: translateY(-3px);
    color: var(--blue);
    border-color: var(--blue);
    box-shadow: var(--shadow-blue);
}

.socials__link[title="GitHub"]:hover      { color: #0d0e10; border-color: var(--border-hover); box-shadow: 0 6px 18px rgba(13,18,30,0.12); }
.socials__link[title="Telegram"]:hover    { color: var(--blue); border-color: var(--blue); box-shadow: var(--shadow-blue); }
.socials__link[title="Kwork"]:hover       { color: #ff5e57; border-color: rgba(255,94,87,0.45); box-shadow: 0 6px 18px rgba(255,94,87,0.18); }
.socials__link[title="Email"]:hover       { color: var(--blue); border-color: var(--blue); box-shadow: var(--shadow-blue); }

/* ---------- Hero ---------- */
.hero {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 28px;
    margin-bottom: 16px;
}

.hero__pic {
    flex-shrink: 0;
    position: relative;
    width: 134px; height: 134px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--blue), var(--purple), var(--cyan), var(--blue));
    background-size: 300% 300%;
    animation: ring-spin 6s linear infinite;
}

.hero__pic::before {
    content: '';
    position: absolute; inset: 3px;
    border-radius: 50%;
    background: #fff;
    z-index: 0;
}

.hero__pic img {
    position: relative;
    z-index: 1;
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: contain;
    padding: 10px;
}

@keyframes ring-spin {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero__content { flex: 1; }

.hero__title {
    font-family: var(--font);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero__name {
    background: linear-gradient(90deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero__sub {
    margin-top: 12px;
    color: var(--text-sec);
    font-size: .96rem;
    line-height: 1.6;
    max-width: 360px;
}

/* Hero badge strip */
.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .3px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--text-sec);
    transition: all .25s var(--ease);
}

.hero__badge:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-soft);
}

/* ---------- Info Row ---------- */
.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

/* Tech */
.tech-card {
    padding: 24px;
}

.tech-card__label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.tech-card__icons {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.tech-card__item {
    display: grid;
    place-items: center;
    cursor: help;
    transition: transform .3s var(--ease);
    position: relative;
}

.tech-card__item:hover { transform: scale(1.18) translateY(-2px); }

.tech-card__item i {
    font-size: 2.6rem;
    filter: drop-shadow(0 0 0px transparent);
    transition: filter .3s var(--ease);
}

.tech-card__item:hover i {
    filter: drop-shadow(0 0 10px currentColor);
}

/* CSS tooltip */
.tech-card__item::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    padding: 3px 8px;
    border-radius: 6px;
    background: #0d0e10;
    border: 1px solid #0d0e10;
    font-size: .65rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s, transform .2s;
}

.tech-card__item:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Status */
.status-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px;
}

.status-card__dot {
    position: relative;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

/* ping ripple rings */
.status-card__dot::before,
.status-card__dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1.5px solid var(--green);
    opacity: 0;
    animation: ping 2s ease-out infinite;
}

.status-card__dot::after {
    inset: -8px;
    animation-delay: .7s;
}

@keyframes ping {
    0%   { transform: scale(0.6); opacity: .7; }
    100% { transform: scale(1.8); opacity: 0; }
}

.status-card__text {
    font-weight: 650;
    font-size: .92rem;
}

.status-card__hint {
    font-size: .8rem;
    color: var(--text-sec);
}

/* ---------- Projects Section ---------- */
.projects {
    padding: 28px;
}

.projects__head {
    text-align: center;
    margin-bottom: 24px;
}

.projects__title {
    font-family: var(--font);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 16px;
    padding: 4px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

/* Screenshot thumbnail (used by Сайты tab cards) */
.proj__shot {
    aspect-ratio: 16/10;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 0 14px 0;
    background: var(--bg-soft);
    border: 1px solid var(--border);
}
.proj__shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}
.proj:hover .proj__shot img {
    transform: scale(1.04);
}

.tabs__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-sec);
    font-size: .82rem;
    font-weight: 650;
    cursor: pointer;
    transition: all .3s var(--ease);
}

.tabs__btn i { font-size: .75rem; }

.tabs__btn:hover:not(.active) {
    color: var(--text);
    background: #fff;
}

.tabs__btn.active {
    background: #fff;
    color: var(--blue);
    box-shadow: var(--shadow-sm);
}

.tabs__btn.active i { color: var(--blue); }

/* Grid */
.projects__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* ---------- Project Card ---------- */
.proj {
    padding: 22px;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
    position: relative;
    cursor: default;
    overflow: hidden;
}

/* Top accent line */
.proj::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--blue);
    border-radius: var(--radius) var(--radius) 0 0;
    opacity: 0;
    transition: opacity .4s var(--ease);
}

/* Bottom glow (disabled on light) */
.proj::before {
    content: none;
}

.proj:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 1px 2px rgba(13,18,30,.05), 0 16px 40px rgba(13,18,30,.10);
}

.proj:hover::after  { opacity: 1; }
.proj:hover::before { opacity: 1; }

.proj__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.proj__icon {
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-xs);
    background: var(--blue-soft);
    border: 1px solid var(--border);
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.proj:hover .proj__icon {
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(0,152,234,0.18);
}

.proj__name {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

/* Tags */
.proj__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 50px;
    font-size: .66rem;
    font-weight: 650;
    letter-spacing: .2px;
    border: 1px solid;
    white-space: nowrap;
}

.tag__dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Desc */
.proj__desc {
    font-size: .84rem;
    color: var(--text-sec);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 12px;
}

/* Tech keywords */
.proj__tech {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.kw {
    padding: 1px 7px;
    border-radius: 5px;
    font-size: .62rem;
    font-weight: 650;
    background: var(--bg-soft);
    color: var(--text-sec);
    border: 1px solid var(--border);
}

/* Link */
.proj__link-wrap {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.proj__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    font-size: .8rem;
    font-weight: 700;
    color: var(--blue);
    background: var(--blue-soft);
    border: 1px solid transparent;
    transition: all .3s var(--ease);
    cursor: pointer;
}

.proj__link:hover {
    color: #fff;
    background: var(--blue);
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: var(--shadow-blue);
}

.proj__link .fa-external-link-alt {
    font-size: .6rem;
    opacity: .45;
}

/* ---------- Footer ---------- */
.footer {
    margin-top: 52px;
    padding: 36px 0 28px;
    position: relative;
    text-align: center;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 1px;
    background: var(--border);
}

.footer__brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
}

.footer__icon {
    width: 40px; height: 40px;
    display: grid;
    place-items: center;
}

.footer__icon img { width: 100%; height: 100%; object-fit: contain; }

.footer__name {
    font-family: var(--font);
    font-size: 1.25rem;
    font-weight: 700;
}

.footer__role {
    font-size: .82rem;
    color: var(--text-sec);
}

.footer__text {
    color: var(--text-sec);
    font-size: .88rem;
    max-width: 380px;
    margin: 8px auto 20px;
}

.footer__cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 28px;
    border-radius: var(--radius-xs);
    font-size: .9rem;
    font-weight: 600;
    color: #fff;
    background: var(--blue);
    border: none;
    transition: all .35s var(--ease);
    cursor: pointer;
    letter-spacing: .2px;
    box-shadow: var(--shadow-blue);
}

.footer__cta:hover {
    background: var(--blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 152, 234, 0.34);
}

.footer__copy {
    margin-top: 20px;
    font-size: .76rem;
    color: var(--text-dim);
}

/* ---------- Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* stagger cards */
.stagger > .proj {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
}

.stagger.visible > .proj { opacity: 1; transform: none; }

.stagger.visible > .proj:nth-child(1)  { transition-delay: 0ms; }
.stagger.visible > .proj:nth-child(2)  { transition-delay: 70ms; }
.stagger.visible > .proj:nth-child(3)  { transition-delay: 140ms; }
.stagger.visible > .proj:nth-child(4)  { transition-delay: 210ms; }
.stagger.visible > .proj:nth-child(5)  { transition-delay: 280ms; }
.stagger.visible > .proj:nth-child(6)  { transition-delay: 350ms; }
.stagger.visible > .proj:nth-child(7)  { transition-delay: 420ms; }
.stagger.visible > .proj:nth-child(8)  { transition-delay: 490ms; }
.stagger.visible > .proj:nth-child(n+9) { transition-delay: 560ms; }

/* ---------- Responsive ---------- */
@media (max-width: 680px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 18px;
        padding: 24px 20px;
    }
    .hero__pic { width: 116px; height: 116px; }
    .hero__title { font-size: 2rem; }
    .hero__sub { max-width: 100%; }
    .hero__badges { justify-content: center; }
    .info-row { grid-template-columns: 1fr; }
    .projects__grid { grid-template-columns: 1fr; }
    .lang { top: 12px; right: 12px; }
    .tech-card__icons { gap: 20px; }
    .tech-card__item i { font-size: 2.1rem; }
    .tech-card__item::after { display: none; }
    /* Tabs: drop icons + tighten on mobile so 3 buttons fit without truncation */
    .tabs__btn { padding: 9px 6px; font-size: 0.72rem; gap: 0; min-width: 0; }
    .tabs__btn i { display: none; }
    .tabs__btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 400px) {
    .page { padding: 16px 12px 40px; }
    .hero__title { font-size: 1.7rem; }
    .proj { padding: 16px; }
    .socials__link { width: 36px; height: 36px; }
}

/* ---------- Floating CTA (always visible bottom-right) ---------- */
.floating-cta {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 28px rgba(0, 152, 234, 0.36);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
    will-change: transform;
}
.floating-cta:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--blue-dark);
    box-shadow: 0 14px 36px rgba(0, 152, 234, 0.46);
}
.floating-cta i { font-size: 1.05rem; }
@media (max-width: 500px) {
    .floating-cta {
        right: 14px; bottom: 14px;
        padding: 10px 16px; font-size: 0.84rem;
    }
}

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

/* ============================================================
   /bots — Telegram Bot Studio landing page
   ============================================================ */

.bots-page .page--bots {
    max-width: 1400px;
    padding: 32px 40px 80px;
}

/* Header back link */
.bots-header {
    justify-content: space-between;
}

.bots-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-sec);
    border: 1px solid var(--border);
    background: #fff;
    transition: all .25s var(--ease);
}
.bots-back:hover {
    color: var(--blue);
    border-color: var(--blue);
    transform: translateX(-3px);
}
.bots-back i { font-size: .72rem; }

/* ---------- Section heads ---------- */
.bots-section__head {
    text-align: center;
    margin-bottom: 44px;
}
.bots-section__kicker {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    background: var(--blue-soft);
    border: none;
    color: var(--blue);
    margin-bottom: 16px;
}
.bots-section__title {
    font-family: var(--font);
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 14px;
    color: var(--text);
}
.bots-section__sub {
    color: var(--text-sec);
    font-size: 1.08rem;
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.55;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-xs);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .01em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .3s var(--ease);
    white-space: nowrap;
}
.btn--primary {
    color: #fff;
    background: var(--blue);
    box-shadow: var(--shadow-blue);
}
.btn--primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 152, 234, 0.34);
}
.btn--ghost {
    color: var(--text);
    background: #fff;
    border-color: var(--border);
}
.btn--ghost:hover {
    background: #fff;
    color: var(--blue);
    border-color: var(--blue);
    transform: translateY(-2px);
}

/* ---------- 1. HERO ---------- */
.bots-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 56px;
    padding: 72px 64px;
    margin-bottom: 28px;
    overflow: hidden;
    position: relative;
    min-height: 640px;
}
.bots-hero::before {
    content: '';
    position: absolute;
    top: -120px; right: -100px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(0,152,234,0.07), transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.bots-hero::after {
    content: '';
    position: absolute;
    bottom: -150px; left: -80px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(0,152,234,0.05), transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.bots-hero__content { position: relative; z-index: 1; }
.bots-hero__kicker {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    background: var(--blue-soft);
    border: none;
    color: var(--blue);
    margin-bottom: 24px;
}
.bots-hero__title {
    font-family: var(--font);
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text);
}
.bots-hero__title .grad {
    background: linear-gradient(90deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.bots-hero__sub {
    color: var(--text-sec);
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 540px;
    margin-bottom: 36px;
}
.bots-hero__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.bots-hero__cta .btn {
    padding: 18px 36px;
    font-size: 1.05rem;
}
.bots-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.bots-hero__badges .hero__badge {
    padding: 6px 14px;
    font-size: .8rem;
}
.bots-hero__badges .hero__badge i {
    font-size: .78rem;
    color: var(--blue);
    margin-right: 3px;
}

/* ---------- Phone mockup ---------- */
.bots-hero__phone {
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
}
.phone {
    width: 340px;
    height: 680px;
    background: linear-gradient(180deg, #e9eef3, #dde4ec);
    border-radius: 50px;
    padding: 14px;
    border: 1px solid #d4dde6;
    box-shadow:
        0 30px 70px rgba(13,18,30,0.18),
        0 0 0 1px rgba(13,18,30,0.04);
    position: relative;
}
.phone::before {
    content: none;
}
.phone__notch {
    position: absolute;
    top: 22px; left: 50%;
    transform: translateX(-50%);
    width: 104px; height: 26px;
    background: #cdd6e0;
    border-radius: 16px;
    z-index: 5;
}
.phone__screen {
    width: 100%; height: 100%;
    background: #ffffff;
    border-radius: 38px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.phone__chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 46px 18px 14px;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border);
}
.phone__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.phone__bot-info { flex: 1; min-width: 0; }
.phone__bot-name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.phone__bot-status {
    font-size: .78rem;
    color: var(--text-sec);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}
.phone__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.15);
}
.phone__menu {
    color: var(--text-dim);
    font-size: 1.2rem;
    padding: 0 4px;
}
.phone__chat {
    padding: 18px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #ffffff;
    overflow: hidden;
}
.msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: .9rem;
    line-height: 1.4;
    word-wrap: break-word;
    opacity: 0;
    transform: translateY(8px);
}
.msg--user {
    align-self: flex-end;
    background: var(--blue);
    color: #fff;
    border-bottom-right-radius: 4px;
    font-weight: 600;
}
.msg--bot {
    align-self: flex-start;
    background: #f1f3f5;
    color: #0d0e10;
    border-bottom-left-radius: 4px;
}
.msg--typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 12px 14px;
}
.msg--typing span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
    animation: typing-bounce 1.4s ease-in-out infinite;
}
.msg--typing span:nth-child(2) { animation-delay: 0.2s; }
.msg--typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30% { transform: translateY(-5px); opacity: 1; }
}
.phone__btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(8px);
}
.phone__btns button {
    padding: 12px 6px;
    background: var(--blue-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--blue);
    font-size: .82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
    transition: background .2s;
}
.phone__btns button:hover { background: #d7eefc; }
.phone__btns button i { font-size: .82rem; color: var(--blue); }

@keyframes msg-in {
    0%   { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes msg-out {
    0%   { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-8px); height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: -8px; }
}

.a-d1 { animation: msg-in 0.45s 0.6s var(--ease) forwards; }
.a-d2 { animation: msg-in 0.4s 1.5s var(--ease) forwards, msg-out 0.35s 2.9s var(--ease) forwards; }
.a-d3 { animation: msg-in 0.5s 3.2s var(--ease) forwards; }
.a-d4 { animation: msg-in 0.5s 3.9s var(--ease) forwards; }

/* ---------- 2. STATS ---------- */
.bots-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 56px;
}
.stat {
    padding: 36px 28px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: all .35s var(--ease);
    position: relative;
    overflow: hidden;
}
.stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--blue);
    opacity: 0;
    transition: opacity .35s var(--ease);
}
.stat:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 1px 2px rgba(13,18,30,.05), 0 16px 40px rgba(13,18,30,.10);
}
.stat:hover::before { opacity: 1; }
.stat__num {
    font-family: var(--font);
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--blue);
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}
.stat__plus { font-size: 1.9rem; opacity: .7; color: var(--blue); }
.stat__label {
    font-size: .95rem;
    color: var(--text-sec);
    line-height: 1.4;
}

/* Alternating section rhythm (buytgbot vibe): soft panels on every other
   major /bots section. They remain bordered .card blocks, just tinted. */
.bots-services,
.bots-trust,
.bots-tech-stack,
.bots-faq {
    background: var(--bg-soft);
}

/* ---------- 3. SERVICES ---------- */
.bots-services { padding: 64px 56px; margin-bottom: 28px; }
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.service {
    --accent: var(--blue);
    padding: 36px 32px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: all .35s var(--ease);
    position: relative;
    overflow: hidden;
}
.service::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
}
.service:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 1px 2px rgba(13,18,30,.05), 0 16px 40px rgba(13,18,30,.10);
}
.service:hover::after { transform: scaleX(1); }
.service__icon {
    width: 64px; height: 64px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, #fff);
    margin-bottom: 20px;
    transition: transform .3s var(--ease);
}
.service:hover .service__icon {
    transform: scale(1.08) rotate(-4deg);
}
.service__title {
    font-family: var(--font);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.service__desc {
    font-size: .98rem;
    color: var(--text-sec);
    line-height: 1.55;
}

/* ---------- 4. PROCESS ---------- */
.bots-process { padding: 64px 56px; margin-bottom: 28px; }
.process {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    counter-reset: process;
}
.process__step {
    position: relative;
    padding: 30px 24px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: all .35s var(--ease);
}
.process__step:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: 0 1px 2px rgba(13,18,30,.05), 0 16px 40px rgba(13,18,30,.10);
}
.process__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50px; right: -12px;
    width: 18px; height: 2px;
    background: linear-gradient(90deg, var(--blue), transparent);
    z-index: 1;
}
.process__num {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font);
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    background: var(--blue);
    box-shadow: 0 6px 16px rgba(0,152,234,0.32);
    margin-bottom: 18px;
}
.process__body h3 {
    font-family: var(--font);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.process__time {
    display: inline-block;
    font-size: .76rem;
    color: var(--blue);
    background: var(--blue-soft);
    border: none;
    padding: 2px 10px;
    border-radius: 50px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: .04em;
}
.process__body p {
    font-size: .92rem;
    color: var(--text-sec);
    line-height: 1.5;
}

/* ---------- 4.5 TRUST / SOCIAL PROOF ---------- */
.bots-trust { padding: 64px 56px; margin-bottom: 28px; }
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 44px;
}
.trust-card {
    padding: 36px 30px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: all .35s var(--ease);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.trust-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent, var(--blue));
    opacity: .85;
}
.trust-card--orders  { --accent: var(--green); }
.trust-card--rating  { --accent: var(--blue); }
.trust-card--repeat  { --accent: var(--purple); }
.trust-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 1px 2px rgba(13,18,30,.05), 0 18px 44px rgba(13,18,30,.10);
}
.trust-card__big {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
    font-family: var(--font);
}
.trust-num {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent, var(--blue));
    letter-spacing: -0.04em;
}
.trust-num__separator {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-dim);
    margin: 0 4px;
}
.trust-num__total {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-sec);
    letter-spacing: -0.02em;
}
.trust-num__suffix {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent, var(--blue));
    opacity: .75;
}
.trust-card__label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 8px;
}
.trust-card__hint {
    font-size: .85rem;
    color: var(--text-sec);
    line-height: 1.5;
}
.bots-trust__verify {
    text-align: center;
    margin: 32px auto 44px;
    max-width: 760px;
    padding: 18px 26px;
    border-radius: var(--radius-sm);
    background: var(--blue-soft);
    border: 1px solid var(--border);
    color: var(--text-sec);
    font-size: .94rem;
    line-height: 1.5;
}
.bots-trust__verify i {
    color: var(--blue);
    margin-right: 6px;
}
.bots-trust__verify-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue);
    font-weight: 700;
    border-bottom: 1px dashed rgba(0,152,234,0.45);
    margin-left: 4px;
    transition: color .2s var(--ease);
}
.bots-trust__verify-link:hover {
    color: var(--blue-dark);
    border-color: rgba(0,119,189,0.5);
}
.bots-trust__verify-link i { font-size: .7rem; }

/* Rating card with stars */
.trust-rating-num {
    font-size: 4.4rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.04em;
}
.trust-rating-of {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-sec);
    margin-left: 6px;
}
.trust-card--rating .trust-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 8px 0 14px;
    color: #fbbf24;
    font-size: 1.1rem;
    filter: drop-shadow(0 0 6px rgba(251,191,36,0.4));
}

/* Reviews grid */
.bots-trust__quotes-title {
    font-family: var(--font);
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    color: var(--text);
}
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.review {
    padding: 28px 30px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: all .3s var(--ease);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.review::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    right: 22px;
    font-family: var(--font);
    font-size: 5rem;
    line-height: 1;
    color: var(--blue-soft);
    pointer-events: none;
}
.review:hover {
    transform: translateY(-3px);
    border-color: var(--border-hover);
    box-shadow: 0 1px 2px rgba(13,18,30,.05), 0 16px 40px rgba(13,18,30,.10);
}
.review__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.review__stars {
    display: inline-flex;
    gap: 2px;
    color: #fbbf24;
    font-size: .85rem;
    filter: drop-shadow(0 0 4px rgba(251,191,36,0.35));
}
.review__date {
    font-size: .78rem;
    color: var(--text-sec);
    font-weight: 600;
}
.review__badge {
    margin-left: auto;
    padding: 3px 9px;
    border-radius: 50px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    background: var(--blue-soft);
    border: none;
    color: var(--blue);
}
.review__body {
    flex: 1;
    font-size: .98rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.review__body strong {
    color: var(--blue);
    font-weight: 800;
}
.review__foot {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.review__author {
    font-size: .9rem;
    font-weight: 700;
    color: var(--blue);
    font-family: var(--font);
}
.review__project {
    font-size: .78rem;
    color: var(--text-dim);
    font-style: italic;
}

/* ---------- 5. CASES ---------- */
.bots-cases { padding: 64px 56px; margin-bottom: 28px; }
.bots-cases .projects__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}
.bots-cases .proj { padding: 28px; }
.bots-cases .proj__name { font-size: 1.15rem; }
.bots-cases .proj__desc { font-size: .95rem; }
.bots-cases__more {
    margin-top: 32px;
    text-align: center;
}
.bots-cases__more .btn {
    padding: 14px 30px;
    font-size: .95rem;
}
.bots-cases__more .btn i { font-size: .75rem; }

/* ---------- 6. TECH STACK ---------- */
.bots-tech-stack { padding: 64px 56px; margin-bottom: 28px; }
.tech-stack {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}
.tech-stack__item {
    padding: 32px 16px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    transition: all .3s var(--ease);
    cursor: default;
}
.tech-stack__item:hover {
    transform: translateY(-5px) scale(1.04);
    border-color: var(--border-hover);
    box-shadow: 0 1px 2px rgba(13,18,30,.05), 0 16px 38px rgba(13,18,30,.10);
}
.tech-stack__item i { font-size: 2.6rem; }
.tech-stack__item:hover i { filter: drop-shadow(0 0 14px currentColor); }
.tech-stack__item span {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-sec);
    letter-spacing: .02em;
}

/* ---------- 7. PRICING ---------- */
.bots-pricing {
    margin-bottom: 28px;
    padding: 0 8px;
}
.tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
    align-items: stretch;
}
.tier {
    padding: 44px 36px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: all .35s var(--ease);
    position: relative;
}
.tier:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 1px 2px rgba(13,18,30,.05), 0 18px 44px rgba(13,18,30,.10);
}
.tier--featured {
    border-color: var(--blue);
    background: linear-gradient(180deg, var(--blue-soft), #fff 60%);
    box-shadow: 0 0 0 1px var(--blue), 0 18px 44px rgba(0,152,234,0.14);
    transform: scale(1.02);
}
.tier--featured:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 0 0 1px var(--blue), 0 24px 52px rgba(0,152,234,0.20);
}
.tier__badge {
    position: absolute;
    top: -12px; left: 50%;
    transform: translateX(-50%);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: var(--blue);
    color: #fff;
    box-shadow: var(--shadow-blue);
}
.tier__head { margin-bottom: 24px; }
.tier__name {
    font-family: var(--font);
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 6px;
}
.tier__desc {
    font-size: .94rem;
    color: var(--text-sec);
    line-height: 1.45;
}
.tier__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
    font-family: var(--font);
}
.tier__from {
    font-size: .92rem;
    color: var(--text-dim);
    font-weight: 600;
}
.tier__amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.025em;
}
.tier--featured .tier__amount {
    color: var(--blue);
}
.tier__currency {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-sec);
}
.tier__time {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-soft);
    border: none;
    margin-bottom: 28px;
    align-self: flex-start;
}
.tier__time i { font-size: .72rem; }
.tier__list {
    list-style: none;
    margin-bottom: 32px;
    flex: 1;
}
.tier__list li {
    position: relative;
    padding: 11px 0 11px 30px;
    font-size: .98rem;
    color: var(--text);
    line-height: 1.5;
    border-bottom: 1px solid var(--border);
}
.tier__list li:last-child { border-bottom: none; }
.tier__list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 10px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(22,163,74,0.12);
    border: 1px solid rgba(22,163,74,0.28);
    color: var(--green);
    font-size: .76rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    line-height: 1;
}
.tier__list-no {
    color: var(--text-dim) !important;
}
.tier__list-no::before {
    content: '\2014' !important;
    color: var(--text-dim) !important;
    background: var(--bg-soft) !important;
    border-color: var(--border) !important;
}
.tier__cta {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
}
.bots-pricing__note {
    text-align: center;
    color: var(--text-sec);
    font-size: 1rem;
    padding: 22px 32px;
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    border: 1px solid var(--border);
}
.bots-pricing__note i {
    color: var(--blue);
    margin-right: 8px;
}

/* ---------- 7.5 EDITORIAL — long-form SEO content ---------- */
.bots-editorial { padding: 64px 56px; margin-bottom: 28px; }
.editorial {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}
.editorial__col {
    max-width: 100%;
}
.editorial__h3 {
    font-family: var(--font);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin-bottom: 14px;
    color: var(--text);
    position: relative;
    padding-left: 18px;
}
.editorial__h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 2px;
    background: var(--blue);
}
.editorial__h3 + p { margin-top: 4px; }
.editorial p {
    font-size: .98rem;
    color: var(--text-sec);
    line-height: 1.7;
    margin-bottom: 22px;
}
.editorial p:last-child { margin-bottom: 0; }
.editorial p strong {
    color: var(--text);
    font-weight: 700;
}

/* ---------- 8. FAQ ---------- */
.bots-faq { padding: 64px 56px; margin-bottom: 28px; }
.faq {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq__item {
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all .25s var(--ease);
    overflow: hidden;
}
.faq__item:hover {
    border-color: var(--border-hover);
}
.faq__item[open] {
    border-color: var(--blue);
    background: var(--blue-soft);
}
.faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i {
    color: var(--text-sec);
    font-size: .9rem;
    transition: transform .3s var(--ease);
    flex-shrink: 0;
}
.faq__item[open] summary i {
    transform: rotate(180deg);
    color: var(--blue);
}
.faq__item p {
    padding: 0 28px 26px;
    color: var(--text-sec);
    font-size: 1rem;
    line-height: 1.65;
}

/* ---------- 9. FOOTER ---------- */
.bots-footer { padding: 56px 0 36px; }
.bots-footer__title {
    font-family: var(--font);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 12px auto 16px;
    max-width: 720px;
}
.bots-footer .footer__text { font-size: 1.05rem; max-width: 540px; }
.bots-footer .footer__cta { padding: 16px 38px; font-size: 1.05rem; }
.bots-footer__alt {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}
.bots-footer__alt a {
    font-size: .95rem;
    color: var(--text-sec);
    transition: color .25s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.bots-footer__alt a:hover { color: var(--blue); }
.bots-footer__alt i { font-size: .85rem; }
.footer__copy a { color: var(--text-sec); border-bottom: 1px dotted var(--border-hover); }
.footer__copy a:hover { color: var(--blue); }

/* ---------- /bots header link in main page ---------- */
.header__bots-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
    background: var(--blue);
    border: 1px solid transparent;
    margin-right: auto;
    transition: all .3s var(--ease);
    box-shadow: var(--shadow-blue);
}
.header__bots-link:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(0,152,234,0.32);
}
.header__bots-link i { font-size: .7rem; }

/* ---------- 404 page ---------- */
.page--404 {
    min-height: 80vh;
    display: grid;
    place-items: center;
    max-width: 760px;
    padding: 40px 24px;
}
.not-found {
    width: 100%;
    padding: 64px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.not-found::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(0,152,234,0.06), transparent 60%);
    pointer-events: none;
}
.not-found__code {
    font-family: var(--font);
    font-size: 7rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.05em;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.not-found__title {
    font-family: var(--font);
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.not-found__sub {
    color: var(--text-sec);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}
.not-found__cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}
.not-found__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}
.not-found__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-sec);
    font-size: .88rem;
    font-weight: 600;
    transition: all .25s var(--ease);
}
.not-found__link:hover {
    color: var(--blue);
    border-color: var(--blue);
    background: var(--blue-soft);
    transform: translateY(-2px);
}
.not-found__link i {
    font-size: .88rem;
    color: var(--blue);
}
@media (max-width: 640px) {
    .not-found { padding: 40px 24px; }
    .not-found__code { font-size: 5rem; }
    .not-found__title { font-size: 1.7rem; }
    .not-found__sub { font-size: .94rem; }
    .not-found__cta { flex-direction: column; }
    .not-found__cta .btn { width: 100%; }
    .not-found__links { grid-template-columns: 1fr 1fr; }
}

/* ---------- /bots responsive ---------- */
@media (max-width: 1280px) {
    .bots-hero { padding: 56px 48px; min-height: 580px; }
    .bots-hero__title { font-size: 3.6rem; }
    .phone { width: 320px; height: 640px; }
    .bots-section__title { font-size: 2.3rem; }
    .bots-services, .bots-process, .bots-cases, .bots-tech-stack, .bots-faq { padding: 56px 44px; }
    .stat__num { font-size: 3rem; }
    .tier__amount { font-size: 2.6rem; }
    /* 4 tiers no longer fit 4-up comfortably — drop to a balanced 2×2 */
    .tiers { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .tier--featured { transform: none; }
    .tier--featured:hover { transform: translateY(-4px); }
}

@media (max-width: 980px) {
    .bots-page .page--bots { padding: 24px 24px 60px; }
    .bots-hero {
        grid-template-columns: 1fr;
        padding: 48px 36px;
        gap: 36px;
        min-height: 0;
        text-align: left;
    }
    .bots-hero__title { font-size: 2.8rem; }
    .bots-hero__phone { justify-self: center; }
    .phone { width: 290px; height: 580px; }
    .bots-stats { grid-template-columns: repeat(2, 1fr); }
    .stat__num { font-size: 2.6rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process { grid-template-columns: repeat(3, 1fr); }
    .process__step:not(:last-child)::after { display: none; }
    .bots-cases .projects__grid { grid-template-columns: 1fr 1fr; }
    .tech-stack { grid-template-columns: repeat(4, 1fr); }
    .tiers { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .tier--featured { transform: none; }
    .tier--featured:hover { transform: translateY(-4px); }
    .bots-section__title { font-size: 2rem; }
    .bots-footer__title { font-size: 1.8rem; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-num { font-size: 3.4rem; }
    .trust-rating-num { font-size: 3.6rem; }
}

@media (max-width: 640px) {
    .bots-page .page--bots { padding: 16px 14px 50px; }
    .bots-hero {
        grid-template-columns: 1fr;
        padding: 32px 24px;
        gap: 0;
    }
    .bots-hero__phone { display: none; }
    .bots-hero__title { font-size: 2.2rem; }
    .bots-hero__sub { font-size: 1rem; }
    .bots-hero__cta { flex-direction: column; }
    .bots-hero__cta .btn { width: 100%; padding: 14px 20px; font-size: .95rem; }
    .bots-section__title { font-size: 1.7rem; }
    .bots-section__sub { font-size: .95rem; }
    .bots-services, .bots-process, .bots-cases, .bots-tech-stack, .bots-faq {
        padding: 36px 22px;
    }
    .services-grid { grid-template-columns: 1fr; }
    .service { padding: 26px 22px; }
    .service__title { font-size: 1.15rem; }
    .service__desc { font-size: .9rem; }
    .process { grid-template-columns: 1fr; }
    .process__step { padding: 22px 20px; }
    .bots-cases .projects__grid { grid-template-columns: 1fr; }
    .bots-cases .proj { padding: 22px; }
    .tech-stack { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .tech-stack__item { padding: 18px 8px; }
    .tech-stack__item i { font-size: 1.8rem; }
    .tech-stack__item span { font-size: .75rem; }
    .tiers { grid-template-columns: 1fr; }
    .tier { padding: 30px 24px; }
    .tier__amount { font-size: 2.2rem; }
    .tier__name { font-size: 1.4rem; }
    .bots-trust { padding: 36px 22px; }
    .trust-grid { grid-template-columns: 1fr; gap: 14px; }
    .reviews-grid { grid-template-columns: 1fr; gap: 14px; }
    .trust-num { font-size: 3rem; }
    .trust-num__total { font-size: 1.9rem; }
    .trust-rating-num { font-size: 3.4rem; }
    .review { padding: 22px 24px; }
    .review__body { font-size: .92rem; }
    .bots-trust__verify { padding: 14px 18px; font-size: .88rem; }
    .bots-editorial { padding: 36px 22px; }
    .editorial { grid-template-columns: 1fr; gap: 24px; }
    .editorial__h3 { font-size: 1.15rem; }
    .editorial p { font-size: .92rem; }
    .bots-footer__title { font-size: 1.5rem; }
    .faq__item summary { padding: 18px 20px; font-size: .98rem; }
    .faq__item p { padding: 0 20px 20px; font-size: .92rem; }
    .bots-back span { display: none; }
    .bots-back { padding: 8px 12px; }
}

@media (max-width: 400px) {
    .bots-hero__title { font-size: 1.9rem; }
    .stat__num { font-size: 2.2rem; }
    .tech-stack { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Live Mini App preview — button variant + phone-frame modal
   ============================================================ */

/* Secondary "Open Mini App" button — cyan-tinted, sits next to .proj__link */
.proj__link--app {
    color: var(--cyan);
    background: #ecfdff;
    border: 1px solid transparent;
    margin-top: 8px;
}

.proj__link--app:hover {
    color: #fff;
    background: var(--cyan);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(6, 182, 212, 0.28);
}

/* Modal shell */
.maw {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.maw.maw--open { display: flex; }

.maw__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 18, 30, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: maw-fade .25s var(--ease);
}

@keyframes maw-fade { from { opacity: 0; } to { opacity: 1; } }

.maw__stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    animation: maw-pop .3s var(--ease);
}

@keyframes maw-pop {
    from { opacity: 0; transform: translateY(14px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.maw__close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    box-shadow: var(--shadow-sm);
    transition: all .2s var(--ease);
}

.maw__close:hover { background: var(--blue); color: #fff; transform: rotate(90deg); }

/* Phone frame */
.maw__phone {
    position: relative;
    width: 390px;
    height: 780px;
    max-height: calc(100vh - 96px);
    aspect-ratio: 390 / 780;
    background: #0a0a14;
    border: 10px solid #16161f;
    border-radius: 46px;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.06), 0 28px 80px rgba(0,0,0,0.6);
    overflow: hidden;
}

.maw__notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 26px;
    background: #16161f;
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.maw__screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 36px;
    overflow: hidden;
}

.maw__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    transition: opacity .35s var(--ease);
}

.maw__screen--loaded .maw__frame { opacity: 1; }

.maw__spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    transition: opacity .3s var(--ease);
}

.maw__screen--loaded .maw__spinner {
    opacity: 0;
    pointer-events: none;
}

.maw__ring {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid rgba(0, 152, 234, 0.2);
    border-top-color: var(--blue);
    animation: maw-spin .8s linear infinite;
}

@keyframes maw-spin { to { transform: rotate(360deg); } }

.maw__cap {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-sec);
    letter-spacing: .02em;
}

/* Mobile: near-fullscreen */
@media (max-width: 480px) {
    .maw { padding: 0; }
    .maw__stage { gap: 0; width: 100%; height: 100%; }
    .maw__phone {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-width: 0;
        border-radius: 0;
        aspect-ratio: auto;
    }
    .maw__screen { border-radius: 0; }
    .maw__notch { display: none; }
    .maw__close { top: 12px; right: 12px; }
    .maw__cap { display: none; }
}

/* ============================================================
   STUDIO REBUILD v8.4 — new sales components (BRIEF §4)
   Owned by CSS agent. Appended; nothing above is modified
   except the --text-dim token (a11y contrast lift in :root).
   Components: lead-form · calculator · why · guarantees ·
   capacity scarcity · case-card additions · a11y focus-visible.
   Mobile-first; breakpoints mirror existing 1280/980/640/400.
   ============================================================ */

/* ---------- A11y: global focus-visible ----------
   No visible keyboard focus ring existed before. Add a clear
   2px --blue outline with offset for any keyboard-focused element. */
:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}
/* Mouse/touch interactions keep the clean look (no outline). */
:focus:not(:focus-visible) { outline: none; }
/* Form controls + buttons sit on dark cards — give the ring a touch more room. */
.lead-form__input:focus-visible,
.calc__option:focus-visible,
.btn:focus-visible,
.lead-form__submit:focus-visible {
    outline-offset: 2px;
}

/* ============================================================
   LEAD FORM (.lead-form) — primary conversion block
   ============================================================ */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
}
.lead-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.lead-form__input {
    width: 100%;
    padding: 15px 18px;
    font-family: var(--font);
    font-size: .98rem;
    font-weight: 500;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}
.lead-form__input::placeholder {
    color: var(--text-dim);
    opacity: 1;
}
.lead-form__input:hover {
    border-color: var(--border-hover);
}
/* Visible focus ring using --blue (works alongside global :focus-visible) */
.lead-form__input:focus {
    outline: none;
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 152, 234, 0.16);
}
/* Native validation styling — only after a real submit attempt */
.lead-form.is-submitted .lead-form__input:invalid {
    border-color: rgba(236, 72, 153, 0.55);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.14);
}
.lead-form__submit {
    width: 100%;
    margin-top: 4px;
}
.lead-form__submit:disabled {
    opacity: .6;
    cursor: progress;
    transform: none;
}
.lead-form__note {
    font-size: .82rem;
    color: var(--text-sec);
    line-height: 1.5;
    text-align: center;
    margin-top: 2px;
}
/* Success state */
.lead-form__ok {
    font-size: .96rem;
    line-height: 1.55;
    color: var(--text);
    text-align: center;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    background: #ecfdf3;
    border: 1px solid rgba(22, 163, 74, 0.28);
    animation: lead-ok-in .4s var(--ease);
}
.lead-form__ok a {
    color: var(--green);
    font-weight: 700;
    border-bottom: 1px dashed rgba(22, 163, 74, 0.45);
    transition: color .2s var(--ease);
}
.lead-form__ok a:hover { color: #15803d; }
@keyframes lead-ok-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
/* Honeypot — visually & programmatically hidden, still focusable for bots */
.lead-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   PRICE CALCULATOR (.calc)
   ============================================================ */
.calc {
    padding: 44px 48px;
    max-width: 760px;
    margin: 0 auto;
}
/* Progress bar */
.calc__progress {
    height: 4px;
    border-radius: 50px;
    background: var(--border);
    overflow: hidden;
    margin-bottom: 8px;
}
.calc__progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 50px;
    background: var(--blue);
    transition: width .4s var(--ease);
}
.calc__progress-label {
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--text-sec);
    margin-bottom: 28px;
}
.calc__progress-label b { color: var(--blue); }

/* A step (one question). Hidden steps use [hidden]. */
.calc__step {
    animation: calc-step-in .4s var(--ease);
}
.calc__step[hidden] { display: none; }
@keyframes calc-step-in {
    from { opacity: 0; transform: translateX(14px); }
    to   { opacity: 1; transform: none; }
}
.calc__question {
    font-family: var(--font);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin-bottom: 6px;
}
.calc__hint {
    font-size: .92rem;
    color: var(--text-sec);
    line-height: 1.5;
    margin-bottom: 24px;
}

/* Selectable option chips/cards */
.calc__options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.calc__options--single { grid-template-columns: 1fr; }
.calc__option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
    width: 100%;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    cursor: pointer;
    transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
    position: relative;
    overflow: hidden;
}
.calc__option:hover {
    border-color: var(--border-hover);
    background: var(--bg-soft);
    transform: translateY(-2px);
}
/* Selected state */
.calc__option.is-selected,
.calc__option[aria-pressed="true"] {
    border-color: var(--blue);
    background: var(--blue-soft);
    box-shadow: 0 0 0 1px var(--blue), 0 8px 22px rgba(0, 152, 234, 0.12);
}
.calc__option-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: var(--blue);
    background: var(--blue-soft);
    border: 1px solid var(--border);
    transition: all .25s var(--ease);
}
.calc__option.is-selected .calc__option-icon {
    color: #fff;
    background: var(--blue);
    border-color: transparent;
}
.calc__option-body { flex: 1; min-width: 0; }
.calc__option-title {
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 3px;
}
.calc__option-desc {
    font-size: .84rem;
    color: var(--text-sec);
    line-height: 1.45;
}
/* Checkmark badge appears on selected multi-select options */
.calc__option-check {
    position: absolute;
    top: 12px; right: 12px;
    width: 20px; height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: .62rem;
    font-weight: 800;
    color: #fff;
    background: var(--blue);
    opacity: 0;
    transform: scale(.6);
    transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.calc__option.is-selected .calc__option-check {
    opacity: 1;
    transform: scale(1);
}

/* Navigation */
.calc__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 28px;
}
.calc__nav .btn { padding: 13px 26px; font-size: .95rem; }
.calc__back {
    background: transparent;
    border: none;
    color: var(--text-sec);
    font-family: inherit;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    transition: color .2s var(--ease), transform .2s var(--ease);
}
.calc__back:hover { color: var(--text); transform: translateX(-3px); }
.calc__back[hidden] { display: none; }
.calc__nav-spacer { flex: 1; }

/* Result / price vilka */
.calc__result {
    text-align: center;
    animation: calc-step-in .45s var(--ease);
}
.calc__result-kicker {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: #ecfdf3;
    border: 1px solid rgba(22, 163, 74, 0.28);
    color: var(--green);
    margin-bottom: 18px;
}
.calc__price {
    font-family: var(--font);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 8px;
}
.calc__price .calc__range {
    font-size: 3.4rem;
    color: var(--blue);
}
.calc__price-currency {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-sec);
    margin-left: 6px;
}
.calc__result-time {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-soft);
    border: none;
    margin-bottom: 22px;
}
.calc__result-time i { font-size: .78rem; }
.calc__result-note {
    font-size: .92rem;
    color: var(--text-sec);
    line-height: 1.6;
    max-width: 460px;
    margin: 0 auto 28px;
}
.calc__result-note b { color: var(--text); }
/* Lead form revealed inside the result */
.calc__result .lead-form {
    margin-top: 4px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

/* ============================================================
   WHY / DIFFERENTIATORS (.why)
   ============================================================ */
.why { padding: 56px 48px; margin-bottom: 28px; }
.why__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.why__item {
    padding: 30px 28px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
    position: relative;
    overflow: hidden;
}
.why__item:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 1px 2px rgba(13,18,30,.05), 0 16px 40px rgba(13,18,30,.10);
}
.why__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    color: var(--blue);
    background: var(--blue-soft);
    border: 1px solid var(--border);
    margin-bottom: 18px;
    transition: transform .3s var(--ease);
}
.why__item:hover .why__icon { transform: scale(1.08) rotate(-4deg); }
.why__item h3 {
    font-family: var(--font);
    font-size: 1.22rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}
.why__item p {
    font-size: .96rem;
    color: var(--text-sec);
    line-height: 1.6;
}

/* ============================================================
   GUARANTEES / RISK-REVERSAL (.guarantees)
   ============================================================ */
.guarantees {
    padding: 48px 48px;
    margin-bottom: 28px;
    background: #f3fbf6;
    border-color: rgba(22, 163, 74, 0.2);
}
.guarantees__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.guarantee {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    border-radius: var(--radius-sm);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.guarantee:hover {
    transform: translateY(-3px);
    border-color: rgba(22, 163, 74, 0.32);
    box-shadow: 0 1px 2px rgba(13,18,30,.05), 0 12px 28px rgba(13,18,30,.08);
}
.guarantee__icon {
    flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.05rem;
    color: var(--green);
    background: #ecfdf3;
    border: 1px solid rgba(22, 163, 74, 0.22);
}
.guarantee__text {
    font-size: .96rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
    padding-top: 2px;
}
.guarantee__text small,
.guarantee__sub {
    display: block;
    font-size: .82rem;
    font-weight: 400;
    color: var(--text-sec);
    line-height: 1.45;
    margin-top: 4px;
}

/* ============================================================
   SCARCITY / CAPACITY LINE (.capacity)
   ============================================================ */
.capacity {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-sec);
    line-height: 1.4;
    padding: 8px 0;
}
.capacity__dot {
    position: relative;
    flex-shrink: 0;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.capacity__dot::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px solid var(--green);
    opacity: 0;
    animation: ping 2s ease-out infinite;
}
.capacity b { color: var(--text); font-weight: 700; }

/* ============================================================
   CASE-CARD ADDITIONS — augment existing .proj card
   (.proj__cat · .proj__problem · .proj__result · .proj__more)
   ============================================================ */
/* Category chip — sits above/with the project name */
.proj__cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    padding: 3px 11px;
    margin-bottom: 10px;
    border-radius: 50px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-soft);
    border: none;
}
.proj__cat i { font-size: .64rem; opacity: .85; }

/* Muted one-liner problem statement */
.proj__problem {
    font-size: .82rem;
    color: var(--text-sec);
    line-height: 1.5;
    margin-bottom: 10px;
    display: flex;
    gap: 7px;
}
.proj__problem::before {
    content: '\f071'; /* fa exclamation-triangle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--text-dim);
    font-size: .72rem;
    flex-shrink: 0;
    line-height: 1.7;
    opacity: .7;
}

/* Outcome line — styled as a soft highlighted stat with accent left-border */
.proj__result {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.55;
    margin-bottom: 12px;
    padding: 12px 14px 12px 16px;
    border-radius: var(--radius-xs);
    border-left: 3px solid var(--green);
    background: #ecfdf3;
    display: flex;
    gap: 9px;
    align-items: flex-start;
}
.proj__result::before {
    content: '\f0a9'; /* fa arrow-circle-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--green);
    font-size: .85rem;
    flex-shrink: 0;
    line-height: 1.7;
}
/* Optional owner-supplied metric rendered as a pill */
.proj__metric {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 12px;
    padding: 5px 13px;
    border-radius: 50px;
    font-family: var(--font);
    font-weight: 800;
    font-size: .9rem;
    color: var(--green);
    background: #ecfdf3;
    border: 1px solid rgba(22, 163, 74, 0.28);
    align-self: flex-start;
}

/* "Подробнее →" link with arrow hover */
.proj__more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--blue);
    transition: gap .25s var(--ease), color .25s var(--ease);
}
.proj__more i,
.proj__more .proj__more-arrow {
    font-size: .7rem;
    transition: transform .25s var(--ease);
}
.proj__more:hover {
    color: var(--blue-dark);
    gap: 11px;
}
.proj__more:hover i,
.proj__more:hover .proj__more-arrow {
    transform: translateX(3px);
}

/* ============================================================
   RESPONSIVE — new components (mirror existing breakpoints)
   ============================================================ */
@media (max-width: 1280px) {
    .calc { padding: 40px 40px; }
    .why, .guarantees { padding: 48px 40px; }
}

@media (max-width: 980px) {
    .why__grid { grid-template-columns: repeat(2, 1fr); }
    .guarantees__grid { grid-template-columns: 1fr 1fr; }
    .calc { padding: 36px 32px; }
    .calc__question { font-size: 1.35rem; }
    .calc__price .calc__range { font-size: 3rem; }
}

@media (max-width: 640px) {
    /* Lead form stacks */
    .lead-form__row { grid-template-columns: 1fr; }
    .lead-form__input { padding: 14px 16px; font-size: .95rem; }
    .lead-form__submit { padding: 15px 20px; }

    /* Calculator */
    .calc { padding: 28px 22px; }
    .calc__question { font-size: 1.25rem; }
    .calc__hint { font-size: .88rem; margin-bottom: 20px; }
    .calc__options { grid-template-columns: 1fr; }
    .calc__option { padding: 15px 16px; }
    .calc__nav { margin-top: 22px; }
    .calc__nav .btn { padding: 12px 20px; font-size: .9rem; }
    .calc__price .calc__range { font-size: 2.6rem; }
    .calc__price-currency { font-size: 1.6rem; }

    /* Why */
    .why { padding: 40px 22px; }
    .why__grid { grid-template-columns: 1fr; }
    .why__item { padding: 24px 22px; }
    .why__item h3 { font-size: 1.12rem; }
    .why__item p { font-size: .9rem; }
    .why__icon { width: 48px; height: 48px; font-size: 1.2rem; }

    /* Guarantees */
    .guarantees { padding: 36px 22px; }
    .guarantees__grid { grid-template-columns: 1fr; gap: 12px; }
    .guarantee { padding: 16px 18px; }

    /* Case-card additions stay readable in single column */
    .proj__result { font-size: .86rem; padding: 10px 12px 10px 14px; }

    /* Homepage (840px .page): make studio grids fit narrow column */
    .page .bots-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .page .bots-stats .stat { padding: 24px 18px; }
    .page .bots-stats .stat__num { font-size: 2.4rem; }
    .page .services-grid { grid-template-columns: 1fr; }
}

/* Homepage studio blocks live inside the narrow 840px .page —
   tighten the default 3/4-col grids so they don't overflow. */
.page .bots-stats { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.page .bots-stats .stat { padding: 28px 20px; }
.page .bots-stats .stat__num { font-size: 2.6rem; }
.page .services-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.page .why { padding: 36px 32px; }
.page .why__grid { grid-template-columns: 1fr 1fr; }
.page .guarantees { padding: 32px 32px; }

@media (max-width: 760px) {
    .page .bots-stats { grid-template-columns: 1fr 1fr; }
    .page .services-grid { grid-template-columns: 1fr; }
    .page .why__grid { grid-template-columns: 1fr; }
    .page .guarantees__grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    .calc__price .calc__range { font-size: 2.2rem; }
    .why__item { padding: 20px 18px; }
}

/* ============================================================
   ===== STUDIO REBUILD v8.5 — page-class reconciliation =====
   New classes emitted by the rebuilt index.html / bots.html that
   had no rule in v8.4. Matches the dark glassmorphism system
   (tokens: --bg --blue --purple --cyan --green --text --text-sec,
   --radius, --ease; fonts Inter + Outfit).
   ============================================================ */

/* ---------- Homepage header inline nav (.header__nav) ---------- */
/* Sits between .header__bots-link (left) and .socials (right). */
.header__nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}
.header__nav-link {
    position: relative;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-sec);
    letter-spacing: .01em;
    transition: color .25s var(--ease), background .25s var(--ease);
}
.header__nav-link::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px;
    bottom: 4px;
    height: 1.5px;
    border-radius: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s var(--ease);
}
.header__nav-link:hover {
    color: var(--blue);
    background: var(--blue-soft);
}
.header__nav-link:hover::after { transform: scaleX(1); }

/* ---------- Homepage hero — studio variant ---------- */
/* .hero--studio reuses the base flex .hero layout; only tune spacing
   so the richer studio content block breathes. */
.hero--studio {
    gap: 34px;
    padding: 36px 38px;
}
.hero--studio .hero__content { display: flex; flex-direction: column; }

.hero__title--studio {
    font-size: 2.9rem;
    letter-spacing: -0.035em;
    line-height: 1.08;
}
/* gradient span inside the studio title (markup uses .grad) */
.hero__title--studio .grad {
    background: linear-gradient(90deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Positioning lead paragraph — wider + more prominent than base .hero__sub */
.hero__sub--studio {
    max-width: 560px;
    font-size: 1.04rem;
    color: var(--text-sec);
    line-height: 1.62;
    margin-top: 14px;
}

/* Founder micro-line under the lead */
.hero__trust {
    margin-top: 12px;
    font-size: .9rem;
    line-height: 1.5;
    color: var(--text-dim);
}
.hero__trust .hero__name {
    background: linear-gradient(90deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* Hero CTA button group — wraps on mobile */
.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}
.hero__cta .btn {
    padding: 14px 26px;
    font-size: .96rem;
}
/* Tertiary Telegram button — Telegram-blue tint, sits beside the ghost CTA */
.hero__cta-tg {
    color: var(--blue);
    background: var(--blue-soft);
    border-color: transparent;
}
.hero__cta-tg i { font-size: 1.05rem; color: var(--blue); }
.hero__cta-tg:hover {
    color: #fff;
    background: var(--blue);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}
/* .capacity already styled in v8.4 — homepage hero variant just spaces it */
.hero--studio .capacity { margin-top: 18px; }

/* ---------- Homepage footer — lead variant ---------- */
/* .footer--lead carries the primary lead form; widen the constrained
   text/form so the conversion block reads as the page's main CTA. */
.footer--lead { padding-top: 44px; }
.footer--lead .footer__text { max-width: 520px; font-size: .94rem; }
.footer--lead .lead-form { margin: 0 auto 18px; max-width: 540px; }

/* Secondary Telegram CTA below the form — quieter than the gradient .footer__cta */
.footer__cta--secondary {
    background: #fff;
    color: var(--blue);
    border: 1px solid var(--border);
    box-shadow: none;
    font-size: .88rem;
    padding: 11px 24px;
}
.footer__cta--secondary i { font-size: 1rem; }
.footer__cta--secondary:hover {
    background: var(--blue-soft);
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 152, 234, 0.16);
}

/* Footer nav links row (homepage) */
.footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 22px;
    margin-top: 24px;
}
.footer__links a {
    position: relative;
    font-size: .84rem;
    font-weight: 600;
    color: var(--text-sec);
    transition: color .25s var(--ease);
}
.footer__links a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -12px; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--text-dim);
}
.footer__links a:hover { color: var(--blue); }

/* ---------- Homepage "Все кейсы подробно →" link (.projects__all) ---------- */
.projects__all {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 22px auto 0;
    padding: 11px 24px;
    border-radius: 50px;
    font-size: .92rem;
    font-weight: 650;
    color: var(--blue);
    background: #fff;
    border: 1px solid var(--border);
    transition: all .3s var(--ease);
}
.projects__all i { font-size: .82rem; transition: transform .3s var(--ease); }
.projects__all:hover {
    color: var(--blue);
    background: var(--blue-soft);
    border-color: var(--blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 152, 234, 0.16);
}
.projects__all:hover i { transform: translateX(4px); }
/* The link lives in a centered .projects section — center it */
.projects { text-align: center; }
.projects .projects__grid { text-align: left; }

/* ---------- /bots hero trust micro-strip (.bots-hero__trust) ---------- */
.bots-hero__trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 18px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-sec);
}
.bots-hero__trust > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.bots-hero__trust > span[aria-hidden="true"] { color: var(--text-dim); }
.bots-hero__trust .fa-star { color: #fbbf24; font-size: .8rem; }

/* ---------- Capacity line — footer modifier (.capacity--footer) ---------- */
/* Base .capacity is inline-flex; center it under the footer CTA block. */
.capacity--footer {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 4px auto 8px;
    max-width: 560px;
}
.capacity--footer i { color: var(--blue); opacity: .85; }

/* ---------- /bots footer nav links row (.bots-footer__nav) ---------- */
.bots-footer__nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 12px;
    margin-top: 22px;
    font-size: .86rem;
}
.bots-footer__nav a {
    font-weight: 600;
    color: var(--text-sec);
    transition: color .25s var(--ease);
}
.bots-footer__nav a:hover { color: var(--blue); }
.bots-footer__nav span[aria-hidden="true"] { color: var(--text-dim); }

/* ============================================================
   .tier-support — recurring "Сопровождение от 10 000 ₽/мес"
   Horizontal companion row to the pricing tiers: lighter,
   full-width, icon left + body + price + CTA right.
   ============================================================ */
.tier-support {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 24px;
    padding: 26px 32px;
    border-radius: var(--radius);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-style: dashed;
    transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.tier-support:hover {
    border-color: var(--blue);
    background: var(--blue-soft);
    transform: translateY(-3px);
}
.tier-support__icon {
    width: 54px; height: 54px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    font-size: 1.4rem;
    color: var(--blue);
    background: var(--blue-soft);
    border: 1px solid var(--border);
}
.tier-support__body { min-width: 0; }
.tier-support__name {
    font-family: var(--font);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.tier-support__desc {
    font-size: .92rem;
    color: var(--text-sec);
    line-height: 1.5;
    max-width: 620px;
}
.tier-support__price {
    display: flex;
    align-items: baseline;
    gap: 7px;
    font-family: var(--font);
    white-space: nowrap;
}
.tier-support__amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
/* .tier__from and .tier__currency reuse existing pricing rules */
.tier-support__cta {
    flex-shrink: 0;
    padding: 13px 28px;
    font-size: .92rem;
    white-space: nowrap;
}

/* ---------- Responsive reconciliation ---------- */
@media (max-width: 980px) {
    /* tier-support: drop the price/CTA onto their own row */
    .tier-support {
        grid-template-columns: auto 1fr;
        gap: 18px 20px;
    }
    .tier-support__price {
        grid-column: 2;
        justify-self: start;
    }
    .tier-support__cta {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 760px) {
    /* Homepage header: let inline nav wrap / hide so header never overflows */
    .header { flex-wrap: wrap; gap: 10px 14px; }
    .header__nav { order: 3; flex-basis: 100%; justify-content: center; gap: 2px; }
    .hero--studio { padding: 28px 24px; }
    .hero__title--studio { font-size: 2.3rem; }
}

@media (max-width: 640px) {
    /* Homepage hero CTA + capacity stack neatly */
    .hero--studio { gap: 22px; }
    .hero__cta { gap: 10px; }
    .hero--studio .hero__cta .btn { width: 100%; }
    .hero__sub--studio { font-size: .98rem; }
    .hero__title--studio { font-size: 2.05rem; }

    /* Footer lead variant: full-width secondary CTA */
    .footer__cta--secondary { width: 100%; max-width: 320px; justify-content: center; }
    .footer__links { gap: 8px 18px; }

    /* tier-support fully stacks: icon+body, then price, then full-width CTA */
    .tier-support {
        grid-template-columns: auto 1fr;
        gap: 16px;
        padding: 24px 22px;
    }
    .tier-support__name { font-size: 1.25rem; }
    .tier-support__amount { font-size: 1.8rem; }
    .tier-support__cta { width: 100%; justify-content: center; }

    /* /bots hero trust strip tightens */
    .bots-hero__trust { gap: 5px 10px; font-size: .82rem; }
}

@media (max-width: 400px) {
    .header__nav-link { padding: 6px 9px; font-size: .82rem; }
    .hero__title--studio { font-size: 1.8rem; }
    .tier-support__icon { width: 46px; height: 46px; font-size: 1.2rem; }
}

/* ===== header brand (content pages) ===== */
.header__brand, .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.header__brand img, .brand img { border-radius: 8px; }
.header__brand-name { font-size: 1.05rem; font-weight: 800; color: var(--text); }

/* ============================================================
   ============================================================
   FULL-WIDTH LAYOUT SYSTEM v9.0  (buytgbot.ru-style, light)
   ------------------------------------------------------------
   LAYOUT/WIDTH/POLISH pass only — NO color/token changes, NO
   person name, ALL content/JS/i18n/JSON-LD/ids preserved.

   Strategy: full-bleed .section bands whose inner content is
   auto-centered + capped via the padding-inline trick (no inner
   wrapper div). Markup drops `.card` from section wrappers and
   adds `.section` (+ optional `--soft`/`--hero`/`--cta`). The
   page container is neutralized so sections own width/centering.

   This block is APPENDED LAST, so its rules win on equal
   specificity and act as the intended overrides. All existing
   component item-card styling (.service/.tier/.review/.why__item/
   .guarantee/.proj/.stat/.blog-card/.case-card) is kept intact.
   ============================================================
   ============================================================ */

/* ---------- Content cap (single source of truth) ---------- */
:root {
    --cap: 620px;             /* half of ~1240px content max-width */
    --gutter: 20px;           /* min side gutter on small screens */
    --section-pad-y: clamp(60px, 7vw, 104px);
}

/* ---------- Full-bleed band model ---------- */
.section {
    width: 100%;
    margin: 0;
    /* keep bands flat: a band is NOT a card */
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding-block: var(--section-pad-y);
    /* content caps at ~1240px, centered; background spans edge-to-edge */
    padding-inline: max(var(--gutter), calc(50% - var(--cap)));
}

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

.section--hero {
    background: linear-gradient(180deg, #f4f8fb 0%, #ffffff 70%);
    padding-block: clamp(40px, 5vw, 72px) clamp(48px, 6vw, 88px);
}

.section--cta {
    background: linear-gradient(135deg, var(--blue), #2f73e8);
    color: #fff;
}

/* Inside a blue CTA band, text/links flip to white for contrast */
.section--cta,
.section--cta .footer__text,
.section--cta .footer__role,
.section--cta .footer__copy,
.section--cta .bots-footer__title {
    color: #fff;
}
.section--cta .footer__copy { color: rgba(255, 255, 255, .82); }
.section--cta .footer::before { background: rgba(255, 255, 255, .18); }
.section--cta .footer__links a,
.section--cta .bots-footer__nav a,
.section--cta .bots-footer__alt a { color: rgba(255, 255, 255, .9); }
.section--cta .footer__links a:hover,
.section--cta .bots-footer__nav a:hover,
.section--cta .bots-footer__alt a:hover { color: #fff; }
.section--cta .footer__links a:not(:last-child)::after { background: rgba(255, 255, 255, .5); }
.section--cta .footer__copy a { color: rgba(255, 255, 255, .9); border-bottom-color: rgba(255, 255, 255, .4); }
/* Primary CTA button sits on a blue band — make it a clean white pill */
.section--cta .footer__cta {
    background: #fff;
    color: var(--blue);
    box-shadow: 0 12px 30px rgba(13, 18, 30, .22);
}
.section--cta .footer__cta:hover {
    background: #fff;
    color: var(--blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(13, 18, 30, .28);
}
.section--cta .footer__cta--secondary {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: rgba(255, 255, 255, .4);
}
.section--cta .footer__cta--secondary:hover {
    background: rgba(255, 255, 255, .2);
    border-color: #fff;
}
.section--cta .capacity,
.section--cta .capacity--footer { color: rgba(255, 255, 255, .9); }
.section--cta .capacity b { color: #fff; }
.section--cta .capacity--footer i { color: #fff; }

/* The footer inside a section band shouldn't add its own top margin/border */
.section .footer { margin-top: 0; padding-top: 0; }
.section .footer::before { display: none; }

/* ---------- Container neutralization ----------
   .page / .page--bots no longer constrain width; the .section
   bands handle width + centering. (They keep stacking context.) */
.page,
.bots-page .page--bots,
.page--bots {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
}
/* Body had a top gradient tuned for the old narrow layout; with full
   bleed the hero band carries its own gradient, so flatten the body bg. */
body { background-image: none; }

/* ---------- Sticky full-bleed header band ---------- */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    margin-bottom: 0;
    padding-block: 14px;
    padding-inline: max(var(--gutter), calc(50% - var(--cap)));
    background: rgba(255, 255, 255, .85);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--border);
}

/* ---------- Hero polish (homepage) ---------- */
/* Homepage hero is the .hero--studio flex block inside .section--hero.
   Let it breathe edge-to-edge of the capped band (drop its own card pad). */
.section--hero .hero,
.hero--studio {
    padding: 0;
    margin-bottom: 0;
    gap: clamp(28px, 4vw, 48px);
}
.hero__title,
.hero__title--studio {
    font-size: clamp(2.4rem, 4.4vw, 3.6rem);
    line-height: 1.06;
}
.hero__sub,
.hero__sub--studio {
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    max-width: 600px;
}

/* /bots hero: keep 2-col text + phone mockup, now in a wide band */
.section--hero .bots-hero,
.bots-hero {
    padding: 0;
    margin-bottom: 0;
    min-height: 0;
}
.bots-hero__title {
    font-size: clamp(2.8rem, 5vw, 4.4rem);
}

/* ---------- Section heads scale up ---------- */
.bots-section__head { margin-bottom: clamp(36px, 4vw, 52px); }
.bots-section__title {
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    line-height: 1.08;
}
.projects__title {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

/* ---------- Section wrappers: neutralize old card padding ----------
   Inner section wrappers previously relied on .card padding/border.
   As .section bands the band itself owns the padding, so zero out the
   per-section paddings/margins/backgrounds that were tuned for cards. */
.section.bots-services,
.section.bots-process,
.section.bots-trust,
.section.bots-cases,
.section.bots-tech-stack,
.section.bots-pricing,
.section.bots-editorial,
.section.bots-faq,
.section.bots-footer,
.section.projects,
.section.why,
.section.guarantees,
.section.bots-stats,
.section.bots-hero {
    padding-inline: max(var(--gutter), calc(50% - var(--cap)));
    margin-bottom: 0;
    /* let .section / .section--soft own the band background */
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
}
/* The footer is a .section--cta gradient band, but the .section.bots-footer
   reset above (2 classes) outranks .section--cta (1 class) and flattens it to
   transparent — white text then sits on white. Re-assert the gradient at equal
   specificity, placed after the reset so it wins. */
.section--cta.bots-footer {
    background: linear-gradient(135deg, var(--blue), #2f73e8);
}
/* The lead-form hint is dark grey by default — lift it to light on the blue band. */
.section--cta .lead-form__note {
    color: rgba(255, 255, 255, .85);
}
/* Sections that carried a tinted card bg keep a soft inner panel feel via
   --soft on the band; the green guarantees band keeps its green tint. */
.section.guarantees {
    background: #f3fbf6;
    border-top: 1px solid rgba(22, 163, 74, .18);
    border-bottom: 1px solid rgba(22, 163, 74, .18);
}
/* The old per-section soft tint on /bots blocks is now driven by --soft;
   neutralize the legacy selector so it doesn't double-tint or fight bands. */
.section.bots-services,
.section.bots-trust,
.section.bots-tech-stack,
.section.bots-faq { background: transparent; }
.section.bots-services.section--soft,
.section.bots-trust.section--soft,
.section.bots-tech-stack.section--soft,
.section.bots-faq.section--soft,
.section.bots-stats.section--soft { background: var(--bg-soft); }

/* ---------- Grids: breathe & widen ---------- */
/* Services — auto-fit ~300px (3-col on wide desktop) */
.services-grid,
.section .services-grid,
.page .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}
/* Why — auto-fit ~300px */
.why__grid,
.section .why__grid,
.page .why__grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
}
/* Reviews — 3-col auto-fit */
.reviews-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 26px;
}
/* Trust cards — 3-col auto-fit */
.trust-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
/* Cases — auto-fit ~320px */
.projects__grid,
.bots-cases .projects__grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 26px;
}
/* Stats — 4-col on wide, auto-fit fallback */
.bots-stats,
.page .bots-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
/* Tech stack — wider track, comfortable wrap */
.tech-stack {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 22px;
}
/* Guarantees — 3-col auto-fit */
.guarantees__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
/* Pricing — 4-col on wide desktop (will collapse below) */
.tiers {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
/* Process — keep 5-step row on wide desktop */
.process { gap: 22px; }
/* Editorial 2-col gets a bit more air */
.editorial { gap: clamp(32px, 4vw, 56px); }

/* Centered constructs inside wide bands stay readable */
.faq { max-width: 880px; }
.calc { max-width: 780px; }
.bots-pricing__note,
.bots-trust__verify { max-width: 820px; }

/* ---------- Responsive: collapse cap + stack grids ---------- */
@media (max-width: 1280px) {
    :root { --cap: 560px; }
    .tiers { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
    :root { --section-pad-y: clamp(48px, 6vw, 72px); }
    .bots-stats,
    .page .bots-stats { grid-template-columns: repeat(2, 1fr); }
    .tiers { grid-template-columns: repeat(2, 1fr); }
    .process { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
    /* Header may wrap its inline nav on small screens (existing rule);
       keep the band sticky + usable. */
    .header { flex-wrap: wrap; }
}

@media (max-width: 640px) {
    :root {
        --gutter: 20px;
        --section-pad-y: 44px;
    }
    /* padding-inline collapses to the gutter automatically via max() */
    .services-grid,
    .section .services-grid,
    .page .services-grid,
    .why__grid,
    .section .why__grid,
    .page .why__grid,
    .reviews-grid,
    .trust-grid,
    .projects__grid,
    .bots-cases .projects__grid,
    .guarantees__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .bots-stats,
    .page .bots-stats { grid-template-columns: 1fr 1fr; gap: 14px; }
    .tiers { grid-template-columns: 1fr; }
    .process { grid-template-columns: 1fr; }
    .tech-stack { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .editorial { grid-template-columns: 1fr; }
    /* Hero stacks single column (component rules already handle internals) */
    .section--hero .bots-hero,
    .bots-hero { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    :root { --gutter: 14px; }
    .tech-stack { grid-template-columns: repeat(2, 1fr); }
}
/* ============================================================
   END FULL-WIDTH LAYOUT SYSTEM v9.0
   ============================================================ */

/* ---- Flat 2D service illustrations (replace .service__icon tiles) ---- */
.service-ill {
    width: 96px;
    height: 96px;
    object-fit: contain;
    display: block;
    margin-bottom: 20px;
    transition: transform .3s var(--ease);
}
.service:hover .service-ill {
    transform: scale(1.08) rotate(-4deg);
}
@media (max-width: 600px) {
    .service-ill { width: 84px; height: 84px; }
}
