/* Главная страница, макет 2026-09. Подключается только на / (см. mainpage/index.php).
   Все селекторы с префиксом hv2- и внутри .hv2-page: site.css задаёт стили для
   section/h2/ul/button глобально, без изоляции вёрстка разъезжается.
   Шапку и подвал этот файл не трогает — они общие с /business/, /hot-sandwiches/, /landing/.
   Эффекты (появление блоков при прокрутке, смена роликов) — home-v2.js; классы
   .hv2-reveal / .is-visible / .is-rotating ставит он. */

.hv2-page {
  --hv2-ink: #171717;
  --hv2-muted: #6c6a66;
  --hv2-paper: #f6f1e9;
  --hv2-red: #e94a3d;
  --hv2-line: #ddd5ca;
  --hv2-chilled: #e8f1f7;
  --hv2-frozen: #e8f0ff;
  --hv2-hot: #fff0df;
  --hv2-radius: 30px;

  background: var(--hv2-paper);
  color: var(--hv2-ink);
  font-family: "Manrope", -apple-system, "Segoe UI", Arial, sans-serif;
}

.hv2-page *,
.hv2-page *::before,
.hv2-page *::after { box-sizing: border-box; }

.hv2-page a { color: inherit; text-decoration: none; }
.hv2-page img { display: block; max-width: 100%; }
.hv2-page h1,
.hv2-page h2,
.hv2-page h3 { font-weight: 800; }

/* один в один с .wrap из site.css — иначе левый край контента не совпадает
   с логотипом в шапке и колонками в подвале */
.hv2-shell { width: min(1428px, calc(100% - 96px)); margin: 0 auto; }

.hv2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid var(--hv2-ink);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  transition: transform .12s, background .15s, color .15s;
}
.hv2-btn:hover { transform: translateY(-1px); color: inherit; }
.hv2-btn:active { transform: translateY(0) scale(.98); }
.hv2-btn-lg { padding: 17px 28px; font-size: 16px; }
.hv2-btn-red { background: var(--hv2-red); border-color: var(--hv2-red); color: #fff; }
.hv2-btn-red:hover { background: #d63f33; border-color: #d63f33; color: #fff; }

/* ---------- общие части секций ---------- */

.hv2-section { padding: 60px 0; }
.hv2-hero { padding-top: 40px; }

.hv2-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hv2-eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 4px;
  background: var(--hv2-red);
  border-radius: 9px;
  margin-right: 10px;
  vertical-align: middle;
}

.hv2-page h1 {
  font-size: clamp(40px, 4.6vw, 66px);
  line-height: 1.02;
  letter-spacing: -2.6px;
  margin: 0;
  color: var(--hv2-ink);
}
.hv2-page h2 {
  font-size: clamp(34px, 3.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -2px;
  margin: 0;
  color: inherit;
  text-transform: none;
}
.hv2-page h3 {
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -1.1px;
  margin: 0;
  color: inherit;
  text-transform: none;
}

.hv2-lead { font-size: 20px; line-height: 1.5; color: #4f4d49; max-width: 56ch; margin: 22px 0 28px; }

.hv2-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
}
.hv2-section-head > p { font-size: 18px; line-height: 1.5; color: var(--hv2-muted); max-width: 42ch; margin: 0; }

.hv2-section-number {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--hv2-red);
  margin-bottom: 16px;
}

/* ---------- 0. появление блоков при прокрутке ----------
   Класс .hv2-reveal стоит в разметке, .is-visible ставит home-v2.js, когда блок
   показался на экране. Прячем только при работающих скриптах (html.se-js из
   header.php): без JS всё видно сразу. Первый экран не прячем никогда — это
   самая важная картинка страницы, и её нельзя задерживать. */
.se-js .hv2-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.se-js .hv2-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .se-js .hv2-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 1. герой ---------- */

.hv2-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hv2-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hv2-hero-media { position: relative; }
/* пропорции 4:3 — как у самого снимка, чтобы края композиции не срезались */
.hv2-hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 34px;
  background: #efe7dc;
}

.hv2-badge {
  position: absolute;
  background: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
}
.hv2-badge-top { left: 22px; top: 22px; }
.hv2-badge-bottom { right: 22px; bottom: 22px; background: var(--hv2-red); color: #fff; }

/* Первый экран оживает при загрузке: текст поднимается строка за строкой, фото
   чуть «наезжает», плашки на нём медленно покачиваются. Только transform —
   прозрачность фото не трогаем, чтобы не отодвигать отрисовку главной картинки. */
@media (prefers-reduced-motion: no-preference) {
  .hv2-hero-copy > * { animation: hv2-up .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hv2-hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hv2-hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hv2-hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hv2-hero-media img { animation: hv2-zoom 1.4s cubic-bezier(.2, .7, .2, 1) both; }
  .hv2-badge { animation: hv2-float 6s ease-in-out infinite; }
  .hv2-badge-bottom { animation-delay: -3s; }
  .hv2-stat { animation: hv2-up .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: .35s; }
  .hv2-stat:nth-child(2) { animation-delay: .45s; }
  .hv2-stat:nth-child(3) { animation-delay: .55s; }
}
@keyframes hv2-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes hv2-zoom {
  from { transform: scale(1.035); }
  to { transform: none; }
}
@keyframes hv2-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hv2-stats { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hv2-line); }
.hv2-stat { padding: 24px 26px 4px 0; }
.hv2-stat + .hv2-stat { border-left: 1px solid var(--hv2-line); padding-left: 26px; }
.hv2-stat strong { display: block; font-size: 28px; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; }
.hv2-stat span { font-size: 14px; line-height: 1.4; color: var(--hv2-muted); }

/* ---------- 2. три направления ---------- */

.hv2-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.hv2-line-card {
  border-radius: var(--hv2-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, opacity .7s ease;
}
/* Снимки сняты на фоне того же цвета, что и плашка, поэтому кадр не выглядит
   вклейкой. Квадрат: на более широком кадре срезает верх бургера и круассана. */
.hv2-line-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 20px;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.hv2-line-body { margin-top: auto; }
.hv2-line-card:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -18px rgba(23, 19, 16, .28); }
.hv2-line-card:hover .hv2-line-photo { transform: scale(1.035); }
.hv2-line-card:hover .hv2-arrow { background: var(--hv2-ink); color: #fff; transform: translate(3px, -3px); }
.hv2-chilled { background: var(--hv2-chilled); }
.hv2-frozen { background: var(--hv2-frozen); }
.hv2-hot { background: var(--hv2-hot); }

.hv2-line-top { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.hv2-line-body h3 { margin-bottom: 14px; }
.hv2-line-body p { font-size: 17px; line-height: 1.5; color: #555; max-width: 30ch; margin: 0; }

.hv2-arrow {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--hv2-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: none;
  transition: background .3s ease, color .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 3. ассортимент с видео ---------- */

.hv2-dark {
  background: radial-gradient(1100px 520px at 84% -12%, #33302b 0%, rgba(51, 48, 43, 0) 65%), var(--hv2-ink);
  color: #fff;
}
.hv2-dark .hv2-section-head > p { color: #b3b0ab; }

.hv2-assort-grid { display: grid; grid-template-columns: 1.32fr .68fr; gap: 24px; align-items: start; }

/* Два слоя <video> друг над другом; видимый — .is-front. Следующий ролик грузится
   в нижний слой и проявляется поверх за полсекунды, без рывка и притемнения. */
.hv2-assort-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--hv2-radius);
  overflow: hidden;
  background: #252525;
  /* Safari до 15.4 без aspect-ratio: высоту зададут сами слои */
}
.hv2-assort-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .55s ease;
}
.hv2-assort-video.is-front { opacity: 1; }

/* Кнопка «запустить»: видна только когда автозапуск не сработал (класс needs-tap
   ставит home-v2.js). Белый круг по центру, мягко пульсирует, чтобы её заметили. */
.hv2-assort-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 76px;
  height: 76px;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--hv2-ink);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .35);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background .15s ease;
}
.hv2-assort-media.needs-tap .hv2-assort-play { display: flex; }
.hv2-assort-play svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.hv2-assort-play:hover { background: #fff; transform: scale(1.05); }
.hv2-assort-play:active { transform: scale(.96); }
@media (prefers-reduced-motion: no-preference) {
  .hv2-assort-media.needs-tap .hv2-assort-play { animation: hv2-pulse 2.4s ease-in-out infinite; }
}
@keyframes hv2-pulse {
  0%, 100% { box-shadow: 0 12px 34px rgba(0, 0, 0, .35), 0 0 0 0 rgba(255, 255, 255, .45); }
  50% { box-shadow: 0 12px 34px rgba(0, 0, 0, .35), 0 0 0 16px rgba(255, 255, 255, 0); }
}

.hv2-panel {
  height: 100%;
  background: #232323;
  border-radius: var(--hv2-radius);
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.hv2-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hv2-pills button {
  font: inherit;
  font-size: 15px;
  line-height: 1.2;
  color: #fff;
  background: transparent;
  border: 1px solid #565656;
  border-radius: 999px;
  padding: 11px 17px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.hv2-pills button:hover { border-color: #8f8f8f; background: #2c2c2c; }
.hv2-pills button:focus-visible { outline: 2px solid var(--hv2-red); outline-offset: 2px; }
.hv2-pills button:active { transform: scale(.97); }
.hv2-pills button.is-active { background: var(--hv2-red); border-color: var(--hv2-red); color: #fff; font-weight: 700; }
/* полоска внизу активной кнопки показывает, когда сменится ролик (7 с, как в home-v2.js) */
.hv2-pills button { position: relative; overflow: hidden; }
.hv2-pills button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, .55);
  transform: scaleX(0);
  transform-origin: left;
}
.hv2-pills.is-rotating button.is-active::after { animation: hv2-progress 7s linear forwards; }
@keyframes hv2-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .hv2-pills button::after { display: none; }
}

.hv2-panel-bottom {
  padding-top: 26px;
  border-top: 1px solid #464646;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hv2-panel-bottom p { font-size: 15px; line-height: 1.5; color: #bbb; max-width: 34ch; margin: 0; }

/* ---------- 4. запуск ---------- */

.hv2-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.hv2-benefit {
  background: #fff;
  border: 1px solid #eee8df;
  border-radius: 26px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease, opacity .7s ease;
}
.hv2-benefit:hover { transform: translateY(-5px); border-color: #e4dccf; box-shadow: 0 22px 44px -20px rgba(23, 19, 16, .25); }
.hv2-benefit:hover .hv2-benefit-photo { transform: scale(1.025); }
.hv2-num { font-size: 13px; font-weight: 800; color: var(--hv2-red); letter-spacing: 1px; }
/* Снимки сняты в 4:3 — показываем как есть, без обрезки */
.hv2-benefit-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  margin: 16px 0 20px;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
/* Раньше заголовок прижимался к низу карточки (margin-top:auto) — это было нужно,
   пока карточка была пустой. Теперь высоту задаёт снимок, и от прижима заголовки
   в ряду разъезжались: описание в две строки тянуло свой заголовок вверх. */
.hv2-benefit h3 { font-size: 24px; margin-bottom: 12px; }
.hv2-benefit p { font-size: 16px; line-height: 1.5; color: var(--hv2-muted); margin: 0; }

/* ---------- 5. доставка и оплата ---------- */

.hv2-conditions { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.hv2-condition { border-radius: var(--hv2-radius); padding: 40px; background: #fff; border: 1px solid #eee8df; }
.hv2-condition h3 { font-size: 36px; letter-spacing: -1.4px; }
.hv2-condition > p { font-size: 17px; line-height: 1.5; color: var(--hv2-muted); margin: 16px 0 30px; }

.hv2-condition ul { list-style: none; padding: 0; margin: 0; }
.hv2-condition li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgba(0, 0, 0, .1);
  font-size: 17px;
}
.hv2-condition li::before { content: none; }
.hv2-condition li b { font-weight: 700; }
.hv2-condition li span { text-align: right; color: var(--hv2-muted); }

.hv2-condition.hv2-red { background: var(--hv2-red); color: #fff; border-color: var(--hv2-red); }
.hv2-condition.hv2-red > p { color: rgba(255, 255, 255, .85); }
.hv2-condition.hv2-red li { border-color: rgba(255, 255, 255, .3); }
.hv2-condition.hv2-red li span { color: rgba(255, 255, 255, .9); }

.hv2-week { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; }
.hv2-week span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.hv2-week span.off { opacity: .35; }

/* ---------- 6. форма ---------- */

.hv2-contact-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 40px; align-items: stretch; }

.hv2-cta-box {
  background: #f0e7dc;
  border-radius: 34px;
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hv2-cta-box h2 { margin-bottom: 20px; }
.hv2-cta-box p { font-size: 18px; line-height: 1.55; color: var(--hv2-muted); margin: 0; }

.hv2-form {
  background: #fff;
  border-radius: 28px;
  padding: 30px;
  display: grid;
  gap: 14px;
  align-content: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .06);
}
/* Подписей над полями больше нет — название поля живёт в самой подсказке */
.hv2-form label { display: block; margin: 0; }
.hv2-form input,
.hv2-form select {
  width: 100%;
  height: 56px;
  border: 1px solid #ddd6cc;
  border-radius: 14px;
  padding: 0 16px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 15px;
}
.hv2-form input:focus,
.hv2-form select:focus { outline: 2px solid var(--hv2-red); outline-offset: 1px; border-color: var(--hv2-red); }

/* Согласие на обработку персональных данных.
   Флажок настоящий и видимый: если спрятать его через display:none, браузер
   не может показать на нём подсказку «Установите этот флажок». */
.hv2-agree {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: #6f6a62;
  cursor: pointer;
}
.hv2-agree input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--hv2-red);
  flex: none;
  cursor: pointer;
}
.hv2-agree a { text-decoration: underline; }
.hv2-agree a:hover { color: var(--hv2-red); }

.hv2-submit {
  height: 58px;
  margin-top: 6px;
  border: none;
  border-radius: 14px;
  background: var(--hv2-red);
  color: #fff;
  font: inherit;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.hv2-submit:hover { background: #d63f33; }
.hv2-submit:active { transform: scale(.985); }
.hv2-form small { font-size: 12px; line-height: 1.45; color: #999; }
.hv2-form-legal { display: block; margin-top: 8px; color: #aaa; }
.hv2-form-legal a { text-decoration: underline; }

/* ---------- планшет ---------- */

@media (max-width: 1180px) {
  .hv2-shell { width: calc(100% - 48px); }
  .hv2-section { padding: 48px 0; }
  .hv2-hero-grid,
  .hv2-assort-grid,
  .hv2-contact-grid,
  .hv2-conditions { grid-template-columns: 1fr; }
  .hv2-contact-grid { gap: 28px; }
  .hv2-grid-3 { grid-template-columns: 1fr 1fr; }
  .hv2-benefits { grid-template-columns: 1fr 1fr; }
  .hv2-section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ---------- телефон ---------- */

@media (max-width: 760px) {
  .hv2-shell { width: calc(100% - 28px); }
  .hv2-section { padding: 38px 0; }
  .hv2-page h1 { letter-spacing: -1.6px; }
  .hv2-page h2 { letter-spacing: -1.4px; }
  .hv2-lead { font-size: 18px; }
  .hv2-grid-3, .hv2-benefits { grid-template-columns: 1fr; }
  .hv2-stats { grid-template-columns: 1fr; }
  .hv2-stat { padding: 20px 0 4px; }
  .hv2-stat + .hv2-stat { border-left: 0; border-top: 1px solid var(--hv2-line); padding-left: 0; }
  .hv2-line-card { gap: 18px; }
  .hv2-condition, .hv2-panel { padding: 28px; }
  .hv2-cta-box { padding: 26px 20px; }
  /* «Прайс-лист и доступ на сайт» — одной строкой, размер подбирается под экран */
  .hv2-cta-box h2 { font-size: clamp(14px, 4.7vw, 30px); white-space: nowrap; letter-spacing: -.03em; }
  /* Без min-width:0 элемент сетки не может стать уже своего содержимого:
     заголовок в одну строку и длинные слова в карточках распирали блоки
     за край экрана на узких телефонах (320 px). */
  .hv2-contact-grid > *,
  .hv2-grid-3 > *,
  .hv2-benefits > *,
  .hv2-conditions > * { min-width: 0; }
  .hv2-condition h3 { font-size: 30px; }
  .hv2-condition li { flex-direction: column; gap: 4px; }
  .hv2-condition li span { text-align: left; }
  .hv2-pills button { font-size: 14px; padding: 10px 15px; }
}

/* ---------- «уменьшить движение» в системе: без подъёмов и масштабирования ---------- */
@media (prefers-reduced-motion: reduce) {
  .hv2-btn, .hv2-line-card, .hv2-line-photo, .hv2-arrow, .hv2-benefit, .hv2-benefit-photo, .hv2-submit, .hv2-assort-video { transition: none; }
  .hv2-line-card:hover, .hv2-benefit:hover, .hv2-line-card:hover .hv2-line-photo, .hv2-benefit:hover .hv2-benefit-photo { transform: none; }
}
