:root {
    --dark-bg: #f5f7fb;
    --accent: #ea5b2d;
    --accent-alt: #0084a3;
    --text: #0f172a;
    --muted: #5f6880;
    --card: #ffffff;
    --border: rgba(15, 23, 42, 0.08);
    font-size: 16px;
}

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

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--dark-bg);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    border-radius: 18px;
    display: block;
}

.card-media {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 1rem;
    background: #dfe7f4;
}

a {
    color: var(--accent-alt);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5vw;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    z-index: 999;
    border-bottom: 1px solid var(--border);
}

.logo a {
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
}

.main-nav {
    display: flex;
    gap: 1rem;
}

.main-nav a {
    font-size: 0.95rem;
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    transition: background 0.2s ease;
    color: var(--text);
}

.main-nav a:hover {
    background: rgba(15, 23, 42, 0.08);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
}

.hero-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 4rem 5vw;
    border-bottom: 1px solid var(--border);
}

.hero-visual {
    background: var(--card);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    position: relative;
}

.hero-slider {
    margin-top: 1.5rem;
    min-height: 140px;
}

.hero-slide {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
}

.hero-slide.active {
    display: flex;
}

.hero-slide p {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
}

.hero-slide strong {
    font-size: 1.1rem;
}

.hero-controls {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    gap: 0.5rem;
}

.hero-controls button {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.05);
    color: var(--text);
    cursor: pointer;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin-bottom: 1rem;
}

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

.btn {
    border-radius: 999px;
    padding: 0.9rem 1.6rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent), #ff8658);
    color: #0a0a0a;
}

.btn.ghost {
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.9rem 1.4rem;
    background: transparent;
}

.hero-data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.hero-data article {
    background: var(--card);
    border-radius: 18px;
    padding: 1.2rem;
    border: 1px solid var(--border);
}

.hero-data h3 {
    margin: 0;
    font-size: 2rem;
}

.section {
    padding: 3.5rem 5vw;
    border-bottom: 1px solid var(--border);
}

.section header {
    max-width: 720px;
    margin-bottom: 2rem;
}

.section h2 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.solutions-grid,
.stack-grid,
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.solutions-grid article,
.stack-grid article,
.team-grid article,
.case-carousel article,
.contact-details div,
.contact-form {
    background: var(--card);
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.section-cases .case-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.process-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.process-steps li {
    background: #ffffff;
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.section-insights .insights-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.section-contact .contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.contact-form label {
    display: flex;
    flex-direction: column;
    font-size: 0.9rem;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    background: #f8f9fc;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    padding: 0.8rem;
    color: var(--text);
    font-family: inherit;
}

.contact-form button {
    width: 100%;
    margin-top: 0.5rem;
}

.form-disclaimer {
    font-size: 0.8rem;
    color: var(--muted);
}

.site-footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    padding: 2.5rem 5vw;
    background: #eff3fb;
}

.site-footer h4 {
    margin-top: 0;
}

.policy-body {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.policy-body h1,
.policy-body h2 {
    color: var(--text);
}

.policy-body ul {
    padding-left: 1.2rem;
    color: var(--muted);
}

.cookie-banner {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: 420px;
    margin: 0 auto;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 1000;
}

.cookie-banner.hidden {
    display: none;
}

@media (max-width: 960px) {
    .main-nav {
        position: absolute;
        top: 100%;
        right: 5vw;
        background: rgba(255,255,255,0.97);
        flex-direction: column;
        padding: 1rem;
        border-radius: 16px;
        border: 1px solid var(--border);
        display: none;
    }

    .main-nav.open {
        display: flex;
    }

    .burger {
        display: flex;
    }
}

@media (max-width: 640px) {
    .hero-block {
        padding-top: 2rem;
    }

    .site-header {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .hero-data {
        grid-template-columns: 1fr;
    }

    .cookie-banner {
        left: 0.5rem;
        right: 0.5rem;
    }
}

