:root {
    --color-bg: #0a0e17;
    --color-bg-alt: #111827;
    --color-surface: #1a2234;
    --color-surface-hover: #243049;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-primary: #3b82f6;
    --color-primary-light: #60a5fa;
    --color-accent: #06b6d4;
    --color-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --header-height: 72px;
    --container: 1140px;
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition);
}

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

img {
    max-width: 100%;
    display: block;
}

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

.mono {
    font-family: var(--font-mono);
    font-size: 0.95em;
    letter-spacing: 0.02em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--color-gradient);
    color: #fff;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
    color: #fff;
}

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

.btn--outline:hover {
    background: var(--color-surface);
    border-color: rgba(255, 255, 255, 0.15);
    color: var(--color-text);
}

.btn--sm {
    padding: 8px 18px;
    font-size: 0.875rem;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
}

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

.logo__icon {
    color: var(--color-primary-light);
    display: flex;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--color-text-muted);
    font-size: 0.925rem;
    font-weight: 500;
}

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

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

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

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 48px) 0 80px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59, 130, 246, 0.25) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
        var(--color-bg);
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero__badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-primary-light);
    margin-bottom: 24px;
}

.hero__title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 36px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 56px;
}

.hero__stats {
    display: flex;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
}

.stat__value {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--color-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat__label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Sections */
.section {
    padding: 96px 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section__header {
    margin-bottom: 56px;
    max-width: 600px;
}

.section__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.section__title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section__desc {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

/* About */
.about {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: start;
}

.about__lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    white-space: pre-line;
}

.about__card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.about__card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--color-text);
}

.info-list__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.info-list__item:last-child {
    border-bottom: none;
}

.info-list__item dt {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-list__item dd {
    font-weight: 500;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}

.service-card:hover {
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    border-radius: 12px;
    color: var(--color-primary-light);
    margin-bottom: 20px;
}

.service-card__icon svg {
    width: 24px;
    height: 24px;
}

.service-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-card__desc {
    font-size: 0.925rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}

/* Technologies */
.tech-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-tag {
    padding: 10px 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.925rem;
    font-weight: 500;
    transition: all var(--transition);
}

.tech-tag:hover {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.08);
}

/* Contacts */
.contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.contact-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-item__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.12);
    border-radius: 10px;
    color: var(--color-primary-light);
}

.contact-item__icon svg {
    width: 20px;
    height: 20px;
}

.contact-item__label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 2px;
}

.contact-item__value {
    font-weight: 500;
    color: var(--color-text);
}

a.contact-item__value:hover {
    color: var(--color-primary-light);
}

.contacts__cta {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.contacts__cta h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.contacts__cta p {
    color: var(--color-text-muted);
    margin-bottom: 28px;
}

/* Footer */
.footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    padding: 64px 0 32px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer__tagline {
    color: var(--color-text-muted);
    font-size: 0.925rem;
    margin-top: 12px;
}

.footer__section h3 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.footer__list {
    list-style: none;
}

.footer__list li {
    margin-bottom: 10px;
    font-size: 0.925rem;
    color: var(--color-text-muted);
}

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

.footer__list a:hover {
    color: var(--color-primary-light);
}

.requisites__row {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.requisites__row dt {
    color: var(--color-text-muted);
    min-width: 70px;
    flex-shrink: 0;
}

.requisites__row dd {
    color: var(--color-text);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

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

.footer__bottom a:hover {
    color: var(--color-primary-light);
}

/* Legal page */
.legal-page {
    padding: calc(var(--header-height) + 48px) 0 80px;
    min-height: 60vh;
}

.legal-page h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.legal-page__updated {
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.legal-page section {
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.legal-page p,
.legal-page li {
    color: var(--color-text-muted);
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal-page ul {
    padding-left: 24px;
}

.legal-page__back {
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav,
    .header__cta {
        display: none;
    }

    .burger {
        display: flex;
    }

    .nav.nav--open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(10, 14, 23, 0.97);
        backdrop-filter: blur(12px);
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--color-border);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contacts {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero__stats {
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}
