/* ГЛЕБ ПРОФНАСТИЛ — сборка страницы из блоков дизайн-системы.
   Здесь только раскладка и замена фото-заглушек на реальные фото. */

html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
html, body { margin:0; background:var(--surface-200); }
body { overflow-x:clip; }
.mp img { display:block; max-width:100%; }
.vh { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
[id] { scroll-margin-top:16px; }

/* 01 · шапка поверх главного экрана */
.hdr { position:absolute; inset:0 0 auto 0; z-index:3; display:flex; align-items:center; justify-content:space-between; gap:16px; height:72px; padding:0 40px; color:#fff; }
.hdr .mp-logo { letter-spacing:.2em; }
.hdr__tel { display:flex; align-items:center; gap:10px; font-weight:700; font-size:16px; white-space:nowrap; }
.hdr__tel .mp-iconbtn { display:grid; width:40px; height:40px; border-color:rgba(255,255,255,.7); }

/* 02 · главный экран: фото <img> вместо фона, чтобы грузилось первым */
.mp-hero { background-image:none; overflow:hidden; }
.hero__pic { position:absolute; inset:0; }
.hero__pic img { width:100%; height:100%; object-fit:cover; object-position:50% 60%; }
.hero__pic::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(15,17,21,.9) 0%, rgba(15,17,21,.7) 45%, rgba(15,17,21,.15) 80%); }
.mp-hero__txt { position:relative; z-index:1; max-width:700px; }
.mp-hero__txt .mp-h1 { max-width:640px; }
.mp-hero__txt p { max-width:540px; }
.mp-hero__facts { flex-wrap:wrap; row-gap:16px; }
.mp-hero__facts > div { border-left:1px solid var(--brass); padding-left:12px; }

/* 03 · в чём подвох: фото-плитки с текстом */
.mp-ptile { height:460px; }
.mp-ptile img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.mp-ptile::after { background:linear-gradient(180deg, rgba(15,17,21,.15) 0%, rgba(15,17,21,.35) 35%, rgba(15,17,21,.92) 72%); z-index:0; }
.mp-ptile .b { font-size:15px; line-height:22px; }
.mp-ptile .b b { font-size:22px; line-height:28px; font-weight:600; margin-bottom:8px; }
.mp-ptile .b span { opacity:.92; }
.catch-lead { max-width:720px; margin:var(--space-4) 0 0; }

/* 05 · калькулятор */
.mp-seg { flex-wrap:nowrap; }
.mp-seg button { all:unset; box-sizing:border-box; cursor:pointer; white-space:nowrap; padding:10px 20px; border-radius:var(--radius-pill); font-size:15px; font-weight:600; color:var(--ink-muted); text-align:center; flex:1; }
.mp-seg button[aria-pressed="true"] { background:var(--surface-200); color:var(--ink); box-shadow:var(--shadow-card); }
.mp-seg button:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
.calc-seg { display:flex; width:100%; }
select.mp-input { appearance:none; -webkit-appearance:none; padding-right:44px; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23565d66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; }
.mp-input { font-size:17px; }
.colors { display:flex; gap:12px; flex-wrap:wrap; border:0; padding:0; margin:0; min-width:0; }
.colors legend { font-size:14px; line-height:20px; font-weight:600; padding:0; margin-bottom:var(--space-2); }
.color { position:relative; display:flex; align-items:center; gap:10px; padding:6px 16px 6px 6px; border:1px solid var(--steel-400); border-radius:var(--radius-pill); cursor:pointer; font-size:15px; font-weight:600; }
.color input { position:absolute; opacity:0; pointer-events:none; }
.color i { width:32px; height:32px; border-radius:50%; flex:none; border:2px solid var(--surface-200); box-shadow:0 0 0 1px var(--steel-400); }
.color small { display:block; font-size:12px; line-height:14px; font-weight:500; color:var(--ink-muted); }
.color:has(input:checked) { border-color:var(--ink); box-shadow:0 0 0 1px var(--ink); }
.color:has(input:focus-visible) { outline:2px solid var(--focus); outline-offset:2px; }
.mp-calc__res .lbl { color:var(--on-graphite-muted); font-size:15px; }
.mp-calc__sum { margin-top:0; }
.mp-calc__sum small { font-size:20px; letter-spacing:0; color:var(--on-graphite-muted); }
.calc-hint { font-size:14px; line-height:20px; color:var(--on-graphite-muted); }
.mp-calc__res .mp-btn { width:100%; margin-top:auto; }
.mp-calc__res dd { text-align:right; }
.mp-calc__res dl div { gap:12px; }

/* 06 · гарантия — акцентная плашка на фактуре листа */
.guar { position:relative; overflow:hidden; border-radius:var(--radius-lg); color:var(--on-graphite); padding:var(--space-12) var(--space-12) var(--space-12) calc(var(--space-12) + 8px);
  background-color:var(--graphite-900); background-image:linear-gradient(rgba(30,33,40,.86), rgba(30,33,40,.86)), url(../img/texture.webp); background-size:cover; background-position:center; }
.guar::before { content:""; position:absolute; left:0; top:0; bottom:0; width:8px; background:var(--brand); }
.guar .mp-h2 { max-width:720px; }
.guar p { margin-top:var(--space-4); font-size:19px; line-height:30px; max-width:760px; color:var(--on-graphite); }

/* 08 · фото */
.mp-gal > div img { width:100%; height:100%; object-fit:cover; }
.mp-gal { grid-template-rows:280px 280px; }

/* 09 · отзывы */

/* 10 · самовывоз и доставка: фото вместо схемы */
.mp-dcard__pic { height:240px; }
.mp-dcard__pic img { width:100%; height:100%; object-fit:cover; }
.mp-dcard__body p { color:var(--ink-muted); }

/* 12 · финальный призыв */
.mp-cta .mp-btns { justify-content:center; }

/* 13 · подвал */
.mp-foot__grid { grid-template-columns:1.6fr 1.2fr 1fr 1.2fr; }
.mp-foot p { max-width:none; }
.mp-foot__bot { padding-bottom:18px; }

/* 14 · нижняя панель — отдельный .mp-контейнер, закреплённый к низу экрана
   (внутри основного .mp position:fixed привязался бы к контейнеру, а не к окну) */
.barwrap { position:fixed; left:0; right:0; bottom:0; z-index:50; background:none; }
.barwrap .mp-bar { position:static; }

@container (max-width: 720px) {
  .hdr { height:60px; padding:0 16px; gap:8px; }
  .hdr .mp-logo { font-size:13px; letter-spacing:.1em; gap:8px; }
  .hdr .mp-logo i { height:16px; }
  .hdr__tel { font-size:15px; gap:0; }
  .hdr__tel .mp-iconbtn { display:none; }

  .mp-hero { min-height:0; }
  .hero__pic img { object-position:30% 50%; }
  .hero__pic::after { background:linear-gradient(0deg, rgba(15,17,21,.96) 0%, rgba(15,17,21,.88) 55%, rgba(15,17,21,.45) 85%, rgba(15,17,21,.6) 100%); }
  .mp-hero__txt { padding:104px 16px 32px; }
  .mp-h1.hero-h1 { font-size:32px; line-height:38px; }
  .mp-hero__facts { gap:12px 16px; margin-top:24px; font-size:13px; line-height:18px; }
  .mp-hero__facts > div { padding-left:10px; }

  .mp-ptile { height:420px; padding:22px; }

  .mp-seg button { padding:10px 8px; font-size:14px; }
  .mp-calc__sum { font-size:44px; line-height:48px; }
  .mp-calc__res .mp-btn { white-space:normal; height:auto; min-height:52px; padding:12px 16px; text-align:center; }

  .guar { padding:var(--space-8) var(--space-6) var(--space-8) calc(var(--space-6) + 6px); }
  .guar::before { width:6px; }
  .guar p { font-size:17px; line-height:26px; }

  .mp-gal { grid-template-rows:240px 150px 150px; }
  .mp-dcard__pic { height:200px; }
  .mp-cta .mp-h2 { padding:0 8px; }
  .mp-foot__grid { grid-template-columns:1fr 1fr; }
  .mp-foot { padding-bottom:76px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } }

/* правки после проверки на 390 px */
@container (max-width: 720px) {
  .hero__pic::after { background:linear-gradient(0deg, rgba(15,17,21,.97) 0%, rgba(15,17,21,.9) 50%, rgba(15,17,21,.35) 80%, rgba(15,17,21,.55) 100%); }
  .mp-hero__txt { padding-top:150px; }
  .mp-gal { grid-template-rows:240px 150px 150px; }
  .mp-gal > div:nth-child(5) { display:block; }
}

/* выравнивание главного экрана по сетке .mp-wrap на десктопе */
.hdr { padding:0 max(32px, calc((100% - 1120px) / 2 + 32px)); }
.mp-hero__txt { padding-left:max(32px, calc((100% - 1120px) / 2 + 32px)); max-width:none; }
.mp-hero__txt > * { max-width:640px; }
@container (max-width: 720px) {
  .hdr { padding:0 16px; }
  .mp-hero__txt { padding-left:16px; padding-right:16px; }
}
.hdr { background:linear-gradient(rgba(15,17,21,.6), rgba(15,17,21,0)); }
.hero-h1 .hl { color:var(--brand); }

/* Max: эмблема в кнопках */
.mp-btn .max-ic { width:20px; height:20px; border-radius:5px; flex:none; }
.calc-copied { color:var(--amber); }

/* 14 · нижняя панель: две кликабельные эмблемы */
.bar-ic { justify-content:center; gap:12px; padding-top:8px; padding-bottom:calc(8px + env(safe-area-inset-bottom)); }
.bar-ic a { flex:1; display:flex; align-items:center; justify-content:center; gap:10px; height:56px; border-radius:var(--radius-pill); border:1px solid var(--border); font-weight:600; font-size:15px; color:var(--ink); }
.bar-ic .em { width:40px; height:40px; border-radius:12px; display:grid; place-items:center; overflow:hidden; flex:none; }
.bar-ic .em img { width:40px; height:40px; }
.bar-ic .em--tel { background:var(--action); color:var(--on-action); border-radius:50%; }
.bar-ic .em--tel .i { width:22px; height:22px; }

/* 10б · как проехать */
.route { display:grid; grid-template-columns:7fr 5fr; gap:var(--space-6); align-items:stretch; }
.route__map { border-radius:var(--radius-lg); overflow:hidden; min-height:420px; background:var(--surface-300); border:1px solid var(--border); }
.route__map iframe { display:block; width:100%; height:100%; min-height:420px; border:0; }
.route__info { background:var(--surface-200); border:1px solid var(--border); border-radius:var(--radius-lg); padding:var(--space-8); display:flex; flex-direction:column; gap:var(--space-6); }
.route__list { margin:0; display:grid; }
.route__list div { padding:14px 0; border-top:1px solid var(--border); }
.route__list div:first-child { border-top:0; padding-top:0; }
.route__list dt { font-size:13px; line-height:18px; color:var(--ink-muted); }
.route__list dd { margin:4px 0 0; font-size:17px; line-height:26px; font-weight:600; }
.route__info .mp-btns { margin-top:auto; }
.route__info .mp-btn { flex:1 1 auto; }
@container (max-width: 720px) {
  .route { grid-template-columns:1fr; gap:var(--space-4); }
  .route__map, .route__map iframe { min-height:300px; }
  .route__info { padding:var(--space-6); }
}

/* главный экран: фото hero1 (листы по центру снизу) */
.hero__pic img { object-position:60% 70%; }
@container (max-width: 720px) {
  /* на телефоне фото отдельной полосой сверху, текст — ниже на графите */
  .hero__pic { position:relative; height:260px; }
  .hero__pic img { object-position:58% 85%; }
  .hero__pic::after { background:linear-gradient(180deg, rgba(15,17,21,.55) 0%, rgba(15,17,21,0) 30%, rgba(15,17,21,0) 65%, rgba(30,33,40,1) 100%); }
  .mp-hero__txt { padding-top:8px; }
}

/* шапка: телефон выделен белой «таблеткой» */
.hdr__tel { background:#fff; color:#1e2128; height:48px; padding:0 20px 0 4px; border-radius:var(--radius-pill); box-shadow:0 2px 10px rgba(15,17,21,.25); }
.hdr__tel .mp-iconbtn { display:grid; width:40px; height:40px; border:0; background:var(--brand); color:#fff; }
@container (max-width: 720px) {
  .hdr__tel { height:40px; padding:0 14px 0 3px; gap:8px; font-size:14px; }
  .hdr__tel .mp-iconbtn { display:grid; width:34px; height:34px; }
  .hdr__tel .mp-iconbtn .i { width:17px; height:17px; }
}
@container (max-width: 380px) {
  .hdr__tel { padding:0 12px; font-size:13px; }
  .hdr__tel .mp-iconbtn { display:none; }
  .hdr .mp-logo { font-size:12px; letter-spacing:.06em; }
}


/* 09 · отзывы: профиль Авито слева + карусель */
.rvb { display:grid; grid-template-columns:260px minmax(0,1fr); gap:var(--space-8); align-items:start; }
.rvp { position:relative; background:var(--surface-200); border-radius:20px; padding:24px; box-shadow:0 1px 2px rgba(30,33,40,.06), 0 8px 24px rgba(30,33,40,.10); display:flex; flex-direction:column; gap:16px; }
.rvp__ava { width:112px; height:112px; border-radius:50%; display:grid; place-items:center; text-align:center; color:#fff; font-size:12px; line-height:14px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
  background:linear-gradient(rgba(15,17,21,.45), rgba(15,17,21,.45)), url(../img/texture.webp) center/cover; }
.rvp__name { margin:0; font-size:20px; line-height:26px; font-weight:700; }
.rvp__rate { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-top:6px; font-size:15px; }
.rvp__rate b { font-size:17px; }
.rvp__stars { color:var(--amber); letter-spacing:1px; font-size:16px; }
.rvp__rate a { color:var(--focus); font-weight:600; }
.rvp__meta { margin-top:8px; font-size:14px; line-height:21px; color:var(--ink-muted); }
.rvp__badges { list-style:none; margin:0; padding:0; display:grid; gap:10px; font-size:14px; line-height:20px; }
.rvp__badges li { display:flex; align-items:center; gap:10px; }
.rvp__badges .i { color:var(--success); }
.rvp__src { position:absolute; top:20px; right:20px; }
.rvp__btn { background:var(--graphite-900); color:var(--on-graphite); width:100%; }
.rvp__btn:hover { background:var(--graphite-700); }

.rvc { min-width:0; }
.rvc__top { display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:8px; }
.rv-chip { display:inline-flex; align-items:center; gap:8px; height:40px; padding:0 16px 0 10px; border-radius:var(--radius-pill); background:var(--surface-200); box-shadow:0 1px 2px rgba(30,33,40,.06), 0 2px 8px rgba(30,33,40,.08); font-size:14px; font-weight:600; }
.rv-count { font-size:14px; color:var(--ink-muted); }
.rvc__stage { position:relative; }
.rv-arrow { all:unset; box-sizing:border-box; position:absolute; top:50%; z-index:2; width:48px; height:48px; margin-top:-24px; border-radius:50%; display:grid; place-items:center; cursor:pointer;
  background:var(--surface-200); color:var(--ink); border:1px solid var(--border); box-shadow:0 2px 8px rgba(30,33,40,.10); transition:box-shadow .2s, opacity .2s; }
.rv-arrow--prev { left:-24px; } .rv-arrow--next { right:-24px; }
.rv-arrow:hover:not(:disabled) { box-shadow:0 6px 18px rgba(30,33,40,.18); }
.rv-arrow:disabled { opacity:0; pointer-events:none; }
.rv-arrow:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
.rv-track { display:flex; gap:20px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; scrollbar-width:none; overscroll-behavior-x:contain;
  margin:0 -12px; padding:12px 12px 28px; cursor:grab; }
.rv-track::-webkit-scrollbar { display:none; }
.rv-track.is-drag { cursor:grabbing; scroll-snap-type:none; scroll-behavior:auto; user-select:none; }
.rv-track:focus-visible { outline:2px solid var(--focus); outline-offset:-2px; border-radius:20px; }
.rv { flex:0 0 calc((100% - 40px) / 3); min-width:0; scroll-snap-align:start; scroll-margin-left:12px; margin:0; position:relative; display:flex; flex-direction:column; gap:10px; height:320px;
  background:var(--surface-200); border-radius:20px; padding:22px 22px 52px; box-shadow:0 1px 2px rgba(30,33,40,.06), 0 8px 24px rgba(30,33,40,.10); }
.rv__top { display:flex; align-items:center; gap:12px; }
.rv__ava { width:48px; height:48px; border-radius:50%; flex:none; display:grid; place-items:center; color:#fff; font-size:19px; font-weight:600; }
.rv__name { display:block; font-size:16px; line-height:22px; font-weight:700; overflow-wrap:anywhere; }
.rv__date { display:block; font-size:13px; line-height:18px; color:var(--ink-muted); }
.rv__what { margin:0; font-size:12px; line-height:16px; color:var(--ink-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rv__text { margin:0; font-size:15px; line-height:23px; white-space:pre-line; overflow-wrap:anywhere; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:7; overflow:hidden; }
.rv.is-open { height:auto; min-height:320px; }
.rv.is-open .rv__text { -webkit-line-clamp:unset; display:block; }
.rv__more { all:unset; cursor:pointer; align-self:flex-end; font-size:14px; font-weight:600; color:var(--ink); margin-top:-6px; }
.rv__more:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
.rv__src { position:absolute; left:22px; bottom:20px; }
.rv-dots { display:flex; justify-content:center; gap:8px; }
.rv-dots button { all:unset; width:10px; height:10px; border-radius:50%; background:var(--border); cursor:pointer; transition:background .2s, transform .2s; }
.rv-dots button.on { background:var(--brand); transform:scale(1.15); }
@media (prefers-reduced-motion: reduce) { .rv-track { scroll-behavior:auto; } }
@container (max-width: 1100px) { .rv { flex-basis:calc((100% - 20px) / 2); } }
@container (max-width: 720px) {
  .rvb { grid-template-columns:minmax(0,1fr); gap:var(--space-6); }
  .rvp { min-width:0; }
  .rvp { display:grid; grid-template-columns:84px 1fr; gap:12px 16px; padding:20px; }
  .rvp__ava { width:84px; height:84px; font-size:10px; line-height:12px; }
  .rvp__name { font-size:17px; line-height:22px; padding-right:28px; }
  .rvp__badges, .rvp__btn { grid-column:1 / -1; }
  .rvp__badges { grid-template-columns:1fr 1fr; font-size:13px; gap:8px; }
  .rv-arrow { display:none; }
  .rv-track { margin:0 -16px; padding:12px 16px 24px; gap:12px; }
  .rv { flex-basis:86%; scroll-margin-left:16px; height:300px; }
}
.rv__more[hidden] { display:none; }
.rvp__badge { display:flex; align-items:center; gap:10px; margin-top:12px; font-size:14px; line-height:20px; font-weight:600; }
.rvp__badge img { width:32px; height:32px; flex:none; }
@container (max-width: 720px) { .rvp__badge { margin-top:8px; } }
.rv__what { display:flex; align-items:center; gap:8px; white-space:nowrap; }
.rv__stars { flex:none; color:var(--amber); font-size:15px; line-height:16px; letter-spacing:1px; }
.rv__prod { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.calc-star { font-size:22px; color:var(--on-graphite-muted); vertical-align:super; margin-left:2px; }
.calc-note { margin-top:-8px; }
#rAreaRow[hidden] { display:none; }
#hField[hidden], #rHRow[hidden] { display:none; }

/* калькулятор: короткое поле, звёздочка, блок «Узнать цену и наличие» */
#len { max-width:200px; }
#lenField.full { grid-column:auto; }
.mp-calc__sum { display:flex; align-items:center; gap:10px; }
.calc-star { font-size:32px; line-height:1; vertical-align:baseline; color:var(--on-graphite-muted); margin-left:-4px; position:relative; top:2px; }
.calc-cta { margin-top:auto; display:grid; gap:12px; padding-top:var(--space-2); }
.calc-cta__title { font-size:18px; line-height:24px; font-weight:600; color:var(--on-graphite); }
.calc-cta__btns { display:flex; gap:12px; }
.calc-cta__btns .mp-btn { flex:1 1 0; min-width:0; height:52px; padding:0 16px; border-radius:var(--radius-pill); }
.calc-cta__btns .mp-btn--ghost-light .i { width:20px; height:20px; }
.mp-calc__res .calc-cta .mp-btn { width:auto; margin-top:0; }
@container (max-width: 720px) {
  .mp-calc__res .calc-cta .mp-btn { white-space:nowrap; min-height:52px; }
}
.mp-cta .mp-h2 + .mp-btns { margin-top:var(--space-6); }

/* подвал: контакты — телефон и Max с иконками */
.mp-foot .foot-ct { gap:14px; }
.foot-ct a { display:inline-flex; align-items:center; gap:12px; font-size:18px; line-height:24px; font-weight:600; white-space:nowrap; color:var(--on-graphite); }
.foot-ct a:hover { color:#fff; }
.foot-ct__ic { width:32px; height:32px; border-radius:9px; flex:none; display:grid; place-items:center; overflow:hidden; }
.foot-ct__ic img { width:32px; height:32px; }
.foot-ct__ic--tel { background:var(--brand); color:#fff; border-radius:50%; }
.foot-ct__ic--tel .i { width:17px; height:17px; }

/* 03а · наша некондиция */
.nc { max-width:1120px; }
.mp .nc__title { text-align:center; margin-bottom:var(--space-8); }
.ncs__frame { position:relative; aspect-ratio:16 / 9; border-radius:20px; overflow:hidden; background:var(--surface-300); box-shadow:0 1px 2px rgba(30,33,40,.06), 0 8px 24px rgba(30,33,40,.10); }
.ncs__slide { position:absolute; inset:0; margin:0; opacity:0; visibility:hidden; transition:opacity .7s ease, visibility .7s; }
.ncs__slide.on { opacity:1; visibility:visible; }
.ncs__slide img { width:100%; height:100%; object-fit:cover; }
.ncs__badge { position:absolute; right:14px; bottom:14px; padding:6px 12px; border-radius:var(--radius-pill); font-size:13px; line-height:16px; font-weight:700; box-shadow:0 2px 8px rgba(15,17,21,.25); }
.ncs__badge--1 { background:#fff; color:var(--ink); }
.ncs__badge--2 { background:var(--amber); color:#1e2128; }
.mp .nc__title { margin-bottom:var(--space-4); }
.ncs__filters { display:flex; justify-content:center; gap:8px; margin-bottom:var(--space-6); }
.ncs__filter { all:unset; box-sizing:border-box; cursor:pointer; height:40px; padding:0 20px; display:inline-flex; align-items:center; border-radius:var(--radius-pill); border:1.5px solid var(--steel-400); font-size:15px; font-weight:600; color:var(--ink); background:var(--surface-200); transition:background .2s, color .2s, border-color .2s; }
.ncs__filter:hover { border-color:var(--ink); }
.ncs__filter[aria-pressed="true"] { background:var(--ink); border-color:var(--ink); color:var(--surface-200); }
.ncs__filter:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
.ncs__arrow { all:unset; box-sizing:border-box; position:absolute; top:50%; margin-top:-22px; width:44px; height:44px; border-radius:50%; display:grid; place-items:center; cursor:pointer; background:rgba(255,255,255,.92); color:var(--ink); box-shadow:0 2px 8px rgba(15,17,21,.2); z-index:1; }
.ncs__arrow--prev { left:12px; } .ncs__arrow--next { right:12px; }
.ncs__arrow:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
.ncs__dots { display:flex; justify-content:center; gap:8px; margin-top:var(--space-4); }
.ncs__dots button { all:unset; width:10px; height:10px; border-radius:50%; background:var(--border); cursor:pointer; transition:background .2s, transform .2s; }
.ncs__dots button.on { background:var(--brand); transform:scale(1.15); }
.ncs__dots button:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
.nc__lists { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-6); margin-top:var(--space-8); }
.nc__card { background:var(--surface-100); border-radius:var(--radius-lg); padding:var(--space-6) var(--space-8); }
.nc__card--dark { background:var(--graphite-900); color:var(--on-graphite); }
.nc__card ul { list-style:none; margin:var(--space-4) 0 0; padding:0; display:grid; gap:12px; }
.nc__card li { display:flex; gap:12px; align-items:flex-start; font-size:16px; line-height:24px; }
.mp-dot--no { background:var(--graphite-700); color:var(--on-graphite); border:1px solid rgba(238,240,243,.35); }
@media (prefers-reduced-motion: reduce) { .ncs__slide { transition:none; } }
@container (max-width: 720px) {
  .mp .nc__title { margin-bottom:var(--space-6); }
  .ncs__frame { aspect-ratio:1 / 1; border-radius:16px; }
  .ncs__arrow { display:none; }
  .nc__lists { grid-template-columns:1fr; gap:var(--space-4); margin-top:var(--space-6); }
  .nc__card { padding:var(--space-6); }
}

/* 03б · нужен новый лист */
.newsheet { position:relative; min-height:360px; border-radius:var(--radius-lg); overflow:hidden; color:#fff; display:flex; align-items:center; }
.newsheet__pic { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 60%; }
.newsheet::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(15,17,21,.88) 0%, rgba(15,17,21,.65) 50%, rgba(15,17,21,.15) 100%); }
.newsheet__txt { position:relative; z-index:1; padding:var(--space-12); max-width:560px; }
.newsheet__txt p { margin:var(--space-4) 0 var(--space-6); font-size:18px; line-height:28px; color:var(--on-graphite); }
.newsheet .max-ic { width:20px; height:20px; border-radius:5px; }

/* 07б · приехали, загрузили, уехали */
.arrive { grid-template-columns:repeat(3,1fr); }
.arrive > div { box-shadow:var(--shadow-card); border:0; }
.arrive h3 { margin-top:0; }
.arrive__q { margin:var(--space-8) 0 0; padding:var(--space-6) var(--space-8); background:var(--surface-200); border-radius:var(--radius-lg); box-shadow:var(--shadow-card); }
.arrive__q blockquote { margin:0; font-size:20px; line-height:30px; font-weight:500; letter-spacing:-.01em; }
.arrive__q figcaption { margin-top:var(--space-4); font-size:14px; color:var(--ink-muted); }

@container (max-width: 720px) {
  .tm__col > ul, .tm__col > .tm__tag { margin-left:var(--space-6); margin-right:var(--space-6); }
  .tm__col { padding-bottom:var(--space-6); }
  .tm__pic { height:160px; margin-bottom:var(--space-4); }
  .tm__note { padding:var(--space-4); font-size:15px; }
  .newsheet { min-height:0; flex-direction:column; align-items:stretch; }
  .newsheet::after { background:linear-gradient(180deg, rgba(15,17,21,.35) 0%, rgba(15,17,21,.92) 55%); }
  .newsheet__txt { padding:180px var(--space-6) var(--space-6); }
  .newsheet__txt p { font-size:16px; line-height:24px; }
  .newsheet .mp-btn { width:100%; }
  .arrive { grid-template-columns:1fr; }
  .arrive > div { display:grid; grid-template-columns:44px 1fr; gap:2px 14px; }
  .arrive .ic { grid-row:1 / 3; margin-bottom:0; }
  .arrive p { margin-top:0; }
  .arrive__q { padding:var(--space-6); }
  .arrive__q blockquote { font-size:17px; line-height:26px; }
}

/* калькулятор на телефоне: без пустоты, поля крыши в одну строку */
@container (max-width: 720px) {
  .mp-calc { align-items:start; }
  .mp-calc__form { grid-template-columns:1fr 1fr; gap:var(--space-4) 12px; }
  .mp-calc__form > .mp-field:first-child { grid-column:1 / -1; }
  #len { max-width:none; }
  .mp-calc__form .mp-field label { font-size:13px; line-height:18px; white-space:nowrap; }
}
#sheets { font-variant-numeric:tabular-nums; font-feature-settings:"tnum" 1; }
.rvp__ava { background:none; overflow:hidden; }
.rvp__ava img { width:100%; height:100%; object-fit:cover; transform:scale(1.06); }

/* фильтры сорта: тоньше, активный — цвета плашки сорта (1 сорт — sky-steel, 2 сорт — amber) */
.ncs__filter { height:32px; padding:0 14px; font-size:14px; border-width:1px; }
.ncs__badge--1 { background:var(--sky-steel); color:#1e2128; }
.ncs__filter[data-sort="1"][aria-pressed="true"] { background:var(--sky-steel); border-color:var(--sky-steel); color:#1e2128; }
.ncs__filter[data-sort="2"][aria-pressed="true"] { background:var(--amber); border-color:var(--amber); color:#1e2128; }

/* возможные дефекты: таблица по сортам */
.nc__table { width:100%; border-collapse:collapse; }
.nc__table th, .nc__table td { padding:7px 0; font-size:16px; line-height:22px; vertical-align:middle; }
.nc__table thead th { padding:0 0 10px; text-align:center; white-space:nowrap; }
.nc__table thead th:first-child { text-align:left; }
.nc__table thead .mp-h3 { font-size:20px; line-height:26px; font-weight:600; }
.nc__table tbody th { text-align:left; font-weight:400; padding-right:12px; }
.nc__table td { width:72px; text-align:center; }
.nc__table td .mp-dot { margin:0 auto; }
.nc__sort { display:inline-block; padding:3px 10px; border-radius:var(--radius-pill); font-size:12px; line-height:16px; font-weight:700; color:#1e2128; }
.nc__sort--1 { background:var(--sky-steel); }
.nc__sort--2 { background:var(--amber); }
.nc__no { color:var(--steel-400); font-weight:600; }
@container (max-width: 720px) {
  .nc__table th, .nc__table td { font-size:15px; }
  .nc__table td { width:56px; }
  .nc__table thead .mp-h3 { font-size:17px; line-height:22px; }
  .nc__sort { padding:3px 8px; font-size:11px; }
}

/* правки: шире таблица дефектов, оранжевые крестики, сорта без цветных плашек */
.nc__lists { grid-template-columns:3fr 2fr; }
.mp-dot--no { background:var(--brand); color:#fff; border:0; font-size:12px; }
.nc__sort, .nc__sort--1, .nc__sort--2 { background:none; padding:0; font-size:14px; line-height:20px; font-weight:600; color:var(--ink-muted); }
.ncs__badge--1, .ncs__badge--2 { background:var(--brand); color:#fff; }
.ncs__filter[data-sort="1"][aria-pressed="true"], .ncs__filter[data-sort="2"][aria-pressed="true"] { background:var(--brand); border-color:var(--brand); color:#fff; }
@container (max-width: 720px) { .nc__lists { grid-template-columns:1fr; } .nc__sort { font-size:13px; } }
.nc__sort, .nc__sort--1, .nc__sort--2 { font-weight:700; color:var(--ink); }
.mp-dot--no svg { display:block; }

/* отзыв под «Приехали, загрузили, уехали» — карточка как в блоке отзывов */
.rv.arrive__rv { height:auto; min-height:0; margin-top:var(--space-8); padding-bottom:52px; }
.arrive__rv .rv__text { -webkit-line-clamp:unset; display:block; font-size:17px; line-height:26px; }
.rv.arrive__rv { padding-bottom:22px; }
.arrive__rv .rv__src { left:auto; bottom:auto; top:22px; right:22px; }
.arrive__link { display:block; color:inherit; border-radius:20px; }
.arrive__link .rv { transition:box-shadow .2s, transform .2s; }
.arrive__link:hover .rv { box-shadow:0 2px 4px rgba(30,33,40,.06), 0 14px 32px rgba(30,33,40,.14); transform:translateY(-2px); }
.arrive__link:focus-visible { outline:2px solid var(--focus); outline-offset:4px; }
.newsheet__txt .hl { color:#fff; font-weight:600; background:var(--brand); padding:1px 6px; margin:0 -2px; border-radius:4px; -webkit-box-decoration-break:clone; box-decoration-break:clone; }

/* пара кнопок «Позвонить» + «Написать» (Max) — везде в одну линию */
.pair { display:flex; gap:12px; }
.pair .mp-btn { flex:1 1 0; min-width:0; height:52px; padding:0 20px; }
.pair .mp-btn .i { width:20px; height:20px; }
.mp-btn .max-ic, .max-ic { width:22px; height:22px; border-radius:0; flex:none; }
.hero-btns { display:flex; flex-wrap:wrap; gap:12px; }
.hero-btns .pair { flex:0 1 400px; }
.hero-calc { height:52px; }
.newsheet .pair { max-width:400px; }
.mp-cta .pair { max-width:400px; margin:var(--space-6) auto 0; }
.bar-ic .em { border-radius:0; }
@container (max-width: 720px) {
  .hero-btns { flex-direction:column; }
  .hero-btns .pair { flex:none; }
  .hero-calc { width:100%; }
  .newsheet .pair, .mp-cta .pair { max-width:none; }
  .pair .mp-btn { padding:0 12px; }
}
.bar-ic .em.em--tel { border-radius:50%; }
/* «Позвонить» на главном экране: белая заливка, оранжевая трубка, чёрный текст */
.hero-btns .pair a[href^="tel:"] { background:#fff; border-color:#fff; color:#1e2128; }
.hero-btns .pair a[href^="tel:"] .i { color:var(--brand); }
.hero-btns .pair a[href^="tel:"]:hover { background:#f1f2f4; }

/* кнопки чуть увеличиваются при наведении (только мышь; без анимации, если она отключена в системе) */
.mp-btn, .hdr__tel, .rvp__btn { transition:transform .18s ease, background-color .2s, box-shadow .2s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .mp-btn:hover, .hdr__tel:hover { transform:scale(1.04); }
  .mp-btn:active, .hdr__tel:active { transform:scale(.98); }
}
/* «Позвонить» в «Свяжитесь с нами» — как на главном экране */
.mp-cta .pair a[href^="tel:"] { background:#fff; border-color:#fff; color:#1e2128; box-shadow:0 1px 2px rgba(30,33,40,.08), 0 4px 12px rgba(30,33,40,.08); }
.mp-cta .pair a[href^="tel:"] .i { color:var(--brand); }
.mp-cta .pair a[href^="tel:"]:hover { background:#fff; }

/* появление блоков: fade-up */
.reveal { opacity:0; transform:translateY(28px); transition:opacity .7s ease var(--rd, 0ms), transform .7s cubic-bezier(.2,.7,.2,1) var(--rd, 0ms); }
.reveal.in { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; transition:none; } }

/* 08 · фото: фильтры как у сортов + ровная сетка */
.mp .pg__title { margin-bottom:var(--space-4); }
.pg__filters { justify-content:flex-start; flex-wrap:wrap; }
.pg__filters .ncs__filter[aria-pressed="true"] { background:var(--brand); border-color:var(--brand); color:#fff; }
.pg__filters .ncs__filter[hidden] { display:none; }
.pg { display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; }
.pg__item { position:relative; margin:0; aspect-ratio:4 / 3; border-radius:var(--radius-lg); overflow:hidden; background:var(--surface-300); animation:pgIn .35s ease; }
.pg__item[hidden] { display:none; }
.pg__item img { width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.pg__item figcaption { position:absolute; left:12px; bottom:12px; background:rgba(15,17,21,.7); color:#fff; font-size:13px; line-height:18px; padding:6px 10px; border-radius:var(--radius-md); }
@media (hover: hover) { .pg__item:hover img { transform:scale(1.04); } }
@keyframes pgIn { from { opacity:0; } to { opacity:1; } }
@media (prefers-reduced-motion: reduce) { .pg__item { animation:none; } .pg__item img { transition:none; } }
@container (max-width: 720px) {
  .pg { grid-template-columns:1fr 1fr; gap:8px; }
  .pg__filters { justify-content:flex-start; }
  .pg__item figcaption { left:8px; bottom:8px; font-size:12px; padding:4px 8px; }
}

/* 08 · фото — карусель: до 3 фото на экране */
.pg-stage { position:relative; }
.pg { display:flex; gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; scrollbar-width:none; overscroll-behavior-x:contain; cursor:grab; }
.pg::-webkit-scrollbar { display:none; }
.pg.is-drag { cursor:grabbing; scroll-snap-type:none; scroll-behavior:auto; user-select:none; }
.pg:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
.pg__item { flex:0 0 calc((100% - 32px) / 3); min-width:0; scroll-snap-align:start; }
.pg__item img { -webkit-user-drag:none; }
@container (max-width: 960px) { .pg__item { flex-basis:calc((100% - 16px) / 2); } }
@container (max-width: 720px) {
  .pg { gap:10px; margin:0 -16px; padding:0 16px; scroll-padding:0 16px; }
  .pg__item { flex-basis:82%; }
  .pg-arrow { display:none; }
}
.pg__filters .ncs__filter:disabled { color:var(--steel-400); border-color:var(--border); background:transparent; cursor:default; }
@media (hover: hover) { .pg__filters .ncs__filter:disabled:hover { border-color:var(--border); } }

/* стрелки поверх фото — «жидкое стекло»: полупрозрачные с размытием */
.pg-arrow, .ncs__arrow { background:rgba(255,255,255,.22); color:#fff; border:1px solid rgba(255,255,255,.45);
  -webkit-backdrop-filter:blur(14px) saturate(160%); backdrop-filter:blur(14px) saturate(160%);
  box-shadow:0 4px 16px rgba(15,17,21,.18), inset 0 1px 0 rgba(255,255,255,.5); }
.pg-arrow:hover:not(:disabled), .ncs__arrow:hover { background:rgba(255,255,255,.34); box-shadow:0 6px 20px rgba(15,17,21,.22), inset 0 1px 0 rgba(255,255,255,.6); }
.pg-arrow--prev, .pg-arrow.rv-arrow--prev { left:12px; }
.pg-arrow.rv-arrow--next { right:12px; }

/* плашка «Авито 4,9» — по центру над каруселью отзывов */
.rvc__top { justify-content:center; }
@container (max-width: 720px) { .rv-dots { display:none; } }

/* нижняя панель на телефоне — те же кнопки, что в «Свяжитесь с нами» */
.bar-pair { gap:10px; padding:10px 12px calc(10px + env(safe-area-inset-bottom)); }
.bar-pair .mp-btn { flex:1 1 0; min-width:0; height:52px; padding:0 12px; }
.bar-call { background:#fff; color:#1e2128; border-color:#fff; box-shadow:0 1px 2px rgba(30,33,40,.08), 0 4px 12px rgba(30,33,40,.12); }
.bar-call .i { color:var(--brand); width:20px; height:20px; }
.mp-bar.bar-pair { background:var(--surface-300); border-top-color:var(--border); }
.mp-bar.bar-pair { background:var(--graphite-900); border-top:1px solid rgba(238,240,243,.12); box-shadow:0 -6px 20px rgba(15,17,21,.25); } .bar-pair .bar-call { box-shadow:none; }
