:root {
    --color-navy: #071833;
    --color-blue: #155dca;
    --color-blue-soft: #e9f1ff;
    --color-ink: #0b1730;
    --color-muted: #5d687a;
    --color-line: #e5e9f0;
    --color-bg: #f6f8fb;
    --color-white: #ffffff;
    --shadow-soft: 0 18px 50px rgba(7, 24, 51, 0.08);
    --shadow-card: 0 14px 36px rgba(7, 24, 51, 0.07);
    --radius: 8px;
    --header-height: 86px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    color: var(--color-ink);
    background: var(--color-white);
    line-height: 1.65;
}

body.nav-open {
    overflow: hidden;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(229, 233, 240, 0.9);
    box-shadow: 0 12px 30px rgba(7, 24, 51, 0.05);
    backdrop-filter: blur(14px);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 34px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    color: var(--color-navy);
    font-weight: 800;
    font-size: 21px;
    letter-spacing: 0;
    position: relative;
}

.brand-mark::after {
    content: "";
    position: absolute;
    right: -8px;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.brand-copy {
    display: grid;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand-copy small {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

.main-nav a {
    position: relative;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-ink);
    padding: 31px 0;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    height: 2px;
    background: var(--color-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    padding: 0 24px;
    border: 0;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn span {
    font-size: 23px;
    line-height: 0;
}

.btn-dark {
    color: var(--color-white);
    background: var(--color-navy);
    box-shadow: 0 12px 24px rgba(7, 24, 51, 0.2);
}

.btn-dark:hover {
    transform: translateY(-2px);
    background: #0b2248;
    box-shadow: 0 18px 34px rgba(7, 24, 51, 0.26);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-white);
    margin-left: auto;
    padding: 10px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--color-navy);
    margin: 5px 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hero {
    position: relative;
    min-height: 720px;
    padding-top: var(--header-height);
    overflow: hidden;
    background: var(--color-bg);
}

.hero-bg,
.hero-overlay {
    position: absolute;
    inset: var(--header-height) 0 0;
}

.hero-bg {
    background-image: url("../img/hero-automotive-quality.png");
    background-position: center right;
    background-size: cover;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.88) 36%, rgba(255, 255, 255, 0.35) 60%, rgba(255, 255, 255, 0.02) 100%),
        linear-gradient(120deg, rgba(246, 248, 251, 0.45) 0%, rgba(246, 248, 251, 0.18) 45%, transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 92px 0 70px;
}

.section-stroke,
.section-heading span {
    display: block;
    width: 54px;
    height: 3px;
    background: var(--color-blue);
}

.hero h1 {
    max-width: 620px;
    margin: 24px 0 24px;
    font-size: clamp(42px, 5.1vw, 68px);
    line-height: 1.12;
    font-weight: 800;
    text-transform: uppercase;
}

.hero h1 span {
    display: block;
    color: var(--color-blue);
}

.hero-rule {
    width: 54px;
    height: 1px;
    background: var(--color-line);
    margin-bottom: 28px;
}

.hero-kicker {
    max-width: 470px;
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.45;
    font-weight: 700;
}

.hero-text {
    max-width: 560px;
    margin: 0 0 34px;
    color: #172238;
    font-size: 15px;
}

.section {
    padding: 76px 0;
}

.services-section {
    background: var(--color-white);
}

.section-heading {
    margin-bottom: 34px;
}

.section-heading.centered {
    text-align: center;
}

.section-heading.centered span {
    margin: 12px auto 0;
}

.section-heading p {
    margin: 0 0 6px;
    color: var(--color-blue);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.section-heading h2 {
    max-width: 560px;
    margin: 0;
    font-size: clamp(30px, 3.2vw, 42px);
    line-height: 1.16;
    font-weight: 800;
}

.section-heading.centered h2 {
    margin: 0 auto;
}

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

.service-card {
    min-height: 286px;
    padding: 32px 34px;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #c9d8f2;
    box-shadow: var(--shadow-soft);
}

.card-title {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 26px;
}

.card-title svg {
    width: 42px;
    height: 42px;
    stroke: var(--color-blue);
    stroke-width: 2.3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-title h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
}

.service-card ul {
    margin: 0;
    padding-left: 18px;
    color: #152036;
    font-size: 14px;
}

.service-card li + li {
    margin-top: 7px;
}

.service-card li::marker {
    color: var(--color-blue);
}

.partnership-section {
    background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
    border-top: 1px solid var(--color-line);
}

.partnership-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.38fr;
    gap: 56px;
    align-items: center;
}

.partnership-copy > p,
.contact-intro {
    max-width: 520px;
    color: #243044;
    font-size: 15px;
}

.world-visual {
    padding: 10px;
}

.world-visual svg {
    width: 100%;
    min-height: 300px;
}

.world-visual .map-shape {
    fill: url(#dots);
}

.world-visual svg pattern circle {
    fill: #9db6d8;
}

.map-shape {
    opacity: 0.42;
}

.map-shape.small {
    opacity: 0.32;
}

.route {
    fill: none;
    stroke: rgba(21, 93, 202, 0.48);
    stroke-width: 1.4;
}

.pin {
    fill: var(--color-white);
    stroke: var(--color-blue);
    stroke-width: 4;
}

.contact-strip {
    background: var(--color-white);
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.contact-strip-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 28px 0;
}

.contact-email,
.contact-phone {
    display: flex;
    align-items: center;
    gap: 22px;
}

.contact-phone {
    border-left: 1px solid var(--color-line);
    padding-left: 72px;
}

.round-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1.5px solid var(--color-navy);
    border-radius: 50%;
    color: var(--color-navy);
    flex: 0 0 auto;
}

.round-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-strip-copy {
    display: grid;
    gap: 5px;
}

.contact-strip h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.contact-strip p {
    margin: 2px 0 0;
    color: var(--color-muted);
}

.contact-strip-copy strong {
    display: block;
    color: var(--color-blue);
}

.contact-strip-copy a {
    display: block;
    width: fit-content;
}

.whatsapp-link {
    margin-top: 1px;
    color: var(--color-ink);
    font-weight: 700;
}

.whatsapp-link:hover,
.contact-email a:hover,
.contact-phone a:hover {
    color: var(--color-blue);
}

.contact-section {
    background: #fbfcfe;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
}

.contact-form {
    display: grid;
    gap: 16px;
    padding: 30px;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.form-row {
    display: grid;
    gap: 7px;
}

.form-row label {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.form-row input,
.form-row textarea {
    width: 100%;
    border: 1px solid #d8dee8;
    border-radius: var(--radius);
    padding: 13px 14px;
    color: var(--color-ink);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row textarea {
    resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--color-blue);
    box-shadow: 0 0 0 4px rgba(21, 93, 202, 0.1);
}

.site-footer {
    color: var(--color-white);
    background: linear-gradient(135deg, #071833 0%, #0b1f40 100%);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.15fr 1.2fr 1fr 54px;
    gap: 40px;
    align-items: start;
    padding: 32px 0;
}

.footer-brand .brand-mark,
.footer-brand .brand-copy {
    color: var(--color-white);
}

.footer-main p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 30px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.teams-link {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 5px;
}

.teams-link img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    padding: 14px 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 90px;
    z-index: 18;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--color-white);
    background: var(--color-blue);
    box-shadow: 0 14px 28px rgba(21, 93, 202, 0.3);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.floating-whatsapp {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 19;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: var(--color-white);
    background: #1fae57;
    border-radius: 50%;
    box-shadow: 0 16px 34px rgba(31, 174, 87, 0.34);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.floating-whatsapp img {
    width: 56px;
    height: 56px;
    border: 0;
}

.floating-whatsapp:hover {
    transform: translateY(-2px);
    background: #168f47;
    box-shadow: 0 20px 42px rgba(31, 174, 87, 0.42);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(7, 24, 51, 0.42);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay[hidden] {
    display: none;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.contact-modal {
    position: relative;
    width: min(460px, 100%);
    padding: 38px;
    text-align: center;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-top: 4px solid var(--color-blue);
    border-radius: var(--radius);
    box-shadow: 0 28px 80px rgba(7, 24, 51, 0.24);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
}

.modal-overlay.visible .contact-modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--color-line);
    border-radius: 50%;
    color: var(--color-navy);
    background: var(--color-white);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.modal-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    color: var(--color-blue);
    background: var(--color-blue-soft);
    border-radius: 50%;
}

.modal-icon.error {
    color: #9b2432;
    background: #fff0f2;
}

.modal-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-modal h2 {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.18;
}

.contact-modal p {
    margin: 0 0 26px;
    color: var(--color-muted);
}

.contact-form button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.response-page {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(21, 93, 202, 0.08), rgba(255, 255, 255, 0) 44%),
        var(--color-bg);
}

.response-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.response-card {
    width: min(560px, 100%);
    padding: 40px;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.response-card.success {
    border-top: 4px solid var(--color-blue);
}

.response-card.error {
    border-top: 4px solid #9b2432;
}

.response-card h1 {
    margin: 34px 0 10px;
    font-size: clamp(30px, 5vw, 42px);
    line-height: 1.14;
}

.response-card p {
    margin: 0 0 28px;
    color: var(--color-muted);
}

@media (max-width: 1080px) {
    .header-inner {
        gap: 20px;
    }

    .main-nav {
        gap: 18px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partnership-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 880px) {
    :root {
        --header-height: 76px;
    }

    .container {
        width: min(100% - 34px, 1180px);
    }

    .brand-copy strong {
        font-size: 19px;
    }

    .brand-copy small {
        font-size: 9px;
    }

    .nav-toggle {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        display: grid;
        gap: 0;
        margin: 0;
        padding: 12px 24px 24px;
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--color-line);
        box-shadow: 0 20px 30px rgba(7, 24, 51, 0.08);
        transform: translateY(-120%);
        transition: transform 0.28s ease;
    }

    .nav-open .main-nav {
        transform: translateY(0);
    }

    .nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .main-nav a {
        padding: 14px 0;
    }

    .main-nav a::after {
        bottom: 8px;
        width: 42px;
        right: auto;
    }

    .hero {
        min-height: auto;
    }

    .hero-bg {
        background-position: 67% center;
    }

    .hero-overlay {
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 58%, rgba(255, 255, 255, 0.58) 100%);
    }

    .hero-content {
        padding: 74px 0 82px;
    }

    .contact-strip-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-phone {
        border-left: 0;
        border-top: 1px solid var(--color-line);
        padding: 24px 0 0;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .brand-mark {
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .brand-copy strong {
        font-size: 16px;
    }

    .brand-copy small {
        max-width: 150px;
        font-size: 8px;
    }

    .hero-content {
        padding: 58px 0 68px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-kicker {
        font-size: 18px;
    }

    .section {
        padding: 58px 0;
    }

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

    .service-card {
        min-height: 0;
    }

    .world-visual {
        padding: 0;
    }

    .world-visual svg {
        min-height: 210px;
    }

    .contact-form {
        padding: 22px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
