/* =====================================================
   GTS ELEKTRONIK
   MODERN AUTOMOTIVE / ELECTRONICS DESIGN
   CLEAN MASTER STYLESHEET
===================================================== */


/* =====================================================
   ROOT / VARIABLES
===================================================== */

:root {
    --black: #17191d;
    --black-2: #1d2025;
    --dark: #25292f;
    --dark-2: #2d3238;

    --red: #ff1424;
    --red-dark: #b9000d;

    --white: #ffffff;
    --gray: #c0c4ca;
    --gray-dark: #858b94;

    --border: rgba(255, 255, 255, 0.12);
    --border-light: rgba(255, 255, 255, 0.18);

    --container: 1400px;

    --font: "Inter", sans-serif;
    --tech: "Orbitron", sans-serif;

    --transition: 0.35s cubic-bezier(.2, .8, .2, 1);
}


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--gray-dark);
    color: var(--white);
    font-family: var(--font);
    overflow-x: hidden;
    min-width: 320px;
}

body.modal-open {
    overflow: hidden;
}

img {
    width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}


/* =====================================================
   LOADER
===================================================== */

.loader {
    position: fixed;
    inset: 0;
    z-index: 99999;

    background:
        radial-gradient(
            circle at center,
            rgba(255, 20, 36, 0.08) 0%,
            rgba(5, 6, 8, 0.96) 38%,
            #050608 75%
        );

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    color: #fff;

    transition:
        opacity 0.7s ease,
        visibility 0.7s ease;
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}


/* Animated grid */

.loader::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, .025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .025) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    animation: gridMove 8s linear infinite;
}

@keyframes gridMove {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(45px);
    }
}


/* Red scanning line */

.loader::after {
    content: "";
    position: absolute;

    left: 0;
    right: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 20, 36, .1),
            var(--red),
            rgba(255, 20, 36, .1),
            transparent
        );

    box-shadow:
        0 0 15px var(--red),
        0 0 40px rgba(255, 20, 36, .5);

    animation: scanner 2.8s ease-in-out infinite;

    pointer-events: none;
}

@keyframes scanner {

    0% {
        top: -5%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 105%;
        opacity: 0;
    }
}


/* Loader main */

.loader-main {
    position: relative;
    z-index: 5;

    width: min(520px, 90%);

    text-align: center;
}


/* Loader logo */

.loader-logo-wrap {
    position: relative;

    width: 280px;
    height: 180px;

    margin: 0 auto 25px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    position: relative;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    animation: logoPulse 2s ease-in-out infinite;
}

.loader-logo img {
    width: 230px;
    max-width: 70vw;
    height: auto;

    display: block;

    filter:
        drop-shadow(0 0 8px rgba(255, 20, 36, .35))
        drop-shadow(0 0 25px rgba(255, 20, 36, .15));
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.035);
        filter: brightness(1.18);
    }
}


/* Loader rings */

.loader-ring {
    position: absolute;

    border: 1px solid rgba(255, 255, 255, .12);

    border-radius: 50%;

    pointer-events: none;
}

.ring-1 {
    width: 170px;
    height: 170px;

    border-top-color: var(--red);
    border-right-color: rgba(255, 20, 36, .3);

    animation: ringSpin 5s linear infinite;
}

.ring-2 {
    width: 215px;
    height: 215px;

    border-bottom-color: var(--red);
    border-left-color: rgba(255, 20, 36, .25);

    animation: ringSpinReverse 7s linear infinite;
}

.ring-3 {
    width: 260px;
    height: 260px;

    border-top-color: rgba(255, 20, 36, .35);

    animation: ringSpin 10s linear infinite;
}

@keyframes ringSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ringSpinReverse {
    to {
        transform: rotate(-360deg);
    }
}


/* Loader status */

#loaderStatus {
    transition: opacity .2s ease;
}

.loader-status {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-bottom: 25px;
    min-height: 20px;

    font-family: var(--tech);
    font-size: 10px;
    letter-spacing: 1.8px;

    color: rgba(255, 255, 255, .7);
}

.loader-status .status-dot {
    width: 7px;
    height: 7px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--red);

    box-shadow:
        0 0 8px var(--red),
        0 0 18px rgba(255, 20, 36, .7);

    animation: statusBlink .7s ease-in-out infinite;
}

@keyframes statusBlink {

    0%,
    100% {
        opacity: .35;
        transform: scale(.75);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}


/* Loader progress */

.loader-progress {
    width: 100%;
    margin: 0 auto;
}

.progress-top {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 8px;

    font-family: var(--tech);
    font-size: 9px;
    letter-spacing: 1.5px;

    color: rgba(255, 255, 255, .4);
}

.progress-top strong {
    color: var(--red);
    font-size: 11px;
}

.progress-track {
    position: relative;

    width: 100%;
    height: 3px;

    background: rgba(255, 255, 255, .08);

    overflow: hidden;
}

.progress-bar {
    position: relative;

    width: 0%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #7d0009,
            var(--red),
            #ff5a65
        );

    box-shadow:
        0 0 10px var(--red),
        0 0 25px rgba(255, 20, 36, .5);

    transition: width .12s linear;
}

.progress-bar::after {
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 60px;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .7),
            transparent
        );

    animation: progressLight 1s linear infinite;
}

@keyframes progressLight {

    from {
        transform: translateX(-80px);
    }

    to {
        transform: translateX(80px);
    }
}


/* Loader technical data */

.loader-data {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 20px;
}

.loader-data span {
    padding: 6px 9px;

    border: 1px solid rgba(255, 255, 255, .08);

    background: rgba(255, 255, 255, .025);

    font-family: var(--tech);
    font-size: 7px;
    letter-spacing: 1px;

    color: rgba(255, 255, 255, .35);

    animation: dataActive 2s ease-in-out infinite;
}

.loader-data span:nth-child(2) {
    animation-delay: .2s;
}

.loader-data span:nth-child(3) {
    animation-delay: .4s;
}

.loader-data span:nth-child(4) {
    animation-delay: .6s;
}

.loader-data span:nth-child(5) {
    animation-delay: .8s;
}

@keyframes dataActive {

    0%,
    100% {
        color: rgba(255, 255, 255, .3);
        border-color: rgba(255, 255, 255, .08);
    }

    50% {
        color: var(--red);
        border-color: rgba(255, 20, 36, .4);

        box-shadow:
            0 0 10px rgba(255, 20, 36, .08);
    }
}


/* Loader technical labels */

.loader-tech {
    position: absolute;
    z-index: 4;

    font-family: var(--tech);
    font-size: 8px;
    letter-spacing: 2px;

    color: rgba(255, 255, 255, .25);
}

.loader-tech span {
    color: rgba(255, 20, 36, .65);
}

.top-tech {
    top: 35px;
    left: 40px;
}

.top-tech span {
    margin-left: 15px;
}

.bottom-tech {
    right: 40px;
    bottom: 35px;

    display: flex;
    gap: 15px;
}


/* Loader circuit decorations */

.loader-circuit {
    position: absolute;

    width: 250px;
    height: 250px;

    opacity: .25;

    pointer-events: none;
}

.circuit-left {
    left: -80px;
    top: 20%;

    border-right: 1px solid rgba(255, 20, 36, .25);
    border-bottom: 1px solid rgba(255, 20, 36, .15);

    transform:
        perspective(400px)
        rotateY(25deg);
}

.circuit-right {
    right: -80px;
    bottom: 15%;

    border-left: 1px solid rgba(255, 20, 36, .25);
    border-top: 1px solid rgba(255, 20, 36, .15);

    transform:
        perspective(400px)
        rotateY(-25deg);
}


/* Loader exit */

.loader.loaded {
    animation:
        loaderExit .8s
        cubic-bezier(.7, 0, .2, 1)
        forwards;
}

@keyframes loaderExit {

    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.04);
        visibility: hidden;
    }
}


/* =====================================================
   NAVIGATION
===================================================== */

.navbar {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(23, 25, 29, .88);

    backdrop-filter: blur(18px);

    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--container);

    min-height: 82px;

    margin: auto;

    padding: 0 35px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    flex-shrink: 0;
}

.logo-image {
    width: 175px;
    height: auto;
    display: block;
}

.logo-car {
    font-family: var(--tech);

    font-size: 28px;
    font-weight: 900;
    font-style: italic;

    letter-spacing: -2px;
}

.logo-text {
    font-family: var(--tech);

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 2px;
}

.logo-text small {
    display: block;

    font-family: var(--font);

    color: var(--red);

    font-size: 7px;
    letter-spacing: 2px;

    margin-top: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;

    gap: 32px;
}

.nav-menu a {
    position: relative;

    color: #c8ccd2;

    font-size: 13px;
    font-weight: 600;

    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
}

.nav-menu a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--red);

    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-button {
    border: none;

    background: var(--red);

    color: var(--white);

    padding: 13px 19px;

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .5px;

    transition: var(--transition);
}

.nav-button:hover {
    background: var(--white);
    color: var(--black);
}

.nav-button span {
    margin-left: 8px;
}

.mobile-menu {
    display: none;

    width: 44px;
    height: 44px;

    border: 1px solid var(--border);

    background: transparent;

    padding: 7px;
}

.mobile-menu span {
    display: block;

    width: 27px;
    height: 2px;

    background: var(--white);

    margin: 5px auto;

    transition: var(--transition);
}


/* =====================================================
   HERO
===================================================== */

.hero {
    position: relative;

    min-height: 720px;

    padding-top: 82px;

    background:
        linear-gradient(
            90deg,
            rgba(23, 25, 29, .96) 0%,
            rgba(23, 25, 29, .88) 40%,
            rgba(23, 25, 29, .70) 100%
        ),
        url("../images/hero.jpg")
        center center /
        cover
        no-repeat;

    overflow: hidden;
}


/* Optional background layer */

.hero-background {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(23, 25, 29, .55) 0%,
            rgba(23, 25, 29, .30) 55%,
            rgba(23, 25, 29, .15) 100%
        ),
        url("../images/hero.jpg")
        center /
        cover
        no-repeat;

    opacity: .45;

    z-index: 0;

    pointer-events: none;
}


/* Hero dark overlay */

.hero::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(23, 25, 29, .25) 0%,
            transparent 45%,
            rgba(23, 25, 29, .90) 100%
        );

    pointer-events: none;

    z-index: 1;
}


/* Red glow */

.hero::after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -180px;
    top: 50%;

    transform: translateY(-50%);

    background:
        radial-gradient(
            circle,
            rgba(255, 20, 36, .10) 0%,
            rgba(255, 20, 36, .03) 40%,
            transparent 70%
        );

    pointer-events: none;

    z-index: 1;
}

.hero-container {
    position: relative;

    z-index: 3;

    width: min(var(--container), 100%);

    margin: auto;

    padding: 80px 35px 125px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 50px;
}

.hero-content {
    max-width: 680px;
}

.status {
    display: flex;
    align-items: center;

    gap: 10px;

    font-family: var(--tech);

    font-size: 10px;

    letter-spacing: 2px;

    color: #d8d8d8;

    margin-bottom: 25px;
}

.status-dot {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--red);

    box-shadow:
        0 0 15px var(--red);

    animation: pulse 1.5s infinite;
}

.status-line {
    width: 40px;
    height: 1px;

    background: var(--red);
}

@keyframes pulse {

    50% {
        opacity: .3;
        transform: scale(.7);
    }
}

.hero h1 {
    font-family: var(--tech);

    font-size: clamp(45px, 5.4vw, 82px);

    line-height: .98;

    letter-spacing: -3px;

    margin-bottom: 25px;
}

.hero h1 span {
    display: block;

    color: var(--red);

    text-shadow:
        0 0 35px rgba(255, 20, 36, .20);
}

.hero-description {
    max-width: 580px;

    color: #c0c4ca;

    font-size: 17px;

    line-height: 1.7;

    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}


/* =====================================================
   BUTTONS
===================================================== */

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 18px;

    border: none;

    padding: 16px 25px;

    font-size: 12px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;

    transition: var(--transition);
}

.btn-primary {
    color: var(--white);

    background: var(--red);

    box-shadow:
        0 10px 40px rgba(255, 20, 36, .18);
}

.btn-primary:hover {
    background: var(--white);

    color: var(--black);

    transform: translateY(-3px);
}

.btn-outline {
    color: var(--white);

    background: rgba(255, 255, 255, .04);

    border: 1px solid rgba(255, 255, 255, .20);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);

    transform: translateY(-3px);
}


/* =====================================================
   HERO STATS
===================================================== */

.hero-stats {
    display: flex;

    gap: 45px;

    margin-top: 55px;

    padding-top: 25px;

    border-top: 1px solid var(--border);
}

.hero-stats div {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.hero-stats strong {
    font-family: var(--tech);

    font-size: 17px;
}

.hero-stats span {
    font-size: 10px;

    color: var(--gray);

    text-transform: uppercase;

    letter-spacing: 1px;
}


/* =====================================================
   HERO IMAGE
===================================================== */

.hero-image {
    position: relative;

    z-index: 3;
}

.image-frame {
    position: relative;

    height: 570px;

    border: 1px solid rgba(255, 255, 255, .12);

    overflow: hidden;

    transform:
        perspective(1000px)
        rotateY(-3deg);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .35);
}

.image-frame::before {
    content: "";

    position: absolute;

    inset: 15px;

    border: 1px solid rgba(255, 20, 36, .35);

    z-index: 2;

    pointer-events: none;
}

.image-frame img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.image-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(0, 0, 0, .82),
            transparent 60%
        );
}


/* Floating information boxes */

.floating-box {
    position: absolute;

    z-index: 4;

    background: rgba(23, 25, 29, .88);

    backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, .12);

    padding: 14px 18px;

    display: flex;

    gap: 12px;

    align-items: center;
}

.box-one {
    bottom: 35px;
    left: 30px;
}

.box-two {
    top: 35px;
    right: 30px;
}

.floating-box .icon {
    font-size: 22px;

    color: var(--red);
}

.floating-box strong {
    display: block;

    font-family: var(--tech);

    font-size: 9px;

    letter-spacing: 1px;
}

.floating-box small {
    display: block;

    color: var(--gray);

    font-size: 9px;

    margin-top: 4px;
}

.floating-box .pulse {
    width: 8px;
    height: 8px;

    flex-shrink: 0;

    background: #25ff77;

    border-radius: 50%;

    box-shadow:
        0 0 15px #25ff77;
}


/* =====================================================
   HERO BOTTOM
===================================================== */

.hero-bottom {
    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;

    z-index: 5;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    border-top: 1px solid var(--border);

    background: rgba(10, 11, 14, .55);

    backdrop-filter: blur(8px);
}

.hero-bottom > div {
    min-width: 0;

    padding: 17px 30px;

    border-right: 1px solid var(--border);

    font-family: var(--tech);

    font-size: 9px;

    letter-spacing: 1px;

    color: #c0c4ca;
}

.hero-bottom > div:last-child {
    border-right: none;
}


/* =====================================================
   TRUST BAR
===================================================== */

.trust-bar {
    background: var(--red);

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    padding: 0;
}

.trust-item {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 22px 30px;

    border-right: 1px solid rgba(0, 0, 0, .15);
}

.trust-item:last-child {
    border-right: none;
}

.trust-item > span {
    font-size: 24px;

    font-weight: 900;
}

.trust-item strong {
    display: block;

    font-family: var(--tech);

    font-size: 9px;

    letter-spacing: 1px;
}

.trust-item small {
    display: block;

    font-size: 9px;

    opacity: .7;

    margin-top: 3px;
}


/* =====================================================
   GENERAL SECTION
===================================================== */

.section {
    max-width: var(--container);

    margin: auto;

    padding: 130px 35px;
}

.section-header {
    max-width: 700px;

    margin-bottom: 60px;
}

.section-number {
    font-family: var(--tech);

    color: var(--red);

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 20px;
}

.section-header h2,
.ecu-content h2,
.diagnostic-content h2,
.cta-content h2 {
    font-family: var(--tech);

    font-size: clamp(44px, 5vw, 68px);

    line-height: 1.05;

    letter-spacing: -2px;
}

.section-header h2 span,
.ecu-content h2 span,
.diagnostic-content h2 span,
.cta-content h2 span {
    color: var(--red);
}

.section-header p {
    color: var(--gray);

    line-height: 1.7;

    margin-top: 20px;
}


/* =====================================================
   SERVICES
===================================================== */

.services-section {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(255, 20, 36, .06),
            transparent 30%
        );
}

.services-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 1px;

    background: rgba(255, 20, 36, .18);

    border: 1px solid var(--border);
}

.service-card {
    position: relative;

    min-height: 330px;

    background: var(--black);

    padding: 40px;

    overflow: hidden;

    cursor: pointer;

    transition: var(--transition);
}

.service-card:hover {
    background: #202329;

    transform: translateY(-7px);

    z-index: 2;
}

.service-card::after {
    content: "";

    position: absolute;

    bottom: 0;
    left: 0;

    width: 0;
    height: 3px;

    background: var(--red);

    transition: var(--transition);
}

.service-card:hover::after {
    width: 100%;
}

.service-number {
    position: absolute;

    top: 25px;
    right: 30px;

    font-family: var(--tech);

    font-size: 10px;

    color: #656b74;
}

.service-icon {
    font-size: 38px;

    color: var(--red);

    margin-bottom: 55px;

    text-shadow:
        0 0 20px rgba(255, 20, 36, .35);
}

.service-card h3 {
    font-family: var(--tech);

    font-size: 16px;

    letter-spacing: 1px;

    margin-bottom: 15px;
}

.service-card p {
    color: var(--gray);

    font-size: 13px;

    line-height: 1.7;

    max-width: 330px;
}

.service-link {
    position: absolute;

    bottom: 30px;
    left: 40px;

    color: var(--white);

    font-size: 11px;

    font-weight: 800;

    text-transform: uppercase;
}

.service-link span {
    color: var(--red);

    margin-left: 8px;
}

.featured {
    background:
        linear-gradient(
            135deg,
            rgba(255, 20, 36, .16),
            var(--black) 60%
        );
}

.featured-label {
    position: absolute;

    top: 0;
    left: 0;

    background: var(--red);

    padding: 7px 12px;

    font-size: 8px;

    font-weight: 900;

    letter-spacing: 1px;
}


/* =====================================================
   ECU
===================================================== */

.ecu-section {
    position: relative;

    background: #202329;

    overflow: hidden;
}

.ecu-background {
    position: absolute;

    inset: 0;

    opacity: .08;

    background-image:
        linear-gradient(
            90deg,
            var(--red) 1px,
            transparent 1px
        ),
        linear-gradient(
            var(--red) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    mask-image:
        linear-gradient(
            90deg,
            black,
            transparent
        );

    -webkit-mask-image:
        linear-gradient(
            90deg,
            black,
            transparent
        );
}

.ecu-grid {
    position: relative;

    max-width: var(--container);

    margin: auto;

    padding: 130px 35px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 90px;

    align-items: center;
}

.ecu-image {
    position: relative;

    height: 580px;

    overflow: hidden;

    border: 1px solid var(--border);
}

.ecu-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.ecu-tag {
    position: absolute;

    top: 20px;
    left: 20px;

    background: var(--red);

    padding: 9px 14px;

    font-family: var(--tech);

    font-size: 9px;
}

.scan-line {
    position: absolute;

    z-index: 2;

    width: 100%;
    height: 2px;

    background: var(--red);

    box-shadow:
        0 0 20px var(--red);

    animation:
        scan 4s linear infinite;
}

@keyframes scan {

    0% {
        top: 0;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 0;
    }
}

.ecu-content p {
    color: var(--gray);

    line-height: 1.8;

    margin: 25px 0 40px;

    max-width: 600px;
}

.ecu-features {
    margin-bottom: 40px;
}

.ecu-features > div {
    display: grid;

    grid-template-columns: 50px 1fr;

    column-gap: 10px;

    padding: 18px 0;

    border-bottom: 1px solid var(--border);
}

.ecu-features span {
    grid-row: span 2;

    color: var(--red);

    font-family: var(--tech);

    font-size: 11px;
}

.ecu-features strong {
    font-size: 14px;
}

.ecu-features small {
    color: var(--gray);

    font-size: 11px;

    margin-top: 5px;
}


/* =====================================================
   DIAGNOSTICS
===================================================== */

.diagnostics {
    display: grid;

    grid-template-columns: .9fr 1.1fr;

    gap: 80px;

    align-items: center;
}

.diagnostic-content p {
    color: var(--gray);

    line-height: 1.8;

    max-width: 600px;

    margin: 25px 0 35px;
}

.diagnostic-list {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 1px;

    background: var(--border);

    border: 1px solid var(--border);
}

.diagnostic-list div {
    background: var(--black-2);

    padding: 17px;

    font-size: 12px;

    font-weight: 600;
}

.diagnostic-list span {
    color: var(--red);

    font-family: var(--tech);

    font-size: 9px;

    margin-right: 12px;
}

.diagnostic-image {
    position: relative;

    height: 560px;

    overflow: hidden;

    border: 1px solid var(--border);
}

.diagnostic-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter: brightness(.65);
}

.diagnostic-screen {
    position: absolute;

    right: 25px;
    bottom: 25px;

    width: 270px;

    background: rgba(23, 25, 29, .92);

    border: 1px solid rgba(255, 255, 255, .15);

    padding: 18px;

    backdrop-filter: blur(15px);
}

.screen-top {
    font-family: var(--tech);

    font-size: 8px;

    padding-bottom: 12px;

    border-bottom: 1px solid var(--border);
}

.screen-top span {
    float: right;

    color: #35e978;
}

.screen-car {
    font-size: 65px;

    text-align: center;

    padding: 30px;
}

.diagnostic-bars {
    display: flex;

    flex-direction: column;

    gap: 8px;
}

.diagnostic-bars span {
    display: block;

    height: 3px;

    background: var(--red);
}


/* =====================================================
   GALLERY
===================================================== */

.gallery-section {
    max-width: 1600px;
}

.gallery-grid {
    display: grid;

    grid-template-columns: 1.4fr .8fr .8fr;

    grid-template-rows: 300px 300px;

    gap: 12px;
}

.gallery-item {
    position: relative;

    overflow: hidden;

    cursor: pointer;

    background: #25282d;
}

.gallery-item.large {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: .7s;
}

.gallery-item:hover img {
    transform: scale(1.08);

    filter: brightness(.55);
}

.gallery-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding: 25px;

    background:
        linear-gradient(
            transparent 45%,
            rgba(0, 0, 0, .85)
        );

    opacity: .8;
}

.gallery-overlay span {
    font-family: var(--tech);

    color: var(--red);

    font-size: 9px;

    letter-spacing: 2px;
}

.gallery-overlay strong {
    font-family: var(--tech);

    font-size: 17px;

    margin-top: 5px;
}


/* =====================================================
   CTA
===================================================== */

.cta-section {
    position: relative;

    padding: 150px 35px;

    overflow: hidden;

    text-align: center;

    background:
        radial-gradient(
            circle,
            rgba(255, 20, 36, .16),
            transparent 50%
        );
}

.cta-lines {
    position: absolute;

    inset: 0;

    opacity: .08;

    background-image:
        linear-gradient(
            45deg,
            transparent 48%,
            var(--red) 49%,
            transparent 51%
        );

    background-size: 35px 35px;
}

.cta-content {
    position: relative;

    max-width: 900px;

    margin: auto;
}

.cta-content p {
    color: var(--gray);

    margin: 20px 0 30px;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
    background: #17191d;

    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: var(--container);

    margin: auto;

    padding: 70px 35px;

    display: grid;

    grid-template-columns: 2fr 1fr 1fr 1fr;

    gap: 60px;
}

.footer-brand p {
    color: var(--gray);

    font-size: 12px;

    line-height: 1.7;

    max-width: 300px;

    margin-top: 20px;
}

.footer-column {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.footer-column h4 {
    font-family: var(--tech);

    color: var(--red);

    font-size: 10px;

    letter-spacing: 2px;

    margin-bottom: 10px;
}

.footer-column a,
.footer-column span {
    color: var(--gray);

    font-size: 12px;

    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--white);

    padding-left: 5px;
}

.footer-bottom {
    max-width: var(--container);

    margin: auto;

    padding: 20px 35px;

    border-top: 1px solid var(--border);

    display: flex;

    justify-content: space-between;

    color: #8a8f97;

    font-family: var(--tech);

    font-size: 8px;

    letter-spacing: 1px;
}


/* =====================================================
   MODALS
===================================================== */

.modal {
    position: fixed;

    inset: 0;

    z-index: 5000;

    background: rgba(0, 0, 0, .82);

    backdrop-filter: blur(15px);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    opacity: 0;

    visibility: hidden;

    transition: .35s;
}

.modal.active {
    opacity: 1;

    visibility: visible;
}

.modal-box {
    position: relative;

    width: min(650px, 100%);

    max-height: 90vh;

    overflow-y: auto;

    background:
        linear-gradient(
            135deg,
            #30343a,
            #17191d
        );

    border: 1px solid rgba(255, 255, 255, .13);

    padding: 50px;

    transform: translateY(30px);

    transition: .35s;

    box-shadow:
        0 30px 100px rgba(0, 0, 0, .45);
}

.modal.active .modal-box {
    transform: translateY(0);
}

.modal-close {
    position: absolute;

    right: 20px;
    top: 20px;

    width: 38px;
    height: 38px;

    border: 1px solid var(--border);

    background: transparent;

    color: var(--white);

    font-size: 24px;

    transition: var(--transition);
}

.modal-close:hover {
    background: var(--red);

    border-color: var(--red);
}

.modal-tag {
    color: var(--red);

    font-family: var(--tech);

    font-size: 9px;

    letter-spacing: 2px;

    margin-bottom: 15px;
}

.modal-box h2 {
    font-family: var(--tech);

    font-size: 32px;

    margin-bottom: 20px;
}

.modal-box > p {
    color: var(--gray);

    line-height: 1.7;

    margin-bottom: 25px;
}

.modal-services {
    margin-bottom: 30px;
}

.modal-services div {
    padding: 13px 0;

    border-bottom: 1px solid var(--border);

    color: #d7d9dd;

    font-size: 13px;
}

.modal-services div::before {
    content: "✓";

    color: var(--red);

    margin-right: 10px;
}


/* =====================================================
   FORM
===================================================== */

.form-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}

.form-group {
    margin-bottom: 17px;
}

.form-group label {
    display: block;

    font-size: 10px;

    color: #b0b5bd;

    text-transform: uppercase;

    letter-spacing: 1px;

    margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;

    background: #1b1e23;

    border: 1px solid var(--border);

    color: var(--white);

    padding: 13px;

    outline: none;

    resize: vertical;

    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #737982;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--red);

    box-shadow:
        0 0 0 2px rgba(255, 20, 36, .08);
}

.form-group select option {
    background: #1b1e23;

    color: var(--white);
}


/* =====================================================
   LIGHTBOX
===================================================== */

.lightbox {
    position: fixed;

    inset: 0;

    z-index: 6000;

    background: rgba(0, 0, 0, .95);

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 30px;

    opacity: 0;

    visibility: hidden;

    transition: .3s;
}

.lightbox.active {
    opacity: 1;

    visibility: visible;
}

.lightbox img {
    max-width: 1100px;

    max-height: 85vh;

    width: auto;

    object-fit: contain;
}

.lightbox-close {
    position: absolute;

    right: 30px;
    top: 25px;

    color: var(--white);

    background: transparent;

    border: none;

    font-size: 40px;

    line-height: 1;
}


/* =====================================================
   CIRCUIT DECORATIONS
===================================================== */

.circuit {
    position: absolute;

    width: 180px;
    height: 180px;

    opacity: .15;

    background-image:
        linear-gradient(
            90deg,
            var(--red) 1px,
            transparent 1px
        ),
        linear-gradient(
            var(--red) 1px,
            transparent 1px
        );

    background-size: 30px 30px;

    pointer-events: none;
}

.circuit-one {
    right: -60px;
    top: 180px;

    transform: rotate(45deg);
}

.circuit-two {
    left: -100px;
    bottom: 120px;

    transform: rotate(-20deg);
}

.circuit-three {
    right: 20%;
    bottom: -100px;

    transform: rotate(15deg);
}


/* =====================================================
   SCROLL REVEAL
===================================================== */

.reveal {
    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity .8s ease,
        transform .8s ease;
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* =====================================================
   GO TO TOP BUTTON
===================================================== */

.go-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 52px;
    height: 52px;

    border: 1px solid rgba(255, 255, 255, .18);

    background: rgba(23, 25, 29, .92);

    color: var(--white);

    display: flex;

    align-items: center;
    justify-content: center;

    font-size: 22px;

    cursor: pointer;

    z-index: 3000;

    opacity: 0;
    visibility: hidden;

    transform: translateY(20px);

    transition:
        opacity .3s ease,
        visibility .3s ease,
        transform .3s ease,
        background .3s ease,
        border-color .3s ease;

    backdrop-filter: blur(10px);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, .35);
}

.go-top.active {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}

.go-top span {
    color: var(--white);

    font-family: Arial, sans-serif;

    line-height: 1;

    transition: transform .3s ease;
}

.go-top:hover {
    background: var(--red);

    border-color: var(--red);

    transform: translateY(-5px);

    box-shadow:
        0 10px 35px rgba(255, 20, 36, .35);
}

.go-top:hover span {
    transform: translateY(-3px);
}


/* =====================================================
   LARGE TABLET
===================================================== */

@media (max-width: 1100px) {

    .nav-menu {
        gap: 18px;
    }

    .hero-container,
    .ecu-grid,
    .diagnostics {
        gap: 45px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: clamp(42px, 6vw, 68px);
    }
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .hero-bottom {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-bottom > div {
        width: 100%;

        white-space: normal;
    }

    .hero-bottom > div:nth-child(2) {
        border-right: none;
    }

    .hero-bottom > div:nth-child(3),
    .hero-bottom > div:nth-child(4) {
        border-top: 1px solid var(--border);
    }

    .hero-bottom > div:nth-child(odd) {
        border-right: 1px solid var(--border);
    }

    .hero-bottom > div:nth-child(4) {
        border-right: none;
    }
}


/* =====================================================
   MOBILE NAVIGATION / TABLET
===================================================== */

@media (max-width: 800px) {

    .nav-button {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .nav-menu.active {
        position: absolute;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        left: 0;
        right: 0;

        top: 82px;

        padding: 25px;

        gap: 22px;

        background:
            rgba(23, 25, 29, .98);

        border-bottom: 1px solid var(--border);

        backdrop-filter: blur(18px);
    }

    .nav-menu.active a {
        width: 100%;

        font-size: 14px;
    }

    .nav-menu.active a::after {
        bottom: -7px;
    }


    /* Hero */

    .hero {
        min-height: auto;

        background:
            linear-gradient(
                rgba(23, 25, 29, .88),
                rgba(23, 25, 29, .96)
            ),
            url("../images/hero.jpg")
            center /
            cover
            no-repeat;
    }

    .hero-background {
        opacity: .25;
    }

    .hero-container,
    .ecu-grid,
    .diagnostics {
        grid-template-columns: 1fr;
    }

    .hero-container {
        padding-top: 65px;
        padding-bottom: 145px;
    }

    .hero-image {
        order: -1;
    }

    .image-frame {
        height: 400px;

        transform:
            perspective(1000px)
            rotateY(0);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-stats {
        gap: 25px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .ecu-image,
    .diagnostic-image {
        height: 400px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;

        grid-template-rows:
            250px
            250px
            250px;
    }

    .gallery-item.large {
        grid-row: span 1;

        grid-column: span 2;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 550px) {

    /* Navigation */

    .nav-container {
        min-height: 72px;

        padding-left: 20px;
        padding-right: 20px;
    }

    .navbar {
        background: rgba(23, 25, 29, .94);
    }

    .logo-image {
        width: 145px;
    }

    .mobile-menu {
        width: 42px;
        height: 42px;
    }

    .nav-menu.active {
        top: 72px;
    }


    /* Loader */

    .loader-logo-wrap {
        width: 230px;
        height: 150px;
    }

    .loader-logo img {
        width: 180px;
    }

    .ring-1 {
        width: 135px;
        height: 135px;
    }

    .ring-2 {
        width: 175px;
        height: 175px;
    }

    .ring-3 {
        width: 215px;
        height: 215px;
    }

    .loader-status {
        font-size: 8px;

        letter-spacing: 1.2px;
    }

    .top-tech {
        top: 20px;
        left: 15px;

        font-size: 6px;
    }

    .bottom-tech {
        right: 15px;
        bottom: 20px;

        font-size: 6px;

        gap: 8px;
    }

    .loader-data {
        gap: 4px;
    }

    .loader-data span {
        padding: 5px 6px;

        font-size: 6px;
    }


    /* Hero */

    .hero {
        padding-top: 72px;

        min-height: 0;
    }

    .hero-container {
        padding:
            55px
            20px
            145px;
    }

    .hero h1 {
        font-size: 42px;

        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 14px;

        line-height: 1.65;
    }

    .hero-buttons {
        flex-direction: column;

        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-stats {
        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 20px;

        margin-top: 40px;
    }

    .hero-stats strong {
        font-size: 14px;
    }

    .hero-stats span {
        font-size: 8px;
    }

    .image-frame {
        height: 320px;
    }

    .floating-box {
        padding: 10px 12px;
    }

    .box-one {
        bottom: 20px;
        left: 20px;
    }

    .box-two {
        top: 20px;
        right: 20px;
    }

    .floating-box strong {
        font-size: 8px;
    }

    .floating-box small {
        font-size: 8px;
    }


    /* Hero bottom */

    .hero-bottom {
        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 0;

        width: 100%;

        background: rgba(10, 11, 14, .72);

        border-top: 1px solid var(--border);
    }

    .hero-bottom > div {
        padding: 14px 8px;

        min-width: 0;

        font-size: 9px;

        letter-spacing: .5px;

        text-align: center;

        white-space: normal;

        border-bottom: 1px solid var(--border);
    }

    .hero-bottom > div:nth-child(odd) {
        border-right: 1px solid var(--border);
    }

    .hero-bottom > div:nth-child(even) {
        border-right: none;
    }


    /* Trust */

    .trust-bar {
        grid-template-columns: 1fr;
    }

    .trust-item {
        padding: 18px 20px;

        border-right: none;

        border-bottom:
            1px solid rgba(0, 0, 0, .15);
    }

    .trust-item:last-child {
        border-bottom: none;
    }


    /* General sections */

    .section {
        padding: 90px 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-number {
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 2.5px;
        margin-bottom: 16px;
    }

    .section-header h2,
    .ecu-content h2,
    .diagnostic-content h2,
    .cta-content h2 {
        font-size: 40px;

        line-height: 1.05;

        letter-spacing: -1.5px;
    }


    .services-section .section-number {
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 2.5px;
    }

    .services-section .section-header h2,
    .diagnostic-content h2 {
        font-size: 40px;
        line-height: 1.05;
    }


    /* Services */

    .service-card {
        min-height: 310px;

        padding: 30px;
    }

    .service-icon {
        margin-bottom: 45px;
    }

    .service-link {
        left: 30px;
        bottom: 25px;
    }


    /* ECU */

    .ecu-grid {
        padding:
            90px
            20px;
    }

    .ecu-image {
        height: 340px;
    }


    /* Diagnostics */

    .diagnostics {
        gap: 40px;
    }

    .diagnostic-image {
        height: 340px;
    }

    .diagnostic-screen {
        right: 15px;
        bottom: 15px;

        width: 230px;
    }

    .screen-car {
        font-size: 50px;

        padding: 20px;
    }

    .diagnostic-list {
        grid-template-columns: 1fr;
    }


    /* Gallery */

    .gallery-grid {
        grid-template-columns: 1fr;

        grid-template-rows:
            repeat(4, 250px);
    }

    .gallery-item.large {
        grid-column: span 1;
    }


    /* CTA */

    .cta-section {
        padding:
            100px
            20px;
    }


    /* Forms */

    .form-grid {
        grid-template-columns: 1fr;
    }


    /* Modal */

    .modal {
        padding: 15px;
    }

    .modal-box {
        padding: 30px 22px;

        max-height: 92vh;
    }


    /* Footer */

    .footer-container {
        padding:
            60px
            20px;

        gap: 40px;
    }

    .footer-bottom {
        padding:
            20px;

        flex-direction: column;

        gap: 10px;

        text-align: center;
    }


    /* Go top */

    .go-top {
        width: 46px;
        height: 46px;

        right: 15px;
        bottom: 15px;

        font-size: 19px;
    }
}


/* =====================================================
   VERY SMALL PHONES
===================================================== */

@media (max-width: 380px) {

    .section-number {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .section-header h2,
    .ecu-content h2,
    .diagnostic-content h2,
    .cta-content h2 {
        font-size: 36px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-bottom > div {
        font-size: 8px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .image-frame {
        height: 280px;
    }

    .floating-box {
        transform: scale(.9);
        transform-origin: bottom left;
    }

    .box-two {
        transform-origin: top right;
    }
}


/* =====================================================
   LOGO ENTRANCE
===================================================== */

@keyframes logoEntrance {

    0% {
        opacity: 0;

        transform: scale(.75);

        filter: blur(8px);
    }

    60% {
        opacity: 1;

        transform: scale(1.05);

        filter: blur(0);
    }

    100% {
        opacity: 1;

        transform: scale(1);
    }
}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
/* =========================================================
   COOKIE CONSENT
========================================================= */

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;

    z-index: 9998;

    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);

    transition:
        opacity .35s ease,
        visibility .35s ease,
        transform .35s ease;
}

.cookie-banner.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    gap: 25px;

    padding: 22px 25px;

    background:
        linear-gradient(
            135deg,
            rgba(37, 41, 47, .98),
            rgba(23, 25, 29, .98)
        );

    border: 1px solid rgba(255, 255, 255, .14);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .45),
        0 0 0 1px rgba(255, 20, 36, .04);

    backdrop-filter: blur(18px);
}

.cookie-icon {
    flex: 0 0 auto;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 20, 36, .1);

    border: 1px solid rgba(255, 20, 36, .25);

    font-size: 22px;
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    margin: 0 0 7px;

    color: var(--white);

    font-family: var(--tech);
    font-size: 16px;
    letter-spacing: 1px;
}

.cookie-text p {
    margin: 0 0 7px;

    color: var(--gray);

    font-size: 13px;
    line-height: 1.6;
}

.cookie-policy-link {
    color: var(--red);

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

.cookie-policy-link:hover {
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    min-height: 44px;

    padding: 0 18px;

    border: 1px solid var(--border);

    background: transparent;

    color: var(--white);

    font-family: var(--font);
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .25s ease,
        border-color .25s ease,
        color .25s ease,
        transform .25s ease;
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

.cookie-reject:hover {
    border-color: rgba(255, 255, 255, .35);
}

.cookie-settings:hover {
    border-color: var(--red);
    color: var(--red);
}

.cookie-accept {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.cookie-accept:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
}


/* =========================================================
   COOKIE SETTINGS MODAL
========================================================= */

.cookie-modal {
    position: fixed;
    inset: 0;

    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, .72);

    backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.cookie-modal.active {
    opacity: 1;
    visibility: visible;
}

.cookie-modal-box {
    position: relative;

    width: min(620px, 100%);

    max-height: 90vh;
    overflow-y: auto;

    padding: 35px;

    background:
        linear-gradient(
            145deg,
            #2d3238,
            #17191d
        );

    border: 1px solid rgba(255, 255, 255, .14);

    box-shadow:
        0 30px 100px rgba(0, 0, 0, .6);
}

.cookie-close {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 38px;
    height: 38px;

    border: 1px solid var(--border);

    background: transparent;

    color: var(--white);

    font-size: 24px;

    cursor: pointer;
}

.cookie-close:hover {
    background: var(--red);
    border-color: var(--red);
}

.cookie-modal-header {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 20px;
}

.cookie-small-title {
    margin-bottom: 5px;

    color: var(--red);

    font-family: var(--tech);
    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;
}

.cookie-modal-header h2 {
    margin: 0;

    color: var(--white);

    font-family: var(--tech);
    font-size: 28px;
}

.cookie-modal-intro {
    color: var(--gray);

    font-size: 14px;
    line-height: 1.7;

    margin-bottom: 25px;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 0;

    border-top: 1px solid var(--border);
}

.cookie-option-info {
    flex: 1;
}

.cookie-option-info h3 {
    margin: 0 0 6px;

    color: var(--white);

    font-size: 15px;
}

.cookie-option-info p {
    margin: 0;

    color: var(--gray-dark);

    font-size: 12px;
    line-height: 1.6;
}


/* SWITCH */

.cookie-switch {
    position: relative;

    width: 48px;
    height: 26px;

    flex: 0 0 auto;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    inset: 0;

    background: #555b63;

    border-radius: 50px;

    cursor: pointer;

    transition: .25s ease;
}

.cookie-slider::before {
    content: "";

    position: absolute;

    width: 20px;
    height: 20px;

    left: 3px;
    top: 3px;

    background: white;

    border-radius: 50%;

    transition: .25s ease;
}

.cookie-switch input:checked + .cookie-slider {
    background: var(--red);
}

.cookie-switch input:checked + .cookie-slider::before {
    transform: translateX(22px);
}

.cookie-switch input:disabled + .cookie-slider {
    opacity: .7;
    cursor: not-allowed;
}


/* SAVE */

.cookie-save {
    width: 100%;

    margin-top: 25px;

    min-height: 50px;

    border: 0;

    background: var(--red);

    color: white;

    font-family: var(--font);
    font-size: 13px;
    font-weight: 800;

    cursor: pointer;

    transition: background .25s ease;
}

.cookie-save:hover {
    background: var(--red-dark);
}


/* =========================================================
   COOKIE MANAGEMENT BUTTON
========================================================= */

.cookie-manage {
    position: fixed;

    left: 18px;
    bottom: 18px;

    z-index: 9990;

    display: none;

    min-height: 38px;

    padding: 0 14px;

    border: 1px solid rgba(255, 255, 255, .15);

    background: rgba(23, 25, 29, .94);

    color: var(--gray);

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    backdrop-filter: blur(10px);

    transition: .25s ease;
}

.cookie-manage.active {
    display: block;
}

.cookie-manage:hover {
    color: white;
    border-color: var(--red);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookie-content {
        display: block;

        padding: 20px;
    }

    .cookie-icon {
        margin-bottom: 15px;
    }

    .cookie-text p {
        font-size: 12px;
    }

    .cookie-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;

        margin-top: 18px;
    }

    .cookie-accept {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .cookie-reject {
        grid-column: 1;
        grid-row: 2;
    }

    .cookie-settings {
        grid-column: 2;
        grid-row: 2;
    }

    .cookie-modal-box {
        padding: 25px 20px;
    }

    .cookie-modal-header h2 {
        font-size: 22px;
    }

    .cookie-option {
        align-items: flex-start;
    }

}
/* =====================================================
   CONTACT SUCCESS MODAL
===================================================== */

.contact-success-modal {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.82);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;

    z-index: 99999;
}


.contact-success-modal.active {
    opacity: 1;
    visibility: visible;
}


/* BOX */

.contact-success-box {
    position: relative;

    width: min(500px, 100%);

    padding: 50px 40px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            #151515,
            #080808
        );

    border: 1px solid rgba(255, 255, 255, 0.12);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.7);

    transform:
        translateY(25px)
        scale(0.96);

    transition:
        transform 0.35s ease;
}


.contact-success-modal.active
.contact-success-box {

    transform:
        translateY(0)
        scale(1);

}


/* CLOSE */

.contact-success-close {
    position: absolute;

    top: 15px;
    right: 18px;

    width: 38px;
    height: 38px;

    border: none;

    background: transparent;

    color: #ffffff;

    font-size: 28px;

    cursor: pointer;

    opacity: 0.7;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.contact-success-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}


/* SUCCESS ICON */

.contact-success-icon {

    width: 76px;
    height: 76px;

    margin: 0 auto 25px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 2px solid #ffffff;

    border-radius: 50%;

    color: #ffffff;

    font-size: 38px;
    font-weight: 700;

    animation:
        successPop 0.5s ease forwards;

}


@keyframes successPop {

    0% {
        transform: scale(0);
        opacity: 0;
    }

    70% {
        transform: scale(1.12);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }

}


/* LABEL */

.contact-success-label {

    margin-bottom: 10px;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

    opacity: 0.55;
}


/* TITLE */

.contact-success-box h2 {

    margin: 0 0 20px;

    font-size: clamp(25px, 5vw, 36px);

    letter-spacing: 1px;

}


/* TEXT */

.contact-success-box p {

    margin: 0 auto 30px;

    max-width: 390px;

    line-height: 1.7;

    font-size: 15px;

    opacity: 0.72;

}


/* BUTTON */

.contact-success-box .btn {

    min-width: 160px;

}


/* MOBILE */

@media (max-width: 600px) {

    .contact-success-box {

        padding: 45px 25px;

    }

    .contact-success-icon {

        width: 65px;
        height: 65px;

        font-size: 32px;

    }

}
/* =========================================
   USED DATABOXES SECTION
========================================= */

.used-databoxes-section {
    background: var(--black-2);
    position: relative;
    overflow: hidden;
}

.used-databoxes-grid {
    width: min(100% - 40px, var(--container));
    margin: 45px auto 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.used-databox-card {
    background: var(--dark);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.used-databox-card:hover {
    transform: translateY(-6px);
    border-color: var(--red);
}

.used-databox-image {
    height: 300px;
    position: relative;
    overflow: hidden;
    background: #111317;
    cursor: pointer;
}

.used-databox-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform 0.4s ease;
}

.used-databox-card:hover .used-databox-image img {
    transform: scale(1.04);
}

.databox-image-count,
.databox-view {
    position: absolute;
    bottom: 14px;
    padding: 9px 12px;
    background: rgba(10, 11, 13, 0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 5px;
}

.databox-image-count {
    left: 14px;
}

.databox-view {
    right: 14px;
    color: var(--red);
}

.used-databox-info {
    padding: 25px;
}

.databox-condition {
    display: inline-block;
    color: #ff606a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.used-databox-info h3 {
    color: var(--white);
    font-size: 22px;
    margin: 0 0 12px;
}

.databox-description {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 22px;
}

.databox-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.databox-details > div {
    padding: 13px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: 6px;
    min-width: 0;
}

.databox-details span,
.databox-price > span {
    display: block;
    color: var(--gray-dark);
    font-size: 11px;
    margin-bottom: 7px;
}

.databox-details strong {
    display: block;
    color: var(--white);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.databox-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.databox-price strong {
    color: var(--white);
    font-size: 25px;
    white-space: nowrap;
}

.databox-price small {
    color: var(--red);
    font-size: 13px;
}

.databox-contact-btn {
    cursor: pointer;
}



/* =========================================
   DATABOXES - COMPACT & RESPONSIVE LAYOUT
========================================= */

.used-databoxes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: min(100% - 32px, 1200px);
    margin: 0 auto;
    align-items: start;
}

/* Compact card image */
.used-databox-image {
    height: 165px;
    overflow: hidden;
}

.used-databox-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.used-databox-image img:hover {
    transform: scale(1.04);
}

/* Reduce card information spacing */
.used-databox-info {
    padding: 12px 14px;
}

.used-databox-info h3 {
    font-size: 17px;
    line-height: 1.3;
    margin: 0 0 8px;
}

.databox-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    font-size: 13px;
}

.databox-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.databox-contact-btn {
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
}

/* =========================================
   IMAGE GALLERY POPUP
   Keep large images, compact thumbnails
========================================= */

.databox-gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 55px 60px 20px;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(8px);
}

.databox-gallery-modal.active {
    display: flex;
}

.databox-gallery-content {
    width: min(100%, 900px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.databox-gallery-main {
    width: 100%;
    height: min(65vh, 580px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.databox-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.databox-gallery-close {
    position: absolute;
    top: 10px;
    right: 18px;
    color: white;
    background: transparent;
    border: none;
    font-size: 36px;
    cursor: pointer;
    z-index: 2;
}

.databox-gallery-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(30, 32, 36, 0.9);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s ease;
}

.databox-gallery-arrow:hover {
    background: var(--red);
}

.databox-gallery-prev {
    left: 12px;
}

.databox-gallery-next {
    right: 12px;
}

.databox-gallery-thumbnails {
    display: flex;
    justify-content: center;
    gap: 7px;
    max-width: 100%;
    overflow-x: auto;
    padding: 4px;
}

.databox-gallery-thumb {
    width: 62px;
    height: 50px;
    flex: 0 0 auto;
    padding: 2px;
    background: #202329;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
}

.databox-gallery-thumb.active {
    border-color: var(--red);
}

.databox-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.databox-gallery-counter {
    color: #ccc;
    font-size: 12px;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {
    .used-databoxes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .used-databox-image {
        height: 155px;
    }

    .used-databox-info {
        padding: 11px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {
    .used-databoxes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        width: calc(100% - 20px);
    }

    .used-databox-image {
        height: 115px;
    }

    .used-databox-info {
        padding: 9px;
    }

    .used-databox-info h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .databox-details {
        grid-template-columns: 1fr;
        gap: 4px;
        font-size: 11px;
    }

    .databox-bottom {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        margin-top: 8px;
    }

    .databox-contact-btn {
        width: 100%;
        padding: 8px 6px;
        font-size: 12px;
    }

    .databox-gallery-modal {
        padding: 55px 10px 15px;
    }

    .databox-gallery-main {
        height: 55vh;
    }

    .databox-gallery-arrow {
        width: 34px;
        height: 34px;
    }

    .databox-gallery-prev {
        left: 5px;
    }

    .databox-gallery-next {
        right: 5px;
    }

    .databox-gallery-thumb {
        width: 52px;
        height: 44px;
    }
}

/* Very narrow phones */
@media (max-width: 360px) {
    .used-databoxes-grid {
        grid-template-columns: 1fr;
    }

    .used-databox-image {
        height: 170px;
    }
}

/* =========================================
   FIX: CONTACT FORM SHOWING AT PAGE BOTTOM
========================================= */

/* Hide the form when it is outside the popup */
#contactForm {
    display: none;
}

/* Show the form only inside the contact popup */
#contactModal #contactForm {
    display: block;
    width: 100%;
    margin: 0;
}

/* Keep the contact popup above the page */
#contactModal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    overflow-y: auto;
}

/* Keep the form inside the popup on small screens */
#contactModal .modal-box {
    width: min(100% - 30px, 650px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    margin: 20px auto;
}

/* =========================================
   MOBILE FIX — BEGAGNADE DATABOXAR
========================================= */

@media (max-width: 600px) {

    /* Give the section more balanced spacing */
    .used-databoxes-section {
        padding: 65px 0;
        overflow: hidden;
    }

    .used-databoxes-section .section-header {
        padding: 0 18px;
        margin-bottom: 30px;
    }

    .used-databoxes-section .section-header h2 {
        font-size: clamp(27px, 7vw, 38px);
        line-height: 1.2;
        letter-spacing: -1px;
        overflow-wrap: anywhere;
    }

    .used-databoxes-section .section-header p {
        font-size: 14px;
        line-height: 1.7;
    }

    /* Show one product per row */
    .used-databoxes-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        width: calc(100% - 30px);
        max-width: 420px;
        margin: 25px auto 0;
        gap: 20px;
    }

    /* Product card */
    .used-databox-card {
        width: 100%;
        min-width: 0;
        border-radius: 12px;
    }

    /* Display the entire product image */
    .used-databox-image {
        width: 100%;
        height: 220px;
        background: #111317;
    }

    .used-databox-image img {
        width: 100%;
        height: 100%;
        padding: 14px;
        object-fit: contain;
    }

    /* Product information */
    .used-databox-info {
        padding: 18px;
        min-width: 0;
    }

    .used-databox-info h3 {
        font-size: 18px;
        line-height: 1.4;
        overflow-wrap: anywhere;
        margin-bottom: 12px;
    }

    .databox-description {
        font-size: 13px;
        line-height: 1.7;
        overflow-wrap: anywhere;
    }

    /* Article and serial numbers */
    .databox-details {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin-bottom: 18px;
    }

    .databox-details > div {
        padding: 12px;
        min-width: 0;
    }

    .databox-details strong {
        font-size: 13px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* Price and contact button */
    .databox-bottom {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-top: 12px;
        padding-top: 16px;
    }

    .databox-price strong {
        font-size: 24px;
        white-space: normal;
    }

    .databox-contact-btn {
        display: block;
        width: 100%;
        max-width: 100%;
        padding: 13px 10px;
        font-size: 12px;
        line-height: 1.5;
        white-space: normal;
        text-align: center;
        overflow-wrap: anywhere;
    }

    /* Image gallery popup */
    .databox-gallery-modal {
        padding: 60px 12px 18px;
    }

    .databox-gallery-content {
        width: 100%;
        min-width: 0;
    }

    .databox-gallery-main {
        width: 100%;
        height: 52vh;
        max-height: 450px;
    }

    .databox-gallery-main img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .databox-gallery-thumbnails {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .databox-gallery-counter {
        margin-top: 4px;
    }
}

/* Extra-small phones */
@media (max-width: 360px) {
    .used-databoxes-grid {
        width: calc(100% - 24px);
    }

    .used-databox-image {
        height: 190px;
    }

    .used-databox-info {
        padding: 14px;
    }

    .databox-gallery-arrow {
        width: 32px;
        height: 32px;
    }
}


