.site-bg {
    position: fixed;
    inset: 0;
    z-index: -4;
    background: url("../images/dark.png") center center / cover no-repeat;
}

.site-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(6, 7, 11, 0.65);
}

.site-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 18% 8%, rgba(139, 92, 246, 0.25), transparent 40%),
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.03), transparent 30%);
}

.site-noise {
    position: fixed;
    inset: 0;
    z-index: -3;
    opacity: 0.05;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,.1) 0, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,.06) 0, transparent 1px);
    background-size: 32px 32px;
}

.orb {
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    filter: blur(120px);
    z-index: -2;
    opacity: 0.2;
    pointer-events: none;
    animation: floatOrb 12s ease-in-out infinite;
}

.orb--one {
    top: -120px;
    left: -100px;
    background: #7c3aed;
}

.orb--two {
    right: -140px;
    bottom: -140px;
    background: #3b0764;
    animation-delay: -4s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(0, 30px, 0) scale(1.05); }
}

/* intro */
.intro {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top, rgba(89, 255, 161, 0.08), transparent 35%), rgba(5, 6, 10, 0.96);
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro__grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(89,255,161,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(89,255,161,0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
    opacity: 0.4;
}

.intro__content {
    width: min(860px, calc(100% - 32px));
    padding: 28px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.intro__label {
    margin: 0 0 16px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
}

.intro__code {
    margin: 0;
    min-height: 220px;
    white-space: pre-wrap;
    color: #8effc1;
    font-size: clamp(13px, 1.8vw, 17px);
    line-height: 1.7;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.intro__status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--text-soft);
    font-size: 14px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 16px var(--green);
    animation: pulseDot 1.5s ease infinite;
}

#typed-code::after {
    content: "|";
    margin-left: 2px;
    color: #8effc1;
    animation: blink 1s infinite;
}

@keyframes pulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.72); opacity: 0.7; }
}

@keyframes blink {
    50% { opacity: 0; }
}

/* header */
.header {
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--header-h);
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(8, 9, 13, 0.86), rgba(8, 9, 13, 0.5));
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(255,255,255,0.06));
    border: 1px solid var(--line);
    color: #ede8ff;
    font-weight: 700;
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand__title {
    font-size: 13px;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.brand__sub {
    font-size: 11px;
    color: var(--text-dim);
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav a {
    position: relative;
    color: var(--text-soft);
    font-size: 14px;
    transition: color var(--transition);
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transition: width var(--transition);
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--text);
}

.nav a:hover::after,
.nav a:focus-visible::after {
    width: 100%;
}

.header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.header__cta:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.45);
    background: rgba(139, 92, 246, 0.1);
}

.burger {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    padding: 0;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #fff;
    border-radius: 999px;
}

.mobile-menu {
    display: none;
}

/* hero */
.hero {
    position: relative;
    padding: 72px 0 54px;
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 430px);
    gap: 42px;
    align-items: center;
    min-height: calc(100vh - var(--header-h) - 24px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    color: var(--text-soft);
    font-size: 13px;
}

.eyebrow__dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
}

.hero__title {
    margin: 0 0 18px;
    max-width: 850px;
    font-size: clamp(38px, 5vw, 78px);
    line-height: 1.03;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.hero__title span {
    display: inline-block;
    background: linear-gradient(135deg, #fff, #c084fc, #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__title::after {
    content: "|";
    margin-left: 4px;
    color: #a855f7;
    animation: blinkCursor 1s infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero__desc {
    max-width: 680px;
    margin: 0 0 24px;
    color: var(--text-soft);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.65;
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero__chips span,
.stack-tags span,
.project-chip {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-soft);
    background: rgba(255,255,255,0.035);
    color: #d7dded;
    font-size: 13px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 760px;
}

.fact-card,
.value-card,
.case-card,
.timeline-card,
.screen-card,
.contact-link {
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.035);
    box-shadow: var(--shadow);
}

.fact-card {
    padding: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.fact-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

.fact-card span {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.5;
}

/* profile */
.profile-card {
    position: relative;
    padding: 18px;
    border-radius: 30px;
    border: 1px solid var(--line);
    background: rgba(8, 9, 13, 0.55);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.25s ease;
}

.profile-card__glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 30% 10%, rgba(139, 92, 246, 0.22), transparent 35%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.06), transparent 22%);
    pointer-events: none;
}

.profile-card__image-wrap {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.09);
    margin-bottom: 18px;
    background: #0b0d14;
}

.profile-card__image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transform: scale(1.01);
}

.profile-card__body {
    position: relative;
    z-index: 1;
}

.profile-card__label {
    margin: 0 0 8px;
    color: #bda8ff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.profile-card__top h2 {
    margin: 0 0 6px;
    font-size: 30px;
    line-height: 1.1;
}

.profile-card__role {
    margin: 0 0 18px;
    color: var(--text-soft);
    line-height: 1.55;
}

.profile-card__list {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.mini-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mini-row__key {
    color: var(--text-dim);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mini-row__value {
    color: var(--text);
    line-height: 1.55;
    font-size: 14px;
}

.profile-card__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-card__contacts a {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--text-soft);
    font-size: 13px;
    transition: all var(--transition);
}

.profile-card__contacts a:hover {
    color: #fff;
    border-color: rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.12);
}

/* text blocks */
.text-grid,
.stack-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.text-grid h3,
.stack-columns h3 {
    margin: 0 0 14px;
    font-size: 22px;
}

/* value */
.value-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.value-card {
    padding: 24px;
    backdrop-filter: blur(18px);
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.value-card:hover,
.case-card:hover,
.screen-card:hover,
.contact-link:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(255,255,255,0.05);
}

.value-card__num,
.timeline-card span {
    display: inline-flex;
    margin-bottom: 18px;
    color: #bda8ff;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.value-card h3,
.case-card h3,
.timeline-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.25;
}

.value-card p,
.case-card p,
.timeline-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

/* cases */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 28px;
}

.case-card {
    padding: 22px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: rgba(12, 14, 20, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.09);
}

.case-card p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #b0b7c8;
}

.case-card .clean-list {
    margin-top: auto;
    font-size: 13px;
    padding-left: 18px;
}

.case-card .clean-list li {
    margin-bottom: 6px;
}

.case-card h3 {
    font-size: 18px;
    line-height: 1.35;
    margin: 8px 0 12px;
    color: #f4f6fb;
}

.case-card__top {
    margin-bottom: 12px;
}

.case-tag {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    font-size: 11px;
}

.project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
/* screens */
.screens-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.screen-card {
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition);
}

.screen-card img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: contain;
    background: #0b0d14;
    padding: 8px;
}

.screen-card figcaption {
    padding: 16px;
    color: var(--text-soft);
    line-height: 1.6;
    font-size: 14px;
}

/* stack */
.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

/* process */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.timeline-card {
    padding: 24px;
}

/* contact */
.contact-box {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 22px;
    padding: 32px;
    border-radius: 30px;
    border: 1px solid var(--line);
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.14), transparent 22%), rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
}

.contact-box__left h2 {
    margin: 0 0 14px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
}

.contact-text {
    margin: 0;
    max-width: 580px;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.75;
}

.contact-box__right {
    display: grid;
    gap: 14px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.contact-link__title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-dim);
}

.contact-link__value {
    font-size: 18px;
    line-height: 1.4;
    color: var(--text);
}

/* footer */
.footer {
    padding: 22px 0 34px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--text-dim);
    font-size: 13px;
}

/* section dark */
.section--dark {
    background: radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.12), transparent 40%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.04), transparent 30%);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    z-index: 1;
}

.section--dark .content-card {
    background: rgba(12, 14, 20, 0.6);
    backdrop-filter: blur(12px);
}

/* кнопки */
.btn--primary {
    background: linear-gradient(135deg, #a855f7, #7e22ce);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.section-kicker {
    color: #a855f7;
    font-weight: 500;
}

.contact-link:hover {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

/* ===== СТИЛЬ КОДЕРА — НЕОНОВЫЙ ЗЕЛЕНЫЙ ===== */
:root {
    --code-green: #10b981;
    --code-green-bright: #34d399;
    --code-glow: rgba(16, 185, 129, 0.4);
}

.hero__title::after {
    color: #10b981;
}

.hero__title span {
    background: linear-gradient(135deg, #10b981, #34d399, #6ee7b7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-kicker {
    color: #10b981;
    letter-spacing: 0.16em;
}

.btn--primary {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.btn--primary:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.7);
}

.nav a::after {
    background: linear-gradient(90deg, #10b981, transparent);
}

.contact-link:hover {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.contact-link:hover .contact-link__title,
.contact-link:hover .contact-link__value {
    color: #10b981;
}

.profile-card__label {
    color: #10b981;
}

.value-card__num,
.timeline-card span {
    color: #10b981;
}

.case-tag {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.status-dot {
    background: #10b981;
    box-shadow: 0 0 16px #10b981;
}

.intro__code {
    color: #34d399;
}

#typed-code::after {
    color: #10b981;
}

.section-kicker {
    color: #10b981;
}

.hero__chips span:hover,
.stack-tags span:hover {
    border-color: #10b981;
    color: #10b981;
}

/* Новые стили для кейсов */
.section--case {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.section--case:last-of-type {
    border-bottom: none;
}
.case-screens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.case-screens-grid .screen-card {
    margin-bottom: 0;
}
.benefits-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}
.benefits-list li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    color: var(--text-soft);
}
.benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: bold;
    font-size: 18px;
}
.case-header {
    margin-bottom: 32px;
}
@media (max-width: 768px) {
    .section--case {
        padding: 60px 0;
    }
    .case-screens-grid {
        grid-template-columns: 1fr;
    }
}