:root {
    color-scheme: light;
    --bg: #071012;
    --ink: #142023;
    --muted: #657579;
    --line: #dfe7e8;
    --green: #17b957;
    --green-dark: #0e7f3b;
    --red: #e1343f;
    --blue: #0d4d73;
    --paper: #ffffff;
    --soft: #eef5f2;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    background: #f3f7f6;
    color: var(--ink);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 22px;
    min-height: 82px;
    padding: 12px 34px;
    background: rgba(4, 12, 14, .82);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(18px);
}

a {
    color: inherit;
}

.brand, .top-nav a, .header-call, .btn {
    text-decoration: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    min-width: 260px;
}

.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: block;
    flex: 0 0 auto;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}

.brand span {
    display: grid;
    gap: 2px;
}

.brand b {
    color: var(--green);
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    text-transform: none;
}

.brand strong {
    color: rgba(255, 255, 255, .78);
    max-width: 330px;
    font-size: 12px;
    line-height: 1.15;
    font-weight: 800;
}

.top-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.top-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    padding: 9px 13px;
    color: rgba(255, 255, 255, .82);
    font-weight: 800;
}

.top-nav a:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.header-phones {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    gap: 8px;
}

.header-call {
    min-height: 44px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 8px 13px;
    background: var(--green);
    color: #fff;
    font-weight: 900;
    line-height: 1.08;
}

.header-call span {
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.header-call.repair,
.btn.dark-primary {
    background: var(--blue);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: var(--bg);
}

.hero-image, .hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(3, 10, 13, .96) 0%, rgba(3, 10, 13, .82) 38%, rgba(3, 10, 13, .25) 78%),
        linear-gradient(180deg, rgba(3, 10, 13, .18) 0%, rgba(3, 10, 13, .82) 100%);
}

.hero-content {
    position: relative;
    width: min(780px, calc(100% - 40px));
    margin-left: max(20px, calc((100vw - 1180px) / 2));
    padding-top: 86px;
    padding-bottom: 120px;
    color: #fff;
}

.kicker {
    margin: 0 0 12px;
    color: var(--green);
    font-weight: 900;
    text-transform: uppercase;
}

h1, h2, h3, p {
    margin: 0;
}

h1 {
    max-width: 900px;
    font-size: clamp(38px, 5.8vw, 76px);
    line-height: .96;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(30px, 4.2vw, 54px);
    line-height: 1.02;
}

h3 {
    font-size: 23px;
    line-height: 1.12;
}

.lead {
    max-width: 690px;
    margin-top: 24px;
    color: #d9e7e8;
    font-size: 22px;
    line-height: 1.45;
}

.hero-actions, .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 15px 24px;
    font-weight: 900;
}

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

.btn.light {
    background: #fff;
    color: var(--ink);
}

.btn.dark {
    background: var(--ink);
    color: #fff;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 26px;
}

.hero-badges span {
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-weight: 800;
}

.contact-strip {
    position: relative;
    z-index: 3;
    width: min(1180px, calc(100% - 32px));
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: -34px auto 76px;
}

.contact-strip article, .service-grid article, .parts-grid article, .feature, .contacts-section {
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 22px 54px rgba(17, 37, 42, .12);
}

.contact-strip article {
    min-width: 0;
    display: grid;
    gap: 9px;
    padding: 22px;
}

.contact-strip span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-strip a, .contact-strip strong {
    min-width: 0;
    color: var(--ink);
    font-size: clamp(19px, 2vw, 28px);
    font-weight: 900;
    text-decoration: none;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.phone-list {
    display: grid;
    gap: 8px;
}

.phone-list a {
    display: grid;
    gap: 2px;
}

.phone-list small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.section, .feature, .contacts-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 68px;
}

#top, #services, #parts, #contacts {
    scroll-margin-top: 96px;
}

.section-head {
    max-width: 820px;
    margin-bottom: 24px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.service-grid article {
    min-height: 320px;
    padding: 24px;
    border-top: 5px solid var(--green);
}

.service-grid span {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--red);
    font-size: 34px;
    font-weight: 900;
}

.service-grid p, .feature p, .parts-grid p, .contacts-section p {
    color: var(--muted);
    line-height: 1.55;
}

.feature {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: center;
    padding: 34px;
    background:
        linear-gradient(135deg, #fff 0%, #fff 54%, #e7f5ef 100%);
}

.feature-copy p {
    margin-top: 16px;
    font-size: 18px;
}

.feature-copy h2 {
    max-width: 620px;
    font-size: clamp(30px, 3.3vw, 46px);
    line-height: 1.08;
}

.feature-copy ul {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.feature-copy li {
    position: relative;
    padding-left: 28px;
    font-weight: 800;
}

.feature-copy li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--green);
}

.feature-card {
    overflow: hidden;
    border-radius: 8px;
    min-height: 420px;
    background: #081315;
}

.feature-card img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    object-position: 70% center;
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.seo-section {
    padding: 28px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(23, 185, 87, .1), rgba(13, 77, 115, .08)),
        #fff;
    box-shadow: 0 22px 54px rgba(17, 37, 42, .08);
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.seo-grid article {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .74);
}

.seo-grid h3 {
    color: var(--ink);
}

.seo-grid p {
    color: var(--muted);
    line-height: 1.55;
}

.parts-grid article {
    padding: 26px;
    background:
        linear-gradient(135deg, rgba(13, 77, 115, .08), rgba(23, 185, 87, .1)),
        #fff;
}

.parts-grid b {
    display: block;
    margin-bottom: 10px;
    color: var(--blue);
    font-size: 24px;
}

.contacts-section {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    align-items: stretch;
    gap: 24px;
    padding: 28px;
    border-left: 8px solid var(--red);
}

.contacts-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-list {
    display: grid;
    gap: 12px;
    margin: 22px 0;
}

.contact-list article {
    display: grid;
    gap: 7px;
    padding: 18px;
    border-radius: 8px;
    background: var(--soft);
}

.contact-list span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.contact-list a, .contact-list strong {
    color: var(--ink);
    font-size: clamp(20px, 2.1vw, 28px);
    font-weight: 900;
    line-height: 1.18;
    text-decoration: none;
}

.contact-list .phone-list a {
    font-size: clamp(19px, 2vw, 26px);
}

.map-card {
    min-height: 440px;
    overflow: hidden;
    border-radius: 8px;
    background: #dfe7e8;
}

.map-card iframe {
    width: 100%;
    height: 100%;
    min-height: 440px;
    border: 0;
}

@media (max-width: 980px) {
    html {
        scroll-padding-top: 132px;
    }

    .site-header {
        grid-template-columns: 1fr;
        gap: 10px;
        min-height: 0;
        padding: 10px 16px;
    }

    .top-nav {
        display: none;
    }

    .brand {
        min-width: 0;
    }

    .brand strong {
        max-width: none;
    }

    .header-phones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .header-call {
        min-height: 40px;
        padding: 7px 9px;
        font-size: 15px;
    }

    .contact-strip, .service-grid, .feature, .seo-grid, .parts-grid, .contacts-section {
        grid-template-columns: 1fr;
    }

    #top, #services, #parts, #contacts {
        scroll-margin-top: 132px;
    }

    .hero-content {
        width: calc(100% - 32px);
        margin: 0 auto;
        padding-top: 150px;
        padding-bottom: 92px;
    }
}

@media (max-width: 620px) {
    html {
        scroll-padding-top: 126px;
    }

    .site-header {
        padding: 8px 10px;
    }

    .brand {
        min-width: 0;
    }

    .brand b {
        font-size: 17px;
    }

    .brand strong {
        max-width: none;
        font-size: 10px;
    }

    .brand {
        gap: 8px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .header-call {
        min-height: 38px;
        padding: 6px 7px;
        font-size: 12px;
    }

    .header-call span {
        font-size: 10px;
    }

    #top, #services, #parts, #contacts {
        scroll-margin-top: 126px;
    }

    .hero {
        min-height: 760px;
    }

    .hero-shade {
        background:
            linear-gradient(180deg, rgba(3, 10, 13, .96) 0%, rgba(3, 10, 13, .78) 48%, rgba(3, 10, 13, .48) 100%);
    }

    .hero-content {
        padding-top: 138px;
    }

    h1 {
        font-size: 30px;
        line-height: 1.02;
    }

    .lead {
        font-size: 18px;
    }

    .hero-actions, .cta-actions {
        display: grid;
    }

    .btn {
        width: 100%;
    }

    .contact-strip {
        margin-top: -42px;
        margin-bottom: 44px;
    }

    .contact-strip a, .contact-strip strong {
        font-size: 18px;
    }

    .section, .feature, .contacts-section {
        margin-bottom: 44px;
    }

    .feature, .contacts-section {
        padding: 20px;
    }

    .service-grid article {
        min-height: auto;
    }
}
