@charset "UTF-8";
/* Двухколоночный первый экран (вариант 3). Переопределяет .home из style.css */

/* Промо-плашка «Только 11 февраля» по центру шапки */
.main .top .top_case {
  position: relative;
}
.main .top .top_promo {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  background: #F7CB4B;
  color: #2C2C2A;
  font-family: "Mulish";
  font-style: normal;
  font-weight: 800;
  font-size: 15px;
  line-height: 16px;
  letter-spacing: 0.4px;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transform: translate(-50%, -50%);
  animation: promoPulse 2.2s ease-in-out infinite;
}
.main .top .top_promo::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E4353F;
}
@keyframes promoPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .main .top .top_promo { animation: none; }
}
@media (max-width: 900px) {
  .main .top .top_promo {
    font-size: 13px;
    padding: 7px 14px;
  }
}
@media (max-width: 620px) {
  .main .top .top_promo {
    display: none;
  }
}

.main .home {
  background: radial-gradient(120% 120% at 15% 20%, #ff6771 0%, #FF4D5A 45%, #f0424f 100%);
}

/* Сетка: текст слева, фото справа */
.main .home .home_case.tc {
  padding-top: 140px;
  padding-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.main .home .home_case.tc .tc-text {
  text-align: left;
}

.main .home .home_case.tc .home_toStart {
  text-align: left;
}

/* Группа «До начала… / 18 дней»: бейдж центрируется под строкой */
.main .home .home_case.tc .tc-head {
  display: inline-block;
  text-align: center;
}

/* Жирное подчёркивание-маркер, чуть заходящее на нижний край букв */
.main .home .home_case.tc .home_toStart .tc-underline {
  position: relative;
  display: inline-block;
  z-index: 0;
}
.main .home .home_case.tc .home_toStart .tc-underline::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: -1px;
  height: 9px;
  background: #ec4752;
  border-radius: 2px;
  z-index: -1;
}

/* Бейдж «18 дней» */
.main .home .home_case.tc .tc-date {
  display: inline-block;
  font-family: "Mulish";
  font-weight: 700;
  font-size: 34px;
  line-height: 44px;
  color: #fff;
  position: relative;
  transform: rotate(-2deg);
  margin-top: 22px;
  padding: 6px 26px;
  z-index: 2;
}
.main .home .home_case.tc .tc-date::before {
  content: "";
  position: absolute;
  inset: -6px -4px;
  background: #7A3050;
  z-index: -1;
  clip-path: polygon(0 22.98%, 92.62% 0%, 99.82% 76.35%, 4.01% 98.54%);
}
.main .home .home_case.tc .tc-date span {
  display: inline-block;
  transform: rotate(-4deg);
}

/* Скрытые состояния блоков обратного отсчёта (переключаются на бэкенде) */
.main .home .home_case.tc .tc-date.tc-hidden,
.main .home .home_case.tc .tc-timer.tc-hidden {
  display: none;
}

/* Таймер на последние сутки: часы : минуты : секунды */
.main .home .home_case.tc .tc-timer {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
}
/* Цифры и подпись наклонены, фон остаётся ровным */
.main .home .home_case.tc .tc-timer__unit {
  --tc-tilt: 3deg;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.main .home .home_case.tc .tc-timer__unit_minutes {
  --tc-tilt: -3deg;
}
.main .home .home_case.tc .tc-timer__card {
  position: relative;
  overflow: hidden;
  min-width: 76px;
  padding: 14px 10px;
  background: #7A3050;
}
/* Каждая карточка со своим «оборванным» краем — как в макете */
.main .home .home_case.tc .tc-timer__card_hours {
  clip-path: polygon(11.76% 0%, 94.12% 8.51%, 98.04% 100%, 0% 95.74%);
}
.main .home .home_case.tc .tc-timer__card_minutes {
  clip-path: polygon(0% 10.64%, 86.54% 0%, 98.08% 91.49%, 7.69% 97.87%);
}
.main .home .home_case.tc .tc-timer__card_seconds {
  clip-path: polygon(8.16% 0%, 100% 0%, 95.92% 97.83%, 0% 95.65%);
}
.main .home .home_case.tc .tc-timer__num {
  display: block;
  font-family: "Mulish";
  font-weight: 800;
  font-size: 44px;
  line-height: 56px;
  text-align: center;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  transform: rotate(var(--tc-tilt));
}
.main .home .home_case.tc .tc-timer__label {
  margin-top: 10px;
  font-family: "Mulish";
  font-weight: 700;
  font-size: 15px;
  line-height: 18px;
  color: #FFFFFF;
  opacity: 0.85;
  transform: rotate(var(--tc-tilt));
}
.main .home .home_case.tc .tc-timer__card.is-tick .tc-timer__num {
  animation: tcTick 0.35s ease;
}
@keyframes tcTick {
  0% {
    opacity: 0.2;
    transform: translateY(-40%) rotate(var(--tc-tilt));
  }
  100% {
    opacity: 1;
    transform: rotate(var(--tc-tilt));
  }
}
@media (prefers-reduced-motion: reduce) {
  .main .home .home_case.tc .tc-timer__card.is-tick .tc-timer__num {
    animation: none;
  }
}
/* Двоеточие центрируется по высоте карточки: 14px + 56px + 14px */
.main .home .home_case.tc .tc-timer__sep {
  font-family: "Mulish";
  font-weight: 800;
  font-size: 34px;
  line-height: 84px;
  color: #FFFFFF;
  opacity: 0.85;
}

/* «Только 11 февраля» — сразу под бейджем «18 дней» */
.main .home .home_case.tc .tc-dateNote {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  color: #FFFFFF;
  opacity: 0.95;
  margin-top: 16px;
}

/* Заголовок */
.main .home .home_case.tc .tc-title {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500;
  font-size: 84px;
  line-height: 96px;
  color: #FFFFFF;
  margin: 48px 0 0;
}
.main .home .home_case.tc .tc-title .tc-title-sm {
  font-size: 0.5em;
}

/* Цена + бейдж скидки */
.main .home .home_case.tc .tc-priceRow {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-top: 22px;
}
.main .home .home_case.tc .tc-priceOld {
  position: relative;
  font-family: "Mulish";
  font-weight: 700;
  font-size: 30px;
  color: #fff;
  opacity: 0.7;
}
.main .home .home_case.tc .tc-priceOld::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 52%;
  height: 3px;
  background: #fff;
  transform: rotate(-8deg);
}
.main .home .home_case.tc .tc-badge {
  display: inline-block;
  background: #ec4752;
  color: #fff;
  font-family: "Mulish";
  font-weight: 800;
  font-size: 20px;
  padding: 8px 16px;
  border-radius: 10px;
  transform: translateY(-2px) rotate(-6deg);
}

/* Состав */
.main .home .home_case.tc .tc-compound {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 500;
  font-size: 20px;
  line-height: 26px;
  color: #FFFFFF;
  opacity: 0.9;
  margin-top: 16px;
  max-width: 460px;
}

/* Кнопка — прижата влево */
.main .home .home_case.tc .home_btn {
  margin-top: 32px;
  margin-left: 0;
  margin-right: 0;
}

/* Колонка с фото */
.main .home .home_case.tc .tc-img {
  position: relative;
}
.main .home .home_case.tc .tc-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 760px;
  height: 620px;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3) 0%, rgba(255, 77, 90, 0) 68%);
}
.main .home .home_case.tc .home_image {
  position: relative;
  z-index: 2;
  width: 136%;
  max-width: none;
  margin: 56px 0 0 -14%;
  filter: drop-shadow(0 34px 50px rgba(0, 0, 0, 0.45));
}

/* Циклическая смена слова (Скачать/Открыть) — эффект слот-барабана.
   Высота 1lh подстраивается под line-height родителя, поэтому работает
   и в кнопках, и в подписи шага «Как оформить предзаказ?». */
.verb-swap {
  display: inline-block;
  height: 1lh;
  overflow: hidden;
  vertical-align: bottom;
}
.verb-swap__inner {
  display: block;
  animation: verbCycle 5s cubic-bezier(0.7, 0, 0.2, 1) infinite;
}
.verb-swap__inner span {
  display: block;
  height: 1lh;
}
@keyframes verbCycle {
  0%, 22%   { transform: translateY(0); }
  28%, 55%  { transform: translateY(-33.333%); }
  61%, 94%  { transform: translateY(-66.666%); }
  100%      { transform: translateY(-66.666%); }
}
@media (prefers-reduced-motion: reduce) {
  .verb-swap__inner { animation: none; }
}

/* Подпись под кнопкой */
.main .home .home_case.tc .tc-note {
  font-family: "Mulish";
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
  line-height: 20px;
  text-align: center;
  color: #FFFFFF;
  opacity: 0.92;
  margin-top: 12px;
  width: 313px;
}

/* Контент первого экрана — выше декоративных роллов */
.main .home .container {
  position: relative;
  z-index: 3;
}

/* Уменьшаем нижний паттерн роллов и уводим его под контент */
.main .home .home_roll {
  transform: scale(0.72);
  transform-origin: center bottom;
  margin-top: -300px;
  position: relative;
  z-index: 1;
}

/* Бегущие строки позиционируются absolute — делаем .how контейнером и
   обрезаем их наклонённые края, иначе появляется горизонтальный скролл */
.main .how {
  position: relative;
  overflow: hidden;
}

/* ============ Адаптив ============ */

/* ---------- Планшет (≤992px): секции ниже первого экрана ---------- */
@media (max-width: 992px) {
  /* Заголовки секций */
  .main .title {
    font-size: 48px;
    line-height: 60px;
  }

  /* «Почему нужно заказать» — остаётся в ряд, но компактнее */
  .main .why .why_case .why_box {
    gap: 16px;
  }
  .main .why .why_case .why_box .why_case svg {
    width: 72px;
    height: 72px;
  }
  .main .why .why_case .why_box .why_case span {
    font-size: 20px;
    line-height: 26px;
  }

  /* «Как оформить предзаказ» — остаётся в ряд, компактнее */
  .main .how {
    padding-top: 120px;
    padding-bottom: 210px;
  }
  .main .how .how_container .how_box {
    gap: 16px;
  }
  .main .how .how_container .how_box .how_case svg {
    width: 72px;
    height: 72px;
  }
  .main .how .how_container .how_box .how_case span {
    font-size: 18px;
    line-height: 24px;
  }

  /* Q&A */
  .main .qa .qa_case .qa_container .qa_box .qa_box_top .qa_box_title {
    font-size: 20px;
    line-height: 26px;
  }
  .main .qa .qa_case .qa_container .qa_box .qa_box_bottom {
    font-size: 16px;
    line-height: 22px;
  }
}

/* ---------- Первый экран: одна колонка (≤900px) ---------- */
@media (max-width: 900px) {
  .main .home .home_case.tc {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 120px;
    gap: 8px;
  }
  .main .home .home_case.tc .tc-text {
    text-align: center;
  }
  .main .home .home_case.tc .home_toStart {
    text-align: center;
  }
  .main .home .home_case.tc .tc-title {
    font-size: 64px;
    line-height: 74px;
    margin-top: 32px;
  }
  .main .home .home_case.tc .tc-priceRow {
    justify-content: center;
  }
  .main .home .home_case.tc .tc-compound {
    margin-left: auto;
    margin-right: auto;
  }
  .main .home .home_case.tc .home_btn {
    margin-left: auto;
    margin-right: auto;
  }
  .main .home .home_case.tc .tc-note {
    margin-left: auto;
    margin-right: auto;
  }
  .main .home .home_case.tc .tc-glow {
    width: 460px;
    height: 380px;
  }
  .main .home .home_case.tc .home_image {
    width: 100%;
    max-width: 560px;
    margin: 8px auto 0;
  }
}

/* ---------- Смартфон (≤600px) ---------- */
@media (max-width: 600px) {
  .main .title {
    font-size: 34px;
    line-height: 42px;
  }

  /* Первый экран крупнее */
  .main .home .home_case.tc {
    padding-top: 104px;
  }
  .main .home .home_case.tc .tc-title {
    font-size: 52px;
    line-height: 60px;
    margin-top: 28px;
  }
  .main .home .home_case.tc .home_toStart {
    font-size: 18px;
    line-height: 24px;
  }
  .main .home .home_case.tc .tc-date {
    font-size: 28px;
    line-height: 34px;
  }
  .main .home .home_case.tc .tc-timer {
    gap: 8px;
    margin-top: 18px;
  }
  .main .home .home_case.tc .tc-timer__card {
    min-width: 58px;
    padding: 10px 8px;
  }
  .main .home .home_case.tc .tc-timer__num {
    font-size: 32px;
    line-height: 42px;
  }
  .main .home .home_case.tc .tc-timer__label {
    margin-top: 8px;
    font-size: 13px;
    line-height: 16px;
  }
  .main .home .home_case.tc .tc-timer__sep {
    font-size: 24px;
    line-height: 62px;
  }
  .main .home .home_case.tc .tc-priceOld {
    font-size: 24px;
  }
  .main .home .home_case.tc .tc-badge {
    font-size: 18px;
  }
  .main .home .home_case.tc .tc-compound {
    font-size: 16px;
    line-height: 22px;
  }
  /* Свечение вписываем в размер фото, чтобы не вылезало за экран
     (контейнер не обрезаем, иначе мягкая тень фото режется в рамку) */
  .main .home .home_case.tc .tc-glow {
    width: 100%;
    height: 100%;
  }

  /* «Почему» — 2 в ряд, меньше отступ от заголовка */
  .main .why .why_case .why_box {
    margin-top: 32px;
    flex-wrap: wrap;
    gap: 28px 16px;
    justify-content: space-around;
  }
  .main .why .why_case .why_box .why_case {
    width: 45%;
  }
  .main .why .why_case .why_box .why_case svg {
    width: 56px;
    height: 56px;
  }
  .main .why .why_case .why_box .why_case span {
    font-size: 18px;
    line-height: 24px;
  }

  /* «Как» — по одному пункту в строку, больше воздуха сверху */
  .main .how {
    padding-top: 128px;
    padding-bottom: 150px;
  }
  .main .how .how_container .how_box {
    margin-top: 36px;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 36px;
  }
  .main .how .how_container .how_box .how_case {
    width: 100%;
  }
  .main .how .how_container .how_box .how_case svg {
    width: 64px;
    height: 64px;
  }
  .main .how .how_container .how_box .how_case span {
    font-size: 20px;
    line-height: 26px;
  }

  /* Карта — в 1,5 раза выше */
  .main .pickup .pickup_case .pickup_cart {
    height: 480px;
  }

  /* Q&A компактнее */
  .main .qa {
    padding-bottom: 64px;
  }
  .main .qa .qa_case .qa_container .qa_box .qa_box_top .qa_box_title {
    font-size: 16px;
    line-height: 22px;
  }
  .main .qa .qa_case .qa_container .qa_box .qa_box_top .qa_box_cross {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }
  .main .qa .qa_case .qa_container .qa_box .qa_box_bottom {
    font-size: 14px;
    line-height: 20px;
  }

  /* Блок предзаказа: кнопка не должна упираться в белую подложку */
  .main .preOrder {
    padding-bottom: 96px;
  }
  .main .preOrder .preOrder_case::before {
    left: 12px;
    top: 12px;
  }
  .main .preOrder .preOrder_case .preOrder_container {
    padding-top: 32px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 32px;
  }
  .main .preOrder .preOrder_case .preOrder_container .preOrder_title {
    margin-bottom: 32px;
  }

  /* Футер: чёрный фон на всю высоту (начинается с логотипа), контент по центру */
  .main footer::before {
    height: 100%;
    clip-path: polygon(0 100%, 0 0, 100% 10%, 100% 100%);
  }
  .main footer .footer_case {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
    padding-top: 48px;
  }
  .main footer .footer_case > div {
    align-items: center;
  }
  .main footer .footer_case > div .soc {
    justify-content: center;
  }
  .main footer .footer_case > div > span {
    margin-top: 16px;
  }
}

/* ============ Модалка скачивания приложения ============ */
body.app-modal-open {
  overflow: hidden;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.app-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.app-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 77, 90, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.app-modal__panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  background: #FFFFFF;
  border-radius: 0;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.28s ease;
}
.app-modal.is-open .app-modal__panel {
  transform: none;
}

.app-modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.app-modal__close:hover {
  opacity: 0.88;
}

.app-modal__inner {
  padding: 40px;
}

.app-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 36px;
}

.app-modal__title {
  margin: 0;
  flex: 1;
  font-family: "Unbounded", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 36px;
  line-height: 44px;
  color: #2C2C2A;
}

.app-modal__qr {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  display: block;
  object-fit: contain;
}

.app-modal__stores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.app-modal__store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  height: 48px;
  min-height: 48px;
  padding: 0 12px;
  background: #4A7C59;
  color: #FFFFFF;
  text-decoration: none;
  font-family: "Mulish", sans-serif;
  font-weight: 800;
  font-size: 15px;
  line-height: 18px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.app-modal__store:hover {
  background: #3f6b4c;
}
.app-modal__store-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/* Планшет: QR под заголовком, кнопки столбиком */
@media (max-width: 900px) {
  .app-modal {
    padding: 48px 24px 24px;
  }
  .app-modal__panel {
    width: min(480px, 100%);
  }
  .app-modal__inner {
    padding: 36px 28px 28px;
  }
  .app-modal__top {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    margin-bottom: 28px;
  }
  .app-modal__title {
    font-size: 28px;
    line-height: 36px;
    text-align: left;
  }
  .app-modal__qr {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
  .app-modal__stores {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Смартфон: нижний лист, без QR, крестик по центру сверху */
@media (max-width: 600px) {
  .app-modal {
    align-items: flex-end;
    padding: 56px 0 0;
  }
  .app-modal__panel {
    width: 100%;
    overflow: visible;
    transform: translateY(24px);
  }
  .app-modal.is-open .app-modal__panel {
    transform: none;
  }
  .app-modal__close {
    top: -52px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 2;
  }
  .app-modal__inner {
    padding: 40px 20px 28px;
    max-height: calc(92vh - 56px);
    overflow: auto;
  }
  .app-modal__top {
    margin-bottom: 28px;
  }
  .app-modal__title {
    font-size: 24px;
    line-height: 32px;
    text-align: center;
  }
  .app-modal__qr {
    display: none;
  }
  .app-modal__stores {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-modal,
  .app-modal__panel {
    transition: none;
  }
}
