:root {
    --bg: #f3f3f5;
    --surface: #ffffff;
    --surface-alt: #ececf3;
    --text: #18358f;
    --text-dark: #ffffff;
    --muted: #4f63a6;
    --primary: #213b92;
    --primary-2: #4f68a9;
    --primary-3: #bfc6dc;
    --border: #c9d1e8;
    --shadow: 0 18px 45px rgba(18, 47, 122, 0.08);
    --font-logo: Georgia, "Times New Roman", Times, serif;
    --font-body: "Segoe UI", Arial, Helvetica, sans-serif;
}

html[data-theme="dark"] {
    --bg: #081430;
    --surface: #0f204f;
    --surface-alt: #14275d;
    --text: #f6f8ff;
    --text-dark: #ffffff;
    --muted: #c7d3ff;
    --primary: #8aa7ff;
    --primary-2: #5f7ee0;
    --primary-3: #243d8d;
    --border: rgba(255, 255, 255, 0.18);
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

.site-wrapper {
    overflow-x: hidden;
}

.container {
    width: min(92%, 1320px);
    margin: 0 auto;
}

h1,
h2,
h3,
.big-title,
.light-title,
.section-heading h2,
.hero-content h1,
.info-card h3,
.service-card h3,
.industry-item h3,
.footer-col h3 {
    font-family: var(--font-logo);
    letter-spacing: 0.012em;
}

p,
a,
label,
input,
textarea,
button {
    font-family: var(--font-body);
}

/* HEADER */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(243, 243, 245, 0.58);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(24, 53, 143, 0.08);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

    .site-header.scrolled {
        background: rgba(243, 243, 245, 0.9);
        box-shadow: 0 14px 35px rgba(18, 47, 122, 0.08);
    }

html[data-theme="dark"] .site-header {
    background: rgba(8, 20, 48, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

    html[data-theme="dark"] .site-header.scrolled {
        background: rgba(8, 20, 48, 0.9);
    }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 126px;
}

.brand {
    flex-shrink: 0;
}

.logo {
    height: 118px;
    width: auto;
    transition: height 0.25s ease, transform 0.25s ease;
}

.site-header.scrolled .logo {
    height: 92px;
}

.logo-dark {
    display: none;
}

html[data-theme="dark"] .logo-light {
    display: none;
}

html[data-theme="dark"] .logo-dark {
    display: block;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 38px;
    font-size: 20px;
    color: var(--text);
}

    .main-nav a {
        font-family: var(--font-logo);
        letter-spacing: 0.025em;
        position: relative;
        transition: color 0.25s ease, opacity 0.25s ease;
    }

        .main-nav a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 0;
            height: 2px;
            background: var(--primary-2);
            transition: width 0.25s ease;
        }

        .main-nav a:hover::after {
            width: 100%;
        }

        .main-nav a:hover {
            opacity: 0.8;
        }

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-toggle,
.primary-btn,
.secondary-btn,
.submit-btn {
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-body);
}

.theme-toggle {
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
}

    .theme-toggle:hover,
    .primary-btn:hover,
    .secondary-btn:hover,
    .submit-btn:hover {
        transform: translateY(-2px);
        opacity: 0.92;
    }

.desktop-theme-toggle {
    display: none;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: none;
    background: transparent;
    cursor: pointer;
}

    .menu-toggle span {
        display: block;
        height: 3px;
        background: var(--text);
        margin: 7px 0;
        border-radius: 99px;
    }

/* HERO */

.hero-section {
    padding: 170px 0 36px;
    min-height: 86vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-logo);
    font-size: clamp(3rem, 6vw, 6.2rem);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: 0.015em;
    max-width: 900px;
    color: var(--text);
    margin-bottom: 34px;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--primary-2);
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.hero-visual {
    position: relative;
    min-height: 420px;
}

.shape {
    position: absolute;
}

.shape-1 {
    left: 2%;
    bottom: 0;
    width: 180px;
    height: 180px;
    background: var(--primary-3);
    border-top-left-radius: 180px;
    border-top-right-radius: 180px;
}

.shape-2 {
    right: 0;
    top: 0;
    width: 240px;
    height: 240px;
    background: var(--primary-2);
    border-bottom-left-radius: 240px;
}

.shape-3 {
    left: 0;
    bottom: 0;
    width: 180px;
    height: 70px;
    background: var(--primary-2);
    border-top-right-radius: 90px;
}

.shape-4 {
    left: 180px;
    bottom: 0;
    width: 180px;
    height: 70px;
    background: var(--primary-3);
}

/* ABOUT CARDS */

.about-cards-section {
    padding: 32px 0 70px;
}

.about-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 0.9fr;
    gap: 28px;
    align-items: start;
}

.info-card {
    background: transparent;
    border: 1.5px solid var(--primary-2);
    border-radius: 34px;
    padding: 34px 40px;
    min-height: 420px;
}

    .info-card h3 {
        font-size: 2.15rem;
        color: var(--text);
        margin-bottom: 18px;
        font-weight: 700;
        line-height: 1.15;
    }

    .info-card p {
        font-size: 1.1rem;
        color: var(--text);
        line-height: 1.55;
    }

.text-link {
    display: inline-block;
    margin-top: 34px;
    font-size: 1.7rem;
    color: var(--primary-2);
    font-weight: 900;
}

.pattern-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 420px;
}

.p-box {
    min-height: 210px;
}

.p1 {
    background: var(--primary-2);
    border-top-right-radius: 210px;
}

.p2 {
    background: var(--primary-3);
}

.p3 {
    background: var(--primary-2);
    border-top-right-radius: 210px;
}

.p4 {
    background: var(--primary);
    border-top-left-radius: 210px;
}

/* ABOUT */

.about-section,
.industries-section {
    padding: 90px 0;
}

.split-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: start;
}

.section-label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-2);
    margin-bottom: 12px;
}

.section-heading h2 {
    font-size: clamp(2.7rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 1;
    color: var(--text);
}

.section-text p {
    font-size: 1.25rem;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 22px;
}

/* SERVICES BANNER */

.services-banner {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.services-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.services-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 70, 0.28);
}

.services-banner-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

    .services-banner-content h2 {
        font-family: var(--font-logo);
        font-size: clamp(3.2rem, 7vw, 6.3rem);
        line-height: 1;
        font-weight: 700;
        letter-spacing: 0.015em;
        max-width: 680px;
        margin-bottom: 30px;
    }

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 0 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-2);
    font-size: 1.15rem;
    font-weight: 900;
    box-shadow: var(--shadow);
}

/* DARK SECTIONS */

.dark-section {
    background: #213b92;
    color: #ffffff;
}

html[data-theme="dark"] .dark-section {
    background: #10235d;
}

.services-section,
.metrics-section,
.contact-section {
    padding: 90px 0;
}

.services-intro {
    max-width: 850px;
    margin: 0 auto 50px;
}

    .services-intro p {
        font-size: 1.4rem;
        line-height: 1.45;
        color: #ffffff;
    }

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.service-card {
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    padding: 34px 40px;
    min-height: 280px;
}

.service-icon {
    font-size: 3rem;
    line-height: 1;
    color: #5f7ed9;
    margin-bottom: 18px;
    font-weight: 900;
}

.service-card h3 {
    font-size: 2.1rem;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.15;
}

.service-card p {
    font-size: 1.15rem;
    line-height: 1.5;
}

/* METRICS */

.big-title {
    font-family: var(--font-logo);
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.015em;
    color: #ffffff;
    margin-bottom: 50px;
}

.light-title {
    color: var(--text);
}

.metrics-graphics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: end;
    margin-bottom: 26px;
}

.metric-graphic {
    height: 170px;
    background: rgba(139, 169, 255, 0.4);
}

.graphic-a {
    border-top-right-radius: 80px;
    border-bottom-right-radius: 80px;
    height: 130px;
}

.graphic-b {
    border-radius: 90px;
    position: relative;
}

    .graphic-b::before {
        content: "";
        position: absolute;
        left: -22px;
        bottom: 0;
        width: 45px;
        height: 45px;
        border-radius: 45px 0 0 45px;
        background: rgba(139, 169, 255, 0.4);
    }

.graphic-c {
    border-top-left-radius: 90px;
    border-top-right-radius: 90px;
}

.graphic-d {
    border-top-right-radius: 90px;
    border-bottom-left-radius: 90px;
}

.metrics-labels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    color: #ffffff;
    font-size: 1.15rem;
    text-align: center;
}

/* INDUSTRIES */

.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 42px;
}

.industry-item h3 {
    font-size: 2.1rem;
    color: var(--text);
    margin-bottom: 16px;
    font-weight: 700;
}

.industry-item p {
    font-size: 1.2rem;
    color: var(--text);
    line-height: 1.5;
}

/* CONTACT */

.contact-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    margin-bottom: 40px;
}

    .contact-header p {
        font-size: 1.7rem;
        color: #dfe7ff;
    }

.contact-form-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.contact-form h3 {
    font-family: var(--font-logo);
    font-size: 2.1rem;
    margin-bottom: 26px;
    color: #ffffff;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 1.15rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1.5px solid rgba(255, 255, 255, 0.82);
    background: transparent;
    border-radius: 22px;
    padding: 16px 18px;
    color: #ffffff;
    outline: none;
}

    .form-group input:focus,
    .form-group textarea:focus {
        border-color: #ffffff;
        box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
    }

.form-group-full {
    grid-column: 1 / -1;
}

textarea {
    resize: vertical;
    min-height: 140px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 320px;
    min-height: 62px;
    margin-top: 26px;
    border-radius: 999px;
    background: #f1f1f4;
    color: var(--primary-2);
    font-size: 1.5rem;
    font-weight: 900;
}

/* FOOTER */

.site-footer {
    padding: 70px 0 0;
    background: var(--bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 70px;
    align-items: start;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 2.1rem;
    margin-bottom: 18px;
    color: var(--text);
    font-weight: 700;
}

.footer-col p,
.footer-col a {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text);
}

    .footer-col p span {
        display: inline-block;
        margin-left: 28px;
    }

/* SOCIAL ICONS */

.social-links {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 18px;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.25s ease;
}

    .social-icon svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

    .social-icon.filled {
        background: var(--primary);
        color: #ffffff;
        box-shadow: 0 10px 24px rgba(33, 59, 146, 0.18);
    }

        .social-icon.filled:hover {
            transform: translateY(-3px);
            background: var(--primary-2);
            box-shadow: 0 14px 28px rgba(33, 59, 146, 0.24);
        }

    .social-icon.outline {
        background: transparent;
        color: var(--primary);
        border: 2px solid var(--primary);
    }

        .social-icon.outline:hover {
            transform: translateY(-3px);
            background: var(--primary);
            color: #ffffff;
        }

html[data-theme="dark"] .social-icon.filled {
    background: var(--primary-2);
    color: #ffffff;
}

html[data-theme="dark"] .social-icon.outline {
    border-color: var(--primary);
    color: var(--primary);
}

/* MAP */

.footer-map-wrap {
    width: min(96%, 1680px);
    margin: 0 auto;
}

.footer-map {
    width: 100%;
    height: 520px;
    background: #eef0f5;
    z-index: 1;
}

    .footer-map .leaflet-container {
        width: 100%;
        height: 100%;
    }

.leaflet-popup-content {
    font-family: var(--font-body);
    color: var(--text);
}

.leaflet-control-attribution {
    font-size: 10px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .hero-grid,
    .split-grid,
    .about-cards-grid,
    .footer-grid,
    .contact-header,
    .industries-grid,
    .metrics-graphics,
    .metrics-labels {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .pattern-grid {
        min-height: 300px;
    }

    .hero-visual {
        min-height: 320px;
    }

    .metrics-labels {
        text-align: left;
        gap: 10px;
    }

    .footer-grid {
        gap: 34px;
    }

    .footer-col p span {
        display: block;
        margin-left: 0;
    }
}

@media (max-width: 900px) {
    .main-nav {
        position: absolute;
        top: 104px;
        left: 4%;
        right: 4%;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: 24px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        gap: 18px;
        box-shadow: var(--shadow);
    }

        .main-nav.open {
            display: flex;
        }

    .desktop-theme-toggle {
        display: inline-flex;
    }

    .mobile-hidden {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-inner {
        min-height: 104px;
    }

    .logo {
        height: 82px;
    }

    .site-header.scrolled .logo {
        height: 74px;
    }

    .hero-section {
        padding-top: 140px;
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 10vw, 4.2rem);
    }

    .services-banner {
        min-height: 70vh;
    }

    .services-banner-content h2 {
        font-size: clamp(2.8rem, 10vw, 4.8rem);
    }

    .big-title,
    .section-heading h2 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .contact-header {
        align-items: start;
    }

        .contact-header p {
            font-size: 1.3rem;
        }

    .footer-map {
        height: 380px;
    }
}

@media (max-width: 700px) {
    .header-inner {
        min-height: 92px;
    }

    .logo {
        height: 68px;
    }

    .site-header.scrolled .logo {
        height: 62px;
    }

    .hero-content h1 {
        margin-bottom: 24px;
    }

    .primary-btn,
    .secondary-btn,
    .submit-btn {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        min-height: auto;
        padding: 28px;
    }

    .service-card {
        min-height: auto;
        padding: 28px;
    }

    .about-section,
    .industries-section,
    .services-section,
    .metrics-section,
    .contact-section {
        padding: 64px 0;
    }

    .hero-visual {
        min-height: 260px;
    }

    .shape-1 {
        width: 130px;
        height: 130px;
    }

    .shape-2 {
        width: 170px;
        height: 170px;
    }

    .shape-3 {
        width: 130px;
        height: 58px;
    }

    .shape-4 {
        left: 130px;
        width: 130px;
        height: 58px;
    }

    .footer-map {
        height: 300px;
    }
}
