:root {
    --color-bg: #eff3fa;
    --color-bg-alt: #e9edf4;
    --color-primary: #0f1b33;
    --color-accent: #0a7dff;
    --color-accent-2: #46c0ff;
    --color-accent-soft: rgba(10, 125, 255, 0.12);
    --color-text: #1a2742;
    --color-text-muted: #586782;
    --color-border: #d8e0ee;
    --font-main: 'Manrope', system-ui, sans-serif;
    --font-serif: 'Cormorant Garamond', serif;

    --radius-lg: 16px;
    --radius-md: 8px;

    --shadow-subtle: 0 10px 30px rgba(25, 48, 87, 0.08);
    --shadow-elevated: 0 24px 60px rgba(15, 27, 51, 0.16);

    --transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    background-image:
        radial-gradient(circle at 8% 10%, rgba(70, 192, 255, 0.26) 0, rgba(70, 192, 255, 0) 32%),
        radial-gradient(circle at 90% 16%, rgba(10, 125, 255, 0.24) 0, rgba(10, 125, 255, 0) 34%),
        linear-gradient(180deg, #f6f8fc 0%, #eef3f9 44%, #e9eef8 100%);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.2;
    z-index: -1;
    background-image:
        linear-gradient(120deg, rgba(33, 63, 110, 0.04) 25%, transparent 25%, transparent 50%, rgba(33, 63, 110, 0.04) 50%, rgba(33, 63, 110, 0.04) 75%, transparent 75%, transparent);
    background-size: 26px 26px;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 22% 78%, rgba(140, 174, 238, 0.22), rgba(140, 174, 238, 0) 38%),
        radial-gradient(circle at 76% 68%, rgba(112, 188, 240, 0.18), rgba(112, 188, 240, 0) 34%);
    filter: blur(10px);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    z-index: 2200;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-2));
    box-shadow: 0 0 14px rgba(10, 125, 255, 0.6);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.center {
    text-align: center;
}

h1,
h2,
h3 {
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.serif {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    background: rgba(243, 245, 249, 0.78);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.header.scrolled {
    padding: 12px 0;
    background: rgba(250, 252, 255, 0.95);
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-subtle);
}

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

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

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

.logo-desc {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 2px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-list a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    transition: color 0.3s;
}

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

.nav-list a.active {
    color: var(--color-accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.phone-link {
    text-decoration: none;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #1a3a75);
    color: #fff;
    box-shadow: 0 14px 28px rgba(10, 34, 81, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a3a75, var(--color-accent));
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(10, 55, 129, 0.34);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(15, 27, 51, 0.42);
    color: var(--color-primary);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

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

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 200px 0 160px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-image-wrapper picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(244, 248, 255, 0.96) 0%, rgba(244, 248, 255, 0.76) 42%, rgba(244, 248, 255, 0.28) 68%, rgba(244, 248, 255, 0) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    position: relative;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28));
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-elevated);
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(90deg, rgba(10, 125, 255, 0.16), rgba(70, 192, 255, 0.2));
    color: var(--color-accent);
    border-radius: 40px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 32px;
}

.hero-content h1 {
    font-size: clamp(48px, 6vw, 76px);
    margin-bottom: 24px;
    color: #10213f;
}

.hero-description {
    font-size: 20px;
    color: var(--color-text-muted);
    margin-bottom: 48px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 700px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid rgba(15, 27, 51, 0.12);
    background: rgba(255, 255, 255, 0.58);
    border-radius: 12px;
    padding: 12px 14px;
}

.metric-value {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

.metric-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* Sections */
section {
    padding: 120px 0;
    position: relative;
}

section[id],
footer[id] {
    scroll-margin-top: 110px;
}

section::before {
    content: "";
    position: absolute;
    inset: 16px 12px;
    border-radius: 22px;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    opacity: 0.5;
}

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

.section-header h2 {
    font-size: 44px;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 18px;
    color: var(--color-text-muted);
}

.section-header.center {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.solution-card.large {
    grid-column: span 2;
}

.solution-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 247, 252, 0.88));
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.card-image-box {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.solution-card.large .card-image-box {
    height: 500px;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.card-content {
    padding: 40px;
    border-top: 1px solid rgba(216, 224, 238, 0.8);
}

.solution-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-elevated);
}

.solution-card:hover .card-image-box img {
    transform: scale(1.05);
}

.solution-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.solution-card p {
    font-size: 15px;
    margin-bottom: 24px;
}

.card-link {
    font-weight: 700;
    color: var(--color-accent);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Catalog */
.catalog {
    background: var(--color-bg-alt);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.catalog-item {
    background: linear-gradient(180deg, #ffffff, #f8faff);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: var(--transition);
}

.item-img {
    height: 240px;
    overflow: hidden;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.item-info {
    padding: 32px;
}

.item-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--color-bg-alt);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.catalog-item h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.catalog-item p {
    font-size: 14px;
}

.catalog-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
}

.catalog-item:hover .item-img img {
    transform: scale(1.1);
}

/* About Production */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.sub-heading {
    display: block;
    font-weight: 800;
    color: var(--color-accent);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.about-content h2 {
    font-size: 48px;
    margin-bottom: 32px;
}

.features-list {
    margin-top: 48px;
}

.feature-item {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.feature-title {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 8px;
    display: block;
    color: var(--color-primary);
}

.about-visual .visual-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    line-height: 0;
}

.visual-wrapper img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.visual-exp {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: #FFFFFF;
    padding: 32px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-elevated);
}

.exp-num {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    color: var(--color-accent);
}

.exp-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    margin-top: 8px;
}

/* Call to Action */
.cta {
    background:
        linear-gradient(135deg, #0d1b35 0%, #17356c 42%, #0a7dff 100%);
    color: #fff;
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    inset: -120px -220px auto auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(70, 192, 255, 0.4), rgba(70, 192, 255, 0));
    filter: blur(10px);
}

.cta h2 {
    color: #fff;
    font-size: 56px;
    margin-bottom: 24px;
}

.cta p {
    color: #94A3B8;
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 48px;
}

.cta-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.cta-form {
    display: flex;
    gap: 16px;
}

.cta-form input {
    flex: 1;
    padding: 20px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 16px;
}

.cta-note {
    margin-top: 24px;
    font-size: 14px;
    color: #64748B;
    font-weight: 600;
}

.form-status {
    min-height: 24px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 700;
}

.form-status.error {
    color: #ffd9dd;
}

.form-status.success {
    color: #b5ffd6;
}

.modal .form-status.error {
    color: #c62828;
}

.modal .form-status.success {
    color: #1f7a3d;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: #FFFFFF;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 24px;
    max-width: 300px;
}

.footer h4 {
    margin-bottom: 24px;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer ul a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 15px;
    transition: color 0.3s;
}

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 14px;
    color: var(--color-text-muted);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(180deg, #ffffff, #f5f8ff);
    width: 100%;
    max-width: 500px;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-elevated);
    position: relative;
    transform: translateY(40px);
    transition: var(--transition);
}

.modal.active {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--color-text-muted);
    cursor: pointer;
}

.modal h3 {
    margin-bottom: 12px;
    font-size: 28px;
}

.modal p {
    margin-bottom: 32px;
    font-size: 15px;
    color: var(--color-text-muted);
}

.form-group {
    margin-bottom: 16px;
}

.modal input {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.86);
}

input.input-invalid {
    border-color: #d32f2f;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.15);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

@media (max-width: 900px) {
    section[id],
    footer[id] {
        scroll-margin-top: 84px;
    }

    .btn,
    .nav-list a,
    .menu-toggle,
    input,
    .modal-close,
    .phone-link {
        min-height: 44px;
    }

    .header-actions {
        display: none;
    }

    .nav-list {
        display: none;
    }

    .hero-content h1 {
        font-size: clamp(36px, 11vw, 52px);
        line-height: 1.02;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 28px;
    }

    .hero-content {
        padding: 20px;
        border-radius: 18px;
    }

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

    .solution-card.large {
        grid-row: auto;
    }

    .container {
        padding: 0 16px;
    }

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

    .cta-form {
        flex-direction: column;
    }

    .cta-form input {
        padding: 16px;
    }

    .modal {
        margin: 0 12px;
        max-width: calc(100vw - 24px);
        padding: 32px 18px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Burger menu button */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 32px;
        height: 32px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 0;
    }

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--color-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Mobile nav panel */
    .nav-list.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFFFFF;
        padding: 24px 40px;
        gap: 0;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-elevated);
        max-height: calc(100vh - 84px);
        overflow-y: auto;
    }

    .nav-list.active li {
        padding: 12px 0;
        border-bottom: 1px solid var(--color-border);
    }

    .nav-list.active li:last-child {
        border-bottom: none;
    }

    .nav-list.active a {
        font-size: 16px;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 130px 0 88px;
        min-height: auto;
    }

    .hero-badge {
        margin-bottom: 18px;
        font-size: 11px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .metric-value {
        font-size: 20px;
    }

    .section-header h2,
    .about-content h2,
    .cta h2 {
        font-size: clamp(30px, 9vw, 40px);
    }

    .mobile-sticky-cta {
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
    }
}

/* Hide burger only on desktop */
@media (min-width: 901px) {
    .menu-toggle {
        display: none;
    }
}

.mobile-sticky-cta {
    display: none;
}

@media (max-width: 900px) {
    .mobile-sticky-cta {
        display: inline-flex;
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: 14px;
        z-index: 1100;
        padding: 14px 18px;
        border-radius: 14px;
        box-shadow: 0 12px 28px rgba(13, 27, 53, 0.36);
    }
}