/* ============================================================================
   MaxcroW HORECA — посадочные /horeca/<кластер>/: доводки поверх styles.min.css.
   База — фирменный дизайн HoReCa (как главная ресторанная). Этот файл лишь:
   разводит ленту-связку и фикс-header, чинит высоту hero под длинные тайтлы,
   добавляет хлебные крошки, чипы, карточки-ссылки и тост. Откат — убрать <link>.
   ============================================================================ */

/* Лента-связка (.pbar, fixed top:0) над фирменным header — сдвигаем header ниже */
.header { top: var(--pbar-h, 44px); }

/* Hero: не форсируем 100vh (контента больше, чем на главной) + место под ленту/header */
.hero { min-height: auto; padding-top: calc(var(--header-h, 64px) + var(--pbar-h, 44px) + 46px); padding-bottom: 76px; }
.hero__title { font-size: clamp(30px, 5vw, 60px); max-width: 19ch; }
.hero__sub { max-width: 62ch; }
.hero__cta { margin-bottom: 22px; }
.hero__stats { padding-top: 28px; }

/* First-screen semantic scene: every cluster gets its own operational map. */
.lp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  text-align: left;
}
.lp-hero .lp-crumbs,
.lp-hero .hero__stats { grid-column: 1 / -1; width: 100%; }
.lp-hero__copy { min-width: 0; }
.lp-hero .hero__badge { margin: 0 0 22px; }
.lp-hero .hero__title { max-width: 18ch; margin: 0 0 22px; }
.lp-hero .hero__sub { margin: 0 0 28px; }
.lp-hero .hero__cta { justify-content: flex-start; margin: 0 0 22px; }
.lp-hero .lp-chips { justify-content: flex-start; margin: 0; }
.lp-hero .hero__stats { margin-top: 2px; }

.lp-hero-scene {
  --scene-angle: -8deg;
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: clamp(350px, 35vw, 450px);
  padding: clamp(8px, 1.2vw, 16px);
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.lp-hero-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .42;
  background: var(--scene-motif, radial-gradient(circle at 50% 50%, rgba(255, 138, 92, .26), transparent 52%));
  mask-image: linear-gradient(135deg, #000, rgba(0, 0, 0, .2));
}
.lp-hero-scene::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -110px;
  bottom: -120px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 107, 43, .19);
  filter: blur(34px);
}
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; text-align: center; }
  .lp-hero .lp-crumbs,
  .lp-hero .hero__stats { grid-column: auto; }
  .lp-hero .hero__badge { margin-left: auto; margin-right: auto; }
  .lp-hero .hero__title,
  .lp-hero .hero__sub { margin-left: auto; margin-right: auto; }
  .lp-hero .hero__cta,
  .lp-hero .lp-chips { justify-content: center; }
  .lp-hero-scene { width: min(100%, 620px); justify-self: center; }
}
@media (max-width: 520px) {
  .lp-hero { gap: 26px; }
  .lp-hero .hero__cta { align-items: stretch; }
  .lp-hero .hero__cta .btn { width: 100%; white-space: normal; }
  .lp-hero-scene { min-height: 324px; padding: 8px; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-hero-scene *,
  .lp-hero-scene *::before,
  .lp-hero-scene *::after { animation: none !important; transition: none !important; }
}

/* Хлебные крошки в hero */
.lp-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.5); margin-bottom: 20px; }
.lp-crumbs a { color: rgba(255,255,255,.72); text-decoration: none; }
.lp-crumbs a:hover { color: var(--accent); }
.lp-crumbs b { color: rgba(255,255,255,.85); font-weight: 600; }
.lp-crumbs span { opacity: .4; }

/* Чипы-пилюли под hero-CTA */
.lp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 24px; }
.lp-chip { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.85); }
.lp-chip b { color: var(--accent); font-weight: 800; }

/* Боль-секция (узкая колонка, крупный текст) */
.lp-pain .container { max-width: 880px; }
.lp-pain .section__lead { margin-top: 18px; }

/* C7: коммерческий мост внутри фактической услуги. Цвета наследуют HORECA-тему. */
.nco {
  margin-top: clamp(42px, 6vw, 76px);
  padding-top: clamp(34px, 4vw, 54px);
  border-top: 1px solid rgba(255,255,255,.12);
}
.nco-head { max-width: 780px; margin-bottom: 28px; }
.nco-head h3 {
  margin: 10px 0 12px;
  max-width: 22ch;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.nco-head p { max-width: 68ch; color: rgba(255,255,255,.68); line-height: 1.65; }
.nco-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; align-items: stretch; }
.nco-grid--1 { grid-template-columns: minmax(0,620px); }
.nco-grid--2 { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 920px; }
.nco-card {
  position: relative;
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.7vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 24px;
  background: linear-gradient(155deg,rgba(255,255,255,.075),rgba(255,255,255,.025));
  box-shadow: 0 20px 54px rgba(0,0,0,.22);
}
.nco-card--featured {
  border-color: color-mix(in srgb,var(--accent) 62%,rgba(255,255,255,.14));
  background: linear-gradient(155deg,color-mix(in srgb,var(--accent) 13%,rgba(255,255,255,.07)),rgba(255,255,255,.025));
}
.nco-top { min-height: 32px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 19px; }
.nco-index { font-size: 12px; font-weight: 800; letter-spacing: .15em; color: rgba(255,255,255,.42); }
.nco-flag { padding: 7px 11px; border: 1px solid color-mix(in srgb,var(--accent) 62%,transparent); border-radius: 999px; background: color-mix(in srgb,var(--accent) 14%,transparent); color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nco-card h3 { min-height: 2.3em; margin: 0 0 13px; font-size: clamp(22px,2.2vw,29px); line-height: 1.15; letter-spacing: -.025em; }
.nco-fit { min-height: 6.2em; margin: 0 0 20px; color: rgba(255,255,255,.66); font-size: 14.5px; line-height: 1.55; }
.nco-price { min-height: 2.16em; color: #fff; font-size: clamp(28px,3vw,42px); font-weight: 800; line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
.nco-grid--1 .nco-price,.nco-grid--2 .nco-price { min-height: 1.2em; }
.nco-billing { min-height: 2.8em; margin: 8px 0 18px; color: var(--accent); font-size: 13px; font-weight: 750; line-height: 1.4; }
.nco-budget { min-height: 72px; display: flex; flex-direction: column; justify-content: center; gap: 4px; margin: 0 0 20px; padding: 13px 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(0,0,0,.18); }
.nco-budget span { color: rgba(255,255,255,.48); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.nco-budget strong { color: rgba(255,255,255,.9); font-size: 15px; line-height: 1.35; }
.nco-details { display: grid; gap: 10px; margin: 0 0 26px; padding: 0; list-style: none; flex: 1; }
.nco-details li { position: relative; padding-left: 22px; color: rgba(255,255,255,.78); font-size: 14px; line-height: 1.45; }
.nco-details li::before { content: ""; position: absolute; left: 1px; top: .48em; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.nco-cta { width: 100%; min-height: 52px; margin-top: auto; padding-inline: 16px; white-space: normal; text-align: center; }
.nco-note { display: grid; grid-template-columns: minmax(180px,.42fr) minmax(0,1fr); gap: 22px; margin-top: 18px; padding: 20px 22px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; background: rgba(255,255,255,.035); }
.nco-note strong { color: #fff; line-height: 1.4; }
.nco-note p { margin: 0; color: rgba(255,255,255,.62); font-size: 13.5px; line-height: 1.55; }
@media(min-width:721px) and (max-width:1199px){
  .nco-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nco-grid--1{grid-template-columns:minmax(0,620px)}
  .nco-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .nco-grid--3 .nco-card:last-child:nth-child(odd){grid-column:1/-1;width:calc((100% - 18px)/2);justify-self:center}
}
@media(max-width:720px){
  .nco-grid,.nco-grid--1,.nco-grid--2{grid-template-columns:1fr;max-width:none}
  .nco-card h3,.nco-fit,.nco-price,.nco-billing{min-height:0}
  .nco-card{padding:22px 19px;border-radius:20px}
  .nco-head h3{font-size:30px}
  .nco-note{grid-template-columns:1fr;gap:8px;padding:18px}
}
@media(prefers-reduced-motion:reduce){.nco *{animation:none!important;transition:none!important}}

/* Карточки-ссылки (инструменты / смежные / блог) на базе .svc */
.svc--link { text-decoration: none; display: flex; flex-direction: column; }
.svc--link .svc__cat { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.svc--link .svc__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--accent); padding-top: 14px; }
.svc--link .svc__more svg { width: 18px; height: 18px; transition: transform .2s ease; }
.svc--link:hover .svc__more svg { transform: translateX(4px); }

/* Прим.: legacy #header на посадочных ДЕМОУЧЕН инлайн-CSS в ленту-якоря (#header .nav → горизонт-скролл,
   всегда видима на всех ширинах). Старое правило скрытия .header .nav на мобиле удалено (единое меню = topbar). */

/* Тост подтверждения заявки (самодостаточно, не зависим от script.min.js) */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #16130e; color: #fff; padding: 14px 22px; border-radius: 12px; font-weight: 700; font-size: 14px; line-height: 1.4; box-shadow: 0 14px 44px rgba(0,0,0,.45); opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease; z-index: 100000; max-width: 90vw; text-align: center; }
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }


/* ==== Единый стиль с хабом (07.07): разделители, reveal, стаггер, видеоотзывы ==== */
/* линия-разделитель между секциями (как .hseam на хабе) */
.hseam { position: relative; }
.hseam::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(1180px, 92%); height: 1px; background: linear-gradient(90deg, transparent, rgba(255,138,92,.28) 18%, rgba(255,138,92,.44) 50%, rgba(255,138,92,.28) 82%, transparent); }

/* reveal-база (is-in добавляет horeca-landing.js; правило .is-in уже в styles.min.css) */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* стаггер карточек внутри сеток */
.services__grid [data-reveal]:nth-child(2), .process__track [data-reveal]:nth-child(2) { transition-delay: .07s; }
.services__grid [data-reveal]:nth-child(3), .process__track [data-reveal]:nth-child(3) { transition-delay: .14s; }
.services__grid [data-reveal]:nth-child(4), .process__track [data-reveal]:nth-child(4) { transition-delay: .21s; }
.services__grid [data-reveal]:nth-child(5) { transition-delay: .28s; }
.services__grid [data-reveal]:nth-child(6) { transition-delay: .35s; }

/* Видеоотзывы на посадочных: четыре карточки — полноценная адаптивная сетка,
   а не ложная карусель с обрезанным четвёртым элементом. */
.lpv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 4px 0; }
.lpv-card { min-width: 0; }
.lpv-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09); border-radius: 20px; overflow: hidden; }
.lpv-frame { position: relative; display: block; aspect-ratio: 333 / 592; }
.lpv-poster { position: absolute; inset: 0; background-size: cover; background-position: center top; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.lpv-card:hover .lpv-poster { transform: scale(1.04); }
.lpv-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; transform: translate(-50%,-50%); transition: transform .25s ease; }
.lpv-card:hover .lpv-play { transform: translate(-50%,-50%) scale(1.08); }
.lpv-info { padding: 18px 20px 20px; }
.lpv-info b { display: block; font-size: 16px; }
.lpv-info span { display: block; font-size: 13px; color: rgba(255,255,255,.55); margin: 3px 0 8px; }
.lpv-info p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(255,255,255,.78); }


/* Кейсы на посадочных — адаптивная сетка без случайной обрезки края. */
.lpc-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 4px 0; }
.lpc-card { position: relative; flex: 0 0 272px; height: 350px; border-radius: 20px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); scroll-snap-align: start; text-decoration: none; color: #fff; }
.lpc-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s cubic-bezier(.22,1,.36,1); }
.lpc-card:hover .lpc-bg { transform: scale(1.05); }
.lpc-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,9,8,.05) 30%, rgba(10,9,8,.88) 78%, rgba(10,9,8,.96) 100%); }
.lpc-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; }
.lpc-info em { font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,196,158,.85); }
.lpc-info b { font-size: 17px; }
.lpc-info strong { font-size: 21px; background: linear-gradient(135deg, #ffc49e, #ff8a5c, #ff6b2b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lpc-info span { font-size: 12.5px; color: rgba(255,255,255,.72); }
.lpc-more { margin-top: 18px; display: flex; justify-content: center; }

/* Родные кейс-карточки хаба внутри сетки посадочных. */
.lpc-track .case { min-width: 0; width: 100%; }

@media (max-width: 1100px) {
  .lpv-grid,
  .lpc-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .hero__cta { margin-bottom: 18px; }
  .lp-chips { margin-bottom: 22px; }
  .lpv-grid,
  .lpc-track { grid-template-columns: 1fr; }
}

/* Симметрия нечётных карточек на планшете: последняя занимает центр второй строки. */
@media (min-width: 621px) and (max-width: 1100px) {
  .services__grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 16px) / 2);
    justify-self: center;
  }
}
@media (max-width: 620px) {
  .services__grid > :last-child:nth-child(odd) { grid-column: auto; width: 100%; }
}

/* Любая декоративная сцена остаётся внутри своей колонки на узких экранах. */
.hero__visual, .hero__media, .hero__art { min-width: 0; overflow: hidden; }
canvas, svg { max-width: 100%; }

/* ── Тематические сцены detail (G3): смысловая геометрия услуги, не декор.
   data-visual-key + собственный SVG на страницу; reduced-motion → дорисованный
   осмысленный кадр. Инжектится генератором в lp-pain (build-landings.py). ── */
/* Ведущая hero-сцена: уникальная hsc-геометрия в открытой композиции. */
.lp-hero-scene--svg{display:flex;align-items:center;justify-content:center}
.lp-hero-scene--svg .hsc{max-width:min(100%,430px)}
/* lp-pain — premium editorial-блок: сцена ушла в hero, текст на осмысленную
   читаемую ширину, без зарезервированной пустой колонки. */
.lp-pain__editorial{max-width:880px}
.hsc{display:block;width:100%;height:auto;color:var(--accent,#ff8a5c);overflow:visible}
.hsc-ring{stroke-width:1.4;opacity:.32}
.hsc-ring--2{opacity:.18}
.hsc-core,.hsc-peak,.hsc-guest{fill:currentColor;stroke:none}
.hsc-core,.hsc-peak{animation:hscPulse 3.2s ease-in-out infinite}
.hsc-guest{opacity:.85}
.hsc-guest--2{animation:hscPulse 3.2s ease-in-out .4s infinite}
.hsc-guest--3{animation:hscPulse 3.2s ease-in-out .8s infinite}
.hsc-path{stroke-width:2;opacity:.55;stroke-dasharray:1;stroke-dashoffset:1;animation:hscDraw 2.2s ease .2s forwards}
.hsc-path--2{animation-delay:.5s}
.hsc-path--3{animation-delay:.8s}
.hsc-bar{stroke-width:6;opacity:.22;stroke-linecap:round}
.hsc-bar--3{opacity:.34}
.hsc-bar--4{opacity:.5}
.hsc-trend{stroke-width:2;opacity:.72;stroke-dasharray:1;stroke-dashoffset:1;animation:hscDraw 1.8s ease 1s forwards}
@keyframes hscDraw{to{stroke-dashoffset:0}}
@keyframes hscPulse{0%,100%{opacity:1}50%{opacity:.42}}
@media(max-width:860px){.lp-hero-scene--svg .hsc{max-width:340px}}
@media(prefers-reduced-motion:reduce){
  .hsc-path,.hsc-trend{stroke-dasharray:none;stroke-dashoffset:0;animation:none}
  .hsc-core,.hsc-peak,.hsc-guest--2,.hsc-guest--3{animation:none;opacity:1}
}

/* Активный пункт второго меню (spy): белый + полный underline, в духе hover detail-меню */
.nav a:not(.nav__cta).is-active { color: #fff; }
.nav a:not(.nav__cta).is-active::after { width: 100%; }
