/* АвтоДизель — общие стили сайта. Подключается со всех страниц (index + страницы услуг). */
/* ===== Шрифты (самохостинг, F10): latin + cyrillic, Oswald 500/600/700, Inter 400/500/600/700 ===== */
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/inter-400-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Inter';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/inter-400-latin.woff2) format('woff2');unicode-range:U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B7, U+00BB, U+2013, U+2014, U+203A}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/inter-500-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Inter';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/inter-500-latin.woff2) format('woff2');unicode-range:U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B7, U+00BB, U+2013, U+2014, U+203A}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/inter-600-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Inter';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/inter-600-latin.woff2) format('woff2');unicode-range:U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B7, U+00BB, U+2013, U+2014, U+203A}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/inter-700-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Inter';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/inter-700-latin.woff2) format('woff2');unicode-range:U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B7, U+00BB, U+2013, U+2014, U+203A}
@font-face{font-family:'Oswald';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/oswald-500-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Oswald';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/oswald-500-latin.woff2) format('woff2');unicode-range:U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B7, U+00BB, U+2013, U+2014, U+203A}
@font-face{font-family:'Oswald';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/oswald-700-cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Oswald';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/oswald-700-latin.woff2) format('woff2');unicode-range:U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B7, U+00BB, U+2013, U+2014, U+203A}
:root{
  /* высота шапки: на десктопе выше, потому что под кнопкой телефона стоит график работы */
  --hdr:72px;
  --bg:#f4f6f9;
  --bg2:#ffffff;
  --surface:#ffffff;
  --surface2:#eef1f6;
  --line:#dde3ec;
  --text:#171d26;
  --muted:#5a6577;
  /* Красные: у каждого своя роль, менять по отдельности.
     --brand-red — знак и логотип (совпадает с цветом в logo.svg)
     --accent      — заливки, свечения, рамки: текст на нём не пишем
     --accent2     — текст и ссылки на светлом: 4,8:1
     --accent-strong — тёмный конец градиента кнопок: белый текст 5,6:1 */
  --accent:#e63927;
  --accent2:#cf2d1a;           /* текстовый красный: 4.8:1 на светлом фоне */
  --accent-strong:#c62b17;     /* тёмный конец градиента кнопок: белый текст 5.6:1 */
  --tag-ink:#ba2817;           /* текст плашек на розовой подложке: 4.8:1 */
  --brand-navy:#1b3c72;
  --brand-red:#e1251b;
  --amber:#a16400;             /* цены: 4.8:1 на белом */
  --radius:14px;
  --space-1:8px;--space-2:16px;--space-3:24px;--space-4:32px;--space-5:48px;--space-6:64px;--space-7:96px;
}
*{margin:0;padding:0;box-sizing:border-box}
button,input,select,textarea{font:inherit}  /* без этого кнопки рисуются системным Arial */
html{scroll-behavior:smooth}
body{background:var(--bg);color:var(--text);font-family:'Inter',system-ui,sans-serif;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
picture{display:contents}
h1,h2,h3,h4{font-family:'Oswald',sans-serif;line-height:1.2;text-transform:uppercase;letter-spacing:.02em}
img,svg{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
/* a11y: видимый фокус для навигации с клавиатуры */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent2);outline-offset:2px}
/* a11y: ссылка «Перейти к содержимому», видна только при фокусе */
.skip-link{position:absolute;left:12px;top:-56px;z-index:200;background:var(--accent-strong);color:#fff;padding:10px 18px;border-radius:8px;font-weight:600;text-decoration:none;transition:top .18s ease}
.skip-link:focus{top:12px}
main[tabindex]:focus{outline:none}
.container{max-width:1560px;margin:0 auto;padding:0 40px}
@media(max-width:700px){.container{padding:0 20px}}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:14px 28px;border-radius:10px;font-weight:600;font-size:16px;cursor:pointer;border:none;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.btn:active{transform:scale(.97)}
.btn-primary{background:linear-gradient(135deg,var(--accent2) 0%,var(--accent-strong) 100%);color:#fff;box-shadow:0 8px 24px rgba(230,57,39,.35)}
.btn-primary:hover{box-shadow:0 12px 32px rgba(230,57,39,.5);transform:translateY(-2px)}
.btn-ghost{background:transparent;color:var(--text);border:1px solid var(--line)}
.btn-ghost:hover{border-color:var(--muted);background:var(--surface)}
.tag{display:inline-flex;align-items:center;gap:8px;background:rgba(230,57,39,.12);border:1px solid rgba(230,57,39,.35);color:var(--tag-ink);border-radius:999px;padding:6px 16px;font-size:14px;font-weight:600;text-transform:uppercase;letter-spacing:.08em}
section{padding:var(--space-7) 0}
.sec-head{max-width:960px;margin-bottom:var(--space-5)}
.sec-head h2{font-size:clamp(28px,4vw,42px);margin:14px 0 12px}
.sec-head p{color:var(--muted);font-size:17px;max-width:660px}  /* ~70 символов в строке */
.sub-head{font-size:clamp(21px,2.4vw,27px);margin:var(--space-6) 0 var(--space-3)}
.accent{color:var(--accent2)}

/* reveal animation
   Прячем блоки ТОЛЬКО там, где есть JS (@media scripting) — иначе при отключённом
   скрипте страница ниже хиро остаётся пустой. Страховка на случай, если app.js не
   загрузился: через 2 с блоки проявляются сами; app.js, стартовав, снимает её (.io-ready). */
@media (scripting: enabled){
  .reveal{opacity:0;transform:translateY(24px);transition:opacity .4s ease,transform .4s ease;
    animation:reveal-safety 1ms linear 2s forwards}
  .io-ready .reveal{animation:none}
}
@keyframes reveal-safety{to{opacity:1;transform:none}}
.reveal.in{opacity:1;transform:none}
/* лесенка: соседние карточки в ряду появляются не разом, а с задержкой 60 мс */
.cards .reveal:nth-child(2),.problems .reveal:nth-child(2),.steps .reveal:nth-child(2),.locations .reveal:nth-child(2){transition-delay:.06s}
.cards .reveal:nth-child(3),.problems .reveal:nth-child(3),.steps .reveal:nth-child(3),.locations .reveal:nth-child(3){transition-delay:.12s}
.cards .reveal:nth-child(4),.problems .reveal:nth-child(4),.steps .reveal:nth-child(4){transition-delay:.18s}
.cards .reveal:nth-child(5),.problems .reveal:nth-child(5){transition-delay:.24s}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none;transition:none;transition-delay:0s}
  *{animation:none!important;transition:none!important}
}

@media(min-width:641px){:root{--hdr:88px}}

/* ===== Header ===== */
header{position:fixed;inset:0 0 auto 0;z-index:100;background:rgba(255,255,255,.88);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.nav{display:flex;align-items:center;justify-content:space-between;height:var(--hdr);gap:16px}
.logo{display:flex;align-items:center;gap:0;font-family:'Oswald';font-size:22px;font-weight:700;text-transform:uppercase;color:var(--brand-navy)}
.logo img{width:38px;height:38px;flex:none;margin-right:12px}
.logo b{color:var(--brand-red);font-weight:700}
.nav-links{display:flex;gap:28px;font-size:15px;font-weight:500;margin:0 auto}
.nav-links a{color:var(--muted);transition:color .2s}
.nav-links a:hover{color:var(--text)}
/* текущая страница в меню: цветом не ограничиваемся — добавляем вес и подчёркивание */
.nav-links > a[aria-current="page"]{color:var(--text);font-weight:600;box-shadow:inset 0 -2px 0 var(--accent2)}
.dropdown a[aria-current="page"]{background:var(--surface2);color:var(--accent2);font-weight:600}
/* на странице услуги подсвечиваем и сам пункт «Услуги» — иначе в свёрнутом меню не видно, где ты */
.nav-toggle.is-current{color:var(--text);font-weight:600;box-shadow:inset 0 -2px 0 var(--accent2)}
/* Выпадающее меню «Услуги» (CSS-only: hover + focus-within) */
.nav-item{position:relative;display:flex;align-items:center}
.nav-toggle{display:inline-flex;align-items:center;gap:5px;color:var(--muted);cursor:pointer;transition:color .2s}
.nav-toggle:hover{color:var(--text)}
.nav-toggle svg{flex:none;transition:transform .2s}
.dropdown{position:absolute;top:100%;left:-14px;margin-top:14px;min-width:262px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:8px;box-shadow:0 18px 44px rgba(0,0,0,.35);display:flex;flex-direction:column;gap:2px;opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .18s ease,transform .18s ease,visibility .18s;z-index:120}
.dropdown::before{content:"";position:absolute;top:-14px;left:0;right:0;height:14px}
.nav-item:hover .dropdown,.nav-item:focus-within .dropdown{opacity:1;visibility:visible;transform:translateY(0)}
.nav-item:hover .nav-toggle svg,.nav-item:focus-within .nav-toggle svg{transform:rotate(180deg)}
.nav-item .dropdown a{padding:11px 14px;border-radius:8px;color:var(--text);font-size:14px;white-space:nowrap;transition:background .15s,color .15s}
.nav-item .dropdown a:hover{background:var(--surface2);color:var(--accent2)}
@media(max-width:1200px){
  .nav-item{display:block;width:100%}
  .nav-toggle{width:100%;justify-content:space-between}
  .dropdown{position:static;opacity:1;visibility:visible;transform:none;min-width:0;background:transparent;border:none;box-shadow:none;overflow:hidden;max-height:0;margin:0;padding:0 0 0 14px;transition:max-height .25s ease}
  .dropdown::before{display:none}
  .nav-item.open .dropdown{max-height:340px;margin:12px 0 0}
  .nav-item:hover .nav-toggle svg,.nav-item:focus-within .nav-toggle svg{transform:none}
  .nav-item.open .nav-toggle svg{transform:rotate(180deg)}
}
.nav-phone{display:flex;flex-direction:column;align-items:stretch;gap:6px;line-height:1.3}
.nav-phone a{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--accent2) 0%,var(--accent-strong) 100%);color:#fff;font-family:'Oswald';font-size:18px;font-weight:700;white-space:nowrap;padding:9px 18px;border-radius:9px;box-shadow:0 6px 18px rgba(230,57,39,.28);transition:transform .2s ease,box-shadow .2s ease}
.nav-phone a:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(230,57,39,.42)}
/* график работы: две строки ровно по ширине кнопки телефона */
.nav-hours{display:grid;grid-template-columns:auto auto;align-items:baseline;justify-content:space-between;
  gap:2px 12px;margin:0;padding:0 3px;line-height:1.2}
.nav-hours dt{font-size:14px;font-weight:500;color:var(--muted)}
.nav-hours dd{margin:0;font-size:14px;font-weight:600;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}
/* иконка внутри — svg, а он в общем сбросе display:block и text-align его не центрирует:
   поэтому кнопка — flex с центровкой по обеим осям */
.burger{display:none;align-items:center;justify-content:center;padding:0;background:none;border:1px solid var(--line);border-radius:8px;width:44px;height:44px;color:var(--text);font-size:20px;cursor:pointer}
@media(max-width:1200px){
  /* меню не должно уходить за экран: в ландшафте на телефоне высоты меньше, чем список */
  .nav-links{display:none;position:absolute;top:var(--hdr);left:0;right:0;background:var(--bg2);flex-direction:column;padding:20px;gap:18px;border-bottom:1px solid var(--line);
    max-height:calc(100vh - var(--hdr));max-height:calc(100dvh - var(--hdr));overflow-y:auto;overscroll-behavior:contain}
  .nav-links.open{display:flex}
  .burger{display:inline-flex}
}
@media(max-width:640px){
  .nav-hours{display:none}
  .nav-phone a{font-size:14px;padding:8px 14px;box-shadow:none}
  .logo{font-size:18px}
  .logo img{width:30px;height:30px;margin-right:8px}
}

/* ===== Hero ===== */
.hero{position:relative;min-height:85vh;min-height:85svh;display:flex;align-items:flex-start;padding:calc(var(--hdr) + 40px) 0 80px;overflow:hidden;background:
  radial-gradient(900px 500px at 80% 10%,rgba(230,57,39,.08),transparent 60%),
  radial-gradient(700px 400px at 10% 90%,rgba(246,168,33,.06),transparent 60%),
  var(--bg)}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:72% center;z-index:0}
/* вертикальные кадры героя: только телефоны, десктоп не затрагивается */
@media(max-width:700px){.hero-bg.m-frame{object-position:center center}}
.hero::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:
  linear-gradient(90deg,rgba(8,10,13,.94) 0%,rgba(8,10,13,.8) 34%,rgba(8,10,13,.42) 62%,rgba(8,10,13,.28) 100%),
  linear-gradient(0deg,rgba(8,10,13,.9) 0%,rgba(8,10,13,.15) 45%,transparent 72%)}
.hero>.container{position:relative;z-index:2;width:100%}  /* .hero — флекс: без width:100% коробка ужимается по контенту и уезжает в центр */
.hero-content{max-width:780px;margin-right:auto}
/* на фото плашка читается только светлым текстом: тёмно-красный давал 2,6:1 */
.hero .tag{margin-bottom:24px;color:#ffe6e1;background:rgba(10,12,16,.72);border-color:rgba(255,164,150,.55);backdrop-filter:blur(2px)}
.hero h1{font-size:clamp(40px,5.5vw,66px);line-height:1.05;letter-spacing:-0.01em;font-weight:700;margin:0 0 24px;color:#fff;max-width:620px}
.hero h1 .accent{display:block;font-size:1.16em;letter-spacing:.005em;margin:2px 0 4px}
.hero p.lead{color:rgba(255,255,255,.85);font-size:17px;line-height:1.75;max-width:620px;margin:0 0 24px}
.hero-cta{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:32px}
.hero-stats{display:flex;gap:48px;flex-wrap:wrap}
.hero-stats .stat{flex:1;min-width:160px;padding-top:24px;border-top:1px solid rgba(255,255,255,.12)}
.stat b{font-family:'Oswald';font-size:38px;line-height:1;color:var(--accent2)}
.stat span{display:block;color:var(--muted);font-size:14px;margin-top:8px;line-height:1.5}
/* кнопка «Смотреть видео» — в одном ряду с кнопками героя */
.hero-video{display:inline-flex;align-items:center;gap:14px;min-height:52px;padding:5px 6px 5px 22px;
  border:1px solid rgba(255,255,255,.3);border-radius:10px;background:rgba(255,255,255,.04);
  color:#fff;text-decoration:none;transition:border-color .25s ease,background .25s ease}
.hero-video:hover{border-color:rgba(255,255,255,.55);background:rgba(255,255,255,.09)}
.hv-txt{font-family:'Oswald';font-size:16px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;line-height:1;white-space:nowrap}
.hv-play{flex:none;width:40px;height:40px;border-radius:50%;border:2px solid var(--accent);color:#fff;
  display:flex;align-items:center;justify-content:center;padding-left:4px;
  transition:background .25s ease,transform .25s ease,box-shadow .25s ease}
.hero-video:hover .hv-play{background:linear-gradient(135deg,var(--accent),var(--accent2));transform:scale(1.09);box-shadow:0 10px 26px rgba(230,57,39,.45)}
.hero-video:active .hv-play{transform:scale(1.02)}
.hero .stat span{color:rgba(255,255,255,.72)}
.hero .btn-ghost{color:#fff;border-color:rgba(255,255,255,.42);background:rgba(255,255,255,.05)}
.hero .btn-ghost:hover{border-color:#fff;background:rgba(255,255,255,.14)}
@media(max-width:900px){.hero{min-height:auto;padding:calc(var(--hdr) + 48px) 0 64px}.hero::after{background:linear-gradient(0deg,rgba(8,10,13,.94) 0%,rgba(8,10,13,.72) 55%,rgba(8,10,13,.55) 100%)}.hero-content{max-width:100%}.hero-stats{gap:32px}.hero-cta{margin-bottom:48px}.hero h1 .accent{font-size:1.12em}}

/* ===== trust bar ===== */
.trust{background:var(--bg2);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:26px 0}
.trust .container{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap}
.trust-item{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:15px}
.trust-item svg{width:34px;height:34px;flex:none}
.trust-item b{color:var(--text);display:block;font-size:15px}

/* ===== services ===== */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:28px;display:flex;flex-direction:column;gap:14px;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease}
.card:hover{transform:translateY(-6px);border-color:rgba(230,57,39,.5);box-shadow:0 18px 40px rgba(23,35,58,.12)}
.card .art{background:var(--surface);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.card .art img{width:100%;height:220px;object-fit:cover;object-position:center;box-sizing:border-box}
.card .art img.art-pad{object-fit:contain;padding:10px}
.photo-stack{position:relative;z-index:1}
.ph-main{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:16px;border:1px solid var(--line);box-shadow:0 18px 44px rgba(23,35,58,.18)}
.ph-sub{position:absolute;left:-20px;bottom:-24px;width:180px;height:150px;object-fit:cover;border-radius:12px;border:3px solid #fff;box-shadow:0 18px 44px rgba(23,35,58,.18);background:#fff}
.ph-badge{position:absolute;right:14px;top:14px;background:rgba(12,14,17,.8);backdrop-filter:blur(6px);border:1px solid var(--line);border-radius:8px;padding:8px 14px;font-size:13px;color:var(--text)}
.equip-cap{color:var(--muted);font-size:14px;margin-top:12px;text-align:center}
.card h3{font-size:20px}
.card h3 a{color:inherit;text-decoration:none;transition:color .2s}
.card h3 a:hover{color:var(--accent2)}
/* Хлебные крошки на страницах услуг */
.crumbs{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px;color:var(--muted);margin-bottom:22px}
.crumbs a{display:inline-flex;align-items:center;gap:6px;color:var(--muted);transition:color .2s}
.crumbs a:hover{color:var(--accent2)}
.crumbs svg{flex:none}
.crumbs .sep{color:var(--muted);opacity:.55}
.crumbs .current{color:var(--text);font-weight:500}
/* крошки внутри тёмного hero страницы услуги */
.hero .crumbs{color:rgba(255,255,255,.5)}
.hero .crumbs a{color:rgba(255,255,255,.82)}
.hero .crumbs a:hover{color:var(--accent2)}
.hero .crumbs .sep{color:rgba(255,255,255,.35)}
.hero .crumbs .current{color:#fff}
.card ul{list-style:none;color:var(--muted);font-size:15px;display:flex;flex-direction:column;gap:8px}
.card ul li{display:flex;gap:10px;align-items:flex-start}
.card ul li::before{content:"";width:7px;height:7px;border-radius:2px;background:var(--accent);margin-top:8px;flex:none}
.card .price{margin-top:auto;padding-top:14px;border-top:1px dashed var(--line);display:flex;justify-content:space-between;align-items:center}
.card .price b{font-family:'Oswald';font-size:20px;color:var(--amber)}
.card .price a{color:var(--accent2);font-size:14px;font-weight:600}
/* пять карточек в трёх колонках: последний ряд по центру, а не с дыркой справа */
@media(min-width:961px){
  .cards:has(> .card:nth-child(5):last-child){grid-template-columns:repeat(6,1fr)}
  .cards:has(> .card:nth-child(5):last-child) > .card{grid-column:span 2}
  .cards:has(> .card:nth-child(5):last-child) > .card:nth-child(4){grid-column:2/span 2}
}
@media(max-width:960px){.cards{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.cards{grid-template-columns:1fr}}

/* ===== brands ===== */
.brands{display:flex;gap:16px;flex-wrap:wrap;margin-top:28px}
.brand{font-family:'Oswald';font-size:20px;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);border:1px solid var(--line);border-radius:10px;padding:12px 26px;background:var(--surface)}
.brand.hl{color:var(--text);border-color:rgba(230,57,39,.55);background:linear-gradient(135deg,rgba(230,57,39,.14),transparent)}

/* ===== prices ===== */
.price-wrap{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
  max-width:820px}  /* во всю ширину экрана цена уезжает от названия работы */
.price-table{width:100%;border-collapse:collapse}
.price-table th{padding:13px 24px;border-bottom:1px solid var(--line);text-align:left;
  font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.price-table th:last-child{text-align:right}
.price-table td{padding:16px 24px;border-bottom:1px solid var(--line);font-size:15px}
.price-table tr:last-child td{border-bottom:none}
.price-table td:last-child{text-align:right;font-family:'Oswald';font-size:17px;color:var(--amber);white-space:nowrap;font-variant-numeric:tabular-nums}
.price-table tr:hover td{background:rgba(23,35,58,.03)}
.price-note{color:var(--muted);font-size:14px;margin-top:16px}
.price-note .price-all{color:var(--accent2);font-weight:600}
.price-pane{display:none}
.price-pane.active{display:block}
.price-group{font-size:16px;margin:28px 0 0;padding:18px 24px;background:var(--surface2);border-bottom:1px solid var(--line)}
.price-wrap .price-group:first-child{margin-top:0}

/* ===== problems ===== */
.problems{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:18px}
.problem{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:22px;transition:border-color .25s}
.problem:hover{border-color:rgba(246,168,33,.5)}
.problem .num{font-family:'Oswald';font-size:30px;color:var(--accent2);opacity:.9}
.problem h3{font-size:16px;margin:8px 0 6px}
.problem p{color:var(--muted);font-size:14px}

/* ===== переиспользуется на странице ходовой части (equip-item/equip-cap) ===== */
.equip-item{display:flex;gap:16px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:20px}
.equip-item svg{width:44px;height:44px;flex:none;margin-top:2px}
.equip-item b{display:block;margin-bottom:4px}
.equip-item span{color:var(--muted);font-size:15px}

/* ===== steps ===== */
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;counter-reset:step}
.step{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:24px;position:relative}
.step::before{counter-increment:step;content:"0" counter(step);font-family:'Oswald';font-size:42px;color:transparent;-webkit-text-stroke:1.5px var(--accent);display:block;margin-bottom:10px}
.step h3,.step h4{font-size:16px;margin-bottom:6px}
.step p{color:var(--muted);font-size:14px}
@media(max-width:960px){.steps{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.steps{grid-template-columns:1fr}}

/* ===== corporate ===== */
.corp{background:linear-gradient(135deg,#fff 0%,#eef1f6 100%);border:1px solid var(--line);border-radius:var(--radius);padding:44px;display:grid;grid-template-columns:1.2fr .8fr;gap:36px;align-items:center}
.corp h2{font-size:26px;margin-bottom:12px}
.corp p{color:var(--muted)}
.corp ul{list-style:none;margin-top:16px;color:var(--muted);font-size:15px;display:flex;flex-direction:column;gap:8px}
.corp ul li{display:flex;gap:10px}
.corp ul li::before{content:"✓";color:var(--amber);font-weight:700}
@media(max-width:860px){.corp{grid-template-columns:1fr}}
@media(max-width:560px){.corp{padding:24px}}
/* Скачивание документов (корпоративным клиентам) */
.doc-downloads{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}
.doc-btn{display:flex;align-items:center;gap:16px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:18px 20px;text-decoration:none;transition:border-color .2s,transform .2s,box-shadow .2s}
.doc-btn:hover{border-color:var(--accent);transform:translateY(-2px);box-shadow:0 14px 32px rgba(0,0,0,.18)}
.doc-btn .doc-ic{flex:none;width:46px;height:46px;border-radius:10px;background:rgba(230,57,39,.12);display:flex;align-items:center;justify-content:center}
.doc-btn .doc-ic svg{width:24px;height:24px}
.doc-btn .doc-txt{flex:1;min-width:0;display:flex;flex-direction:column}
.doc-btn .doc-txt b{color:var(--text);font-size:15px;line-height:1.3}
.doc-btn .doc-txt span{font-size:14px;color:var(--muted)}
.doc-btn .doc-dl{flex:none;color:var(--accent2);transition:transform .2s}
.doc-btn:hover .doc-dl{transform:translateY(3px)}
@media(max-width:560px){.doc-downloads{grid-template-columns:1fr}}

/* ===== contacts ===== */
.locations{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.loc{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:28px;display:flex;flex-direction:column;gap:10px;color:inherit;text-decoration:none;transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease}
.loc h3{font-size:18px;color:var(--accent2)}
.loc .addr{font-weight:600;font-size:17px}
.loc .what{color:var(--muted);font-size:14px}
.loc .tel{display:flex;align-items:center;gap:9px;font-family:'Oswald';font-size:22px;margin-top:6px;color:var(--text);transition:color .2s ease}
.loc .tel svg{flex:none;color:var(--accent);transition:transform .2s ease}
.loc .hours{color:var(--muted);font-size:14px;border-top:1px dashed var(--line);padding-top:12px;margin-top:auto}
/* карточка целиком — кнопка звонка */
.loc-cta{font-size:14px;font-weight:600;color:var(--accent2);opacity:0;transform:translateY(-4px);transition:opacity .2s ease,transform .2s ease}
.loc:hover{border-color:var(--accent2);transform:translateY(-4px);box-shadow:0 16px 36px rgba(23,35,58,.14)}
.loc:hover .tel{color:var(--accent2)}
.loc:hover .tel svg{transform:scale(1.12)}
.loc:hover .loc-cta{opacity:1;transform:none}
.loc:active{transform:translateY(-1px)}
@media(hover:none){.loc-cta{opacity:1;transform:none}}
@media(max-width:900px){.locations{grid-template-columns:1fr}}

/* ===== Map ===== */
.map-block{margin-top:var(--space-5)}
.map-title{font-size:20px;color:var(--accent2);margin-bottom:6px}
.map-sub{color:var(--muted);font-size:15px;margin-bottom:20px;max-width:640px}
.map-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.map-tab{display:flex;flex-direction:column;gap:2px;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px 18px;cursor:pointer;color:var(--text);transition:border-color .2s,background .2s,transform .15s}
.map-tab b{font-size:15px}
.map-tab span{font-size:14px;color:var(--muted)}
.map-tab:hover{border-color:var(--accent2);transform:translateY(-1px)}
.map-tab.is-active{border-color:var(--accent);background:rgba(230,57,39,.10)}
.map-tab.is-active span{color:var(--tag-ink)}
.map-note{color:var(--muted);font-size:14px;margin-bottom:16px;min-height:20px}
.map-frame{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;line-height:0;box-shadow:0 20px 50px rgba(0,0,0,.35)}
.map-frame iframe{display:block;width:100%;height:420px}
.map-route{display:inline-flex;align-items:center;margin-top:18px;font-weight:600;color:var(--accent2);text-decoration:none}
.map-route:hover{color:var(--accent)}
@media(max-width:600px){.map-frame iframe{height:340px}}

/* ===== CTA form ===== */
.cta{background:
  radial-gradient(700px 400px at 85% 20%,rgba(230,57,39,.08),transparent 60%),
  var(--bg2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.cta-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.cta form{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:32px;display:flex;flex-direction:column;gap:16px}
.field label{display:block;font-size:14px;font-weight:600;margin-bottom:6px}
.field input,.field select{width:100%;min-height:48px;background:#fff;border:1px solid var(--line);border-radius:10px;color:var(--text);padding:12px 14px;font-size:16px;font-family:inherit}
.field input:focus,.field select:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:transparent}
.cta small{color:var(--muted)}
.form-ok{display:none;background:rgba(28,124,68,.08);border:1px solid rgba(28,124,68,.4);color:#1c7c44;border-radius:10px;padding:14px;font-size:15px}
@media(max-width:900px){.cta-grid{grid-template-columns:1fr}}

/* ===== footer ===== */
footer{padding:48px 0;color:var(--muted);font-size:14px}
.foot{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;align-items:center}
.foot .socials{display:flex;gap:12px}
.foot .socials a{width:44px;height:44px;border:1px solid var(--line);border-radius:10px;display:flex;align-items:center;justify-content:center;transition:border-color .2s}
.foot .socials a:hover{border-color:var(--accent)}

/* floating call button (mobile) */
.call-fab{position:fixed;right:calc(16px + env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom));
  transition:opacity .2s ease,transform .2s ease;z-index:90;display:none;width:60px;height:60px;border-radius:50%;background:linear-gradient(135deg,var(--accent),var(--accent2));box-shadow:0 10px 30px rgba(230,57,39,.5);align-items:center;justify-content:center}
@media(max-width:760px){
  .call-fab{display:flex}
  /* рядом с блоком контактов кнопка не нужна — там и так три телефона, а она перекрывает карточки */
  .call-fab.is-hidden{opacity:0;transform:scale(.8);pointer-events:none}
  /* запас снизу, чтобы последняя строка подвала не оказалась под кнопкой */
  footer{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
}

/* footer: строка ссылок (копирайт + политика) */
.legal-links{margin-top:24px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:14px}
.legal-links a{color:var(--muted);text-decoration:underline;text-underline-offset:2px}
.legal-links a:hover{color:var(--accent2)}

/* ===== юридическая страница (политика) ===== */
.legal-hero{padding:calc(var(--hdr) + 32px) 0 24px}
.legal-hero h1{font-size:clamp(28px,4vw,42px);margin:14px 0 8px}
.legal-upd{color:var(--muted);font-size:14px}
.legal{padding:24px 0 72px}
.legal-body{max-width:680px;font-size:16px;line-height:1.7}  /* ~75 символов в строке */
.legal-body h2{font-size:20px;margin:32px 0 12px}
.legal-body p{margin-bottom:14px;color:var(--text)}
.legal-body ul{list-style:none;display:flex;flex-direction:column;gap:10px;margin:0 0 14px}
.legal-body ul li{position:relative;padding-left:20px;color:var(--text)}
.legal-body ul li::before{content:"";position:absolute;left:0;top:10px;width:7px;height:7px;border-radius:2px;background:var(--accent)}
.legal-body a{color:var(--accent2);text-decoration:underline;text-underline-offset:2px}
.legal-contacts{margin-top:36px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:22px}
.legal-contacts p{margin-bottom:6px}

/* ===== куки-баннер ===== */
/* ── баннер cookie: тёмная компактная карточка ──
   Цвет — чернила сайта (--text), иконка — в градиенте кнопки звонка. На телефоне текст
   и кнопки в две строки, высота ~130px вместо прежних ~220px. */
.cookie-bar{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom));z-index:120;
  width:min(880px,calc(100% - 32px));transform:translateX(-50%);
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px 16px;
  padding:14px 14px 14px 16px;border-radius:16px;
  background:var(--text);border:1px solid rgba(255,255,255,.12);
  box-shadow:0 20px 50px rgba(10,14,20,.45);  /* фон сплошной: сквозь полупрозрачный просвечивали кнопки обложки */
  animation:cookie-in .35s cubic-bezier(.2,.8,.2,1) both}
.cookie-bar.is-leaving{animation:cookie-out .2s ease-in both}
@keyframes cookie-in{from{opacity:0;transform:translate(-50%,16px)}to{opacity:1;transform:translateX(-50%)}}
@keyframes cookie-out{to{opacity:0;transform:translate(-50%,12px)}}
.cookie-ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:#fff;
  background:linear-gradient(135deg,var(--accent),var(--accent-strong));box-shadow:0 6px 16px rgba(230,57,39,.35)}
.cookie-ic svg{width:22px;height:22px}
.cookie-bar p{margin:0;font-size:14px;line-height:1.45;color:#c9d1dc}
.cookie-bar a{color:#fff;text-decoration:underline;text-decoration-color:rgba(255,255,255,.45);text-underline-offset:3px}
.cookie-bar a:hover{text-decoration-color:#fff}
.cookie-actions{display:flex;gap:8px}
.cookie-btn{min-height:40px;padding:8px 18px;border-radius:10px;font-size:14px;font-weight:600;line-height:1.2;white-space:nowrap;cursor:pointer;
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease,transform .15s ease}
.cookie-btn:active{transform:scale(.97)}
.cookie-btn:focus-visible{outline:2px solid #fff;outline-offset:2px}
.cookie-accept{border:none;color:#fff;background:linear-gradient(135deg,var(--accent2),var(--accent-strong));box-shadow:0 6px 18px rgba(230,57,39,.35)}
.cookie-accept:hover{box-shadow:0 8px 24px rgba(230,57,39,.55)}
.cookie-decline{background:transparent;color:#e8ecf2;border:1px solid rgba(255,255,255,.22)}
.cookie-decline:hover{border-color:rgba(255,255,255,.5);background:rgba(255,255,255,.06)}
@media(max-width:640px){
  .cookie-bar{bottom:calc(12px + env(safe-area-inset-bottom));width:calc(100% - 24px);
    grid-template-columns:auto 1fr;gap:10px 12px;padding:12px}
  .cookie-ic{width:34px;height:34px;border-radius:10px}
  .cookie-ic svg{width:19px;height:19px}
  .cookie-bar p{font-size:13px;line-height:1.4}
  .cookie-actions{grid-column:1/-1}
  .cookie-btn{flex:1;padding:8px 12px}
}
/* на пальцах — не меньше 44px по высоте */
@media(pointer:coarse){.cookie-btn{min-height:44px}}

/* ===== видео с отложенной загрузкой (грузим YouTube только по клику) ===== */
.video-wrap{max-width:900px;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);box-shadow:0 18px 44px rgba(23,35,58,.14)}
.video-facade{position:relative;display:block;width:100%;padding:0;border:0;background:none;cursor:pointer;line-height:0}
.video-facade img{width:100%;height:auto;display:block;transition:transform .4s ease,filter .3s ease}
.video-facade:hover img{transform:scale(1.03);filter:brightness(.92)}
.video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:86px;height:86px;border-radius:50%;
  background:linear-gradient(135deg,var(--accent),var(--accent2));box-shadow:0 12px 34px rgba(230,57,39,.45);
  display:flex;align-items:center;justify-content:center;padding-left:5px;transition:transform .25s ease}
.video-facade:hover .video-play{transform:translate(-50%,-50%) scale(1.08)}
.video-label{position:absolute;left:0;right:0;bottom:0;padding:44px 22px 16px;text-align:left;color:#fff;font-size:15px;font-weight:600;line-height:1.4;
  background:linear-gradient(0deg,rgba(8,10,13,.82),transparent)}
.video-wrap iframe{display:block;width:100%;aspect-ratio:16/9;border:0}
.video-note{color:var(--muted);font-size:14px;margin-top:14px;max-width:900px}
.video-note a{color:var(--accent2);text-decoration:underline;text-underline-offset:2px}


/* ===== Тач-таргеты (К-4) =====
   Мышью хватает 24px (WCAG 2.5.8), пальцем нужно 44px (Apple HIG) / 48dp (Material).
   Ссылки внутри абзацев не трогаем — для них в стандарте есть исключение. */
.card .price a,
.price-note .price-all,
.foot a,
.legal-links a{display:inline-flex;align-items:center;min-height:24px}
.crumbs a,
.loc .tel,
.map-route{min-height:24px}
@media (pointer:coarse){
  .loc-cta{opacity:1;transform:none}  /* на тач-экранах наведения нет — показываем сразу */
  /* телефон и почта отдельной строкой — самая частая цель на телефоне */
  a[href^="tel:"]:not(.loc):not(.btn):not(.tel),
  a[href^="mailto:"]:not(.btn){display:inline-flex;align-items:center;min-height:44px}
  /* внутри абзаца ссылку не растягиваем — для текстовых ссылок в стандарте есть исключение */
  p a[href^="tel:"],p a[href^="mailto:"]{display:inline;min-height:0}
  .logo{min-height:44px}
  .card .price a,
  .price-note .price-all,
  .foot a,
  .legal-links a,
  .crumbs a,
  .loc .tel,
  .map-route,
  .nav-phone a{min-height:44px}
  /* у подвала ссылки идут через <br> — разводим их, чтобы соседние цели не слипались */
  .foot a{padding-block:2px}
}
