/* ============================================================
   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: #060611;
    --bg-card: rgba(255, 255, 255, 0.038);
    --bg-card-hover: rgba(255, 255, 255, 0.065);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --text: #eeeef4;
    --text-sec: #7e7e96;
    --text-dim: #4e4e64;
    --blue: #6aa1f8;
    --purple: #a66cf7;
    --cyan: #30d5e8;
    --pink: #e74e99;
    --green: #4ade80;
    --radius: 20px;
    --radius-sm: 14px;
    --radius-xs: 10px;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --shadow-blue: 0 8px 32px rgba(106, 161, 248, 0.18);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--blue), var(--purple), var(--cyan));
    z-index: 999;
    transition: width .1s linear;
    box-shadow: 0 0 10px rgba(106, 161, 248, 0.5);
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ---------- Background ---------- */
.bg-glow {
    position: fixed; inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Subtle dot grid overlay */
.bg-glow::after {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 40%, transparent 100%);
}

.bg-glow__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    will-change: transform;
    animation: drift 30s ease-in-out infinite alternate;
}

.bg-glow__orb:nth-child(1) {
    width: 50vw; height: 50vw;
    max-width: 600px; max-height: 600px;
    background: radial-gradient(circle, rgba(106, 161, 248, 0.5), transparent 70%);
    top: -15%; left: -10%;
}

.bg-glow__orb:nth-child(2) {
    width: 40vw; height: 40vw;
    max-width: 500px; max-height: 500px;
    background: radial-gradient(circle, rgba(166, 108, 247, 0.4), transparent 70%);
    bottom: 5%; right: -12%;
    animation-delay: -12s;
    animation-duration: 35s;
}

.bg-glow__orb:nth-child(3) {
    width: 30vw; height: 30vw;
    max-width: 380px; max-height: 380px;
    background: radial-gradient(circle, rgba(48, 213, 232, 0.3), transparent 70%);
    top: 55%; left: 25%;
    animation-delay: -20s;
    animation-duration: 28s;
}

@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(25px, -30px) scale(1.04); }
    100% { transform: translate(-15px, 20px) scale(0.97); }
}

/* ---------- Layout ---------- */
.page {
    position: relative;
    z-index: 1;
    max-width: 840px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

/* ---------- Card util ---------- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
    transition: border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}

.card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

/* ---------- Language ---------- */
.lang {
    position: fixed;
    top: 20px; right: 20px;
    z-index: 100;
    display: flex;
    gap: 3px;
    padding: 3px;
    border-radius: 40px;
    background: rgba(6, 6, 17, 0.75);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
}

.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: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    box-shadow: 0 2px 12px rgba(106, 161, 248, 0.3);
}

.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 0 12px rgba(106, 161, 248, 0.5));
}

.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: 12px;
    border: 1px solid var(--border);
    color: var(--text-sec);
    font-size: 1.05rem;
    transition: all .3s var(--ease);
}

.socials__link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-blue);
}

.socials__link[title="GitHub"]:hover      { color: #e6edf3; border-color: rgba(230,237,243,0.3); box-shadow: 0 6px 20px rgba(230,237,243,0.1); }
.socials__link[title="Telegram"]:hover    { color: #29b6f6; border-color: rgba(41,182,246,0.35); box-shadow: 0 6px 20px rgba(41,182,246,0.15); }
.socials__link[title="Kwork"]:hover       { color: #ff5e57; border-color: rgba(255,94,87,0.35);  box-shadow: 0 6px 20px rgba(255,94,87,0.15); }
.socials__link[title="Email"]:hover       { color: var(--blue); border-color: rgba(106,161,248,0.35); 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: #0b0b1a;
    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: 'Outfit', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero__name {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 5s ease infinite;
}

@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: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    color: var(--text-sec);
    transition: all .25s var(--ease);
}

.hero__badge:hover {
    border-color: rgba(106,161,248,0.3);
    color: var(--text);
    background: rgba(106,161,248,0.07);
}

/* ---------- 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: rgba(15,15,30,0.92);
    border: 1px solid var(--border);
    font-size: .65rem;
    font-weight: 600;
    color: var(--text-sec);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s, transform .2s;
    backdrop-filter: blur(8px);
}

.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 8px rgba(74, 222, 128, 0.6);
}

/* 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: 'Outfit', sans-serif;
    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: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    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: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.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: rgba(255, 255, 255, 0.03);
}

.tabs__btn.active {
    background: linear-gradient(135deg, rgba(106, 161, 248, 0.12), rgba(166, 108, 247, 0.12));
    color: var(--text);
    box-shadow: 0 2px 12px rgba(106, 161, 248, 0.08);
}

.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-sm);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
    position: relative;
    cursor: default;
    overflow: hidden;
}

/* Top accent line */
.proj::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), var(--purple), transparent);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    opacity: 0;
    transition: opacity .4s var(--ease);
}

/* Bottom glow */
.proj::before {
    content: '';
    position: absolute;
    bottom: -40px; left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 80px;
    background: radial-gradient(ellipse, rgba(106,161,248,0.12), transparent 70%);
    opacity: 0;
    transition: opacity .4s var(--ease);
    pointer-events: none;
}

.proj:hover {
    border-color: rgba(106, 161, 248, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(106,161,248,0.06);
    background: rgba(255, 255, 255, 0.04);
}

.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: 12px;
    background: linear-gradient(135deg, rgba(106, 161, 248, 0.18), rgba(166, 108, 247, 0.18));
    border: 1px solid rgba(106, 161, 248, 0.15);
    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 16px rgba(106,161,248,0.2);
}

.proj__name {
    font-family: 'Outfit', sans-serif;
    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: rgba(255, 255, 255, 0.045);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Link */
.proj__link-wrap {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.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: linear-gradient(135deg, rgba(106, 161, 248, 0.1), rgba(166, 108, 247, 0.1));
    border: 1px solid rgba(106, 161, 248, 0.2);
    transition: all .3s var(--ease);
    cursor: pointer;
}

.proj__link:hover {
    color: #fff;
    background: linear-gradient(135deg, rgba(106, 161, 248, 0.85), rgba(166, 108, 247, 0.85));
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(106, 161, 248, 0.25);
}

.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: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(106,161,248,0.35), rgba(166,108,247,0.35), transparent);
}

.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;
    filter: drop-shadow(0 0 8px rgba(106, 161, 248, 0.35));
}

.footer__icon img { width: 100%; height: 100%; object-fit: contain; }

.footer__name {
    font-family: 'Outfit', sans-serif;
    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: 12px 28px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4f86f7, #a66cf7);
    background-size: 200% 200%;
    background-position: 0% 50%;
    border: none;
    transition: all .35s var(--ease);
    cursor: pointer;
    letter-spacing: .2px;
    box-shadow: 0 4px 20px rgba(106, 161, 248, 0.25);
}

.footer__cta:hover {
    background-position: 100% 50%;
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(106, 161, 248, 0.4);
}

.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: linear-gradient(135deg, rgba(106, 161, 248, 0.96), rgba(166, 108, 247, 0.96));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    box-shadow:
        0 14px 36px rgba(106, 161, 248, 0.42),
        0 0 0 1px rgba(255, 255, 255, 0.10) inset;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    will-change: transform;
}
.floating-cta:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 18px 48px rgba(106, 161, 248, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}
.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: rgba(255,255,255,0.02);
    transition: all .25s var(--ease);
}
.bots-back:hover {
    color: var(--text);
    border-color: var(--border-hover);
    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: linear-gradient(135deg, rgba(106,161,248,0.14), rgba(166,108,247,0.14));
    border: 1px solid rgba(106,161,248,0.22);
    color: var(--blue);
    margin-bottom: 16px;
}
.bots-section__title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 14px;
}
.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-sm);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .01em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .35s var(--ease);
    white-space: nowrap;
}
.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #4f86f7, #a66cf7);
    background-size: 200% 200%;
    background-position: 0% 50%;
    box-shadow: 0 4px 20px rgba(106, 161, 248, 0.28);
}
.btn--primary:hover {
    background-position: 100% 50%;
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(106, 161, 248, 0.45);
}
.btn--ghost {
    color: var(--text);
    background: rgba(255,255,255,0.04);
    border-color: var(--border-hover);
}
.btn--ghost:hover {
    background: rgba(106,161,248,0.08);
    border-color: rgba(106,161,248,0.3);
    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(166,108,247,0.22), 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(106,161,248,0.18), 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: linear-gradient(135deg, rgba(106,161,248,0.16), rgba(166,108,247,0.16));
    border: 1px solid rgba(106,161,248,0.25);
    color: var(--blue);
    margin-bottom: 24px;
}
.bots-hero__title {
    font-family: 'Outfit', sans-serif;
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}
.bots-hero__title .grad {
    background: linear-gradient(135deg, var(--blue), var(--purple), var(--cyan));
    background-size: 220% 220%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 5s ease infinite;
}
.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, #18182a, #0c0c18);
    border-radius: 50px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 40px 100px rgba(0,0,0,0.7),
        0 0 0 4px rgba(255,255,255,0.02),
        inset 0 0 0 1px rgba(255,255,255,0.05);
    position: relative;
}
.phone::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 44px;
    background: linear-gradient(135deg, rgba(106,161,248,0.4), transparent 40%, rgba(166,108,247,0.4));
    z-index: -1;
    filter: blur(8px);
    opacity: .7;
}
.phone__notch {
    position: absolute;
    top: 22px; left: 50%;
    transform: translateX(-50%);
    width: 104px; height: 26px;
    background: #050510;
    border-radius: 16px;
    z-index: 5;
}
.phone__screen {
    width: 100%; height: 100%;
    background: #17212b;
    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: #242f3d;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.phone__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    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: #fff;
    line-height: 1.2;
}
.phone__bot-status {
    font-size: .78rem;
    color: #6c8ea6;
    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 6px rgba(74,222,128,0.6);
}
.phone__menu {
    color: #6c8ea6;
    font-size: 1.2rem;
    padding: 0 4px;
}
.phone__chat {
    padding: 18px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(180deg, #17212b 0%, #1a2632 100%);
    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: linear-gradient(135deg, #4083eb, #5b8dee);
    color: #fff;
    border-bottom-right-radius: 4px;
    font-family: 'Inter', monospace;
    font-weight: 600;
}
.msg--bot {
    align-self: flex-start;
    background: #232f3e;
    color: #f0f3f5;
    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: #6c8ea6;
    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: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    color: #f0f3f5;
    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: rgba(106,161,248,0.18); }
.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: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    text-align: center;
    transition: all .35s var(--ease);
    position: relative;
    overflow: hidden;
}
.stat::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), var(--purple), transparent);
    opacity: 0;
    transition: opacity .35s var(--ease);
}
.stat:hover {
    border-color: rgba(106,161,248,0.25);
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.stat:hover::before { opacity: 1; }
.stat__num {
    font-family: 'Outfit', sans-serif;
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--blue), var(--purple), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}
.stat__plus { font-size: 1.9rem; opacity: .7; }
.stat__label {
    font-size: .95rem;
    color: var(--text-sec);
    line-height: 1.4;
}

/* ---------- 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-sm);
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all .35s var(--ease);
    position: relative;
    overflow: hidden;
}
.service::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
}
.service:hover {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 30%, transparent);
    background: rgba(255,255,255,0.04);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.service:hover::after { transform: scaleX(1); }
.service__icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
    margin-bottom: 20px;
    transition: transform .3s var(--ease);
}
.service:hover .service__icon {
    transform: scale(1.08) rotate(-4deg);
}
.service__title {
    font-family: 'Outfit', sans-serif;
    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-sm);
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all .35s var(--ease);
}
.process__step:hover {
    transform: translateY(-3px);
    border-color: rgba(106,161,248,0.25);
    background: rgba(106,161,248,0.04);
}
.process__step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50px; right: -12px;
    width: 18px; height: 2px;
    background: linear-gradient(90deg, rgba(106,161,248,0.5), transparent);
    z-index: 1;
}
.process__num {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--purple));
    box-shadow: 0 6px 18px rgba(106,161,248,0.45);
    margin-bottom: 18px;
}
.process__body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.process__time {
    display: inline-block;
    font-size: .76rem;
    color: var(--cyan);
    background: rgba(48,213,232,0.08);
    border: 1px solid rgba(48,213,232,0.18);
    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: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    transition: all .35s var(--ease);
    position: relative;
    overflow: hidden;
    text-align: center;
}
.trust-card::before {
    content: '';
    position: absolute;
    top: -2px; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent, var(--blue)), transparent);
    opacity: .55;
}
.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: color-mix(in srgb, var(--accent) 35%, transparent);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.trust-card__big {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 14px;
    font-family: 'Outfit', sans-serif;
}
.trust-num {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent, var(--blue)), color-mix(in srgb, var(--accent, var(--blue)) 60%, var(--purple)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    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: rgba(48,213,232,0.04);
    border: 1px dashed rgba(48,213,232,0.24);
    color: var(--text-sec);
    font-size: .94rem;
    line-height: 1.5;
}
.bots-trust__verify i {
    color: var(--cyan);
    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(106,161,248,0.4);
    margin-left: 4px;
    transition: color .2s var(--ease);
}
.bots-trust__verify-link:hover {
    color: var(--purple);
    border-color: rgba(166,108,247,0.4);
}
.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: 'Outfit', sans-serif;
    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-sm);
    background: rgba(255,255,255,0.028);
    border: 1px solid rgba(255,255,255,0.07);
    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: 'Outfit', sans-serif;
    font-size: 5rem;
    line-height: 1;
    color: rgba(106,161,248,0.16);
    pointer-events: none;
}
.review:hover {
    transform: translateY(-3px);
    border-color: rgba(106,161,248,0.25);
    background: rgba(255,255,255,0.04);
    box-shadow: 0 14px 40px rgba(0,0,0,0.3);
}
.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: linear-gradient(135deg, rgba(166,108,247,0.18), rgba(231,78,153,0.18));
    border: 1px solid rgba(166,108,247,0.3);
    color: var(--purple);
}
.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 {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}
.review__foot {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.review__author {
    font-size: .9rem;
    font-weight: 700;
    color: var(--blue);
    font-family: 'Inter', monospace;
}
.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-sm);
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    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: rgba(106,161,248,0.25);
    background: rgba(106,161,248,0.05);
    box-shadow: 0 14px 34px rgba(0,0,0,0.3);
}
.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(3, 1fr);
    gap: 22px;
    margin-bottom: 28px;
}
.tier {
    padding: 44px 36px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    transition: all .35s var(--ease);
    position: relative;
}
.tier:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.tier--featured {
    border-color: rgba(166,108,247,0.45);
    background: linear-gradient(180deg, rgba(166,108,247,0.05), rgba(106,161,248,0.04));
    box-shadow: 0 0 0 1px rgba(166,108,247,0.2), 0 16px 48px rgba(166,108,247,0.15);
    transform: scale(1.02);
}
.tier--featured:hover {
    transform: scale(1.04) translateY(-4px);
    box-shadow: 0 0 0 1px rgba(166,108,247,0.35), 0 24px 56px rgba(166,108,247,0.25);
}
.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: linear-gradient(135deg, var(--purple), var(--pink));
    color: #fff;
    box-shadow: 0 6px 20px rgba(166,108,247,0.45);
}
.tier__head { margin-bottom: 24px; }
.tier__name {
    font-family: 'Outfit', sans-serif;
    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: 'Outfit', sans-serif;
}
.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 {
    background: linear-gradient(135deg, var(--purple), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.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(--cyan);
    background: rgba(48,213,232,0.08);
    border: 1px solid rgba(48,213,232,0.2);
    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 rgba(255,255,255,0.04);
}
.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(74,222,128,0.12);
    border: 1px solid rgba(74,222,128,0.25);
    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: rgba(78,78,100,0.12) !important;
    border-color: rgba(78,78,100,0.25) !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: rgba(255,255,255,0.025);
    border: 1px dashed var(--border);
}
.bots-pricing__note i {
    color: var(--cyan);
    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: 'Outfit', sans-serif;
    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: linear-gradient(180deg, var(--blue), var(--purple));
}
.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: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all .25s var(--ease);
    overflow: hidden;
}
.faq__item:hover {
    border-color: rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
}
.faq__item[open] {
    border-color: rgba(106,161,248,0.25);
    background: rgba(106,161,248,0.04);
}
.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: 'Outfit', sans-serif;
    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: 700;
    color: #fff;
    background: linear-gradient(135deg, rgba(106,161,248,0.85), rgba(166,108,247,0.85));
    border: 1px solid rgba(106,161,248,0.4);
    margin-right: auto;
    transition: all .3s var(--ease);
    box-shadow: 0 4px 14px rgba(106,161,248,0.25);
}
.header__bots-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(106,161,248,0.4);
}
.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(166,108,247,0.12), transparent 60%);
    pointer-events: none;
}
.not-found__code {
    font-family: 'Outfit', sans-serif;
    font-size: 7rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--blue), var(--purple), var(--cyan));
    -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: 'Outfit', sans-serif;
    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: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-sec);
    font-size: .88rem;
    font-weight: 600;
    transition: all .25s var(--ease);
}
.not-found__link:hover {
    color: var(--text);
    border-color: rgba(106,161,248,0.3);
    background: rgba(106,161,248,0.06);
    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; }
}

@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: 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; }
    .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: linear-gradient(135deg, rgba(48, 213, 232, 0.1), rgba(106, 161, 248, 0.1));
    border: 1px solid rgba(48, 213, 232, 0.22);
    margin-top: 8px;
}

.proj__link--app:hover {
    color: #fff;
    background: linear-gradient(135deg, rgba(48, 213, 232, 0.85), rgba(106, 161, 248, 0.85));
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(48, 213, 232, 0.25);
}

/* 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(3, 3, 12, 0.88);
    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-hover);
    background: rgba(20, 20, 32, 0.92);
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
    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: #0a0a14;
    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(106, 161, 248, 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; }
}
