/* ==========================================================================
   ENOTACARS — тёмная премиальная тема
   Структура файла:
   1. Токены и база      5. Карточки, каталог
   2. Шапка и меню       6. Страница автомобиля
   3. Главный экран      7. Кабинет, админ-панель
   4. Кнопки, формы      8. Подвал и надпись ENOTACARS, анимации, адаптив
   ========================================================================== */

/* ===== 1. ТОКЕНЫ И БАЗА ===== */
:root {
    --bg: #000;
    --bg-2: #0a0a0a;
    --surface: #101010;
    --surface-2: #181818;
    --line: rgba(255, 255, 255, 0.14);
    --line-strong: rgba(255, 255, 255, 0.46); /* ≥3:1 на чёрном — границы полей и кнопок */
    --text: #f4f4f4;
    --text-2: #b8b8b8;
    --text-3: #8f8f8f;
    --danger: #ff8080;
    --ok: #86e3a8;
    --warn: #f1cb7b;

    --font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --header-h: 76px;
    --gutter: clamp(20px, 4.5vw, 64px);
    --maxw: 1440px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
    color-scheme: dark;
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

::selection {
    background: #fff;
    color: #000;
}

:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.main {
    flex: 1 0 auto;
    width: 100%;
    outline: none;
}

.skip-link {
    position: absolute;
    top: -120px;
    left: 16px;
    z-index: 1000;
    padding: 12px 20px;
    background: #fff;
    color: #000;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 12px;
}

.section-title {
    font-size: clamp(22px, 2.6vw, 34px);
    font-weight: 200;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: clamp(28px, 4vw, 56px);
}

/* ===== 2. ШАПКА И МЕНЮ ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 var(--gutter);
    isolation: isolate;
}

/* Фон шапки вынесен в псевдоэлемент: backdrop-filter на самой шапке
   сделал бы её «контейнером» для полноэкранного мобильного меню. */
.header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease);
}

.home .header::before {
    background: transparent;
    border-bottom-color: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.home .header.is-scrolled::before {
    background: rgba(0, 0, 0, 0.88);
    border-bottom-color: var(--line);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.header-inner {
    max-width: var(--maxw);
    height: var(--header-h);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 34px;
    height: 34px;
    color: #fff;
}

.logo-icon circle { stroke: currentColor; }
.logo-icon path { fill: currentColor; }

.logo-text {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.logo-accent {
    font-weight: 200;
    color: var(--text-2);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.6vw, 44px);
}

.header-nav a {
    position: relative;
    padding: 8px 0;
    color: var(--text-2);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.35s var(--ease);
}

.header-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 1px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--ease);
}

.header-nav a:hover,
.header-nav a.active,
.header-nav a:focus-visible {
    color: #fff;
}

.header-nav a:hover::after,
.header-nav a.active::after,
.header-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-menu-toggle {
    display: none;
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #fff;
}

.mobile-menu-toggle span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 1px;
    background: currentColor;
    transition: transform 0.5s var(--ease), opacity 0.3s;
}

.mobile-menu-toggle span:nth-child(1) { top: 16px; }
.mobile-menu-toggle span:nth-child(2) { opacity: 0; top: 22px; }
.mobile-menu-toggle span:nth-child(3) { top: 28px; }

.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
    :root { --header-h: 64px; }

    .mobile-menu-toggle { display: block; }
    .logo-text { font-size: 13px; letter-spacing: 0.28em; }

    .header-nav {
        position: fixed;
        inset: 0;
        z-index: 1;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 0;
        padding: calc(var(--header-h) + 16px) var(--gutter) 40px;
        background: #000;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.45s var(--ease), visibility 0s linear 0.45s;
    }

    .header-nav.active {
        opacity: 1;
        visibility: visible;
        transition-delay: 0s;
    }

    .header-nav a {
        padding: 18px 0;
        border-bottom: 1px solid var(--line);
        color: #fff;
        font-size: clamp(20px, 5.6vw, 30px);
        font-weight: 200;
        letter-spacing: 0.1em;
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.3s;
    }

    .header-nav a::after { display: none; }
    .header-nav a.active { color: var(--text-2); }

    .header-nav.active a {
        opacity: 1;
        transform: none;
    }

    .header-nav.active a:nth-child(1) { transition-delay: 0.08s; }
    .header-nav.active a:nth-child(2) { transition-delay: 0.13s; }
    .header-nav.active a:nth-child(3) { transition-delay: 0.18s; }
    .header-nav.active a:nth-child(4) { transition-delay: 0.23s; }
    .header-nav.active a:nth-child(5) { transition-delay: 0.28s; }
    .header-nav.active a:nth-child(6) { transition-delay: 0.33s; }
    .header-nav.active a:nth-child(7) { transition-delay: 0.38s; }

    /* когда меню открыто, шапка не должна быть прозрачной */
    .menu-open .header::before { background: #000; border-bottom-color: var(--line); }
}

/* ===== 3. ГЛАВНЫЙ ЭКРАН ===== */
.hero {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: calc(var(--header-h) + 48px) var(--gutter) clamp(72px, 13vh, 150px);
    overflow: hidden;
}

.home .hero { margin-top: calc(var(--header-h) * -1); }

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 55%;
    animation: heroSettle 2.8s var(--ease) both;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0.18) 52%, #000 100%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0) 62%);
}

.hero-content {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
}

.hero-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--text-2);
    margin-bottom: clamp(16px, 2.4vw, 28px);
}

.hero-title {
    font-size: clamp(34px, 10.5vw, 190px);
    font-weight: 200;
    line-height: 0.92;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-title span {
    font-weight: 500;
}

.hero-divider {
    width: 72px;
    height: 1px;
    margin: clamp(24px, 3.4vw, 44px) 0;
    background: #fff;
}

.hero-mission {
    max-width: 56ch;
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 300;
    line-height: 1.85;
    color: var(--text);
}

.hero-actions {
    margin-top: clamp(28px, 3.4vw, 44px);
}

.hero-scroll {
    position: absolute;
    right: var(--gutter);
    bottom: 32px;
    width: 44px;
    height: 72px;
    display: flex;
    justify-content: center;
    text-decoration: none;
}

.hero-scroll span {
    position: relative;
    width: 1px;
    height: 100%;
    background: var(--line-strong);
    overflow: hidden;
}

.hero-scroll span::after {
    content: "";
    position: absolute;
    left: 0;
    top: -40%;
    width: 1px;
    height: 40%;
    background: #fff;
    animation: scrollCue 2.4s var(--ease) infinite;
}

/* появление при загрузке */
.hero-content > * {
    animation: rise 1s var(--ease) both;
}
.hero-content > :nth-child(1) { animation-delay: 0.15s; }
.hero-content > :nth-child(2) { animation-delay: 0.3s; }
.hero-content > :nth-child(3) { animation-delay: 0.45s; }
.hero-content > :nth-child(4) { animation-delay: 0.55s; }
.hero-content > :nth-child(5) { animation-delay: 0.7s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
}

@keyframes heroSettle {
    from { transform: scale(1.07); opacity: 0.4; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes scrollCue {
    0% { top: -40%; }
    100% { top: 110%; }
}

@media (max-width: 700px), (max-height: 560px) {
    .hero-scroll { display: none; }
}

/* ===== 4. КНОПКИ И ФОРМЫ ===== */
.btn-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8em;
    min-height: 50px;
    padding: 0 34px;
    background: #000;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 25px;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.btn-login:hover {
    background: #fff;
    color: #000;
    border-color: #000;
}

.btn-login:active {
    opacity: 0.8;
}

.btn-secondary {
    background: #000;
    color: #fff;
    border-color: #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #000;
    border-color: #000;
}

.btn-login[disabled],
.btn-login:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-small {
    min-height: 40px !important;
    padding: 0 20px !important;
}

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

.form-group label,
.filter-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-3);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
input[type="datetime-local"],
input[type="date"],
select,
textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 0;
    background: transparent;
    color: var(--text);
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    border-radius: 0;
    font-family: var(--font);
    font-size: 16px; /* 16px — чтобы iOS не увеличивал страницу при фокусе */
    font-weight: 300;
    outline: none;
    transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-3);
    opacity: 1;
}

input:hover,
select:hover,
textarea:hover {
    border-bottom-color: #fff;
}

input:focus,
select:focus,
textarea:focus {
    border-bottom-color: #fff;
    box-shadow: 0 1px 0 0 #fff;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none; /* индикатор — утолщённая линия + box-shadow выше */
}

input.invalid { border-bottom-color: var(--danger); box-shadow: 0 1px 0 0 var(--danger); }
input.valid { border-bottom-color: var(--ok); }

select {
    padding-right: 28px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23ffffff' stroke-width='1'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
}

select option {
    background: #111;
    color: #fff;
}

textarea {
    min-height: 120px;
    padding: 14px;
    border: 1px solid var(--line-strong);
    resize: vertical;
}

textarea:focus {
    border-color: #fff;
    box-shadow: none;
}

/* автозаполнение браузера не должно красить поля в светлый цвет */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px #0a0a0a inset;
    transition: background-color 9999s ease-out 0s;
}

input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    width: 18px;
    height: 18px;
    min-height: 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: #fff;
    cursor: pointer;
    border: 0;
    box-shadow: none;
}

input[type="checkbox"]:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.remember-row,
.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
}

.remember-row label,
.consent-row label {
    margin: 0;
    font-size: 12.5px;
    font-weight: 300;
    letter-spacing: 0.02em;
    text-transform: none;
    line-height: 1.55;
    color: var(--text-2);
    cursor: pointer;
}

.consent-row label a { color: #fff; }

.error-message {
    display: none;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 400;
    color: var(--danger);
}

.error-message.visible { display: block; }

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(20px, 3vw, 40px);
}

.form-note {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-3);
}

.alert {
    margin-bottom: 28px;
    padding: 16px 20px;
    border: 1px solid var(--line-strong);
    font-size: 13.5px;
    line-height: 1.6;
}

.alert-error { border-color: var(--danger); color: var(--danger); }
.alert-warning { border-color: var(--warn); color: var(--warn); }

.success-message {
    display: none;
    margin-bottom: 28px;
    padding: 16px 20px;
    border: 1px solid var(--ok);
    color: var(--ok);
    font-size: 13.5px;
    line-height: 1.6;
}

.success-message.visible { display: block; }

/* ===== Блок авторизации / регистрации / служебные страницы ===== */
.auth-section {
    width: 100%;
    padding: clamp(72px, 9vw, 130px) var(--gutter);
    display: flex;
    justify-content: center;
    background: var(--bg);
}

.auth-container {
    width: 100%;
    max-width: 560px;
}

.register-container { max-width: 780px; }
.cabinet-container { max-width: 1120px; }

.auth-info {
    max-width: 52ch;
    font-size: 14.5px;
    font-weight: 300;
    line-height: 1.9;
    color: var(--text-2);
}

.auth-card {
    padding: clamp(28px, 4.5vw, 60px);
    background: var(--bg-2);
    border: 1px solid var(--line);
}

.auth-title {
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 200;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1.25;
}

.auth-divider {
    width: 48px;
    height: 1px;
    margin: 22px 0 clamp(28px, 3.5vw, 44px);
    background: #fff;
}

.auth-card form > .btn-login { width: 100%; }

.auth-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 28px;
}

.auth-links a {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-2);
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    padding-bottom: 3px;
    transition: color 0.3s, background-size 0.5s var(--ease);
}

.auth-links a:hover { color: #fff; background-size: 100% 1px; }
.auth-links.centered { justify-content: center; }

/* на главной — информация слева, форма справа */
.home .auth-container {
    max-width: var(--maxw);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    gap: clamp(32px, 7vw, 140px);
    align-items: center;
}

.home .auth-info {
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 200;
    line-height: 1.9;
    color: var(--text);
}

@media (max-width: 900px) {
    .home .auth-container { grid-template-columns: minmax(0, 1fr); }
    .form-row { grid-template-columns: minmax(0, 1fr); }
}

/* Cookie-плашка */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 500;
    max-width: 760px;
    margin: 0 auto;
    background: rgba(12, 12, 12, 0.96);
    border: 1px solid var(--line-strong);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: rise 0.7s var(--ease) both;
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
}

.cookie-banner-content p {
    font-size: 12.5px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-2);
}

.cookie-banner-content .btn-login { min-height: 42px; padding: 0 24px; flex-shrink: 0; }

@media (max-width: 560px) {
    .cookie-banner-content { flex-direction: column; align-items: stretch; }
}

/* ===== 5. КАРТОЧКИ И КАТАЛОГ ===== */
.latest-cars-section,
.catalog-section {
    width: 100%;
    padding: clamp(72px, 9vw, 130px) var(--gutter);
    background: var(--bg);
}

.latest-cars-container,
.catalog-container {
    max-width: var(--maxw);
    margin: 0 auto;
}

.latest-cars-section { border-top: 1px solid var(--line); }

.catalog-title {
    font-size: clamp(30px, 5vw, 72px);
    font-weight: 200;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: clamp(32px, 5vw, 64px);
}

.latest-cars-grid,
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: clamp(20px, 2.4vw, 36px);
}

.latest-cars-footer {
    display: flex;
    justify-content: center;
    margin-top: clamp(40px, 5vw, 72px);
}

.car-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid transparent;
    transition: border-color 0.5s var(--ease), background-color 0.5s var(--ease);
}

.car-card:hover,
.car-card:focus-within {
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.car-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0b0b0b;
}

.car-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    background: rgba(241, 203, 123, 0.95);
    color: #000;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 2;
}

.car-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.car-card:hover .car-card-image img { transform: scale(1.05); }

.car-card-placeholder,
.car-detail-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-3);
    background: #0b0b0b;
}

.car-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: clamp(20px, 2vw, 28px);
}

.car-card-title {
    font-size: 17px;
    font-weight: 300;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.35;
}

.car-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 16px;
    margin-top: 14px;
}

.car-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--text-2);
}

.car-card-price {
    margin-top: auto;
    padding-top: 6px;
    font-size: 22px;
    font-weight: 200;
    letter-spacing: 0.06em;
}

.car-card .btn-login {
    width: 100%;
    background: transparent;
    color: #fff;
    border-color: var(--line-strong);
}

.car-card .btn-login:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.catalog-empty {
    padding: 80px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: var(--text-2);
    border: 1px solid var(--line);
}

/* Фильтры */
.catalog-filters {
    margin-bottom: clamp(32px, 4vw, 56px);
    padding: clamp(20px, 3vw, 36px);
    background: var(--bg-2);
    border: 1px solid var(--line);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 8px clamp(20px, 2.4vw, 32px);
}

.filter-row-advanced {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.filter-row-buttons {
    margin-top: 28px;
    gap: 12px 16px;
}

.filter-row-buttons .btn-login { flex: 1; min-width: 0; }
.filter-row-mobile { display: none; }
.filter-desktop-only { display: block; }
.filter-toggle { margin-top: 0; }

.filter-group {
    flex: 1;
    min-width: 150px;
    margin-bottom: 16px;
}

@media (max-width: 767px) {
    .filter-desktop-only { display: none; }

    .filter-row-mobile {
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 4px;
    }

    .filter-row-mobile.visible { display: flex; }
    .filter-row-buttons {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
    }

    .filter-row-buttons .btn-login {
        width: 100%;
        text-align: center;
    }
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: clamp(40px, 5vw, 72px);
}

.pagination a,
.pagination span {
    min-width: 46px;
    height: 46px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-2);
    text-decoration: none;
    border: 1px solid var(--line);
    transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}

.pagination a:hover { color: #fff; border-color: #fff; }
.pagination .pagination-current { color: #000; background: #fff; border-color: #fff; }
.pagination .pagination-ellipsis { border-color: transparent; }

/* ===== 6. СТРАНИЦА АВТОМОБИЛЯ ===== */
.car-detail-section {
    width: 100%;
    padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(72px, 9vw, 130px);
    background: var(--bg);
}

.car-detail-container {
    max-width: var(--maxw);
    margin: 0 auto;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: clamp(20px, 3vw, 36px);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-3);
}

.breadcrumbs a {
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover { color: #fff; }
.breadcrumb-separator { color: var(--line-strong); }
.breadcrumb-current { color: #fff; }

.car-detail-gallery { margin-bottom: clamp(36px, 5vw, 72px); }

.gallery-container { position: relative; }

.gallery-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    background: rgba(241, 203, 123, 0.95);
    color: #000;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 3;
}

.gallery-main {
    aspect-ratio: 16 / 9;
    max-height: 78vh;
    width: 100%;
    overflow: hidden;
    background: #0b0b0b;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
    transition: opacity 0.4s var(--ease);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 52px;
    height: 52px;
    padding: 0;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid var(--line-strong);
    cursor: pointer;
    opacity: 0;
    transition: background-color 0.3s, border-color 0.3s, opacity 0.3s;
}

.gallery-container:hover .gallery-nav {
    opacity: 0.3;
}

.gallery-nav:hover {
    opacity: 1;
}

.gallery-nav::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 1px solid #fff;
    border-right: 1px solid #fff;
}

.gallery-nav-prev { left: 16px; }
.gallery-nav-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.gallery-nav-next { right: 16px; }
.gallery-nav-next::before { transform: translate(-70%, -50%) rotate(45deg); }
.gallery-nav:hover { background: #fff; border-color: #fff; }
.gallery-nav:hover::before { border-color: #000; }

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding-bottom: 6px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}

.gallery-thumbnail {
    flex: 0 0 auto;
    width: 120px;
    height: 76px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.5;
    border-bottom: 2px solid transparent;
    transition: opacity 0.35s, border-color 0.35s;
}

.gallery-thumbnail:hover { opacity: 0.85; }
.gallery-thumbnail.active { opacity: 1; border-bottom-color: #fff; }

.car-detail-main { margin-bottom: clamp(48px, 6vw, 96px); }

.car-detail-info {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-areas:
        "title specs"
        "price specs"
        "actions specs";
    grid-template-rows: auto auto 1fr;
    gap: 0 clamp(32px, 7vw, 120px);
    align-items: start;
}

.car-detail-title {
    grid-area: title;
    font-size: clamp(28px, 4.2vw, 60px);
    font-weight: 200;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.08;
}

.car-detail-price {
    grid-area: price;
    margin: 20px 0 clamp(28px, 3vw, 40px);
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 300;
    letter-spacing: 0.06em;
}

.car-detail-specs {
    grid-area: specs;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(20px, 3vw, 40px);
    border-top: 1px solid var(--line);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.spec-label {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-3);
}

.spec-value {
    font-size: 16px;
    font-weight: 300;
    color: var(--text);
}

.car-detail-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.car-detail-actions .btn-login {
    flex: 1;
    min-width: 200px;
}

.car-detail-description {
    max-width: 860px;
    margin-bottom: clamp(48px, 6vw, 96px);
}

.description-text {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.95;
    color: var(--text-2);
}

.car-detail-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px clamp(24px, 4vw, 56px);
    margin-bottom: clamp(48px, 6vw, 96px);
}

.car-detail-features .section-title { grid-column: 1 / -1; margin-bottom: 0; }

.feature-category-title {
    margin-bottom: 14px;
    padding-bottom: 12px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-3);
    border-bottom: 1px solid var(--line);
}

.feature-list { list-style: none; }

.feature-list li {
    position: relative;
    padding: 6px 0 6px 20px;
    font-size: 14px;
    font-weight: 300;
    color: var(--text-2);
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 1px;
    background: #fff;
}

.booking-forms {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 40px);
}

.booking-form {
    padding: clamp(24px, 3.4vw, 48px);
    background: var(--bg-2);
    border: 1px solid var(--line);
    scroll-margin-top: calc(var(--header-h) + 20px);
}

.booking-form .section-title { font-size: clamp(18px, 1.8vw, 24px); margin-bottom: 28px; }
.booking-form .btn-login { width: 100%; }

.booking-prompt {
    padding: clamp(24px, 3.4vw, 48px);
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    color: var(--text-2);
    border: 1px solid var(--line);
}

.booking-prompt a { color: #fff; }

/* Просмотр фото */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 16px 16px;
    background: rgba(0, 0, 0, 0.96);
    animation: fadeIn 0.35s var(--ease) both;
}

.lightbox img {
    max-width: min(96vw, 1800px);
    max-height: 88vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 48px;
    height: 48px;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 36px;
    font-weight: 200;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.lightbox-close:hover { opacity: 1; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
    .car-detail-info {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "title" "price" "actions" "specs";
        grid-template-rows: auto;
    }

    .car-detail-actions { margin-bottom: 32px; }
    .booking-forms { grid-template-columns: minmax(0, 1fr); }
    .gallery-main { aspect-ratio: 4 / 3; }
    .gallery-nav { width: 44px; height: 44px; }
    .gallery-thumbnail { width: 96px; height: 62px; }
}

@media (max-width: 480px) {
    .car-detail-specs { grid-template-columns: minmax(0, 1fr); }
    .car-detail-actions .btn-login { width: 100%; }
}

/* ===== 7. ЛИЧНЫЙ КАБИНЕТ И АДМИН-ПАНЕЛЬ ===== */
.cabinet-greeting {
    margin-bottom: 28px;
    font-size: 17px;
    font-weight: 200;
    letter-spacing: 0.06em;
}

.cabinet-list { margin-bottom: 32px; border-top: 1px solid var(--line); }

.cabinet-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.cabinet-label {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-3);
}

.cabinet-value {
    font-size: 15px;
    font-weight: 300;
    text-align: right;
    word-break: break-word;
}

.cabinet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cabinet-section { margin-top: clamp(40px, 5vw, 72px); }

.cabinet-section-title {
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.cabinet-empty,
.admin-empty {
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    color: var(--text-2);
    border: 1px solid var(--line);
}

.cabinet-table-wrapper,
.admin-table-wrapper {
    overflow-x: auto;
    margin-bottom: 32px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
}

.cabinet-table,
.admin-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

.cabinet-table th,
.admin-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-3);
    border-bottom: 1px solid var(--line-strong);
}

.cabinet-table td,
.admin-table td {
    padding: 16px;
    font-size: 14px;
    font-weight: 300;
    vertical-align: middle;
    border-bottom: 1px solid var(--line);
}

.cabinet-table tbody tr,
.admin-table tbody tr { transition: background-color 0.3s; }
.cabinet-table tbody tr:hover,
.admin-table tbody tr:hover { background: var(--surface); }

.admin-section {
    width: 100%;
    padding: clamp(48px, 6vw, 90px) var(--gutter) clamp(72px, 9vw, 130px);
    background: var(--bg);
}

.admin-container {
    max-width: var(--maxw);
    margin: 0 auto;
}

.admin-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.admin-header-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.admin-title {
    font-size: clamp(24px, 3.4vw, 44px);
    font-weight: 200;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-tabs {
    display: flex;
    gap: clamp(16px, 3vw, 40px);
    margin-bottom: 36px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar { display: none; }

.admin-tab {
    flex: 0 0 auto;
    padding: 14px 0;
    margin-bottom: -1px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid transparent;
    font-family: var(--font);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-3);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s, border-color 0.3s;
}

.admin-tab:hover { color: #fff; }
.admin-tab.active { color: #fff; border-bottom-color: #fff; }

.admin-thumb {
    width: 72px;
    height: 48px;
    object-fit: cover;
}

.admin-no-photo { font-size: 12px; color: var(--text-3); }

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-2);
    border: 1px solid var(--line-strong);
}

.status-available,
.status-confirmed,
.status-completed { color: var(--ok); border-color: rgba(134, 227, 168, 0.5); }
.status-reserved,
.status-pending { color: var(--warn); border-color: rgba(241, 203, 123, 0.5); }
.status-sold { color: var(--text-3); }
.status-cancelled { color: var(--danger); border-color: rgba(255, 128, 128, 0.5); }

.admin-btn {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    background: transparent;
    border: 1px solid var(--line-strong);
    font-family: var(--font);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.admin-btn-edit:hover { background: #fff; color: #000; border-color: #fff; }
.admin-btn-delete { color: var(--danger); border-color: rgba(255, 128, 128, 0.45); }
.admin-btn-delete:hover { background: var(--danger); color: #000; border-color: var(--danger); }

.delete-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.3s;
}

.delete-icon-btn:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: #000;
}

.delete-icon-btn svg {
    width: 16px;
    height: 16px;
}

.admin-form,
.admin-inline-form {
    padding: clamp(20px, 3.4vw, 48px);
    background: var(--bg-2);
    border: 1px solid var(--line);
}

.admin-inline-form { margin-bottom: 24px; padding: clamp(18px, 2.4vw, 28px); }
.admin-inline-form h3 { margin-bottom: 18px; font-size: 13px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.admin-form .form-group { margin-bottom: 24px; }
.admin-preview { max-width: 220px; margin-top: 12px; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px 20px;
    margin-top: 12px;
}

.feature-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 300;
    color: var(--text-2);
    cursor: pointer;
}

.admin-form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.admin-form-actions .btn-login { flex: 1 1 200px; }

.existing-images {
    margin-top: 16px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    clear: both;
}

.existing-images p { margin-bottom: 14px; font-size: 13px; color: var(--text-2); }

#imageSortList { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }

.sortable-image {
    display: inline-block;
    flex-shrink: 0;
    padding: 5px;
    background: var(--surface-2);
    border: 1px solid var(--line-strong);
    cursor: move;
    transition: border-color 0.3s;
}

.sortable-image:hover { border-color: #fff; }
.sortable-image img { display: block; }

pre {
    padding: 16px;
    overflow-x: auto;
    font-size: 12.5px;
    color: var(--text-2);
    background: var(--surface);
    border: 1px solid var(--line);
}

/* ===== Страница ошибки ===== */
.error-content { text-align: center; }
.error-icon { width: 64px; height: 64px; margin: 0 auto 28px; }
.error-content .error-message {
    display: block;
    margin: 0 0 28px;
    font-size: 14.5px;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-2);
}

.error-details,
.error-tech {
    margin-bottom: 20px;
    padding: 18px 20px;
    text-align: left;
    border: 1px solid var(--line-strong);
    font-size: 13.5px;
    line-height: 1.6;
}

.error-details { border-color: rgba(255, 128, 128, 0.5); }
.error-details p:first-child,
.error-tech p:first-child { margin-bottom: 6px; font-weight: 500; color: #fff; }
.error-details p:not(:first-child) { color: var(--danger); }
.tech-error { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 12px; color: var(--text-2); word-break: break-word; }

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 28px 0;
}

.error-contact { font-size: 13px; font-weight: 300; color: var(--text-2); }
.error-contact a { color: #fff; }

@media (max-width: 767px) {
    .cabinet-row { flex-direction: column; gap: 4px; }
    .cabinet-value { text-align: left; }
}

/* ===== 8. ПОДВАЛ И НАДПИСЬ ENOTACARS ===== */
.footer {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    background: #000;
    border-top: 1px solid var(--line);
}

.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(56px, 7vw, 100px) var(--gutter) 0;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 5vw, 80px);
    padding-bottom: clamp(40px, 5vw, 72px);
}

.footer-brand {
    display: flex;
    align-items: center;
    align-self: start;
    gap: 14px;
}

.footer-logo { width: 38px; height: 38px; color: #fff; }
.footer-logo circle { stroke: currentColor; }
.footer-logo path { fill: currentColor; }

.footer-brand-name {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
}

.footer h3 {
    margin-bottom: 18px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-3);
}

.footer p {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.9;
    color: var(--text-2);
}

.footer a {
    color: var(--text-2);
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    padding-bottom: 2px;
    transition: color 0.3s, background-size 0.5s var(--ease);
}

.footer a:hover { color: #fff; background-size: 100% 1px; }

.footer-nav p {
    margin-bottom: 8px;
}

.footer-bottom {
    padding: 22px 0 clamp(20px, 3vw, 36px);
    border-top: 1px solid var(--line);
}

.footer-bottom p {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--text-3);
}

/* Огромная тёмная надпись: растягивается на всю ширину страницы.
   Размер задаёт сам SVG (viewBox), а textLength подгоняет ширину текста
   независимо от того, загрузился ли шрифт. */
.footer-wordmark {
    position: relative;
    padding: 0 clamp(8px, 1.2vw, 20px);
    margin-top: -2px;
    line-height: 0;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

.footer-wordmark .wm {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.footer-wordmark text {
    font-family: var(--font);
    font-size: 150px;
    font-weight: 600; /* совпадает с подключённым начертанием Montserrat */
}

.footer-wordmark .wm-stacked { display: none; }
.footer-wordmark .wm-stacked text { font-size: 248px; }

/* лёгкое затухание у нижнего края — надпись «врастает» в подвал,
   но буквы остаются читаемыми до самой базовой линии */
.footer-wordmark::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 24%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.72));
}

@media (max-width: 900px) {
    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; }
}

/* на телефоне надпись набирается в две строки — получается крупнее */
@media (max-width: 640px) {
    .footer-top { grid-template-columns: minmax(0, 1fr); }
    .footer-wordmark .wm-wide { display: none; }
    .footer-wordmark .wm-stacked { display: block; }
    .footer-wordmark { padding: 0 12px; }
}

/* ===== Анимации появления (включаются скриптом ui.js) ===== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.footer-wordmark.reveal { transform: translateY(40px); transition-duration: 1.4s; }
.footer-wordmark.reveal.is-visible { transform: none; }

/* ===== Уважение к настройке «уменьшить движение» ===== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }

    .reveal { opacity: 1; transform: none; }
    .hero-scroll span::after { animation: none; top: 0; height: 100%; opacity: 0.5; }
}

/* Высокая контрастность / принудительные цвета */
@media (forced-colors: active) {
    .btn-login, .admin-btn, .gallery-nav { border: 1px solid ButtonText; }
    .footer-wordmark { forced-color-adjust: none; }
}

@media print {
    .header, .footer-wordmark, .cookie-banner, .hero-scroll { display: none !important; }
    body { background: #fff; color: #000; }
}
