/* ОПТДОМ — каталог для оптовых закупщиков. Правится руками, без сборки. */
:root{
  --ink:#101418;
  --ink-2:#3A424C;
  --muted:#6E7681;
  --line:#E6E8EC;
  --line-2:#F0F2F5;
  --bg:#FFFFFF;
  --surface:#F7F8FA;
  --brand:#E63329;          /* только логотип */
  --accent:#2F5D78;
  --accent-2:#F0B429;
  --accent-dark:#24485F;
  --accent-soft:#EDF3F7;
  --ok:#1F7A4D;
  --radius:14px;
  --shadow:0 1px 2px rgba(16,20,24,.04), 0 8px 24px rgba(16,20,24,.06);
  --container:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth; scroll-padding-top:88px}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  font-size:16px; line-height:1.55; -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block}
a{color:inherit; text-decoration:none}
h1,h2,h3{margin:0; line-height:1.15; letter-spacing:-.02em; font-weight:700}
h1{font-size:clamp(23px,2.9vw,32px)}
h2{font-size:clamp(24px,3vw,34px)}
h3{font-size:18px}
p{margin:0}
.container{max-width:var(--container); margin:0 auto; padding:0 24px}
.section{padding:var(--sec-top) 0 var(--sec-bottom); border-top:1px solid var(--line)}
.section--flat{border-top:none}
.section--first{padding-top:44px}
.section--first h1{margin-bottom:4px; font-size:clamp(22px,2.4vw,28px)}
.section__head{display:flex; flex-wrap:wrap; gap:16px; align-items:end; justify-content:space-between; margin-bottom:32px}
.section__sub{color:var(--muted); max-width:640px; margin-top:10px}
.eyebrow{font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--accent); margin-bottom:12px}

/* header */
.header{position:sticky; top:0; z-index:50; background:rgba(255,255,255,.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--line)}
.header__in{display:flex; align-items:center; justify-content:space-between; gap:24px; height:76px}
.logo{display:flex; align-items:baseline; gap:12px; color:var(--ink)}
.logo__svg,.logo__img{height:34px; width:auto; flex-shrink:0; color:var(--ink); display:block}
.logo__svg text{font-family:inherit}
.logo__sub{font-size:12px; font-weight:500; color:var(--muted); white-space:nowrap}
.hcontacts{display:flex; align-items:center; gap:22px}
.hcontacts__col{text-align:right; line-height:1.35}
.hcontacts__phone{font-weight:700; font-size:17px; white-space:nowrap}
.hcontacts__mail{font-size:14px; color:var(--muted); text-decoration:underline; text-decoration-color:var(--line)}
.hcontacts__note{font-size:12px; color:var(--muted)}
.msgs{display:flex; gap:8px}
.msg{width:40px; height:40px; border-radius:11px; display:grid; place-items:center; border:1px solid var(--line); background:#fff; transition:.15s}
.msg:hover{border-color:var(--ink); transform:translateY(-1px)}
.msg svg{width:20px; height:20px}
.msg--phone{display:none}
.burger{display:none}

/* buttons */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:9px; height:50px; padding:0 24px; border-radius:12px; font-weight:600; font-size:15px; border:1px solid transparent; cursor:pointer; transition:.15s; white-space:nowrap; font-family:inherit}
.btn--primary{background:var(--accent); color:#fff}
.btn--primary:hover{background:var(--accent-dark)}
.btn--ghost{background:#fff; border-color:var(--line); color:var(--ink)}
.btn--ghost:hover{border-color:var(--ink)}
.btn--dark{background:var(--ink); color:#fff}
.btn--dark:hover{background:#000}
.btn--sm{height:42px; padding:0 16px; font-size:14px; border-radius:10px}
.btn--full{width:100%}

/* строка кнопок */
.btnrow{display:flex; flex-wrap:wrap; gap:12px; margin-top:28px}
.dot{width:6px; height:6px; border-radius:50%; background:var(--accent)}

/* фильтр каталога */
.filters{display:flex; flex-wrap:wrap; gap:8px; margin:-12px 0 24px}
.filter{display:inline-flex; align-items:center; gap:7px; height:38px; padding:0 15px; border-radius:10px; border:1px solid var(--line); background:#fff; color:var(--ink-2); font:600 14px/1 inherit; font-family:inherit; cursor:pointer; transition:.15s}
.filter span{font-weight:500; font-size:12px; color:var(--muted)}
.filter:hover{border-color:var(--ink)}
.filter.is-on{background:var(--ink); border-color:var(--ink); color:#fff}
.filter.is-on span{color:#9AA1AA}

/* catalog */
.grid{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px}
.card{border:1px solid var(--line); border-radius:var(--radius); background:#fff; display:flex; flex-direction:column; overflow:hidden; transition:.18s}
.card[hidden]{display:none}
.card:hover{box-shadow:var(--shadow); transform:translateY(-2px)}
.card__media{position:relative; aspect-ratio:3/4; background:
  repeating-linear-gradient(135deg,#F4F5F7 0 12px,#EFF1F4 12px 24px);
  display:grid; place-items:center; border-bottom:1px solid var(--line)}
.card__gal{position:absolute; inset:0; display:block}
.card__media img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transition:opacity .12s}
.card__media img.is-on{opacity:1}
.card__dots{position:absolute; left:0; right:0; bottom:9px; display:flex; justify-content:center; gap:5px; pointer-events:none}
.card__dots i{width:5px; height:5px; border-radius:50%; background:#C3C9D0; transition:.15s}
.card__dots i.is-on{background:var(--ink); transform:scale(1.15)}
.pd__media img{width:100%; height:100%; object-fit:cover; border-radius:inherit}
.pd__media:has(img){padding:0}
.card__ph{font-size:12px; color:#9AA1AA; letter-spacing:.04em; text-align:center; padding:0 16px}
.card__body{padding:16px; display:flex; flex-direction:column; gap:12px; flex:1}
.card__meta{font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:-6px}
.card__meta b{color:var(--accent)}
.card__name{font-weight:600; font-size:16px; line-height:1.3}
.card__specs{display:flex; flex-direction:column; gap:5px; font-size:13px; color:var(--muted); margin-top:auto}
.card__specs b{color:var(--ink-2); font-weight:600}
.card__price{display:flex; align-items:baseline; gap:8px; padding-top:12px; border-top:1px solid var(--line-2)}
.card__ask{font-size:15px; font-weight:600; color:var(--accent)}
.card__price b{font-size:22px; letter-spacing:-.02em}
.card__price span{font-size:13px; color:var(--muted)}
.card__actions{display:grid; grid-template-columns:1fr auto; gap:8px}

/* conditions */
.tiles{display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:20px}
.tile{border:1px solid var(--line); border-radius:var(--radius); padding:24px; background:#fff}
.tile h3{margin-bottom:8px}
.tile p{color:var(--muted); font-size:15px}
.tile__num{font-size:13px; font-weight:700; color:var(--accent); margin-bottom:14px}

/* steps */
.steps{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:24px; counter-reset:s}
.step{position:relative; padding-top:22px; border-top:2px solid var(--ink)}
.step__n{font-size:13px; font-weight:700; color:var(--muted); margin-bottom:8px}
.step p{color:var(--muted); font-size:15px; margin-top:6px}

/* about */
.about{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center}
.figures{display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden}
.figure{background:#fff; padding:26px}
.figure b{display:block; font-size:32px; letter-spacing:-.03em; margin-bottom:4px}
.figure span{font-size:14px; color:var(--muted)}

/* faq */
.faq{max-width:820px}
.faq details{border-bottom:1px solid var(--line); padding:20px 0}
.faq summary{cursor:pointer; font-weight:600; font-size:17px; list-style:none; display:flex; justify-content:space-between; gap:20px; align-items:center}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'+'; font-size:22px; color:var(--muted); font-weight:400; line-height:1}
.faq details[open] summary::after{content:'–'}
.faq p{margin-top:12px; color:var(--muted); max-width:700px}

/* form */
.cta{background:#fff; border-top:1px solid var(--line)}
.cta__grid{display:grid; grid-template-columns:.9fr 1.1fr; gap:56px; align-items:start}
.form{background:#fff; border:1px solid var(--line); border-radius:20px; padding:28px}
.field{margin-bottom:16px}
.field label{display:block; font-size:13px; font-weight:600; margin-bottom:7px}
.field input,.field textarea{width:100%; height:50px; padding:0 14px; border:1px solid var(--line); border-radius:11px; font-family:inherit; font-size:15px; background:#fff; color:var(--ink); transition:.15s}
.field textarea{height:100px; padding:13px 14px; resize:vertical}
.field input:focus,.field textarea:focus{outline:none; border-color:var(--ink)}
.row2{display:grid; grid-template-columns:1fr 1fr; gap:16px}
.consent{display:flex; gap:10px; align-items:flex-start; font-size:12.5px; color:var(--muted); margin:18px 0}
.consent input{margin-top:2px; width:16px; height:16px; accent-color:var(--accent); flex-shrink:0}
.consent a{text-decoration:underline}
.contacts-list{display:flex; flex-direction:column; gap:20px; margin-top:28px}
.contacts-list div span{display:block; font-size:13px; color:var(--muted); margin-bottom:3px}
.contacts-list div b{font-size:18px; font-weight:600}

/* заявка (замена корзины) */
.reqbar{position:fixed; left:0; right:0; bottom:0; z-index:60; background:var(--ink); color:#fff; transform:translateY(110%); transition:.25s}
.reqbar.is-open{transform:translateY(0)}
.reqbar__in{display:flex; align-items:center; justify-content:space-between; gap:20px; padding:14px 24px; max-width:var(--container); margin:0 auto}
.reqbar__txt{font-size:15px}
.reqbar__txt b{font-size:16px}
.reqbar__actions{display:flex; gap:10px; align-items:center}
.reqbar__clear{background:none; border:none; color:#9AA1AA; font-size:13px; cursor:pointer; font-family:inherit; text-decoration:underline}
.is-added{background:var(--accent-soft) !important; border-color:var(--accent) !important; color:var(--accent-dark) !important}

/* footer */
.footer{background:var(--ink); color:#fff; padding:56px 0 32px}
.footer a{color:#C9CED5}
.footer a:hover{color:#fff}
.footer__grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:36px; padding-bottom:36px; border-bottom:1px solid #262C33}
.footer h4{font-size:13px; text-transform:uppercase; letter-spacing:.1em; color:#7C848E; margin:0 0 16px; font-weight:600}
.footer ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; font-size:15px}
.footer__legal{margin-top:24px; font-size:13px; color:#7C848E; display:flex; flex-wrap:wrap; gap:8px 24px; justify-content:space-between}
.footer .logo{color:#fff}
.footer .logo__svg{color:#fff}
.footer .logo__sub{color:#8F97A1}
.footer__desc{color:#8F97A1; font-size:14px; margin-top:16px; max-width:280px}

/* product page */
.crumbs{font-size:13px; color:var(--muted); padding:24px 0}
.crumbs a:hover{color:var(--ink); text-decoration:underline}
.pd{display:grid; grid-template-columns:1fr 1fr; gap:48px; padding-bottom:24px}
.pd__media{aspect-ratio:3/4; border:1px solid var(--line); border-radius:20px; background:repeating-linear-gradient(135deg,#F4F5F7 0 12px,#EFF1F4 12px 24px); display:grid; place-items:center; color:#9AA1AA; font-size:13px; text-align:center; padding:24px; overflow:hidden}
.pd__thumbs{display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:12px}
.pd__thumb{cursor:pointer; aspect-ratio:3/4; border:1px solid var(--line); border-radius:12px; background:var(--surface); overflow:hidden}
.pd__thumb img{width:100%; height:100%; object-fit:cover}
.pd__thumb:hover{border-color:var(--ink)}
.pd__thumbs{grid-template-columns:repeat(3,1fr)}
.pd__ask{font-size:20px; font-weight:700; letter-spacing:-.02em}
.pd__asknote{color:var(--muted); font-size:14px; margin:6px 0 16px}
.pd h1{margin-bottom:14px}
.pd__desc{color:var(--ink-2); margin:16px 0 24px}
.pd__list{list-style:none; padding:0; margin:0 0 26px; display:flex; flex-direction:column; gap:10px}
.pd__list li{display:flex; gap:10px; font-size:15px; color:var(--ink-2)}
.pd__list li::before{content:''; width:6px; height:6px; border-radius:50%; background:var(--accent); margin-top:9px; flex-shrink:0}
.pd__buy{border:1px solid var(--line); border-radius:16px; padding:22px; background:var(--surface); margin-bottom:24px}
.tiers{width:100%; border-collapse:collapse; margin-bottom:18px}
.tiers td{padding:9px 0; border-bottom:1px solid var(--line); font-size:15px}
.tiers tr:last-child td{border-bottom:none}
.tiers td:last-child{text-align:right; font-weight:700; font-variant-numeric:tabular-nums}
.pd__actions{display:flex; gap:10px; flex-wrap:wrap}
.spec{width:100%; border-collapse:collapse; margin-top:8px}
.spec td{padding:13px 0; border-bottom:1px solid var(--line); font-size:15px; vertical-align:top}
.spec td:first-child{color:var(--muted); width:44%}
.spec td:last-child{font-weight:500; text-align:right}
.note{background:var(--accent-soft); border:1px solid #D5E3EC; border-radius:12px; padding:16px 18px; font-size:14px; color:#2B4E63; margin:24px 0}

/* legal page */
.legal{max-width:760px; padding:48px 0 72px}
.legal h2{font-size:22px; margin:36px 0 12px}
.legal p,.legal li{color:var(--ink-2); margin-bottom:10px}
.legal ul{padding-left:20px}

@media (max-width:1024px){
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:980px){
  :root{ --sec-top:60px; --sec-bottom:96px; --overlap:44px; --lift:32px }
  .about,.cta__grid,.pd,.footer__grid{grid-template-columns:1fr; gap:36px}
  .pd__media,.pd__thumbs{max-width:480px}
  .footer__grid{gap:32px}
  .section--first{padding-top:36px}
}
@media (max-width:860px){
  .hcontacts{gap:14px}
  .hcontacts__note{display:none}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  .hcontacts__col{display:none}
  .msg--phone{display:grid}
}
@media (max-width:560px){
  .container{padding:0 16px}
  .header__in{height:64px}
  .logo__svg,.logo__img{height:28px}
  .logo__sub{display:none}
  .section--first{padding-top:24px}
  .section__head{margin-bottom:20px}
  .row2{grid-template-columns:1fr}
  .form{padding:20px}
  .reqbar__in{padding:12px 16px; flex-direction:column; align-items:stretch; gap:10px}
  .reqbar__actions .btn{flex:1}
  .header .btn--primary{display:none}
  .msgs{gap:6px}

  /* каталог 2 в ряд: карточка ужимается, чтобы влезть в 163px */
  .grid{gap:12px}
  .card__body{padding:12px; gap:8px}
  .card__name{font-size:13.5px}
  .card__meta{font-size:10px; letter-spacing:.06em}
  .card__specs{font-size:11.5px; gap:3px}
  .card__price{padding-top:10px}
  .card__price b{font-size:18px}
  .card__price span{font-size:11px}
  .card__actions{grid-template-columns:1fr; gap:6px}
  .card__ph{font-size:10px}
  .btn--sm{height:38px; font-size:13px; padding:0 12px}
}


/* ─── анимации ───────────────────────────────────────────────
   Появление при скролле включается только если JS жив (класс .js
   ставится в <head>): иначе контент просто остаётся на месте. */
.js .card,
.js .tile,
.js .figure,
.js .section__head,
.js .faq details,
.js .form,
.js .contacts-list{
  opacity:0; transform:translateY(14px);
  transition:opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1);
}
.js .is-in{opacity:1 !important; transform:none !important}

/* Над героем шапка растворяется в тёмном фоне, чтобы белая полоса
   не резала первый экран; светлой становится вместе с каталогом. */
.header{transition:background .35s, color .35s, border-color .35s, box-shadow .25s}
body:has(.hero) .header:not(.is-stuck){
  background:transparent; backdrop-filter:none; border-bottom-color:rgba(255,255,255,.1);
}
body:has(.hero) .header:not(.is-stuck) .logo,
body:has(.hero) .header:not(.is-stuck) .logo__svg,
body:has(.hero) .header:not(.is-stuck) .nav a{color:#fff}
body:has(.hero) .header:not(.is-stuck) .nav a:hover{color:#9FC6DC}
body:has(.hero) .header:not(.is-stuck) .btn--primary{background:#fff; color:#0B0F12; border-color:#fff}
body:has(.hero) .header:not(.is-stuck) .btn:not(.btn--primary){color:#fff; border-color:rgba(255,255,255,.28); background:transparent}
body:has(.hero) .header:not(.is-stuck) .hcontacts__phone{color:#fff}
body:has(.hero) .header:not(.is-stuck) .hcontacts__mail{color:#C6D0D9; text-decoration-color:rgba(255,255,255,.3)}
body:has(.hero) .header:not(.is-stuck) .hcontacts__note{color:#98A3AD}
body:has(.hero) .header:not(.is-stuck) .msg{
  background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.2); color:#fff;
}
body:has(.hero) .header:not(.is-stuck) .msg:hover{background:rgba(255,255,255,.16); border-color:rgba(255,255,255,.4)}
body:has(.hero) .header:not(.is-stuck) .msg svg{fill:currentColor}
.hero{margin-top:-76px; padding-top:180px}
@media (max-width:980px){ .hero{margin-top:-76px; padding-top:172px} }

/* шапка отделяется тенью, когда страница прокручена */
.header{transition:box-shadow .25s, border-color .25s}
.header.is-stuck{box-shadow:0 4px 20px rgba(16,20,24,.07); border-bottom-color:transparent}

/* фото в карточке чуть приближается при наведении */
.card__media img{transition:opacity .12s, transform .5s cubic-bezier(.22,.61,.36,1)}
.card:hover .card__media img.is-on{transform:scale(1.045)}

/* нажатия и фокус */
.btn:active{transform:translateY(1px)}
.filter:active{transform:translateY(1px)}
.btn:focus-visible,.filter:focus-visible,.field input:focus-visible,.field textarea:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
.faq summary::after{transition:transform .2s}
.faq details[open] summary::after{transform:rotate(180deg)}

/* карточки после фильтра проявляются, а не появляются рывком */
@keyframes cardIn{from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:none}}
.grid.is-filtering .card:not([hidden]){animation:cardIn .35s cubic-bezier(.22,.61,.36,1) both}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
    .js .card,.js .tile,.js .figure,.js .section__head,.js .faq details,
  .js .form,.js .contacts-list{opacity:1; transform:none; transition:none}
  .card:hover .card__media img.is-on{transform:none}
  .grid.is-filtering .card:not([hidden]){animation:none}
  .btn:active,.filter:active{transform:none}
}


/* ─── переходы между страницами (View Transitions API) ───────
   Каталог и страницы товаров — обычные html-файлы. Браузер снимает
   кадр старой страницы, кадр новой и анимирует переход между ними.
   Где API нет (Firefox) — обычная мгновенная навигация, без поломок. */
@view-transition{ navigation:auto }

::view-transition-old(root){ animation:vtOut .22s cubic-bezier(.4,0,1,1) both }
::view-transition-new(root){ animation:vtIn .32s cubic-bezier(.22,.61,.36,1) both }
@keyframes vtOut{ to{ opacity:0; transform:translateY(-8px) } }
@keyframes vtIn{ from{ opacity:0; transform:translateY(14px) } }

/* шапка и панель заявки не мигают — они общие для всех страниц */
.header{ view-transition-name:site-header }
.reqbar{ view-transition-name:req-bar }

/* фото товара перелетает из карточки каталога в карточку товара */
::view-transition-group(product-photo){ animation-duration:.5s; animation-timing-function:cubic-bezier(.22,.61,.36,1) }
::view-transition-old(product-photo),
::view-transition-new(product-photo){ animation:none; mix-blend-mode:normal; height:100%; object-fit:cover }

@media (prefers-reduced-motion: reduce){
  @view-transition{ navigation:none }
}


/* ─── анимации, привязанные к прокрутке ──────────────────────
   animation-timeline: view() — браузер сам считает, насколько
   элемент вошёл в экран, и проигрывает анимацию на эту долю.
   Выполняется в компоновщике, JS не участвует и не тормозит. */

/* полоса прочитанного под шапкой */
.progress{
  position:fixed; inset:0 0 auto 0; height:3px; z-index:60;
  background:var(--accent); transform:scaleX(0); transform-origin:0 50%;
}
@supports (animation-timeline: scroll()){
  .progress{ animation:progressGrow linear both; animation-timeline:scroll(root) }
}
@keyframes progressGrow{ to{ transform:scaleX(1) } }

@supports (animation-timeline: view()){
  /* появление блоков теперь ведёт прокрутка, а не таймер:
     отматываешь назад — блок уезжает обратно */
  .js .card, .js .tile, .js .figure, .js .section__head,
  .js .faq details, .js .form, .js .contacts-list{
    opacity:0; transform:none; transition:none;
    animation:revealUp linear both;
    animation-timeline:view();
    animation-range:entry 0% entry 72%;
  }
  /* карточки в ряду просыпаются не одновременно */
  .js .grid .card:nth-child(4n+2){ animation-range:entry 0% entry 84% }
  .js .grid .card:nth-child(4n+3){ animation-range:entry 0% entry 96% }
  .js .grid .card:nth-child(4n+4){ animation-range:entry 0% entry 108% }

  /* заголовки выезжают из-под собственной линии */
  .js h2, .js .section--first h1{
    animation:headingReveal linear both;
    animation-timeline:view();
    animation-range:entry 10% entry 60%;
  }
}
@keyframes revealUp{
  from{ opacity:0; transform:translateY(64px) scale(.965) }
  to{ opacity:1; transform:none }
}

/* первый экран виден сразу, поэтому прокрутка его не анимирует —
   даём ему собственный въезд при загрузке страницы */
@keyframes pageIn{
  from{ opacity:0; transform:translateY(34px) }
  to{ opacity:1; transform:none }
}
/* pageIn теперь на герое — каталог приезжает слоем */
@keyframes headingReveal{
  from{ opacity:0; clip-path:inset(0 0 105% 0); transform:translateY(28px) }
  to{ opacity:1; clip-path:inset(0 0 -20% 0); transform:none }
}

/* плавное раскрытие вопросов вместо рывка */
@supports (interpolate-size: allow-keywords) and (selector(::details-content)){
  :root{ interpolate-size:allow-keywords }
  .faq details::details-content{
    block-size:0; overflow:hidden;
    transition:block-size .32s cubic-bezier(.22,.61,.36,1), content-visibility .32s allow-discrete;
  }
  .faq details[open]::details-content{ block-size:auto }
}

/* счётчик в блоке цифр */
.figure b{ font-variant-numeric:tabular-nums }

@media (prefers-reduced-motion: reduce){
  /* движение убираем, но не превращаем сайт в мёртвую статику:
     остаётся мягкое проявление без смещений */
  @supports (animation-timeline: view()){
    .js .card, .js .tile, .js .figure, .js .section__head,
    .js .faq details, .js .form, .js .contacts-list{
      animation-name:fadeOnly; animation-range:entry 0% entry 50%;
    }
    .js h2, .js .section--first h1{ animation:none; opacity:1; clip-path:none; transform:none }
    .js .section:not(.section--first) > .container{ animation:none; transform:none }
  }
  .section:not(.section--first)::before{ transform:scaleX(1); animation:none }
  .faq details::details-content{ transition:none }
}
@keyframes fadeOnly{ from{ opacity:0 } to{ opacity:1 } }


/* ─── ритм разделов ──────────────────────────────────────────
   Разделы шли одинаковыми белыми полосами, и прокрутка читалась
   как одна бесконечная страница. Теперь фон чередуется, а граница
   между ними прочерчивается по мере входа раздела в экран. */
.section--tint{
  background:var(--surface);
  border-top-color:transparent;
  position:relative;
}
.section--tint + .section{ border-top-color:transparent }

/* линия-разделитель прочерчивается от центра */
.section:not(.section--first)::before{
  content:''; position:absolute; top:0; left:50%; translate:-50% 0;
  width:100%; max-width:var(--container); height:1px; background:var(--line);
  transform:scaleX(0); transform-origin:50% 50%;
}
.section{ position:relative }
.section--tint::before{ background:#DCE2E8 }

@supports (animation-timeline: view()){
  .section:not(.section--first)::before{
    animation:lineDraw linear both;
    animation-timeline:view();
    animation-range:entry 0% entry 45%;
  }
  /* содержимое раздела идёт чуть медленнее страницы — разделы
     ощущаются слоями, а не одной простынёй */
  .js .section:not(.section--first) > .container{
    animation:sectionDrift linear both;
    animation-timeline:view();
    animation-range:cover 0% cover 100%;
  }
}
@keyframes lineDraw{ from{ transform:scaleX(0) } to{ transform:scaleX(1) } }
@keyframes sectionDrift{ from{ transform:translateY(16px) } to{ transform:translateY(-16px) } }

@media (prefers-reduced-motion: reduce){
  .section:not(.section--first)::before{ transform:scaleX(1); animation:none }
  .js .section:not(.section--first) > .container{ animation:none; transform:none }
}


/* ─── разделы наезжают друг на друга ─────────────────────────
   Раздел лежит выше предыдущего на --overlap и въезжает снизу
   при прокрутке. Сдвиг всегда меньше нахлёста, поэтому щели
   между разделами не появляется ни в одном положении. */
:root{
  --overlap:56px;          /* насколько слой заходит на предыдущий раздел */
  --lift:40px;             /* ход при въезде, всегда меньше нахлёста */
  --sec-top:76px;
  --sec-bottom:116px;      /* нахлёст + параллакс + запас: контент не накрывается */
}

.section--layer{
  position:relative;
  margin-top:calc(var(--overlap) * -1);
  padding-top:calc(var(--sec-top) + 24px);
  border-top:none;
  border-radius:32px 32px 0 0;
  box-shadow:0 -12px 32px rgba(16,20,24,.07);
}
.section--layer::after{           /* тонкая грань по скруглённому краю */
  content:''; position:absolute; inset:0 0 auto 0; height:32px;
  border-radius:32px 32px 0 0;
  border-top:1px solid rgba(16,20,24,.07);
  border-left:1px solid rgba(16,20,24,.05);
  border-right:1px solid rgba(16,20,24,.05);
  pointer-events:none;
}
.section--layer::before{ display:none }      /* край слоя заменил линию-разделитель */
.section--layer.cta{ border-top:none }

@supports (animation-timeline: view()){
  .js .section--layer{
    animation:layerUp linear both;
    animation-timeline:view();
    /* диапазон в пикселях, а не в процентах: иначе на длинном
       разделе движение растянулось бы на весь экран чтения */
    animation-range:entry 0px entry 520px;
  }
}
@keyframes layerUp{
  from{ transform:translateY(var(--lift)); box-shadow:0 -26px 56px rgba(16,20,24,.17) }
  to{ transform:translateY(0); box-shadow:0 -14px 40px rgba(16,20,24,.10) }
}

/* футер приезжает так же */
.footer{ position:relative; border-radius:32px 32px 0 0; margin-top:calc(var(--overlap) * -1); padding-top:calc(56px + 24px) }
@supports (animation-timeline: view()){
  .js .footer{ animation:layerUp linear both; animation-timeline:view(); animation-range:entry 0px entry 520px }
}

@media (max-width:560px){
  :root{ --overlap:28px; --lift:20px; --sec-top:44px; --sec-bottom:72px }
  .section--layer{ padding-top:calc(var(--sec-top) + 16px); border-radius:22px 22px 0 0 }
  .section--layer::after{ height:22px; border-radius:22px 22px 0 0 }
  .footer{ border-radius:22px 22px 0 0; padding-top:56px }
}

@media (prefers-reduced-motion: reduce){
  .js .section--layer,.js .footer{ animation:none; transform:none }
}


/* ─── ГЕРОЙ ──────────────────────────────────────────────────
   Первый экран прижат к верху (position:sticky) и остаётся на
   месте, пока каталог наезжает на него слоем. Движение считает
   один rAF в app.js: параллакс фотографий от курсора + уход
   содержимого вверх по прокрутке. Ничего, кроме transform и
   opacity, не анимируется — кадр не выходит за компоновщик. */
.hero{
  position:sticky; top:0; z-index:0;
  min-height:100svh; display:flex; align-items:center;
  padding:104px 0 92px;
  background:#0B0F12; color:#fff; overflow:hidden; isolation:isolate;
}
.hero__glow{
  position:absolute; inset:-20% -10% auto -10%; height:120%;
  background:
    radial-gradient(46% 52% at 74% 34%, rgba(47,93,120,.55) 0%, rgba(47,93,120,0) 72%),
    radial-gradient(38% 44% at 18% 74%, rgba(230,51,41,.18) 0%, rgba(230,51,41,0) 70%);
  pointer-events:none;
  animation:glowDrift 22s ease-in-out infinite alternate;
}
@keyframes glowDrift{ from{ transform:translate3d(-2%,0,0) scale(1) } to{ transform:translate3d(3%,-3%,0) scale(1.12) } }
.hero__in{
  position:relative; z-index:2;
  display:grid; grid-template-columns:1.02fr .98fr; gap:56px; align-items:center;
  width:100%;
  transform:translateY(var(--shift,0px));
  opacity:calc(1 - var(--p,0) * 1.25);
  will-change:transform,opacity;
}
.hero__eyebrow{color:#8FB6CC; margin-bottom:18px; animation:heroFade .8s cubic-bezier(.22,.61,.36,1) both}
.hero__title{
  font-size:clamp(38px,6.4vw,82px); line-height:.98; letter-spacing:-.035em; font-weight:800;
  margin:0 0 22px; text-wrap:balance;
}
.hero__title span{display:inline-block; overflow:hidden; vertical-align:top; padding-bottom:.06em; margin-bottom:-.06em}
.hero__title i{
  display:inline-block; font-style:normal;
  animation:wordUp 1.05s cubic-bezier(.16,1,.3,1) both;
  animation-delay:calc(var(--i,0) * .075s + .1s);
}
.hero__title span:last-child i{color:#9FC6DC}
@keyframes wordUp{ from{ transform:translateY(115%) rotate(2.5deg) } to{ transform:none } }
@keyframes heroFade{ from{ opacity:0; transform:translateY(16px) } to{ opacity:1; transform:none } }
.hero__lead{
  color:#A9B4BF; font-size:clamp(15px,1.35vw,18px); max-width:520px;
  animation:heroFade .9s cubic-bezier(.22,.61,.36,1) .42s both;
}
.hero__actions{display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; animation:heroFade .9s cubic-bezier(.22,.61,.36,1) .52s both}
.hero .btn--ghost{background:transparent; border-color:rgba(255,255,255,.22); color:#fff}
.hero .btn--ghost:hover{border-color:#fff; background:rgba(255,255,255,.06)}
.hero__stats{
  display:flex; flex-wrap:wrap; gap:14px 40px; margin-top:44px;
  padding-top:24px; border-top:1px solid rgba(255,255,255,.12);
  animation:heroFade .9s cubic-bezier(.22,.61,.36,1) .62s both;
}
.hero__stat b{display:block; font-size:26px; letter-spacing:-.03em; line-height:1.1}
.hero__stat span{font-size:13px; color:#8A95A0}

/* Форма с ячейками — сам предмет производства, а не фотография.
   Плита слегка наклоняется за курсором (rotateX/rotateY считает
   app.js), по ячейкам бежит волна: сдвиг по Z + подсветка канта. */
.hero__stage{position:relative; aspect-ratio:1/1; min-height:380px; perspective:1200px}
.hero__plate{
  position:absolute; inset:6% 4%;
  display:grid; grid-template-columns:repeat(5,1fr); gap:min(2.4vw,26px);
  padding:min(3vw,32px); border-radius:26px;
  background:linear-gradient(152deg,#182027,#0F151A 62%);
  outline:1px solid rgba(255,255,255,.08); outline-offset:-1px;
  box-shadow:0 40px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06);
  transform-style:preserve-3d; will-change:transform;
  animation:plateIn 1.2s cubic-bezier(.16,1,.3,1) both .15s;
}
@keyframes plateIn{ from{ opacity:0; transform:translateY(48px) scale(.94) } to{ opacity:1 } }
.hero__cell{
  aspect-ratio:1; border-radius:50%;
  background:radial-gradient(circle at 50% 34%, #0A0E11 0%, #10161B 58%, #1B242B 100%);
  box-shadow:inset 0 3px 9px rgba(0,0,0,.85), inset 0 -1px 0 rgba(255,255,255,.07);
  animation:cellWave 3.6s cubic-bezier(.45,0,.2,1) infinite;
  animation-delay:calc(var(--d) * .09s);
}
@keyframes cellWave{
  0%,62%,100%{ transform:translateZ(0) scale(1); box-shadow:inset 0 3px 9px rgba(0,0,0,.85), inset 0 -1px 0 rgba(255,255,255,.07) }
  24%{ transform:translateZ(26px) scale(1.04); box-shadow:inset 0 3px 9px rgba(0,0,0,.6), inset 0 -1px 0 rgba(255,255,255,.07), 0 0 0 1px rgba(143,182,204,.45), 0 10px 26px rgba(0,0,0,.5) }
}
.hero__sheen{
  position:absolute; inset:6% 4%; border-radius:26px; pointer-events:none;
  background:linear-gradient(104deg,transparent 36%,rgba(255,255,255,.09) 48%,transparent 60%);
  background-size:260% 100%;
  animation:sheenRun 6.5s linear infinite;
}
@keyframes sheenRun{ from{ background-position:180% 0 } to{ background-position:-80% 0 } }

/* бегущая строка позиций по низу героя */
.hero__ticker{
  position:absolute; left:0; right:0; bottom:0; z-index:3;
  padding:14px 0; border-top:1px solid rgba(255,255,255,.1);
  background:rgba(11,15,18,.6); backdrop-filter:blur(6px);
  overflow:hidden; mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  opacity:calc(1 - var(--p,0) * 1.6);
}
.hero__row{display:flex; width:max-content; animation:tickerRun 46s linear infinite}
.hero__row span{
  display:flex; align-items:center; gap:26px; padding-right:26px; white-space:nowrap;
  font-size:13px; letter-spacing:.04em; color:#7E8994; text-transform:uppercase;
}
.hero__row span::after{content:''; width:5px; height:5px; border-radius:50%; background:#2F5D78; flex-shrink:0}
@keyframes tickerRun{ to{ transform:translateX(-50%) } }

.hero__hint{
  position:absolute; left:50%; bottom:74px; z-index:3; translate:-50% 0;
  font-size:11px; letter-spacing:.18em; text-transform:uppercase; color:#6F7A85;
  display:flex; flex-direction:column; align-items:center; gap:10px;
  opacity:calc(1 - var(--p,0) * 2.4);
}
.hero__hint::after{
  content:''; width:1px; height:34px; background:linear-gradient(#6F7A85,transparent);
  animation:hintRun 1.9s ease-in-out infinite;
}
@keyframes hintRun{ 0%{ transform:scaleY(.2); transform-origin:50% 0 } 55%{ transform:scaleY(1); transform-origin:50% 0 } 56%{ transform-origin:50% 100% } 100%{ transform:scaleY(0); transform-origin:50% 100% } }

/* каталог наезжает на героя, поэтому у слоя должен быть свой фон */
.section--layer{background:var(--bg); z-index:1}
.section--tint.section--layer{background:var(--surface)}
.footer{z-index:1}

@media (max-width:980px){
  .hero{min-height:auto; position:relative; padding:72px 0 88px}
  .hero__in{grid-template-columns:1fr; gap:40px; opacity:1; transform:none}
  .hero__stage{height:min(42vh,300px); width:auto; min-height:0; aspect-ratio:6/5; max-width:min(440px,74vw); justify-self:center; margin-inline:auto}
  .hero__hint{display:none}
}
@media (max-width:560px){
  .hero{padding:48px 0 76px}
  .hero__stats{gap:12px 26px; margin-top:30px}
  .hero__stat b{font-size:21px}
  .hero__stage{height:min(34vh,230px); aspect-ratio:5/4; max-width:82vw}
  .hero__plate{gap:3.2vw; padding:4.6vw; border-radius:18px}
}

@media (prefers-reduced-motion: reduce){
  .hero{position:relative}
  .hero__glow,.hero__row,.hero__cell,.hero__sheen{animation:none}
  .hero__title i,.hero__plate,.hero__lead,.hero__actions,.hero__stats,.hero__eyebrow{animation:fadeOnly .4s both}
  .hero__in{transform:none; opacity:1}
  .hero__hint{display:none}
}


/* ─── ФУТЕР: имя бренда во всю ширину ────────────────────────
   Словознак въезжает снизу по мере входа футера в экран, по нему
   идёт медленный блик. Колонки ссылок поднимаются каскадом. */
.footer{overflow:hidden}
.footer__belt{
  position:relative; height:1px; margin:0 0 30px;
  background:repeating-linear-gradient(90deg,rgba(255,255,255,.22) 0 12px,transparent 12px 26px);
  background-size:26px 1px;
  animation:beltRun 1.4s linear infinite;
}
@keyframes beltRun{ to{ background-position:-26px 0 } }
.footer__status{
  display:flex; flex-wrap:wrap; align-items:center; gap:10px 26px;
  margin-top:34px; padding-top:22px; border-top:1px solid rgba(255,255,255,.1);
  font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:#79838D;
}
.footer__status b{display:flex; align-items:center; gap:9px; font-weight:500; color:#A9B4BF}
.footer__status b::before{
  content:''; width:7px; height:7px; border-radius:50%; background:#5E9E6B;
  box-shadow:0 0 0 0 rgba(94,158,107,.55); animation:pulseDot 2.4s ease-out infinite;
}
@keyframes pulseDot{ 70%{ box-shadow:0 0 0 9px rgba(94,158,107,0) } 100%{ box-shadow:0 0 0 0 rgba(94,158,107,0) } }
.footer ul a{display:inline-block; transition:transform .22s cubic-bezier(.22,.61,.36,1), color .18s}
.footer ul a:hover{transform:translateX(5px)}

@media (prefers-reduced-motion: reduce){
  .footer__belt{animation:none}
  .footer__status b::before{animation:none}
  .js .footer__grid > div{animation:none; transform:none; opacity:1}
}


/* ─── шапка над тёмным первым экраном ────────────────────────
   Экран подтянут под шапку отрицательным отступом, поэтому верхний
   padding обязан включать высоту шапки на каждом размере экрана.
   Раньше мобильные правила переписывали padding целиком, и текст
   уезжал под логотип. Правила стоят в конце файла намеренно. */
@media (max-width:980px){
  .hero{ margin-top:-76px; padding-top:calc(76px + 56px) }
}
@media (max-width:560px){
  .hero{ margin-top:-64px; padding-top:calc(64px + 36px) }
}

/* наверху шапка прозрачная, а как только страница сдвинулась —
   тёмное стекло: текст под ней размывается и не спорит с логотипом */
body:has(.hero) .header:not(.is-stuck).is-scrolled{
  background:rgba(11,15,18,.66);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  backdrop-filter:blur(14px) saturate(140%);
  border-bottom-color:rgba(255,255,255,.08);
}


/* три цифры в один ряд: после удаления «2 направления» сетка 2×2
   оставляла пустую серую клетку */
.figures{ grid-template-columns:repeat(3,1fr) }
.figure{ padding:24px 20px }
.figure b{ font-size:28px }
@media (max-width:560px){
  .figures{ grid-template-columns:1fr }
  .figure{ padding:20px }
}


/* ─── пластина первого экрана ────────────────────────────────
   Сетке 5×5 из круглых ячеек нужен квадрат: при неквадратной зоне
   ячейки, посчитанные от ширины, вываливались снизу. Блик теперь
   дочерний элемент пластины и двигается вместе с ней. */
.hero__plate{ inset:6% }
.hero__sheen{ inset:0; border-radius:inherit }
@media (max-width:980px){
  .hero__stage{ height:auto; width:min(340px,78vw); aspect-ratio:1/1; max-width:none }
}
@media (max-width:560px){
  .hero__stage{ height:auto; width:min(300px,80vw); aspect-ratio:1/1; max-width:none }
}
