:root {
    --bg: #080808;
    --bg-soft: #101010;
    --surface: #171717;
    --surface-strong: #1f1f1f;
    --border: #343434;
    --text: #ffffff;
    --muted: #c8c8c8;
    --muted-strong: #9c9c9c;
    --red: #e50914;
    --red-strong: #ff1d2d;
    --red-dark: #a8000a;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

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

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(8, 8, 8, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
    background: rgba(8, 8, 8, 0.95);
    border-color: rgba(229, 9, 20, 0.28);
}

.site-header .container {
    width: 100%;
    max-width: none;
    padding: 0 32px;
}

.header-inner {
    min-height: 78px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    justify-self: start;
}

.brand img,
.site-footer img {
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    justify-self: center;
}

.site-nav a {
    position: relative;
    padding: 8px 0;
    transition: color 180ms ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
    color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
}

.header-whatsapp,
.button,
.floating-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 6px;
    font-weight: 800;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.header-whatsapp {
    padding: 0 18px;
    background: var(--red);
    color: var(--text);
    box-shadow: 0 12px 30px rgba(229, 9, 20, 0.28);
    justify-self: end;
}

.header-whatsapp:hover,
.header-whatsapp:focus-visible,
.button:hover,
.button:focus-visible,
.floating-whatsapp:hover,
.floating-whatsapp:focus-visible {
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
    transition: transform 180ms ease, opacity 180ms ease;
}

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

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

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

.hero {
    min-height: 86vh;
    display: flex;
    align-items: center;
    padding: 132px 0 76px;
    background:
        linear-gradient(90deg, rgba(8, 8, 8, 0.96) 0%, rgba(8, 8, 8, 0.78) 44%, rgba(8, 8, 8, 0.42) 100%),
        url("assets/hero-reparo.jpg") center / cover no-repeat;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-content {
    max-width: 760px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 14px;
    color: var(--red-strong);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

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

h1 {
    margin-bottom: 20px;
    max-width: 720px;
    font-size: 56px;
    line-height: 1.03;
    letter-spacing: 0;
}

.hero-subtitle {
    max-width: 680px;
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 30px;
}

.button {
    padding: 0 22px;
}

.button-primary {
    background: var(--red);
    color: var(--text);
    box-shadow: 0 18px 38px rgba(229, 9, 20, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--red-strong);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: var(--red);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-badges span {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.section {
    padding: 88px 0;
    background: var(--bg);
}

.section-dark {
    background: var(--bg-soft);
}

.section-head {
    max-width: 720px;
    margin-bottom: 34px;
}

.section-head h2 {
    margin-bottom: 14px;
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: 0;
}

.section-head p:not(.section-kicker) {
    color: var(--muted);
    font-size: 17px;
}

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

.service-card,
.trust-item,
.product-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.service-card {
    min-height: 250px;
    padding: 26px;
    overflow: hidden;
}

.service-card::before,
.trust-item::before,
.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--red), transparent);
}

.service-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 22px;
    border: 1px solid rgba(229, 9, 20, 0.48);
    border-radius: 50%;
    color: var(--red-strong);
    font-size: 13px;
    font-weight: 900;
}

.service-card h3 {
    margin-bottom: 10px;
    font-size: 21px;
    line-height: 1.2;
}

.service-card p,
.trust-item p,
.product-card p {
    color: var(--muted);
}

.service-card a {
    position: absolute;
    left: 26px;
    bottom: 24px;
    color: var(--red-strong);
    font-weight: 900;
}

.product-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 34px;
    align-items: center;
    margin-bottom: 44px;
}

.product-photo {
    margin: 0;
}

.product-photo img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}

.product-photo figcaption {
    margin-top: 10px;
    color: var(--muted-strong);
    font-size: 12px;
}

.product-group + .product-group {
    margin-top: 48px;
}

.group-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.group-heading h3 {
    margin: 0;
    font-size: 25px;
}

.group-heading p {
    max-width: 420px;
    margin: 0;
    color: var(--muted);
    text-align: right;
}

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

.compact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
    display: flex;
    flex-direction: column;
    min-height: 246px;
    padding: 22px;
    overflow: hidden;
}

.product-category {
    align-self: flex-start;
    margin-bottom: 15px;
    padding: 5px 9px;
    border: 1px solid rgba(229, 9, 20, 0.48);
    border-radius: 6px;
    color: var(--red-strong);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.product-card h4 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.22;
}

.price {
    display: block;
    margin-bottom: 14px;
    color: var(--text);
    font-size: 28px;
    font-weight: 900;
}

.colors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.colors li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px;
}

.swatch {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: var(--swatch-color, #777777);
}

.product-note {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.product-card .button {
    width: 100%;
    margin-top: auto;
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
}

.trust-section {
    background:
        linear-gradient(135deg, rgba(229, 9, 20, 0.12), transparent 32%),
        var(--bg);
}

.trust-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 34px;
    align-items: start;
}

.trust-item {
    min-height: 176px;
    padding: 24px;
}

.trust-item strong {
    display: block;
    margin-bottom: 10px;
    font-size: 19px;
}

.site-footer {
    padding: 42px 0;
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.site-footer p {
    margin: 14px 0 6px;
    color: var(--muted);
}

.site-footer span {
    color: var(--muted-strong);
    font-size: 14px;
}

.floating-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 15;
    min-height: 50px;
    padding: 0 18px;
    background: var(--red);
    color: var(--text);
    box-shadow: 0 18px 38px rgba(229, 9, 20, 0.32);
}

:focus-visible {
    outline: 3px solid rgba(255, 29, 45, 0.72);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .site-header .container {
        padding: 0 20px;
    }

    .header-inner {
        min-height: 72px;
        display: flex;
        justify-content: space-between;
    }

    .nav-toggle {
        display: inline-block;
        order: 3;
    }

    .site-nav {
        position: fixed;
        top: 72px;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: #0d0d0d;
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 14px 12px;
    }

    .header-whatsapp {
        margin-left: auto;
    }

    .hero {
        min-height: 78vh;
        padding-top: 120px;
        background:
            linear-gradient(90deg, rgba(8, 8, 8, 0.97) 0%, rgba(8, 8, 8, 0.84) 62%, rgba(8, 8, 8, 0.62) 100%),
            url("assets/hero-reparo.jpg") center / cover no-repeat;
    }

    h1 {
        font-size: 42px;
    }

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

    .services-grid,
    .product-grid,
    .compact-grid,
    .trust-grid,
    .trust-layout,
    .product-intro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-intro {
        align-items: start;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .site-header .container {
        width: 100%;
        padding: 0 14px;
    }

    .header-inner {
        gap: 12px;
    }

    .brand img {
        width: 158px;
    }

    .header-whatsapp {
        display: none;
    }

    .hero {
        min-height: 82vh;
        padding: 112px 0 56px;
        background-position: 62% center;
    }

    h1 {
        font-size: 34px;
        line-height: 1.08;
    }

    .section {
        padding: 64px 0;
    }

    .section-head h2 {
        font-size: 29px;
    }

    .services-grid,
    .product-grid,
    .compact-grid,
    .trust-grid,
    .trust-layout,
    .product-intro {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 230px;
    }

    .group-heading {
        display: block;
    }

    .group-heading p {
        margin-top: 8px;
        text-align: left;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .floating-whatsapp {
        right: 14px;
        bottom: 14px;
        min-height: 46px;
        padding: 0 14px;
        font-size: 14px;
    }
}

@media (max-width: 390px) {
    .brand img {
        width: 142px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .product-card {
        padding: 18px;
    }

    .price {
        font-size: 25px;
    }
}
