/* ---- category-animation.css ---- */
/* Tool Park: one illustrated category; existing category links remain links. */
.cat-grid > .cat-tile.tp-power-card,
.pp-groups > .pp-group-tile.tp-power-card {
  grid-column: span 2;
  grid-row: span 3;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
  min-height: 252px;
  padding: 22px 20px 12px;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
}
.cat-tile.tp-power-card > b,
.pp-group-tile.tp-power-card > b {
  order: -1;
  font-size: clamp(17px, 1.4vw, 23px);
  line-height: 1.25;
  letter-spacing: -.4px;
}
.cat-tile.tp-power-card > .ic,
.pp-group-tile.tp-power-card > .ic {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
  border-radius: 0;
  background: transparent;
  flex: 1 1 auto;
}
.tp-power-card .ic > .tp-tool-art {
  display: block;
  width: 100%;
  height: auto;
  max-height: 245px;
  overflow: visible;
}
.cat-tile.tp-power-card:focus-visible,
.pp-group-tile.tp-power-card:focus-visible {
  outline: 3px solid var(--red, #f01938);
  outline-offset: 4px;
}
.tp-power-card.tp-tool-running { border-color: var(--red, #f01938); }
/* The illustration cannot enlarge a one-column mobile grid implicitly. */
@media (max-width: 600px) {
  .cat-grid > .cat-tile.tp-power-card,
  .pp-groups > .pp-group-tile.tp-power-card {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 0;
  }
  .tp-power-card .ic > .tp-tool-art { max-height: 230px; }
}
@media (prefers-reduced-motion: reduce) {
  .cat-tile.tp-power-card,
  .pp-group-tile.tp-power-card { transition: none; }
  .cat-tile.tp-power-card:hover,
  .pp-group-tile.tp-power-card:hover { transform: none; }
}

/* ---- hero-since.css ---- */
/* Tool Park: the approved typing animation, isolated from other page sections. */
.hero-brand.tp-since-card {
  --tp-since-bg: #101013;
  --tp-since-text: #f5f5f6;
  --tp-since-red: var(--red, #f01938);
  container-type: inline-size;
  position: relative;
  display: grid;
  align-items: center;
  min-width: 0;
  min-height: 360px;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--tp-since-bg);
  color: var(--tp-since-text);
  animation: none;
}
.tp-since-card .tp-since-type {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  margin: 0;
  padding: 54px 34px;
  font-family: 'Golos Text', sans-serif;
  font-size: clamp(28px, 3.8vw, 64px);
  font-size: clamp(28px, 11.6cqw, 88px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  text-align: left;
  text-transform: none;
}
.tp-since-card .tp-since-type.is-active { opacity: 1; visibility: visible; }
.tp-since-card .tp-since-assortment { font-size: clamp(26px, 10.5cqw, 80px); }
.tp-since-card .tp-since-location {
  --tp-location-inset: 68px;
  min-width: 0;
  font-size: clamp(1rem, 2vw, 4.25rem);
  font-size: clamp(1rem, calc((100cqw - var(--tp-location-inset)) / 14), 4.25rem);
}
.tp-since-card .tp-since-static-facts { display: none; }
.tp-since-card .tp-since-line { display: block; white-space: nowrap; }
.tp-since-card .tp-since-line + .tp-since-line { margin-top: .08em; }
.tp-since-card .tp-since-year { color: var(--tp-since-red); }
.tp-since-card .tp-since-glyph {
  position: relative;
  display: inline-block;
  white-space: pre;
  transition: opacity 145ms ease-out, transform 145ms cubic-bezier(.16,1,.3,1), filter 145ms ease-out;
}
.tp-since-card.tp-since-typing .tp-since-glyph {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(.06em);
}
.tp-since-card.tp-since-typing .tp-since-glyph.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.tp-since-card .tp-since-glyph.is-cursor::after {
  content: '';
  position: absolute;
  top: .13em;
  left: calc(100% + .065em);
  width: .042em;
  height: .84em;
  background: var(--tp-since-red);
  animation: tp-since-caret 850ms steps(1,end) infinite;
}
.tp-since-card.is-resting .tp-since-glyph.is-cursor::after { animation-duration: 1100ms; }
.tp-since-card.is-dimming .tp-since-type.is-active { opacity: 0; transition: opacity 320ms ease-out; }
.tp-since-card.is-paused .tp-since-glyph.is-cursor::after { animation-play-state: paused; }
.tp-since-card ::selection { background: var(--tp-since-red); color: var(--tp-since-text); }
@keyframes tp-since-caret { 0%,55% { opacity: 1; } 56%,100% { opacity: 0; } }
@media (max-width: 760px) {
  .hero-brand.tp-since-card { display: grid; min-height: 300px; }
  .tp-since-card .tp-since-type { padding: 44px 24px; }
  .tp-since-card .tp-since-location { --tp-location-inset: 48px; }
}
@media (max-width: 380px) {
  .hero-brand.tp-since-card { min-height: 270px; }
  .tp-since-card .tp-since-type { padding-inline: 18px; }
  .tp-since-card .tp-since-location { --tp-location-inset: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-since-card .tp-since-glyph { transition: none; }
  .tp-since-card.tp-since-typing .tp-since-glyph { opacity: 1; filter: none; transform: none; }
  .tp-since-card.is-dimming .tp-since-type.is-active { opacity: 1; }
  .tp-since-card .tp-since-glyph.is-cursor::after { display: none; }
  .tp-since-card .tp-since-type.is-active { padding-bottom: 92px; }
  .hero .tp-since-card .tp-since-static-facts { display: block; position: absolute; inset: auto 24px 20px; margin: 0; font-size: 13px; line-height: 1.5; color: #d7d7da; }
}

/* ---- Компактная версия (2026-10-27): блок с анимацией меньше и не спорит с заголовком ---- */
.hero .hero-inner{ grid-template-columns:minmax(0,1fr) minmax(0,400px); gap:48px; min-height:0; padding-top:64px; padding-bottom:64px; }
.hero .hero-copy h1{ max-width:680px; text-wrap:balance; }
.hero .hero-copy p{ max-width:520px; text-wrap:pretty; }
.hero-brand.tp-since-card{ min-height:240px; width:100%; max-width:400px; justify-self:end; border-radius:16px; }
.tp-since-card .tp-since-type{ padding:32px; font-size:clamp(24px, 9.5cqw, 48px); font-weight:700; }
.tp-since-card .tp-since-assortment{ font-size:clamp(24px, 9cqw, 44px); }
/* «Усть-Каменогорск» на отдельной строке: размер считаем от ширины карточки (16 букв), чтобы слово никогда не обрезалось */
.tp-since-card .tp-since-location{ --tp-location-inset:64px; font-size:clamp(20px, calc((100cqw - var(--tp-location-inset)) / 9.6), 40px); }
.tp-since-card .tp-since-location .tp-since-line{ white-space:nowrap; }
@media (max-width:1100px){
  .hero .hero-inner{ grid-template-columns:minmax(0,1fr) minmax(0,320px); gap:32px; }
}
@media (max-width:760px){
  .hero .hero-inner{ grid-template-columns:1fr; padding-top:40px; padding-bottom:40px; gap:24px; }
  .hero-brand.tp-since-card{ min-height:168px; max-width:none; justify-self:stretch; }
  .tp-since-card .tp-since-type{ padding:24px; font-size:clamp(24px, 8cqw, 36px); }
  .tp-since-card .tp-since-location{ --tp-location-inset:48px; }
}
@media (max-width:380px){
  .hero-brand.tp-since-card{ min-height:152px; }
  .tp-since-card .tp-since-type{ padding-inline:16px; }
}
/* Строка над слоганом в H1 — ключевая фраза для поиска, визуально как подпись */
.hero .hero-copy h1 .hero-h1-kicker{display:block;margin:0 0 14px;font-size:15px;line-height:1.4;font-weight:600;letter-spacing:.01em;text-transform:none;color:#ffffffb8}
@media(max-width:560px){.hero .hero-copy h1 .hero-h1-kicker{font-size:13px;margin-bottom:10px}}

/* ---- hero-rotator.css ---- */
/* Tool Park — главная: слоган первого экрана сменяется раз в 10 секунд, новая фраза «печатается».
   Все фразы лежат в одной ячейке сетки: высота блока — по самой высокой, страница не прыгает.
   Первая фраза — настоящий H1; остальные оформлены так же, но скрыты от экранных читалок. */
.hero-rotator{display:grid;margin:0 0 24px;max-width:680px}
.hero .hero-copy .hero-rotator .hero-phrase{
  grid-area:1/1;margin:0;max-width:none;align-self:start;
  font-family:inherit;font-size:clamp(36px,4.4vw,62px);line-height:1.07;font-weight:800;letter-spacing:-.045em;
  color:#fff;text-transform:none;text-wrap:balance;
  opacity:0;visibility:hidden;transition:opacity .4s ease,visibility 0s linear .4s;
}
.hero .hero-copy .hero-rotator .hero-phrase.is-active{opacity:1;visibility:visible;transition:opacity .4s ease,visibility 0s}
.hero .hero-copy .hero-rotator .hero-phrase span{color:inherit}
.hero .hero-copy .hero-rotator .hero-phrase .hero-accent{color:var(--red,#f01938)}
.hero-rotator .hr-word{display:inline-block;white-space:nowrap}
.hero-rotator .hr-glyph{position:relative;display:inline-block;white-space:pre;
  transition:opacity 145ms ease-out,transform 145ms cubic-bezier(.16,1,.3,1),filter 145ms ease-out}
/* У скрытой фразы буквы меняют состояние мгновенно: иначе при смене фраз новая на долю секунды проступала целиком. */
.hero-rotator .hero-phrase:not(.is-active) .hr-glyph{transition:none}
.hero-rotator .hero-phrase.is-typing .hr-glyph{opacity:0;filter:blur(5px);transform:translateY(.06em)}
.hero-rotator .hero-phrase.is-typing .hr-glyph.is-visible{opacity:1;filter:blur(0);transform:none}
.hero-rotator .hr-glyph.is-cursor::after{content:"";position:absolute;top:.13em;left:calc(100% + .065em);width:.045em;height:.84em;
  background:var(--red,#f01938);animation:hr-caret 900ms steps(1,end) infinite}
.hero-rotator.is-paused .hr-glyph.is-cursor::after{animation-play-state:paused}
@keyframes hr-caret{0%,55%{opacity:1}56%,100%{opacity:0}}
@media (max-width:760px){ .hero .hero-copy .hero-rotator .hero-phrase{font-size:clamp(34px,7.2vw,52px);line-height:1.1} }
@media (max-width:430px){ .hero .hero-copy .hero-rotator .hero-phrase{font-size:36px} }
@media (max-width:359px){ .hero .hero-copy .hero-rotator .hero-phrase{font-size:31px} }
@media (prefers-reduced-motion:reduce){
  .hero-rotator .hr-glyph{transition:none}
  .hero-rotator .hero-phrase.is-typing .hr-glyph{opacity:1;filter:none;transform:none}
  .hero-rotator .hr-glyph.is-cursor::after{display:none}
}

/* ---- hero-pills.css ---- */
/* Tool Park — кнопки под слоганом на главной: разделы ↔ «для кого», смена каждые 10 секунд. */
.hero-pills{display:grid;margin-top:8px;max-width:600px}
.hero-pill-set{grid-area:1/1;display:flex;flex-wrap:wrap;align-content:flex-start;gap:8px;margin:0;padding:0;list-style:none}
/* Без JS оба набора видны друг под другом */
.hero-pills:not(.is-ready) .hero-pill-set--who{grid-area:auto;margin-top:8px}
.hero-pill{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:8px 16px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.06);color:#f5f5f6;font-size:15px;line-height:22px;font-weight:500;text-decoration:none;white-space:nowrap;transition:background-color .2s var(--tp-ease-out,ease),border-color .2s var(--tp-ease-out,ease),color .2s var(--tp-ease-out,ease),transform .2s var(--tp-ease-out,ease)}
.hero-pill .icon{width:16px;height:16px}
.hero-pill--who{border-color:rgba(240,25,56,.55);background:rgba(240,25,56,.12)}
@media (hover:hover) and (pointer:fine){
  .hero-pill:hover{background:#fff;border-color:#fff;color:#0b0b0d;transform:translateY(-1px)}
  .hero-pill--who:hover{background:var(--red,#f01938);border-color:var(--red,#f01938);color:#fff}
}
.hero-pill:focus-visible{outline:3px solid var(--red,#f01938);outline-offset:3px}

/* С JS: показан один набор, кнопки появляются по очереди */
.hero-pills.is-ready .hero-pill-set{visibility:hidden}
.hero-pills.is-ready .hero-pill-set.is-active{visibility:visible}
@media (prefers-reduced-motion:no-preference){
  .hero-pills.is-ready .hero-pill-set.is-active li{animation:tp-pill-in .42s var(--tp-ease-out,cubic-bezier(.23,1,.32,1)) both;animation-delay:calc(var(--i,0) * 70ms)}
  .hero-pills.is-ready .hero-pill-set.is-leaving{visibility:visible}
  .hero-pills.is-ready .hero-pill-set.is-leaving li{animation:tp-pill-out .24s ease-in both;animation-delay:calc(var(--i,0) * 20ms)}
  /* При смене наборов новый появляется только после ухода старого — кнопки не накладываются друг на друга. */
  .hero-pills.is-ready.is-switched .hero-pill-set.is-active li{animation-delay:calc(400ms + var(--i,0) * 60ms)}
}
@keyframes tp-pill-in{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:none}}
@keyframes tp-pill-out{from{opacity:1;transform:none}to{opacity:0;transform:translateY(-6px) scale(.98)}}

@media (max-width:760px){
  .hero-pill{min-height:36px;padding:6px 14px;font-size:14px}
}

/* Liquid Glass, вариант Tinted — как у карточки «Работаем для вас с 2001 года»:
   затемнённое стекло с размытием, блик сверху-слева, светлая кромка по краю. */
.hero-pill{
  border-color:transparent;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(135deg, rgba(40,18,22,.55) 0%, rgba(24,12,15,.64) 60%, rgba(40,18,22,.55) 100%);
  -webkit-backdrop-filter:blur(20px) saturate(150%);
  backdrop-filter:blur(20px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -1px 1px rgba(255,255,255,.08),
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 8px 24px rgba(0,0,0,.35);
  transition:background .2s var(--tp-ease-out,ease),box-shadow .2s var(--tp-ease-out,ease),color .2s var(--tp-ease-out,ease),transform .2s var(--tp-ease-out,ease);
}
/* «Для предприятий / мастеров / каждого» — то же стекло с красным оттенком */
.hero-pill--who{
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(135deg, rgba(120,18,34,.52) 0%, rgba(62,10,20,.6) 60%, rgba(110,16,32,.5) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    inset 0 -1px 1px rgba(255,255,255,.08),
    inset 0 0 0 1px rgba(255,80,100,.42),
    0 8px 24px rgba(0,0,0,.35);
}
@media (hover:hover) and (pointer:fine){
  .hero-pill:hover{
    color:#fff;
    background:
      radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.26) 0%, rgba(255,255,255,0) 60%),
      linear-gradient(135deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.08) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.6),
      inset 0 0 0 1px rgba(255,255,255,.28),
      0 10px 28px rgba(0,0,0,.4);
  }
  .hero-pill--who:hover{
    background:
      radial-gradient(120% 90% at 0% 0%, rgba(255,255,255,.24) 0%, rgba(255,255,255,0) 60%),
      linear-gradient(135deg, rgba(240,25,56,.62) 0%, rgba(190,16,44,.62) 100%);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.55),
      inset 0 0 0 1px rgba(255,120,135,.6),
      0 10px 28px rgba(0,0,0,.4);
  }
}
/* Без поддержки размытия — плотнее, чтобы текст читался */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .hero-pill{background:rgba(30,14,17,.9)}
  .hero-pill--who{background:rgba(90,14,28,.9)}
}

/* ---- hero-gradient.css ---- */
/* Tool Park: анимированный фон первого экрана — фирменные чёрный и красный.
   Подключается в public/index.php после hero-since.css. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0b0b0d;
}

/* Подвижный слой с красными «свечениями» на тёмной основе */
.hero::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(36% 40% at 78% 32%, rgba(240, 25, 56, .58), transparent 70%),
    radial-gradient(34% 38% at 60% 86%, rgba(201, 15, 41, .48), transparent 70%),
    radial-gradient(30% 34% at 22% 88%, rgba(138, 15, 34, .42), transparent 72%),
    radial-gradient(42% 46% at 32% 14%, rgba(44, 44, 50, .9), transparent 70%),
    linear-gradient(120deg, #0b0b0d 0%, #17171a 48%, #2a0a10 100%);
  animation: tp-hero-drift 22s ease-in-out infinite alternate;
  will-change: transform;
}

/* Затемнение слева, чтобы заголовок и красная строка «Ваш инструмент.» читались */
.hero::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  transform: none;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 11, 13, .74) 0%, rgba(11, 11, 13, .46) 42%, rgba(11, 11, 13, 0) 68%);
}

.hero .hero-inner { position: relative; z-index: 2; }

/* Карточка «Работаем для вас с 2001 года» — Liquid Glass, вариант Tinted:
   затемнённое стекло с сильным размытием, блик сверху-слева, светлая кромка по краю. */
.hero-brand.tp-since-card {
  --tp-since-bg: linear-gradient(135deg, rgba(40, 18, 22, .62) 0%, rgba(24, 12, 15, .7) 55%, rgba(40, 18, 22, .6) 100%);
  --tp-since-red: #ff3b52; /* чуть ярче фирменного: на стекле так лучше читается */
  border-radius: 28px;
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, .42),
    inset 0 -1px 1px rgba(255, 255, 255, .1),
    inset 1px 0 0 rgba(255, 255, 255, .16),
    inset -1px 0 0 rgba(255, 255, 255, .08),
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    0 28px 70px rgba(0, 0, 0, .5),
    0 2px 8px rgba(0, 0, 0, .3);
}
/* Блик стекла: свет сверху-слева и красноватый отсвет снизу-справа */
.hero-brand.tp-since-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(110% 75% at 0% 0%, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 46%),
    radial-gradient(70% 60% at 100% 100%, rgba(255, 70, 90, .12) 0%, rgba(255, 70, 90, 0) 55%);
}
/* Светлая кромка по верхнему краю */
.hero-brand.tp-since-card::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .8), rgba(255, 255, 255, 0));
}
.hero-brand.tp-since-card > * { position: relative; z-index: 1; }
/* Без поддержки размытия стекло делаем плотнее, чтобы текст оставался читаемым */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-brand.tp-since-card { --tp-since-bg: rgba(24, 12, 15, .92); }
}
@media (max-width: 560px) {
  .hero-brand.tp-since-card { border-radius: 22px; }
}

@keyframes tp-hero-drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(-6%, 4%, 0) rotate(8deg) scale(1.08); }
  100% { transform: translate3d(5%, -3%, 0) rotate(-6deg) scale(1.04); }
}

/* На узких экранах текст идёт поверх всего фона — затемняем равномерно */
@media (max-width: 900px) {
  .hero::after { background: rgba(11, 11, 13, .5); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

/* ---- hero-feed.css ---- */
/* Tool Park — главная: лента «Акции и хиты продаж» справа от слогана.
   Товары едут снизу вверх без остановки; под курсором и при фокусе лента замирает.
   Вёрстка без JS: список продублирован, анимация сдвигает дорожку ровно на половину. */
.hero-feed{
  --hf-red:#ff3b52;
  position:relative; isolation:isolate; display:flex; flex-direction:column;
  width:100%; max-width:400px; height:372px; justify-self:end; min-width:0; overflow:hidden;
  border-radius:28px; color:#f5f5f6;
  background:linear-gradient(135deg,rgba(40,18,22,.62) 0%,rgba(24,12,15,.7) 55%,rgba(40,18,22,.6) 100%);
  -webkit-backdrop-filter:blur(28px) saturate(150%); backdrop-filter:blur(28px) saturate(150%);
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.42),inset 0 -1px 1px rgba(255,255,255,.1),inset 1px 0 0 rgba(255,255,255,.16),
    inset -1px 0 0 rgba(255,255,255,.08),inset 0 0 0 1px rgba(255,255,255,.08),0 28px 70px rgba(0,0,0,.5),0 2px 8px rgba(0,0,0,.3);
}
.hero-feed::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;
  background:radial-gradient(110% 75% at 0% 0%,rgba(255,255,255,.14) 0%,rgba(255,255,255,0) 46%),
             radial-gradient(70% 60% at 100% 100%,rgba(255,70,90,.12) 0%,rgba(255,70,90,0) 55%)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){ .hero-feed{background:rgba(24,12,15,.92)} }

.hf-head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px 10px}
.hf-head b{font-size:16px;font-weight:700;letter-spacing:-.01em;line-height:1.25}
.hf-head a{flex:none;display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#ffffffc7;white-space:nowrap;padding:6px 0}
.hf-head a:hover,.hf-head a:focus-visible{color:#fff}
.hf-head a .icon{width:14px;height:14px}

.hf-view{flex:1;min-height:0;overflow:hidden;padding:0 12px;outline:0;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 26px,#000 calc(100% - 34px),transparent 100%);
  mask-image:linear-gradient(to bottom,transparent 0,#000 26px,#000 calc(100% - 34px),transparent 100%)}
.hf-view:focus-visible{box-shadow:inset 0 0 0 2px #fff6;border-radius:18px}
.hf-track{animation:hf-up calc(var(--hf-n,10) * 3.6s) linear infinite;will-change:transform}
.hero-feed:hover .hf-track,.hero-feed:focus-within .hf-track{animation-play-state:paused}
@keyframes hf-up{from{transform:translate3d(0,0,0)}to{transform:translate3d(0,-50%,0)}}

.hf-list{list-style:none;margin:0;padding:0}
.hf-item{padding:4px 0}
.hf-link{display:flex;align-items:center;gap:12px;padding:8px 10px;border-radius:16px;color:inherit;transition:background .15s}
.hf-link:hover,.hf-link:focus-visible{background:rgba(255,255,255,.1);outline:0}
.hf-link:focus-visible{box-shadow:inset 0 0 0 2px #fff8}
.hf-pic{flex:none;width:52px;height:52px;display:grid;place-items:center;overflow:hidden;border-radius:12px;background:rgba(255,255,255,.1);color:#ffffff8c;box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}
.hf-pic img{width:100%;height:100%;object-fit:contain;background:#fff}
.hf-pic svg{width:24px;height:24px}
.hf-text{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}
.hf-name{font-size:14px;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hf-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;line-height:1.2}
.hf-price{font-size:15px;font-weight:700;white-space:nowrap}
.hf-old{font-size:12px;color:#ffffff8f;white-space:nowrap}
.hf-tag{margin-left:auto;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap;letter-spacing:.01em}
.hf-tag--promo{background:var(--hf-red);color:#fff}
.hf-tag--best{background:rgba(255,255,255,.14);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)}

@media (max-width:1100px){ .hero-feed{max-width:320px} .hf-head{padding-inline:18px} .hf-view{padding-inline:8px} }
@media (max-width:760px){
  .hero-feed{max-width:none;justify-self:stretch;height:268px;border-radius:22px}
  .hf-head{padding:16px 18px 8px}
}
/* С JS (assets/js/hero-feed.js) ленту можно листать колесом, пальцем и стрелками: едет уже не анимация,
   а прокрутка окна. Полоса прокрутки тонкая и видна только под курсором. */
.hero-feed.is-js .hf-track{animation:none;will-change:auto}
.hero-feed.is-js .hf-view{overflow-y:auto;scrollbar-width:thin;scrollbar-color:transparent transparent;-webkit-overflow-scrolling:touch}
.hero-feed.is-js:hover .hf-view,.hero-feed.is-js .hf-view:focus-visible{scrollbar-color:#ffffff59 transparent}
.hero-feed.is-js .hf-view::-webkit-scrollbar{width:6px}
.hero-feed.is-js .hf-view::-webkit-scrollbar-thumb{background:transparent;border-radius:3px}
.hero-feed.is-js:hover .hf-view::-webkit-scrollbar-thumb{background:#ffffff59}
/* «Уменьшить движение»: лента стоит, её можно листать пальцем или колесом; копия списка скрыта. */
@media (prefers-reduced-motion:reduce){
  .hf-track{animation:none}
  .hf-view{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ffffff55 transparent}
  .hf-list--copy{display:none}
}
/* Ленты нет (нет ни акций, ни данных о продажах) — слоган занимает всю ширину. */
.hero .hero-inner.hero-inner--solo{grid-template-columns:minmax(0,1fr)}

/* ---- about-block.css ---- */
/* Tool Park: блок «Инструмент, за которым стоит опыт» на главной. */
.tp-about {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0f0f12;
}
.tp-about::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -10%;
  top: 50%;
  width: 70%;
  aspect-ratio: 1;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(240, 25, 56, .16), transparent 70%);
  pointer-events: none;
}

.tp-about h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 26px;
}
.tp-about h2 span { color: var(--red, #f01938); }
.tp-about .tp-about-lead { color: #e6e6ea; font-size: 17px; }
.tp-about .btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; }
.tp-about .btn .icon { transition: transform .2s ease; }
.tp-about .btn:hover .icon { transform: translateX(4px); }

/* Правая панель */
.tp-about-panel {
  position: relative;
  border: 1px solid #ffffff1c;
  border-radius: 18px;
  padding: 36px;
  background:
    linear-gradient(160deg, rgba(240, 25, 56, .16) 0%, rgba(255, 255, 255, .02) 42%, transparent 100%),
    #16161a;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
}

.tp-about-years {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding-bottom: 28px;
  margin-bottom: 22px;
  border-bottom: 1px solid #ffffff1a;
}
.tp-about-years b {
  font-size: clamp(84px, 8.5vw, 128px);
  font-weight: 900;
  line-height: .82;
  letter-spacing: -.06em;
  color: var(--red, #f01938);
}
.tp-about-years span {
  display: block;
  color: #a8a8b0;
  font-size: 14px;
  line-height: 1.4;
  padding-bottom: 4px;
}
.tp-about-years em {
  display: block;
  font-style: normal;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 4px;
}

.tp-about-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tp-about-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #ffffff12;
  border-radius: 12px;
  background: #ffffff07;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}
.tp-about-list li:hover {
  border-color: rgba(240, 25, 56, .5);
  background: rgba(240, 25, 56, .08);
  transform: translateX(4px);
}
.tp-about-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background: rgba(240, 25, 56, .14);
  color: var(--red, #f01938);
}
.tp-about-ico svg { width: 24px; height: 24px; }
.tp-about-list strong { display: block; color: #fff; font-size: 15px; font-weight: 700; }
.tp-about-list small { display: block; color: #a0a0aa; font-size: 13px; margin-top: 3px; }

@media (max-width: 760px) {
  .tp-about-panel { padding: 24px; border-radius: 14px; }
  .tp-about .tp-about-lead { font-size: 15px; }
  .tp-about-years em { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-about-list li, .tp-about .btn .icon { transition: none; }
  .tp-about-list li:hover, .tp-about .btn:hover .icon { transform: none; }
}

/* ---------- Фоновое видео ---------- */
.tp-about .container { position: relative; z-index: 1; }
.tp-about::before { z-index: 0; }
.tp-about-video {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.tp-about-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  filter: saturate(.85) contrast(1.05);
}
.tp-about-video.is-playing video { opacity: 1; }
/* Затемнение поверх видео: слева сильнее, чтобы текст читался */
.tp-about-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 15, 18, .94) 0%, rgba(15, 15, 18, .8) 45%, rgba(15, 15, 18, .62) 100%),
    linear-gradient(0deg, rgba(240, 25, 56, .1), rgba(240, 25, 56, .1));
}
/* Панель становится полупрозрачной, видео мягко просвечивает */
.tp-about-panel {
  background:
    linear-gradient(160deg, rgba(240, 25, 56, .16) 0%, rgba(255, 255, 255, .02) 42%, transparent 100%),
    rgba(22, 22, 26, .78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@media (max-width: 760px) {
  .tp-about-video { display: none; }
}

/* ---- contact-map.css ---- */
/* Light vector map, with the store details outside the geographic viewport. */
.map.tp-map{display:flex;flex-direction:column;min-height:450px;border-radius:14px;background:#fff;border:1px solid var(--line);overflow:hidden}
.tp-map-viewport{position:relative;flex:1;min-height:340px;isolation:isolate;background:#f2f3f4}
.tp-map-canvas{position:absolute;inset:0;font-family:var(--font-ui)}
.tp-map-status{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px;text-align:center;background:#f5f5f6}
.tp-map-status>.icon{width:30px;height:30px;color:var(--red)}
.tp-map-status p{max-width:30ch;margin:0;font-size:15px;color:#55555d}
.tp-map-status .link-red{font-size:14px;min-height:44px}
.tp-map [hidden]{display:none!important}
.tp-map-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px;background:#fff;border-top:1px solid var(--line)}
.tp-map-address{display:flex;align-items:flex-start;gap:12px;min-width:0}
.tp-map-address>.icon{width:24px;height:24px;color:var(--red);margin-top:3px}
.tp-map-address b{display:block;font-size:18px;font-weight:700;line-height:1.3}
.tp-map-address p{margin:5px 0 0;font-size:14px;line-height:1.5}
.tp-map-address p span{display:block;margin-top:3px;font-size:12px;color:#63636b}
.tp-map-route{flex:none;white-space:nowrap}
.tp-map-reset{position:absolute;top:14px;left:14px;z-index:2;display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:8px 12px;border:0;border-radius:8px;background:#fff;color:var(--black);box-shadow:0 3px 12px #00000018;cursor:pointer;font-size:12px;font-weight:600}
.tp-map-reset .icon{width:17px;height:17px;color:var(--red)}
.tp-map-reset:hover{background:#fff0f3}
.tp-map .maplibregl-ctrl-top-right{top:4px;right:4px}
.tp-map .maplibregl-ctrl-group{border-radius:8px;box-shadow:0 3px 12px #00000018}
.tp-map .maplibregl-ctrl-group button{width:40px;height:40px}
.tp-map .maplibregl-ctrl-attrib{font:10px/1.5 var(--font-ui);background:#fffffff2;color:#55555d;max-width:calc(100% - 16px);padding:3px 7px;border-radius:5px;margin:0 8px 8px 0}
.tp-map .maplibregl-ctrl-attrib a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.tp-map .maplibregl-ctrl-scale{font-family:var(--font-ui);background:#ffffffe0;color:#55555d;border-color:#77777f;margin-bottom:12px}
.tp-map-marker{position:relative;width:56px;height:64px;padding:0;border:0;background:transparent;cursor:pointer;color:var(--red)}
.tp-map-marker svg{display:block;width:56px;height:64px;filter:drop-shadow(0 4px 5px #00000022)}
.tp-map-marker-label{position:absolute;bottom:68px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:6px 10px;border-radius:6px;background:var(--black);color:#fff;font:700 13px/1.2 var(--font-ui)}
.tp-map .maplibregl-popup-content{padding:18px;border-radius:10px;box-shadow:0 8px 24px #00000020;font-family:var(--font-ui)}
.tp-map .maplibregl-popup-content h3{margin:0 20px 7px 0;font-size:17px;line-height:1.3}
.tp-map .maplibregl-popup-content p{margin:0 0 8px;font-size:13px;line-height:1.5}
.tp-map .maplibregl-popup-content a{display:inline-flex;align-items:center;min-height:40px;color:var(--red2);font-size:13px;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.tp-map .maplibregl-popup-close-button{width:36px;height:36px;font-size:23px;color:#555}
.tp-map button:focus-visible{outline:3px solid var(--red);outline-offset:3px}
@media(max-width:760px){
  .map.tp-map{min-height:0}
  .tp-map-viewport{flex:none;height:340px;min-height:340px}
  .tp-map-footer{flex-wrap:wrap;gap:16px;padding:18px}
  .tp-map-route{width:100%;min-height:44px;justify-content:space-between}
  .tp-map .maplibregl-ctrl-scale{display:none}
}

/* ---- reviews.css ---- */
#reviews{scroll-margin-top:24px}
.rv-lead{max-width:60ch;margin:14px 0 0;color:#55555d;font-size:16px;line-height:1.6}
.rv-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.rv-card{display:flex;flex-direction:column;gap:10px;min-width:0;padding:24px;border:1px solid var(--line);border-radius:14px;background:#fff;transition:border-color .2s ease,transform .2s ease}
.rv-card:hover{border-color:var(--red);transform:translateY(-2px)}
.rv-card:focus-visible,.tp-reviews button:focus-visible,.tp-reviews a:focus-visible{outline:3px solid var(--red);outline-offset:4px}
.rv-plat{font-size:18px;font-weight:700}
.rv-rate{display:flex;align-items:center;gap:10px;font-size:36px;font-weight:750;line-height:1.2;font-variant-numeric:tabular-nums}
.rv-star{width:25px;height:25px;fill:var(--red)}
.rv-google{display:flex;align-items:center;min-height:43px;font-size:23px;font-weight:650}
.rv-sub{font-size:14px;line-height:1.5;color:#55555d}
.rv-cta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;min-height:30px;color:var(--red2);font-size:14px;font-weight:650}
.rv-cta .icon{width:19px;height:19px}
.rv-date{margin:14px 0 28px;font-size:13px;line-height:1.6;color:#63636b}
.rv-widget{max-width:880px;margin-inline:auto}
.rv-placeholder{padding:36px;border-radius:14px;border:1px solid var(--line);background:var(--light);text-align:center}
.rv-placeholder h3{margin:0 0 12px;font-size:22px}
.rv-placeholder p{max-width:54ch;margin:0 auto 20px;color:#55555d;font-size:16px;line-height:1.6}
.rv-widget [hidden]{display:none!important}
.rv-frame-host iframe{display:block;width:100%;height:580px;border:1px solid var(--line);border-radius:14px;background:#fff}
.rv-external-note{margin:16px 0 0;color:#63636b;font-size:14px;line-height:1.6;text-align:center}
.rv-external-note a{color:var(--red2);text-decoration:underline;text-underline-offset:3px}
.rv-external-note .icon{width:16px;height:16px;vertical-align:middle}
@media(max-width:760px){
  .tp-reviews .section-head{flex-wrap:wrap}
  .tp-reviews .section-head>.link-red{font-size:14px;min-height:44px;display:inline-flex;align-items:center}
  .rv-cards{grid-template-columns:1fr;gap:12px}
  .rv-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;padding:20px}
  .rv-rate{grid-column:2;grid-row:1/3;font-size:30px}
  .rv-google{grid-column:2;grid-row:1/3;font-size:16px;max-width:11ch}
  .rv-cta{grid-column:1/-1;margin-top:0;min-height:36px}
  .rv-placeholder{padding:28px 20px}
  .rv-frame-host iframe{height:620px}
}
@media(prefers-reduced-motion:reduce){.rv-card{transition:none}.rv-card:hover{transform:none}}

