/*
 * Карточка машины на tvsmotors.ru (/cars/<slug>, /used-cars/<slug>), с 19.10.2026.
 *  1) .ce-opt — «Комплектация» по группам (разметку собирает lib/car-extras.ts);
 *  2) .ce — разделы под карточкой. Основа — model-page.css страниц моделей (подарки, трейд-ин,
 *     кредит, гарантия выглядят так же), здесь только то, чем карточка отличается.
 * Цвета и шрифт — как в макетах карточки: графит #14161a, рамки #e6e8ec, синий oklch(0.5 0.17 262).
 * Исходник: Desktop\tenet-lending\tvsmotors\car-card\car-extras.css.
 */

/* ───────── комплектация ───────── */
.ce-opt{margin-top:32px;--acc:oklch(0.5 0.17 262);--acc-soft:oklch(0.5 0.17 262 / .08)}
.ce-opt-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.ce-opt-head h2{margin:0;font-size:26px;font-weight:600;letter-spacing:-.03em}
.ce-opt-head span{font-size:13.5px;font-weight:600;color:#8b9199}
.ce-opt-card{position:relative;margin-top:14px;background:#fff;border:1px solid #e6e8ec;border-radius:20px;padding:22px 24px 20px}

/* главное: шесть плиток со значками */
.ce-hl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #eef0f3}
.ce-hl-i{display:flex;align-items:center;gap:11px;min-height:56px;padding:10px 14px;border-radius:14px;background:#f5f6f8;
  font-size:13.5px;font-weight:600;line-height:1.3;color:#14161a}
.ce-hl-i .ce-ico{flex:none;width:34px;height:34px;padding:7px;border-radius:50%;background:#fff;color:var(--acc)}

/* группы колонками; длинный список виден сверху, остальное — по кнопке */
.ce-og-cols{column-count:3;column-gap:28px}
.ce-og{break-inside:avoid;padding-bottom:18px}
.ce-og-h{display:flex;align-items:center;gap:8px;font-size:14px;line-height:1.3}
.ce-og-h .ce-ico{flex:none;width:18px;height:18px;color:var(--acc)}
.ce-og-h b{font-weight:700}
.ce-og-n{margin-left:auto;padding:2px 8px;border-radius:999px;background:var(--acc-soft);color:var(--acc);font-size:11.5px;font-weight:700}
.ce-og ul{margin:8px 0 0;padding:0;list-style:none}
.ce-og li{position:relative;padding:4px 0 4px 22px;font-size:13.5px;line-height:1.45;color:#2c3138}
.ce-og li::before{content:"";position:absolute;left:3px;top:9px;width:9px;height:5px;border-left:2px solid var(--acc);border-bottom:2px solid var(--acc);transform:rotate(-45deg)}

.ce-og-clip.fold{position:relative;max-height:330px;overflow:hidden}
.ce-og-clip.fold::after{content:"";position:absolute;left:0;right:0;bottom:0;height:90px;background:linear-gradient(180deg,rgba(255,255,255,0),#fff 85%);pointer-events:none}
.ce-opt-cb{position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none}
/* .ce-opt впереди — чтобы «развёрнуто» было сильнее высоты свёрнутого списка на телефоне (.ce-opt.m …) */
.ce-opt .ce-opt-cb:checked ~ .ce-og-clip.fold{max-height:none}
.ce-opt .ce-opt-cb:checked ~ .ce-og-clip.fold::after{display:none}
.ce-opt-more{display:inline-flex;align-items:center;gap:8px;margin-top:6px;min-height:44px;padding:0 20px;border-radius:13px;border:1px solid #dfe2e7;
  background:#fff;font-size:14px;font-weight:600;color:#14161a;cursor:pointer;user-select:none}
.ce-opt-more:hover{border-color:#14161a}
.ce-opt-more::after{content:"";width:7px;height:7px;margin-top:-3px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.ce-opt-more .c{display:none}
.ce-opt-cb:checked ~ .ce-opt-more .o{display:none}
.ce-opt-cb:checked ~ .ce-opt-more .c{display:inline}
.ce-opt-cb:checked ~ .ce-opt-more::after{margin-top:3px;transform:rotate(-135deg)}
.ce-opt-cb:focus-visible ~ .ce-opt-more{outline:2px solid var(--acc);outline-offset:2px}

/* телефон (макет карточки — колонка 430px) */
.ce-opt.m{margin-top:24px}
.ce-opt.m .ce-opt-head h2{font-size:21px;letter-spacing:-.025em}
.ce-opt.m .ce-opt-head span{font-size:12.5px}
.ce-opt.m .ce-opt-card{margin-top:11px;padding:16px 15px 15px}
.ce-opt.m .ce-hl{grid-template-columns:1fr 1fr;gap:7px;padding-bottom:16px;margin-bottom:16px}
.ce-opt.m .ce-hl-i{min-height:52px;padding:9px 10px;gap:9px;font-size:12.5px}
.ce-opt.m .ce-hl-i .ce-ico{width:30px;height:30px;padding:6px}
.ce-opt.m .ce-og-cols{column-count:1}
.ce-opt.m .ce-og li{font-size:13px}
.ce-opt.m .ce-og-clip.fold{max-height:400px}
.ce-opt.m .ce-opt-more{width:100%;justify-content:center;background:#f2f3f5;border-color:#f2f3f5;font-weight:700;min-height:48px;border-radius:14px}

/* ───────── разделы под карточкой ───────── */
.ce{padding-bottom:0}
.ce .mp-sec:first-child{margin-top:48px}
.ce-legal{margin-top:28px}

/* подарки: на компьютере текст и форма слева, карточки справа; на телефоне форма после карточек */
.ce-gifts{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"text cards" "form cards";
  column-gap:clamp(24px,4vw,56px);row-gap:22px;align-items:start}
.ce-gifts-text{grid-area:text}
.ce-gift-grid{grid-area:cards}
.ce-gifts-form{grid-area:form}
.ce-gift-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
.ce-gift-row .mp-fbtn{padding:14px 22px;white-space:nowrap}
.ce-gift-form .mp-fine{color:rgba(255,255,255,.42)}
.ce-gift-form .mp-err{color:oklch(0.75 0.15 27)}
.ce-gift-form .mp-fallback{color:rgba(255,255,255,.75)}
.ce-gifts-form .mp-done p{color:rgba(255,255,255,.62)}
.ce-gcard-disabled{opacity:.6}
@media(max-width:860px){
  .ce-gifts{grid-template-columns:minmax(0,1fr);grid-template-areas:"text" "cards" "form"}
  .ce-gift-row{grid-template-columns:minmax(0,1fr)}
}

/* кредит: цена этой машины вместо ползунка цены */
.ce-cr-price{margin-top:22px;display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:14px 18px;border-radius:14px;background:var(--wash-2)}
.ce-cr-price span{font-size:14.5px;color:var(--mute)}
.ce-cr-price b{font-size:19px;font-weight:800;white-space:nowrap;font-variant-numeric:tabular-nums}
.ce-cr-note{margin:14px 0 0;font-size:13px;line-height:1.5;color:var(--ink-2)}

/* кредит Pango (с пробегом): преимущества, стандартная программа рядом для сравнения, подсказка */
.ce-cr-facts{margin:18px 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:8px}
.ce-cr-facts li{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:var(--accent-soft);
  color:var(--ink);font-size:13px;font-weight:600}
.ce-cr-facts li::before{content:"";width:8px;height:5px;margin-top:-2px;border-left:2px solid var(--accent);border-bottom:2px solid var(--accent);transform:rotate(-45deg)}
.ce-cr-std{margin-top:12px;display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-top:12px;border-top:1px solid var(--line-2);font-size:13.5px}
.ce-cr-std span{color:var(--mute)}
.ce-cr-std b{font-weight:700;color:var(--mute);white-space:nowrap;font-variant-numeric:tabular-nums}
.ce-cr-hint{margin:12px 0 0;font-size:13px;line-height:1.5;color:var(--ink-2);background:#fff;border:1px solid var(--accent-line);border-radius:12px;padding:10px 12px}

/* гарантия с пробегом: четыре пункта программы вместо цифр безопасности */
.ce-ufeats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:10px}
.ce-ufeat{background:var(--wash);border:1px solid var(--line);border-radius:18px;padding:18px 18px 16px}
.ce-ufeat b{display:block;font-size:15.5px;font-weight:700;letter-spacing:-.01em;color:var(--accent)}
.ce-ufeat p{margin:6px 0 0;font-size:13.5px;line-height:1.5;color:var(--ink-2)}
.ce-warr-fine{margin:22px 0 0;font-size:12px;line-height:1.55;color:var(--mute-2);text-wrap:pretty}
.ce .mp-wcard-grid b{font-size:clamp(16px,1.6vw,19px)}
