/* ==========================================================================
   SANZHARAL.KZ
   Syne (display) + Outfit (body) + JetBrains Mono (mono)
   Dark tech with lime accent — matches brand ad materials
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg:       #09090b;
    --bg-up:    #0f0f12;
    --bg-card:  #131316;
    --bg-hover: #1a1a1e;
    --border:   #1f1f24;
    --border-l: #28282e;

    --text:     #ededef;
    --text-m:   #8b8b96;
    --text-d:   #55555f;

    --lime:     #b4ff39;
    --lime-d:   rgba(180, 255, 57, 0.10);
    --lime-m:   rgba(180, 255, 57, 0.20);

    --f-display: 'Syne', sans-serif;
    --f-body:    'Outfit', sans-serif;
    --f-mono:    'JetBrains Mono', monospace;

    --ease: cubic-bezier(.25,.46,.45,.94);
    --ease-o: cubic-bezier(.16,1,.3,1);
    --mw: 1180px;
    --r: 10px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--f-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

a { color: inherit; text-decoration: none; }
strong { color: var(--text); font-weight: 600; }
::selection { background: var(--lime); color: var(--bg); }

/* --- Section Header --- */
.sh { text-align: center; margin-bottom: 3.5rem; }

.sh__tag {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lime);
    margin-bottom: 1rem;
}

.sh__title {
    font-family: var(--f-display);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.sh__title--left { text-align: left; }

.sh__sub {
    font-size: 1rem;
    color: var(--text-m);
    max-width: 480px;
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-body);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 13px 26px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all .2s var(--ease);
    white-space: nowrap;
}

.btn--primary {
    background: var(--lime);
    color: var(--bg);
}

.btn--primary:hover {
    background: #c4ff5c;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(180, 255, 57, 0.18);
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-l);
}

.btn--outline:hover {
    border-color: var(--text-d);
    background: var(--bg-up);
}

.btn--full { width: 100%; justify-content: center; }

/* --- NAV --- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(9, 9, 11, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, background .3s;
}

.nav--scrolled {
    border-bottom-color: var(--border);
    background: rgba(9, 9, 11, 0.92);
}

.nav__inner {
    max-width: var(--mw);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav__logo {
    font-family: var(--f-mono);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.nav__logo span { color: var(--text-d); }

.nav__links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav__links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-m);
    transition: color .2s;
}

.nav__links a:hover { color: var(--text); }

.nav__cta {
    padding: 7px 18px !important;
    background: var(--lime-d) !important;
    color: var(--lime) !important;
    border-radius: 6px;
    border: 1px solid rgba(180, 255, 57, 0.12);
    transition: all .2s !important;
}

.nav__cta:hover {
    background: var(--lime-m) !important;
    border-color: rgba(180, 255, 57, 0.25) !important;
}

.nav__right-mobile {
    display: none;
    align-items: center;
    gap: 12px;
}

.lang-switcher--nav { display: flex; gap: 4px; margin-left: 1rem; }
.lang-switcher--mobile { display: none; }

.nav__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.nav__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all .3s var(--ease);
    position: absolute;
    left: 0;
}

.nav__burger span:first-child { top: 2px; }
.nav__burger span:last-child { bottom: 2px; }

.nav__burger.active span:first-child {
    top: 50%; transform: translateY(-50%) rotate(45deg);
}
.nav__burger.active span:last-child {
    bottom: 50%; transform: translateY(50%) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(9, 9, 11, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.mobile-menu.active { opacity: 1; pointer-events: all; }

.mobile-menu a {
    font-family: var(--f-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text);
}

.mobile-menu a:hover { color: var(--lime); }

/* --- HERO --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 110px 0 80px;
    overflow: hidden;
}

.hero__glow {
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(180, 255, 57, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.18;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    pointer-events: none;
}

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

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-m);
    margin-bottom: 1.75rem;
    animation: fadeUp .7s var(--ease-o) both;
}

.hero__dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.hero__title {
    font-family: var(--f-display);
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    animation: fadeUp .7s .08s var(--ease-o) both;
}

.hero__accent { color: var(--lime); }

.hero__sub {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--text-m);
    max-width: 530px;
    line-height: 1.7;
    margin-bottom: 2.25rem;
    animation: fadeUp .7s .16s var(--ease-o) both;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
    animation: fadeUp .7s .24s var(--ease-o) both;
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: fadeUp .7s .32s var(--ease-o) both;
}

.hero__stat-num {
    display: block;
    font-family: var(--f-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 2px;
}

.hero__stat-label {
    font-size: 0.72rem;
    color: var(--text-d);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

.hero__stat-sep {
    width: 1px;
    height: 32px;
    background: var(--border-l);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- CLIENTS --- */
.clients {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-up);
}

.clients__label {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-d);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.clients__row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    flex-wrap: wrap;
}

.cl {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-d);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color .3s;
    white-space: nowrap;
    user-select: none;
}

.cl:hover { color: var(--text-m); }

.cl--kaspi {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.01em;
    text-transform: none;
}

.cl--tele2 {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0;
}

.cl--balance {
    font-weight: 300;
    font-size: 0.9rem;
    letter-spacing: 0.22em;
}

.cl--glam {
    font-family: var(--f-display);
    font-weight: 400;
    font-size: 1.15rem;
    text-transform: none;
    letter-spacing: 0;
    font-style: normal;
}

.cl--glam em { font-style: italic; }

.cl--topim {
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
}

.cl--potok {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.14em;
}

.cl--space {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
}

.cl--space em {
    font-weight: 400;
    font-style: normal;
}

/* --- SERVICES --- */
.services {
    padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
}

.svc {
    display: block;
    background: var(--bg);
    padding: clamp(1.5rem, 2.5vw, 2.25rem);
    transition: background .25s;
}

.svc:hover { background: var(--bg-up); }

.svc__icon {
    display: block;
    font-family: var(--f-mono);
    font-size: 0.7rem;
    color: var(--lime);
    letter-spacing: 0.04em;
    margin-bottom: 1.1rem;
    opacity: 0.7;
}

.svc h3 {
    font-family: var(--f-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.svc p {
    font-size: 0.85rem;
    color: var(--text-m);
    line-height: 1.55;
}

/* --- PROJECTS --- */
.projects {
    padding: clamp(4.5rem, 9vw, 7rem) 0;
    background: var(--bg-up);
}

/* Featured row */
.pf {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

/* Regular grid */
.pg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Card */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: clamp(1.25rem, 2.5vw, 1.75rem);
    transition: all .25s var(--ease);
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--border-l);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.card--big {
    background: var(--bg-card);
    border-color: var(--border-l);
}

.card--big:hover {
    border-color: var(--lime);
    box-shadow: 0 8px 30px rgba(180, 255, 57, 0.05);
}

.card__badge {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
    margin-bottom: 0.85rem;
    width: fit-content;
}

.card__badge--saas {
    background: rgba(74, 222, 128, 0.08);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.12);
}

.card__badge--corp {
    background: rgba(251, 191, 36, 0.08);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.12);
}

.card__badge--edtech {
    background: rgba(96, 165, 250, 0.08);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.12);
}

.card__badge--micro {
    background: rgba(192, 132, 252, 0.08);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.12);
}

.card h3 {
    font-family: var(--f-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card--big h3 { font-size: 1.35rem; }

.card p {
    font-size: 0.84rem;
    color: var(--text-m);
    line-height: 1.6;
    margin-bottom: 0.85rem;
    flex: 1;
}

.card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 0.5rem;
}

.card__tags span {
    font-family: var(--f-mono);
    font-size: 0.65rem;
    padding: 2px 7px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-m);
}

.card__link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--lime);
    transition: opacity .2s;
    margin-top: auto;
}

.card__link:hover { opacity: 0.7; }

/* --- ABOUT --- */
.about {
    padding: clamp(4.5rem, 9vw, 7rem) 0;
    border-top: 1px solid var(--border);
}

.about__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(3rem, 5vw, 5rem);
    align-items: start;
}

.about__text p {
    font-size: 1rem;
    color: var(--text-m);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about__stack { margin-top: 3.5rem; }

.about__stack h3 {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-d);
    margin-bottom: 1rem;
}

.stack {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.stack span {
    font-size: 0.82rem;
    padding: 7px 14px;
    background: var(--bg-up);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-m);
    transition: all .2s;
}

.stack span:hover {
    border-color: var(--lime);
    color: var(--lime);
}

/* --- CONTACT --- */
.contact {
    padding: clamp(4.5rem, 9vw, 7rem) 0;
    background: var(--bg-up);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
}

.contact__desc {
    font-size: 1rem;
    color: var(--text-m);
    line-height: 1.65;
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
}

.contact__channels {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact__ch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-m);
    transition: color .2s;
}

.contact__ch:hover { color: var(--lime); }
.contact__ch svg { flex-shrink: 0; }

.contact__form {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: clamp(1.25rem, 2.5vw, 2rem);
}

.ff { margin-bottom: 1rem; }

.ff label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 5px;
}

.ff__opt { color: var(--text-d); font-weight: 400; }

.ff input,
.ff textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-up);
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 0.92rem;
    color: var(--text);
    font-family: var(--f-body);
    transition: border-color .2s;
    outline: none;
}

.ff input:focus,
.ff textarea:focus { border-color: var(--lime); }

.ff input::placeholder,
.ff textarea::placeholder { color: var(--text-d); }

.ff textarea { resize: vertical; min-height: 100px; }

.form-status {
    margin-top: 0.85rem;
    padding: 10px;
    border-radius: 7px;
    text-align: center;
    font-size: 0.88rem;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(74, 222, 128, 0.06);
    border: 1px solid rgba(74, 222, 128, 0.15);
    color: #4ade80;
}

.form-status.error {
    display: block;
    background: rgba(248, 113, 113, 0.06);
    border: 1px solid rgba(248, 113, 113, 0.15);
    color: #f87171;
}

/* --- FOOTER --- */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.footer__left p,
.footer__left a {
    font-size: 0.78rem;
    color: var(--text-d);
    transition: color .2s;
}

.footer__left a:hover { color: var(--text-m); }

.footer__links {
    display: flex;
    gap: 1.5rem;
}

.footer__links a {
    font-size: 0.78rem;
    color: var(--text-d);
    transition: color .2s;
}

.footer__links a:hover { color: var(--text-m); }

/* --- REVEAL --- */
[data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s var(--ease-o), transform .5s var(--ease-o);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .pf { grid-template-columns: 1fr 1fr; }
    .pg { grid-template-columns: repeat(2, 1fr); }
    .about__inner { grid-template-columns: 1fr; }
    .about__stack { margin-top: 2rem; }
    .contact__inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__right-mobile { display: flex; }
    .nav__burger { display: block; }
    .lang-switcher--mobile { display: flex; gap: 4px; }
    .hero { padding: 96px 0 56px; }
    .hero__title { font-size: clamp(2.2rem, 9vw, 3.2rem); }
    .hero__stats { flex-wrap: wrap; gap: 1.25rem; }
    .hero__stat-sep { display: none; }
    .hero__grid-bg { opacity: 0.1; }
    .services__grid { grid-template-columns: 1fr; }
    .pf { grid-template-columns: 1fr; }
    .pg { grid-template-columns: 1fr; }
    .clients__row { gap: 1.25rem; }
    .cl { font-size: 0.9rem !important; }
    .footer__inner { flex-direction: column; gap: 0.75rem; text-align: center; }
    .footer__left { align-items: center; }
}

@media (max-width: 480px) {
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; justify-content: center; }
}

/* --- PRIVACY (keep compat) --- */
.privacy-page { padding: 120px 0 80px; min-height: calc(100vh - 120px); }
.privacy-page .sh__title { text-align: left; margin-bottom: 32px; }

.back-link {
    display: inline-block;
    color: var(--text-m);
    font-size: 0.88rem;
    margin-bottom: 20px;
    transition: color .2s;
}
.back-link:hover { color: var(--lime); }

.privacy-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.privacy-header .back-link { margin-bottom: 0; }
.lang-switcher { display: flex; gap: 8px; }

.lang-btn {
    padding: 7px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text-m);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    font-family: inherit;
}
.lang-btn:hover { border-color: var(--text-m); color: var(--text); }
.lang-btn.active { background: var(--lime); border-color: var(--lime); color: var(--bg); }

.lang-switcher--nav .lang-btn {
    padding: 4px 10px;
    font-size: 0.72rem;
    border-radius: 5px;
}

.privacy-content { max-width: 760px; }
.privacy-intro { font-size: 1.1rem; color: var(--text-m); margin-bottom: 40px; line-height: 1.7; }
.privacy-section { margin-bottom: 36px; }
.privacy-section h2 { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 14px; }
.privacy-section p { color: var(--text-m); line-height: 1.7; margin-bottom: 10px; }
.privacy-section ul { list-style: none; margin: 14px 0; }
.privacy-section ul li { color: var(--text-m); padding-left: 20px; position: relative; margin-bottom: 6px; line-height: 1.6; }
.privacy-section ul li::before { content: "\2022"; color: var(--lime); position: absolute; left: 6px; }
.privacy-section a { color: var(--lime); }
.privacy-section a:hover { opacity: 0.8; }
.privacy-section strong { color: var(--text); }
.privacy-date { font-size: 0.88rem; color: var(--text-m); font-style: italic; margin-top: 6px; }
.back-btn { margin-top: 40px; }

/* --- REQUISITES TABLE --- */
.req-table { width: 100%; border-collapse: collapse; margin: 10px 0 0; }
.req-table tr { border-bottom: 1px solid var(--border); }
.req-table tr:last-child { border-bottom: none; }
.req-table td { padding: 12px 0; vertical-align: top; }
.req-label { color: var(--text-m); font-size: 0.92rem; width: 40%; padding-right: 16px; }
.req-value { color: var(--text); font-size: 0.95rem; font-weight: 500; }
.req-value code { font-family: 'JetBrains Mono', monospace; color: var(--lime); background: rgba(180, 255, 57, 0.08); padding: 2px 8px; border-radius: 4px; font-size: 0.9rem; }
@media (max-width: 480px) {
    .req-label { width: 100%; display: block; padding-bottom: 2px; }
    .req-value { display: block; padding-bottom: 8px; }
}

/* --- FAQ --- */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q {
    font-family: var(--f-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.faq-a {
    font-size: 0.92rem;
    color: var(--text-m);
    line-height: 1.65;
}

/* ==========================================================================
   BLOG
   ========================================================================== */

/* Blog Index */
.blog-hero {
    padding: 120px 0 3rem;
    position: relative;
    overflow: hidden;
}

.blog-hero__glow {
    position: absolute;
    top: -120px;
    right: -200px;
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(180, 255, 57, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.blog-hero__count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-mono);
    font-size: 0.7rem;
    color: var(--text-d);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.blog-hero__count span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
    animation: pulse 2s ease infinite;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    padding-bottom: clamp(4rem, 8vw, 6rem);
}

/* Blog Card */
.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: clamp(1.5rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
    transition: all .3s var(--ease);
    position: relative;
    overflow: hidden;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--lime), transparent);
    opacity: 0;
    transition: opacity .3s;
}

.blog-card:hover {
    border-color: var(--border-l);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.blog-card:hover::before { opacity: 1; }

.blog-card__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.blog-card__cat {
    font-family: var(--f-mono);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 4px;
}

.blog-card__cat--development {
    background: rgba(96, 165, 250, 0.08);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.12);
}

.blog-card__cat--strategy {
    background: rgba(251, 191, 36, 0.08);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.12);
}

.blog-card__cat--architecture {
    background: rgba(192, 132, 252, 0.08);
    color: #c084fc;
    border: 1px solid rgba(192, 132, 252, 0.12);
}

.blog-card__meta {
    font-family: var(--f-mono);
    font-size: 0.65rem;
    color: var(--text-d);
    letter-spacing: 0.02em;
}

.blog-card__title {
    font-family: var(--f-display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.65rem;
    color: var(--text);
    transition: color .2s;
}

.blog-card:hover .blog-card__title { color: var(--lime); }

.blog-card__excerpt {
    font-size: 0.88rem;
    color: var(--text-m);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.blog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 1rem;
}

.blog-card__tags span {
    font-family: var(--f-mono);
    font-size: 0.6rem;
    padding: 2px 8px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-d);
}

.blog-card__read {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--lime);
    transition: opacity .2s;
    margin-top: auto;
}

.blog-card:hover .blog-card__read { opacity: 0.75; }

/* Blog Article */
.article {
    padding: 120px 0 4rem;
    min-height: 100vh;
}

.article__header {
    max-width: 760px;
    margin-bottom: 3rem;
}

.article__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-d);
    margin-bottom: 1.5rem;
}

.article__breadcrumb a {
    color: var(--text-d);
    transition: color .2s;
}

.article__breadcrumb a:hover { color: var(--lime); }

.article__breadcrumb svg {
    width: 12px;
    height: 12px;
    opacity: 0.4;
}

.article__meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.article__date,
.article__reading-time {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    color: var(--text-d);
    letter-spacing: 0.04em;
}

.article__reading-time::before {
    content: '\2022';
    margin-right: 16px;
    opacity: 0.4;
}

.article__title {
    font-family: var(--f-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.article__excerpt {
    font-size: 1.1rem;
    color: var(--text-m);
    line-height: 1.7;
    max-width: 640px;
}

/* Article Table of Contents */
.article__toc {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.5rem 2rem;
    margin-bottom: 3rem;
    max-width: 760px;
}

.article__toc-title {
    font-family: var(--f-mono);
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text-d);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.article__toc ol {
    list-style: none;
    counter-reset: toc;
}

.article__toc li {
    counter-increment: toc;
    margin-bottom: 0.5rem;
}

.article__toc li a {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-m);
    transition: color .2s;
    line-height: 1.5;
}

.article__toc li a::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--f-mono);
    font-size: 0.7rem;
    color: var(--lime);
    opacity: 0.5;
    flex-shrink: 0;
}

.article__toc li a:hover { color: var(--lime); }

/* Article Body */
.article__body {
    max-width: 760px;
}

.article__section {
    margin-bottom: 3rem;
    scroll-margin-top: 80px;
}

.article__section h2 {
    font-family: var(--f-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.article__section h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--lime);
}

.article__section p {
    font-size: 0.95rem;
    color: var(--text-m);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.article__section strong {
    color: var(--text);
    font-weight: 600;
}

/* Article CTA */
.article__cta {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 2.5rem;
    text-align: center;
    margin: 3rem 0;
    max-width: 760px;
    position: relative;
    overflow: hidden;
}

.article__cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--lime), transparent);
}

.article__cta h3 {
    font-family: var(--f-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.article__cta p {
    color: var(--text-m);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

/* Related Articles */
.article__related {
    max-width: 760px;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.article__related h3 {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-d);
    margin-bottom: 1.5rem;
}

.article__related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Share section */
.article__share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 2rem;
    max-width: 760px;
}

.article__share-label {
    font-family: var(--f-mono);
    font-size: 0.68rem;
    color: var(--text-d);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.article__share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: var(--text-m);
    transition: all .2s;
}

.article__share a:hover {
    border-color: var(--lime);
    color: var(--lime);
    background: var(--lime-d);
}

/* Blog responsive */
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .article__related-grid { grid-template-columns: 1fr; }
    .article__cta { padding: 1.5rem; }
    .article__toc { padding: 1.25rem; }
}

@media (max-width: 480px) {
    .blog-card__title { font-size: 1.1rem; }
    .article__title { font-size: 1.6rem; }
}
