/* ============================================================
   TEXNO MARKET — based on ilevel.uz design system
   Font: Manrope | Accent: #5754FF | Radius: 50px pills
   ============================================================ */

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

:root {
  /* Colors — extracted from ilevel.uz */
  --clr-accent:        #5754FF;
  --clr-accent-light:  #5754FF1A;
  --clr-accent-border: #5754FF1F;
  --clr-fg:            #1a1a1a;
  --clr-fg-2:          #6b6b6b;
  --clr-fg-3:          #9e9e9e;
  --clr-border:        #DFDFDF;
  --clr-border-light:  #EFEFEF;
  --clr-bg:            #f7f7f7;
  --clr-white:         #ffffff;

  /* Radius */
  --r-pill:   50px;
  --r-card:   12px;
  --r-input:  10px;
  --r-sm:     8px;

  /* Shadow */
  --shadow-card:  0 2px 12px rgba(0,0,0,.06);
  --shadow-hover: 0 8px 32px rgba(0,0,0,.12);

  /* Transition */
  --dur: .2s;
  --ease: ease;
}

html { scroll-behavior: smooth; font-size: 18px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--clr-fg);
  background: var(--clr-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
.container { max-width: 1440px; margin: 0 auto; padding: 0 64px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: var(--r-pill);
  font-size: 16px; font-weight: 600; font-family: inherit;
  border: 1.5px solid transparent;
  transition: background var(--dur), color var(--dur), border-color var(--dur), opacity var(--dur);
  white-space: nowrap; line-height: 1.2; cursor: pointer;
}
.btn:active { opacity: .88; }
.btn--primary       { background: var(--clr-accent); color: #fff; border-color: var(--clr-accent); }
.btn--primary:hover { background: #4644e0; border-color: #4644e0; }
.btn--outline       { background: transparent; color: var(--clr-accent); border-color: var(--clr-accent); }
.btn--outline:hover { background: var(--clr-accent-light); }
.btn--ghost         { background: var(--clr-white); color: var(--clr-fg); border-color: var(--clr-border); }
.btn--ghost:hover   { background: var(--clr-bg); }
.btn--white         { background: #fff; color: var(--clr-accent); border-color: rgba(255,255,255,.3); font-weight: 700; }
.btn--white:hover   { background: rgba(255,255,255,.9); }
.btn--outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-white:hover { background: rgba(255,255,255,.12); }
.btn--full { width: 100%; }

/* ===== HEADER ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border);
}

/* Top row: logo + search + actions */
.header__top { border-bottom: 1px solid var(--clr-border-light); }
.header__top-inner {
  display: flex;
  align-items: center;
  height: 80px;
  gap: 28px;
}
.header__top-inner .header__search {
  flex: 1;
  max-width: 640px;
  margin: 0 auto;
}

/* Nav row */
.header__nav { background: var(--clr-white); }
.header__nav-inner { display: flex; align-items: center; }

/* Legacy single-row fallback */
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 68px;
  gap: 32px;
}

/* Logo */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo__text { font-size: 22px; font-weight: 800; color: var(--clr-fg); letter-spacing: -.4px; }
.logo__text b { color: var(--clr-accent); }

/* Nav */
.nav { display: flex; align-items: center; gap: 0; }
.nav__link {
  padding: 0 20px; height: 72px; display: flex; align-items: center;
  font-size: 18px; font-weight: 500; color: var(--clr-fg);
  position: relative; white-space: nowrap;
}
/* underline animation (same as ilevel.uz) */
.nav__link::after {
  content: ''; position: absolute; bottom: -1px; left: 17px; right: 17px;
  height: 2px; background: var(--clr-accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform .25s ease;
}
.nav__link:hover::after, .nav__link.active::after { transform: scaleX(1); transform-origin: left; }
.nav__link:hover { color: var(--clr-accent); }
.nav__link.active { color: var(--clr-accent); font-weight: 600; }

/* Right side actions */
.header__right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }

/* Search bar */
.header__search {
  display: flex; align-items: center;
  background: #fff; border: 1.5px solid var(--clr-border);
  border-radius: var(--r-pill); overflow: hidden;
  transition: border-color var(--dur);
  width: 240px;
}
.header__search:focus-within { border-color: var(--clr-accent); }
.header__search input {
  flex: 1; border: none; background: transparent; padding: 0 22px;
  height: 52px; font-size: 15px; font-family: inherit; color: var(--clr-fg); outline: none;
}
.header__search input::placeholder { color: var(--clr-fg-3); }
.header__search-btn {
  width: 54px; height: 52px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--clr-fg-3); flex-shrink: 0;
  transition: color var(--dur); padding-right: 6px;
}
.header__search-btn:hover { color: var(--clr-accent); }

/* Language switcher — exact narxlating-btn style from ilevel.uz */
.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-switch__btn {
  background: var(--clr-white); color: var(--clr-accent);
  border: 1px solid var(--clr-accent-border);
  border-radius: var(--r-pill); padding: 9px 16px;
  font-size: 14px; font-weight: 600; font-family: inherit;
  letter-spacing: .3px; transition: background .2s, color .2s;
  line-height: 1;
}
.lang-switch__btn:hover   { background: var(--clr-accent); color: #fff; }
.lang-switch__btn.active  { background: var(--clr-accent); color: #fff; border-color: var(--clr-accent); }

/* Phone button — like ilevel.uz cart pill */
.header__call {
  display: flex; align-items: center; gap: 7px;
  font-size: 15px; font-weight: 600; color: var(--clr-fg);
  background: var(--clr-white); border: 1px solid var(--clr-border-light);
  border-radius: var(--r-pill); padding: 11px 20px;
  transition: border-color var(--dur), color var(--dur);
  white-space: nowrap;
}
.header__call:hover { border-color: var(--clr-accent); color: var(--clr-accent); }
.header__call svg { flex-shrink: 0; }

/* Burger */
.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: 1px solid var(--clr-border); border-radius: var(--r-sm);
  padding: 9px 10px;
}
.burger span { display: block; width: 19px; height: 2px; background: var(--clr-fg); border-radius: 2px; transition: transform var(--dur), opacity var(--dur); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav (burger dropdown — desktop/tablet only) */
.mobile-nav { display: none; flex-direction: column; padding: 8px 20px 16px; gap: 2px; border-top: 1px solid var(--clr-border); }
.mobile-nav.open { display: flex; }
.mobile-nav .nav__link { height: auto; padding: 10px 12px; border-radius: var(--r-sm); }
.mobile-nav .nav__link::after { display: none; }
.mobile-nav .nav__link:hover, .mobile-nav .nav__link.active { background: var(--clr-accent-light); }

/* ===== BOTTOM NAV (mobile only) ===== */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: var(--clr-white);
  border-top: 1px solid var(--clr-border);
  z-index: 300;
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav__item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  color: var(--clr-fg-3);
  font-size: 11px; font-weight: 500;
  border-radius: var(--r-sm);
  transition: color var(--dur);
  padding: 6px 0;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav__item svg { width: 22px; height: 22px; transition: color var(--dur); }
.bottom-nav__item.active,
.bottom-nav__item:hover { color: var(--clr-accent); }
.bottom-nav__icon-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.bottom-nav__badge {
  position: absolute; top: -4px; right: -6px;
  background: #FF6B35; color: #fff;
  font-size: 9px; font-weight: 700; line-height: 1;
  min-width: 14px; height: 14px;
  border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb { padding: 14px 0; font-size: 14px; color: var(--clr-fg-3); background: var(--clr-bg); border-bottom: 1px solid var(--clr-border); }
.breadcrumb a { color: var(--clr-fg-2); }
.breadcrumb a:hover { color: var(--clr-accent); }
.breadcrumb span { margin: 0 6px; }

/* ===== HERO ===== */
.hero { background: linear-gradient(120deg, #4340cc 0%, #5754FF 50%, #7a78ff 100%); overflow: hidden; }
.hero { overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1fr 340px; align-items: center; min-height: 360px; }
.hero__text { padding: 60px 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero__tag {
  display: inline-block; width: fit-content;
  background: rgba(255,255,255,.18); color: #fff;
  font-size: 12px; font-weight: 700; padding: 6px 16px; border-radius: var(--r-pill);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px;
}
.hero__title { font-size: clamp(28px, 3vw, 46px); font-weight: 800; line-height: 1.12; color: #fff; margin-bottom: 14px; letter-spacing: -.5px; }
.hero__sub { font-size: 16px; color: rgba(255,255,255,.8); margin-bottom: 32px; max-width: 460px; line-height: 1.65; }
.hero__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hero__image { display: flex; align-items: center; justify-content: center; padding: 24px 0; }
.hero__image img { height: 300px; width: auto; display: block; filter: drop-shadow(0 24px 40px rgba(0,0,40,.5)); }

/* ===== PROMO BANNER SLIDER ===== */
.promo-slider {
  background: var(--clr-bg);
  padding: 28px 0 32px;
}

/* Viewport lives inside .container so padding is already handled */
.promo-slider__viewport {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  user-select: none;
}

.promo-slider__track {
  display: flex;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

.promo-slider__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
}

.promo-slider__slide a {
  display: block;
}

.promo-slider__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* Arrows */
.promo-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,.92);
  border: 1.5px solid var(--clr-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--clr-fg);
  cursor: pointer;
  z-index: 10;
  transition: background var(--dur), border-color var(--dur), box-shadow var(--dur), opacity var(--dur);
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  backdrop-filter: blur(4px);
}
.promo-slider__arrow:hover {
  background: var(--clr-white);
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.promo-slider__arrow--prev { left: 12px; }
.promo-slider__arrow--next { right: 12px; }

/* Dot indicators */
.promo-slider__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
}

.promo-slider__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--clr-border);
  cursor: pointer;
  padding: 0;
  transition: background var(--dur), width var(--dur), border-radius var(--dur);
}
.promo-slider__dot.active {
  background: var(--clr-accent);
  width: 28px;
  border-radius: 4px;
}

/* ===== STATS ===== */
.stats { background: var(--clr-accent); padding: 36px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__item { text-align: center; padding: 4px 0; color: #fff; position: relative; }
.stats__item + .stats__item::before { content: ''; position: absolute; left: 0; top: 15%; height: 70%; width: 1px; background: rgba(255,255,255,.2); }
.stats__num { display: block; font-size: 38px; font-weight: 800; line-height: 1.1; }
.stats__label { font-size: 14px; opacity: .75; margin-top: 5px; }

/* ===== SECTION ===== */
.section { padding: 80px 0; }
.section--gray { background: var(--clr-bg); }
.section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.section__title { font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; letter-spacing: -.4px; }
.section__more {
  font-size: 15px; font-weight: 600; color: var(--clr-accent);
  display: flex; align-items: center; gap: 4px;
}
.section__more:hover { text-decoration: underline; }

/* ===== CATALOG GRID ===== */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--clr-white); border: 1px solid var(--clr-border);
  border-radius: 16px; overflow: hidden; cursor: pointer;
  transition: box-shadow var(--dur), transform var(--dur), border-color var(--dur);
}
.product-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: transparent; }

.product-card__media { position: relative; aspect-ratio: 1; background: #1c1c2e; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; display: block; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__media video { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-card__no-photo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: rgba(255,255,255,.2); font-size: 13px; }
.product-card__no-photo svg { width: 48px; height: 48px; }

/* Grade badge */
.product-card__grade { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: var(--r-pill); color: #fff; }
.product-card__grade--A { background: #22c55e; }
.product-card__grade--B { background: #f59e0b; }
.product-card__grade--C { background: #ef4444; }
.product-card__new { position: absolute; top: 10px; right: 10px; background: var(--clr-accent); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: var(--r-pill); }

.product-card__body { padding: 16px 18px 18px; }
.product-card__title { font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.35; color: var(--clr-fg); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__meta { font-size: 12px; color: var(--clr-fg-3); margin-bottom: 8px; }
.product-card__price { font-size: 20px; font-weight: 800; color: var(--clr-fg); margin-bottom: 8px; }
.product-card__installment {
  display: inline-block;
  background: #ece9ff; color: var(--clr-accent);
  font-size: 13px; font-weight: 600;
  padding: 4px 12px; border-radius: var(--r-pill);
}

/* ===== CATALOG PAGE ===== */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.catalog-count { font-size: 15px; color: var(--clr-fg-2); }
.sort-select {
  padding: 10px 18px; border: 1.5px solid var(--clr-border); border-radius: var(--r-pill);
  font-size: 14px; font-family: inherit; background: var(--clr-white); outline: none; cursor: pointer;
  color: var(--clr-fg);
}
.sort-select:focus { border-color: var(--clr-accent); }

/* ===== FILTERS ===== */
.filters { background: var(--clr-white); border-radius: 16px; position: sticky; top: 168px; overflow: hidden; }

.fsec { border-bottom: 1px solid var(--clr-border-light); }
.fsec:last-of-type { border-bottom: none; }

.fsec__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; cursor: pointer; user-select: none;
}
.fsec__head > span { font-size: 18px; font-weight: 700; color: var(--clr-fg); }
.fsec__toggle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--clr-fg); border: none; color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform .25s ease;
}
.fsec.closed .fsec__toggle { transform: rotate(180deg); }

.fsec__body { padding: 0 24px 20px; display: flex; flex-direction: column; gap: 14px; }
.fsec.closed .fsec__body { display: none; }

.filter-input {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--clr-border); border-radius: var(--r-pill);
  font-size: 15px; font-family: inherit; outline: none;
  transition: border-color var(--dur);
}
.filter-input:focus { border-color: var(--clr-accent); }

.filter-price-row { display: flex; gap: 10px; }
.filter-price-input {
  flex: 1; display: flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--clr-border); border-radius: var(--r-pill);
  padding: 10px 14px; transition: border-color var(--dur);
}
.filter-price-input:focus-within { border-color: var(--clr-accent); }
.filter-price-input span { font-size: 15px; font-weight: 600; color: var(--clr-fg-3); flex-shrink: 0; }
.filter-price-input input {
  flex: 1; border: none; outline: none; font-size: 15px;
  font-family: inherit; color: var(--clr-fg); background: transparent; width: 0;
}

.filter-check { display: flex; align-items: center; gap: 12px; font-size: 16px; cursor: pointer; color: var(--clr-fg); }
.filter-check input {
  width: 20px; height: 20px; accent-color: var(--clr-accent);
  cursor: pointer; flex-shrink: 0; border-radius: 4px;
}

.filters__actions { padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--clr-border-light); }
.filters__actions .btn { font-size: 15px; padding: 13px 20px; }

/* ===== PRODUCT PAGE ===== */
.product-page { padding: 48px 0 96px; }
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

.product-media__main { aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: #1c1c2e; margin-bottom: 14px; }
.product-media__main img, .product-media__main video { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-media__thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; }
.product-media__thumbs::-webkit-scrollbar { height: 4px; }
.product-media__thumbs::-webkit-scrollbar-thumb { background: var(--clr-border); border-radius: 4px; }
.product-media__thumb {
  flex-shrink: 0; width: 80px; height: 80px; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--clr-border); cursor: pointer; background: #1c1c2e;
  transition: border-color var(--dur);
}
.product-media__thumb.active, .product-media__thumb:hover { border-color: var(--clr-accent); }
.product-media__thumb img, .product-media__thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-info__tag { font-size: 12px; font-weight: 700; color: var(--clr-accent); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.product-info__title { font-size: clamp(24px, 2.5vw, 34px); font-weight: 800; margin-bottom: 18px; line-height: 1.2; letter-spacing: -.4px; }
.product-info__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; }
.badge--grade-A  { background: #dcfce7; color: #16a34a; }
.badge--grade-B  { background: #fef3c7; color: #d97706; }
.badge--grade-C  { background: #fee2e2; color: #dc2626; }
.badge--battery  { background: #f0fdf4; color: #16a34a; }
.badge--used     { background: var(--clr-bg); color: var(--clr-fg-2); }
.badge--new      { background: var(--clr-accent-light); color: var(--clr-accent); }

.product-info__price { font-size: 42px; font-weight: 800; color: var(--clr-fg); line-height: 1; margin-bottom: 6px; letter-spacing: -.5px; }
.product-info__price-sub { font-size: 15px; color: var(--clr-fg-3); margin-bottom: 6px; }
.product-info__price-note, .product-info__price-label { font-size: 14px; color: var(--clr-fg-3); margin-bottom: 28px; }
.product-info__price-label strong { color: var(--clr-accent); }
.product-info__actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.product-info__actions .btn { font-size: 17px; padding: 17px 28px; }

.product-info__specs { border-top: 1px solid var(--clr-border); padding-top: 22px; }
.product-info__specs h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--clr-fg-3); margin-bottom: 12px; }
.spec-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--clr-bg); font-size: 15px; }
.spec-row__label { color: var(--clr-fg-2); }
.spec-row__val { font-weight: 600; }
.product-info__notes { margin-top: 16px; padding: 16px 18px; background: var(--clr-bg); border-radius: 10px; font-size: 14px; color: var(--clr-fg-2); line-height: 1.65; }

/* ===== SERVICES ===== */
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.service-card {
  background: var(--clr-white); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur), transform var(--dur);
}
.service-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }

.service-card__head { padding: 18px 20px 14px; }
.service-card__name { font-size: 16px; font-weight: 700; color: var(--clr-fg); margin-bottom: 10px; line-height: 1.3; }
.service-card__badges { display: flex; gap: 7px; flex-wrap: wrap; }

.service-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f0f0f8; color: var(--clr-fg-2);
  font-size: 13px; font-weight: 600;
  padding: 4px 12px; border-radius: var(--r-pill);
}
.service-badge i {
  display: block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--clr-accent); flex-shrink: 0;
}

.service-card__media {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.service-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.service-card:hover .service-card__media img { transform: scale(1.05); }
.service-card__btn {
  position: absolute; bottom: 12px; right: 12px;
  background: #fff; color: var(--clr-fg);
  border: none; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; font-family: inherit;
  padding: 7px 16px; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  transition: background var(--dur), color var(--dur);
  text-decoration: none;
}
.service-card__btn:hover { background: var(--clr-accent); color: #fff; }

/* ===== ABOUT ===== */
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about__text .section__title { margin-bottom: 18px; }
.about__text p { color: var(--clr-fg-2); margin-bottom: 24px; font-size: 18px; line-height: 1.75; }
.about__list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.about__list li { font-size: 18px; color: var(--clr-fg-2); }
.about__tg { min-width: 0; }

.tg-card {
  display: block; text-decoration: none;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-radius: 20px; padding: 32px;
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
  transition: transform var(--dur), box-shadow var(--dur);
}
.tg-card:hover { transform: translateY(-4px); box-shadow: 0 24px 64px rgba(0,0,0,.24); }

.tg-card__top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.tg-card__avatar { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.tg-card__avatar svg { width: 100%; height: 100%; }
.tg-card__meta { flex: 1; }
.tg-card__name { font-size: 18px; font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 3px; }
.tg-card__handle { font-size: 14px; color: rgba(255,255,255,.45); }
.tg-card__logo { flex-shrink: 0; opacity: .7; }

.tg-card__desc { font-size: 15px; color: rgba(255,255,255,.65); line-height: 1.7; margin-bottom: 28px; }

.tg-card__btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #2AABEE; color: #fff;
  font-size: 15px; font-weight: 700;
  padding: 12px 24px; border-radius: var(--r-pill);
  transition: background var(--dur);
}
.tg-card:hover .tg-card__btn { background: #1d96d6; }

/* ===== CONTACT ===== */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact__info { display: flex; flex-direction: column; gap: 26px; }
.contact__item { display: flex; gap: 16px; align-items: flex-start; }
.contact__icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.contact__item strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.contact__item p { font-size: 15px; color: var(--clr-fg-2); line-height: 1.65; }
.contact__item a { color: var(--clr-accent); }
.contact__item a:hover { text-decoration: underline; }
.contact__map { border-radius: 16px; overflow: hidden; border: 1px solid var(--clr-border); }

/* ===== FOOTER ===== */
.footer { background: #111827; color: #fff; padding: 52px 0; }
.footer__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.footer__brand .logo__text { color: #fff; font-size: 20px; }
.footer__brand .logo__text b { color: #9b99ff; }
.footer__brand p { font-size: 13px; opacity: .4; margin-top: 6px; }
.footer__links { display: flex; gap: 24px; justify-content: center; }
.footer__links a { font-size: 15px; opacity: .6; transition: opacity var(--dur); }
.footer__links a:hover { opacity: 1; }
.footer__copy { font-size: 13px; opacity: .3; text-align: right; }

/* ===== MODAL ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: #fff; border-radius: 20px; padding: 36px; width: 100%; max-width: 500px; max-height: 92vh; overflow-y: auto; position: relative; }
.modal__close { position: absolute; top: 16px; right: 16px; background: var(--clr-bg); border: none; font-size: 15px; color: var(--clr-fg-2); padding: 7px 12px; border-radius: var(--r-pill); }
.modal__close:hover { background: var(--clr-border); color: var(--clr-fg); }
.modal__title { font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.modal__product { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--clr-bg); border-radius: 10px; margin-bottom: 22px; }
.modal__product img { width: 60px; height: 60px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.modal__product-thumb-placeholder { width: 60px; height: 60px; background: #1c1c2e; border-radius: 10px; flex-shrink: 0; }
.modal__product strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.modal__product span { font-size: 16px; color: var(--clr-accent); font-weight: 700; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--clr-fg-2); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--clr-border);
  border-radius: var(--r-pill); font-size: 15px; font-family: inherit; outline: none;
  transition: border-color var(--dur);
}
.form-group textarea { border-radius: 10px; resize: vertical; min-height: 80px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--clr-accent); }

.installment-card { background: var(--clr-accent-light); border: 1px solid var(--clr-accent-border); border-radius: 10px; padding: 16px 18px; margin-bottom: 16px; }
.installment-card h4 { font-size: 14px; font-weight: 700; color: var(--clr-accent); margin-bottom: 12px; }
.installment-result { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.installment-row { background: #fff; border-radius: 10px; padding: 12px 14px; }
.installment-row span { display: block; font-size: 12px; color: var(--clr-fg-2); margin-bottom: 3px; }
.installment-row strong { font-size: 17px; font-weight: 800; }

.form-success { text-align: center; padding: 28px 0 8px; }
.form-success__icon { font-size: 52px; margin-bottom: 12px; }
.form-success h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.form-success p { color: var(--clr-fg-2); margin-bottom: 22px; font-size: 15px; }

/* ===== SKELETON ===== */
@keyframes shimmer { 0% { background-position: -800px 0; } 100% { background-position: 800px 0; } }
.skeleton-card, .skeleton-media, .skeleton-text {
  background: linear-gradient(90deg, #ececec 25%, #e4e4e4 50%, #ececec 75%);
  background-size: 1000px 100%; animation: shimmer 1.4s infinite; border-radius: 16px;
}
.skeleton-card { aspect-ratio: .9; }
.skeleton-media { aspect-ratio: 1; }
.skeleton-text { height: 20px; border-radius: 6px; margin-bottom: 12px; }
.skeleton-text--short { width: 55%; }
.skeleton-text--price { height: 34px; width: 45%; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 96px 20px; }
.empty-state__icon { font-size: 64px; margin-bottom: 18px; }
.empty-state h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { color: var(--clr-fg-2); font-size: 16px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {
  .container { padding: 0 40px; }
}
@media (max-width: 1200px) {
  .container { padding: 0 32px; }
  .catalog-layout { grid-template-columns: 250px 1fr; }
}
@media (max-width: 1024px) {
  .header__top-inner .header__search { max-width: 400px; }
  .header__call { display: none; }
}
@media (max-width: 900px) {
  .promo-slider__arrow { width: 36px; height: 36px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image { display: none; }
  .hero__text { padding: 52px 0; }
  .hero__text { padding: 44px 0; }
  .about__inner { grid-template-columns: 1fr; gap: 32px; }
  .contact__grid { grid-template-columns: 1fr; }
  .product-layout { grid-template-columns: 1fr; gap: 28px; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__item + .stats__item::before { display: none; }
  .stats__item { border-bottom: 1px solid rgba(255,255,255,.12); padding: 12px 0; }
  .stats__item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.12); }
  .stats__item:last-child, .stats__item:nth-last-child(2):nth-child(odd) { border-bottom: none; }
}
@media (max-width: 768px) {
  .promo-slider { padding: 16px 0 20px; }
  .promo-slider__arrow { display: none; }
  .product-card__body { padding: 10px 12px 12px; }
  .product-card__title { font-size: 13px; margin-bottom: 5px; }
  .product-card__meta { font-size: 11px; margin-bottom: 5px; }
  .product-card__price { font-size: 16px; margin-bottom: 5px; }
  .product-card__installment { font-size: 11px; padding: 3px 9px; }
  .header__nav { display: none; }
  .burger { display: flex; }
  .header__top-inner .header__search { max-width: none; }
  .header__top-inner { gap: 12px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .footer__links { justify-content: center; }
  .footer__copy { text-align: center; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* Bottom nav — activate on mobile */
  .bottom-nav { display: flex; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }

  /* Hide burger/dropdown nav — bottom nav handles it */
  .burger { display: none; }
  .mobile-nav, .mobile-nav.open { display: none !important; }
}
@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .lang-switch { display: none; }
  .hero__title { font-size: 26px; }
  .section { padding: 52px 0; }
  .stats__num { font-size: 28px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .services__grid { grid-template-columns: repeat(1, 1fr); }
}

/* ═══════════════════════════════════════
   TRADE-IN PAGE
═══════════════════════════════════════ */

.tradein-hero {
  background: linear-gradient(135deg, #f0efff 0%, #f7f7f7 60%);
  padding: 64px 0 48px;
  text-align: center;
}
.tradein-hero__tag {
  display: inline-block;
  background: var(--clr-accent-light);
  color: var(--clr-accent);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
  letter-spacing: .03em;
}
.tradein-hero__title {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  color: var(--clr-fg);
  line-height: 1.2;
  margin-bottom: 12px;
}
.tradein-hero__sub {
  font-size: 16px;
  color: var(--clr-fg-2);
  max-width: 460px;
  margin: 0 auto;
}

/* ── Wizard wrapper ── */
.tradein-wizard {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 0 80px;
}

/* ── Progress bar ── */
.tradein-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}
.tradein-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
.tradein-progress__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--clr-border);
  color: var(--clr-fg-3);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur), color var(--dur);
  position: relative;
  z-index: 1;
}
.tradein-progress__step.active .tradein-progress__dot {
  background: var(--clr-accent);
  color: #fff;
}
.tradein-progress__step.done .tradein-progress__dot {
  background: #22c55e;
  color: #fff;
}
.tradein-progress__label {
  font-size: 11px;
  font-weight: 500;
  color: var(--clr-fg-3);
  white-space: nowrap;
}
.tradein-progress__step.active .tradein-progress__label { color: var(--clr-accent); }
.tradein-progress__step.done .tradein-progress__label { color: #22c55e; }
.tradein-progress__line {
  flex: 1;
  height: 2px;
  background: var(--clr-border);
  margin: 0 6px;
  margin-bottom: 18px;
  min-width: 40px;
  transition: background var(--dur);
}
.tradein-progress__line.done { background: #22c55e; }

/* ── Step panels ── */
.tradein-step { display: none; }
.tradein-step.active { display: block; animation: fadeSlideUp .25s ease; }
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tradein-step__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--clr-fg);
  margin-bottom: 24px;
  text-align: center;
}

/* ── Series grid ── */
.tradein-series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}
.tradein-series-btn {
  background: var(--clr-white);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-card);
  padding: 18px 10px 14px;
  cursor: pointer;
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur), color var(--dur);
  text-align: center;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.tradein-series-btn:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 4px 16px rgba(87,84,255,.12);
}
.tradein-series-btn.selected {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(87,84,255,.25);
}
.tradein-series-btn__icon {
  font-size: 26px;
  line-height: 1;
}
.tradein-series-btn__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.tradein-series-btn__years {
  font-size: 11px;
  color: var(--clr-fg-3);
}
.tradein-series-btn.selected .tradein-series-btn__years { color: rgba(255,255,255,.75); }

/* ── Model chips ── */
.tradein-model-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.tradein-model-chip {
  background: var(--clr-white);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-pill);
  padding: 10px 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--clr-fg);
  transition: border-color var(--dur), background var(--dur), color var(--dur), box-shadow var(--dur);
}
.tradein-model-chip:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 2px 10px rgba(87,84,255,.12);
}
.tradein-model-chip.selected {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
}

/* ── Survey questions ── */
.tradein-survey { display: flex; flex-direction: column; gap: 28px; }
.tradein-question__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-fg);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tradein-question__label span { font-size: 20px; }
.tradein-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.tradein-options--2 { grid-template-columns: repeat(2, 1fr); }
.tradein-option {
  background: var(--clr-white);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-card);
  padding: 14px 10px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: border-color var(--dur), background var(--dur), color var(--dur), box-shadow var(--dur);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.tradein-option:hover {
  border-color: var(--clr-accent);
  box-shadow: 0 2px 10px rgba(87,84,255,.1);
}
.tradein-option.selected {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: #fff;
}
.tradein-option__icon { font-size: 22px; line-height: 1; }
.tradein-option__text { font-size: 13px; font-weight: 600; }

/* ── Navigation buttons ── */
.tradein-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

/* ── Result card ── */
.tradein-result {
  background: var(--clr-white);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-align: center;
}
.tradein-result__header {
  background: linear-gradient(135deg, var(--clr-accent) 0%, #8b88ff 100%);
  padding: 40px 32px 32px;
  color: #fff;
}
.tradein-result__model {
  font-size: 15px;
  font-weight: 500;
  opacity: .85;
  margin-bottom: 10px;
}
.tradein-result__label {
  font-size: 16px;
  font-weight: 600;
  opacity: .9;
  margin-bottom: 8px;
}
.tradein-result__price {
  font-size: clamp(36px, 8vw, 60px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}
.tradein-result__price-range {
  font-size: 14px;
  opacity: .75;
  margin-top: 6px;
}
.tradein-result__body { padding: 28px 32px; }
.tradein-result__summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.tradein-result__summary-item {
  background: var(--clr-bg);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  text-align: left;
}
.tradein-result__summary-key {
  font-size: 11px;
  color: var(--clr-fg-3);
  font-weight: 500;
  margin-bottom: 2px;
}
.tradein-result__summary-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-fg);
}
.tradein-result__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.tradein-result__ctas .btn { flex: 1; min-width: 140px; }

/* ── Contact form inside result ── */
.tradein-contact-form {
  margin-top: 24px;
  border-top: 1px solid var(--clr-border-light);
  padding-top: 24px;
  text-align: left;
}
.tradein-contact-form .form-group { margin-bottom: 14px; }
.tradein-contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--clr-fg-2);
  margin-bottom: 6px;
}
.tradein-contact-form input,
.tradein-contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-input);
  font-family: inherit;
  font-size: 14px;
  color: var(--clr-fg);
  background: var(--clr-bg);
  outline: none;
  transition: border-color var(--dur);
}
.tradein-contact-form input:focus,
.tradein-contact-form textarea:focus { border-color: var(--clr-accent); background: #fff; }
.tradein-contact-form textarea { resize: vertical; min-height: 72px; }

/* ── Success state ── */
.tradein-success {
  text-align: center;
  padding: 40px 24px;
}
.tradein-success__icon { font-size: 52px; margin-bottom: 16px; }
.tradein-success__title { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.tradein-success__sub { color: var(--clr-fg-2); font-size: 15px; }

/* ── Upgrade section ── */
.tradein-upgrade {
  margin-top: 24px;
  border-top: 1px solid var(--clr-border-light);
  padding-top: 24px;
  text-align: left;
}
.tradein-upgrade__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--clr-fg);
  margin-bottom: 16px;
}
.tradein-upgrade__budget {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.tradein-upgrade__budget-label {
  font-size: 14px;
  color: var(--clr-fg-2);
  font-weight: 500;
  white-space: nowrap;
}
.tradein-upgrade__budget-input {
  flex: 1;
  min-width: 100px;
  max-width: 140px;
  padding: 10px 14px;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-input);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color var(--dur);
}
.tradein-upgrade__budget-input:focus { border-color: var(--clr-accent); }
.tradein-upgrade__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.tradein-upgrade__empty {
  text-align: center;
  color: var(--clr-fg-3);
  font-size: 14px;
  padding: 24px;
}
.tradein-upgrade__more {
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .tradein-series-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tradein-series-btn { padding: 14px 6px 10px; }
  .tradein-options { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .tradein-result__summary { grid-template-columns: 1fr; }
  .tradein-result__ctas { flex-direction: column; }
  .tradein-result__header { padding: 32px 20px 24px; }
  .tradein-result__body { padding: 20px; }
  .tradein-wizard { padding: 32px 0 60px; }
  .tradein-upgrade__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .tradein-series-grid { grid-template-columns: repeat(2, 1fr); }
  .tradein-options { grid-template-columns: repeat(2, 1fr); }
  .tradein-options--2 { grid-template-columns: repeat(2, 1fr); }
}
