/* ==========================================================================
   Carclub.az — design system
   Palette: ink black + gold. Type: Montserrat.
   ========================================================================== */

:root {
    --gold: #d4ad00;
    --gold-soft: #f0c92b;
    --gold-dim: rgba(212, 173, 0, .16);

    /* Brushed-gold fill for buttons: a light top edge falling to a darker
       bottom reads as metal, where one flat colour reads as a plastic chip. */
    --gold-grad: linear-gradient(180deg, #f7dc86 0%, #e2bd4c 26%, #c99f28 62%, #ab8410 100%);
    --gold-grad-hi: linear-gradient(180deg, #fdeaa8 0%, #edcb62 26%, #d7ac33 62%, #bb9117 100%);
    --gold-ink: #241b04;

    --ink: #0a0a0b;
    --ink-2: #121214;
    --ink-3: #1a1a1d;
    --ink-4: #232327;

    --line: rgba(255, 255, 255, .09);
    --line-2: rgba(255, 255, 255, .16);

    --fg: #ffffff;
    --fg-2: rgba(255, 255, 255, .72);
    --fg-3: rgba(255, 255, 255, .48);

    --ok: #22c55e;
    --err: #ef4444;

    --radius: 14px;
    --radius-lg: 22px;
    --radius-sm: 9px;

    --wrap: 1240px;
    --gut: 24px;

    --header-h: 76px;

    --shadow: 0 18px 48px rgba(0, 0, 0, .45);
    --shadow-sm: 0 6px 20px rgba(0, 0, 0, .35);

    --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

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

body {
    font-family: Montserrat, "Segoe UI", system-ui, -apple-system, sans-serif;
    background: var(--ink);
    color: var(--fg);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    /* clip, not hidden: `overflow-x: hidden` turns body into a scroll
       container and that stops `position: sticky` from working inside it */
    overflow-x: clip;
}

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

/* <picture> wraps the responsive images; it must not affect the layout,
   so it takes the same box as the <img> it holds. */
picture {
    display: block;
}

.hero__bg picture,
.car__media picture,
.gallery__shot picture,
.about__media picture {
    width: 100%;
    height: 100%;
}

img {
    height: auto;
}

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

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

button {
    background: none;
    border: 0;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
    padding: 0;
}

/* Author styles beat the browser's [hidden] rule, so any element we give a
   display to (.car is a flex column) would stay visible when hidden. */
[hidden] {
    display: none !important;
}

h1,
h2,
h3,
h4 {
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.02em;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

::selection {
    background: var(--gold);
    color: #000;
}

/* ---------- layout ---------- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gut);
}

.section {
    padding-block: clamp(56px, 8vw, 104px);
}

.section--tight {
    padding-block: clamp(40px, 5vw, 64px);
}

.section--alt {
    background: var(--ink-2);
}

/* Textured section: the honeycomb plate sits behind the copy, darkened on the
   side that holds the image so the text keeps its contrast.
   The image itself comes from --texture, set inline by the template. */
.section--texture {
    position: relative;
    background-color: var(--ink);
}

/* the plate covers exactly the half of the section that holds the copy */
.section--texture::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 50%;
    background-image:
        linear-gradient(rgba(10, 10, 11, .28), rgba(10, 10, 11, .28)),
        var(--texture, none);
    background-size: auto, contain;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;
}

.section--texture>* {
    position: relative;
    z-index: 1;
}

[dir="rtl"] .section--texture::before {
    right: auto;
    left: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- headings ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    background: var(--gold);
}

.h1 {
    font-size: clamp(34px, 6.4vw, 66px);
}

.h2 {
    font-size: clamp(27px, 4vw, 42px);
}

.h3 {
    font-size: clamp(19px, 2.2vw, 24px);
}

.lead {
    color: var(--fg-2);
    font-size: clamp(15px, 1.6vw, 17px);
}

.section-head {
    margin-bottom: clamp(28px, 4vw, 48px);
    max-width: 720px;
}

.section-head--row {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

/* ---------- buttons ---------- */
.btn {
    --btn-bg: var(--gold-grad);
    --btn-bg-hover: var(--gold-grad-hi);
    --btn-fg: var(--gold-ink);
    --btn-bd: rgba(255, 240, 190, .34);
    --btn-glow: rgba(198, 157, 38, .34);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 26px;
    border: 1px solid var(--btn-bd);
    border-radius: 100px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .45),
        inset 0 -1px 0 rgba(0, 0, 0, .16),
        0 3px 12px rgba(0, 0, 0, .34);
    transition: transform .18s var(--ease), box-shadow .18s var(--ease),
        background .22s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}

.btn:hover {
    background: var(--btn-bg-hover);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .55),
        inset 0 -1px 0 rgba(0, 0, 0, .16),
        0 10px 26px var(--btn-glow);
}

.btn:active {
    transform: translateY(0);
    box-shadow:
        inset 0 2px 5px rgba(0, 0, 0, .28),
        0 2px 8px rgba(0, 0, 0, .3);
}

.btn svg {
    width: 17px;
    height: 17px;
    flex: none;
}

.btn--ghost {
    --btn-bg: transparent;
    --btn-bg-hover: rgba(255, 255, 255, .06);
    --btn-fg: var(--fg);
    --btn-bd: var(--line-2);
    box-shadow: none;
}

.btn--ghost:hover {
    border-color: rgba(212, 173, 0, .6);
    color: var(--gold-soft);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}

.btn--ghost:active {
    box-shadow: none;
}

/* WhatsApp keeps the brand's black-and-gold palette instead of the messenger
   green — the icon carries the recognition, the colour carries the tone. */
.btn--wa {
    --btn-bg: linear-gradient(180deg, #26261f 0%, #18181a 52%, #0e0e10 100%);
    --btn-bg-hover: linear-gradient(180deg, #302f25 0%, #1f1f21 52%, #141416 100%);
    --btn-fg: var(--gold-soft);
    --btn-bd: rgba(212, 173, 0, .45);
    --btn-glow: rgba(212, 173, 0, .26);
}

.btn--wa:hover {
    --btn-fg: #f7dc86;
    border-color: rgba(240, 201, 43, .75);
}

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

.btn--lg {
    padding: 16px 34px;
    font-size: 15px;
}

/* ---------- header ---------- */
.topbar {
    background: #000;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.topbar__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 40px;
}

.topbar__contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--fg-2);
    flex-wrap: wrap;
}

.topbar__contacts a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: color .16s var(--ease);
}

.topbar__contacts a:hover {
    color: var(--gold);
}

.topbar__contacts svg {
    width: 14px;
    height: 14px;
    color: var(--gold);
    flex: none;
}

.header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(10, 10, 11, .86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.header__in {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: var(--header-h);
}

.logo {
    flex: none;
    display: block;
}

.logo img {
    height: 46px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline: auto;
}

.nav a {
    position: relative;
    padding: 9px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--fg-2);
    border-radius: 8px;
    transition: color .16s var(--ease), background .16s var(--ease);
}

.nav a:hover {
    color: var(--fg);
    background: rgba(255, 255, 255, .05);
}

.nav a.is-active {
    color: var(--gold);
}

.nav a.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
}

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

/* language switcher */
.lang {
    position: relative;
}

.lang__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--line-2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: border-color .16s var(--ease), color .16s var(--ease);
}

.lang__btn:hover,
.lang.is-open .lang__btn {
    border-color: var(--gold);
    color: var(--gold);
}

.lang__btn svg {
    width: 11px;
    height: 11px;
    transition: transform .18s var(--ease);
}

.lang.is-open .lang__btn svg {
    transform: rotate(180deg);
}

.lang__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 148px;
    padding: 6px;
    background: var(--ink-3);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    display: none;
    z-index: 20;
}

.lang.is-open .lang__menu {
    display: block;
}

.lang__menu a {
    display: block;
    padding: 9px 13px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--fg-2);
    transition: background .16s var(--ease), color .16s var(--ease);
}

.lang__menu a:hover {
    background: rgba(255, 255, 255, .06);
    color: var(--fg);
}

.lang__menu a.is-active {
    color: var(--gold);
    font-weight: 700;
}

/* burger */
.burger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.burger span {
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: var(--fg);
    transition: transform .22s var(--ease), opacity .18s var(--ease);
}

body.nav-open .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

body.nav-open .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* mobile drawer */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s var(--ease), visibility .24s var(--ease);
}

body.nav-open .drawer {
    opacity: 1;
    visibility: visible;
}

.drawer__panel {
    position: absolute;
    inset-block: 0;
    right: 0;
    width: min(370px, 88vw);
    background: var(--ink-2);
    border-left: 1px solid var(--line);
    padding: 22px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

body.nav-open .drawer__panel {
    transform: none;
}

.drawer__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.drawer__close {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    display: grid;
    place-items: center;
}

.drawer__close svg {
    width: 17px;
    height: 17px;
}

.drawer__nav a {
    display: block;
    padding: 14px 4px;
    font-size: 17px;
    font-weight: 700;
    border-bottom: 1px solid var(--line);
    transition: color .16s var(--ease), padding-left .16s var(--ease);
}

.drawer__nav a:hover,
.drawer__nav a.is-active {
    color: var(--gold);
    padding-left: 10px;
}

.drawer__langs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.drawer__langs a {
    padding: 9px 16px;
    border: 1px solid var(--line-2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.drawer__langs a.is-active {
    background: var(--gold-grad);
    border-color: rgba(255, 240, 190, .38);
    color: var(--gold-ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42);
}

.drawer__contacts {
    display: grid;
    gap: 12px;
    padding-top: 4px;
}

.drawer__contacts a {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 15px;
    color: var(--fg-2);
}

.drawer__contacts svg {
    width: 17px;
    height: 17px;
    color: var(--gold);
    flex: none;
}

/* social */
.socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.socials a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    color: var(--fg-2);
    transition: all .18s var(--ease);
}

.socials a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: #000;
    transform: translateY(-2px);
}

.socials svg {
    width: 16px;
    height: 16px;
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    min-height: clamp(560px, 84vh, 780px);
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

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

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

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(100deg, rgba(0, 0, 0, .93) 0%, rgba(0, 0, 0, .74) 42%, rgba(0, 0, 0, .38) 72%, rgba(0, 0, 0, .6) 100%),
        linear-gradient(to top, var(--ink) 2%, transparent 34%);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
    width: 100%;
    padding-block: clamp(48px, 7vw, 80px);
}

.hero__title {
    margin-bottom: 20px;
}

.hero__title span {
    color: var(--gold);
    display: block;
}

.hero__text {
    max-width: 50ch;
    margin-bottom: 30px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 34px;
}

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 44px);
    padding-top: 26px;
    border-top: 1px solid var(--line-2);
}

.hero__stat b {
    display: block;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--gold);
    line-height: 1.1;
}

.hero__stat span {
    font-size: 13px;
    color: var(--fg-2);
}

/* ---------- form card ---------- */
.form-card {
    background: rgba(18, 18, 20, .88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    padding: clamp(24px, 3vw, 34px);
    box-shadow: var(--shadow);
}

.form-card__title {
    font-size: 22px;
    margin-bottom: 6px;
}

.form-card__sub {
    font-size: 14px;
    color: var(--fg-3);
    margin-bottom: 22px;
}

.form {
    display: grid;
    gap: 14px;
}

.field {
    display: grid;
    gap: 6px;
}

.field label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fg-3);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 13px 15px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: border-color .16s var(--ease), background .16s var(--ease);
}

.field textarea {
    min-height: 104px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--fg-3);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, .07);
}

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23d4ad00' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 11px;
    padding-right: 38px;
}

.field select option {
    background: var(--ink-3);
    color: var(--fg);
}

.field--row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form__note {
    font-size: 12px;
    color: var(--fg-3);
    line-height: 1.5;
}

.form-msg {
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    border: 1px solid;
}

.form-msg--ok {
    border-color: rgba(34, 197, 94, .45);
    background: rgba(34, 197, 94, .1);
    color: #86efac;
}

.form-msg--err {
    border-color: rgba(239, 68, 68, .45);
    background: rgba(239, 68, 68, .1);
    color: #fca5a5;
}

.field.has-error input,
.field.has-error textarea {
    border-color: var(--err);
}

/* ---------- brands strip ---------- */
.brands {
    border-block: 1px solid var(--line);
    background: var(--ink-2);
    padding-block: 30px;
}

.brands__list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 54px);
    flex-wrap: wrap;
}

.brands__list img {
    height: clamp(34px, 5vw, 50px);
    width: auto;
    object-fit: contain;
    opacity: .62;
    filter: grayscale(1);
    transition: opacity .2s var(--ease), filter .2s var(--ease);
}

.brands__list img:hover {
    opacity: 1;
    filter: none;
}

/* ---------- feature tiles ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}

.feature {
    padding: 26px 24px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.feature:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.feature__ico {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--gold-dim);
    color: var(--gold);
    margin-bottom: 16px;
}

.feature__ico svg {
    width: 22px;
    height: 22px;
}

.feature h3 {
    font-size: 17px;
    margin-bottom: 7px;
}

.feature p {
    font-size: 14px;
    color: var(--fg-2);
    line-height: 1.6;
}

/* ---------- car cards ---------- */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: clamp(16px, 2vw, 26px);
}

.car {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}

.car:hover {
    border-color: rgba(212, 173, 0, .55);
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.car__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ink-3);
}

.car__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.car:hover .car__media img {
    transform: scale(1.06);
}

.car__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: 100px;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(6px);
    border: 1px solid var(--line-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
}

.car__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
    gap: 16px;
}

.car__title {
    font-size: 19px;
}

.car__brand {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--fg-3);
    margin-bottom: 4px;
}

.car__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    padding-block: 4px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.car__spec {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--fg-2);
    min-width: 0;
}

.car__spec svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
    flex: none;
}

.car__spec span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.car__foot {
    margin-top: auto;
    display: flex;
    gap: 9px;
}

.car__foot .btn {
    flex: 1;
    padding-inline: 14px;
    font-size: 12.5px;
}

.car__foot .btn--icon {
    flex: none;
    width: 46px;
    padding: 0;
}

/* ---------- filters ---------- */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 30px;
}

.chip {
    padding: 9px 19px;
    border: 1px solid var(--line-2);
    border-radius: 100px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--fg-2);
    transition: all .18s var(--ease);
}

.chip:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.chip.is-active {
    background: var(--gold-grad);
    border-color: rgba(255, 240, 190, .38);
    color: var(--gold-ink);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .45),
        0 4px 14px rgba(0, 0, 0, .32);
}

.chip__n {
    opacity: .6;
    font-size: 12px;
    font-weight: 700;
}

.chip.is-active .chip__n {
    opacity: .72;
}

/* brief dip while the grid re-filters, so the change is visible */
.cars-grid {
    transition: opacity .16s var(--ease);
}

.cars-grid.is-swapping {
    opacity: .25;
}

.empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--fg-3);
    border: 1px dashed var(--line-2);
    border-radius: var(--radius);
}

/* ---------- page hero (inner pages) ---------- */
.phero {
    position: relative;
    padding-block: clamp(46px, 7vw, 84px);
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.phero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(700px 320px at 82% -10%, rgba(212, 173, 0, .13), transparent 70%);
    pointer-events: none;
}

.phero__in {
    position: relative;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--fg-3);
    margin-bottom: 14px;
}

.crumbs a:hover {
    color: var(--gold);
}

.crumbs svg {
    width: 12px;
    height: 12px;
    opacity: .5;
}

/* ---------- car detail ---------- */
.detail {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: clamp(24px, 3.4vw, 46px);
    align-items: start;
}

/* Photos run down the page as one column; the spec panel stays put beside them. */
.gallery {
    display: grid;
    gap: 14px;
}

.gallery__shot {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    aspect-ratio: 16 / 10;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--ink-2);
    cursor: zoom-in;
    transition: border-color .22s var(--ease);
}

.gallery__shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.gallery__shot:hover {
    border-color: rgba(212, 173, 0, .5);
}

.gallery__shot:hover img {
    transform: scale(1.03);
}

.gallery__badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 11px;
    border-radius: 100px;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(6px);
    border: 1px solid var(--line-2);
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity .2s var(--ease);
}

.gallery__shot:hover .gallery__badge,
.gallery__shot:focus-visible .gallery__badge {
    opacity: 1;
}

.spec-panel {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(22px, 2.6vw, 30px);
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.spec-panel__brand {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.spec-panel__title {
    font-size: clamp(23px, 2.6vw, 30px);
    margin-bottom: 20px;
}

.spec-list {
    display: grid;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 22px;
}

.spec-list__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 16px;
    background: var(--ink-3);
    font-size: 14px;
}

.spec-list__row dt {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--fg-2);
}

.spec-list__row svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
    flex: none;
}

.spec-list__row dd {
    font-weight: 700;
    text-align: right;
}

.spec-panel__actions {
    display: grid;
    gap: 10px;
}

.spec-panel__note {
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    background: var(--gold-dim);
    border: 1px solid rgba(212, 173, 0, .3);
    font-size: 13px;
    color: var(--gold-soft);
    display: flex;
    gap: 10px;
    line-height: 1.5;
}

.spec-panel__note svg {
    width: 17px;
    height: 17px;
    flex: none;
    margin-top: 2px;
}

/* lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, .93);
    display: none;
    place-items: center;
    padding: 24px;
}

.lightbox.is-open {
    display: grid;
}

.lightbox img {
    max-width: 100%;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 10px;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-2);
    border-radius: 50%;
}

.lightbox__close:hover {
    background: var(--gold);
    color: #000;
}

.lightbox__nav {
    position: absolute;
    top: 50%;
    translate: 0 -50%;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    background: rgba(0, 0, 0, .5);
}

.lightbox__nav:hover {
    background: var(--gold);
    color: #000;
}

.lightbox__nav--prev {
    left: 18px;
}

.lightbox__nav--next {
    right: 18px;
}

.lightbox__count {
    position: absolute;
    bottom: 22px;
    left: 50%;
    translate: -50% 0;
    padding: 6px 15px;
    border-radius: 100px;
    background: rgba(0, 0, 0, .6);
    border: 1px solid var(--line-2);
    font-size: 13px;
    font-weight: 600;
}

.lightbox svg {
    width: 18px;
    height: 18px;
}

/* ---------- about ---------- */
.about {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 58px);
    align-items: center;
}

.about__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

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

.about__text p+p {
    margin-top: 15px;
}

.about__text p {
    color: var(--fg-2);
    line-height: 1.8;
}

.about__badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    padding: 14px 20px;
    border-radius: var(--radius);
    background: rgba(10, 10, 11, .84);
    backdrop-filter: blur(10px);
    border: 1px solid var(--line-2);
}

.about__badge b {
    display: block;
    font-size: 26px;
    color: var(--gold);
    line-height: 1.1;
}

.about__badge span {
    font-size: 12.5px;
    color: var(--fg-2);
}

/* ---------- contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(26px, 3.4vw, 48px);
    align-items: start;
}

.contact-list {
    display: grid;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 17px 19px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}

.contact-item:hover {
    border-color: var(--gold);
    transform: translateX(3px);
}

.contact-item__ico {
    width: 44px;
    height: 44px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--gold-dim);
    color: var(--gold);
}

.contact-item__ico svg {
    width: 19px;
    height: 19px;
}

.contact-item small {
    display: block;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--fg-3);
}

.contact-item b {
    font-size: 15.5px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    aspect-ratio: 16 / 10;
    background: var(--ink-2);
}

.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    filter: grayscale(.55) invert(.9) hue-rotate(180deg) contrast(.88);
}

/* ---------- CTA band ---------- */
.cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: clamp(32px, 4.6vw, 60px);
    background: linear-gradient(120deg, var(--ink-3), var(--ink-2));
    border: 1px solid var(--line-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(560px 260px at 88% 0%, rgba(212, 173, 0, .18), transparent 68%);
    pointer-events: none;
}

.cta__text {
    position: relative;
    max-width: 60ch;
}

.cta__text p {
    color: var(--fg-2);
    margin-top: 9px;
}

.cta__actions {
    position: relative;
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
}

/* ---------- footer ---------- */
.footer {
    background: #060607;
    border-top: 1px solid var(--line);
    padding-top: clamp(44px, 5vw, 68px);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.3fr;
    gap: clamp(28px, 4vw, 56px);
    padding-bottom: 40px;
}

.footer__about p {
    font-size: 14px;
    color: var(--fg-2);
    margin-block: 16px 18px;
    max-width: 42ch;
}

.footer h4 {
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 17px;
}

.footer__links {
    display: grid;
    gap: 10px;
}

.footer__links a {
    font-size: 14.5px;
    color: var(--fg-2);
    transition: color .16s var(--ease), padding-left .16s var(--ease);
}

.footer__links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer__contacts {
    display: grid;
    gap: 12px;
}

.footer__contacts a,
.footer__contacts span {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 14.5px;
    color: var(--fg-2);
    transition: color .16s var(--ease);
}

.footer__contacts a:hover {
    color: var(--gold);
}

.footer__contacts svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
    flex: none;
}

.footer__bottom {
    border-top: 1px solid var(--line);
    padding-block: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--fg-3);
}

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

/* ---------- floating whatsapp ---------- */
.fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #26261f 0%, #18181a 52%, #0d0d0f 100%);
    color: var(--gold-soft);
    border: 1px solid rgba(212, 173, 0, .45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .1),
        0 10px 28px rgba(0, 0, 0, .55),
        0 0 0 5px rgba(212, 173, 0, .05);
    transition: transform .2s var(--ease), box-shadow .22s var(--ease),
        border-color .22s var(--ease), color .22s var(--ease);
}

.fab:hover {
    transform: scale(1.08);
    color: #f7dc86;
    border-color: rgba(240, 201, 43, .8);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .16),
        0 14px 34px rgba(0, 0, 0, .6),
        0 0 22px rgba(212, 173, 0, .3);
}

.fab svg {
    width: 27px;
    height: 27px;
}

/* ---------- reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    * {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
    .nav a {
        padding-inline: 11px;
        font-size: 13.5px;
    }

    .logo img {
        height: 42px;
    }
}

@media (max-width: 1024px) {
    :root {
        --header-h: 68px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero {
        min-height: 0;
    }

    .form-card {
        max-width: 520px;
    }

    .detail {
        grid-template-columns: 1fr;
    }

    .spec-panel {
        position: static;
    }

    .contact-grid,
    .about {
        grid-template-columns: 1fr;
    }

    /* one column: the plate covers the whole section instead of half of it */
    .section--texture::before,
    [dir="rtl"] .section--texture::before {
        width: auto;
        right: 0;
        left: 0;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer__about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .nav {
        display: none;
    }

    .burger {
        display: flex;
    }

    .lang {
        display: none;
    }

    .header__in {
        justify-content: space-between;
    }

    .topbar__contacts .topbar__hide-sm {
        display: none;
    }
}

@media (max-width: 767px) {
    :root {
        --gut: 16px;
    }

    .topbar {
        display: none;
    }

    .hero {
        text-align: left;
    }

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

    .hero__stat b {
        font-size: 22px;
    }

    .hero__cta {
        gap: 10px;
    }

    .hero__cta .btn {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        padding-inline: 14px;
    }

    /* header: the phone icon replaces the "Book now" button */
    .header__actions .btn {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 12px;
        font-size: 0;
    }

    .header__actions .btn svg {
        width: 19px;
        height: 19px;
    }

    .cars-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .brands__list {
        justify-content: center;
        gap: 22px 30px;
    }

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

    .cta__actions {
        width: 100%;
    }

    .cta__actions .btn {
        flex: 1;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer__bottom {
        justify-content: center;
        text-align: center;
    }

    .gallery__thumbs {
        grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    }

    .map {
        aspect-ratio: 4 / 3;
    }
}

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

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

    .logo img {
        height: 36px;
    }

    .car__foot {
        flex-wrap: wrap;
    }

    .fab {
        width: 50px;
        height: 50px;
        right: 14px;
        bottom: 14px;
    }

    .gallery__nav {
        width: 38px;
        height: 38px;
    }

    .section-head--row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------- RTL (Arabic) ---------- */
[dir="rtl"] .eyebrow::before {
    order: 2;
}

[dir="rtl"] .nav a.is-active::after {
    left: 14px;
    right: 14px;
}

[dir="rtl"] .lang__menu {
    right: auto;
    left: 0;
}

[dir="rtl"] .drawer__panel {
    right: auto;
    left: 0;
    border-left: 0;
    border-right: 1px solid var(--line);
    transform: translateX(-100%);
}

[dir="rtl"] body.nav-open .drawer__panel,
body.nav-open [dir="rtl"] .drawer__panel {
    transform: none;
}

[dir="rtl"] .drawer__nav a:hover,
[dir="rtl"] .drawer__nav a.is-active {
    padding-left: 4px;
    padding-right: 10px;
}

[dir="rtl"] .footer__links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

[dir="rtl"] .contact-item:hover {
    transform: translateX(-3px);
}

[dir="rtl"] .gallery__nav--prev {
    left: auto;
    right: 14px;
}

[dir="rtl"] .gallery__nav--next {
    right: auto;
    left: 14px;
}

[dir="rtl"] .gallery__count {
    right: auto;
    left: 14px;
}

[dir="rtl"] .fab {
    right: auto;
    left: 18px;
}

[dir="rtl"] .hero::after {
    background:
        linear-gradient(260deg, rgba(0, 0, 0, .93) 0%, rgba(0, 0, 0, .74) 42%, rgba(0, 0, 0, .38) 72%, rgba(0, 0, 0, .6) 100%),
        linear-gradient(to top, var(--ink) 2%, transparent 34%);
}

[dir="rtl"] .spec-list__row dd {
    text-align: left;
}

[dir="rtl"] .field select {
    background-position: left 15px center;
    padding-right: 15px;
    padding-left: 38px;
}
