:root {
    --primary: #000000;
    --accent: #2563eb; /* Royal Blue */
    --accent-light: #dbeafe;
    --text-main: #0f172a;
    --text-muted: #475569;
    --bg-main: #ffffff;
    --bg-subtle: #f8fafc;
    --border: #e2e8f0;
    --card-bg: #ffffff;
    --container-width: 1200px;
    --radius: 12px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Utils */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 160px 0;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    align-items: center;
    height: 72px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--primary);
    text-decoration: none;
    line-height: 1;
    display: flex;
    align-items: center;
    /* Убираем визуальный перекос из-за шрифта */
    position: relative;
    top: -1px;
}

.logo span {
    color: var(--accent);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 600;
    transition: var(--transition);
    line-height: 1;
    display: block;
    position: relative;
    top: 1px;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    height: 48px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.btn-sm {
    height: 38px;
    padding: 0 1.25rem;
    font-size: 0.8125rem;
    display: inline-flex;
    align-items: center;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--bg-subtle);
    border-color: var(--primary);
}

/* Hero - Industrial/Bento Look */
.hero {
    padding: 120px 0 80px;
    background: 
        radial-gradient(at 0% 0%, hsla(217,100%,97%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(217,100%,97%,1) 0, transparent 50%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    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;
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    opacity: 0.4;
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    margin-bottom: 4rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.06em;
    margin-bottom: 2rem;
    color: var(--primary);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    border-color: var(--accent);
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.1), 0 18px 36px -18px rgba(0, 0, 0, 0.1);
}

.bento-card.col-6 { grid-column: span 6; }
.bento-card.col-4 { grid-column: span 4; }
.bento-card.col-8 { grid-column: span 8; }
.bento-card.col-12 { grid-column: span 12; }

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.bento-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 1.0625rem;
    line-height: 1.5;
}

/* Section Header */
.section-header {
    margin-bottom: 5rem;
}

.section-label {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.1;
}

/* Solutions Cards */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.solution-card {
    padding: 3.5rem;
    background: linear-gradient(180deg, #fff, #fcfcfc);
}

.solution-card .card-list {
    margin-top: 2.5rem;
    list-style: none;
}

.solution-card .card-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.solution-card .card-list li::before {
    content: "→";
    color: var(--accent);
    font-weight: 700;
}

/* Process Flow */
.process-flow {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 4rem;
}

.process-item {
    flex: 1;
    position: relative;
}

.process-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.process-num::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.process-item:last-child .process-num::after {
    display: none;
}

.process-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* Tech Stack */
.tech-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-tag {
    padding: 0.75rem 1.5rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.tech-tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Contact Section - Epic */
.contact-hero {
    background: var(--primary);
    color: #fff;
    padding: 120px 0;
    border-radius: 2rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.15), transparent);
    pointer-events: none;
    z-index: 0;
}

.contact-hero h2,
.contact-hero p,
.contact-hero .section-label,
.big-email {
    position: relative;
    z-index: 1;
}

.contact-hero h2 {
    color: #fff;
    margin-bottom: 2rem;
}

.contact-hero p {
    color: #94a3b8;
    font-size: 1.25rem;
    margin-bottom: 4rem;
}

.big-email {
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.06em;
    transition: var(--transition);
}

.big-email:hover {
    color: var(--accent);
    transform: scale(1.02);
}

/* Footer */
.footer {
    padding-bottom: 60px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: #fff;
    padding: 1rem 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: var(--transition);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-content p {
    font-size: 0.875rem;
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: var(--accent-light);
    text-decoration: underline;
}

.cookie-content a:hover {
    color: #fff;
}

.btn-cookie {
    background: #fff;
    color: var(--primary);
    flex-shrink: 0;
    height: 40px;
    padding: 0 1.5rem;
    font-size: 0.8125rem;
}

.btn-cookie:hover {
    background: var(--accent-light);
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-card.col-6, .bento-card.col-4, .bento-card.col-8 { grid-column: span 12; }
    .solutions-grid { grid-template-columns: 1fr; }
    .process-flow { flex-direction: column; gap: 3rem; }
    .process-num::after { display: none; }
    .section-padding { padding: 100px 0; }
}

@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 1.25rem;
    }
    
    /* Header */
    .header .container {
        height: 60px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-right {
        gap: 0;
    }
    
    .btn-sm {
        height: 36px;
        padding: 0 1rem;
        font-size: 0.75rem;
    }
    
    /* Hero */
    .hero {
        padding: 60px 0 40px;
    }
    
    .hero::after {
        display: none;
    }
    
    .badge {
        font-size: 0.6875rem;
        padding: 0.375rem 0.75rem;
        margin-bottom: 1.25rem;
    }
    
    h1 {
        font-size: 2.5rem;
        line-height: 1;
        margin-bottom: 1.25rem;
    }
    
    .subtitle {
        font-size: 1.0625rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        height: 48px;
    }
    
    /* Sections */
    .section-padding {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
        line-height: 1.15;
    }
    
    .section-label {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
    
    /* Cards */
    .bento-card {
        padding: 1.5rem;
    }
    
    .bento-card h3 {
        font-size: 1.25rem;
    }
    
    .bento-card p {
        font-size: 0.9375rem;
    }
    
    .card-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    /* Solutions */
    .solution-card {
        padding: 1.5rem;
    }
    
    .solution-card .card-list {
        margin-top: 1.5rem;
    }
    
    .solution-card .card-list li {
        font-size: 0.875rem;
        margin-bottom: 0.875rem;
    }
    
    /* Process */
    .process-flow {
        gap: 2rem;
    }
    
    .process-item h3 {
        font-size: 1.125rem;
    }
    
    .process-item p {
        font-size: 0.875rem;
    }
    
    /* Tech */
    .tech-flex {
        gap: 0.5rem;
    }
    
    .tech-tag {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    /* Contact */
    .contact-hero {
        padding: 60px 1.5rem;
        border-radius: 1rem;
        margin-bottom: 40px;
    }
    
    .contact-hero h2 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .contact-hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .big-email {
        font-size: 1.25rem;
        word-break: break-all;
    }
    
    /* Footer */
    .footer {
        padding-bottom: 40px;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-copy {
        font-size: 0.75rem;
    }
    
    /* Cookie Banner Mobile */
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 0 1.25rem;
    }
    
    .cookie-content p {
        font-size: 0.8125rem;
    }
    
    .btn-cookie {
        width: 100%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .bento-card {
        padding: 1.25rem;
    }
    
    .solution-card {
        padding: 1.25rem;
    }
}
