:root {
    /* Light Theme (Default) */
    --bg-color: #fafafa;
    --bg-secondary: #ffffff;
    --bg-accent: #f5f3f0;
    --text-primary: #1a1a1a;
    --text-secondary: #6b6b6b;
    --accent: #c00000;
    --accent-hover: #990000;
    --accent-light: rgba(192, 0, 0, 0.08);
    --accent-glow: rgba(192, 0, 0, 0.2);
    --red: #e53935;
    --border: #e8e8e8;
    --border-hover: #d0d0d0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
    --shadow-accent: 0 8px 30px rgba(192, 0, 0, 0.15);
    --header-bg: rgba(255, 255, 255, 0.92);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --easing: cubic-bezier(0.25, 1, 0.5, 1);
    --radius: 12px;
    --radius-sm: 8px;
}

[data-theme="dark"] {
    --bg-color: #0d0d0f;
    --bg-secondary: #141416;
    --bg-accent: #1a1a1c;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border: #2a2a2a;
    --border-hover: #404040;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-accent: 0 8px 30px rgba(255, 107, 0, 0.25);
    --header-bg: rgba(13, 13, 15, 0.95);
    --accent-light: rgba(192, 0, 0, 0.15);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Mouse Glow */
.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.06) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: normal;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] .mouse-glow {
    background: radial-gradient(circle, rgba(255, 107, 0, 0.1) 0%, transparent 70%);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

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

.text-outline {
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.5);
    color: transparent;
}

/* Hero is always on dark bg, so text-outline is fine as-is */

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 0;
    z-index: 100;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    box-shadow: 0 0 14px rgba(192, 0, 0, 0.18), 0 8px 20px rgba(192, 0, 0, 0.14);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.header-phone:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(192, 0, 0, 0.28), 0 10px 22px rgba(192, 0, 0, 0.18);
}

.header-phone::before {
    content: "☎";
    margin-right: 8px;
    font-size: 13px;
}

.header:not(.scrolled) .header-phone {
    color: #fff;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.header:not(.scrolled) .theme-toggle {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}

.theme-icon-moon {
    display: none;
}

.theme-icon-sun {
    display: block;
}

[data-theme="dark"] .theme-icon-moon {
    display: block;
}

[data-theme="dark"] .theme-icon-sun {
    display: none;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 3px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    z-index: 101;
}

.logo__brand {
    color: var(--text-primary);
}

.logo__brand--italic {
    font-style: italic;
    display: inline-block;
    transform: skew(-10deg);
}


.header:not(.scrolled) .logo__brand {
    color: #fff;
}

.logo__accent {
    color: var(--red);
    font-style: italic;
    font-weight: 700;
}

.logo__divider {
    color: var(--border);
    margin: 0 8px;
    font-weight: 300;
    opacity: 0.4;
}

.header:not(.scrolled) .logo__divider {
    color: rgba(255, 255, 255, 0.3);
}

.logo__sub {
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 500;
    text-transform: uppercase;
    opacity: 0.6;
}

.header:not(.scrolled) .logo__sub {
    color: rgba(255, 255, 255, 0.7);
}

.nav {
    display: flex;
    gap: 28px;
}

.nav__link {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.header:not(.scrolled) .nav__link {
    color: rgba(255, 255, 255, 0.8);
}

.nav__link:hover {
    color: var(--accent);
    opacity: 1;
}

.header-cta {
    font-size: 13px;
}

.header:not(.scrolled) .header-cta {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.header:not(.scrolled) .header-cta:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--easing);
    border-radius: 14px;
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn--outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 14px;
    box-shadow: 0 0 14px rgba(192, 0, 0, 0.18), 0 8px 20px rgba(192, 0, 0, 0.14);
}

.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(192, 0, 0, 0.26), 0 12px 28px rgba(192, 0, 0, 0.18);
}

.btn--glow {
    position: relative;
    overflow: hidden;
}

.btn--glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), #ff4d4d, var(--accent));
    border-radius: inherit;
    z-index: -1;
    filter: blur(12px);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.btn--glow:hover::after {
    opacity: 0.8;
}

.btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    padding-left: 0;
    border: none;
}

.btn--ghost:hover {
    color: #fff;
}

/* CTA Button for services */
.btn--cta {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent), #ff4d4d);
    color: #fff;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 0 14px rgba(192, 0, 0, 0.18), 0 8px 20px rgba(192, 0, 0, 0.14);
}

.btn--cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn--cta:hover::before {
    left: 100%;
}

.btn--cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 18px rgba(192, 0, 0, 0.26), 0 12px 28px rgba(192, 0, 0, 0.18);
}

.btn--cta svg {
    transition: transform 0.3s ease;
}

.btn--cta:hover svg {
    transform: translateX(4px);
}

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

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    height: 110%;
    background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.7)),
        url('hero.jpg') center/cover no-repeat;
    z-index: -1;
    transform: translateZ(0);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.hero__title {
    font-size: clamp(50px, 9vw, 120px);
    line-height: 0.9;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 40px;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
    font-weight: 400;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s var(--easing) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 0;
    position: relative;
}



.section-desc {
    text-align: center;
    max-width: 550px;
    margin: 0 auto 60px;
    color: var(--text-secondary);
    font-size: 16px;
}

/* Grid */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

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

/* ===== BENEFIT CARDS ===== */
.card {
    background: var(--bg-secondary);
    padding: 36px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tilt-card {
    transform: perspective(1000px) rotateX(0) rotateY(0);
}

.card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card__icon {
    font-size: 32px;
    margin-bottom: 16px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
}

.card__title {
    font-size: 18px;
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: -0.01em;
}

.card__text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== TECHNOLOGY / BEFORE-AFTER ===== */
.technology {
    background: var(--bg-accent);
}

.tech-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.tech-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 6px 16px;
    margin-bottom: 16px;
    border-radius: 50px;
}

.tech-showcase__title {
    font-size: clamp(28px, 3.5vw, 38px);
    line-height: 1.1;
    margin-bottom: 16px;
    text-transform: none;
}

.tech-showcase__text {
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.7;
}

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

.tech-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.tech-feature:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.tech-feature__icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.tech-feature strong {
    display: block;
    font-size: 14px;
    font-family: var(--font-heading);
    margin-bottom: 2px;
}

.tech-feature p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

/* Before / After */
.before-after {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.before-after__arrow {
    text-align: center;
    font-size: 28px;
    color: var(--accent);
    font-weight: 700;
    transform: rotate(90deg);
    line-height: 1;
}

.before-after__card {
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    transition: all 0.3s ease;
}

.before-after__card--before {
    opacity: 0.85;
}

.before-after__card--after {
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.before-after__label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--bg-accent);
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.before-after__label--accent {
    background: var(--accent);
    color: #fff;
}

.before-after__emoji {
    font-size: 36px;
    margin-bottom: 10px;
}

.before-after__card h4 {
    font-size: 20px;
    margin-bottom: 8px;
    text-transform: none;
}

.before-after__card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.before-after__bar {
    height: 36px;
    background: var(--bg-accent);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.before-after__fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--fill);
    background: var(--border-hover);
    border-radius: 8px;
    transition: width 1.5s var(--easing);
}

.before-after__fill--accent {
    background: linear-gradient(90deg, var(--accent), #ff4d4d);
}

.before-after__bar span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.before-after__bar--accent span {
    color: #fff;
}

/* ===== GALLERY ===== */
.gallery {
    background: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.gallery-grid--compact {
    align-items: start;
}

.gallery-card {
    margin: 0;
    position: relative;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.gallery-card__button {
    display: block;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: zoom-in;
    position: relative;
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: var(--bg-accent);
}

.gallery-card__zoom {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.gallery-card:hover .gallery-card__zoom,
.gallery-card:focus-within .gallery-card__zoom {
    opacity: 1;
    transform: translateY(0);
}

.gallery-card figcaption {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
    backdrop-filter: blur(6px);
}

.gallery-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

.gallery-toggle {
    min-width: 260px;
}


.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.82);
}

.gallery-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    max-height: calc(100vh - 48px);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.gallery-lightbox__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.gallery-lightbox__image {
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 120px);
    border-radius: 18px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
    background: #111;
}

.gallery-lightbox__caption {
    color: #fff;
    text-align: center;
    font-size: 15px;
    line-height: 1.4;
}

.gallery-lightbox__close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.gallery-lightbox__nav {
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, background 0.25s ease;
}

.gallery-lightbox__nav:hover {
    background: rgba(192, 0, 0, 0.85);
    transform: scale(1.05);
}

.gallery-lightbox__nav:focus-visible,
.gallery-lightbox__close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

/* ===== ANTICOR BENEFITS ===== */
.anticor-benefits {
    background: var(--bg-color);
}

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

.benefit-column {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    padding: 36px 28px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.benefit-column:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.benefit-column:hover::before {
    opacity: 1;
}

.benefit-column__icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.benefit-column__title {
    font-size: 22px;
    margin-bottom: 8px;
    text-transform: none;
}

.benefit-column__desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.benefit-column__list {
    list-style: none;
    color: var(--text-secondary);
    font-size: 14px;
}

.benefit-column__list li {
    margin-bottom: 8px;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.benefit-column__list li::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: 0;
}

/* ===== SERVICE CARDS ===== */
.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.service-card__image {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-accent);
    transition: filter 0.3s ease;
}

.service-card:hover .service-card__image {
    filter: saturate(1.1) brightness(1.05);
}

.service-card__content {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
}

.service-card__title {
    font-size: 22px;
    margin-bottom: 16px;
    text-transform: none;
}

.service-card__list {
    list-style: none;
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 14px;
    flex-grow: 1;
}

.service-card__list li {
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.service-card__list li::before {
    content: '•';
    color: var(--accent);
    position: absolute;
    left: 0;
}

.service-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.service-card__price-block {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.service-card__price-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.service-card__price-amount {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card__price-currency {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
}

/* ===== PROCESS ACCORDION ===== */
.process {
    background: var(--bg-accent);
}

.process-steps {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.process-step {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.process-step:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.process-step.active {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.process-step__header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 28px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.process-step__header:hover {
    background: var(--accent-light);
}

.process-step__number {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    flex-shrink: 0;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.process-step.active .process-step__number {
    opacity: 1;
}

.process-step__info {
    flex-grow: 1;
}

.process-step__info h3 {
    font-size: 18px;
    margin-bottom: 6px;
    text-transform: none;
}

.process-step__info p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.process-step__toggle {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-accent);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    margin-top: 4px;
}

.process-step.active .process-step__toggle {
    background: var(--accent);
    color: #fff;
    transform: rotate(180deg);
}

.process-step__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--easing);
}

.process-step.active .process-step__body {
    max-height: 400px;
}

.process-step__image {
    height: 280px;
    background-size: cover;
    background-position: center;
    margin: 0 28px 24px;
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}

.process-step__image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: #fff;
}

.process-step__image-overlay span {
    font-size: 14px;
    font-weight: 500;
}

/* ===== CONTACTS ===== */
.contacts {
    background: var(--bg-secondary);
}

.contacts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contacts-info {
    padding-right: 20px;
}

.contacts-list {
    list-style: none;
    margin-bottom: 32px;
}

.contacts-list li {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    font-size: 16px;
}

.contacts-list a {
    color: var(--accent);
}

.contacts-list a:hover {
    text-decoration: underline;
}

.contacts-list .icon {
    font-size: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.1);
    box-shadow: var(--shadow-sm);
}

/* Contact Form */
.contacts-form-wrapper {
    background: var(--bg-color);
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.contacts-form-wrapper h3 {
    font-size: 24px;
    margin-bottom: 28px;
    text-transform: none;
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border);
    padding: 12px 0;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-color: var(--accent);
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label {
    top: -18px;
    font-size: 12px;
    color: var(--accent);
}

.form-group label {
    position: absolute;
    top: 12px;
    left: 0;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.form-group input::placeholder {
    opacity: 0;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 102;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    position: absolute;
    transition: all 0.3s ease;
}

.header:not(.scrolled) .mobile-menu-btn span {
    background-color: #fff;
}

.mobile-menu-btn span:nth-child(1) {
    top: 0;
}

.mobile-menu-btn span:nth-child(2) {
    top: 9px;
}

.mobile-menu-btn span:nth-child(3) {
    top: 18px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 9px;
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 9px;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    background: var(--bg-secondary);
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.footer__logo .logo__brand {
    font-weight: 700;
}

.footer__logo .logo__accent {
    color: var(--red);
    font-style: italic;
    font-weight: 700;
}

.footer__logo .logo__divider {
    color: var(--border);
    margin: 0 8px;
    font-weight: 300;
    opacity: 0.4;
}

/* Map */
.map-container {
    border-top: 1px solid var(--border);
    opacity: 0.95;
    transition: 0.5s;
}

.map-container:hover {
    opacity: 1;
}

/* ===== REVIEWS / RATINGS ===== */
.reviews {
    background: var(--bg-color);
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

.rating-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rating-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.9;
}

.rating-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.rating-card__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.rating-card__label {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-primary);
}

.rating-card__score {
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.rating-card__text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.rating-card__stars {
    font-size: 16px;
    letter-spacing: 2px;
    color: var(--accent);
    user-select: none;
}

.rating-card__link {
    width: fit-content;
}

.reviews-carousel {
    margin-top: 26px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
}

.carousel-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-color);
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.carousel-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
    transform: scale(1.05);
}

.reviews-track {
    position: relative;
    min-height: 132px;
}

.review-card {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    padding: 6px 8px;
}

.review-card.is-active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.review-card__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.review-card__name {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
}

.review-card__source {
    font-size: 12px;
    color: var(--text-secondary);
}

.review-card__text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .reviews-carousel {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .carousel-btn {
        width: 44px;
        height: 44px;
        justify-self: center;
    }

    .reviews-track {
        min-height: 160px;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .tech-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .benefits-columns {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .contacts-container {
        grid-template-columns: 1fr;
    }

    .logo__sub,
    .logo__divider {
        display: none;
    }
}

@media (max-width: 768px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .header__actions {
        margin-right: 40px;
        /* Space for hamburger */
    }

    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
        z-index: 100;
        font-size: 20px;
    }

    .nav .nav__link {
        color: var(--text-primary) !important;
        font-size: 18px;
    }

    .nav.active {
        transform: translateY(0);
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .header-phone {
        padding: 10px 14px;
        font-size: 12px;
    }

    .hero__title {
        font-size: 48px;
    }



    .tech-showcase__title {
        font-size: 26px;
    }

    .process-step__header {
        padding: 18px 20px;
    }

    .process-step__number {
        font-size: 28px;
    }

    .process-step__image {
        margin: 0 16px 20px;
        height: 200px;
    }

    .service-card__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .service-card__price-block {
        justify-content: center;
    }

    .btn--cta {
        justify-content: center;
    }
}




/* ===== SMALL BRAND ICONS ===== */
.brand-inline {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.brand-inline--yandex {
    background: #ff0000;
}

.brand-inline--avito {
    background: #00aaff;
}

/* ===== BRANDS / PRICE ===== */
.brands {
    background: var(--bg-color);
}

.section-head {
    max-width: 880px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-top: 12px;
    line-height: 1.6;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 18px;
    align-items: center;
    justify-items: center;
}

.brand-card {
    width: 100%;
    min-height: 72px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 12px 12px;
    transition: all 0.25s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.brand-logo img {
    max-width: 86px;
    max-height: 40px;
    object-fit: contain;
    opacity: 0.95;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.brand-card:hover .brand-logo img {
    opacity: 1;
    transform: scale(1.06);
}

.brand-fallback {
    display: none;
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    opacity: 0.85;
    text-transform: uppercase;
}

.brand-logo.is-fallback .brand-fallback {
    display: inline-block;
}

.price-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: var(--bg-color);
}

.price-row:nth-child(2n) {
    background: var(--bg-accent);
}

.price-row strong {
    font-family: var(--font-heading);
    font-size: 14px;
}

.price-row span {
    font-weight: 700;
    color: var(--accent);
}

@media (max-width: 520px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

html.no-scroll,
body.no-scroll {
    overflow: hidden;
}

/* ===== BRAND CARD LINK FIX ===== */
.brand-card {
    text-decoration: none;
    color: inherit;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
    padding-top: 80px;
    padding-bottom: 0;
    background: var(--bg-color);
}

.breadcrumbs__list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    padding: 16px 0 12px;
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumbs__item+.breadcrumbs__item::before {
    content: "›";
    color: var(--text-secondary);
    opacity: 0.5;
    font-size: 16px;
}

.breadcrumbs__item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs__item a:hover {
    color: var(--accent);
}

.breadcrumbs__item--active {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== BRAND PRICE PAGES (redesign) ===== */
.brand-page {
    background: var(--bg-color);
    padding: 40px 0 80px;
}

.brand-page__head {
    max-width: 860px;
    margin: 0 auto 36px;
    text-align: center;
}

.brand-page__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s, transform 0.2s;
}

.brand-page__back:hover {
    color: var(--accent);
    transform: translateX(-4px);
}

.brand-page__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px auto 18px;
    min-height: 60px;
}

.brand-page__logo img {
    max-width: 180px;
    max-height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.brand-page__logo.is-fallback .brand-fallback {
    display: inline-block;
    font-size: 24px;
}

.brand-page__title {
    font-size: clamp(28px, 3.5vw, 44px);
    line-height: 1.1;
    margin-bottom: 12px;
    text-transform: none;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-page__subtitle {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 auto;
    max-width: 600px;
    font-size: 15px;
}

/* --- Price Table (card style) --- */
.price-table--page {
    max-width: 720px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-secondary);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.price-table--page .price-row {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.price-table--page .price-row:last-child {
    border-bottom: none;
}

.price-table--page .price-row:hover {
    background: rgba(192, 0, 0, 0.04);
}

.price-table--page .price-row strong {
    font-size: 15px;
}

.price-table--page .price-row span {
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

/* --- Note block --- */
.brand-page__note {
    max-width: 720px;
    margin: 22px auto 28px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 14px;
}

.brand-page__note .muted {
    color: var(--text-secondary);
    margin-top: 8px;
    font-size: 13px;
}

/* --- Models Section (modern card + chip grid) --- */
.brand-page__models {
    max-width: 860px;
    margin: 40px auto;
    padding: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.brand-page__models::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #ff6b6b, var(--accent));
    opacity: 0.8;
}

.brand-page__models h2 {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-page__models h2::before {
    content: "🚗";
    font-size: 24px;
}

.brand-page__models>p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 14px;
}

/* --- Model Chips Grid --- */
.brand-page__models-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.brand-page__models-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(192, 0, 0, 0.08);
    border: 1px solid rgba(192, 0, 0, 0.2);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.25s ease;
    cursor: default;
    white-space: nowrap;
}

.brand-page__models-list li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.brand-page__models-list li:hover {
    transform: translateY(-2px);
    background: rgba(192, 0, 0, 0.14);
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(192, 0, 0, 0.15);
}

/* --- SEO Text Section (styled card) --- */
.brand-page__seo-text {
    max-width: 860px;
    margin: 0 auto 32px;
    padding: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.brand-page__seo-text h2 {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-page__seo-text h2::before {
    content: "⚡";
    font-size: 24px;
}

.brand-page__seo-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 12px;
}

.brand-page__seo-text p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 12px;
    font-size: 14px;
}

.brand-page__seo-text p a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.brand-page__seo-text p a:hover {
    opacity: 0.8;
}

.brand-page__seo-text ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: grid;
    gap: 12px;
}

.brand-page__seo-text ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    transition: border-color 0.2s, background 0.2s;
}

.brand-page__seo-text ul li:hover {
    border-color: rgba(192, 0, 0, 0.3);
    background: rgba(192, 0, 0, 0.03);
}

.brand-page__seo-text ul li::before {
    content: "✦";
    color: var(--accent);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* --- Actions --- */
.brand-page__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.brand-page__actions .btn--primary {
    padding: 16px 36px;
    font-size: 15px;
    font-weight: 700;
}

.brand-page__actions .btn--ghost {
    padding: 16px 36px;
    font-size: 15px;
}

/* --- Mobile responsive --- */
@media (max-width: 768px) {
    .breadcrumbs {
        padding-top: 70px;
    }

    .brand-page {
        padding: 24px 0 60px;
    }

    .brand-page__models,
    .brand-page__seo-text {
        padding: 20px 16px;
        margin-left: 8px;
        margin-right: 8px;
        border-radius: 14px;
    }

    .brand-page__models-list {
        gap: 8px;
    }

    .brand-page__models-list li {
        padding: 8px 14px;
        font-size: 13px;
    }

    .brand-page__note {
        padding: 16px;
        margin-left: 8px;
        margin-right: 8px;
    }

    .price-table--page {
        margin-left: 8px;
        margin-right: 8px;
    }

    .brand-page__actions .btn--primary,
    .brand-page__actions .btn--ghost {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}


/* ===== FIX BRANDS SPACING ===== */
.brands {
    padding-bottom: 120px;
}

/* ===== HEADER LOGO IMAGE ===== */
.header-logo-img {
    height: 42px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .header-logo-img {
        height: 32px;
    }
}


/* ===== YANDEX INLINE LOGO ===== */
.yandex-inline-logo {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ff0000;
    margin-right: 8px;
    vertical-align: middle;
    position: relative;
}

.yandex-inline-logo::after {
    content: "Я";
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: Arial, sans-serif;
}


/* ===== AVITO INLINE LOGO ===== */
.avito-inline-logo {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    background-image: url('avito-mini.png');
    background-size: cover;
    background-position: center;
}

/* ===== REVIEW AVATARS ===== */
.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c00000, #ff4d4d);
    margin-bottom: 12px;
}

.review-item {
    display: flex;
    flex-direction: column;
}


/* ===== FIX AVITO INLINE LOGO ===== */
.avito-inline-logo {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    background: radial-gradient(circle at 30% 30%, #00aaff 30%, transparent 31%),
        radial-gradient(circle at 70% 30%, #ff4053 30%, transparent 31%),
        radial-gradient(circle at 30% 70%, #a259ff 30%, transparent 31%),
        radial-gradient(circle at 70% 70%, #8ac600 30%, transparent 31%);
    background-color: #fff;
}

/* ===== REVIEW AVATAR STYLE ===== */
.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c00000, #ff4d4d);
    margin-bottom: 12px;
}

/* ===== MORE SPACE AFTER TITLE ===== */



/* ===== INLINE BRAND ICONS (REVIEWS) ===== */
.avito-inline-logo {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    /* Avito four dots */
    background:
        radial-gradient(circle at 30% 30%, #00AEEF 33%, transparent 34%),
        radial-gradient(circle at 70% 30%, #FF4053 33%, transparent 34%),
        radial-gradient(circle at 30% 70%, #A259FF 33%, transparent 34%),
        radial-gradient(circle at 70% 70%, #8AC600 33%, transparent 34%);
    background-color: #ffffff;
}




.section-title {
    font-size: 48px;
    font-weight: 800;
    text-align: left;
}


/* ===== CENTER ALL SECTION TITLES ===== */
.section-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.reviews .section-title {
    font-size: 56px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 50px;
}


/* ===== REVIEWS TITLE STYLE LIKE SERVICES ===== */
.reviews .section-title {
    font-size: 56px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 50px;
}

/* More top spacing for reviews section */
.reviews {
    padding-top: 70px;
}



/* Dark theme – logos white */
body.dark .brand-item img[alt="Audi"],
body.dark .brand-item img[alt="Li"],
body.dark .brand-item img[alt="Nissan"],
body.dark .brand-item img[alt="Jaguar"],
body.dark .brand-item img[alt="Zeekr"],
body.dark .brand-item img[alt="Toyota"],
body.dark .brand-item img[alt="Hummer"] {
    filter: brightness(0) invert(0.92) contrast(0.9);
    opacity: 0.9;
}

/* Light theme – logos black */
body.light .brand-item img[alt="Audi"],
body.light .brand-item img[alt="Li"],
body.light .brand-item img[alt="Nissan"],
body.light .brand-item img[alt="Jaguar"],
body.light .brand-item img[alt="Zeekr"],
body.light .brand-item img[alt="Toyota"],
body.light .brand-item img[alt="Hummer"] {
    filter: brightness(0) contrast(0.85);
    opacity: 0.85;
}


/* ===== BRAND LOGO COLOR FIX (THEME BASED) ===== */
/* Theme is set on <html data-theme="dark|light"> via script.js */

html[data-theme="dark"] .brand-card[data-brand="Audi"] img,
html[data-theme="dark"] .brand-card[data-brand="Li Auto"] img,
html[data-theme="dark"] .brand-card[data-brand="Nissan"] img,
html[data-theme="dark"] .brand-card[data-brand="Jaguar"] img,
html[data-theme="dark"] .brand-card[data-brand="Zeekr"] img,
html[data-theme="dark"] .brand-card[data-brand="Toyota"] img,
html[data-theme="dark"] .brand-card[data-brand="Hummer"] img {
    filter: brightness(0) invert(0.92) contrast(0.9);
    opacity: 0.9;
}

html[data-theme="light"] .brand-card[data-brand="Audi"] img,
html[data-theme="light"] .brand-card[data-brand="Li Auto"] img,
html[data-theme="light"] .brand-card[data-brand="Nissan"] img,
html[data-theme="light"] .brand-card[data-brand="Jaguar"] img,
html[data-theme="light"] .brand-card[data-brand="Zeekr"] img,
html[data-theme="light"] .brand-card[data-brand="Toyota"] img,
html[data-theme="light"] .brand-card[data-brand="Hummer"] img {
    filter: brightness(0) contrast(0.85);
    opacity: 0.85;
}

/* Fallback if theme attribute is missing: assume dark visuals */
html:not([data-theme]) .brand-card[data-brand="Audi"] img,
html:not([data-theme]) .brand-card[data-brand="Li Auto"] img,
html:not([data-theme]) .brand-card[data-brand="Nissan"] img,
html:not([data-theme]) .brand-card[data-brand="Jaguar"] img,
html:not([data-theme]) .brand-card[data-brand="Zeekr"] img,
html:not([data-theme]) .brand-card[data-brand="Toyota"] img,
html:not([data-theme]) .brand-card[data-brand="Hummer"] img {
    filter: brightness(0) invert(0.92) contrast(0.9);
    opacity: 0.9;
}


/* ===== ADD SPACE UNDER WHY TITLE ===== */
.why .section-title {
    margin-bottom: 60px;
}


/* ===== FORCE SPACE UNDER SECTION TITLES ===== */
.section-title {
    margin-bottom: 80px !important;
}


/* ===== PRICES TITLE UPPERCASE ===== */
.brands .section-title {
    text-transform: uppercase;
}




/* ===== UNDERBODY STAGES ===== */
.underbody-stages .section-title {
    text-align: center;
    margin-bottom: 22px;
}

.underbody-stages .section-desc {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
    opacity: .85;
}

.stages-card {
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(10, 10, 10, .55);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    overflow: hidden;
}

.stages-tabs {
    display: flex;
    gap: 10px;
    padding: 18px 18px 0;
    flex-wrap: wrap;
}

.stage-tab {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .03);
    color: rgba(255, 255, 255, .85);
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

.stage-tab:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .22);
}

.stage-tab.is-active {
    background: rgba(192, 0, 0, .16);
    border-color: rgba(192, 0, 0, .55);
    color: #fff;
}

.stages-view {
    position: relative;
    padding: 18px;
}

.stages-image {
    width: 100%;

    object-fit: contain;
    display: block;
    border-radius: 18px;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: opacity .18s ease, transform .18s ease;
}

.stages-image.is-switching {
    opacity: 0;
    transform: scale(.995);
}

.stages-hint {
    position: absolute;
    right: 30px;
    bottom: 30px;
    font-size: 14px;
    opacity: .65;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .10);
    background: rgba(0, 0, 0, .35);
    backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
    .stages-image {
        height: 380px;
    }

    .stages-hint {
        right: 22px;
        bottom: 22px;
    }
}

/* center stages text */
.stages-tabs {
    justify-content: center;
    text-align: center;
}

.stage-tab {
    text-align: center;
}

.section-desc {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}


/* ===== UNDERBODY STAGES REVEAL (premium) ===== */
.stages-view {
    position: relative;
    padding: 18px;
}

.stages-canvas {
    position: relative;
    width: 100%;
    height: 560px;
    border-radius: 18px;
    background: rgba(0, 0, 0, .35);
    border: 1px solid rgba(255, 255, 255, .08);
    overflow: hidden;
    transform: translateZ(0);
}

.stages-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 18px;
    background: transparent;
}

.stages-image--base {
    z-index: 1;
}

.stages-image--top {
    z-index: 2;
    opacity: 0;
}

/* subtle gloss sweep */
.stages-sheen {
    position: absolute;
    inset: -30% -60%;
    background: linear-gradient(110deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, 0) 65%);
    transform: translateX(-60%) rotate(2deg);
    opacity: 0;
    z-index: 3;
    pointer-events: none;
}

.stages-canvas.is-revealing .stages-image--top {
    opacity: 1;
    animation: underbodyReveal 520ms ease both;
    /* reveal from left to right */
    clip-path: inset(0 100% 0 0);
}

.stages-canvas.is-revealing .stages-sheen {
    opacity: 1;
    animation: underbodySheen 520ms ease both;
}

@keyframes underbodyReveal {
    from {
        clip-path: inset(0 100% 0 0);
        filter: saturate(1.05) contrast(1.02);
    }

    to {
        clip-path: inset(0 0 0 0);
        filter: saturate(1.0) contrast(1.0);
    }
}

@keyframes underbodySheen {
    from {
        transform: translateX(-60%) rotate(2deg);
    }

    to {
        transform: translateX(60%) rotate(2deg);
    }
}

@media (max-width: 768px) {
    .stages-canvas {
        height: 380px;
    }
}


@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gallery-card figcaption {
        font-size: 12px;
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 7px 9px;
    }

    .gallery-card__zoom {
        display: none;
    }

    .gallery-toggle {
        width: 100%;
        min-width: 0;
    }

    .gallery-lightbox {
        padding: 16px;
    }

    .gallery-lightbox__dialog {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .gallery-lightbox__content {
        order: 1;
    }

    .gallery-lightbox__nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        font-size: 34px;
        z-index: 2;
    }

    .gallery-lightbox__nav:hover {
        transform: translateY(-50%) scale(1.04);
    }

    .gallery-lightbox__nav--prev {
        left: 6px;
    }

    .gallery-lightbox__nav--next {
        right: 6px;
    }

    .gallery-lightbox__close {
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 520px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==== FINAL FIXES: round avatars + green rating ==== */
.rating-card__score {
    color: #22c55e !important;
}

.review-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.review-card__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-avatar {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    overflow: hidden;
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    color: #ffffff;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.22);
    margin: 0 !important;
    aspect-ratio: 1 / 1;
    flex: 0 0 48px;
}


/* ==== SERVICES LAYOUT FIX ==== */
.services-grid-extended {
    align-items: stretch;
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card__content {
    flex: 1;
}

.service-card__request {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0.9;
}

.service-card__footer--request {
    align-items: center;
}

/* ==== REVIEWS ALIGN FIX ==== */
.review-card__header {
    justify-content: flex-start !important;
    align-items: center !important;
}

.review-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.review-card__name,
.review-card__source {
    text-align: left;
}