/* ═══════════════════════════════════════════════════════════════════════════
   a4u.css — стили чат-бота подбора авто.
   ВСЁ отскоуплено под #a4u-root: ни одно правило не выходит наружу
   и не может задеть блоки Тильды.
   Анимации переименованы (a4uRise, a4uPulse, a4uBlink, a4uLogIn),
   чтобы не столкнуться с keyframes Тильды.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Защита от глобальных стилей Тильды ──
   Специфичность этих правил (id + тег) НИЖЕ, чем у наших рабочих правил
   (id + класс), поэтому они гасят наследие Тильды, но не мешают своим. */
#a4u-root{
  position:relative;
  font-size:16px;
  text-align:left;
  letter-spacing:normal;
}
#a4u-root h1,#a4u-root h2,#a4u-root h3,#a4u-root h4,
#a4u-root p,#a4u-root div,#a4u-root span,#a4u-root b,#a4u-root small,
#a4u-root article,#a4u-root section,#a4u-root label,#a4u-root a,#a4u-root i{
  margin:0;padding:0;border:0;background:none;font-family:inherit;
  letter-spacing:normal;text-transform:none;
}
#a4u-root a{color:inherit;text-decoration:none;border-bottom:0}
#a4u-root button,#a4u-root input,#a4u-root select,#a4u-root textarea{
  font-family:inherit;font-size:inherit;line-height:normal;color:inherit;
  border-radius:0;-webkit-appearance:none;appearance:none;
}
#a4u-root input[type="checkbox"]{-webkit-appearance:checkbox;appearance:checkbox}
#a4u-root img{border:0;max-width:100%}

#a4u-root{  /* Палитра: портовый терминал — сталь, ночная гавань, сигнальный янтарь */
  --steel:#E7E9EC;
  --steel-2:#D6DAE0;
  --paper:#FFFFFF;
  --ink:#121820;
  --ink-2:#5A6572;
  --harbour:#0E2233;
  --harbour-2:#183950;
  --marine:#14508C;
  --marine-hi:#1C68B4;
  --amber:#FFB020;
  --amber-2:#FFC24D;
  --ok:#1B7A4A;
  --ok-bg:#E8F5EE;
  --line:#C9CFD7;
  --r:6px;
  --r-lg:14px;
  --shadow:0 1px 2px rgba(18,24,32,.06), 0 12px 32px rgba(18,24,32,.10);
  --f-display:'Inter Tight','Helvetica Neue',Arial,sans-serif;
  --f-body:'Inter Tight','Helvetica Neue',Arial,sans-serif;
  --f-mono:'Inter Tight','SF Mono',Consolas,monospace;}
#a4u-root,#a4u-root *{box-sizing:border-box;margin:0;padding:0}
#a4u-root{scroll-behavior:smooth}
#a4u-root{  font-family:var(--f-body);font-size:16px;line-height:1.6;color:var(--ink);
  background:var(--steel);-webkit-font-smoothing:antialiased;}
#a4u-root img{max-width:100%;display:block}
#a4u-root .wrap{max-width:1120px;margin:0 auto;padding:0 20px}
/* ── Метки-«штампы»: структурный элемент страницы ── */
#a4u-root .stamp{  font-family:var(--f-mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--ink-2);display:inline-flex;align-items:center;gap:8px;}
#a4u-root .stamp::before{content:"";width:18px;height:1px;background:currentColor;opacity:.6}
/* ══════════ КНОПКИ ══════════ */
#a4u-root .btn{  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  font-family:var(--f-body);font-weight:600;font-size:16px;line-height:1;
  padding:16px 28px;min-height:52px;border:0;border-radius:var(--r);cursor:pointer;
  background:var(--amber);color:var(--ink);
  transition:transform .18s ease, box-shadow .22s ease, background .22s ease;
  box-shadow:0 6px 0 #C4831A;}
#a4u-root .btn:hover{background:#FFC24D;transform:translateY(-1px);box-shadow:0 7px 0 #C4831A}
#a4u-root .btn:active{transform:translateY(3px);box-shadow:0 3px 0 #C4831A}
#a4u-root .btn:focus-visible{outline:3px solid #fff;outline-offset:2px}
#a4u-root .btn[disabled]{opacity:.45;cursor:not-allowed;box-shadow:0 6px 0 #C4831A}
@media (max-width:720px){
#a4u-root .btn{width:100%;min-height:56px}
}
/* ══════════ HERO ══════════ */
#a4u-root #a4u-hero{  color:#EAF0F5;padding:64px 0 84px;position:relative;overflow:hidden;
  /* Сдвиг фонового фото по горизонтали.
     Меньше % — фото уходит ПРАВЕЕ, больше — левее. 50% = по центру.
     Базовое значение действует на узких экранах (≤760px). */
  --fon-x:68%;
  /* Плотность «стекла» на плашке преимуществ (белый тон поверх фото):
     меньше — фон виден сильнее, больше — текст читается увереннее. */
  --glass-tint:.01;
  /* запасной фон: виден, пока/если fon.jpg не загрузился */
  background-color:#0E2233;
  background-image:
    radial-gradient(120% 90% at 80% 0%, #1D4463 0%, rgba(29,68,99,0) 60%),
    linear-gradient(180deg,#0E2233 0%, #0A1A28 100%);}
/* на широких экранах сдвигаем фото ещё правее.
   0% — предел сдвига вправо при background-size:cover: дальше двигать некуда,
   для большего смещения нужно увеличивать масштаб фото (запас за краем кадра). */
@media (min-width:761px){
#a4u-root #a4u-hero{ --fon-x:0%; }
}
/* Фото-фон нижним слоем.
   Десктоп — без затемнения вообще, только фотография.
   Мобильные — равномерная заливка 30% (без градиентов, чтобы не было полос). */
#a4u-root #a4u-hero::before{  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:var(--a4u-fon);
  background-size:cover;
  background-position:var(--fon-x) center;
  background-repeat:no-repeat;}
@media (max-width:760px){
#a4u-root #a4u-hero::before{    background-image:
      linear-gradient(rgba(10,26,40,.30), rgba(10,26,40,.30)),
      var(--a4u-fon);
    background-size:cover, cover;
    background-position:center, var(--fon-x) center;
  }
}
/* фактура: сетка контейнерного терминала */
#a4u-root #a4u-hero::after{  content:"";position:absolute;inset:0;pointer-events:none;opacity:.12;z-index:1;
  background-image:linear-gradient(rgba(255,255,255,.14) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(255,255,255,.14) 1px,transparent 1px);
  background-size:52px 52px;
  -webkit-mask-image:radial-gradient(120% 80% at 50% 0%,#000 0%,transparent 75%);
          mask-image:radial-gradient(120% 80% at 50% 0%,#000 0%,transparent 75%);}
#a4u-root #a4u-hero > .wrap{position:relative;z-index:2}
#a4u-root .hero-grid{position:relative;z-index:2;max-width:720px}
#a4u-root .hero-brand{display:flex;align-items:center;gap:16px;margin-bottom:40px}
#a4u-root .hero-brand img{height:40px;width:auto;display:block;filter:drop-shadow(0 2px 12px rgba(6,16,26,.55))}
#a4u-root .hero-brand span{font-size:12px;color:#8FA6B8;letter-spacing:.08em;font-weight:500}
#a4u-root #a4u-hero .stamp{color:#8FA6B8}
#a4u-root h1{  font-family:var(--f-display);font-weight:700;
  font-size:clamp(34px,5.4vw,60px);line-height:1.04;letter-spacing:-.015em;
  margin:14px 0 8px;max-width:640px;
  /* Затемнения фона на десктопе нет, поэтому читаемость держится на
     собственной тени текста: плотный ближний ореол + мягкий дальний. */
  text-shadow:
    0 1px 2px rgba(6,16,26,.75),
    0 2px 10px rgba(6,16,26,.65),
    0 4px 30px rgba(6,16,26,.55);}
#a4u-root h1 em{font-style:normal;color:var(--amber);}
#a4u-root .hero-cta{margin-top:32px;display:flex;align-items:center;gap:20px;flex-wrap:wrap}
/* преимущества — панель прозрачного стекла с бликами */
#a4u-root .facts{  position:relative;
  display:grid;grid-template-columns:repeat(3,1fr);margin-top:44px;
  border:1px solid rgba(255,255,255,.34);
  border-radius:14px;overflow:hidden;
  /* база для браузеров без backdrop-filter: плотнее, иначе текст утонет */
  background:rgba(10,26,40,.62);
  box-shadow:
    0 20px 46px rgba(3,10,18,.38),
    inset 0 1px 0 rgba(255,255,255,.45),      /* световая грань сверху */
    inset 0 -1px 0 rgba(255,255,255,.08);}
/* стекло включаем только там, где браузер умеет размывать фон.
   Тон — БЕЛЫЙ с малой прозрачностью: над тёмным фото панель выходит светлее
   окружения и читается как стекло даже там, где за ней ровная заливка. */
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
#a4u-root .facts{    background:rgba(255,255,255,var(--glass-tint,.06));
    -webkit-backdrop-filter:blur(18px) saturate(175%);
            backdrop-filter:blur(18px) saturate(175%);
  }
}
/* блики: узкая диагональная полоса света и мягкий отблеск у верхней грани.
   Держим их приглушёнными — иначе белый текст растворяется в засветке. */
#a4u-root .facts::after{  content:"";position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(112deg,
      rgba(255,255,255,.22) 0%,
      rgba(255,255,255,.09) 8%,
      rgba(255,255,255,0) 18%,
      rgba(255,255,255,0) 76%,
      rgba(255,255,255,.07) 91%,
      rgba(255,255,255,.17) 100%),
    radial-gradient(60% 95% at 78% -28%, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 70%);
  mix-blend-mode:screen;}
#a4u-root .fact{padding:16px 14px;background:transparent;position:relative;z-index:1}
#a4u-root .fact + .fact{border-left:1px solid rgba(255,255,255,.20)}
/* разделители */
#a4u-root .fact b{  display:block;font-family:var(--f-mono);font-weight:600;font-size:24px;color:#fff;
  letter-spacing:-.02em;text-shadow:0 1px 8px rgba(6,16,26,.6);}
#a4u-root .fact span{  font-size:12px;color:#E2EAF1;line-height:1.35;display:block;margin-top:4px;
  text-shadow:0 1px 6px rgba(6,16,26,.6);}
/* ══════════ ЧАТ ══════════ */
#a4u-root #a4u-chat{padding:72px 0 88px;background:#262626}
#a4u-root .chat-head{text-align:center;max-width:640px;margin:0 auto 32px}
#a4u-root h2{font-family:var(--f-display);font-weight:700;font-size:clamp(26px,3.6vw,40px);line-height:1.12;letter-spacing:-.01em;margin:12px 0 10px}
#a4u-root #a4u-chat h2{color:#fff}
#a4u-root #a4u-chat h2 em{font-style:normal;color:var(--amber)}
#a4u-root .chat-head p{color:rgba(255,255,255,.66);font-size:17px}
#a4u-root .bot{  max-width:760px;margin:0 auto;background:var(--paper);border-radius:var(--r-lg);
  box-shadow:var(--shadow);overflow:hidden;border:1px solid var(--line);}
/* виджет отзывов под чат-ботом */
/* виджет отзывов внутри сообщения чат-бота */
#a4u-root .sw-wrap{  background:#fff;border:1px solid var(--line);border-radius:var(--r);
  padding:12px;margin:2px 0 18px 42px;
  animation:a4uRise .4s cubic-bezier(.2,.7,.3,1) both;}
@media (max-width:520px){
#a4u-root .sw-wrap{margin-left:0}
}
#a4u-root .sw-wrap .sw-app{min-height:120px}
#a4u-root .bot-hd{display:flex;align-items:center;gap:12px;padding:14px 18px;background:var(--harbour);color:#fff}
#a4u-root .bot-av{width:38px;height:38px;border-radius:50%;object-fit:cover;flex:0 0 38px;background:var(--amber)}
#a4u-root .bot-hd b{font-size:15px;font-weight:600}
#a4u-root .bot-hd small{display:block;font-size:12px;color:#8FA6B8;font-weight:400}
#a4u-root .bot-live{margin-left:auto;font-family:var(--f-mono);font-size:11px;color:#7FD8A3;letter-spacing:.1em;display:flex;align-items:center;gap:6px}
#a4u-root .bot-live::before{content:"";width:6px;height:6px;border-radius:50%;background:#3ED37F;box-shadow:0 0 0 0 rgba(62,211,127,.6);animation:a4uPulse 2s infinite}
@keyframes a4uPulse{70%{box-shadow:0 0 0 8px rgba(62,211,127,0)}100%{box-shadow:0 0 0 0 rgba(62,211,127,0)}}
#a4u-root .stream{padding:22px 18px;min-height:360px;max-height:620px;overflow-y:auto;background:#FBFCFD;scroll-behavior:smooth}
@media (min-width:720px){
#a4u-root .stream{padding:26px 28px}
}
#a4u-root .msg{display:flex;gap:12px;margin-bottom:16px;animation:a4uRise .34s cubic-bezier(.2,.7,.3,1) both}
@keyframes a4uRise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
#a4u-root .msg .ava{flex:0 0 30px;width:30px;height:30px;border-radius:50%;object-fit:cover;background:var(--harbour)}
#a4u-root .bubble{background:var(--paper);border:1px solid var(--line);border-radius:2px 12px 12px 12px;padding:12px 16px;max-width:min(88%,560px)}
#a4u-root .msg.me{justify-content:flex-end}
#a4u-root .msg.me .bubble{background:var(--marine);color:#fff;border-color:var(--marine);border-radius:12px 12px 2px 12px}
#a4u-root .msg.wide .bubble{max-width:100%;width:100%}
#a4u-root .typing{display:flex;gap:4px;padding:4px 2px}
#a4u-root .typing i{width:7px;height:7px;border-radius:50%;background:#B6BFC9;animation:a4uBlink 1.2s infinite}
#a4u-root .typing i:nth-child(2){animation-delay:.18s}
#a4u-root .typing i:nth-child(3){animation-delay:.36s}
@keyframes a4uBlink{0%,60%,100%{opacity:.28;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
/* варианты ответа */
#a4u-root .opts{display:flex;flex-wrap:wrap;gap:10px;margin:4px 0 18px 42px}
#a4u-root .opt{  font-family:var(--f-body);font-size:15px;font-weight:500;color:var(--marine);
  background:#fff;border:1.5px solid #B9CBDE;border-radius:999px;padding:11px 20px;cursor:pointer;
  transition:all .18s ease;min-height:44px;}
#a4u-root .opt:hover{background:var(--marine);color:#fff;border-color:var(--marine)}
#a4u-root .opt:focus-visible{outline:3px solid var(--amber);outline-offset:2px}
@media (max-width:520px){
#a4u-root .opts{margin-left:0}
#a4u-root .opt{flex:1 1 calc(50% - 5px)}
}
/* поля */
#a4u-root .pick{margin:4px 0 18px 42px;max-width:520px}
@media (max-width:520px){
#a4u-root .pick{margin-left:0;max-width:100%}
}
#a4u-root .field{position:relative;margin-bottom:10px}
#a4u-root .field input{  width:100%;font-family:var(--f-body);font-size:16px;color:var(--ink);
  padding:15px 44px 15px 16px;border:1.5px solid var(--line);border-radius:var(--r);background:#fff;
  transition:border-color .18s ease, box-shadow .18s ease;min-height:54px;}
#a4u-root .field input:focus{outline:0;border-color:var(--marine);box-shadow:0 0 0 4px rgba(20,80,140,.12)}
#a4u-root .field input:disabled{background:#F1F3F5;color:#9AA4AE;cursor:not-allowed}
#a4u-root .field.ok input{border-color:var(--ok)}
#a4u-root .field .tick{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:var(--ok);opacity:0;transition:opacity .2s}
#a4u-root .field.ok .tick{opacity:1}
#a4u-root .field .caret{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:#9AA4AE;pointer-events:none}
#a4u-root .field.ok .caret{display:none}
#a4u-root .dd{  position:absolute;z-index:20;top:calc(100% + 4px);left:0;right:0;max-height:260px;overflow-y:auto;
  background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow);display:none;}
#a4u-root .dd.on{display:block}
#a4u-root .dd-item{padding:11px 16px;cursor:pointer;display:flex;justify-content:space-between;gap:10px;font-size:15px;border-bottom:1px solid #F0F2F4}
#a4u-root .dd-item:last-child{border-bottom:0}
#a4u-root .dd-item:hover,#a4u-root .dd-item.hl{background:#EEF4FA}
#a4u-root .dd-item small{color:var(--ink-2);font-size:13px}
#a4u-root .dd-empty{padding:12px 16px;color:var(--ink-2);font-size:14px}
#a4u-root .hintline{font-size:13px;color:var(--ink-2);margin:2px 0 10px}
/* прогресс-бар: подпись «сканирование площадок» */
#a4u-root .scan{border:1px solid var(--line);background:#fff;border-radius:var(--r);padding:16px;max-width:100%}
#a4u-root .scan-top{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px;gap:12px}
#a4u-root .scan-status{font-size:14px;color:var(--ink);font-weight:500}
#a4u-root .scan-pct{font-family:var(--f-mono);font-size:13px;color:var(--marine);font-weight:600;font-variant-numeric:tabular-nums}
#a4u-root .ticks{display:flex;gap:3px}
#a4u-root .tick-i{flex:1;height:16px;border-radius:2px;background:#E4E8EC;transition:background .18s ease, transform .18s ease}
#a4u-root .tick-i.on{background:var(--marine);transform:scaleY(1)}
#a4u-root .tick-i.hot{background:var(--amber)}
#a4u-root .scan-log{margin-top:12px;font-family:var(--f-mono);font-size:12px;color:var(--ink-2);line-height:1.7;max-height:74px;overflow:hidden}
#a4u-root .scan-log div{opacity:0;animation:a4uLogIn .3s ease forwards}
@keyframes a4uLogIn{to{opacity:1}}
#a4u-root .scan-log b{color:var(--ok);font-weight:500}
/* карточки авто */
#a4u-root .cards{display:grid;gap:12px;margin:2px 0 18px 42px}
@media (min-width:720px){
#a4u-root .cards{grid-template-columns:repeat(3,1fr);margin-left:42px}
}
@media (max-width:520px){
#a4u-root .cards{margin-left:0}
}
#a4u-root .card{  background:#fff;border:1px solid var(--line);border-radius:var(--r);overflow:hidden;
  display:flex;flex-direction:column;transition:transform .2s ease, box-shadow .2s ease;
  animation:a4uRise .4s cubic-bezier(.2,.7,.3,1) both;}
#a4u-root .card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
#a4u-root .card-ph{position:relative;aspect-ratio:4/3;background:#E9ECEF;overflow:hidden}
#a4u-root .card-ph img{width:100%;height:100%;object-fit:cover}
#a4u-root .card-tag{  position:absolute;top:8px;left:8px;font-family:var(--f-mono);font-size:10px;letter-spacing:.08em;
  text-transform:uppercase;padding:4px 8px;border-radius:3px;background:var(--harbour);color:#fff;}
#a4u-root .card-tag.exact{background:var(--amber);color:var(--ink)}
#a4u-root .card-bd{padding:12px 14px;display:flex;flex-direction:column;gap:8px;flex:1}
#a4u-root .card-bd h4{font-family:var(--f-display);font-size:17px;font-weight:700;line-height:1.2}
#a4u-root .card-meta{font-family:var(--f-mono);font-size:11.5px;color:var(--ink-2);line-height:1.5}
#a4u-root .card-price{margin-top:auto;font-weight:600;font-size:16px;color:var(--ink);font-variant-numeric:tabular-nums}
#a4u-root .card-price small{display:block;font-weight:400;font-size:11px;color:var(--ink-2);margin-top:2px}
#a4u-root .ph-empty{display:grid;place-items:center;height:100%;min-height:120px;color:#A3ADB7;font-size:12px;letter-spacing:.02em}
/* развёрнутая карточка с галереей */
#a4u-root .cards-full{display:grid;gap:14px;margin:2px 0 18px 42px}
@media (max-width:520px){
#a4u-root .cards-full{margin-left:0}
}
#a4u-root .card-full{  background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;
  display:grid;align-items:start;animation:a4uRise .4s cubic-bezier(.2,.7,.3,1) both;}
@media (min-width:620px){
#a4u-root .card-full{grid-template-columns:300px 1fr}
}
/* Галерея всегда одинаковой формы (4:3) независимо от числа фото и высоты текста */
#a4u-root .gal{position:relative;background:#0E1620}
#a4u-root .gal-view{position:relative;aspect-ratio:4/3;width:100%}
#a4u-root .gal-view img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#a4u-root .gal-nav{  position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:36px;height:36px;border:0;border-radius:50%;cursor:pointer;
  background:rgba(14,22,32,.62);color:#fff;font-size:22px;line-height:1;
  display:grid;place-items:center;transition:background .15s ease;}
#a4u-root .gal-nav:hover{background:rgba(14,22,32,.9)}
#a4u-root .gal-nav.prev{left:8px}
#a4u-root .gal-nav.next{right:8px}
#a4u-root .gal-count{  position:absolute;bottom:8px;right:10px;z-index:3;
  font-size:11px;color:#fff;background:rgba(14,22,32,.62);
  padding:3px 8px;border-radius:999px;font-variant-numeric:tabular-nums;}
#a4u-root .gal-count b{font-weight:600}
#a4u-root .gal-dots{position:absolute;bottom:8px;left:0;right:0;z-index:3;display:flex;gap:5px;justify-content:center}
#a4u-root .gal-dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.45);cursor:pointer;transition:all .15s ease}
#a4u-root .gal-dot.on{background:#fff;width:16px;border-radius:3px}
#a4u-root .card-full .card-tag{position:absolute;top:10px;left:10px;z-index:3}
#a4u-root .card-full-bd{padding:16px 18px;display:flex;flex-direction:column;gap:14px}
#a4u-root .card-full-hd{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:baseline;justify-content:space-between}
#a4u-root .card-full-hd h4{font-size:20px;font-weight:700;line-height:1.15}
#a4u-root .card-full-hd .card-price{margin-top:0;font-size:19px;text-align:right}
#a4u-root .spec{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
@media (min-width:420px){
#a4u-root .spec{grid-template-columns:repeat(3,1fr)}
}
#a4u-root .spec-i{background:#fff;padding:8px 12px}
#a4u-root .spec-i span{display:block;font-size:11px;color:var(--ink-2);margin-bottom:1px}
#a4u-root .spec-i b{font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
#a4u-root .card-equip{background:#F6F8FA;border-radius:var(--r);padding:12px 14px}
#a4u-root .card-equip b{display:block;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2);margin-bottom:5px}
#a4u-root .card-equip p{font-size:13.5px;line-height:1.5;color:var(--ink)}
/* карточки отзывов */
#a4u-root .revs{display:flex;flex-direction:column;gap:12px;margin:2px 0 18px 42px}
@media (max-width:520px){
#a4u-root .revs{margin-left:0}
}
#a4u-root .rev{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:16px;display:flex;gap:14px;animation:a4uRise .4s cubic-bezier(.2,.7,.3,1) both}
/* карточка с фото авто клиента */
#a4u-root .rev.has-photo{padding:0;overflow:hidden;align-items:stretch}
/* Фото всегда квадрат 1:1, независимо от исходной ориентации кадра
   (горизонтальное или вертикальное) — object-fit:cover обрезает лишнее,
   object-position:center берёт центральную часть и по высоте, и по
   ширине, так что нужное не срезается. */
#a4u-root .rev-photo{flex:0 0 172px;position:relative;background:#0E1620;overflow:hidden;aspect-ratio:1/1}
#a4u-root .rev-photo img{  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:center center;cursor:zoom-in;z-index:1;}
@media (min-width:561px){
/* align-items:flex-start — иначе flex растянул бы фото по высоте текста
   и сломал квадратные пропорции */
#a4u-root .rev.has-photo{min-height:190px;align-items:flex-start}
}
#a4u-root .rev.has-photo .rev-main{padding:16px 16px 16px 6px}
@media (max-width:560px){
#a4u-root .rev.has-photo{flex-direction:column}
#a4u-root .rev-photo{flex:none;width:100%;aspect-ratio:1/1}
#a4u-root .rev.has-photo .rev-main{padding:14px 16px 16px}
}
#a4u-root .rev-main{display:flex;flex-direction:column;gap:8px;min-width:0}
#a4u-root .rev-top{display:flex;align-items:center;gap:10px}
#a4u-root .rev-av{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-size:14px;font-weight:700;flex:0 0 40px;letter-spacing:.01em}
#a4u-root .rev-id{display:flex;flex-direction:column;min-width:0}
#a4u-root .rev-id b{font-size:14px;font-weight:600;line-height:1.2}
#a4u-root .rev-loc{font-size:12px;color:var(--ink-2)}
#a4u-root .rev-car{font-size:11px;color:var(--marine);letter-spacing:.03em;text-transform:uppercase;font-weight:600}
#a4u-root .rev-q{font-size:14px;line-height:1.55;color:var(--ink)}
/* полноэкранное увеличение фото */
#a4u-root .zoom-ov{  position:fixed;inset:0;z-index:200;background:rgba(10,16,24,.92);
  display:grid;place-items:center;padding:24px;cursor:zoom-out;
  animation:a4uRise .2s ease both;}
#a4u-root .zoom-ov img{max-width:min(96vw,900px);max-height:90vh;object-fit:contain;border-radius:8px}
#a4u-root .zoom-x{  position:absolute;top:16px;right:20px;width:44px;height:44px;border:0;border-radius:50%;
  background:rgba(255,255,255,.14);color:#fff;font-size:20px;cursor:pointer;}
#a4u-root .zoom-x:hover{background:rgba(255,255,255,.26)}
/* финальная форма */
#a4u-root .lead{margin:4px 0 8px 42px;max-width:520px}
@media (max-width:520px){
#a4u-root .lead{margin-left:0;max-width:100%}
}
#a4u-root .lead .btn{width:100%;margin-top:10px}
#a4u-root .consent{display:flex;gap:9px;align-items:flex-start;margin-top:12px;font-size:12.5px;color:var(--ink-2);line-height:1.45}
#a4u-root .consent input{margin-top:2px;width:17px;height:17px;flex:0 0 17px;accent-color:var(--marine)}
#a4u-root .consent a{color:var(--marine)}
#a4u-root .reassure{display:flex;flex-wrap:wrap;gap:14px;margin-top:14px;font-size:12.5px;color:var(--ink-2)}
#a4u-root .reassure i{font-style:normal;display:flex;align-items:center;gap:6px}
#a4u-root .err{color:#C0392B;font-size:13px;margin-top:6px;display:none}
#a4u-root .err.on{display:block}
#a4u-root .done{background:var(--ok-bg);border:1px solid #B6DFC8;border-radius:var(--r);padding:18px;margin-left:42px;max-width:560px}
@media (max-width:520px){
#a4u-root .done{margin-left:0}
}
#a4u-root .done b{display:block;font-family:var(--f-display);font-size:20px;font-weight:700;margin-bottom:6px}
#a4u-root .done p{font-size:14.5px;color:#2C4F3C}
#a4u-root .done a{display:inline-flex;align-items:center;gap:8px;margin-top:12px;font-weight:600;color:var(--ok);font-size:14px}
@media (prefers-reduced-motion:reduce){
#a4u-root,#a4u-root *,#a4u-root *::before,#a4u-root *::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;scroll-behavior:auto !important}
}

/* ════════════════════════════════════════════════════════════════════════════
   Honeypot-поле против спам-ботов.
   Критично: поле прячется ВНУТРИ собственной оболочки нулевого размера,
   а не через left:-9999px относительно #a4u-root. Иначе абсолютно
   позиционированный элемент выпадает из-под overflow прокручиваемой ленты
   и растягивает высоту всей страницы.
   ════════════════════════════════════════════════════════════════════════════ */
#a4u-root .hp-box{
  position:relative;   /* собственный контекст позиционирования */
  display:block;
  width:0;height:0;
  overflow:hidden;     /* всё, что внутри, обрезается здесь же */
}
#a4u-root .hp-box input{
  position:absolute;top:0;left:0;
  width:1px;height:1px;opacity:0;border:0;padding:0;
}

/* ════════════════════════════════════════════════════════════════════════════
   Сторонний виджет отзывов.
   Высота по умолчанию НЕ ограничена: виджет лежит внутри
   прокручиваемой ленты и на высоту страницы не влияет.
   Если захотите подрезать — задайте REVIEWS_WIDGET_H в a4u.js.
   ════════════════════════════════════════════════════════════════════════════ */
#a4u-root .sw-wrap{contain:layout}
#a4u-root .sw-wrap.sw-capped{
  height:var(--sw-h);max-height:var(--sw-h);
  overflow:hidden;contain:layout size;
}
#a4u-root .sw-wrap.sw-capped .sw-app{height:100%;min-height:0;overflow:hidden}

