/* БериВел · страницы моделей, обычные страницы и страница 404. Разметка — public/.templates/.
   Шапка, подвал, кнопки, шрифт и цвета берутся из стилей главной (style.css, brand-logo.css, typography.css,
   visual-refresh.css, legal.css). Здесь — только раскладка страниц и поправки для телефона:
   текст не мельче 15 px, цели нажатия от 44 px. Все правила начинаются с .berivel-page или с префиксов mp-, nf-, page-. */

.berivel-page{background:#f2f3ee;color:var(--ink);font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.mp-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.berivel-page .text-link{min-height:44px;padding-block:8px;font-size:16px;gap:14px}
.berivel-page .button{font-size:16px}

/* ── Шапка: та же, что на главной; на телефоне разделы убраны под кнопку меню ── */
.berivel-page .site-header .desktop-nav{font-size:15px}
.page-menu{display:none}
.page-menu-toggle{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--yellow);color:#1b2013;cursor:pointer;list-style:none;-webkit-tap-highlight-color:transparent}
.page-menu-toggle::-webkit-details-marker{display:none}
.page-menu-toggle::marker{content:""}
.page-menu-toggle:focus-visible{outline:3px solid #fff;outline-offset:4px}
.page-menu-bars,.page-menu-bars::before,.page-menu-bars::after{display:block;width:18px;height:2px;border-radius:2px;background:currentColor}
.page-menu-bars{position:relative}
.page-menu-bars::before,.page-menu-bars::after{content:"";position:absolute;left:0}
.page-menu-bars::before{top:-6px}
.page-menu-bars::after{top:6px}
.page-menu[open] .page-menu-bars{background:transparent}
.page-menu[open] .page-menu-bars::before{top:0;transform:rotate(45deg)}
.page-menu[open] .page-menu-bars::after{top:0;transform:rotate(-45deg)}
.page-menu-panel{position:absolute;left:0;right:0;top:100%;z-index:6;display:grid;gap:8px;padding:12px 20px 20px;border-top:1px solid #343a2d;background:var(--ink);box-shadow:0 14px 22px #0003}
.berivel-page .site-header .page-menu-panel a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 16px;border-radius:12px;background:var(--yellow);color:#1b2013;font-size:16px;font-weight:700;line-height:1.25}
.berivel-page .site-header .page-menu-panel a:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media(max-width:620px){
  .berivel-page .site-header .header-inner{grid-template-rows:auto;row-gap:0;padding-block:8px 10px}
  .berivel-page .site-header .desktop-nav{display:none}
  .berivel-page .site-header .header-actions{justify-items:stretch}
  .berivel-page .site-header .header-phone{font-size:15px;padding-inline:8px;letter-spacing:-.01em;white-space:nowrap}
  .page-menu{display:block}
}
@media(max-width:345px){
  .berivel-page .site-header .brand-logo{width:76px;height:60px}
  .berivel-page .site-header .header-phone::before{display:none}
}

/* ── Каркас страницы ── */
.mp{padding-block:10px 52px}
.mp-crumbs ol{display:flex;flex-wrap:wrap;align-items:center;margin:0;padding:0;list-style:none;font-size:15px;line-height:1.3;color:var(--muted)}
.mp-crumbs li{display:flex;align-items:center;min-width:0}
.mp-crumbs li+li::before{content:"/";margin-inline:8px;color:#a9ae9d}
.mp-crumbs a,.mp-crumbs [aria-current]{display:inline-flex;align-items:center;min-height:44px}
.mp-crumbs a{text-decoration:underline;text-decoration-color:#b9bdae;text-underline-offset:4px}
.mp-crumbs a:hover{color:var(--ink);text-decoration-color:currentColor}
.mp-crumbs [aria-current]{color:var(--ink);font-weight:650;overflow-wrap:anywhere}
.mp-section{margin-top:44px}
.berivel-page .mp h2{font-size:clamp(24px,6.2vw,32px);line-height:1.18;letter-spacing:-.035em;overflow-wrap:anywhere}
.mp-section-head{display:grid;gap:10px;margin-bottom:18px}
.mp-section-head .text-link{justify-self:start}
.mp-lead{max-width:780px;font-size:17px;line-height:1.6;color:#3b3f33}
.mp-note{margin-top:14px;font-size:15px;line-height:1.55;color:var(--muted)}

/* ── Первый экран модели ── */
.mp-hero{display:grid;gap:20px;padding:20px 18px 22px;border:1px solid #e2e5d9;border-radius:24px;background:#fff}
.mp-hero-top{min-width:0}
.mp-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px;line-height:1.3}
.mp-tags:empty{display:none}
.mp-brand,.mp-stock{display:inline-flex;align-items:center;min-height:30px;padding:4px 12px;border-radius:8px;font-size:15px;font-weight:700}
.mp-brand{background:var(--yellow)}
.mp-stock{background:#e9f2de;color:#2c4718}
.mp-stock::before{content:"";flex:none;width:8px;height:8px;margin-right:8px;border-radius:50%;background:#4f9a2a}
.mp-stock-few{background:#fff1cc;color:#5f4300}
.mp-stock-few::before{background:#d99a00}
.mp-stock-busy{background:#eeefea;color:#51554a}
.mp-stock-busy::before{background:#989c90}
.berivel-page .mp-hero h1{font-size:clamp(28px,8vw,46px);line-height:1.12;letter-spacing:-.04em;overflow-wrap:anywhere}
.berivel-page .mp-hero-long h1{font-size:clamp(23px,5.6vw,32px);line-height:1.2;letter-spacing:-.03em}
.mp-name{padding-inline:.06em;background:linear-gradient(transparent 60%,var(--yellow) 60%,var(--yellow) 93%,transparent 93%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
.mp-price{display:grid;gap:4px;margin-top:16px;line-height:1.3}
.mp-price-main{font-size:18px;font-weight:650}
.mp-price-main b{font-size:36px;font-weight:800;letter-spacing:-.04em}
.mp-price-main .mp-price-label{font-size:26px;letter-spacing:-.03em;overflow-wrap:anywhere}
.mp-price-more{font-size:16px;color:var(--muted)}
.mp-price-more b{color:var(--ink);font-weight:750}
.mp-actions{display:grid;gap:10px;margin-top:20px}
.berivel-page .mp-actions .button{justify-content:space-between;width:100%;min-height:58px;gap:16px;text-align:left}
.mp-request{box-shadow:0 4px 0 #d6bb00}
.mp-ask{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1.5px #c5c9ba}
.mp-ask:hover{box-shadow:inset 0 0 0 2px var(--ink)}
.mp-call{margin-top:14px;font-size:16px;color:var(--muted)}
.mp-call a{display:inline-flex;align-items:center;min-height:44px;margin-left:2px;font-size:20px;font-weight:800;letter-spacing:-.02em;color:var(--ink);white-space:nowrap}
.mp-hint{margin-top:4px;font-size:15px;line-height:1.55;color:var(--muted)}
.mp-photo{margin:0;overflow:hidden;border:1px solid #e8eadf;border-radius:18px;background:#fff}
.mp-photo img{width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;background:#fff}
.mp-photo figcaption{padding:12px 16px;background:var(--gray);font-size:15px;line-height:1.5;color:var(--muted)}
.mp-hero-text p{font-size:17px;line-height:1.65;color:#3b3f33;white-space:pre-line;overflow-wrap:anywhere}

/* ── Тарифы: на телефоне — карточки по аккумуляторам, на широком экране — таблица ── */
.mp-rates{width:100%;border-collapse:collapse}
.mp-rates th{font-weight:800}
.mp-rate-price{font-weight:800;letter-spacing:-.02em;white-space:nowrap}
.mp-rate-day{font-size:15px;color:var(--muted);white-space:nowrap}
@media(max-width:719px){
  .mp-rates,.mp-rates tbody{display:block}
  .mp-rates thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .mp-rates tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:16px 14px 14px;border:1px solid #e2e5d9;border-radius:20px;background:#fff}
  .mp-rates tbody tr+tr{margin-top:12px}
  .mp-rates tbody th{grid-column:1/-1;padding:0 2px 4px;text-align:left;font-size:19px;letter-spacing:-.02em}
  .mp-rates td{display:flex;flex-direction:column;gap:2px;min-width:0;padding:11px 12px 12px;border-radius:13px;background:var(--gray)}
  .mp-rates td::before{content:attr(data-label);font-size:15px;line-height:1.3;color:var(--muted)}
  .mp-rate-price{font-size:20px;line-height:1.25}
}
@media(min-width:720px){
  .mp-rates-box{overflow:hidden;border:1px solid #e2e5d9;border-radius:20px;background:#fff}
  .mp-rates th,.mp-rates td{padding:16px 20px;text-align:right;vertical-align:top;line-height:1.35}
  .mp-rates th:first-child{text-align:left}
  .mp-rates thead{background:var(--ink);color:#fff}
  .mp-rates thead th{font-size:15px;font-weight:650}
  .mp-rates tbody tr+tr{border-top:1px solid var(--line)}
  .mp-rates tbody tr:nth-child(even){background:#f8f9f4}
  .mp-rates tbody th{font-size:18px;white-space:nowrap}
  .mp-rate-price{display:block;font-size:19px}
  .mp-rate-day{display:block;margin-top:2px}
}

/* ── Характеристики и комплект ── */
.mp-columns{display:grid;gap:16px;margin-top:44px}
.mp-columns:empty{display:none}
.mp-card{min-width:0;padding:22px 18px;border:1px solid #e2e5d9;border-radius:22px;background:#fff}
.berivel-page .mp .mp-card h2,.berivel-page .mp .mp-term h2{margin-bottom:12px;font-size:23px;letter-spacing:-.03em}
.mp-specs{margin:0}
.mp-specs>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:14px;padding:13px 0;border-top:1px solid var(--line);font-size:16px;line-height:1.45;overflow-wrap:anywhere}
.mp-specs>div:first-child{border-top:0;padding-top:4px}
.mp-specs>div:last-child{padding-bottom:0}
.mp-specs dt{color:var(--muted)}
.mp-specs dd{margin:0;font-weight:650;text-align:right;white-space:pre-line}
.mp-kit{display:grid;gap:14px;margin:0;padding:0;list-style:none}
.mp-kit li{display:grid;grid-template-columns:26px minmax(0,1fr);gap:12px;align-items:start;font-size:17px;font-weight:650;line-height:1.4}
.mp-kit li::before{content:"";width:26px;height:26px;border-radius:50%;background:var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8 2.6 2.6L12 5.4' fill='none' stroke='%23232c17' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat}
.mp-kit small{display:block;font-size:15px;font-weight:500;color:var(--muted)}

/* ── Условия аренды и выкуп ── */
.mp-terms{display:grid;gap:16px;margin-top:16px}
.mp-term{min-width:0;padding:22px 18px;border-radius:22px;background:#e8eae1}
.mp-term p{font-size:16px;line-height:1.65;white-space:pre-line;overflow-wrap:anywhere}
.mp-term .text-link{margin-top:12px}

/* ── Блок действия ── */
.mp-cta{display:grid;gap:20px;margin-top:44px;padding:28px 22px;border-radius:24px;background:var(--ink);color:#fff}
.mp-cta p{margin-top:8px;font-size:16px;color:#c8ccbf}
.mp-cta-actions{display:grid;gap:10px}
.berivel-page .mp-cta .button{justify-content:space-between;width:100%;gap:16px}
.mp-cta-phone{display:flex;align-items:center;justify-content:center;min-height:48px;font-size:21px;font-weight:800;letter-spacing:-.02em;color:#fff;white-space:nowrap}
.mp-cta a:focus-visible{outline-color:#fff}

/* ── Список моделей ── */
.mp-models{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.mp-model{display:grid;grid-template-columns:104px minmax(0,1fr);gap:14px;align-items:center;min-height:128px;padding:12px;border:1px solid #e2e5d9;border-radius:20px;background:#fff;transition:border-color .18s,box-shadow .18s}
.mp-model:hover{border-color:var(--ink);box-shadow:0 6px 0 #17191412}
.mp-model img{width:104px;height:104px;border-radius:12px;object-fit:contain;background:#fff}
.mp-model-body{display:grid;gap:2px;min-width:0}
.mp-model-name{font-size:19px;font-weight:800;line-height:1.25;letter-spacing:-.02em;overflow-wrap:anywhere}
.mp-model-price{font-size:16px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}
.mp-model-day{font-size:15px;line-height:1.4;color:var(--muted)}
.mp-model-more{margin-top:4px;font-size:15px;font-weight:700;line-height:1.4;text-decoration:underline;text-underline-offset:4px}
.mp-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.mp-links a{display:inline-flex;align-items:center;min-height:44px;padding:8px 16px;border:1px solid #cfd3c5;border-radius:50px;background:#fff;font-size:16px;font-weight:650}
.mp-links a:hover{border-color:var(--ink)}

/* ── Адрес и график ── */
.mp-contact{display:grid;gap:18px;margin-top:44px;padding:28px 22px;border-radius:24px;background:var(--yellow)}
.mp-contact-address{margin-top:10px;font-size:19px;font-weight:700;line-height:1.4}
.mp-contact-hours{margin-top:2px;font-size:16px;color:#4b4500}
.mp-contact-actions{display:grid;gap:10px}
.mp-contact-phone{display:inline-flex;align-items:center;min-height:48px;font-size:27px;font-weight:800;letter-spacing:-.03em;white-space:nowrap}
.berivel-page .mp-contact .button{justify-content:space-between;width:100%;gap:16px}

/* ── Страница 404 ── */
.nf-card{margin-top:18px;padding:26px 20px 24px;border:1px solid #e2e5d9;border-radius:24px;background:#fff}
.nf-code{display:inline-block;padding:2px 14px 4px;border-radius:14px;background:var(--yellow);font-size:clamp(44px,14vw,72px);font-weight:800;line-height:1.05;letter-spacing:-.05em}
.berivel-page .nf-card h1{margin-top:18px;font-size:clamp(28px,8vw,46px);line-height:1.12;letter-spacing:-.04em}
.nf-text{max-width:600px;margin-top:12px;font-size:17px;line-height:1.6;color:#3b3f33}
.nf-links{display:flex;flex-wrap:wrap;gap:4px 22px;margin-top:14px;font-size:16px}
.nf-links a{display:inline-flex;align-items:center;min-height:44px;font-weight:650;text-decoration:underline;text-underline-offset:4px}

/* ── Подвал: тот же, текст крупнее и ссылки удобнее для пальца ── */
.berivel-page .site-footer .footer-top p,.berivel-page .site-footer .footer-bottom,.berivel-page .site-footer .footer-note{font-size:15px;line-height:1.6}
.berivel-page .site-footer .footer-top p{display:block}
.berivel-page .site-footer .footer-top{flex-wrap:wrap;gap:8px 25px}
.berivel-page .site-footer .footer-bottom{display:grid;gap:10px}
.berivel-page .site-footer .footer-legal-links{display:grid;gap:0}
.berivel-page .site-footer .footer-legal-links a,.berivel-page .site-footer .footer-pages a{display:flex;align-items:center;min-height:44px;text-decoration:underline;text-decoration-color:#6f7566;text-underline-offset:4px}
.berivel-page .site-footer .footer-pages{display:flex;flex-wrap:wrap;gap:0 22px;padding-top:14px;font-size:16px;font-weight:650;color:#fff}
.berivel-page .site-footer .footer-note{margin-top:12px;white-space:pre-line}
.berivel-page .site-footer a:focus-visible{outline:3px solid #fff;outline-offset:3px}

@media(min-width:720px){
  .mp{padding-block:14px 76px}
  .mp-section{margin-top:60px}
  .mp-section-row{grid-template-columns:minmax(0,1fr) auto;align-items:end}
  .mp-hero{padding:26px}
  .mp-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nf-actions{grid-template-columns:repeat(3,minmax(0,max-content));justify-content:start}
  .berivel-page .nf-actions .button{gap:28px}
  .mp-models{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  .mp-columns,.mp-cta,.mp-contact{margin-top:60px}
  .mp-card,.mp-term{padding:28px}
  .mp-terms{grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
  .mp-cta,.mp-contact{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:28px;padding:36px 38px}
  .mp-cta-actions,.mp-contact-actions{grid-auto-flow:column;align-items:center;gap:24px}
  .berivel-page .mp-cta .button,.berivel-page .mp-contact .button{width:auto;gap:32px}
  .nf-card{padding:40px}
  .berivel-page .site-footer .footer-bottom{grid-template-columns:minmax(0,1fr) auto;gap:8px 40px;align-items:start}
  .berivel-page .site-footer .footer-legal-links{justify-items:end;text-align:right}
}
@media(min-width:960px){
  .mp-hero{grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);grid-template-rows:auto 1fr;grid-template-areas:"photo top" "photo text";gap:18px 44px;align-items:start;padding:30px}
  .mp-hero-top{grid-area:top;padding-top:6px}
  .mp-photo{grid-area:photo}
  .mp-hero-text{grid-area:text}
  .mp-columns{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);align-items:start}
  .mp-columns>:only-child{grid-column:1/-1}
  .mp-models{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){.mp-model{transition:none}}
