/* ================= ДИЗАЙН-СИСТЕМА ================= */
:root {
    --bg: #040B16;
    --panel: #0A1628;
    --panel-border: rgba(0, 212, 255, 0.15);
    --accent: #00D4FF;
    --accent-bright: #5CE1E6;
    --text: #F4F1E9;
    --muted: #7A96B2;
    --line: rgba(0, 212, 255, 0.20);

    --font-disp: 'Unbounded', system-ui, -apple-system, sans-serif;
    --font-main: 'Manrope', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --container: 1280px;
    --section-pad: clamp(4rem, 8vw, 8rem);
}

/* ================= RESET & BASE ================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.04;
    z-index: -1;
    pointer-events: none;
}

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

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ================= ТИПОГРАФИКА ================= */
h1, h2, h3, .disp {
    font-family: var(--font-disp);
    font-weight: 800;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.mono {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

.text-accent {
    color: var(--accent);
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

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

/* ================= КОМПОНЕНТЫ ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.2);
}

.btn-primary:hover {
    background: var(--accent-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.btn-outline {
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(0, 212, 255, 0.03);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 212, 255, 0.08);
}

.chip {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    background: rgba(0, 212, 255, 0.05);
}

/* ================= HEADER ================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1px;
    background: rgba(4, 11, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid var(--panel-border);
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.menu-toggle {
    display: none;
    color: var(--text);
    font-size: 1.5rem;
    z-index: 101;
}

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 2rem;
        font-family: var(--font-disp);
    }

    .menu-toggle {
        display: block;
    }
}

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

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-sub {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--muted);
    margin-bottom: 3rem;
    max-width: 700px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= METRICS ================= */
.metrics {
    padding: 4rem 0;
    background: var(--panel);
    border-top: 1px solid var(--panel-border);
    border-bottom: 1px solid var(--panel-border);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric-num {
    font-family: var(--font-disp);
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.metric-text {
    font-size: 0.875rem;
    color: var(--muted);
    text-transform: uppercase;
    font-family: var(--font-mono);
}

/* ================= MARQUEE ================= */
.marquee-section {
    padding: 3rem 0;
    overflow: hidden;
    background: #004A80;
    color: #FFFFFF;
    display: flex;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    font-family: var(--font-disp);
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    padding: 0 2rem;
}

.marquee-section:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ================= УСЛУГИ ================= */
.services {
    padding: var(--section-pad) 0;
}

.service-row {
    border-bottom: 1px solid var(--panel-border);
}

.service-row:first-child {
    border-top: 1px solid var(--panel-border);
}

.service-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
    cursor: pointer;
    transition: color 0.3s, text-shadow 0.3s;
}

.service-head:hover {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.3);
}

.service-num {
    font-family: var(--font-mono);
    color: var(--muted);
    font-size: 1.25rem;
}

.service-title {
    font-family: var(--font-disp);
    font-size: clamp(1.25rem, 3vw, 2.5rem);
}

.service-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.service-icon::before, .service-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.3s;
}

.service-icon::before {
    width: 100%;
    height: 2px;
}

.service-icon::after {
    width: 2px;
    height: 100%;
}

.service-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.service-content {
    overflow: hidden;
}

.service-content-inner {
    padding-bottom: 2rem;
    color: var(--muted);
    font-size: 1.125rem;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.service-row.active .service-body {
    grid-template-rows: 1fr;
}

.service-row.active .service-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.service-row.active .service-head {
    color: var(--accent);
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

/* ================= КЕЙСЫ ================= */
.cases {
    padding: var(--section-pad) 0;
}

.cases-container {
    position: relative;
}

.case-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2rem;
    position: sticky;
    top: 120px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.case-card:nth-child(1) {
    top: 120px;
}

.case-card:nth-child(2) {
    top: 140px;
}

.case-card:nth-child(3) {
    top: 160px;
}

@media (max-width: 900px) {
    .case-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        position: relative;
        top: 0 !important;
        box-shadow: none;
        margin-bottom: 1rem;
    }
}

.case-title {
    font-family: var(--font-disp);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.case-desc {
    color: var(--muted);
    margin-bottom: 2rem;
}

.case-img-placeholder {
    background: #0C1D3A;
    aspect-ratio: 16/9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    font-family: var(--font-mono);
    color: var(--muted);
}

/* ================= ПРОЦЕСС ================= */
.process {
    padding: var(--section-pad) 0;
    background: var(--panel);
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.process-title {
    position: sticky;
    top: 120px;
}

.step {
    padding-bottom: 4rem;
    position: relative;
}

.step:last-child {
    padding-bottom: 0;
}

.step::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line);
}

.step::after {
    content: '';
    position: absolute;
    left: -2.3rem;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.step-num {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.step-title {
    font-family: var(--font-disp);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-desc {
    color: var(--muted);
}

/* ================= ЦЕНЫ ================= */
.pricing {
    padding: var(--section-pad) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.price-card {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
}

.price-card.hit {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    position: relative;
}

.hit-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg);
    padding: 0.25rem 1rem;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: bold;
}

.price-name {
    font-family: var(--font-disp);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.price-val {
    font-size: 2.5rem;
    font-family: var(--font-disp);
    color: var(--accent);
    margin-bottom: 2rem;
    line-height: 1;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.price-list {
    margin-bottom: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--muted);
}

.price-list li {
    padding-left: 1.5rem;
    position: relative;
}

.price-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

.pricing-footer {
    text-align: center;
    color: var(--muted);
    font-family: var(--font-mono);
    border-top: 1px solid var(--panel-border);
    padding-top: 2rem;
}

/* ================= ФОРМА & КОНТАКТЫ ================= */
.contact {
    padding: var(--section-pad) 0;
    background: var(--panel);
}

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

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

.trust-block {
    margin-bottom: 3rem;
}

.trust-text {
    font-size: 1.125rem;
    color: var(--muted);
    margin-bottom: 2rem;
}

.stack-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.stack-chip {
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    font-size: 1.125rem;
    color: var(--text);
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--accent);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--panel-border);
    color: var(--text);
    padding: 1.25rem;
    font-family: var(--font-main);
    font-size: 1rem;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.5rem;
    font-family: var(--font-mono);
}

.form-checkbox {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1rem;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    accent-color: var(--accent);
}

.form-checkbox a {
    color: var(--accent);
    text-decoration: underline;
}

#form-message {
    display: none;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    padding: 1rem;
    border-radius: 4px;
}

#form-message.show {
    display: block;
}

.msg-success {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
}

.msg-error {
    color: #F44336;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #F44336;
}

.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--bg);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

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

/* ================= FOOTER ================= */
.footer {
    padding: 6rem 0 2rem;
    text-align: center;
    overflow: hidden;
}

.huge-text {
    font-family: var(--font-disp);
    font-size: clamp(2.5rem, 8vw, 10rem);
    /* Уменьшено с 15rem */
    font-weight: 900;
    line-height: 0.9;
    color: var(--accent);
    /* Яркий циан вместо прозрачного */
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    /* Свечение */
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-family: var(--font-mono);
    color: var(--muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--panel-border);
    padding-top: 2rem;
}

.footer-bottom a {
    color: var(--muted);
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* A11Y */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

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