/* =========================================================
   Brand Cargo — style.css
   Ranglar va o'lchamlar shu yerdagi :root ichida.
   ========================================================= */

@font-face { font-family: "Big Shoulders"; src: url("../fonts/bigshoulders-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("../fonts/bigshoulders-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Almarai"; src: url("../fonts/almarai-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Almarai"; src: url("../fonts/almarai-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --navy: #01224f;
  --navy-hover: #0a3570;
  --orange: #fc4c01;
  --ink: #14151a;
  --text: #1f1f1f;
  --muted: rgba(31, 31, 31, .7);
  --line: #e8e8e8;
  --surface: #f7f7f7;
  --white: #fff;

  --font-display: "Big Shoulders", "Arial Narrow", sans-serif;
  --font-body: "Almarai", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1340px;
  --gutter: 50px;
  --section: 120px;
  --header-h: 92px;
}

@media (max-width: 1199px) { :root { --gutter: 32px; --section: 96px; } }
@media (max-width: 809px)  { :root { --gutter: 20px; --section: 72px; --header-h: 76px; } }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.4; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 12px 18px; }
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--dark { background: var(--ink); color: #fff; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { margin-top: 20px; }

/* ---------- Typography ---------- */
.h1, .h2, .h3, .h4 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; line-height: 1.1; letter-spacing: 0; color: var(--ink); }
.h1 { font-size: clamp(42px, 5vw, 64px); }
.h2 { font-size: clamp(40px, 4.6vw, 64px); }
.h3 { font-size: clamp(26px, 2.6vw, 36px); color: var(--navy); }
.h4 { font-size: 22px; }
.lead { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.2; color: var(--muted); }
.body { font-size: 18px; color: var(--muted); line-height: 1.35; }
.section--dark .h1, .section--dark .h2, .section--dark .h3 { color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 24px; background: var(--navy); color: #fff; font-size: 16px; line-height: 1.2; border: 0; cursor: pointer; transition: background .2s, transform .2s; white-space: nowrap; }
.btn:hover { background: var(--navy-hover); }
.btn:active { transform: translateY(1px); }
.btn--orange { background: var(--orange); }
.btn--orange:hover { background: #e04300; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.menu-open .site-header { background: var(--white); box-shadow: none; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo img { width: 76px; height: auto; }
.menu-toggle { display: inline-flex; align-items: center; gap: 14px; background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: 20px; letter-spacing: .02em; color: var(--ink); position: relative; z-index: 120; }
.menu-toggle__icon { width: 24px; height: 10px; position: relative; }
.menu-toggle__icon::before, .menu-toggle__icon::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--navy); transition: transform .3s, top .3s; }
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { top: 8px; }
.menu-open .menu-toggle__icon::before { top: 4px; transform: rotate(45deg); }
.menu-open .menu-toggle__icon::after { top: 4px; transform: rotate(-45deg); }
.menu-toggle .label-close { display: none; }
.menu-open .menu-toggle .label-open { display: none; }
.menu-open .menu-toggle .label-close { display: inline; }

/* Full-screen menu */
.site-menu { position: fixed; inset: 0; z-index: 90; background: var(--white); display: flex; flex-direction: column; padding: calc(var(--header-h) + 24px) var(--gutter) 40px; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .3s, visibility 0s .3s; overflow-y: auto; }
.menu-open .site-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .3s; }
.menu-open { overflow: hidden; }
.site-menu__inner { max-width: var(--container); width: 100%; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; flex: 1; }
.site-menu nav ul { display: flex; flex-direction: column; gap: 4px; }
.site-menu nav a { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(44px, 7vw, 96px); line-height: 1; color: var(--ink); transition: color .2s; }
.site-menu nav a:hover, .site-menu nav a[aria-current="page"] { color: var(--navy); }
.site-menu nav a[aria-current="page"]::after { content: ""; display: inline-block; width: 12px; height: 12px; background: var(--orange); margin-left: 14px; vertical-align: middle; }
.site-menu__contact { display: grid; gap: 10px; font-size: 18px; color: var(--muted); }
.site-menu__contact a:hover { color: var(--navy); }
@media (max-width: 809px) { .site-menu__inner { grid-template-columns: 1fr; align-content: space-between; } .menu-toggle { font-size: 18px; } }

/* ---------- Hero ---------- */
.hero { padding-top: 32px; }
.hero__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 32px; }
.hero__text .lead { margin-top: 12px; }
.hero__media { overflow: hidden; }
.hero__media img { width: 100%; aspect-ratio: 1340 / 513; object-fit: cover; }
@media (max-width: 809px) {
  .hero { padding-top: 16px; }
  .hero__top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero__media img { aspect-ratio: 350 / 256; object-position: 70% center; }
}

/* ---------- Trusted by (logo marquee) ---------- */
.trusted { padding-block: 64px; display: flex; align-items: center; gap: 24px; }
.trusted__label { flex: none; font-size: 16px; color: var(--muted); }
.marquee { overflow: hidden; flex: 1; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 80px; padding-right: 80px; }
.marquee__group img { height: 34px; width: auto; filter: grayscale(1); opacity: .65; transition: opacity .2s, filter .2s; }
.marquee__group img:hover { filter: none; opacity: 1; }
.marquee__group img.logo--tall { height: 52px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 809px) { .trusted { flex-direction: column; align-items: flex-start; padding-block: 48px; } .marquee { width: 100%; } .marquee__group { gap: 48px; padding-right: 48px; } }

/* ---------- About / stats ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split__text .body { margin: 24px 0 32px; max-width: 560px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
.stat { padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.stat:nth-last-child(-n+2) { margin-bottom: 0; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 4.4vw, 64px); line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 8px; font-size: 20px; color: var(--ink); }
@media (max-width: 1199px) { .split { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 809px) { .stats { grid-template-columns: 1fr; } .stat:nth-last-child(2) { margin-bottom: 20px; } }

/* ---------- Feature cards (services / why us / values) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; gap: 24px; align-items: center; background: var(--surface); padding: 24px; transition: background .2s, transform .2s; }
.card:hover { background: #f1f2f4; }
.card__icon { flex: none; width: 56px; height: 56px; object-fit: contain; }
.card .body { margin-top: 6px; }
.card--stack { flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px; }
.card--stack .card__icon { width: 48px; height: 48px; }
@media (max-width: 1199px) { .cards--3 { grid-template-columns: 1fr; } }
@media (max-width: 809px) { .cards { grid-template-columns: 1fr; } .card { align-items: flex-start; gap: 16px; padding: 20px; } .card__icon { width: 44px; height: 44px; } }

/* ---------- Slider ---------- */
.slider { position: relative; }
.slider__viewport { overflow: hidden; }
.slider__track { display: flex; gap: 24px; transition: transform .6s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.slide { position: relative; flex: 0 0 100%; aspect-ratio: 1340 / 700; overflow: hidden; background: #222; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide__caption { position: absolute; left: 0; right: 0; top: 0; padding: 14px 16px; background: rgba(255,255,255,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(18px, 2vw, 28px); color: var(--ink); }
.slider__dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 8px; padding: 8px 10px; background: rgba(0,0,0,.3); backdrop-filter: blur(6px); }
.slider__dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; transition: background .2s, transform .2s; }
.slider__dot[aria-current="true"] { background: #fff; transform: scale(1.25); }
.slider__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: rgba(255,255,255,.85); color: var(--ink); cursor: pointer; transition: background .2s; z-index: 2; }
.slider__arrow:hover { background: #fff; }
.slider__arrow--prev { left: 16px; }
.slider__arrow--next { right: 16px; }
@media (max-width: 809px) { .slide { aspect-ratio: 4 / 5; } .slider__arrow { display: none; } }

/* ---------- Steps ---------- */
.steps-head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 56px; }
.steps { border: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 0 12px; align-items: baseline; padding: 24px; background: var(--surface); }
.step + .step { border-top: 1px solid var(--line); }
.step__num { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); }
.step .body { grid-column: 2; margin-top: 6px; }

/* ---------- Quote block ---------- */
.quote { background: var(--navy); color: #fff; padding: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
.quote blockquote { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; }
.quote__author { margin-top: 56px; }
.quote__role { font-size: 20px; opacity: .9; }
.quote__name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 28px; margin-top: 6px; }
@media (max-width: 1199px) { .quote { grid-template-columns: 1fr; } }
@media (max-width: 809px) { .quote { padding: 28px 20px; } .quote__author { margin-top: 32px; } }

/* ---------- CTA banner ---------- */
.cta { position: relative; overflow: hidden; color: #fff; background: var(--ink); }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(20,21,26,.92) 0%, rgba(20,21,26,.55) 55%, rgba(20,21,26,0) 100%), linear-gradient(0deg, rgba(20,21,26,1) 0%, rgba(20,21,26,0) 40%); }
.cta .container { position: relative; z-index: 2; padding-block: 160px 120px; }
.cta .h2 { color: #fff; font-size: clamp(30px, 3vw, 40px); }
.cta .lead { color: rgba(255,255,255,.8); margin: 16px 0 40px; font-size: 20px; }
.cta--center { text-align: center; }
.cta--center::before { background: linear-gradient(0deg, rgba(20,21,26,1) 0%, rgba(20,21,26,.35) 60%, rgba(20,21,26,.6) 100%); }
@media (max-width: 809px) { .cta .container { padding-block: 96px 80px; } .cta::before { background: linear-gradient(0deg, rgba(20,21,26,.95) 10%, rgba(20,21,26,.55) 100%); } }

/* ---------- News cards ---------- */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.news-card { display: flex; flex-direction: column; gap: 12px; }
.news-card__img { overflow: hidden; aspect-ratio: 3 / 2.2; background: var(--surface); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-card__img img { transform: scale(1.04); }
.news-card__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 22px; line-height: 1.1; color: var(--ink); margin-top: 4px; }
.news-card:hover .news-card__title { color: var(--navy); }
.news-card .body { font-size: 16px; }
.news-card time { font-size: 14px; color: var(--orange); }
@media (max-width: 1199px) { .news-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; } }
@media (max-width: 809px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); height: 640px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent); }
.testimonials__col { overflow: hidden; }
.testimonials__col + .testimonials__col { border-left: 1px solid var(--line); }
.testimonials__track { animation: scroll-up 40s linear infinite; }
.testimonials__col--down .testimonials__track { animation-direction: reverse; }
.testimonials:hover .testimonials__track { animation-play-state: paused; }
.review { padding: 40px var(--gutter); border-bottom: 1px solid var(--line); }
.review p { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 2vw, 28px); line-height: 1.2; color: #555; }
.review__name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 26px; color: var(--ink); margin-top: 40px; }
.review__role { font-size: 16px; color: var(--orange); margin-top: 4px; }
@keyframes scroll-up { to { transform: translateY(-50%); } }
@media (max-width: 809px) { .testimonials { grid-template-columns: 1fr; } .testimonials__col--down { display: none; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; cursor: pointer; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; color: var(--navy); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s; }
.faq__list details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__list details p { padding: 0 40px 24px 0; font-size: 18px; color: var(--muted); }
@media (max-width: 1199px) { .faq { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: 64px 48px; }
.page-hero .lead { margin-top: 16px; max-width: 820px; }
.page-hero .btn { margin-top: 32px; }
.page-hero--dark { background: var(--ink); color: #fff; padding-block: 120px 96px; }
.page-hero--dark .h1 { color: #fff; max-width: 980px; }
.page-hero--dark .lead { color: rgba(255,255,255,.7); max-width: 640px; font-size: 18px; line-height: 1.5; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 64px; align-items: center; padding-block: 64px; }
.contact__info { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; margin-top: 40px; }
.contact__info a, .contact__info span { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.contact__info a:hover { color: var(--navy); }
.contact__info img { width: 24px; height: 24px; flex: none; }
.form { background: var(--ink); color: #fff; padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 8px; font-size: 14px; }
.form .full { grid-column: 1 / -1; }
.form input, .form textarea { width: 100%; background: #fff; color: var(--ink); border: 1px solid transparent; padding: 12px; font-size: 15px; border-radius: 0; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(252,76,1,.3); }
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { justify-self: start; }
.form__status { grid-column: 1 / -1; font-size: 14px; min-height: 1em; }
.form__status.is-ok { color: #6ee7a8; }
.form__status.is-err { color: #ffb199; }
.hp { position: absolute; left: -9999px; }
.map { width: 100%; height: 480px; border: 0; display: block; filter: grayscale(.2); }
@media (max-width: 1199px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 809px) { .contact__info { grid-template-columns: 1fr; } .form { grid-template-columns: 1fr; } .map { height: 360px; } }

/* ---------- Trucks for sale ---------- */
.inventory-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 40px; }
.inventory-head .body { max-width: 420px; font-size: 15px; }
.trucks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.truck { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.truck:hover { box-shadow: 0 12px 32px rgba(20,21,26,.08); transform: translateY(-2px); }
.truck__img { position: relative; aspect-ratio: 16 / 11; background: repeating-linear-gradient(135deg, #ececec 0 12px, #e3e3e3 12px 24px); }
.truck__img img { width: 100%; height: 100%; object-fit: cover; }
.truck__badge { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; background: #fff; border: 1px solid #16a34a; color: #16a34a; }
.truck__badge::before { content: "●"; margin-right: 6px; font-size: 8px; vertical-align: 1px; }
.truck__badge--sold { border-color: var(--muted); color: var(--muted); }
.truck__body { padding: 16px; }
.truck__title { font-size: 18px; font-weight: 700; color: var(--ink); }
.truck__specs { font-size: 13px; color: var(--muted); margin-top: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.truck__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; }
.truck__price { font-size: 26px; font-weight: 700; color: var(--ink); }
.truck__link { font-size: 14px; font-weight: 700; color: var(--navy); }
.truck__link:hover { color: var(--orange); }
@media (max-width: 1199px) { .trucks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 809px) { .trucks { grid-template-columns: 1fr; } .inventory-head { flex-direction: column; align-items: flex-start; } }

/* ---------- Article ---------- */
.article-hero { position: relative; min-height: 560px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.article-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero .container { position: relative; padding-bottom: 32px; }
.article-hero__box { background: rgba(20,21,26,.88); padding: 24px; max-width: 760px; }
.article-hero__box .h1 { color: #fff; font-size: clamp(30px, 3.4vw, 44px); }
.article-hero__box p { margin-top: 10px; color: rgba(255,255,255,.8); font-size: 17px; }
.article { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding-block: 48px var(--section); }
.article__meta { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.article__meta .author { font-size: 20px; color: var(--muted); }
.article__meta time { display: block; margin-top: 8px; color: var(--orange); font-weight: 700; font-size: 16px; }
.article__meta .back { display: inline-block; margin-top: 32px; font-size: 16px; color: var(--navy); }
.article__meta .back:hover { color: var(--orange); }
.prose h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.1; color: var(--ink); margin: 40px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 18px; line-height: 1.5; color: var(--muted); }
@media (max-width: 1199px) { .article { grid-template-columns: 1fr; gap: 32px; } .article__meta { position: static; } }
@media (max-width: 809px) { .article-hero { min-height: 420px; } .article-hero__box { padding: 18px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding-block: 72px 48px; }
.site-footer .container { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer__brand img { width: 76px; background: #fff; padding: 6px; border-radius: 6px; }
.footer__brand p { margin-top: 20px; font-size: 18px; color: rgba(255,255,255,.8); line-height: 1.6; }
.footer__brand small { display: block; margin-top: 24px; font-size: 13px; color: rgba(255,255,255,.6); }
.footer__col h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 20px; margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 12px; }
.footer__col a { font-size: 15px; color: rgba(255,255,255,.75); transition: color .2s; }
.footer__col a:hover { color: #fff; }
@media (max-width: 1199px) { .site-footer .container { grid-template-columns: 1fr 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 809px) { .site-footer .container { grid-template-columns: 1fr 1fr; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   v2 — takliflar asosida qo'shilganlar
   ========================================================= */

/* Desktop navigatsiya */
.nav-desktop { display: none; }
.header-actions { display: none; }
@media (min-width: 1200px) {
  .site-header .container { gap: 32px; }
  .nav-desktop { display: block; margin-left: auto; }
  .nav-desktop ul { display: flex; gap: 28px; }
  .nav-desktop a { font-size: 16px; color: var(--ink); padding: 8px 0; position: relative; transition: color .2s; }
  .nav-desktop a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
  .nav-desktop a:hover { color: var(--navy); }
  .nav-desktop a:hover::after, .nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }
  .header-actions { display: flex; align-items: center; gap: 20px; }
  .header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--navy); }
  .header-phone:hover { color: var(--orange); }
  .menu-toggle { display: none; }
}

/* Tugmalar */
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }

/* Hero */
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: -8px 0 32px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof li { font-size: 16px; color: var(--muted); display: flex; align-items: baseline; gap: 6px; }
.proof strong { font-family: var(--font-display); font-weight: 700; font-size: 24px; color: var(--navy); text-transform: uppercase; }
.proof li + li::before { content: ""; width: 6px; height: 6px; background: var(--orange); margin-right: 26px; align-self: center; }
@media (max-width: 809px) {
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; }
  .proof { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin-top: 0; }
  .proof li + li::before { display: none; }
  .proof li { flex-direction: column; gap: 0; }
}

/* Haydovchi banneri */
.drive { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--ink); color: #fff; overflow: hidden; }
.drive img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.drive__text { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.drive__text .h2 { color: #fff; font-size: clamp(36px, 3.6vw, 52px); }
.drive__text .lead { color: rgba(255,255,255,.75); margin: 16px 0 32px; font-size: 18px; line-height: 1.4; }
@media (max-width: 1199px) { .drive { grid-template-columns: 1fr; } .drive img { min-height: 0; aspect-ratio: 16/9; } .drive__text { padding: 32px 24px 40px; } }

/* Asoschi bloki rasmi */
.quote { padding: 0; grid-template-columns: 1fr 1fr; gap: 0; }
.quote > div { padding: 48px; }
.quote__img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
@media (max-width: 1199px) { .quote { grid-template-columns: 1fr; } .quote__img { min-height: 0; aspect-ratio: 16/9; order: -1; } }
@media (max-width: 809px) { .quote > div { padding: 28px 20px; } }

/* Formalar */
.form__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 28px; line-height: 1; margin-bottom: 4px; }
.form select { width: 100%; background: #fff; color: var(--ink); border: 1px solid transparent; padding: 12px; font-size: 15px; border-radius: 0; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%2314151a' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.form select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(252,76,1,.3); }
.form input[type="date"] { min-height: 46px; }

/* Bo'limlar */
.section--soft { background: var(--surface); }
.footer__legal { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.75); }

/* Telefon uchun pastki panel */
.mobile-bar { display: none; }
@media (max-width: 809px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 2fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: #fff; box-shadow: 0 -1px 0 var(--line), 0 -8px 24px rgba(20,21,26,.08); padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-weight: 700; font-size: 16px; }
  .mobile-bar__call { box-shadow: inset 0 0 0 1.5px var(--navy); color: var(--navy); }
  .mobile-bar__quote { background: var(--orange); color: #fff; }
  body { padding-bottom: 76px; }
  .menu-open .mobile-bar { display: none; }
}

/* Mashina sahifasi */
.back-link { display: inline-block; font-size: 16px; color: var(--navy); margin-bottom: 24px; }
.back-link:hover { color: var(--orange); }
.truck-detail { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.truck-detail__gallery { display: grid; gap: 12px; }
.truck-detail__gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.truck-detail__placeholder { aspect-ratio: 4/3; border-radius: 10px; display: grid; place-items: center; color: var(--muted); background: repeating-linear-gradient(135deg, #ececec 0 12px, #e3e3e3 12px 24px); }
.truck-detail__price { font-size: 40px; font-weight: 700; color: var(--ink); margin: 12px 0 24px; }
.spec { border-top: 1px solid var(--line); margin-bottom: 24px; }
.spec div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.truck-detail__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.truck-detail__form { max-width: 720px; margin-top: 64px; }
.truck__title a:hover { color: var(--navy); }
a.truck__img { display: block; }
@media (max-width: 1199px) { .truck-detail { grid-template-columns: 1fr; } }
@media (max-width: 809px) { .hero h1 br { display: none; } }

/* =========================================================
   v3 — animatsiyalar va effektlar
   Hammasi prefers-reduced-motion'da o'chadi (fayl boshidagi qoida).
   ========================================================= */
:root { --ease-out: cubic-bezier(.2, .7, .1, 1); --ease-io: cubic-bezier(.7, 0, .2, 1); interpolate-size: allow-keywords; }

/* --- Sarlavhalar so'zma-so'z --- */
.words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.words .w > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease-out); }
.is-loaded .split--load .w > span,
.reveal-self.is-visible .w > span { transform: none; }

@media (prefers-reduced-motion: no-preference) {
  /* --- Hero ketma-ketligi --- */
  .js .hero .lead, .js .hero__actions, .js .page-hero .lead, .js .page-hero .btn, .js .article-hero__box p {
    opacity: 0; transform: translateY(14px); transition: opacity .7s ease .45s, transform .7s var(--ease-out) .45s;
  }
  .js .hero__actions, .js .page-hero .btn { transition-delay: .6s; }
  .is-loaded .hero .lead, .is-loaded .hero__actions, .is-loaded .page-hero .lead, .is-loaded .page-hero .btn, .is-loaded .article-hero__box p { opacity: 1; transform: none; }

  .js .hero .hero__media { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-io) .3s; }
  .is-loaded .hero .hero__media { clip-path: inset(0 0 0 0); }

  .js .article-hero__box { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease-io) .1s; }
  .is-loaded .article-hero__box { clip-path: inset(0 0 0 0); }

  .js .mobile-bar { transform: translateY(110%); transition: transform .5s var(--ease-out) 1s; }
  .is-loaded .mobile-bar { transform: none; }
}

/* --- Parallaks --- */
.parallax { transform: translate3d(0, var(--py, 0), 0) scale(1.14); will-change: transform; }
.drive { position: relative; }
.drive > img { position: relative; z-index: 0; }
.drive__text { position: relative; z-index: 1; background: var(--ink); }
.quote { overflow: hidden; }
.quote > div { position: relative; z-index: 1; background: var(--navy); }

/* --- Yo'l va yuk mashinasi (scroll progress) --- */
.road { position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--line) 0 16px, transparent 16px 28px); background-size: 28px 2px; animation: lane 1.2s linear infinite paused; }
.road.is-moving { animation-play-state: running; }
.road__fill { height: 100%; width: calc(var(--p, 0) * 100%); background: var(--orange); }
.road__truck { position: absolute; bottom: 1px; left: calc(var(--p, 0) * (100% - 34px)); width: 34px; height: 34px; object-fit: contain; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s; }
.road.is-moving .road__truck { opacity: 1; transform: none; animation: bob .5s ease-in-out infinite alternate; }
.menu-open .road { opacity: 0; }
@keyframes lane { to { background-position: -28px 0; } }
@keyframes bob { to { translate: 0 -1.5px; } }

/* --- Tugmalar: ko'tarilish + yaltirash --- */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: background .2s, transform .25s var(--ease-out), box-shadow .25s; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(1,34,79,.55); }
.btn--orange:hover { box-shadow: 0 10px 22px -10px rgba(252,76,1,.7); }
.btn:hover::after { transform: translateX(120%); }
.btn--ghost::after { display: none; }

/* --- Kartalar: kursor yorug'ligi, pastki chiziq, ikonka --- */
.card, .truck { position: relative; overflow: hidden; }
.card::after, .truck::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(1,34,79,.07), transparent 70%); }
.card:hover::after, .truck:hover::after { opacity: 1; }
.card::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.card:hover::before { transform: scaleX(1); }
.card__icon { transition: transform .45s var(--ease-out); }
.card:hover .card__icon { transform: translateY(-4px) rotate(-4deg) scale(1.06); }


/* --- Yangiliklar: o'q belgisi --- */
.news-card__title::after { content: " →"; display: inline-block; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s var(--ease-out); color: var(--orange); }
.news-card:hover .news-card__title::after { opacity: 1; transform: none; }

/* --- Slayder: sekin zoom (Ken Burns) va sarlavha --- */
.js .slide img { transform: scale(1.12); transition: transform 6.5s linear; }
.js .slide[aria-hidden="false"] img { transform: scale(1); }
.js .slide__caption { transform: translateY(-100%); transition: transform .6s var(--ease-out) .35s; }
.js .slide[aria-hidden="false"] .slide__caption { transform: none; }

/* --- "How it works": marshrut chizig'i --- */
.steps--route { position: relative; }
.steps--route::before { content: ""; position: absolute; left: -1px; top: 0; width: 3px; height: 100%; z-index: 1; background: var(--orange); transform: scaleY(var(--route, 0)); transform-origin: top; }
.steps--route .step { transition: background .4s; }
.steps--route .step__num { transition: color .4s, transform .4s var(--ease-out); display: inline-block; }
.steps--route .step.is-passed { background: #fff; }
.steps--route .step.is-passed .step__num { color: var(--orange); transform: scale(1.15); }

/* --- Statistika: raqam ostida chiziq o'sadi --- */
.stat { position: relative; }
.stat::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out) .2s; }
.stat.is-visible::after { transform: scaleX(1); }

/* --- FAQ silliq ochiladi (zamonaviy brauzerlarda) --- */
.faq__list details::details-content { height: 0; overflow: clip; transition: height .4s var(--ease-out), content-visibility .4s allow-discrete; }
.faq__list details[open]::details-content { height: auto; }
.faq__list summary { transition: color .2s; }
.faq__list summary:hover { color: var(--orange); }

/* --- Logolar qatori sekin suzadi, hover'da rangli --- */
.marquee__group img { transition: opacity .3s, filter .3s, transform .3s var(--ease-out); }
.marquee__group img:hover { transform: scale(1.06); }

/* =========================================================
   v4 — hero video
   ========================================================= */
.hero__media--video { position: relative; background: var(--ink); }
.hero__video { display: block; width: 100%; aspect-ratio: 1340 / 600; object-fit: cover; }
@media (max-width: 809px) { .hero__video { aspect-ratio: 4 / 3.4; } }
.video-toggle { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: rgba(20,21,26,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.video-toggle:hover { background: rgba(20,21,26,.8); transform: scale(1.06); }
.video-toggle span { display: block; width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.video-toggle.is-paused span { width: 0; height: 0; border: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
