/* === CSS VARIABLES === */
:root {
    --color-dark: #05111e;
    --color-navy: #0d2137;
    --color-blue: #1a3a5c;
    --color-accent: #00b4d8;
    --color-accent-hover: #0096b4;
    --color-light: #f8fafc;
    --color-white: #ffffff;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;

    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 40px;
    background: rgba(5, 17, 30, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background var(--transition), padding var(--transition);
}

.navbar.scrolled {
    background: rgba(5, 17, 30, 0.96);
    padding: 12px 40px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.15em;
    letter-spacing: 0.06em;
}

.nav-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9em;
    font-weight: 500;
    transition: color var(--transition);
}

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

.nav-cta {
    background: var(--color-accent) !important;
    color: white !important;
    padding: 9px 22px;
    border-radius: 8px;
    font-weight: 600 !important;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
}

.nav-cta:hover {
    background: var(--color-accent-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 180, 216, 0.35);
}

/* === HERO === */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(5, 17, 30, 0.88) 0%,
        rgba(13, 33, 55, 0.72) 50%,
        rgba(0, 100, 150, 0.25) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 820px;
    padding: 0 24px;
    animation: heroFadeIn 1s ease-out both;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 180, 216, 0.18);
    border: 1px solid rgba(0, 180, 216, 0.45);
    color: var(--color-accent);
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 0.82em;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.2em, 5vw, 3.8em);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.72);
    max-width: 540px;
    margin: 0 auto 40px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* === BUTTONS === */
.btn-primary {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 180, 216, 0.4);
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    transition: border-color var(--transition), background var(--transition);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
}

/* === STATS === */
.stats-section {
    background: var(--color-dark);
    padding: 52px 40px;
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2.6em;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    display: block;
    font-size: 0.82em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 52px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* === SECTION LAYOUT === */
.section-light {
    background: var(--color-light);
    padding: 100px 40px;
}

.section-dark {
    background: var(--color-navy);
    padding: 100px 40px;
}

.section-white {
    background: var(--color-white);
    padding: 100px 40px;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-container--narrow {
    max-width: 720px;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    color: var(--color-accent);
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8em, 3vw, 2.6em);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 16px;
}

.section-dark .section-title {
    color: white;
}

.section-desc {
    font-size: 1.05em;
    color: var(--color-text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.75;
}

.section-dark .section-desc {
    color: rgba(255, 255, 255, 0.55);
}

/* === TECHNOLOGY === */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.tech-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    border: 1.5px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
}

.tech-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.tech-card-number {
    font-size: 3em;
    font-weight: 900;
    color: rgba(0, 180, 216, 0.1);
    line-height: 1;
    margin-bottom: 12px;
}

.tech-card h3 {
    font-size: 1.25em;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text);
}

.tech-card p {
    font-size: 0.92em;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 22px;
}

.tech-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

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

.news-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.news-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.news-card-tag {
    display: inline-block;
    background: rgba(0, 180, 216, 0.18);
    color: var(--color-accent);
    font-size: 0.72em;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    align-self: flex-start;
}

.news-card h3 {
    font-size: 1.1em;
    font-weight: 700;
    line-height: 1.35;
}

.news-card p {
    font-size: 0.88em;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.75;
    flex: 1;
}

.news-link {
    font-size: 0.88em;
    font-weight: 600;
    color: var(--color-accent);
}

/* === CASES === */
.cases-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 16px;
    height: 440px;
}

.case-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.case-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-item:hover img {
    transform: scale(1.06);
}

.case-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 17, 30, 0.82) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition);
}

.case-item:hover .case-overlay {
    opacity: 1;
}

.case-overlay span {
    color: white;
    font-weight: 600;
    font-size: 1em;
}

/* === PRICING === */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: relative;
}

.pricing-card--featured {
    background: rgba(0, 180, 216, 0.08);
    border-color: var(--color-accent);
}

.pricing-card-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: white;
    font-size: 0.75em;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.pricing-card-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pricing-type {
    font-size: 0.82em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pricing-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pricing-amount {
    font-size: 2.2em;
    font-weight: 800;
    color: white;
    line-height: 1;
    letter-spacing: -0.02em;
}

.pricing-card--featured .pricing-amount {
    color: var(--color-accent);
}

.pricing-period {
    font-size: 0.83em;
    color: rgba(255, 255, 255, 0.45);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

.pricing-features svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 1px;
}

.pricing-cta {
    text-align: center;
    margin-top: 4px;
}

.pricing-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 900px;
    margin: 36px auto 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 16px 20px;
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

.pricing-note svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--color-accent);
    margin-top: 1px;
    opacity: 0.7;
}

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

/* === CONTACT FORM === */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    font-family: var(--font);
    font-size: 0.95em;
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #b0bec5;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    align-self: center;
    padding: 16px 48px;
    font-size: 1em;
    font-family: var(--font);
}

/* === PARTNERS === */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.partner-card {
    background: white;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.partner-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.partner-card img {
    width: 110px;
    height: 80px;
    object-fit: contain;
}

.partner-card p {
    font-size: 0.84em;
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* === FOOTER === */
.footer {
    background: var(--color-dark);
}

.footer-top {
    padding: 60px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Brand column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
}

.footer-brand-name {
    font-size: 1.2em;
    font-weight: 800;
    color: white;
    letter-spacing: 0.06em;
}

.footer-tagline {
    font-size: 0.84em;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.55;
}

.footer-supported {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.footer-fasie {
    height: 32px;
    width: auto;
    object-fit: contain;
    opacity: 0.7;
    flex-shrink: 0;
}

.footer-supported span {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1.45;
}

/* Links column */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links h4,
.footer-contacts h4 {
    font-size: 0.82em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

.footer-links a {
    text-decoration: none;
    font-size: 0.88em;
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition);
}

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

/* Contacts column */
.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.86em;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.55;
}

.footer-contact-item svg {
    width: 17px;
    height: 17px;
    min-width: 17px;
    color: var(--color-accent);
    margin-top: 3px;
    opacity: 0.6;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color var(--transition);
}

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

/* Bottom bar */
.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 40px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.78em;
    color: rgba(255, 255, 255, 0.2);
}

/* === BURGER BUTTON === */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 200;
}

.burger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: white;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.burger.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
    .tech-grid,
    .news-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr;
        height: auto;
    }

    .case-item {
        height: 260px;
    }

    .case-item--large {
        height: 300px;
    }

    .case-overlay {
        opacity: 1;
    }

    .stat-divider {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Burger visible on mobile */
    .burger {
        display: flex;
    }

    /* Mobile slide-out menu */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background: rgba(5, 17, 30, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 80px 32px 40px;
        gap: 0;
        transition: right 0.35s ease;
        z-index: 150;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        overflow-y: auto;
    }

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

    .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 1em !important;
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .nav-links a:hover {
        color: var(--color-accent) !important;
    }

    .nav-links .nav-cta {
        margin-top: 12px;
        text-align: center;
        border-radius: 10px;
        padding: 14px 22px;
    }

    .hero-title {
        font-size: 2.1em;
    }

    .section-light,
    .section-dark,
    .section-white {
        padding: 72px 24px;
    }

    .navbar {
        padding: 14px 24px;
    }

    .navbar.scrolled {
        padding: 10px 24px;
    }

    .stats-section {
        padding: 40px 24px;
    }

    .footer {
        padding: 48px 24px 0;
    }

    .footer-top {
        padding: 48px 24px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .footer-brand-row {
        justify-content: center;
    }

    .footer-supported {
        justify-content: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-contacts {
        align-items: center;
    }

    .footer-contact-item {
        justify-content: center;
    }

    .footer-bottom {
        padding: 16px 24px;
    }
}
