/* ===================================================
   RUSH AUTO — Premium Landing Page Styles
   Inspired by: globalchangan.com, nio.com, zeexauto.com
   =================================================== */

/* ─── CSS Custom Properties ─── */
:root {
    --black: #000000;
    --white: #FFFFFF;
    --accent: #0A2540;
    --accent-light: #1a3a5c;
    --accent-glow: rgba(10, 37, 64, 0.25);
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --gray-950: #0a0a0a;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);

    --header-h: 72px;
    --container: 1280px;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
}

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: var(--header-h);
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
}

::selection {
    background: var(--accent);
    color: var(--white);
}

/* ─── Utility ─── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.text-accent {
    color: var(--accent);
}

.section {
    padding: 100px 0;
    position: relative;
}

.section--dark {
    background: var(--gray-950);
    color: var(--white);
}

.section--dark .section__tag {
    color: var(--gray-400);
    border-color: var(--gray-700);
}

.section--dark .section__desc {
    color: var(--gray-400);
}

.section__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section__tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-500);
    border: 1px solid var(--gray-200);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.section__title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section__desc {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius-sm);
    transition: all 0.35s var(--ease-out-expo);
    white-space: nowrap;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 24px var(--accent-glow);
}

.btn--primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.btn--sm {
    padding: 10px 20px;
    font-size: 13px;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius);
}

.btn--full {
    width: 100%;
}

/* ─── Animations ─── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo),
                transform 0.8s var(--ease-out-expo);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.advantages__grid .animate-on-scroll:nth-child(2),
.catalog__grid .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.advantages__grid .animate-on-scroll:nth-child(3),
.catalog__grid .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.advantages__grid .animate-on-scroll:nth-child(4),
.catalog__grid .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.catalog__grid .animate-on-scroll:nth-child(5) { transition-delay: 0.15s; }
.catalog__grid .animate-on-scroll:nth-child(6) { transition-delay: 0.25s; }
.catalog__grid .animate-on-scroll:nth-child(7) { transition-delay: 0.1s; }
.catalog__grid .animate-on-scroll:nth-child(8) { transition-delay: 0.2s; }
.catalog__grid .animate-on-scroll:nth-child(9) { transition-delay: 0.3s; }

/* ===================================================
   HEADER
   =================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-h);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s var(--ease-out-expo);
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.92);
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 32px;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.header__logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.logo-text {
    color: var(--white);
}

.logo-accent {
    color: var(--accent-light);
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0.15em;
}

.header__nav {
    display: flex;
    gap: 32px;
}

.header__link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.01em;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.header__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent-light);
    transition: width 0.35s var(--ease-out-expo);
}

.header__link:hover {
    color: var(--white);
}

.header__link:hover::after {
    width: 100%;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.header__phone:hover {
    color: var(--white);
}

.header__cta {
    border: none;
}

/* Burger */
.burger {
    display: none;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.35s var(--ease-out-expo);
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 0; }

.burger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* ===================================================
   HERO
   =================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-h);
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Hide fallback image when video loads */
.hero__video + .hero__image--fallback {
    display: none;
}

@keyframes heroZoom {
    from { transform: scale(1.0); }
    to { transform: scale(1.03); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 80px 24px 60px;
    max-width: 900px;
}

.hero__badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero__title .text-accent {
    color: #4a9eff;
}

.hero__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero__subtitle strong {
    color: var(--white);
    font-weight: 600;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero__stats {
    display: flex;
    gap: 32px;
    flex-wrap: nowrap;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: space-between;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    flex: 1;
    white-space: nowrap;
}

.hero__stat-row {
    display: flex;
    align-items: baseline;
    white-space: nowrap;
    gap: 6px;
}

.hero__stat-number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--white);
}

.hero__stat-plus,
.hero__stat-unit {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 400;
    color: #4a9eff;
}

.hero__stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
    letter-spacing: 0.01em;
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: rgba(255, 255, 255, 0.6);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { top: -50%; }
    100% { top: 100%; }
}

/* ===================================================
   ADVANTAGES
   =================================================== */
.advantages {
    background: var(--gray-50);
}

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

.advantage-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: all 0.4s var(--ease-out-expo);
}

.advantage-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(10, 37, 64, 0.08);
}

.advantage-card__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--accent);
    transition: all 0.4s var(--ease-out-expo);
}

.advantage-card:hover .advantage-card__icon {
    background: var(--accent);
    color: var(--white);
}

.advantage-card__title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.advantage-card__text {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===================================================
   CATALOG
   =================================================== */
.catalog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.car-card {
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
}

.car-card:hover {
    border-color: var(--gray-600);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.car-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.car-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.car-card:hover .car-card__image img {
    transform: scale(1.08);
}

.car-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(10, 37, 64, 0.85);
    backdrop-filter: blur(8px);
    color: var(--white);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
}

.car-card__body {
    padding: 20px 24px 24px;
}

.car-card__name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
}

.car-card__specs {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 16px;
}

.car-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.car-card__price {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 500;
    color: var(--white);
}

/* ─── Service Banner ─── */
.catalog__service-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    margin-bottom: 20px;
}

.service-banner__icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: var(--white);
}

.service-banner__content {
    flex: 1;
}

.service-banner__title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
}

.service-banner__title .text-accent {
    color: #5bf;
    font-size: 28px;
}

.service-banner__text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
    max-width: 600px;
}

.service-banner__btn {
    flex-shrink: 0;
    padding: 14px 36px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.service-banner__btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.catalog__price-note {
    font-size: 13px;
    color: var(--gray-400);
    margin-bottom: 32px;
    padding-left: 4px;
    line-height: 1.5;
}

/* ─── "Not found" CTA ─── */
.catalog__not-found {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
    padding: 18px 28px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed var(--gray-600);
    border-radius: var(--radius-lg);
    color: var(--gray-300);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.35s var(--ease-out-expo);
}

.catalog__not-found strong {
    color: #5bf;
    font-weight: 600;
}

.catalog__not-found svg {
    flex-shrink: 0;
    color: #5bf;
    transition: transform 0.35s var(--ease-out-expo);
}

.catalog__not-found:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gray-400);
    color: var(--white);
}

.catalog__not-found:hover svg {
    transform: translateX(6px);
}

/* ===================================================
   BRANDS CAROUSEL
   =================================================== */
.brands {
    padding: 80px 0;
    overflow: hidden;
}

.brands__track {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.brands__slider {
    display: flex;
    gap: 48px;
    animation: brandsScroll 30s linear infinite;
    width: max-content;
}

@keyframes brandsScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.brand-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

.brand-logo span {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gray-300);
    opacity: 0.5;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.brand-logo:hover span {
    opacity: 1;
}

/* ===================================================
   PROCESS
   =================================================== */
.process__timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process__timeline::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--gray-700) 10%, var(--gray-700) 90%, transparent);
}

.process__step {
    display: flex;
    gap: 32px;
    padding: 32px 0;
    position: relative;
}

.process__number {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-400);
    background: var(--gray-950);
    position: relative;
    z-index: 1;
    transition: all 0.4s var(--ease-out-expo);
}

.process__step:hover .process__number {
    border-color: var(--accent-light);
    color: var(--white);
    background: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.process__content {
    padding-top: 8px;
}

.process__title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.process__text {
    font-size: 15px;
    color: var(--gray-400);
    line-height: 1.65;
}

/* ===================================================
   REVIEWS — 5-Column Marquee
   =================================================== */
.reviews {
    background: var(--gray-50);
    overflow: hidden;
}

.reviews .section__header {
    position: relative;
    z-index: 2;
}

.reviews-marquee {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    height: 600px;
    overflow: hidden;
    mask-image: linear-gradient(180deg, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.reviews-marquee__col {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.reviews-marquee__track {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Scrolling UP */
.reviews-marquee__col--up .reviews-marquee__track {
    animation: marqueeUp 35s linear infinite;
}

/* Scrolling DOWN */
.reviews-marquee__col--down .reviews-marquee__track {
    animation: marqueeDown 35s linear infinite;
}

@keyframes marqueeUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes marqueeDown {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

.reviews-marquee__col:hover .reviews-marquee__track {
    animation-play-state: paused;
}

.review-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all 0.4s var(--ease-out-expo);
    flex-shrink: 0;
}

.review-card:hover {
    border-color: var(--accent);
    box-shadow: 0 16px 48px rgba(10, 37, 64, 0.06);
}

.review-card__stars {
    font-size: 16px;
    color: #f59e0b;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.review-card__text {
    font-size: 14px;
    line-height: 1.65;
    color: var(--gray-600);
    margin-bottom: 16px;
    font-style: italic;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.review-card__name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}

.review-card__car {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 2px;
}

/* ===================================================
   CALCULATOR / FORM
   =================================================== */
.calculator__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.calculator__features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.calculator__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--gray-300);
}

.calculator__form {
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: var(--radius-lg);
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-400);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--gray-800);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-600);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--gray-900);
    color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-error {
    display: none;
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
}

.form-group.error .form-error {
    display: block;
}

.form-group.error input,
.form-group.error select {
    border-color: #ef4444;
}

/* Checkbox */
.form-group--checkbox {
    margin-bottom: 24px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-400);
}

.checkbox input {
    display: none;
}

.checkbox__mark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--gray-600);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 1px;
}

.checkbox input:checked + .checkbox__mark {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox input:checked + .checkbox__mark::after {
    content: '✓';
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
}

.checkbox__text a {
    color: var(--accent-light);
    text-decoration: underline;
}

.checkbox__text a:hover {
    color: #4a9eff;
}

/* ===================================================
   CONTACTS
   =================================================== */
.contacts__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: all 0.4s var(--ease-out-expo);
}

.contact-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(10, 37, 64, 0.08);
}

.contact-card--accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.contact-card--accent:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

.contact-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.contact-card--accent .contact-card__icon {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.contact-card__title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-card__value {
    font-size: 15px;
    color: var(--gray-600);
    margin-bottom: 4px;
}

.contact-card--accent .contact-card__value {
    color: rgba(255, 255, 255, 0.85);
}

.contact-card__hint {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 4px;
}

.contact-card--accent .contact-card__hint {
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
    background: var(--gray-950);
    color: var(--gray-400);
    padding: 64px 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    padding-bottom: 48px;
}

.footer__brand .header__logo {
    margin-bottom: 16px;
    display: inline-flex;
}

.footer__logo-img {
    height: 80px;
    width: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.footer__desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-500);
    max-width: 320px;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__nav h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.footer__nav a {
    font-size: 14px;
    color: var(--gray-500);
    transition: color 0.3s ease;
}

.footer__nav a:hover {
    color: var(--white);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid var(--gray-800);
    font-size: 13px;
    color: var(--gray-600);
}

.footer__bottom a {
    color: var(--gray-500);
}

.footer__bottom a:hover {
    color: var(--white);
}

/* ===================================================
   MODAL
   =================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out-expo);
}

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

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal__content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    transform: translateY(40px) scale(0.95);
    transition: transform 0.4s var(--ease-out-expo);
}

.modal.active .modal__content {
    transform: translateY(0) scale(1);
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal__close:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.modal__icon {
    margin-bottom: 24px;
}

.modal__title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.modal__text {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ===================================================
   VISIBILITY HELPERS
   =================================================== */
.mobile-only {
    display: none;
}

/* ===================================================
   RESPONSIVE — Tablet
   =================================================== */
@media (max-width: 1024px) {
    .header__nav {
        gap: 20px;
    }

    .header__phone span {
        display: none;
    }

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

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

    .calculator__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .reviews-marquee {
        height: 500px;
    }

    /* Hide 4th and 5th columns on tablet */
    .reviews-marquee__col:nth-child(4),
    .reviews-marquee__col:nth-child(5) {
        display: none;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}

/* ===================================================
   RESPONSIVE — Mobile
   =================================================== */
@media (max-width: 768px) {
    :root {
        --header-h: 64px;
    }

    .section {
        padding: 56px 0;
    }

    .section__header {
        margin-bottom: 32px;
    }

    .section__desc {
        font-size: 14px;
    }

    /* Visibility toggle */
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .burger {
        display: block;
    }

    .header__nav {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s var(--ease-out-expo);
        z-index: 999;
    }

    .header__nav.open {
        opacity: 1;
        pointer-events: auto;
    }

    .header__nav .header__link {
        font-size: 24px;
        color: var(--white);
    }

    .header__actions {
        display: none;
    }

    /* Hero */
    .hero__content {
        padding: 48px 16px 32px;
    }

    .hero__badge {
        font-size: 11px;
        padding: 6px 14px;
        margin-bottom: 20px;
    }

    .hero__subtitle {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .hero__actions {
        flex-direction: column;
        gap: 10px;
    }

    .hero__actions .btn {
        width: 100%;
        font-size: 14px;
        padding: 14px 24px;
    }

    .hero__stats {
        gap: 24px;
        width: 100%;
        flex-wrap: wrap;
    }

    .hero__stat-number {
        font-size: 28px;
    }

    .hero__scroll {
        display: none;
    }

    /* Advantages — compact 2x2 grid like contacts */
    .advantages__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .advantage-card {
        min-width: 0;
        padding: 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        cursor: pointer;
        transition: all 0.35s var(--ease-out-expo);
    }

    .advantage-card__icon {
        margin: 0;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        transition: all 0.35s var(--ease-out-expo);
    }

    .advantage-card__icon svg {
        width: 22px;
        height: 22px;
    }

    .advantage-card__title {
        font-size: 15px;
        margin-bottom: 0;
    }

    .advantage-card__text {
        display: block;
        font-size: 12px;
        line-height: 1.5;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s var(--ease-out-expo),
                    opacity 0.3s ease,
                    margin-top 0.3s ease;
        margin-top: 0;
    }

    .advantage-card.expanded {
        border-color: var(--accent);
        background: var(--white);
        box-shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
    }

    .advantage-card.expanded .advantage-card__icon {
        background: var(--accent);
        color: var(--white);
    }

    .advantage-card.expanded .advantage-card__text {
        max-height: 80px;
        opacity: 1;
        margin-top: 4px;
    }

    /* ─── MOBILE CATALOG — card marquee ─── */
    .mobile-catalog {
        display: block !important;
        overflow: hidden;
        margin: 0 -24px;
        mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
    }

    .m-catalog__track {
        display: flex;
        gap: 10px;
        width: max-content;
        animation: mCatalogScroll 25s linear infinite;
    }

    .m-catalog__track:hover,
    .m-catalog__track:active {
        animation-play-state: paused;
    }

    @keyframes mCatalogScroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    .m-card {
        flex-shrink: 0;
        width: 42vw;
        background: var(--gray-900);
        border: 1px solid var(--gray-800);
        border-radius: 12px;
        overflow: hidden;
        text-decoration: none;
        display: block;
    }

    .m-card__img {
        position: relative;
        aspect-ratio: 16 / 10;
        overflow: hidden;
    }

    .m-card__img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .m-card__badge {
        position: absolute;
        top: 6px;
        left: 6px;
        background: rgba(10, 37, 64, 0.85);
        backdrop-filter: blur(6px);
        color: var(--white);
        font-size: 8px;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        padding: 2px 7px;
        border-radius: 100px;
    }

    .m-card__body {
        padding: 8px 10px 10px;
    }

    .m-card__name {
        font-family: var(--font-heading);
        font-size: 12px;
        font-weight: 600;
        color: var(--white);
        margin: 0 0 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .m-card__specs {
        font-size: 10px;
        color: var(--gray-400);
        margin: 0 0 6px;
        white-space: nowrap;
    }

    .m-card__price {
        font-family: var(--font-heading);
        font-size: 13px;
        font-weight: 600;
        color: #5bf;
    }

    /* Service banner mobile */
    .catalog__service-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px;
        gap: 12px;
    }

    .service-banner__icon {
        width: 48px;
        height: 48px;
    }

    .service-banner__icon svg {
        width: 32px;
        height: 32px;
    }

    .service-banner__title {
        font-size: 18px;
    }

    .service-banner__title .text-accent {
        font-size: 22px;
    }

    .service-banner__text {
        max-width: 100%;
        font-size: 13px;
    }

    .catalog__service-banner .btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 13px;
    }

    .catalog__price-note {
        font-size: 12px;
    }

    .catalog__not-found {
        margin-top: 20px;
        padding: 14px 16px;
        font-size: 13px;
        gap: 8px;
        border-radius: 12px;
    }

    /* Process */
    .process__timeline::before {
        left: 20px;
    }

    .process__step {
        gap: 20px;
        padding: 24px 0;
    }

    .process__number {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .process__title {
        font-size: 18px;
    }

    /* ─── MOBILE REVIEWS — 2-row marquee ─── */
    .mobile-reviews {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        overflow: hidden;
        mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
    }

    .m-reviews-row {
        overflow: hidden;
    }

    .m-reviews-row__track {
        display: flex;
        gap: 10px;
        width: max-content;
    }

    .m-reviews-row--left .m-reviews-row__track {
        animation: mRevLeft 22s linear infinite;
    }

    .m-reviews-row--right .m-reviews-row__track {
        animation: mRevRight 22s linear infinite;
    }

    @keyframes mRevLeft {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    @keyframes mRevRight {
        0% { transform: translateX(-50%); }
        100% { transform: translateX(0); }
    }

    .m-reviews-row:hover .m-reviews-row__track,
    .m-reviews-row:active .m-reviews-row__track {
        animation-play-state: paused;
    }

    .m-rev {
        flex-shrink: 0;
        width: 220px;
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: 12px;
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .m-rev__stars {
        font-size: 11px;
        color: #f59e0b;
        letter-spacing: 1px;
    }

    .m-rev__text {
        font-size: 12px;
        line-height: 1.45;
        color: var(--gray-600);
        font-style: italic;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .m-rev__author {
        font-size: 11px;
        font-weight: 600;
        color: var(--gray-800);
        margin-top: auto;
    }

    /* Calculator */
    .calculator__form {
        padding: 28px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Contacts — compact 2x2 grid */
    .contacts__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .contact-card {
        padding: 16px;
        text-align: center;
        align-items: center;
    }

    .contact-card__icon {
        margin: 0 auto 8px;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .contact-card__icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-card__title {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .contact-card__value {
        font-size: 12px;
        display: none;
    }

    .contact-card__hint {
        display: none;
    }

    /* Footer */
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 28px;
    }

    .section__title {
        font-size: 24px;
    }

    .hero__stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero__stat-number {
        font-size: 24px;
    }

    .hero__stat-plus,
    .hero__stat-unit {
        font-size: 18px;
    }

    .hero__stat-label {
        font-size: 12px;
    }

    /* Mobile catalog — smaller cards */
    .m-card {
        width: 38vw;
    }

    .m-card__name {
        font-size: 11px;
    }

    .m-card__specs {
        font-size: 9px;
    }

    .m-card__price {
        font-size: 12px;
    }

    /* Mobile reviews — narrower cards */
    .m-rev {
        width: 190px;
    }

    .m-rev__text {
        font-size: 11px;
    }

    .process__title {
        font-size: 16px;
    }

    .process__text {
        font-size: 13px;
    }

    .calculator__form {
        padding: 20px 16px;
    }

    .footer__logo-img {
        height: 64px;
        width: 64px;
    }
}
