/* Каркас главной, этап A (home-restructure-plan.md): блок «Telegram и MAX», лента шагов, отзывы-заглушка, контакты. Подключать после v4.css и typography-v4.css. */

/* ---------- «Telegram и MAX» (второй блок страницы и финальный) ---------- */
body.v4 .channels{display:flex;align-items:center;min-height:min(100svh,840px);}
body.v4 .channels > .container{width:100%;}
body.v4 .ch-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;max-width:1000px;margin:8px auto 0;}
body.v4 .ch-card{
  display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:34px 28px 30px;border-radius:var(--r-card,28px);
  background:var(--s-surface);border:1px solid var(--s-line);color:var(--s-fg);text-decoration:none;
  transition:transform .3s var(--ease),border-color .2s,box-shadow .3s;
}
body.v4 .sec-light .ch-card{box-shadow:0 1px 2px rgba(15,23,42,.04),0 14px 34px -18px rgba(15,23,42,.18);}
body.v4 .sec-black .ch-card:hover{border-color:rgba(255,255,255,.28);box-shadow:0 24px 50px -24px rgba(0,0,0,.7);}
body.v4 .sec-light .ch-card:hover{border-color:rgba(15,23,42,.28);box-shadow:0 24px 50px -24px rgba(15,23,42,.35);}
body.v4 .ch-card:hover{transform:translateY(-4px);}
body.v4 .ch-card:focus-visible{outline:none;box-shadow:0 0 0 4px rgba(215,25,33,.35);}
body.v4 .sec-head.center .desc{margin-left:auto;margin-right:auto;text-align:center;}
body.v4 .ch-big{width:clamp(110px,11vw,150px);height:auto;aspect-ratio:1;object-fit:contain;margin-bottom:10px;}
body.v4 .ch-name{font-size:clamp(24px,2.4vw,32px);font-weight:600;letter-spacing:-.01em;line-height:1.15;}
body.v4 .ch-handle{font-size:16px;color:var(--s-muted);}
body.v4 .ch-btn{
  margin-top:16px;display:inline-flex;align-items:center;justify-content:center;min-width:200px;padding:15px 32px;border-radius:999px;
  background:var(--s-fg);color:var(--s-bg);font-size:17px;font-weight:600;transition:box-shadow .3s,opacity .2s;
}
body.v4 .sec-black .ch-card:hover .ch-btn{box-shadow:0 12px 30px -10px rgba(255,255,255,.35);}
body.v4 .ch-points{list-style:none;margin:40px 0 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:12px 32px;color:var(--s-muted);font-size:16.5px;}
body.v4 .ch-points li{display:flex;align-items:center;gap:10px;}
body.v4 .ch-points li::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--accent);}

/* ---------- лента шагов (один блок вместо «4 шага» + «Почему выгоднее» + «Что вы получаете») ---------- */
body.v4 .chain{list-style:none;margin:52px 0 0;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0 22px;}
body.v4 .chain-step{position:relative;}
body.v4 .cs-n{
  position:relative;z-index:1;width:56px;height:56px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:var(--accent);color:#fff;font-size:20px;font-weight:700;box-shadow:0 10px 24px -10px rgba(215,25,33,.8);
}
body.v4 .chain-step::before{content:"";position:absolute;top:27px;left:56px;right:-22px;height:2px;background:linear-gradient(90deg,var(--accent),rgba(255,255,255,.16));}
body.v4 .chain-step:last-child::before{display:none;}
body.v4 .cs-b h4{font-size:20px;line-height:1.25;margin:20px 0 8px;font-weight:600;}
body.v4 .cs-b p{font-size:16px;line-height:1.5;color:var(--s-muted);}
body.v4 #how .sec-cta{margin-top:56px;}

/* ---------- отзывы (заглушка до этапа B) ---------- */
body.v4 .rv-stub{
  margin:8px auto 28px;max-width:1000px;padding:56px 28px;border:2px dashed rgba(15,23,42,.22);border-radius:var(--r-card,28px);
  text-align:center;color:var(--s-muted);font-size:17px;line-height:1.5;
}
body.v4 .rv-links{grid-template-columns:repeat(2,minmax(0,1fr));max-width:1000px;margin:0 auto;}

/* ---------- контакты: заявка — второстепенно, свёрнута ---------- */
body.v4 .form-more{margin-top:40px;text-align:center;}
body.v4 .form-more > summary{list-style:none;cursor:pointer;display:inline-flex;}
body.v4 .form-more > summary::-webkit-details-marker{display:none;}
body.v4 .form-more[open] > summary{margin-bottom:32px;}
body.v4 .form-more .quiz-card{text-align:left;}

/* ---------- ширины ---------- */
@media (max-width:1199px){
  body.v4 .chain{grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 24px;}
  body.v4 .chain-step::before{display:none;}
}
@media (max-width:760px){
  body.v4 .channels{min-height:0;}
  body.v4 .ch-grid{grid-template-columns:1fr;gap:16px;}
  body.v4 .ch-card{padding:30px 20px 26px;}
  body.v4 .ch-big{width:112px;}
  body.v4 .ch-btn{min-width:0;width:100%;}
  body.v4 .ch-points{margin-top:28px;gap:10px 20px;font-size:15.5px;justify-content:flex-start;}
  body.v4 .rv-links{grid-template-columns:1fr;}
  body.v4 .rv-stub{padding:36px 18px;font-size:16px;}
}
@media (max-width:699px){
  body.v4 .chain{grid-template-columns:1fr;gap:0;margin-top:36px;}
  body.v4 .chain-step{display:grid;grid-template-columns:48px minmax(0,1fr);gap:16px;padding-bottom:28px;}
  body.v4 .chain-step:last-child{padding-bottom:0;}
  body.v4 .chain-step::before{display:block;top:52px;bottom:4px;left:23px;right:auto;width:2px;height:auto;background:rgba(255,255,255,.18);}
  body.v4 .chain-step:last-child::before{display:none;}
  body.v4 .cs-n{width:48px;height:48px;font-size:18px;}
  body.v4 .cs-b h4{margin:4px 0 6px;font-size:19px;}
}

/* блок «Каталог» в режиме «открыть канал»: слева текст и кнопки, справа вертикальное видео-обзор Telegram-канала */
body.v4 .cat-split{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,320px);gap:56px;align-items:center;}
body.v4 .cat-split .sec-head{margin-bottom:28px;}
body.v4 .cat-split .sec-cta{justify-content:flex-start;margin-top:0;}
body.v4 .cat-video{margin:0;}
body.v4 .cat-phone{border-radius:30px;overflow:hidden;background:#0b0e14;box-shadow:0 1px 2px rgba(15,23,42,.08),0 28px 60px -24px rgba(15,23,42,.5);aspect-ratio:732 / 1280;}
body.v4 .cat-phone video{display:block;width:100%;height:100%;object-fit:cover;background:#0b0e14;}
body.v4 .cat-video figcaption{margin-top:12px;font-size:14.5px;color:var(--s-muted);text-align:center;}
@media (max-width:899px){body.v4 .cat-split{grid-template-columns:1fr;gap:32px;}body.v4 .cat-video{max-width:300px;margin:0 auto;}}

/* оговорка «не является публичной офертой…» и список каталога под заглушкой */
body.v4 .legal-note{margin:28px auto 0;max-width:880px;text-align:center;font-size:14px;line-height:1.55;color:var(--s-muted);}
body.v4 .legal-note a{color:inherit;text-decoration:underline;text-underline-offset:3px;}
body.v4 .legal-note a:hover{color:var(--s-fg);}
body.v4 .legal-foot{margin:0 0 22px;}
body.v4 .legal-foot .legal-note{margin:0;max-width:none;text-align:left;font-size:13.5px;}
body.v4 .cat-list{margin-top:72px;padding-top:56px;border-top:1px solid var(--s-line);}
body.v4 .cat-list .sec-head{margin-bottom:28px;}
body.v4 .cat-stub-wrap{margin:0 0 56px;padding-bottom:56px;border-bottom:1px solid var(--s-line);}

/* плитка «Смотреть всё» в каталоге на главной: логотип по центру, подпись под ним */
body.v4 .car-card .photo.asset-slot.all-tile{gap:6px;}
body.v4 .car-card .photo.asset-slot.all-tile img.tile-logo{width:min(72%,280px);height:auto;max-height:60%;object-fit:contain;display:block;}
body.v4 .car-card .photo.asset-slot.all-tile p{color:rgba(255,255,255,.62);}

/* карточки «Модели под заказ»: наша сцена фоном и вырезка машины поверх (hero-mock/visuals.py) */
body.v4 .model-card .photo.mc-scene{position:relative;overflow:hidden;background:var(--mc-scene) center 62%/cover no-repeat;aspect-ratio:4/3;}
body.v4 .model-card .photo.mc-scene img.mc-car{position:absolute;left:50%;bottom:-8%;width:97%;max-width:none;height:auto;transform:translateX(-50%);object-fit:contain;
  filter:drop-shadow(0 14px 14px rgba(0,0,0,.45));transition:transform .45s cubic-bezier(.4,0,.2,1);}
body.v4 .model-card:hover .photo.mc-scene img.mc-car{transform:translateX(-50%) scale(1.04);}

/* миниатюры моделей в меню «Популярные модели» (компьютер и телефон) */
body.v4 .dd-left,body.v4 .mm-left{display:flex;align-items:center;gap:14px;min-width:0;}
body.v4 .mc-thumb{position:relative;flex:none;width:78px;height:54px;border-radius:12px;overflow:hidden;background:var(--mc-scene) center 62%/cover no-repeat;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);}
body.v4 .mc-thumb img{position:absolute;left:50%;bottom:-13%;width:112%;max-width:none;height:auto;transform:translateX(-50%);filter:drop-shadow(0 4px 5px rgba(0,0,0,.4));}
body.v4 .mm-left .mc-thumb{width:64px;height:44px;border-radius:10px;}
body.v4 .dd-panel#ddModels{min-width:430px;}
body.v4 .dd-item .meta{white-space:nowrap;}

/* кнопки блока «Свежие поступления»: цветные логотипы каналов */
body.v4 .cat-split .sec-cta .btn .ch-logo{width:24px;height:24px;flex:none;display:block;border-radius:7px;}
body.v4 .cat-split .sec-cta .btn .ch-logo[src$=".svg"]{border-radius:50%;}

/* ---- Обзоры и выдачи: видео с нашего CDN (hero-mock/video_blocks.py, video-blocks.js) ---- */
body.v4 .vb-grid{display:grid;gap:16px;}
body.v4 .vb-reviews{grid-template-columns:repeat(6,1fr);}
body.v4 .vb-reviews .vb-card:nth-child(-n+3){grid-column:span 2;}
body.v4 .vb-reviews .vb-card:nth-child(n+4){grid-column:span 3;}
body.v4 .vb-tops{grid-template-columns:repeat(3,1fr);margin-bottom:16px;}
body.v4 .vb-card{display:flex;flex-direction:column;min-width:0;border-radius:var(--r-card,26px);overflow:hidden;background:#fff;border:1px solid rgba(15,23,42,.08);transition:transform .35s cubic-bezier(.4,0,.2,1),box-shadow .35s;}
body.v4 .sec-black .vb-card{background:#10131a;border-color:rgba(255,255,255,.1);}
body.v4 .vb-card:hover{transform:translateY(-3px);box-shadow:0 22px 50px -24px rgba(0,0,0,.6);}
body.v4 .vb-media{position:relative;background:#000;overflow:hidden;width:100%;}
body.v4 .vb-thumb{position:absolute;inset:0;width:100%;height:100%;border:0;padding:0;background:#000;cursor:pointer;display:block;}
body.v4 .vb-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s cubic-bezier(.4,0,.2,1);}
body.v4 .vb-thumb:hover img{transform:scale(1.04);}
body.v4 .vb-thumb::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,0) 55%,rgba(0,0,0,.5));pointer-events:none;}
body.v4 .vb-play{position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%);width:64px;height:64px;border-radius:50%;background:rgba(10,12,16,.62);border:1px solid rgba(255,255,255,.5);display:grid;place-items:center;color:#fff;transition:background .2s,border-color .2s,transform .2s;}
body.v4 .vb-play .icon{width:28px;height:28px;stroke-width:1.4;}
body.v4 .vb-thumb:hover .vb-play{background:var(--accent,#d71921);border-color:var(--accent,#d71921);transform:translate(-50%,-50%) scale(1.08);}
body.v4 .vb-dur{position:absolute;z-index:1;right:10px;bottom:10px;background:rgba(0,0,0,.66);color:#fff;font-size:12px;line-height:1;padding:5px 9px;border-radius:999px;font-variant-numeric:tabular-nums;}
body.v4 .vb-video{position:absolute;inset:0;width:100%;height:100%;background:#000;object-fit:contain;display:block;}
body.v4 .vb-info{padding:16px 20px 20px;}
body.v4 .vb-info .t{font-size:17px;font-weight:600;letter-spacing:-.01em;line-height:1.3;}
body.v4 .vb-info .m{margin-top:4px;font-size:13.5px;opacity:.6;}
body.v4 .vb-end{position:absolute;inset:0;z-index:3;background:rgba(8,10,14,.9);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center;padding:18px;}
body.v4 .vb-end p{margin:0;font-size:clamp(15px,2.2vw,20px);font-weight:600;}
body.v4 .vb-end-b{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;}
body.v4 .vb-end .btn .ch-logo{width:22px;height:22px;flex:none;display:block;border-radius:6px;}
body.v4 .vb-end .btn .ch-logo[src$=".svg"]{border-radius:50%;}
body.v4 .vb-replay{background:none;border:0;color:rgba(255,255,255,.7);font:inherit;font-size:14px;text-decoration:underline;cursor:pointer;}
body.v4 .vb-stripwrap{position:relative;}
body.v4 .vb-strip{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 2px 18px;scrollbar-width:none;-webkit-overflow-scrolling:touch;}
body.v4 .vb-strip::-webkit-scrollbar{display:none;}
body.v4 .vb-strip .vb-card{flex:0 0 auto;width:min(236px,62%);scroll-snap-align:start;}
body.v4 .vb-strip .vb-info{padding:12px 14px 14px;}
body.v4 .vb-strip .vb-info .t{font-size:14px;font-weight:500;}
body.v4 .vb-nav{position:absolute;top:calc(50% - 40px);width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:rgba(10,12,16,.82);color:#fff;display:grid;place-items:center;cursor:pointer;z-index:2;transition:background .2s,border-color .2s;}
body.v4 .vb-nav:hover{background:var(--accent,#d71921);border-color:var(--accent,#d71921);}
body.v4 .vb-nav svg{width:20px;height:20px;}
body.v4 .vb-prev{left:-14px;}body.v4 .vb-next{right:-14px;}
@media (hover:none){body.v4 .vb-nav{display:none;}}
body.v4 .vb-also{margin:18px 0 0;text-align:center;font-size:13px;opacity:.55;}
body.v4 .vb-also a{color:inherit;text-decoration:underline;text-underline-offset:3px;}
body.v4 .vb-also a:hover{opacity:1;color:var(--accent,#d71921);}
@media (max-width:899px){
  body.v4 .vb-reviews,body.v4 .vb-tops{grid-template-columns:1fr;}
  body.v4 .vb-reviews .vb-card:nth-child(n){grid-column:auto;}
}
body.v4 .vb-end .btn{padding:0 16px;min-height:42px;font-size:14px;gap:8px;white-space:nowrap;}
body.v4 .vb-end-b{gap:8px;}
body.v4 .vb-end p{max-width:22ch;}

/* телефон: кнопки блока «Свежие поступления» — одной ширины, текст по центру, без переносов-«съезда» */
@media (max-width:640px){
  body.v4 .cat-split .sec-cta{flex-direction:column;align-items:stretch;gap:12px;}
  body.v4 .cat-split .sec-cta .btn{width:100%;justify-content:center;text-align:center;font-size:16px;padding:0 18px;min-height:56px;line-height:1.2;}
}
@media (max-width:360px){body.v4 .cat-split .sec-cta .btn{font-size:14.5px;padding:0 12px;}}
