/* ===== Silk Road Horizons — Stillar ===== */

/* --- O'zgaruvchilar --- */
:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --dark: #0f172a;
    --gray-900: #1e293b;
    --gray-800: #334155;
    --gray-700: #475569;
    --gray-600: #64748b;
    --gray-500: #94a3b8;
    --gray-400: #cbd5e1;
    --gray-300: #e2e8f0;
    --gray-200: #f1f5f9;
    --gray-100: #f8fafc;
    --white: #ffffff;
    --bg-top: #d9e4fa;
    --bg-bottom: #eef3fc;
    --bg-alt: rgba(37, 99, 235, 0.07);
    --success: #10b981;
    --danger: #ef4444;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);
    --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.15);
    --shadow-primary: 0 8px 24px rgba(37, 99, 235, 0.3);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
}

/* --- Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
}

/* Butun sayt bo'ylab bitta yumshoq atmosfera — bo'limlarni "tekis bloklar"
   emas, yagona fon sifatida bog'laydi. position:fixed body::before ishlatildi
   (background-attachment:fixed emas), chunki iOS Safari uni scroll paytida
   noto'g'ri render qiladi. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.16), transparent 40%),
        radial-gradient(circle at 88% 28%, rgba(245, 158, 11, 0.1), transparent 36%),
        radial-gradient(circle at 50% 85%, rgba(37, 99, 235, 0.12), transparent 45%);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* --- Konteyner --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Tugmalar --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
    text-align: center;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.4);
}

/* Bosh buyurtma tugmasi uchun — fonda ko'k tonlar ko'p, shuning uchun
   ko'kdan farqli, iliq aksent rangi ko'zga eng birinchi tashlanadi */
.btn--accent {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.45);
}

.btn--accent:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.55);
}

.btn--ghost {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--gray-300);
}

.btn--ghost:hover {
    border-color: var(--primary);
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 18px 36px;
    font-size: 16px;
}

.btn--block {
    width: 100%;
    display: flex;
}

/* --- Bo'limlar --- */
.section {
    padding: 68px 0;
}

.section--alt {
    background: var(--bg-alt);
}

.section__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.section__tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.section__title {
    font-size: 38px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section__subtitle {
    font-size: 17px;
    color: var(--gray-600);
}

.text-accent {
    color: var(--accent);
}

/* --- Sarlavha --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 1000;
    transition: all var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    box-shadow: var(--shadow);
    border-bottom-color: var(--gray-200);
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 900;
    color: var(--dark);
    flex-shrink: 0;
}

.logo__icon {
    font-size: 26px;
}

.logo__accent {
    color: var(--primary);
}

.logo--light {
    color: var(--white);
}

.logo--light .logo__accent {
    color: var(--accent);
}

.lang-switch {
    display: flex;
    gap: 2px;
    background: var(--gray-100);
    padding: 3px;
    border-radius: 100px;
    flex-shrink: 0;
}

.lang-switch__btn {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--gray-600);
    border-radius: 100px;
    transition: all var(--transition);
}

.lang-switch__btn:hover {
    color: var(--primary);
}

.lang-switch__btn.active {
    background: var(--primary);
    color: var(--white);
}

.header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 800;
    color: var(--dark);
    padding: 10px 18px;
    background: var(--gray-100);
    border-radius: 100px;
    transition: all var(--transition);
    flex-shrink: 0;
}

.header__phone:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.header__phone-icon {
    font-size: 18px;
}

/* --- Нижняя навигация (app-style tab bar) --- */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
}

.bottom-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    padding: 6px 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-600);
    text-align: center;
    border-radius: 10px;
    transition: all var(--transition);
}

.bottom-nav__icon {
    width: 22px;
    height: 22px;
}

.bottom-nav__link:hover,
.bottom-nav__link.active {
    color: var(--primary);
}

.bottom-nav__link--home {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    margin-top: -26px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-primary);
    border: 4px solid var(--white);
}

.bottom-nav__link--home .bottom-nav__icon {
    width: 24px;
    height: 24px;
}

.bottom-nav__link--home:hover,
.bottom-nav__link--home.active {
    color: var(--white);
    background: var(--primary-dark);
}

/* --- Asosiy ekran --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero__slides {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.6s ease;
}

.hero__slide.active {
    opacity: 1;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.78) 50%, rgba(30, 58, 138, 0.8) 100%);
    z-index: -2;
}

.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.3), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.15), transparent 50%);
}

.hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 48px;
    align-items: center;
}

.hero__container > * {
    min-width: 0;
}

.hero__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
    min-width: 0;
}

.hero__cards.hero__cards--single {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
}

.hero__cards > * {
    min-width: 0;
}

.hero__map-card {
    grid-column: 1 / -1;
}

.hero__map {
    height: 220px;
    border-radius: var(--radius);
    overflow: hidden;
}

.hero__map iframe {
    display: block;
    width: 100%;
    height: 100%;
}

.hero__content {
    color: var(--white);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 24px;
}

.pulse {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    position: relative;
}

.pulse::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.hero__title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero__subtitle {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.hero__actions .btn--ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hero__actions .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hero__stat-num {
    font-size: 36px;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.hero__stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

/* --- Tezkor buyurtma kartasi --- */
.hero__card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-lg);
}

.hero__card-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 6px;
}

.hero__card-text {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 24px;
}

/* --- Formalar --- */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--dark);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-success {
    display: none;
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-success.show {
    display: block;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0 20px;
    font-size: 14px;
    color: var(--gray-600);
    cursor: pointer;
}

.checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

/* --- Afzalliklar --- */
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.feature-card__icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.feature-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.feature-card__text {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* --- Xizmatlar --- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--gray-200);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-card__img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
    transition: transform var(--transition), filter var(--transition);
}

.service-card:hover .service-card__img img {
    transform: scale(1.08);
}

.service-card__emoji {
    font-size: 72px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    transition: transform var(--transition);
}

.service-card:hover .service-card__emoji {
    transform: scale(1.15) rotate(-5deg);
}

.service-card__body {
    padding: 24px;
}

.service-card__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.service-card__text {
    font-size: 15px;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.6;
}

.service-card__price {
    font-size: 15px;
    color: var(--gray-700);
    padding-top: 16px;
    border-top: 1px solid var(--gray-200);
}

.service-card__price strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

/* --- Buyurtma --- */
.order__wrap {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
}

.order__info .section__head {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.order__info .section__tag {
    margin-bottom: 12px;
}

.order__list {
    margin: 32px 0;
}

.order__list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
}

.order__list-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-size: 16px;
    font-weight: 800;
    border-radius: 50%;
    flex-shrink: 0;
}

.order__contact {
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.order__contact p {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    padding: 6px 0;
}

.order__contact a {
    color: var(--primary);
    transition: color var(--transition);
}

.order__contact a:hover {
    color: var(--primary-dark);
}

.order__form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.order__form-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
}

.order__map {
    height: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--gray-100);
}

.order__map .ymaps-2-1-79-map,
.order__map ymaps {
    border-radius: var(--radius);
}

/* --- Sharhlar --- */
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.review-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}

.review-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.review-card__stars {
    font-size: 18px;
    margin-bottom: 16px;
}

.review-card__text {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-card__avatar {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-weight: 800;
    border-radius: 50%;
    flex-shrink: 0;
}

.review-card__author strong {
    display: block;
    font-size: 15px;
    color: var(--dark);
}

.review-card__author span {
    font-size: 13px;
    color: var(--gray-500);
}

.reviews__cta {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.review-form {
    max-width: 480px;
    margin: 24px auto 0;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.star-rating {
    display: flex;
    gap: 6px;
    border-radius: var(--radius);
    transition: box-shadow var(--transition);
}

.star-rating__btn {
    font-size: 30px;
    line-height: 1;
    color: var(--gray-300);
    transition: color var(--transition), transform var(--transition);
}

.star-rating__btn:hover,
.star-rating__btn.is-filled {
    color: var(--accent);
}

.star-rating__btn:hover {
    transform: scale(1.15);
}

.star-rating--error {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

/* --- Avtomobillar --- */
.cars__carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 68px 60px;
    perspective: 1600px;
    overflow-x: hidden;
}

.cars__track {
    position: relative;
    height: 460px;
}

.cars__arrow {
    position: absolute;
    top: calc(50% - 20px);
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    font-size: 24px;
    line-height: 1;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 20;
}

.cars__arrow:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.cars__arrow--prev { left: 0; }
.cars__arrow--next { right: 0; }

.cars__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.cars__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition);
}

.cars__dot.active {
    background: var(--primary);
    width: 22px;
    border-radius: 4px;
}

.car-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(340px, 80vw);
    transform: translate(-50%, 0);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease, box-shadow var(--transition), border-color var(--transition);
    cursor: pointer;
}

.car-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.car-card.is-active {
    cursor: default;
}

.car-card__img {
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-200), var(--gray-300));
    position: relative;
}

.car-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.04);
    transition: transform var(--transition), filter var(--transition);
}

.car-card:hover .car-card__img img {
    transform: scale(1.08);
}

/* Kechqurun tushirilgan suratlar (Sprinter) kunduzgi suratlar yonida
   xira ko'rinadi — yorug'lik/kontrastni tenglashtiramiz */
.car-card__img img.is-night {
    filter: brightness(1.22) contrast(1.08) saturate(1.05);
}

.car-card__img--empty::before {
    content: '🚗';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    opacity: 0.3;
}

.car-card__img--empty img {
    display: none;
}

.car-card__body {
    padding: 24px;
}

.car-card__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.car-card__details {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 14px;
    transition: color var(--transition);
}

.car-card__details:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.car-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.car-card__specs span {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    padding: 6px 12px;
    background: var(--gray-100);
    border-radius: 100px;
}

.car-card__call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    transition: color var(--transition);
}

.car-card__call:hover {
    color: var(--primary-dark);
}

.cars__note {
    text-align: center;
    margin-top: 32px;
    padding: 16px 24px;
    background: rgba(37, 99, 235, 0.06);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--gray-600);
}

.cars__note code {
    padding: 3px 8px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--primary);
}

/* --- Avtomobil sahifasi (kartochka detali) --- */
.car-hero {
    /* .hero bazaviy klassidan min-height:100vh va flex-markazlashni
       bekor qilamiz — aks holda bu bo'lim butun ekran balandligini
       egallab, undan keyingi kontent (masalan mashinalar to'ri) juda
       pastga surilib ketadi. */
    min-height: 0;
    display: block;
    padding: 140px 0 64px;
    overflow: visible;
}

.car-hero__breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 32px;
}

.car-hero__breadcrumb a {
    color: var(--primary);
    transition: color var(--transition);
}

.car-hero__breadcrumb a:hover {
    color: var(--primary-dark);
}

.car-hero__breadcrumb .car-hero__crumb-sep {
    color: var(--gray-400);
}

.car-hero__breadcrumb .car-hero__crumb-current {
    color: var(--gray-800);
    font-weight: 600;
}

.car-hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
}

.car-hero__photo {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
}

.car-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-hero__title {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.car-hero__lead {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 24px;
}

.car-hero__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.car-hero__specs span {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: 100px;
}

.car-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.car-hero__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    transition: color var(--transition);
}

.car-hero__back:hover {
    color: var(--primary);
}

@media (max-width: 900px) {
    .car-hero { padding: 116px 0 48px; }
    .car-hero__grid { grid-template-columns: 1fr; gap: 28px; }
    .car-hero__title { font-size: 28px; }
}

/* --- Barcha avtomobillar ro'yxati (cars/, ru/cars/, en/cars/) --- */
.cars-index__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Shu sahifada karusel emas, oddiy to'r ishlaydi — .car-card ning
   karusel uchun mo'ljallangan absolyut joylashuvini bekor qilamiz. */
.cars-index__grid .car-card {
    position: static;
    width: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

@media (max-width: 1024px) {
    .cars-index__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .cars-index__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}

/* --- Manzil / Xarita --- */
.location__wrap {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: stretch;
}

.location__info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.location__item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.location__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.05));
    border-radius: var(--radius);
    flex-shrink: 0;
}

.location__item h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.location__item p {
    font-size: 15px;
    color: var(--gray-600);
}

.location__item a {
    color: var(--primary);
    transition: color var(--transition);
}

.location__item a:hover {
    color: var(--primary-dark);
}

.location__search {
    padding: 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.03));
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
}

.location__search h4 {
    font-size: 17px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.location__search p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 14px;
}

.location__search-row {
    display: flex;
    gap: 10px;
}

.location__search-row input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 15px;
    outline: none;
    transition: all var(--transition);
}

.location__search-row input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.location__search-row .btn {
    padding: 12px 20px;
    font-size: 14px;
    white-space: nowrap;
}

.location__info .btn {
    margin-top: auto;
    align-self: flex-start;
}

.location__map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 420px;
    background: var(--gray-200);
}

.location__map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 0;
}

.footer__container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer__about {
    font-size: 15px;
    line-height: 1.7;
    margin-top: 20px;
    max-width: 320px;
}

.footer__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer__links li,
.footer__contacts li {
    padding: 8px 0;
    font-size: 15px;
}

.footer__links a,
.footer__contacts a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
}

.footer__links a:hover,
.footer__contacts a:hover {
    color: var(--accent);
}

.footer__social {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.footer__social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 50%;
    transition: all var(--transition);
}

.footer__social a:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.footer__social svg {
    width: 22px;
    height: 22px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.footer__bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer__bottom p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer__bottom .footer__credits {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 12px;
}

.footer__credits a {
    color: rgba(255, 255, 255, 0.45);
}

.footer__credits a:hover {
    color: var(--accent);
}

/* --- Yuqoriga tugma --- */
.to-top {
    position: fixed;
    bottom: calc(64px + 16px + env(safe-area-inset-bottom, 0px));
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: var(--shadow-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* --- Animatsiyalar --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Moslashuvchanlik --- */
@media (max-width: 1024px) {
    .hero__title { font-size: 44px; }
    .section__title { font-size: 32px; }
    .hero__container { grid-template-columns: 1fr; gap: 40px; }
    .hero__card { max-width: 480px; }
    .order__wrap { grid-template-columns: 1fr; gap: 40px; }
    .location__wrap { grid-template-columns: 1fr; gap: 32px; }
    .location__map { min-height: 360px; }

    .features__grid,
    .services__grid,
    .reviews__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header__phone { display: none; }
    .section { padding: 64px 0; }
    .section__head { margin-bottom: 40px; }
    .section__title { font-size: 28px; }
    .hero { padding: 110px 0 60px; }
    .hero__title { font-size: 34px; }
    .hero__subtitle { font-size: 16px; }
    .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .hero__stat-num { font-size: 28px; }
    .hero__card { padding: 28px; }
    
    .features__grid,
    .reviews__grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .order__form { padding: 28px; }
    .location__map { min-height: 300px; }
    .location__search-row { flex-direction: column; }
    .location__search-row .btn { width: 100%; }
    .footer__container { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom .container { flex-direction: column; text-align: center; }
    .btn--lg { padding: 16px 28px; font-size: 15px; }

    /* 1 qatorda 2 ta rasim/karta bo'lishi uchun */
    .services__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .service-card__img { height: 100px; }
    .service-card__emoji { font-size: 40px; }
    .service-card__body { padding: 12px; }
    .service-card__title { font-size: 14px; margin-bottom: 6px; }
    .service-card__text { font-size: 11px; line-height: 1.4; margin-bottom: 10px; }
    .service-card__price { font-size: 11px; padding-top: 8px; }
    .service-card__price strong { font-size: 16px; }

    .cars__carousel { padding: 8px 44px 52px; }
    .cars__arrow { width: 36px; height: 36px; font-size: 18px; }
    .car-card { width: min(260px, 76vw); }
    .car-card__img { height: 120px; }
    .car-card__body { padding: 12px; }
    .car-card__title { font-size: 14px; margin-bottom: 8px; }
    .car-card__specs { gap: 5px; margin-bottom: 10px; }
    .car-card__specs span { font-size: 10px; padding: 4px 8px; }
    .car-card .btn { padding: 10px 8px; font-size: 12px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero__title { font-size: 28px; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }
    .section__title { font-size: 24px; }
    .logo__text { font-size: 18px; }
    .to-top { bottom: calc(64px + 12px + env(safe-area-inset-bottom, 0px)); right: 16px; width: 44px; height: 44px; }
    .hero__stat-num { font-size: 22px; }
    .hero__stat-label { font-size: 12px; }
}
/* Tours */
.tours__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:2rem;margin-top:3rem;}
.tour-card{background:var(--white);border:1px solid var(--gray-200);border-radius:1rem;overflow:hidden;box-shadow:var(--shadow-sm);transition:all var(--transition);}
.tour-card:hover{transform:translateY(-8px);box-shadow:var(--shadow-lg);border-color:var(--primary);}
.tour-card__img{height:180px;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;}
.tour-card__img img{width:100%;height:100%;object-fit:cover;filter:saturate(1.08) contrast(1.04);transition:transform var(--transition), filter var(--transition);}
.tour-card:hover .tour-card__img img{transform:scale(1.08);}
.tour-card__emoji{font-size:4rem;line-height:1;}
.tour-card__body{padding:1.5rem;}
.tour-card__title{font-size:1.25rem;font-weight:700;margin-bottom:0.5rem;color:#1e293b;}
.tour-card__text{font-size:0.95rem;color:#64748b;line-height:1.6;margin-bottom:1.25rem;}
@media(max-width:1024px){.tours__grid{grid-template-columns:repeat(2,1fr);}}
@media(max-width:768px){
    /* 1 qatorda 2 ta rasim/karta bo'lishi uchun */
    .tours__grid{grid-template-columns:repeat(2,1fr);gap:14px;}
    .tour-card__img{height:100px;}
    .tour-card__emoji{font-size:2.2rem;}
    .tour-card__body{padding:10px;}
    .tour-card__title{font-size:13px;margin-bottom:6px;}
    .tour-card__text{font-size:10px;line-height:1.4;margin-bottom:10px;}
    .tour-card .btn{padding:10px 8px;font-size:12px;}
}

/* --- Shaxsiy kabinet (hero ichida) --- */
.account__tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    background: var(--gray-100);
    padding: 5px;
    border-radius: var(--radius);
}

.account__tab {
    flex: 1;
    padding: 10px 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-600);
    border-radius: 8px;
    transition: all var(--transition);
}

.account__tab.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.form-success.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.3);
}

.account__profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    justify-content: center;
}

.account__profile[hidden] {
    display: none;
}

.account__profile-avatar {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-size: 22px;
    font-weight: 800;
    border-radius: 50%;
}

.account__profile-info {
    min-width: 0;
    width: 100%;
}

.account__profile-info h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 4px;
}

.account__profile-info p {
    font-size: 13px;
    color: var(--gray-600);
    word-break: break-all;
}

@media (max-width: 1024px) {
    .hero__cards { grid-template-columns: 1fr 1fr; max-width: 640px; margin: 0 auto; }
}

@media (max-width: 640px) {
    .hero__cards { grid-template-columns: 1fr; }
}
