/* ================================================
   ISHIYAMA — Premium Light Automotive
   Unbounded + Manrope | avadge-inspired
   Fixed: no horizontal scroll down to 360px
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@400;600;700;900&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --w:       #ffffff;
  --bg:      #f7f6f3;
  --bg2:     #f0efe9;
  --dark:    #141414;
  --dark2:   #1c1c1c;
  --dark3:   #252525;
  --line:    #e8e6e0;
  --text:    #181818;
  --muted:   #6e6e6e;
  --light:   #aaa;
  --red:     #d12626;
  --red2:    #b01f1f;
  --red-lt:  rgba(209,38,38,0.08);
  /* avadge orange accent */
  --orange:  #F28500;
  --orange2: #d97600;
  --tg:      #229ED9;
  --r-sm:    8px;
  --r:       16px;
  --sh:      0 2px 20px rgba(0,0,0,0.06);
  --sh2:     0 12px 48px rgba(0,0,0,0.14);
  --tr:      0.2s ease;
  --fh:      'Unbounded', sans-serif;
  --fb:      'Manrope', sans-serif;
}

/* ===== RESET & BASE ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;overflow-x:hidden}
body{background:var(--bg);color:var(--text);font-family:var(--fb);font-size:16px;line-height:1.6;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;min-width:0}
a{color:inherit;text-decoration:none;transition:color var(--tr)}
img{max-width:100%;display:block}
ul{list-style:none}

/* No element should escape the viewport */
.container{width:100%;max-width:1240px;margin:0 auto;padding:0 clamp(16px,4vw,32px)}

/* ===== ANIMATIONS ===== */
.reveal{opacity:0;transform:translateY(24px);
  transition:opacity .65s cubic-bezier(.22,.68,0,1.1),transform .65s cubic-bezier(.22,.68,0,1.1)}
.reveal.in{opacity:1;transform:none}
.reveal-up{opacity:0;transform:translateY(16px);transition:opacity .5s ease,transform .5s ease}
.reveal-up.in{opacity:1;transform:none}
.stagger>*{opacity:0;transform:translateY(18px);transition:opacity .45s ease,transform .45s ease}
.stagger.in>*:nth-child(1){opacity:1;transform:none;transition-delay:.00s}
.stagger.in>*:nth-child(2){opacity:1;transform:none;transition-delay:.06s}
.stagger.in>*:nth-child(3){opacity:1;transform:none;transition-delay:.12s}
.stagger.in>*:nth-child(4){opacity:1;transform:none;transition-delay:.18s}
.stagger.in>*:nth-child(5){opacity:1;transform:none;transition-delay:.24s}
.stagger.in>*:nth-child(6){opacity:1;transform:none;transition-delay:.30s}
.stagger.in>*:nth-child(7){opacity:1;transform:none;transition-delay:.36s}
.stagger.in>*:nth-child(8){opacity:1;transform:none;transition-delay:.42s}
.stagger.in>*:nth-child(9){opacity:1;transform:none;transition-delay:.48s}
.stagger.in>*:nth-child(10){opacity:1;transform:none;transition-delay:.54s}
.stagger.in>*:nth-child(11){opacity:1;transform:none;transition-delay:.60s}
.stagger.in>*:nth-child(12){opacity:1;transform:none;transition-delay:.66s}

/* ===== BUTTONS ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:13px clamp(16px,3vw,28px);font-family:var(--fb);font-size:14px;font-weight:600;
  letter-spacing:.02em;border:none;cursor:pointer;transition:all var(--tr);
  border-radius:var(--r-sm);white-space:nowrap;flex-shrink:0}
.btn-primary{background:var(--dark);color:#fff}
.btn-primary:hover{background:var(--dark3);transform:translateY(-1px);box-shadow:0 6px 20px rgba(0,0,0,0.2)}
.btn-red{background:var(--red);color:#fff}
.btn-red:hover{background:var(--red2);transform:translateY(-1px);box-shadow:0 6px 20px rgba(209,38,38,0.25)}
.btn-outline{background:transparent;border:1.5px solid var(--line);color:var(--text)}
.btn-outline:hover{border-color:var(--text);background:var(--text);color:#fff}
.btn-outline-w{background:transparent;border:1.5px solid rgba(255,255,255,0.3);color:#fff}
.btn-outline-w:hover{border-color:#fff;background:rgba(255,255,255,0.08)}
.btn-tg{background:var(--tg);color:#fff;border-radius:var(--r-sm)}
.btn-tg:hover{background:#1a8bbf}
.btn-sm{padding:9px 18px;font-size:13px}
.btn-lg{padding:16px clamp(20px,3vw,36px);font-size:15px}

/* ===== CHIP ===== */
.chip{display:inline-flex;align-items:center;gap:5px;padding:4px 12px;border-radius:99px;
  font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.chip-dark{background:var(--dark);color:#fff}
.chip-red{background:var(--red);color:#fff}
.chip-green{background:#1a9e4a;color:#fff}
.chip-outline{background:transparent;border:1.5px solid var(--line);color:var(--muted)}

/* ===== SECTION HEADER ===== */
.sh{margin-bottom:clamp(32px,5vw,52px)}
.sh-label{font-size:12px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--red);
  display:flex;align-items:center;gap:8px;margin-bottom:10px}
.sh-label::before{content:'';width:20px;height:2px;background:var(--red);border-radius:1px;flex-shrink:0}
.sh h2{font-family:var(--fh);font-size:clamp(24px,4vw,46px);font-weight:700;letter-spacing:-.01em;
  line-height:1.1;margin-bottom:12px}
.sh p{color:var(--muted);font-size:15px;max-width:560px;line-height:1.75}
.sh-row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap}

/* ===== TOPBAR ===== */
.topbar{background:var(--dark);padding:8px 0}
.topbar .container{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.topbar a,.topbar span{font-size:12px;color:rgba(255,255,255,.5);transition:color var(--tr)}
.topbar a:hover{color:#fff}
.topbar-l,.topbar-r{display:flex;align-items:center;gap:16px}
.topbar-soc{display:flex;gap:7px}
.topbar-soc a{width:26px;height:26px;border:1px solid rgba(255,255,255,.12);border-radius:50%;
  display:flex;align-items:center;justify-content:center;font-size:11px;color:rgba(255,255,255,.4);
  transition:all var(--tr)}
.topbar-soc a:hover{border-color:var(--orange);color:var(--orange)}

/* ===== NAVBAR ===== */
.navbar{position:sticky;top:0;z-index:200;background:rgba(255,255,255,.97);
  backdrop-filter:blur(16px);border-bottom:1px solid var(--line);transition:box-shadow var(--tr)}
.navbar.scrolled{box-shadow:var(--sh)}
.navbar .container{display:flex;align-items:center;justify-content:space-between;
  height:clamp(60px,8vw,72px);gap:12px}
.logo{display:flex;align-items:center;flex-shrink:0;text-decoration:none}
.logo-img{height:36px;width:auto;display:block}
.nav-links{display:flex;align-items:center;gap:2px}
.nav-links a{font-family:var(--fb);font-size:14px;font-weight:500;color:var(--muted);
  padding:7px 12px;border-radius:var(--r-sm);transition:all var(--tr)}
.nav-links a:hover,.nav-links a.active{color:var(--text);background:var(--bg)}
.nav-right{display:flex;align-items:center;gap:8px;flex-shrink:0}
.burger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:4px;flex-shrink:0}
.burger span{width:22px;height:1.5px;background:var(--text);transition:all var(--tr);display:block}

/* ── Иконка-кнопки в nav-right (TG, телефон) ── */
.nav-icon-btn{display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;border-radius:var(--r-sm);border:none;
  cursor:pointer;transition:all var(--tr);flex-shrink:0;text-decoration:none}
.nav-icon-btn svg{width:20px;height:20px;flex-shrink:0}
.nav-icon-btn--tg{background:var(--red);color:#fff}
.nav-icon-btn--tg:hover{background:var(--red2);transform:translateY(-1px);box-shadow:0 6px 20px rgba(209,38,38,0.25)}
.nav-icon-btn--call{background:var(--dark);color:#fff}
.nav-icon-btn--call:hover{background:var(--dark3);transform:translateY(-1px);box-shadow:0 6px 20px rgba(0,0,0,0.2)}

/* ── Избранное в nav-right ── */
.nav-fav-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;
  width:42px;height:42px;border-radius:var(--r-sm);background:transparent;
  border:1.5px solid var(--line);color:var(--muted);cursor:pointer;
  transition:all var(--tr);flex-shrink:0;text-decoration:none}
.nav-fav-btn svg{width:20px;height:20px;flex-shrink:0;transition:fill var(--tr),stroke var(--tr)}
.nav-fav-btn:hover{border-color:var(--red);color:var(--red)}
.nav-fav-btn.has-items{border-color:var(--red);color:var(--red);background:var(--red-lt)}
.nav-fav-btn.has-items svg{fill:var(--red);stroke:var(--red)}
.nav-fav-count{display:none;position:absolute;top:-7px;right:-7px;
  background:var(--red);color:#fff;font-size:10px;font-weight:700;
  min-width:18px;height:18px;border-radius:99px;
  align-items:center;justify-content:center;padding:0 4px;
  line-height:1;border:2px solid var(--w)}

/* ===== HERO ===== */
.hero{background:var(--dark);overflow:hidden;position:relative;
  min-height:clamp(480px,92vh,900px);display:flex;align-items:center}
.hero-media{position:absolute;inset:0}
.hero-media img{width:100%;height:100%;object-fit:cover;opacity:.25}
.hero-overlay{position:absolute;inset:0;
  background:linear-gradient(100deg,rgba(20,20,20,.92) 0%,rgba(20,20,20,.55) 60%,rgba(20,20,20,.25) 100%)}
.hero .container{position:relative;z-index:2;padding-top:clamp(48px,8vw,80px);padding-bottom:clamp(48px,8vw,80px)}
.hero-eyebrow{font-size:clamp(10px,2vw,12px);font-weight:700;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(255,255,255,.45);margin-bottom:clamp(14px,3vw,22px);opacity:0;animation:fin .5s .1s forwards}
@keyframes fin{to{opacity:1}}
.hero-title{font-family:var(--fh);font-weight:900;
  font-size:clamp(36px,9vw,92px);line-height:.95;letter-spacing:-.02em;color:#fff;
  margin-bottom:clamp(16px,3vw,24px)}
.hero-title .ln{display:block;overflow:hidden}
.hero-title .ln span{display:block;transform:translateY(110%);animation:sup .7s cubic-bezier(.16,1,.3,1) forwards}
.hero-title .ln:nth-child(1) span{animation-delay:.2s}
.hero-title .ln:nth-child(2) span{animation-delay:.34s}
.hero-title .ln:nth-child(3) span{animation-delay:.48s}
.hero-title em{color:var(--red);font-style:normal}
@keyframes sup{to{transform:none}}
.hero-sub{font-size:clamp(14px,2.5vw,17px);color:rgba(255,255,255,.55);
  max-width:480px;line-height:1.75;margin-bottom:clamp(24px,4vw,40px);
  opacity:0;animation:fin .6s .85s forwards}
.hero-btns{display:flex;gap:10px;flex-wrap:wrap;opacity:0;animation:fin .6s 1s forwards;
  margin-bottom:clamp(36px,6vw,64px)}
/* Двухколоночная grid-раскладка hero: контент + карточка подбора */
.hero-layout{padding: clamp(48px, 8vw, 100px) 0;display:grid;grid-template-columns:1fr 380px;align-items:center;gap:48px;
  min-height:90vh}
/* Карточка быстрого подбора (правая колонка) */
.hero-search{
  background:rgba(255,255,255,.05);backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.1);border-radius:20px;
  padding:clamp(20px,3vw,32px);
  display:flex;flex-direction:column;gap:12px;
}
.hs-title{font-family:var(--fh);font-size:11px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
  color:rgba(255,255,255,.35);margin-bottom:4px}
.hs-field{margin-bottom:0}
.hs-field label,.hs-lbl{font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(255,255,255,.35);display:block;margin-bottom:5px}
.hs-field select,.hs-sel{width:100%;padding:11px 14px;background:#1e1e1e;
  border:1.5px solid rgba(255,255,255,.08);border-radius:10px;
  color:#fff;-webkit-text-fill-color:#fff;color-scheme:dark;
  font-family:var(--fb);font-size:14px;
  outline:none;appearance:none;cursor:pointer;transition:border-color .2s}
.hs-field select:focus,.hs-sel:focus{border-color:var(--orange)}
.hs-field select option,.hs-sel option{background:#1e1e1e;color:#fff}
.hs-btn-full{width:100%;padding:14px 20px;margin-top:4px;font-size:15px;font-weight:700;
  justify-content:center;border-radius:10px}
.hero-stats{display:flex;flex-wrap:wrap;gap:0;border-top:1px solid rgba(255,255,255,.1);
  padding-top:clamp(20px,4vw,36px);opacity:0;animation:fin .5s 1.15s forwards}
.hstat{padding-right:clamp(16px,3vw,44px);margin-right:clamp(16px,3vw,44px);
  border-right:1px solid rgba(255,255,255,.1)}
.hstat:last-child{border-right:none;margin-right:0;padding-right:0}
.hstat-n{font-family:var(--fh);font-size:clamp(24px,5vw,40px);font-weight:700;color:#fff;line-height:1}
.hstat-n em{color:var(--red);font-style:normal}
.hstat-l{font-size:clamp(10px,1.5vw,12px);color:rgba(255,255,255,.4);text-transform:uppercase;
  letter-spacing:.08em;margin-top:4px}

/* ===== BRANDS — точная копия avadge ===== */
.brands-section{background:var(--dark2);padding:clamp(40px,6vw,72px) 0;overflow:hidden}
.brands-label{font-family:var(--fb);font-size:12px;font-weight:700;letter-spacing:.16em;
  text-transform:uppercase;color:rgba(255,255,255,.3);margin-bottom:clamp(16px,3vw,28px)}
.brands-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:8px;
}
.brand-tile{
  background:var(--dark2);
  border-radius:8px;
  padding:clamp(16px,2.5vw,24px) clamp(8px,1.5vw,14px);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;
  cursor:pointer;min-height:clamp(90px,10vw,120px);
  position:relative;
  transition:background var(--tr),color var(--tr),border-color var(--tr);
  text-decoration:none;
  border:1px solid transparent;
  overflow:hidden;
  isolation:isolate;
}
.brand-tile::before{
  content:'';position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(135deg,transparent 30%,rgba(242,133,0,.13) 50%,transparent 70%);
  transform:translate(-110%);
  transition:transform .65s cubic-bezier(.25,.46,.45,.94);
}
.brand-tile:hover::before{transform:translate(110%)}
.brand-tile::after{
  content:'';position:absolute;bottom:0;left:0;right:0;height:2px;
  background:var(--orange);transform:scaleX(0);
  transition:transform .25s ease;
  transform-origin:left;
}
.brand-tile:hover{background:#222;border-color:rgba(242,133,0,.35)}
.brand-tile:hover::after{transform:scaleX(1)}
.brand-logo{
  height:clamp(40px,4.5vw,56px);width:auto;max-width:75%;
  display:flex;align-items:center;justify-content:center;
  position:relative;z-index:1;
}
.brand-logo-letter{
  font-family:var(--fb);font-size:clamp(14px,2vw,20px);font-weight:700;
  color:rgba(255,255,255,.55);
  transition:color var(--tr);
}
.brand-tile:hover .brand-logo-letter{color:var(--orange)}
.brand-name{
  font-family:var(--fb);font-size:clamp(9px,1.2vw,11px);font-weight:600;
  letter-spacing:.04em;text-transform:uppercase;
  color:rgba(255,255,255,.38);
  transition:color var(--tr);
  text-align:center;
  line-height:1.2;
  position:relative;z-index:1;
}
.brand-tile:hover .brand-name{color:var(--orange)}
.brand-logo-img{width:auto;height:100%;max-width:80%;object-fit:contain;
  filter:grayscale(1) brightness(.9);opacity:.55;
  transition:opacity var(--tr),filter var(--tr),transform var(--tr)}
.brand-tile:hover .brand-logo-img{opacity:1;
  filter:grayscale(0) brightness(1.08) contrast(1.04);
  transform:scale(1.06)}

/* ===== CAR CARDS ===== */
.cars-section{padding:clamp(48px,8vw,88px) 0;background:var(--bg)}
.cars-scroll{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:20px}

.car-card{background:var(--w);border-radius:var(--r);overflow:hidden;
  transition:all var(--tr);border:1px solid var(--line);display:flex;flex-direction:column;cursor:pointer}
.car-card:hover{box-shadow:var(--sh2);transform:translateY(-4px);border-color:rgba(209,38,38,.2)}

.car-img{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--bg2);flex-shrink:0}
.car-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.car-card:hover .car-img img{transform:scale(1.04)}
.car-img-badges{position:absolute;top:10px;left:10px;display:flex;gap:5px;flex-wrap:wrap}
.car-img-fav{position:absolute;top:10px;right:10px;width:32px;height:32px;
  background:rgba(255,255,255,.92);border-radius:50%;display:flex;align-items:center;
  justify-content:center;font-size:14px;cursor:pointer;transition:all var(--tr)}
.car-img-fav:hover{background:#fff;transform:scale(1.1)}

.car-body{padding:clamp(14px,2vw,20px) clamp(14px,2vw,22px);flex:1;display:flex;flex-direction:column}
.car-origin{font-size:12px;color:var(--light);font-weight:500;margin-bottom:4px;
  display:flex;align-items:center;gap:5px}
.car-name{font-family:var(--fh);font-size:clamp(14px,2vw,17px);font-weight:700;
  letter-spacing:-.01em;color:var(--text);margin-bottom:12px;line-height:1.2}

.car-specs-row{display:grid;grid-template-columns:repeat(2,1fr);gap:6px;margin-bottom:14px}
.car-spec-box{background:var(--bg);border-radius:var(--r-sm);padding:8px 10px}
.car-spec-label{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--light);margin-bottom:2px}
.car-spec-val{font-size:clamp(11px,1.5vw,13px);font-weight:700;color:var(--text)}

.car-footer{display:flex;align-items:flex-end;justify-content:space-between;
  margin-top:auto;padding-top:14px;border-top:1px solid var(--line)}
.car-price-label{font-size:11px;color:var(--light);font-weight:500;margin-bottom:2px}
.car-price{font-family:var(--fh);font-size:clamp(16px,3vw,22px);font-weight:700;
  color:var(--text);letter-spacing:-.01em;line-height:1}
.car-price em{font-size:13px;font-style:normal;color:var(--muted);font-weight:500;margin-left:2px}
.car-go{width:38px;height:38px;background:var(--dark);border-radius:var(--r-sm);
  display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:16px;transition:all var(--tr);flex-shrink:0}
.car-go:hover{background:var(--red);transform:scale(1.05)}

/* ===== STEPS — точная копия avadge ===== */
/*
  avadge: каждый шаг — flex строка.
  Левая часть: номер (большой оранжевый при ховере).
  Правая часть: заголовок + текст (широкий).
  Внизу каждого шага — полноширокое фото.
  Разделитель — горизонтальная линия между шагами.
  Фон секции белый, при ховере строка не подсвечивается — только номер меняет цвет.
*/
.steps-section{padding:clamp(48px,8vw,88px) 0;background:var(--w)}
.steps-list{display:flex;flex-direction:column;margin-top:clamp(28px,5vw,52px)}

.step-item{
  border-bottom:1px solid var(--line);
  padding:clamp(20px,4vw,36px) 0;
  cursor:default;
}
.step-item:first-child{border-top:1px solid var(--line)}

/* Верхняя часть шага: номер + контент */
.step-top{
  display:grid;
  grid-template-columns:clamp(48px,6vw,80px) 1fr;
  gap:clamp(16px,3vw,32px);
  align-items:start;
  margin-bottom:clamp(16px,3vw,28px);
}
.step-num{
  font-family:var(--fh);
  font-size:clamp(36px,5vw,56px);
  font-weight:900;
  color:var(--line);
  line-height:1;
  transition:color .25s ease;
  padding-top:4px;
}
.step-item:hover .step-num{color:var(--orange)}
.step-text h3{
  font-family:var(--fh);
  font-size:clamp(14px,2.5vw,20px);
  font-weight:700;
  letter-spacing:-.01em;
  margin-bottom:10px;
  line-height:1.2;
}
.step-text p{
  color:var(--muted);
  font-size:clamp(13px,1.8vw,14px);
  line-height:1.75;
}
/* Нижняя часть: фото */
.step-photo{
  border-radius:var(--r);
  overflow:hidden;
  aspect-ratio:16/6;
  background:var(--bg2);
}
.step-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.step-item:hover .step-photo img{transform:scale(1.02)}

/* ===== REVIEWS ===== */
.reviews-section{padding:clamp(48px,8vw,88px) 0;background:var(--bg)}
.reviews-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(320px,100%),1fr));
  gap:16px;margin-top:clamp(28px,5vw,52px)}
.review-card{background:var(--w);border:1px solid var(--line);border-radius:var(--r);
  padding:clamp(20px,3vw,32px);position:relative;transition:all var(--tr)}
.review-card:hover{box-shadow:var(--sh);transform:translateY(-2px)}
.review-card::before{content:'\201C';position:absolute;top:20px;right:20px;
  font-family:var(--fh);font-size:80px;color:var(--red);opacity:.07;line-height:1;font-style:italic}
.review-stars{display:flex;gap:3px;margin-bottom:12px}
.review-stars span{color:#f59e0b;font-size:15px}
.review-car{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--red);margin-bottom:14px;padding:5px 12px;background:var(--red-lt);
  border-radius:99px;display:inline-block}
.review-text{font-size:14px;color:var(--muted);line-height:1.8;margin-bottom:20px}
.review-author{display:flex;align-items:center;gap:12px;padding-top:16px;border-top:1px solid var(--line)}
.review-av{width:40px;height:40px;border-radius:50%;background:var(--dark);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--fh);font-size:13px;font-weight:700;color:#fff;flex-shrink:0}
.review-name{font-weight:700;font-size:14px}
.review-date{font-size:12px;color:var(--light);margin-top:2px}

/* ===== CTA STRIP ===== */
.cta-strip{background:var(--dark);padding:clamp(48px,8vw,80px) 0;position:relative;overflow:hidden}
.cta-strip::after{content:'ISHIYAMA';position:absolute;right:-40px;top:50%;transform:translateY(-50%);
  font-family:var(--fh);font-size:clamp(60px,14vw,180px);font-weight:900;
  color:rgba(255,255,255,.025);line-height:1;pointer-events:none;white-space:nowrap}
.cta-inner{display:flex;align-items:center;justify-content:space-between;
  gap:clamp(24px,4vw,48px);flex-wrap:nowrap;position:relative}
.cta-text{flex:1 1 0;min-width:0}
.cta-title{font-family:var(--fh);font-size:clamp(24px,4vw,52px);font-weight:700;
  color:#fff;line-height:1.05;letter-spacing:-.02em}
.cta-sub{color:rgba(255,255,255,.4);font-size:clamp(13px,2vw,15px);margin-top:8px}
.cta-actions{display:flex;gap:12px;flex-wrap:wrap;flex-shrink:0;align-items:center}

/* ===== FOOTER ===== */
.footer{background:var(--dark2);padding:clamp(40px,6vw,64px) 0 0;border-top:3px solid var(--red)}
.footer-grid{display:grid;grid-template-columns:1.5fr repeat(3,1fr);
  gap:clamp(24px,4vw,48px);padding-bottom:clamp(32px,5vw,48px);
  border-bottom:1px solid rgba(255,255,255,.06)}
.footer-logo{margin-bottom:14px}
.footer-logo-img{height:40px;width:auto;display:block}
.footer-brand p{color:rgba(255,255,255,.35);font-size:13px;line-height:1.75;max-width:260px}
.footer-soc{display:flex;gap:8px;margin-top:18px}
.footer-soc a{width:32px;height:32px;border:1px solid rgba(255,255,255,.1);border-radius:50%;
  display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.35);
  font-size:12px;transition:all var(--tr)}
.footer-soc a:hover{border-color:var(--orange);color:var(--orange)}
.footer-col h5{font-family:var(--fh);font-size:11px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:rgba(255,255,255,.8);margin-bottom:16px}
.footer-col ul{display:flex;flex-direction:column;gap:9px}
.footer-col ul a{color:rgba(255,255,255,.38);font-size:13px;transition:all var(--tr)}
.footer-col ul a:hover{color:#fff;padding-left:4px}
.footer-bottom{padding:16px 0;display:flex;align-items:center;justify-content:space-between;
  gap:14px;flex-wrap:wrap}
.footer-bottom p{font-size:12px;color:rgba(255,255,255,.28)}

/* ===== PAGE HEADER ===== */
.page-hdr{padding:clamp(40px,6vw,72px) 0 clamp(32px,5vw,52px);background:var(--w);
  border-bottom:1px solid var(--line);position:relative}
.page-hdr::after{content:'';position:absolute;bottom:0;left:clamp(16px,4vw,32px);
  width:80px;height:3px;background:var(--red);border-radius:2px}
.page-hdr h1{font-family:var(--fh);font-size:clamp(32px,7vw,76px);font-weight:900;
  line-height:1;letter-spacing:-.02em;margin-bottom:14px}
.breadcrumb{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--light)}
.breadcrumb a:hover{color:var(--red)}
.breadcrumb span{color:var(--red)}

/* ===== CATALOG FILTERS ===== */
.catalog-layout{display:grid;grid-template-columns:260px 1fr;gap:24px;align-items:start}
.filters{background:var(--w);border:1px solid var(--line);border-radius:var(--r);
  padding:20px;position:sticky;top:80px}
.filter-hdr{font-family:var(--fh);font-size:11px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:var(--text);margin-bottom:18px;padding-bottom:14px;
  border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}
.filter-reset{font-family:var(--fb);font-size:12px;font-weight:600;color:var(--red);
  cursor:pointer;text-transform:none;letter-spacing:0}
.filter-group{margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.filter-group:last-child{border-bottom:none;margin:0;padding:0}
.filter-group>label{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--light);display:block;margin-bottom:9px}
.f-sel{width:100%;padding:9px 12px;background:var(--bg);border:1.5px solid var(--line);
  border-radius:var(--r-sm);font-family:var(--fb);font-size:14px;color:var(--text);
  outline:none;appearance:none;cursor:pointer;transition:border-color var(--tr)}
.f-sel:focus{border-color:var(--red)}
.f-checks{display:flex;flex-direction:column;gap:8px}
.f-check{display:flex;align-items:center;gap:8px;font-size:13.5px;color:var(--muted);
  cursor:pointer;transition:color var(--tr)}
.f-check input{width:14px;height:14px;accent-color:var(--red);cursor:pointer;flex-shrink:0}
.f-check:hover{color:var(--text)}
.f-range{width:100%;accent-color:var(--red);cursor:pointer;margin-bottom:6px}
.f-range-row{font-size:12px;color:var(--muted);display:flex;justify-content:space-between}
.f-range-row strong{color:var(--text);font-weight:700}

.cat-top{display:flex;align-items:center;justify-content:space-between;
  margin-bottom:18px;gap:10px;flex-wrap:wrap}
.cat-count{font-size:14px;color:var(--muted)}
.cat-count strong{color:var(--text)}
.cat-sort{display:flex;align-items:center;gap:8px}
.cat-sort select{padding:7px 11px;background:var(--w);border:1.5px solid var(--line);
  border-radius:var(--r-sm);font-size:13px;font-family:var(--fb);outline:none;cursor:pointer}
.view-btns{display:flex;gap:4px}
.vbtn{width:32px;height:32px;display:flex;align-items:center;justify-content:center;
  border:1.5px solid var(--line);border-radius:var(--r-sm);cursor:pointer;
  background:var(--w);color:var(--muted);font-size:13px;transition:all var(--tr)}
.vbtn.active,.vbtn:hover{border-color:var(--red);color:var(--red)}
.active-tags{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:12px}
.atag{display:flex;align-items:center;gap:5px;padding:3px 10px;
  background:var(--red-lt);border:1px solid rgba(209,38,38,.2);border-radius:99px;
  font-size:12px;font-weight:600;color:var(--red)}
.atag button{background:none;border:none;cursor:pointer;color:var(--red);font-size:13px;line-height:1;padding:0}
.cars-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr));gap:18px}
.cars-grid.list-view{grid-template-columns:1fr}
.cars-grid.list-view .car-card{flex-direction:row;min-height:170px}
.cars-grid.list-view .car-img{width:220px;aspect-ratio:auto;height:auto;flex-shrink:0;align-self:stretch}
.pagination{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:36px}
.pag{width:36px;height:36px;display:flex;align-items:center;justify-content:center;
  border:1.5px solid var(--line);border-radius:var(--r-sm);font-family:var(--fh);
  font-size:13px;font-weight:600;cursor:pointer;background:var(--w);color:var(--muted);
  transition:all var(--tr)}
.pag.active,.pag:hover{background:var(--red);border-color:var(--red);color:#fff}
.no-results{grid-column:1/-1;text-align:center;padding:60px 20px;color:var(--muted)}
.no-results .nr-i{font-size:48px;margin-bottom:14px}
.no-results h3{font-family:var(--fh);font-size:20px;font-weight:700;margin-bottom:8px;color:var(--text)}

/* ===== CAR DETAIL ===== */
.car-detail-grid{display:grid;grid-template-columns:1fr 360px;gap:32px;align-items:start}
.gallery{border-radius:var(--r);overflow:hidden;border:1px solid var(--line)}
.gallery-main{aspect-ratio:16/10;background:var(--bg2);overflow:hidden;position:relative}
.gallery-main img{width:100%;height:100%;object-fit:cover}
.gallery-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:2px;background:var(--line)}
.thumb{aspect-ratio:16/9;overflow:hidden;cursor:pointer;opacity:.6;transition:opacity var(--tr);
  display:flex;align-items:center;justify-content:center;font-size:22px;background:var(--bg2)}
.thumb:hover,.thumb.active{opacity:1}
.thumb img{width:100%;height:100%;object-fit:cover}
.car-info-panel{background:var(--w);border:1px solid var(--line);border-radius:var(--r);
  padding:clamp(20px,3vw,28px);position:sticky;top:84px}
.cip-price{font-family:var(--fh);font-size:clamp(26px,4vw,36px);font-weight:900;
  color:var(--text);letter-spacing:-.02em;line-height:1;margin-bottom:4px}
.cip-sub{font-size:12px;color:var(--light);margin-bottom:20px}
.cip-specs{display:grid;grid-template-columns:1fr 1fr;gap:2px;
  background:var(--line);border-radius:var(--r-sm);overflow:hidden;margin-bottom:18px}
.cip-spec{background:var(--bg);padding:10px 12px}
.cip-spec-l{font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--light);margin-bottom:2px}
.cip-spec-v{font-size:13px;font-weight:700;color:var(--text)}
.cip-note{background:var(--red-lt);border:1px solid rgba(209,38,38,.15);border-radius:var(--r-sm);
  padding:12px 14px;font-size:13px;color:var(--muted);line-height:1.6;margin-top:12px}
.cip-note strong{color:var(--red)}
.tab-nav{display:flex;gap:0;border-bottom:1.5px solid var(--line);margin-bottom:24px;
  overflow-x:auto;-webkit-overflow-scrolling:touch}
.tab-btn{padding:10px 16px;font-family:var(--fh);font-size:11px;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;color:var(--muted);cursor:pointer;
  border-bottom:2px solid transparent;margin-bottom:-1.5px;transition:all var(--tr);
  white-space:nowrap;flex-shrink:0}
.tab-btn:hover,.tab-btn.active{color:var(--red);border-color:var(--red)}
.tab-pane{display:none}
.tab-pane.active{display:block}
.car-desc-text{font-size:15px;color:var(--muted);line-height:1.8;margin-bottom:20px}
.opts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(180px,100%),1fr));gap:7px}
.opt{padding:9px 12px;background:var(--bg);border:1px solid var(--line);border-radius:var(--r-sm);
  font-size:13px;color:var(--text);display:flex;align-items:center;gap:7px}
.opt::before{content:'✓';color:var(--red);font-weight:800;flex-shrink:0}

/* ===== SERVICES ===== */
.svc-grid{display:flex;flex-direction:column;gap:2px;margin-top:clamp(28px,5vw,52px)}
.svc-item{display:grid;grid-template-columns:clamp(52px,6vw,72px) 1fr;
  border:1px solid var(--line);border-radius:var(--r);overflow:hidden;
  background:var(--w);transition:all var(--tr);
  text-decoration:none;color:inherit}
.svc-item:hover{box-shadow:var(--sh);border-color:rgba(209,38,38,.25)}
.svc-n{background:var(--bg);display:flex;align-items:center;justify-content:center;
  font-family:var(--fh);font-size:clamp(20px,3vw,28px);font-weight:900;color:var(--red);
  opacity:.4;border-right:1px solid var(--line);transition:opacity var(--tr)}
.svc-item:hover .svc-n{opacity:.8}
.svc-body{padding:clamp(18px,3vw,28px) clamp(16px,3vw,36px)}
.svc-body h3{font-family:var(--fh);font-size:clamp(14px,2vw,20px);font-weight:700;
  letter-spacing:-.01em;margin-bottom:8px}
.svc-body p{color:var(--muted);font-size:14px;line-height:1.8;margin-bottom:12px}
.svc-tags{display:flex;flex-wrap:wrap;gap:6px}
.svc-tag{padding:4px 11px;background:var(--bg);border:1px solid var(--line);border-radius:99px;
  font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
/* Детальная страница услуги */
.svc-detail-lead{font-size:clamp(16px,2vw,20px);color:var(--muted);line-height:1.75;
  margin-bottom:clamp(20px,3vw,32px);max-width:760px}
.svc-detail-body{max-width:860px;font-size:15px;line-height:1.85;color:var(--text)}
.svc-detail-body h2,.svc-detail-body h3{font-family:var(--fh);font-weight:700;
  margin-top:clamp(24px,4vw,40px);margin-bottom:12px}
.svc-detail-body p{margin-bottom:16px;color:var(--muted)}
.svc-detail-body ul,.svc-detail-body ol{padding-left:24px;margin-bottom:16px}
.svc-detail-body li{margin-bottom:6px;color:var(--muted)}
.why-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));
  gap:14px;margin-top:clamp(28px,5vw,50px)}
.why-card{background:var(--w);border:1px solid var(--line);border-radius:var(--r);
  padding:clamp(20px,3vw,28px) clamp(16px,2vw,24px);transition:all var(--tr)}
.why-card:hover{box-shadow:var(--sh);transform:translateY(-2px);border-color:rgba(209,38,38,.2)}
.why-icon{font-size:26px;margin-bottom:14px}
.why-card h4{font-family:var(--fh);font-size:clamp(13px,1.8vw,15px);font-weight:700;
  letter-spacing:-.01em;margin-bottom:7px}
.why-card p{color:var(--muted);font-size:13px;line-height:1.75}

/* ===== CONTACT ===== */
.contact-layout{display:grid;grid-template-columns:1fr 340px;gap:clamp(28px,5vw,52px);align-items:start}
.form-group{margin-bottom:14px}
.form-group label{display:block;font-size:11px;font-weight:700;letter-spacing:.12em;
  text-transform:uppercase;color:var(--light);margin-bottom:6px}
.form-group input,.form-group textarea,.form-group select{width:100%;
  padding:12px 14px;background:var(--w);border:1.5px solid var(--line);
  border-radius:var(--r-sm);color:var(--text);font-family:var(--fb);font-size:15px;
  outline:none;transition:border-color var(--tr);resize:none}
.form-group input:focus,.form-group textarea:focus,.form-group select:focus{border-color:var(--red)}
.form-group textarea{min-height:120px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ci-card{background:var(--w);border:1px solid var(--line);border-radius:var(--r);
  padding:clamp(20px,3vw,28px);position:sticky;top:84px}
.ci-card h3{font-family:var(--fh);font-size:12px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;margin-bottom:20px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.ci{display:flex;gap:12px;align-items:flex-start;margin-bottom:14px;
  padding-bottom:14px;border-bottom:1px solid var(--line)}
.ci:last-of-type{border-bottom:none;margin:0;padding:0}
.ci-icon{width:34px;height:34px;background:var(--red-lt);border:1px solid rgba(209,38,38,.15);
  border-radius:var(--r-sm);display:flex;align-items:center;justify-content:center;
  font-size:14px;flex-shrink:0;color:var(--red)}
.ci-l{font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:var(--light);margin-bottom:3px}
.ci-v{font-size:14px;font-weight:600}
.ci-v a:hover{color:var(--red)}

/* ===== 404 ===== */
.err-section{min-height:80vh;display:flex;align-items:center;justify-content:center;
  padding:clamp(40px,8vw,80px) 24px}
.err-big{font-family:var(--fh);font-size:clamp(110px,22vw,240px);font-weight:900;
  line-height:1;color:var(--bg2);position:relative;letter-spacing:-.04em}
.err-big::after{content:attr(data-n);position:absolute;inset:0;
  background:linear-gradient(150deg,var(--red) 40%,var(--dark));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
  clip-path:polygon(0 0,100% 0,100% 46%,0 46%)}
.err-h{font-family:var(--fh);font-size:clamp(20px,3.5vw,40px);font-weight:800;
  margin:20px 0 12px;letter-spacing:-.01em}
.err-p{color:var(--muted);margin-bottom:32px;max-width:380px;margin-inline:auto;line-height:1.7;
  font-size:clamp(14px,2vw,16px)}

/* ===== FLOAT TG ===== */
.float-tg{position:fixed;bottom:24px;right:24px;z-index:300;width:52px;height:52px;
  border-radius:50%;background:var(--tg);display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 20px rgba(34,158,217,.4);transition:all var(--tr)}
.float-tg:hover{transform:scale(1.1);box-shadow:0 8px 32px rgba(34,158,217,.5)}
.float-tg svg{width:22px;height:22px;fill:#fff}

/* ===== MISC ===== */
.section{padding:clamp(48px,8vw,88px) 0}
.sec-white{background:var(--w)}
.sec-alt{background:var(--bg)}

/* ======================================================
   RESPONSIVE — от 1024 до 360px
   ====================================================== */

@media(max-width:1100px){
  .brands-grid{grid-template-columns:repeat(4,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr;gap:28px}
}

@media(max-width:900px){
  .catalog-layout{grid-template-columns:1fr}
  .filters{position:static;display:none}
  .filters.open{display:block}
  .car-detail-grid{grid-template-columns:1fr}
  .car-info-panel{position:static}
  .contact-layout{grid-template-columns:1fr}
  .ci-card{position:static}
}

@media(max-width:1024px){
  /* Hero — одна колонка, карточка подбора скрыта */
  .hero-layout{grid-template-columns:1fr}
  .hero-search{display:none}
}

@media(max-width:768px){
  .topbar{display:none}
  .nav-links{display:none}
  .burger{display:flex}
  .brands-grid{grid-template-columns:repeat(3,1fr)}
  .hero-btns .btn{flex:1 1 auto;text-align:center}
  .form-row{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .cta-inner{flex-direction:column;align-items:flex-start;flex-wrap:wrap}
  .cta-text{flex:none;width:100%}
  .sh-row{flex-direction:column;align-items:flex-start}
  /* steps: убираем широкий макет */
  .step-photo{aspect-ratio:16/7}
}

@media(max-width:560px){
  .cars-grid.list-view .car-img{width:140px}
  .reviews-grid{grid-template-columns:1fr}
  .hstat{padding-right:clamp(12px,3vw,20px);margin-right:clamp(12px,3vw,20px)}
  .car-specs-row{grid-template-columns:repeat(2,1fr)}
  .step-photo{aspect-ratio:16/8}
}

@media(max-width:480px){
  .brand-name{font-size:9px}
  .cars-grid.list-view{grid-template-columns:1fr}
  .cars-grid.list-view .car-card{flex-direction:column;max-height:none}
  .cars-grid.list-view .car-img{width:100%;aspect-ratio:16/10;height:auto}
  .step-top{grid-template-columns:clamp(40px,10vw,56px) 1fr;gap:12px}
}

/* ===== CRITICAL: 360px fix ===== */
@media(max-width:400px){
  /* navbar — иконки-кнопки влезают на любом экране, скрывать не нужно */
  /* hero stats — в 2 колонки */
  .hero-stats{display:grid;grid-template-columns:1fr 1fr;gap:16px}
  .hstat{border-right:none;padding-right:0;margin-right:0;border-bottom:1px solid rgba(255,255,255,.1);padding-bottom:12px}
  .hstat:nth-child(odd){border-right:1px solid rgba(255,255,255,.1);padding-right:12px}
  .hstat:last-child{border-bottom:none;padding-bottom:0}
  /* step photo shorter */
  .step-photo{aspect-ratio:16/10}
  /* cards list mode off on tiny screens */
  .cars-grid.list-view{grid-template-columns:1fr}
  .cars-grid.list-view .car-card{flex-direction:column;max-height:none}
  .cars-grid.list-view .car-img{width:100%;aspect-ratio:16/10;height:auto}
  /* cta buttons stack */
  .cta-actions{flex-direction:column;width:100%}
  .cta-actions .btn{width:100%}
  /* hero buttons stack */
  .hero-btns{flex-direction:column}
  .hero-btns .btn{width:100%}
  /* footer bottom */
  .footer-bottom{flex-direction:column;text-align:center}
}

@media(max-width:360px){
  .container{padding:0 12px}
  .brand-logo{height:16px}
  .brand-name{font-size:8px;letter-spacing:0}
  .brand-tile{padding:12px 6px;gap:6px;min-height:60px}
  /* step top even tighter */
  .step-top{grid-template-columns:40px 1fr;gap:10px}
  .step-num{font-size:32px}
  .step-text h3{font-size:14px}
}

/* ═══════════════════════════════════════════════════════
   STEPS SECTION — точно как avadge.com скрин 3
   Тёмный фон, горизонтальный степпер + контент
   ═══════════════════════════════════════════════════════ */
.steps-section{background:#0d0d0d;padding:clamp(48px,8vw,88px) 0;color:#fff}
.steps-section .sh-label{color:#F28500}
.steps-section .sh h2{color:#fff}
.steps-section .sh p{color:rgba(255,255,255,.5)}

/* Горизонтальный степпер с кружками */
.stepper{
  display:flex;align-items:center;
  margin:clamp(28px,4vw,48px) 0 clamp(32px,5vw,52px);
  overflow-x:auto;padding-bottom:2px;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.stepper::-webkit-scrollbar{display:none}
.stepper-item{display:flex;align-items:center;flex-shrink:0}

/* Кружок-номер — квадратный с radius как у avadge */
.stepper-dot{
  width:clamp(38px,4.5vw,52px);height:clamp(38px,4.5vw,52px);
  border-radius:10px;
  background:#1e1e1e;
  border:none;outline:none;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--fh);font-size:clamp(14px,1.8vw,20px);font-weight:700;
  color:#fff;cursor:pointer;
  transition:background .2s,transform .15s;
  position:relative;flex-shrink:0;
}
.stepper-dot:hover{background:#2a2a2a;transform:scale(1.06)}
.stepper-dot.active{background:#F28500;color:#fff}

/* Соединительная линия между кружками */
.stepper-line{
  flex:1;min-width:clamp(14px,2.5vw,48px);height:1px;
  background:rgba(255,255,255,.15);
  margin:0 3px;
}
.stepper-line.done{background:#F28500}

/* Контент шага: текст слева, фото справа */
.step-content{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:clamp(24px,5vw,72px);
  align-items:start;
}
/* Бейдж с номером шага */
.step-badge{
  display:inline-flex;align-items:center;justify-content:center;
  width:clamp(38px,4vw,52px);height:clamp(38px,4vw,52px);
  background:#1e1e1e;border-radius:10px;
  font-family:var(--fh);font-size:clamp(14px,2vw,20px);font-weight:700;color:#fff;
  margin-bottom:clamp(16px,2.5vw,28px);flex-shrink:0;
}
/* Заголовок шага — крупный как у avadge */
.step-title{
  font-family:var(--fh);
  font-size:clamp(24px,4vw,46px);
  font-weight:700;color:#fff;
  line-height:1.1;letter-spacing:-.01em;
  margin-bottom:clamp(14px,2vw,22px);
}
.step-desc{
  color:rgba(255,255,255,.55);
  font-size:clamp(14px,1.6vw,17px);
  line-height:1.8;
}
/* Фото правой колонки */
.step-right{
  border-radius:16px;overflow:hidden;
  aspect-ratio:4/3;background:#1a1a1a;
}
.step-right img{
  width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .4s ease;
}
.step-right:hover img{transform:scale(1.02)}
@media(max-width:768px){
  .step-content{grid-template-columns:1fr}
  .step-right{aspect-ratio:16/9}
}
@media(max-width:480px){
  .stepper-dot{width:32px;height:32px;font-size:13px;border-radius:7px}
  .stepper-line{min-width:10px}
}
@media(max-width:360px){
  .stepper-dot{width:28px;height:28px;font-size:12px}
  .step-title{font-size:22px}
}

/* ── Избранное ── */
.car-img-fav.fav-active{background:var(--red);color:#fff}
.car-img-fav.fav-active:hover{background:var(--red2)}
/* #favNavCount перенесён в .nav-fav-count выше */

