

/* Start:/local/templates/pizziroll/template_styles.css?1793170182115332*/
/* ========== VARIABLES ========== */
:root {
  --orange: #E84C4F;
  --orange-hover: #D43D40;
  --orange-light: #FDE8E8;
  --orange-bg: #FFF0F0;
  --dark: #1B2D5B;
  --gray-900: #333;
  --gray-700: #5C5C5C;
  --gray-500: #999;
  --gray-400: #B0B0B0;
  --gray-300: #D2D2D2;
  --gray-200: #E5E5E5;
  --gray-100: #F0F0F0;
  --gray-50: #F9F9F9;
  --white: #FFFFFF;
  --green: #24B23E;
  --red: #F33;
  --font: 'Nunito', sans-serif;
  --max-w: 1240px;
  --header-h: 64px;
  --topbar-h: 36px;
  --catnav-h: 48px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 16px;
}

/* ========== RESET ========== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top: calc(var(--catnav-h) + 20px); }
body { font-family:var(--font); color:var(--dark); background:var(--white); -webkit-font-smoothing:antialiased; line-height:1.45; }
a { color:inherit; text-decoration:none; }
button { font-family:inherit; cursor:pointer; border:none; background:none; }
ul { list-style:none; }
img { display:block; max-width:100%; }

/* ========== TOP BAR ========== */
.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  font-size: 13px;
  color: var(--gray-700);
}
.topbar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.topbar__link {
  transition: color .15s;
}
.topbar__link:hover { color: var(--orange); }
.topbar__link.active { color: var(--orange); font-weight: 700; }
.topbar__dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--red); flex-shrink:0;
  margin-right: -18px;
}

/* ========== HEADER ========== */
.header {
  height: var(--header-h);
  background: var(--white);
  position: relative;
  z-index: 100;
}
.header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.header__logo-img { width: 48px; height: 48px; object-fit: contain; display: block; }
.header__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.header__brand-name {
  font-size: 17px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.header__brand-sub {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 600;
}
.header__brand-sub span { color: var(--orange); }
.header__delivery {
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.header__delivery-label {
  font-size: 13px;
  color: var(--gray-700);
}
.header__delivery-city {
  font-size: 14px;
  font-weight: 800;
  color: var(--orange);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 2px;
}
.header__delivery-city:hover { text-decoration: underline; }
.header__delivery-meta {
  font-size: 12px; color: var(--gray-500); font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.header__delivery-meta .star { color: var(--orange); }
.header__spacer { flex:1; }
.header__coins {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  font-size: 11px;
  color: var(--gray-700);
  gap: 2px;
}
.header__coins-icon {
  width: 28px;
  height: 28px;
  background: var(--orange-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.header__login {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  color: var(--gray-700);
  cursor: pointer;
  gap: 2px;
}
.header__login-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== CATEGORY NAV ========== */
.catnav {
  height: var(--catnav-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: background .3s, box-shadow .3s, border-color .3s;
}
/* Прилипшее меню — матовое стекло. Слой стекла вынесен в ::before и продлён вверх: на iOS страница
   прокручивается под панелью браузера (Safari, Telegram), там тоже должно быть стекло, а не контент. */
.catnav.scrolled {
  background: transparent;
  border-bottom-color: rgba(27,45,91,.08);
  box-shadow: 0 6px 24px rgba(27,45,91,.08);
}
.catnav.scrolled::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: -120px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.62), rgba(255,255,255,.74));
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.6);
  pointer-events: none;
}
.catnav__mascot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 36px;
  margin-right: 0;
  width: 0;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .25s, transform .25s, width .25s, margin .25s;
  pointer-events: none;
}
.catnav__mascot img { width: 36px; height: 36px; object-fit: contain; display: block; }
.catnav.scrolled .catnav__mascot {
  width: 36px;
  margin-right: 8px;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.catnav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}
.catnav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.catnav__links::-webkit-scrollbar { display:none; }
.catnav__link {
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  border-radius: var(--radius-pill);
  transition: all .15s;
}
.catnav__link:hover { background: var(--gray-100); }
.catnav__link.active { color: var(--orange); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.catnav__dot {
  width: 5px;
  height: 5px;
  background: #1B2D5B;
  border-radius: 50%;
  flex-shrink: 0;
  margin: 0 4px;
}
.catnav__link--accent { color: var(--dark); }
.catnav__cart {
  margin-left: 12px;
  padding: 10px 24px;
  background: var(--orange);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.catnav__cart:hover { background: var(--orange-hover); }

/* ========== CONTAINER ========== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ========== FEATURED SECTION ========== */
.featured { padding: 24px 0 0; }
.featured__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ========== PRODUCT CARD ========== */
.pcard {
  cursor: pointer;
  transition: transform .2s;
}
@media (hover: hover) {
  .pcard:hover { transform: translateY(-3px); }
  .pcard:hover .pcard__img { transform: scale(1.05); }
}
.pcard__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcard__img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--gray-50);
  transition: transform .3s ease;
}
.pcard__img-wrap { overflow: hidden; border-radius: var(--radius); }
.pcard__weight {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-700);
  white-space: nowrap;
}
.pcard__badge {
  position: absolute;
  bottom: 8px;
  left: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  color: var(--white);
}
.pcard__badge--new { background: var(--orange); }
.pcard__badge--hit { background: var(--green); }
.pcard__name {
  font-size: 18px;
  font-weight: 800;
  margin: 8px 0 4px;
  line-height: 1.25;
}
.pcard__desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard__price-btn {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid var(--orange);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  color: var(--orange);
  background: var(--white);
  transition: all .15s;
}
@media (hover: hover) {
  .pcard__price-btn:hover:not(:disabled) { background: var(--orange); color: var(--white); }
}

/* ========== STORIES (news.list/pir_stories, окно просмотра — script.js) ========== */
.stories { padding: 20px 0 0; }
.stories__row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 3px 3px 4px;
  margin: -3px -3px 0;
}
.stories__row::-webkit-scrollbar { display:none; }
.stories__tile {
  flex: 0 0 116px;
  height: 154px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  padding: 0;
  border: 0;
  background: var(--gray-200);
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--orange);
  margin: 2px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.stories__tile.seen { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--gray-300); }
.stories__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stories__tile::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.stories__name {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  z-index: 1;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: left;
}
@media (hover: hover) { .stories__tile:hover { transform: scale(1.03); } }
@media (max-width: 480px) { .stories__tile { flex-basis: 100px; height: 132px; } }

html.story-open, html.story-open body { overflow: hidden; }
.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(10, 12, 20, .92);
  touch-action: none;
}
.story-viewer.open { display: flex; }
.story-viewer__frame {
  position: relative;
  height: min(100dvh - 48px, 860px);
  aspect-ratio: 9 / 16;
  max-width: 100vw;
  border-radius: 16px;
  overflow: hidden;
  background: #222;
  user-select: none;
  -webkit-user-select: none;
}
.story-viewer__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
  transition: opacity .15s;
}
.story-viewer.loading .story-viewer__img { opacity: .4; }
.story-viewer__bars {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  gap: 4px;
}
.story-viewer__bars span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.35);
  overflow: hidden;
}
.story-viewer__bars i { display: block; height: 100%; width: 0; background: var(--white); }
.story-viewer__close {
  position: absolute;
  top: 22px;
  right: 10px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.story-viewer__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 60px 20px 92px;
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  pointer-events: none;
}
.story-viewer__button {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 20px;
  z-index: 2;
  height: 52px;
  border-radius: 26px;
  background: var(--white);
  color: var(--navy, #1B2D5B);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
}
.story-viewer__button:hover { background: #f3f3f3; color: var(--navy, #1B2D5B); }
.story-viewer__caption[hidden], .story-viewer__button[hidden] { display: none; }
.story-viewer__nav[hidden] { display: block; visibility: hidden; }
.story-viewer__nav {
  flex: 0 0 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: var(--white);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.story-viewer__nav--prev { order: -1; }
.story-viewer__nav:hover { background: rgba(255,255,255,.28); }
@media (max-width: 600px) {
  .story-viewer { background: #000; gap: 0; }
  .story-viewer__frame { height: 100dvh; width: 100vw; aspect-ratio: auto; border-radius: 0; }
  .story-viewer__nav, .story-viewer__nav[hidden] { display: none; }
  .story-viewer__bars { top: calc(8px + env(safe-area-inset-top)); }
  .story-viewer__close { top: calc(20px + env(safe-area-inset-top)); }
  .story-viewer__button { bottom: calc(20px + env(safe-area-inset-bottom)); }
}

/* ========== OFTEN ORDERED ========== */
.often { padding: 24px 0 4px; }
.often__title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 14px;
}
.often__row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.often__row::-webkit-scrollbar { display:none; }
.often__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.often__item:hover { border-color: var(--orange); box-shadow: 0 2px 8px rgba(255,105,0,0.08); }
.often__item-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}
.often__item-name {
  font-size: 14px;
  font-weight: 700;
}
.often__item-price {
  font-size: 13px;
  color: var(--gray-500);
}

/* ========== PRODUCT SECTION ========== */
.psection { padding: 28px 0 8px; }
.psection__title {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 18px;
}
.psection__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.psection__text {
  max-width: 820px;
  margin-top: 40px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-700);
}
.psection__text h2 { font-size: 20px; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; }
.psection__text p { margin-bottom: 10px; }
.psection__text a { color: inherit; text-decoration: underline; }

/* ========== PRODUCT MODAL ========== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: 20px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  position: relative;
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity:0; transform: scale(0.95) translateY(12px); }
  to { opacity:1; transform: scale(1) translateY(0); }
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background .15s;
}
.modal__close:hover { background: var(--gray-200); }
.modal__left {
  flex: 0 0 48%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 32px 32px;
}
.modal__pizza-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
}
.modal__right {
  flex: 1;
  padding: 32px 32px 28px 16px;
  display: flex;
  flex-direction: column;
}
.modal__name {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 6px;
}
.modal__specs {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.modal__ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-700);
}
.modal__ingredient-removable {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 8px;
  background: var(--gray-100);
  border-radius: var(--radius-pill);
  font-size: 13px;
  cursor: pointer;
  transition: background .15s;
}
.modal__ingredient-removable:hover { background: var(--gray-200); }
.modal__ingredient-removable .x { font-size: 11px; color: var(--gray-400); margin-left: 2px; }
.modal__ingredient-fixed {
  font-size: 13px;
  color: var(--gray-500);
}

/* Size & Crust selectors in modal */
.modal__sizes, .modal__crusts {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius-pill);
  padding: 3px;
  margin-bottom: 12px;
}
.modal__size-btn, .modal__crust-btn {
  flex: 1;
  text-align: center;
  padding: 8px 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-500);
  border-radius: var(--radius-pill);
  transition: all .15s;
}
.modal__size-btn.active, .modal__crust-btn.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.modal__size-btn:hover:not(.active), .modal__crust-btn:hover:not(.active) { color: var(--gray-700); }

/* Addons */
.modal__addons-title {
  font-size: 16px;
  font-weight: 800;
  margin: 16px 0 12px;
}
.modal__addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.modal__addon {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.modal__addon:hover { border-color: var(--orange); box-shadow: 0 2px 8px rgba(255,105,0,0.08); }
.modal__addon.selected { border-color: var(--orange); background: var(--orange-bg); }
.modal__addon-img {
  width: 64px;
  height: 64px;
  margin: 0 auto 6px;
  border-radius: 8px;
}
.modal__addon-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__addon-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
}

/* Cart button in modal */
.modal__cart-btn {
  width: 100%;
  padding: 16px;
  background: var(--orange);
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--radius-pill);
  transition: background .15s;
  margin-top: auto;
}
.modal__cart-btn:hover { background: var(--orange-hover); }

/* ========== PIZZA CONSTRUCTOR ========== */
.constructor {
  padding: 32px 0;
}
.constructor__title {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 8px;
}
.constructor__subtitle {
  font-size: 15px;
  color: var(--gray-500);
  margin-bottom: 24px;
}
.constructor__wrap {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.constructor__preview {
  flex: 0 0 340px;
  position: relative;
}
.constructor__circle {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--gray-100);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.constructor__half {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: filter .2s;
}
.constructor__half:hover { filter: brightness(1.04); }
.constructor__half--left {
  left: 0;
  border-right: 2px solid rgba(255,255,255,0.8);
}
.constructor__half--right {
  right: 0;
  border-left: 2px solid rgba(255,255,255,0.8);
}
.constructor__half svg {
  width: 200%;
  height: 100%;
}
.constructor__half--left svg {
  transform: translateX(0);
}
.constructor__half--right svg {
  transform: translateX(-50%);
}
.constructor__half-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  background: var(--gray-50);
  cursor: pointer;
  transition: background .15s;
}
.constructor__half-empty:hover { background: var(--orange-light); }
.constructor__half-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px dashed var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--gray-400);
  transition: border-color .15s, color .15s;
}
.constructor__half-empty:hover .constructor__half-empty-icon {
  border-color: var(--orange);
  color: var(--orange);
}
.constructor__half-empty-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
}
.constructor__half-filled {
  width: 100%;
  height: 100%;
  cursor: pointer;
  position: relative;
}
.constructor__half-filled svg {
  display: block;
}
.constructor__half-remove {
  position: absolute;
  top: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s;
  z-index: 2;
}
.constructor__half--left .constructor__half-remove { right: 8px; }
.constructor__half--right .constructor__half-remove { left: 8px; }
.constructor__half:hover .constructor__half-remove { opacity: 1; }
.constructor__divider {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 100%;
  background: var(--white);
  z-index: 3;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}
.constructor__panel {
  flex: 1;
  min-width: 0;
}
.constructor__panel-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}
.constructor__panel-sub {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 14px;
}
.constructor__options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.constructor__option {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.constructor__option:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 12px rgba(255,105,0,0.1);
  transform: translateY(-1px);
}
.constructor__option.selected {
  border-color: var(--orange);
  background: var(--orange-bg);
}
.constructor__option-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 6px;
}
.constructor__option-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 3px;
}
.constructor__option-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
}
.constructor__bottom {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.constructor__sizes {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.constructor__size-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-500);
  border-radius: var(--radius-pill);
  transition: all .15s;
}
.constructor__size-btn.active {
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.constructor__total {
  font-size: 22px;
  font-weight: 900;
  margin-left: auto;
}
.constructor__cart-btn {
  padding: 14px 32px;
  background: var(--orange);
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  border-radius: var(--radius-pill);
  transition: background .15s;
}
.constructor__cart-btn:hover { background: var(--orange-hover); }
.constructor__cart-btn:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
}

/* ========== CART SIDEBAR ========== */
.cart-overlay {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,0.4); z-index:2000;
}
.cart-overlay.open { display:block; }
.cart-sidebar {
  position:fixed; top:0; right:-440px; bottom:0;
  width:420px; max-width:100vw;
  background:var(--white);
  z-index:2001;
  display:flex; flex-direction:column;
  transition:right .3s cubic-bezier(.4,0,.2,1);
  box-shadow:-4px 0 24px rgba(0,0,0,0.12);
}
.cart-sidebar.open { right:0; }
.cart-sidebar__header {
  padding:20px 24px 16px;
  border-bottom:1px solid var(--gray-200);
  display:flex; align-items:center; justify-content:space-between;
  flex-shrink:0;
}
.cart-sidebar__title { font-size:18px; font-weight:900; }
.cart-sidebar__close {
  width:36px; height:36px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s;
}
.cart-sidebar__close:hover { background:var(--gray-100); }
.cart-sidebar__body {
  flex:1; overflow-y:auto; padding:0;
}
.cart-sidebar__empty {
  padding:60px 24px; text-align:center;
  color:var(--gray-400);
}
.cart-sidebar__empty-icon { font-size:48px; margin-bottom:12px; }
.cart-sidebar__empty-text { font-size:15px; font-weight:700; }

/* Cart item */
.cart-item {
  padding:16px 24px;
  border-bottom:1px solid var(--gray-100);
  display:flex; gap:14px; align-items:flex-start;
}
.cart-item__img {
  width:64px; height:64px; border-radius:8px;
  flex-shrink:0;
}
.cart-item__info { flex:1; min-width:0; }
.cart-item__name { font-size:14px; font-weight:800; margin-bottom:2px; }
.cart-item__spec { font-size:12px; color:var(--gray-500); margin-bottom:8px; }
.cart-item__row {
  display:flex; align-items:center; gap:12px;
}
.cart-item__price { font-size:16px; font-weight:900; }
.cart-item__edit {
  font-size:13px; font-weight:700; color:var(--orange);
  cursor:pointer;
}
.cart-item__edit:hover { text-decoration:underline; }
.cart-item__qty {
  display:flex; align-items:center; gap:0;
  margin-left:auto;
}
.cart-item__qty-btn {
  width:32px; height:32px;
  border:1px solid var(--gray-200);
  display:flex; align-items:center; justify-content:center;
  font-size:16px; color:var(--gray-500);
  transition:all .15s;
}
.cart-item__qty-btn:first-child { border-radius:8px 0 0 8px; }
.cart-item__qty-btn:last-child { border-radius:0 8px 8px 0; }
.cart-item__qty-btn:hover { background:var(--gray-100); color:var(--dark); }
.cart-item__qty-val {
  width:36px; height:32px;
  border-top:1px solid var(--gray-200);
  border-bottom:1px solid var(--gray-200);
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:800;
}
.cart-item__remove {
  width:24px; height:24px;
  display:flex; align-items:center; justify-content:center;
  color:var(--gray-400); font-size:14px;
  flex-shrink:0; cursor:pointer; transition:color .15s;
}
.cart-item__remove:hover { color:var(--red); }

/* Suggest section */
.cart-suggest { padding:16px 24px; border-bottom:1px solid var(--gray-100); }
.cart-suggest__title { font-size:15px; font-weight:800; margin-bottom:12px; }
.cart-suggest__row {
  display:flex; gap:10px; overflow-x:auto;
  scrollbar-width:none; padding-bottom:4px;
}
.cart-suggest__row::-webkit-scrollbar { display:none; }
.cart-suggest__item {
  flex:0 0 90px; text-align:center; cursor:pointer;
  transition:transform .15s;
}
.cart-suggest__item:hover { transform:scale(1.04); }
.cart-suggest__item-img {
  width:80px; height:80px; border-radius:10px; margin:0 auto 6px;
  border:1px solid var(--gray-200);
}
.cart-suggest__item-name { font-size:11px; font-weight:700; line-height:1.2; margin-bottom:2px; }
.cart-suggest__item-price { font-size:12px; font-weight:800; color:var(--dark); }

/* Promo code */
.cart-promo { padding:16px 24px; border-bottom:1px solid var(--gray-100); }
.cart-promo__input-wrap {
  display:flex; gap:0;
}
.cart-promo__input {
  flex:1; padding:10px 14px;
  border:1px solid var(--gray-200);
  border-right:none;
  border-radius:8px 0 0 8px;
  font-family:var(--font); font-size:14px;
  outline:none; transition:border-color .15s;
}
.cart-promo__input:focus { border-color:var(--orange); }
.cart-promo__input::placeholder { color:var(--gray-400); }
.cart-promo__btn {
  padding:10px 18px;
  background:var(--orange);
  color:var(--white);
  font-size:13px; font-weight:800;
  border-radius:0 8px 8px 0;
  transition:background .15s;
  white-space:nowrap;
}
.cart-promo__btn:hover { background:var(--orange-hover); }

/* Cart sidebar footer */
.cart-sidebar__footer {
  flex-shrink:0;
  padding:16px 24px 20px;
  border-top:1px solid var(--gray-200);
  background:var(--white);
}
.cart-sidebar__summary {
  display:flex; flex-direction:column; gap:6px;
  margin-bottom:14px;
}
.cart-sidebar__summary-row {
  display:flex; justify-content:space-between;
  font-size:14px; color:var(--gray-500);
}
.cart-sidebar__summary-row--coins { color:var(--orange); font-weight:600; }
.cart-sidebar__total-row {
  display:flex; justify-content:space-between;
  font-size:18px; font-weight:900;
  padding-top:8px; border-top:1px solid var(--gray-200);
  margin-bottom:14px;
}
.cart-sidebar__checkout-btn {
  width:100%; padding:16px;
  background:var(--orange);
  color:var(--white);
  font-size:16px; font-weight:800;
  border-radius:var(--radius-pill);
  transition:background .15s;
}
.cart-sidebar__checkout-btn:hover { background:var(--orange-hover); }

/* ========== ORANGE BANNER ========== */
.obanner {
  background: var(--orange);
  padding: 20px 0;
  margin-top: 40px;
}
.obanner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.obanner__icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.obanner__text {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}
.obanner__btn {
  padding: 12px 28px;
  border: 2px solid var(--white);
  border-radius: var(--radius-pill);
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: all .15s;
  flex-shrink: 0;
}
.obanner__btn:hover { background: var(--white); color: var(--orange); }

/* ========== FOOTER ========== */
/* .site-footer, а не .footer: у части старых страниц в тексте свой стиль .footer (about/delivery). */
.site-footer {
  background: #1B2D5B;
  color: var(--white);
  padding: 44px 0 0;
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.3fr;
  gap: 32px;
  padding-bottom: 36px;
}
.footer__col-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 14px;
}
.footer__links li { margin-bottom: 10px; }
.footer__links a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color .15s;
}
.footer__links a:hover { color: var(--orange); }
.footer__apps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__app-badge {
  height: 40px;
  padding: 0 14px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  transition: background .15s;
}
.footer__app-badge:hover { background: rgba(255,255,255,0.15); }
.footer__app-badge-sub {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.footer__app-badge-name {
  font-size: 14px;
  font-weight: 800;
}
.footer__stats {
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  gap: 60px;
}
.footer__stat-value {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.footer__stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
.footer__stat-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
.footer__bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer__copy {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
}
.footer__legal {
  display: flex;
  gap: 24px;
}
.footer__legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  transition: color .15s;
}
.footer__legal a:hover { color: rgba(255,255,255,0.7); }
.footer__socials {
  display: flex;
  gap: 10px;
}
.footer__social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.footer__social:hover { background: var(--orange); }
.footer__social svg { width: 18px; height: 18px; fill: rgba(255,255,255,0.7); }
.footer__legal-info {
  padding: 16px 0 20px;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  line-height: 1.5;
}

/* ========== COOKIE BAR ========== */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  padding: 14px 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-700);
}
.cookie-bar a { color: var(--dark); text-decoration: underline; }
.cookie-bar__close {
  margin-left: 12px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .15s;
}
.cookie-bar__close:hover { background: var(--gray-100); }
.cookie-bar.hidden { display: none; }

/* ========== SVG PIZZA PLACEHOLDERS ========== */
.pizza-svg { border-radius: 50%; }

/* ========== PAGE CONTENT (INNER PAGES) ========== */
.page { padding: 32px 0 48px; }
.page__title {
  font-size: 32px; font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}
.page__subtitle {
  font-size: 20px; font-weight: 800;
  margin: 28px 0 14px;
}

/* ========== SEARCH INPUT ========== */
.search-input {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 15px; color: var(--dark);
  width: 100%; max-width: 480px;
  transition: border-color .15s;
}
.search-input:focus-within { border-color: var(--orange); }
.search-input input {
  border: none; background: none; outline: none;
  font-family: var(--font); font-size: 15px;
  color: var(--dark); flex: 1;
}
.search-input input::placeholder { color: var(--gray-400); }
.search-input svg { flex-shrink: 0; color: var(--gray-400); }

/* ========== CHIP / TAG TOGGLES ========== */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600;
  color: var(--gray-700);
  cursor: pointer; transition: all .15s;
  background: var(--white);
}
.chip:hover { border-color: var(--gray-400); }
.chip.active { border-color: var(--orange); color: var(--orange); background: var(--orange-bg); }

/* ========== ICON LINK ========== */
.icon-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700;
  color: var(--orange);
  transition: opacity .15s;
}
.icon-link:hover { opacity: .75; }

/* ========== LOCATION CARD ========== */
.location-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-100);
}
.location-card:last-child { border-bottom: none; }
.location-card__name {
  font-size: 18px; font-weight: 800; margin-bottom: 4px;
}
.location-card__meta {
  font-size: 13px; color: var(--gray-500);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 10px;
}
.location-card__meta .star { color: var(--orange); }
.location-card__address {
  font-size: 15px; margin-bottom: 12px;
}
.location-card__schedule {
  display: flex; flex-direction: column; gap: 8px;
}
.location-card__schedule-row {
  display: flex; flex-direction: column;
}
.location-card__schedule-label {
  font-size: 14px; font-weight: 700;
}
.location-card__schedule-time {
  font-size: 14px; color: var(--gray-500);
}

/* ========== PAGE GRID (INNER PAGES) ========== */
.page-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.page-grid__sidebar {
  display: flex; flex-direction: column; gap: 16px;
}

/* ========== INFO CARD ========== */
.info-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: box-shadow .2s;
}
.info-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.info-card__label {
  font-size: 13px; color: var(--gray-500); margin-bottom: 4px;
}
.info-card__value {
  font-size: 18px; font-weight: 800;
}

/* ========== TEXT CONTENT ========== */
.text-content { max-width: 720px; }
.text-content p {
  font-size: 15px; line-height: 1.7;
  color: var(--gray-700); margin-bottom: 16px;
}
.text-content p:last-child { margin-bottom: 0; }

/* ========== STATS ROW (ABOUT PAGE) ========== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.stat-block {
  text-align: center;
  padding: 24px 16px;
  background: var(--orange-bg);
  border-radius: var(--radius);
}
.stat-block__value {
  font-size: 32px; font-weight: 900;
  color: var(--orange);
  margin-bottom: 4px;
}
.stat-block__label {
  font-size: 14px; color: var(--gray-700); font-weight: 600;
}

/* ========== FEATURES ========== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.feature {
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius);
  transition: box-shadow .2s;
}
.feature:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.feature__icon {
  width: 48px; height: 48px;
  background: var(--orange-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 14px;
}
.feature__title {
  font-size: 16px; font-weight: 800; margin-bottom: 6px;
}
.feature__text {
  font-size: 14px; color: var(--gray-500); line-height: 1.5;
}

/* ========== TIMELINE (ABOUT PAGE) ========== */
.timeline { margin: 28px 0; }
.timeline__item {
  display: flex; gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}
.timeline__item:last-child { border-bottom: none; }
.timeline__year {
  flex: 0 0 80px;
  font-size: 20px; font-weight: 900;
  color: var(--orange);
}
.timeline__content {
  flex: 1;
}
.timeline__title {
  font-size: 16px; font-weight: 800; margin-bottom: 4px;
}
.timeline__text {
  font-size: 14px; color: var(--gray-500); line-height: 1.5;
}

/* ========== FAQ ========== */
.faq { margin: 28px 0; }
.faq__item {
  border-bottom: 1px solid var(--gray-200);
}
.faq__question {
  width: 100%; text-align: left;
  padding: 18px 0;
  font-size: 16px; font-weight: 800;
  color: var(--dark);
  display: flex; justify-content: space-between;
  align-items: center; gap: 12px;
}
.faq__question:hover { color: var(--orange); }
.faq__arrow {
  flex-shrink: 0;
  transition: transform .2s;
  color: var(--gray-400);
}
.faq__item.open .faq__arrow { transform: rotate(180deg); }
.faq__answer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.faq__item.open .faq__answer { max-height: 300px; }
.faq__answer-inner {
  padding: 0 0 18px;
  font-size: 14px; color: var(--gray-500); line-height: 1.6;
}

/* ========== TEAM GRID ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.team-card {
  text-align: center;
}
.team-card__avatar {
  width: 100%; aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--gray-100);
  margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: var(--gray-300);
}
.team-card__name {
  font-size: 15px; font-weight: 800; margin-bottom: 2px;
}
.team-card__role {
  font-size: 13px; color: var(--gray-500);
}

/* ========== CERTIFICATE CARD ========== */
.cert-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: border-color .2s, box-shadow .2s;
  cursor: pointer;
}
.cert-card:hover { border-color: var(--orange); box-shadow: 0 4px 20px rgba(255,105,0,0.1); }
.cert-card__icon {
  width: 80px; height: 80px;
  margin: 0 auto 16px;
  background: var(--orange-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
.cert-card__name {
  font-size: 18px; font-weight: 800; margin-bottom: 6px;
}
.cert-card__desc {
  font-size: 14px; color: var(--gray-500); line-height: 1.5; margin-bottom: 16px;
}
.cert-card__price {
  font-size: 24px; font-weight: 900; color: var(--orange);
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}

/* ========== MAP PLACEHOLDER ========== */
.map-placeholder {
  width: 100%; height: 260px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); font-size: 14px; font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}
.map-placeholder__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--gray-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--gray-200) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

/* ========== HERO BANNER (CORPORATE PAGE) ========== */
.hero-banner {
  background: linear-gradient(135deg, var(--orange) 0%, #FF8C3A 100%);
  border-radius: var(--radius);
  padding: 48px 44px;
  color: var(--white);
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.hero-banner::after {
  content: '';
  position: absolute;
  right: 40px; top: 50%;
  transform: translateY(-50%);
  font-size: 120px;
  opacity: 0.15;
}
.hero-banner__title {
  font-size: 32px; font-weight: 900;
  margin-bottom: 10px;
  max-width: 520px;
}
.hero-banner__text {
  font-size: 16px; font-weight: 600;
  opacity: 0.9; line-height: 1.6;
  max-width: 480px;
  margin-bottom: 24px;
}
.hero-banner__btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--white);
  color: var(--orange);
  font-size: 15px; font-weight: 800;
  border-radius: var(--radius-pill);
  transition: transform .15s, box-shadow .15s;
}
.hero-banner__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ========== STEPS (CORPORATE PAGE) ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.step {
  text-align: center;
  padding: 28px 16px;
}
.step__num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 20px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.step__title {
  font-size: 15px; font-weight: 800;
  margin-bottom: 6px;
}
.step__text {
  font-size: 13px; color: var(--gray-500); line-height: 1.5;
}

/* ========== FORM SECTION (CORPORATE PAGE) ========== */
.form-section {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin: 32px 0;
}
.form-section__title {
  font-size: 22px; font-weight: 900;
  margin-bottom: 8px;
}
.form-section__sub {
  font-size: 14px; color: var(--gray-500);
  margin-bottom: 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex; flex-direction: column; gap: 6px;
}
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-size: 13px; font-weight: 700; color: var(--gray-700);
}
.form-field input, .form-field textarea, .form-field select {
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color .15s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--orange);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-submit {
  margin-top: 20px;
  padding: 14px 36px;
  background: var(--orange);
  color: var(--white);
  font-size: 15px; font-weight: 800;
  border-radius: var(--radius-pill);
  transition: background .15s;
}
.form-submit:hover { background: var(--orange-hover); }

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(16px); }
  to { opacity:1; transform: translateY(0); }
}
.page { animation: fadeUp .4s ease both; }
.psection__grid .pcard, .featured__grid .pcard {
  animation: fadeUp .45s ease both;
}
.psection__grid .pcard:nth-child(1), .featured__grid .pcard:nth-child(1) { animation-delay:.03s }
.psection__grid .pcard:nth-child(2), .featured__grid .pcard:nth-child(2) { animation-delay:.07s }
.psection__grid .pcard:nth-child(3), .featured__grid .pcard:nth-child(3) { animation-delay:.11s }
.psection__grid .pcard:nth-child(4), .featured__grid .pcard:nth-child(4) { animation-delay:.15s }
.psection__grid .pcard:nth-child(5) { animation-delay:.19s }
.psection__grid .pcard:nth-child(6) { animation-delay:.23s }
.psection__grid .pcard:nth-child(7) { animation-delay:.27s }
.psection__grid .pcard:nth-child(8) { animation-delay:.31s }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .featured__grid, .psection__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .constructor__wrap { flex-direction: column; align-items: center; }
  .constructor__preview { flex: none; }
  .constructor__options { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .featured__grid, .psection__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .modal { flex-direction: column; }
  .modal__left { flex: none; padding: 24px 24px 0; }
  .modal__right { padding: 20px 24px 24px; }
  .topbar { display: none; }
  .page-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 24px; }
  .footer__stats { flex-direction: column; gap: 24px; }
  .footer__bottom { flex-wrap: wrap; gap: 12px; }
  .features { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .hero-banner { padding: 32px 24px; }
  .hero-banner__title { font-size: 24px; }
}
@media (max-width: 480px) {
  .featured__grid, .psection__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pcard__name { font-size: 15px; }
  .pcard__desc { font-size: 12px; -webkit-line-clamp: 2; }
  .header__delivery { display: none; }
  .constructor__circle { width: 280px; height: 280px; }
  .constructor__preview { flex: 0 0 auto; }
  .constructor__options { grid-template-columns: repeat(2, 1fr); }
  .constructor__bottom { flex-wrap: wrap; }
  .cart-sidebar { width:100%; right:-100%; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================
   CHECKOUT PAGE
   ========================================================== */
body.checkout-page { --max-w: 1080px; }

/* ========== CHECKOUT HEADER ========== */
.ch-header { padding:24px 0; border-bottom:1px solid var(--gray-200); }
.ch-header__inner { max-width:var(--max-w); margin:0 auto; padding:0 20px; display:flex; align-items:center; justify-content:space-between; }
.ch-header__logo { display:flex; align-items:center; gap:10px; }
.ch-header__mascot { width:42px; height:42px; background:var(--orange); border-radius:10px; display:flex; align-items:center; justify-content:center; }
.ch-header__brand { display:flex; flex-direction:column; line-height:1.15; }
.ch-header__brand-name { font-size:17px; font-weight:900; text-transform:uppercase; letter-spacing:.5px; }
.ch-header__brand-sub { font-size:11px; color:var(--gray-500); font-weight:600; }
.ch-header__brand-sub span { color:var(--orange); }

/* ========== STEPPER ========== */
.stepper { display:flex; align-items:center; gap:0; }
.stepper__step { display:flex; align-items:center; gap:8px; }
.stepper__circle { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:800; border:2px solid var(--gray-300); color:var(--gray-400); }
.stepper__circle--done { background:#1B2D5B; border-color:var(--dark); color:var(--white); }
.stepper__circle--active { border-color:var(--dark); color:var(--dark); }
.stepper__label { font-size:13px; font-weight:700; color:var(--gray-400); }
.stepper__label--done { color:var(--dark); }
.stepper__label--active { color:var(--dark); }
.stepper__line { width:48px; height:0; border-top:2px dashed var(--gray-300); margin:0 12px; }
.stepper__line--done { border-color:var(--dark); border-style:solid; }

/* ========== CHECKOUT MAIN LAYOUT ========== */
.ch-main { max-width:var(--max-w); margin:0 auto; padding:32px 20px 48px; display:grid; grid-template-columns:1fr 360px; gap:40px; align-items:start; }
.ch-form-area {}
.ch-title { font-size:28px; font-weight:900; margin-bottom:28px; }

/* ========== CHECKOUT FORM FIELDS ========== */
.ch-row { display:flex; align-items:baseline; gap:16px; padding:14px 0; border-bottom:1px solid var(--gray-100); }
.ch-row__label { flex:0 0 160px; font-size:15px; color:var(--gray-700); font-weight:600; }
.ch-row__value { flex:1; }
.ch-row input[type="text"], .ch-row input[type="tel"] {
  width:100%; padding:12px 16px; border:1px solid var(--gray-200); border-radius:var(--radius-sm);
  font-family:var(--font); font-size:15px; color:var(--dark); outline:none; transition:border-color .15s; background:var(--gray-50);
}
.ch-row input:focus { border-color:var(--orange); background:var(--white); }
.ch-row input::placeholder { color:var(--gray-400); }
.ch-row__address { display:flex; flex-direction:column; gap:4px; }
.ch-row__address-main { font-size:15px; font-weight:600; }
.ch-row__address-links { display:flex; gap:12px; }
.ch-row__address-links a { font-size:14px; font-weight:700; color:var(--orange); }
.ch-row__address-links a:hover { text-decoration:underline; }

/* ========== CHECKOUT TIME CHIPS ========== */
.ch-time-chips { display:flex; gap:8px; flex-wrap:wrap; }
.ch-time-chip {
  padding:10px 18px; border:2px solid var(--gray-200); border-radius:var(--radius-pill);
  font-size:14px; font-weight:700; color:var(--dark); transition:all .15s; cursor:pointer;
}
.ch-time-chip:hover { border-color:var(--gray-400); }
.ch-time-chip.active { border-color:var(--dark); background:var(--white); }

/* ========== CHECKOUT PROMO ========== */
.ch-promo { padding:28px 0; }
.ch-promo__title { font-size:22px; font-weight:900; margin-bottom:14px; }
.ch-promo__row { display:flex; gap:0; max-width:400px; }
.ch-promo__input {
  flex:1; padding:12px 16px; border:1px solid var(--gray-200); border-right:none;
  border-radius:var(--radius-sm) 0 0 var(--radius-sm);
  font-family:var(--font); font-size:15px; outline:none;
}
.ch-promo__input:focus { border-color:var(--orange); }
.ch-promo__btn {
  padding:12px 24px; background:var(--orange); color:var(--white);
  font-size:14px; font-weight:800; border-radius:0 var(--radius-sm) var(--radius-sm) 0;
  transition:background .15s; white-space:nowrap;
}
.ch-promo__btn:hover { background:var(--orange-hover); }

/* ========== CHECKOUT PAYMENT ========== */
.ch-payment { padding:0 0 28px; }
.ch-payment__title { font-size:22px; font-weight:900; margin-bottom:16px; }
.ch-payment__card { background:var(--gray-50); border-radius:var(--radius); padding:24px 28px; }
.ch-payment__option {
  display:flex; align-items:center; gap:12px;
  padding:12px 0; cursor:pointer; transition:color .15s;
}
.ch-payment__option:hover { color:var(--orange); }
.ch-payment__radio {
  width:20px; height:20px; border-radius:50%;
  border:2px solid var(--gray-300); display:flex; align-items:center; justify-content:center; flex-shrink:0;
  transition:border-color .15s;
}
.ch-payment__radio--active { border-color:var(--orange); }
.ch-payment__radio--active::after { content:''; width:10px; height:10px; border-radius:50%; background:var(--orange); }
.ch-payment__icon { width:28px; text-align:center; flex-shrink:0; font-size:16px; }
.ch-payment__label { font-size:15px; font-weight:600; }
.ch-payment__sub { font-size:12px; color:var(--gray-500); margin-left:auto; }
.ch-payment__checkbox {
  margin-top:8px; padding:8px 0 0;
  display:flex; align-items:center; gap:8px;
  font-size:13px; color:var(--gray-500);
}
.ch-payment__checkbox input { accent-color:var(--orange); width:16px; height:16px; }

/* ========== CHECKOUT NEWSLETTER ========== */
.ch-newsletter {
  display:flex; align-items:center; gap:16px;
  padding:20px 24px; background:var(--gray-50); border-radius:var(--radius); margin:20px 0;
}
.ch-newsletter input { accent-color:var(--orange); width:18px; height:18px; flex-shrink:0; }
.ch-newsletter__text { font-size:14px; color:var(--gray-700); flex:1; }
.ch-newsletter__img { width:64px; height:64px; flex-shrink:0; }

/* ========== CHECKOUT ACTIONS ========== */
.ch-actions {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:24px 0; border-top:1px solid var(--gray-200); margin-top:8px;
}
.ch-actions__back {
  display:flex; align-items:center; gap:8px;
  padding:12px 24px; border:1px solid var(--gray-200); border-radius:var(--radius-pill);
  font-size:14px; font-weight:700; color:var(--dark); transition:border-color .15s;
}
.ch-actions__back:hover { border-color:var(--gray-400); }
.ch-actions__submit {
  display:flex; align-items:center; gap:8px;
  padding:16px 36px; background:var(--orange); color:var(--white);
  font-size:16px; font-weight:800; border-radius:var(--radius-pill); transition:background .15s;
}
.ch-actions__submit:hover { background:var(--orange-hover); }
.ch-actions__submit svg { margin-left:4px; }

/* ========== CHECKOUT ORDER SIDEBAR ========== */
.ch-order {
  background:var(--gray-50); border-radius:var(--radius); padding:24px;
  position:sticky; top:24px;
}
.ch-order__title { font-size:16px; font-weight:800; margin-bottom:16px; }
.ch-order__item {
  padding:12px 0; border-bottom:1px solid var(--gray-200);
  display:flex; justify-content:space-between; gap:8px;
}
.ch-order__item:last-of-type { border-bottom:none; }
.ch-order__item-info { flex:1; min-width:0; }
.ch-order__item-name { font-size:14px; font-weight:700; }
.ch-order__item-spec { font-size:12px; color:var(--gray-500); line-height:1.4; }
.ch-order__item-price { font-size:14px; font-weight:800; flex-shrink:0; text-align:right; }
.ch-order__item-qty { font-size:12px; color:var(--gray-500); }
.ch-order__summary { padding-top:16px; border-top:1px solid var(--gray-200); margin-top:8px; }
.ch-order__summary-row {
  display:flex; justify-content:space-between;
  font-size:14px; color:var(--gray-500); margin-bottom:6px;
}
.ch-order__summary-row--coins { color:var(--orange); font-weight:600; }
.ch-order__total {
  display:flex; justify-content:space-between;
  font-size:18px; font-weight:900; padding-top:10px; border-top:1px solid var(--gray-200); margin-top:8px;
}

/* ========== CHECKOUT FOOTER ========== */
.ch-footer { background:#1B2D5B; color:var(--white); padding:36px 0; }
.ch-footer__inner { max-width:var(--max-w); margin:0 auto; padding:0 20px; }
.ch-footer__top { display:flex; align-items:flex-start; justify-content:space-between; gap:32px; padding-bottom:24px; border-bottom:1px solid rgba(255,255,255,0.08); }
.ch-footer__contacts-title { font-size:14px; font-weight:800; margin-bottom:8px; }
.ch-footer__phone { font-size:16px; font-weight:800; color:rgba(255,255,255,0.85); }
.ch-footer__email { font-size:14px; color:rgba(255,255,255,0.5); }
.ch-footer__apps { display:flex; gap:8px; flex-wrap:wrap; }
.ch-footer__app {
  height:36px; padding:0 12px; background:rgba(255,255,255,0.08); border-radius:6px;
  display:flex; align-items:center; gap:6px; font-size:11px; font-weight:700; color:rgba(255,255,255,0.8); transition:background .15s;
}
.ch-footer__app:hover { background:rgba(255,255,255,0.15); }
.ch-footer__app-sub { font-size:8px; color:rgba(255,255,255,0.5); text-transform:uppercase; }
.ch-footer__app-name { font-size:12px; font-weight:800; }
.ch-footer__bottom { display:flex; justify-content:space-between; align-items:center; padding-top:20px; }
.ch-footer__copy { font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:1px; color:rgba(255,255,255,0.4); }
.ch-footer__legal { display:flex; gap:20px; }
.ch-footer__legal a { font-size:12px; color:rgba(255,255,255,0.35); transition:color .15s; }
.ch-footer__legal a:hover { color:rgba(255,255,255,0.7); }
.ch-footer__socials { display:flex; gap:8px; }
.ch-footer__social { width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,0.08); display:flex; align-items:center; justify-content:center; transition:background .15s; }
.ch-footer__social:hover { background:var(--orange); }
.ch-footer__social svg { width:16px; height:16px; fill:rgba(255,255,255,0.7); }
.ch-footer__legal-info { padding-top:16px; font-size:10px; color:rgba(255,255,255,0.2); line-height:1.5; }

/* ========== CHECKOUT ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity:0; transform:translateY(12px); }
  to { opacity:1; transform:translateY(0); }
}
.ch-main { animation:fadeIn .4s ease both; }

/* ========== CHECKOUT RESPONSIVE ========== */
@media (max-width: 860px) {
  .ch-main { grid-template-columns:1fr; gap:24px; }
  .ch-order { position:static; }
  .stepper { display:none; }
  .ch-footer__top { flex-direction:column; gap:20px; }
  .ch-footer__bottom { flex-wrap:wrap; gap:12px; }
}
@media (max-width: 480px) {
  .ch-row { flex-direction:column; gap:6px; }
  .ch-row__label { flex:none; }
  .ch-actions { flex-direction:column-reverse; }
  .ch-actions__submit, .ch-actions__back { width:100%; justify-content:center; }
}

/* ========== BITRIX: шаблоны компонентов ========== */
.main { min-height: 50vh; padding-bottom: 56px; }
.page-head { padding-top: 20px; }
.page-title { font-size: 28px; font-weight: 900; margin: 8px 0 16px; }
.breadcrumbs { font-size: 13px; color: var(--gray-500); display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs__link:hover { color: var(--orange); }
.breadcrumbs__current { color: var(--gray-700); }

.header__phone { font-size: 16px; font-weight: 800; white-space: nowrap; }
.header__phone a:hover { color: var(--orange); }
.header__login { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gray-700); }

.pcard { display: flex; flex-direction: column; }
.pcard__name { display: block; }
.pcard__bottom { margin-top: auto; display: flex; align-items: center; gap: 10px; }
.pcard__old-price { color: var(--gray-500); text-decoration: line-through; font-size: 13px; font-weight: 700; }
.pcard__badge--sale { background: var(--dark); }
.pcard--disabled .pcard__img { filter: grayscale(.8); opacity: .7; }
.pcard__price-btn:disabled { border-color: var(--gray-300); color: var(--gray-500); background: none; cursor: default; }
.pcard__price-btn.added, .modal__cart-btn.added { background: var(--green); border-color: var(--green); color: var(--white); }

.modal-opened, .cart-opened { overflow: hidden; }
.modal__img { width: 100%; height: auto; border-radius: var(--radius); object-fit: cover; }
.modal__desc { font-size: 14px; color: var(--gray-700); margin: 0 0 16px; }
.modal__sizes { flex-wrap: wrap; }
.modal__size-btn:disabled { opacity: .4; cursor: default; }
.modal__cart-btn:disabled { background: var(--gray-300); cursor: default; }

.cart-sidebar.loading .cart-sidebar__body { opacity: .5; pointer-events: none; }
.cart-item { position: relative; }
.cart-item__img--empty { background: var(--gray-100); }
.cart-sidebar__checkout-btn { display: block; text-align: center; }
.cart-sidebar__basket-link { display: block; text-align: center; margin-top: 10px; font-size: 13px; color: var(--gray-500); }
.cart-sidebar__basket-link:hover { color: var(--orange); }

/* ---------- Модалка товара ---------- */
.modal__left { position: relative; }
.modal__options { margin-bottom: 8px; }
.modal__size-btn.muted { opacity: .45; }
.modal__buy { margin-top: auto; padding-top: 12px; }

/* ---------- Мобильная вёрстка ---------- */
.catnav__cart-icon { display: none; }
@media (max-width: 768px) {
  .header__phone { display: none; }
  /* без backdrop-filter на самой навигации: иначе fixed-кнопка корзины позиционируется внутри неё (стекло — в ::before) */
  .catnav, .catnav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .catnav.scrolled { background: transparent; }
  .catnav__inner { padding: 0 8px; }
  .catnav__link { padding: 6px 10px; }
  .catnav__cart {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 990;
    margin: 0;
    padding: 14px 20px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(232,76,79,.35);
  }
  .catnav__cart-icon { display: block; }
  .catnav__cart-text { display: none; }
  .cart-opened .catnav__cart, .modal-opened .catnav__cart { display: none; }
  .cookie-bar { padding-right: 16px; }

  /* карточки-плитки */
  .psection__grid { gap: 10px; }
  .pcard {
    background: var(--gray-50);
    border-radius: 20px;
    padding: 10px 10px 14px;
    text-align: center;
    align-items: center;
  }
  .pcard__img-wrap { width: 100%; }
  .pcard__name { font-size: 15px; margin: 10px 0 4px; }
  .pcard__desc { font-size: 12px; -webkit-line-clamp: 2; margin-bottom: 10px; }
  .pcard__bottom { justify-content: center; flex-wrap: wrap; gap: 4px 8px; }
  .pcard__price-btn { padding: 8px 16px; border: 0; background: var(--white); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
  .pcard__badge { left: 8px; bottom: auto; top: 8px; }

  /* модалка — на весь экран, кнопка «В корзину» прилипает снизу */
  .modal-overlay { padding: 0; align-items: stretch; }
  .modal { max-width: none; max-height: none; height: 100%; border-radius: 0; flex-direction: column; animation: sheetIn .25s ease; }
  .modal__close { top: 12px; left: 12px; right: auto; background: rgba(255,255,255,.9); box-shadow: 0 1px 6px rgba(0,0,0,.12); }
  .modal__left { padding: 0; }
  .modal__img { border-radius: 0; aspect-ratio: 1; }
  .modal__right { padding: 16px 16px 0; flex: 1; }
  .modal__buy {
    position: sticky;
    bottom: 0;
    margin: 0 -16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--white);
    box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  }
}
@media (max-width: 480px) {
  .header__inner { padding: 0 12px; }
  .psection__title { font-size: 22px; margin-bottom: 12px; }
}
@keyframes sheetIn {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ---------- Товар уже в корзине ---------- */
.pcard__in-cart {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 32px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--green);
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 2px 6px rgba(36,178,62,.35);
  animation: modalIn .25s ease;
}
.pcard--in-cart .pcard__price-btn:not(:disabled) { border-color: var(--green); color: var(--green); }
@media (max-width: 768px) {
  .pcard--in-cart .pcard__price-btn:not(:disabled) { box-shadow: inset 0 0 0 2px var(--green); }
}

/* ---------- Страница товара ---------- */
.product-page { display: flex; gap: 32px; align-items: flex-start; padding-bottom: 24px; }
.product-page .modal__left { flex: 0 0 48%; padding: 0; }
.product-page .modal__right { flex: 1; padding: 0; }
.product-page .modal__name { display: none; }
.product-page .modal__buy { position: static; margin: 0; box-shadow: none; padding: 12px 0 0; }
.product-page__price { font-size: 24px; font-weight: 900; color: var(--orange); }
@media (max-width: 768px) {
  .product-page { flex-direction: column; gap: 16px; }
  .product-page .modal__left { flex: none; width: 100%; }
  .product-page .modal__img { border-radius: var(--radius); }
}

/* ---------- Вход по телефону ---------- */
.auth-overlay { z-index: 2600; }
.auth-modal { position: relative; width: 100%; max-width: 400px; background: var(--white); border-radius: 20px; padding: 32px 28px 24px; animation: modalIn .25s ease; }
.auth-overlay.loading .auth-modal { opacity: .7; pointer-events: none; }
.auth-modal__title { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.auth-modal__text { font-size: 14px; color: var(--gray-700); margin-bottom: 16px; }
.auth-modal__input { width: 100%; height: 52px; padding: 12px 16px; font: inherit; font-size: 20px; font-weight: 700; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.auth-modal__input:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-light); }
.auth-modal__input--code { text-align: center; letter-spacing: 12px; font-size: 28px; }
.auth-modal__error { min-height: 18px; margin: 6px 0; font-size: 13px; font-weight: 600; color: var(--red); }
.auth-modal__btn { width: 100%; padding: 15px; background: var(--orange); color: var(--white); font-size: 16px; font-weight: 800; border-radius: var(--radius-pill); }
.auth-modal__btn:hover { background: var(--orange-hover); }
.auth-modal__hint { margin-top: 12px; font-size: 12px; color: var(--gray-500); }
.auth-modal__hint a { text-decoration: underline; }
.auth-modal__link { display: block; width: 100%; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--orange); }
.auth-modal__link:disabled { color: var(--gray-500); cursor: default; }
.pco-auth { max-width: 520px; margin: 24px 0; padding: 28px; }
.pco-auth__title { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.pco-auth__text { font-size: 14px; color: var(--gray-700); }
@media (max-width: 768px) {
  .auth-overlay { align-items: flex-end; padding: 0; }
  .auth-modal { max-width: none; border-radius: 20px 20px 0 0; padding: 28px 20px calc(20px + env(safe-area-inset-bottom)); animation: sheetIn .25s ease; }
}

/* ---------- Внутренние страницы ---------- */
.page-body { padding-bottom: 32px; }
/* iOS увеличивает страницу при фокусе на поле с шрифтом меньше 16px и уводит её вбок при любом переполнении */
html, body { overflow-x: clip; }
input, select, textarea { font-size: 16px; }
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .page-title { font-size: 24px; }
}

/* ---------- Личный кабинет: заказы ---------- */
.orders { display: grid; gap: 14px; max-width: 760px; }
.orders__empty { padding: 32px; background: var(--gray-50); border-radius: 16px; text-align: center; }
.orders__empty-title { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.orders__btn, .order-card__btn { display: inline-block; padding: 10px 20px; background: var(--orange); color: var(--white); font-weight: 800; font-size: 14px; border-radius: var(--radius-pill); }
.orders__btn:hover, .order-card__btn:hover { background: var(--orange-hover); }
.order-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 18px 20px; }
.order-card--active { border-color: var(--dark); box-shadow: 0 6px 20px rgba(27,45,91,.08); }
.order-card--canceled { opacity: .7; }
.order-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.order-card__number { font-size: 18px; font-weight: 900; }
.order-card__date { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.order-card__items { font-size: 14px; color: var(--gray-700); margin: 12px 0; }
.order-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-card__sum { font-size: 18px; font-weight: 900; }
.order-card__actions { display: flex; align-items: center; gap: 16px; }
.order-card__link { font-size: 14px; font-weight: 700; color: var(--orange); }

.order-status { flex-shrink: 0; padding: 5px 12px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 800; background: var(--gray-100); color: var(--gray-700); }
.order-status--K, .order-status--R, .order-status--W { background: var(--orange-bg); color: var(--orange); }
.order-status--N, .order-status--P { background: #E8EEFB; color: var(--dark); }
.order-status--F { background: #E9F7EC; color: #1E7B33; }
.order-status--C { background: var(--gray-100); color: var(--gray-500); }

.order-steps { list-style: none; display: flex; margin: 16px 0 4px; padding: 0; }
.order-steps__item { flex: 1; position: relative; text-align: center; font-size: 12px; font-weight: 700; color: var(--gray-400); }
.order-steps__item::before { content: ''; position: absolute; top: 7px; left: -50%; width: 100%; height: 3px; background: var(--gray-200); }
.order-steps__item:first-child::before { display: none; }
.order-steps__item.done::before, .order-steps__item.current::before { background: var(--green); }
.order-steps__dot { position: relative; z-index: 1; display: block; width: 17px; height: 17px; margin: 0 auto 6px; border-radius: 50%; background: var(--gray-200); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--gray-200); }
.order-steps__item.done .order-steps__dot { background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.order-steps__item.current .order-steps__dot { background: var(--orange); box-shadow: 0 0 0 3px var(--orange-light); animation: pulse 1.6s ease infinite; }
.order-steps__item.done, .order-steps__item.current { color: var(--dark); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px var(--orange-light); } }

.order-detail { max-width: 960px; }
.order-detail__back { display: inline-block; margin-bottom: 14px; font-size: 14px; font-weight: 700; color: var(--gray-500); }
.order-detail__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.order-detail__block { background: var(--gray-50); border-radius: 16px; padding: 18px 20px; }
.order-detail__title { font-size: 18px; font-weight: 900; margin: 0 0 12px; }
.order-item { display: grid; grid-template-columns: 56px 1fr auto auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gray-200); }
.order-item__img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; background: var(--gray-100); display: block; }
.order-item__name { font-size: 14px; font-weight: 800; }
.order-item__props { font-size: 12px; color: var(--gray-500); }
.order-item__qty { font-size: 13px; color: var(--gray-500); }
.order-item__sum { font-size: 14px; font-weight: 800; white-space: nowrap; }
.order-total { margin-top: 10px; }
.order-total__line { display: flex; justify-content: space-between; font-size: 14px; color: var(--gray-700); padding: 3px 0; }
.order-total__line--sum { font-size: 18px; font-weight: 900; color: var(--dark); padding-top: 8px; }
.order-info { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; margin: 0; }
.order-info dt { color: var(--gray-500); font-weight: 700; }
.order-info dd { margin: 0; }
.order-detail__actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 768px) {
  .order-detail__grid { grid-template-columns: 1fr; }
  .order-card { padding: 16px; }
  .order-steps__title { font-size: 10px; }
}

/* ---------- Личный кабинет: главная и профиль ---------- */
.cabinet { max-width: 760px; }
.cabinet__hello { margin-bottom: 18px; }
.cabinet__name { font-size: 22px; font-weight: 900; }
.cabinet__phone { color: var(--gray-500); font-weight: 700; margin-top: 2px; }
.cabinet__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
/* Статус заказа обновился (js/order-live.js) */
@keyframes order-live-flash { 0% { box-shadow: 0 0 0 0 rgba(232, 76, 79, .45); } 100% { box-shadow: 0 0 0 14px rgba(232, 76, 79, 0); } }
.order-live-flash { animation: order-live-flash 1.2s ease-out; }
.order-live-flash .order-status { animation: order-live-flash 1.2s ease-out; }

/* Мои адреса */
.pir-addresses { max-width: 720px; }
.pir-addresses__list { display: grid; gap: 10px; margin-bottom: 18px; }
.pir-addresses__item { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--gray-50); border-radius: 16px; }
.pir-addresses__item-name { font-size: 16px; font-weight: 800; color: var(--dark); }
.pir-addresses__line { font-size: 14px; color: var(--gray-500); margin-top: 2px; }
.pir-addresses__pin { font-size: 13px; }
.pir-addresses__buttons { display: flex; gap: 16px; flex: none; }
.pir-addresses__delete { color: var(--gray-500); }
.pir-addresses__empty { padding: 18px; background: var(--gray-50); border-radius: 16px; color: var(--gray-500); margin-bottom: 18px; }
.pir-addresses__add { max-width: 320px; }
.pir-addresses__form .pco-grid { margin-top: 14px; }
.pir-addresses__name { width: 100%; max-width: 360px; height: 44px; margin-top: 8px; padding: 10px 14px; font: inherit; font-size: 15px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); }
.pir-addresses__actions { display: flex; gap: 16px; align-items: center; margin-top: 18px; }
.pir-addresses__actions .pco-submit { max-width: 260px; margin: 0; }
.pir-addresses__cancel { color: var(--gray-500); font-weight: 700; }
.pir-addresses .pco-errors { margin-top: 12px; }
@media (max-width: 560px) {
  .pir-addresses__item { flex-direction: column; align-items: flex-start; gap: 10px; }
}
.cabinet__tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--gray-50); border-radius: 16px; transition: transform .15s, box-shadow .15s; }
.cabinet__tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.cabinet__icon { font-size: 26px; }
.cabinet__tile-title { font-size: 16px; font-weight: 900; }
.cabinet__tile-text { font-size: 13px; color: var(--gray-500); }
.cabinet__logout { display: inline-block; margin-top: 20px; font-size: 14px; font-weight: 700; color: var(--gray-500); }
.profile { max-width: 560px; }
.profile__msg { padding: 12px 16px; border-radius: var(--radius); background: #E9F7EC; color: #1E7B33; font-weight: 700; margin-bottom: 16px; }
.profile__msg--error { background: #FDECEC; color: #B3261E; }
.profile__save { max-width: 260px; }
.pco-field input:disabled { background: var(--gray-50); color: var(--gray-500); }
@media (max-width: 768px) {
  .cabinet__tiles { grid-template-columns: 1fr; }
  .profile .pco-grid { grid-template-columns: 1fr; }
  .profile__save { max-width: none; }
}

/* ---------- Вход через Telegram ---------- */
.auth-tg { margin-bottom: 4px; }
.auth-tg__title { font-size: 15px; font-weight: 900; margin-bottom: 8px; }
.auth-tg__list { list-style: none; margin: 0 0 14px; padding: 12px 14px; background: #EAF5FD; border-radius: var(--radius); display: grid; gap: 6px; }
.auth-tg__list li { position: relative; padding-left: 22px; font-size: 13px; font-weight: 600; color: var(--dark); }
.auth-tg__list li::before { content: '✓'; position: absolute; left: 0; color: #229ED9; font-weight: 900; }
.auth-tg__btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; background: #229ED9; color: var(--white); font-size: 16px; font-weight: 800; border-radius: var(--radius-pill); }
.auth-tg__btn:hover { background: #1C8BC0; }
.auth-tg__wait { margin-top: 10px; font-size: 13px; color: var(--gray-700); text-align: center; }
.auth-modal__or { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; font-size: 12px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; }
.auth-modal__or::before, .auth-modal__or::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.auth-modal { max-height: 92vh; overflow-y: auto; }

/* ---------- Внутри Telegram (мини-приложение) ---------- */
.in-telegram .topbar, .in-telegram .site-footer, .in-telegram .cookie-bar,
.in-vk .topbar, .in-vk .site-footer, .in-vk .cookie-bar, .in-vk [data-auth-tg] { display: none !important; }
.in-telegram .header, .in-vk .header { height: 56px; }

/* ---------- Формы (оформление заказа, профиль) ---------- */
.pco-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pco-field--full { grid-column: 1 / -1; }
.pco-field label { display: block; font-size: 13px; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; }
.pco-req { color: var(--orange); }
.pco-field input, .pco-field select, .pco-textarea {
  width: 100%; height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--dark);
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
.pco-textarea { height: auto; resize: vertical; }
.pco-field select { appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23999' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center; }
.pco-field input:focus, .pco-field select:focus, .pco-textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-light); }
.pco-field.error input { border-color: var(--red); }
.pco-field.error label { color: var(--red); }

.pco-submit { width: 100%; margin-top: 14px; padding: 16px; background: var(--orange); color: var(--white); font-size: 16px; font-weight: 800; border-radius: var(--radius-pill); transition: background .15s; }
.pco-submit:hover { background: var(--orange-hover); }

/* ---------- Подвал на телефоне: две колонки ---------- */
@media (max-width: 768px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer__top > div:first-child, .footer__top > div:last-child { grid-column: 1 / -1; }
  .footer__links li { margin-bottom: 6px; }
  .footer__links a, .footer__links li { font-size: 14px; }
}

/* ---------- Плашка cookies не закрывает кнопку корзины ---------- */
@media (max-width: 768px) {
  body.cookie-visible .catnav__cart { bottom: calc(var(--cookie-h, 90px) + 12px + env(safe-area-inset-bottom)); }
}

/* ---------- Страница входа ---------- */
.auth-page { max-width: 520px; padding: 8px 0 24px; }
.auth-page__card { padding: 28px; }
.auth-page__title { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.auth-page__text { font-size: 14px; color: var(--gray-700); }
.auth-page__staff { margin-top: 22px; font-size: 14px; }
.auth-page__staff summary { cursor: pointer; color: var(--gray-500); font-weight: 700; }
.auth-page__staff form { margin-top: 14px; }
.auth-page__staff-btn { background: var(--dark); }
.auth-page__staff-btn:hover { background: var(--navy-light, #2A3F73); }

/* ---------- Окно входа: крестик справа (мобильное правило окна товара ставит его слева) ---------- */
.auth-modal .modal__close { left: auto; right: 14px; top: 14px; width: 40px; height: 40px; background: var(--gray-100); box-shadow: none; }
.auth-modal .modal__close svg { stroke: var(--dark); }
.auth-modal .modal__close:hover { background: var(--gray-200); }
.auth-modal__title { padding-right: 48px; }

/* ---------- Кабинет: «Выйти» — кнопка-контур, не под плавающей корзиной; в Telegram не нужна ---------- */
.cabinet__logout { display: inline-flex; align-items: center; justify-content: center; margin: 24px 0 96px; padding: 12px 22px;
  border: 2px solid var(--gray-200); border-radius: var(--radius-pill); color: var(--gray-700); }
.cabinet__logout:hover { border-color: var(--gray-300); color: var(--dark); }
.in-telegram .cabinet__logout, .in-vk .cabinet__logout { display: none; }
@media (max-width: 768px) {
  .cabinet__logout { width: 100%; }
}

/* ---------- Плашка cookies: тёмная полупрозрачная карточка над страницей ---------- */
.cookie-bar {
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 720px; margin: 0 auto; padding: 12px 14px 12px 18px;
  background: rgba(27, 45, 91, .82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  color: rgba(255, 255, 255, .92); font-size: 13px; line-height: 1.4;
  justify-content: space-between; gap: 12px;
}
.cookie-bar a { color: var(--white); }
.cookie-bar__close { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: flex; align-items: center; justify-content: center; }
.cookie-bar__close:hover { background: rgba(255, 255, 255, .24); }
.cookie-bar__close svg { stroke: var(--white); }
@media (max-width: 768px) {
  body.cookie-visible .catnav__cart { bottom: calc(var(--cookie-h, 90px) + 24px + env(safe-area-inset-bottom)); }
}

/* ---------- Итог (оформление заказа, корзина) ---------- */
.pco-summary { position: sticky; top: calc(var(--catnav-h) + 16px); }
.pco-summary__inner { background: var(--gray-50); border-radius: 16px; padding: 20px; }
.pco-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--gray-700); padding: 4px 0; }
.pco-line--accent { color: var(--orange); }
.pco-line--total { font-size: 20px; font-weight: 900; color: var(--dark); border-top: 1px solid var(--gray-200); margin-top: 8px; padding-top: 12px; }
.pco-back { display: block; text-align: center; margin-top: 12px; font-size: 13px; color: var(--gray-500); }


/* ---------- Страница корзины ---------- */
.basket-page { padding-bottom: 32px; }
.basket-page.loading { opacity: .55; pointer-events: none; }
.basket-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.basket-page__items { display: grid; gap: 4px; }
.basket-page__item { background: var(--white); border-bottom: 1px solid var(--gray-100); }
.basket-page__item--off { opacity: .55; }
.basket-page__off { color: var(--red); }
.basket-page__summary { position: sticky; top: calc(var(--catnav-h) + 16px); }
.basket-page__checkout { display: block; text-align: center; }
.basket-page__coupon { display: flex; gap: 8px; margin-bottom: 12px; }
.basket-page__coupon input { flex: 1; min-width: 0; height: 44px; padding: 10px 14px; font: inherit; font-size: 16px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); }
.basket-page__coupon button { padding: 0 16px; background: var(--dark); color: var(--white); font-weight: 800; border-radius: var(--radius-sm); }
.basket-page__coupon-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; padding: 6px 10px; margin-bottom: 8px; border-radius: var(--radius-sm); background: #E9F7EC; color: #1E7B33; }
.basket-page__coupon-row--bad { background: #FDECEC; color: #B3261E; }
@media (max-width: 900px) {
  .basket-page__grid { grid-template-columns: 1fr; }
  .basket-page__summary { position: static; }
}

/* ---------- Окно товара: что уже в корзине ---------- */
.modal__in-cart { margin-bottom: 8px; font-size: 14px; font-weight: 800; color: var(--green); text-align: center; }
.modal__size-btn { position: relative; }
.modal__size-count { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--green); color: var(--white); font-size: 12px; font-weight: 800; line-height: 20px; }

/* ---------- Промокод в выезжающей корзине ---------- */
.cart-sidebar__coupon { margin-bottom: 10px; }
.cart-sidebar__footer .basket-page__coupon-row button { color: inherit; }

/* ==========================================================
   Содержимое страниц (тексты из редактора, штатные компоненты)
   :where() — нулевая специфичность: не перебивает стили компонентов шаблона.
   ========================================================== */
:where(.page-body) { font-size: 16px; line-height: 1.6; color: var(--gray-900); }
:where(.page-body) :where(h2) { font-size: 24px; font-weight: 900; line-height: 1.25; color: var(--dark); margin: 28px 0 12px; }
:where(.page-body) :where(h3) { font-size: 19px; font-weight: 800; line-height: 1.3; color: var(--dark); margin: 22px 0 10px; }
:where(.page-body) :where(h4, h5) { font-size: 16px; font-weight: 800; color: var(--dark); margin: 18px 0 8px; }
:where(.page-body) :where(p) { margin: 0 0 14px; }
:where(.page-body) :where(ul, ol) { margin: 0 0 16px; padding-left: 22px; }
:where(.page-body) :where(ul) { list-style: disc; }
:where(.page-body) :where(ol) { list-style: decimal; }
:where(.page-body) :where(li) { margin-bottom: 6px; }
:where(.page-body) :where(a:not([class])) { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
:where(.page-body) :where(img:not([class])) { max-width: 100%; height: auto; border-radius: var(--radius); }
:where(.page-body) :where(table) { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
:where(.page-body) :where(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--gray-200); text-align: left; vertical-align: top; }
:where(.page-body) :where(th) { font-weight: 800; color: var(--dark); background: var(--gray-50); }
:where(.page-body) :where(blockquote) { margin: 0 0 16px; padding: 12px 18px; border-left: 4px solid var(--orange); background: var(--orange-bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
:where(.page-body) :where(iframe) { max-width: 100%; border: 0; border-radius: var(--radius); }
:where(.page-body) :where(.bx_page, .bx-newsdetail, .news-detail) { max-width: 820px; }
.page-body .bx-yandex-map { border-radius: var(--radius); overflow: hidden; margin-bottom: 8px; }
.page-body .bx-yandex-view-layout { margin-bottom: 16px; }

/* Сетка колонок из старых текстов (row / col-md-6) */
:where(.page-body) .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
:where(.page-body) .row > [class*="col-"] { min-width: 0; }
@media (max-width: 768px) {
  :where(.page-body) .row { grid-template-columns: 1fr; }
}

/* Форма обратной связи (bitrix:main.feedback) */
.mfeedback form { display: grid; gap: 12px; max-width: 520px; }
.mfeedback .mf-text { font-size: 13px; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; }
.mfeedback .mf-req { color: var(--orange); }
.mfeedback input[type="text"], .mfeedback input[type="email"], .mfeedback textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--dark);
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--white);
}
.mfeedback textarea { min-height: 120px; resize: vertical; }
.mfeedback input:focus, .mfeedback textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-light); }
.mfeedback .mf-captcha img { display: block; margin-bottom: 8px; border-radius: var(--radius-sm); }
.mfeedback input[type="submit"] { justify-self: start; padding: 13px 28px; background: var(--orange); color: var(--white); font: inherit; font-weight: 800; border: 0; border-radius: var(--radius-pill); cursor: pointer; }
.mfeedback input[type="submit"]:hover { background: var(--orange-hover); }
.mf-ok-text { padding: 12px 16px; border-radius: var(--radius); background: #E9F7EC; color: #1E7B33; font-weight: 700; margin-bottom: 12px; }
.mfeedback font.errortext, .mfeedback .errortext { display: block; color: var(--red); margin-bottom: 8px; }

/* 404 */
.page404 { padding: 32px 0 48px; text-align: center; }
.page404 .status { font-size: 56px; font-weight: 900; line-height: 1; color: var(--orange); letter-spacing: -2px; }
.page404 .status::after { content: ''; }
.page404_head { font-size: 26px; font-weight: 900; color: var(--dark); margin: 12px 0 10px; }
.page404_text { max-width: 480px; margin: 0 auto; color: var(--gray-700); }
.page404_text a { display: inline-block; margin-top: 16px; padding: 12px 24px; background: var(--orange); color: var(--white) !important; text-decoration: none !important; font-weight: 800; border-radius: var(--radius-pill); }
body:has(.page404) .page-head .page-title { display: none; }

/* ---------- Акции и новости ---------- */
.news-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 24px; }
.news-card { display: flex; flex-direction: column; background: var(--gray-50); border-radius: 16px; overflow: hidden; }
.news-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
@media (hover: hover) { .news-card:hover .news-card__img img { transform: scale(1.04); } }
.news-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.news-card__date { font-size: 13px; font-weight: 700; color: var(--gray-500); }
.news-card__title { font-size: 18px; font-weight: 900; line-height: 1.3; margin: 0; }
.news-card__title a:hover { color: var(--orange); }
.news-card__text { font-size: 14px; color: var(--gray-700); line-height: 1.5; }
.news-card__more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 800; color: var(--orange); }
.news-detail { max-width: 760px; padding-bottom: 24px; }
.news-detail__img { width: 100%; height: auto; border-radius: 16px; margin: 10px 0 18px; }
.news-detail__text { margin-bottom: 20px; }
@media (max-width: 1024px) { .news-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .news-cards { grid-template-columns: 1fr; } }
.mfeedback, .mfeedback form { width: 100%; }
.mfeedback form { grid-template-columns: minmax(0, 1fr); }
.mfeedback input[type="text"], .mfeedback input[type="email"], .mfeedback textarea { display: block; box-sizing: border-box; max-width: none; }
.page404_text a { display: table; margin: 14px auto 0; }

/* ---------- Главная: баннеры ---------- */
.banners { padding: 18px 0 0; }
.banners__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; }
.banners__track::-webkit-scrollbar { display: none; }
.banners__slide { flex: 0 0 100%; scroll-snap-align: start; display: block; }
.banners__slide img { width: 100%; height: auto; aspect-ratio: 1366 / 317; object-fit: cover; display: block; }
.banners__dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.banners__dot { width: 8px; height: 8px; border-radius: 4px; background: var(--gray-300); transition: width .2s, background .2s; }
.banners__dot.active { width: 22px; background: var(--orange); }

/* ---------- Главная: часто заказывают ---------- */
.often { padding: 22px 0 4px; }
.often__title { font-size: 22px; font-weight: 900; margin: 0 0 12px; }
.often__row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 8px; }
.often__row::-webkit-scrollbar { display: none; }
.often__item { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; max-width: 260px;
  border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); transition: border-color .15s, box-shadow .15s; }
@media (hover: hover) { .often__item:hover { border-color: var(--orange); box-shadow: 0 4px 12px rgba(0,0,0,.06); } }
.often__item-img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.often__item-name { display: block; font-size: 14px; font-weight: 800; line-height: 1.25; color: var(--dark);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.often__item-price { display: block; font-size: 13px; font-weight: 800; color: var(--orange); margin-top: 2px; }

/* ---------- Доступность, пагинация ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 20px 0 8px; }
.pager__item { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-pill); background: var(--gray-100); color: var(--dark); font-weight: 800; font-size: 15px; }
a.pager__item:hover { background: var(--gray-200); }
.pager__item--current { background: var(--orange); color: var(--white); }
.pager__gap { color: var(--gray-500); padding: 0 2px; }
.often__item > span { min-width: 0; }
.often__item-name { white-space: normal; }

/* ---------- Допродажи в окне товара («Вкуснее вместе», ajax/upsell.php) ---------- */
.modal__upsell { margin: 8px 0 4px; }
.modal__upsell-title { font-size: 18px; font-weight: 900; color: var(--navy, #1B2D5B); margin-bottom: 12px; }
.modal__upsell-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.upsell-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px 12px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(27,45,91,.08);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.upsell-card:active { transform: scale(.97); }
.upsell-card.selected { border-color: var(--orange); box-shadow: 0 4px 14px rgba(232,76,79,.18); }
.upsell-card__img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; border-radius: 10px; background: var(--gray-100); }
img.upsell-card__img { background: none; }
.upsell-card__name { font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--navy, #1B2D5B);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.upsell-card__sub { font-size: 12px; color: var(--gray-500); }
.upsell-card__price { margin-top: auto; font-size: 14px; font-weight: 800; color: var(--navy, #1B2D5B); }
.upsell-card.selected .upsell-card__price { color: var(--orange); }
.upsell-card__check {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.5); transition: opacity .15s, transform .15s;
}
.upsell-card.selected .upsell-card__check { opacity: 1; transform: scale(1); }
.upsell-card__count {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--green); color: var(--white); font-size: 12px; font-weight: 800; line-height: 20px;
}
@media (hover: hover) { .upsell-card:hover { box-shadow: 0 4px 16px rgba(27,45,91,.14); } }


/* ---------- Пицца из половинок (карточка include/halves_card.php, окно — script.js PirHalves) ---------- */
.halves-pic {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: transparent; /* в разрыве между разъехавшимися половинками — фон карточки */
}
.halves-pic__half {
  position: absolute;
  inset: 0;
  background-color: var(--gray-100);
  background-repeat: no-repeat;
  /* на квадратных фото пицца по центру, плашка с названием — в левом верхнем углу: увеличить и показать середину
     и низ пиццы, чтобы плашка не попала в круг */
  background-size: 140%;
  background-position: 60% 95%;
  transition: opacity .2s;
}
.halves-pic__half--left { clip-path: inset(0 50% 0 0); }
.halves-pic__half--right { clip-path: inset(0 0 0 50%); }
.halves-pic__half.empty { background-image: none; background-color: #F3F3F3; }
.halves-pic::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--white);
}
.pcard--halves { cursor: pointer; }
.pcard--halves .pcard__img-wrap { display: flex; align-items: center; justify-content: center; border: 0; width: 100%; padding: 6%; background: none; }
.pcard--halves .pcard__name { background: none; border: 0; padding: 0; text-align: inherit; color: inherit; font-family: inherit; cursor: pointer; }

.halves {
  position: relative;
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "preview list" "preview buy";
  width: 100%;
  max-width: 980px;
  height: min(720px, 90vh);
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
}
.halves__preview { grid-area: preview; padding: 32px 24px; background: #FAFAFA; overflow-y: auto; text-align: center; }
.halves__pic { width: 260px; margin: 8px auto 20px; box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.halves__title { font-size: 24px; font-weight: 900; color: var(--navy, #1B2D5B); margin-bottom: 14px; }
.halves__slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.halves__slot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
  font-size: 12px;
  color: var(--gray-500);
  cursor: pointer;
}
.halves__slot b { font-size: 14px; font-weight: 800; color: var(--navy, #1B2D5B); }
.halves__slot.active { border-color: var(--orange); }
.halves__desc { margin-top: 14px; text-align: left; font-size: 13px; line-height: 1.4; color: var(--gray-700); }
.halves__desc p { margin: 0 0 6px; }
.halves__list { grid-area: list; overflow-y: auto; padding: 32px 24px 12px; }
.halves__hint { font-size: 18px; font-weight: 900; color: var(--navy, #1B2D5B); margin-bottom: 14px; padding-right: 40px; }
.halves__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.halves__loading { grid-column: 1 / -1; height: 200px; }
.halves-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px 12px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(27,45,91,.08);
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, opacity .15s, transform .1s;
}
.halves-card:active { transform: scale(.97); }
.halves-card.picked { border-color: var(--orange); }
.halves-card.busy { opacity: .45; cursor: default; }
.halves-card__img {
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--gray-100) no-repeat 60% 95% / 140%;
}
.halves-card__name { font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--navy, #1B2D5B); }
.halves-card__price { margin-top: auto; font-size: 14px; font-weight: 800; color: var(--navy, #1B2D5B); }
.halves-card__side {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
}
.halves__buy { grid-area: buy; padding: 12px 24px 24px; }
@media (hover: hover) { .halves-card:not(.busy):hover { box-shadow: 0 4px 16px rgba(27,45,91,.14); } }
@media (max-width: 900px) { .halves__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 768px) {
  .halves {
    display: flex;
    flex-direction: column;
    max-width: none;
    height: 100%;
    border-radius: 0;
    overflow-y: auto;
    animation: sheetIn .25s ease;
  }
  .halves__preview { padding: 16px 16px 12px; overflow: visible; }
  .halves__pic { width: 200px; margin: 4px auto 12px; }
  .halves__title { font-size: 20px; margin-bottom: 10px; }
  .halves__desc { display: none; }
  .halves__list { overflow: visible; padding: 16px 16px 8px; }
  .halves__hint { font-size: 16px; padding-right: 0; }
  .halves__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .halves__buy {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--white);
    box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  }
  .halves-overlay .modal__close { top: 12px; left: 12px; right: auto; background: rgba(255,255,255,.9); box-shadow: 0 1px 6px rgba(0,0,0,.12); }
}
.cart-item__img.halves-pic { width: 64px; height: 64px; border-radius: 50%; }
.order-item__img.halves-pic { width: 56px; height: 56px; border-radius: 50%; }

/* Половинки разъезжаются: карточка — при наведении и один раз при появлении на экране, конструктор — при выборе. */
.halves-pic__half { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .2s; }
.halves-pic::after { transition: opacity .2s; }
@media (hover: hover) {
  .pcard--halves:hover .halves-pic__half--left { transform: translateX(-7%); }
  .pcard--halves:hover .halves-pic__half--right { transform: translateX(7%); }
  .pcard--halves:hover .halves-pic::after { opacity: 0; }
}
.halves-pic.peek .halves-pic__half--left { animation: halvesPeekLeft 1.1s ease-in-out; }
.halves-pic.peek .halves-pic__half--right { animation: halvesPeekRight 1.1s ease-in-out; }
.halves-pic.peek::after { animation: halvesPeekLine 1.1s ease-in-out; }
.halves-pic__half--left.enter { animation: halvesInLeft .55s cubic-bezier(.34, 1.56, .64, 1); }
.halves-pic__half--right.enter { animation: halvesInRight .55s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes halvesPeekLeft { 35%, 55% { transform: translateX(-8%); } }
@keyframes halvesPeekRight { 35%, 55% { transform: translateX(8%); } }
@keyframes halvesPeekLine { 25%, 65% { opacity: 0; } }
@keyframes halvesInLeft { from { transform: translateX(-35%); opacity: 0; } }
@keyframes halvesInRight { from { transform: translateX(35%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .halves-pic__half, .halves-pic.peek .halves-pic__half, .halves-pic__half.enter, .halves-pic.peek::after { animation: none; transition: none; }
}

/* ---------- Плашка «Сейчас закрыты» ---------- */

/* ---------- Всплывающее сообщение (сверху: внизу на телефоне закрыло бы кнопку оформления в корзине) ---------- */
.toast {
  position: fixed; left: 50%; top: 20px; z-index: 3000; max-width: min(520px, calc(100vw - 32px));
  padding: 12px 18px; border-radius: var(--radius-pill); background: var(--dark); color: var(--white);
  font-size: 14px; font-weight: 700; line-height: 1.35; box-shadow: 0 10px 30px rgba(27,45,91,.25);
  transform: translate(-50%, -20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.order-card__btn.loading { opacity: .6; pointer-events: none; }

/* ---------- Отзыв о заказе ---------- */
.review { margin-top: 20px; padding: 18px 20px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; }
.review__title { font-size: 18px; font-weight: 900; margin: 0 0 8px; }
.review__stars { display: flex; gap: 4px; }
.review__star { padding: 2px; border: 0; background: none; cursor: pointer; line-height: 0; transition: transform .15s; }
.review__star svg { fill: var(--gray-200); transition: fill .15s; }
.review__star.active svg { fill: #FFB020; }
.review__stars:not(.review__stars--fixed) .review__star:hover { transform: scale(1.12); }
.review__star:disabled { cursor: default; }
.review__form { margin-top: 12px; display: grid; gap: 10px; justify-items: start; }
.review__form[hidden] { display: none; }
.review__text { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); font: inherit; font-size: 14px; resize: vertical; }
.review__text:focus { outline: none; border-color: var(--dark); }
.review__quote { margin: 12px 0 0; padding: 10px 14px; background: var(--gray-50); border-radius: var(--radius-sm); font-size: 14px; color: var(--gray-700); white-space: pre-line; }
.review__done { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--green); }
.review__error { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--orange); }
.review__done[hidden], .review__error[hidden] { display: none; }
.review__platform { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gray-200); }
.review__platform[hidden] { display: none; }
.review__platform-text { margin: 0 0 10px; font-size: 14px; color: var(--gray-700); }
/* Кнопка площадки отзывов (datanika.tgbot Platforms; те же стили — на странице настроек в админке). */
.pir-platform { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; border-radius: 12px; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; transition: filter .15s, transform .15s; }
.pir-platform:hover { filter: brightness(.95); }
.pir-platform:active { transform: scale(.98); }
.pir-platform__icon { display: inline-flex; line-height: 0; }
.pir-platform--yandex { background: #FC3F1D; color: #fff; }
.pir-platform--2gis { background: #1DAD4E; color: #fff; }
.pir-platform--vk { background: #0077FF; color: #fff; }
.pir-platform--google { background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1px #dadce0; }
.order-card__rating { color: #FFB020; font-size: 16px; letter-spacing: 1px; }

/* ---------- Объявления: окно, плашка над шапкой, плашка над подвалом ---------- */
.announce-top[hidden] { display: none; }
.announce-bar { font-size: 14px; font-weight: 700; line-height: 1.35; text-align: center; }
.announce-bar__inner { max-width: var(--max-w); margin: 0 auto; padding: 9px 16px; }
.announce-bar--dark { background: var(--dark); color: var(--white); }
.announce-bar--accent { background: var(--orange); color: var(--white); }
.announce-bar--light { background: var(--orange-light); color: var(--dark); }
.announce-bar__link { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.announce-bar p { margin: 0; }
.announce-bottom:empty { display: none; }
.announce-bottom { max-width: var(--max-w); margin: -24px auto 40px; padding: 0 20px; }
.announce-bar--bottom { border-radius: var(--radius); }
.announce-bar--bottom .announce-bar__inner { padding: 16px 20px; }
.announce-overlay { z-index: 2700; transition: background .35s, backdrop-filter .35s; }
.announce-modal { width: 100%; max-width: 380px; background: var(--white); border-radius: 24px; padding: 32px 28px 24px; text-align: center; animation: modalIn .25s ease; transition: transform .35s cubic-bezier(.5,0,.75,0), opacity .35s; }
.announce-modal__icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--dark); color: var(--white); display: flex; align-items: center; justify-content: center; }
.announce-modal__title { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.announce-modal__text { font-size: 15px; line-height: 1.45; color: var(--gray-700); margin-bottom: 22px; }
.announce-modal__text p { margin: 0 0 8px; }
.announce-modal__btn { display: block; width: 100%; padding: 15px; background: var(--orange); color: var(--white); font-size: 16px; font-weight: 800; border-radius: var(--radius-pill); text-align: center; }
.announce-modal__btn:hover { background: var(--orange-hover); color: var(--white); }
.announce-modal__close { display: block; width: 100%; margin-top: 8px; padding: 12px; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 700; color: var(--gray-500); cursor: pointer; }
.announce-modal__close:hover { color: var(--dark); }
.announce-modal__text a { color: var(--orange); font-weight: 800; white-space: nowrap; }
.announce-overlay--out { background: transparent !important; backdrop-filter: none !important; pointer-events: none; }
.announce-overlay--out .announce-modal { transform: translateY(-48vh) scale(.25); opacity: 0; }
.announce-top--in { animation: announceIn .4s .15s ease both; }
@keyframes announceIn { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Корзина в шапке рядом с «Войти»; в навигации — только когда она прилипла ---------- */
.header__cart { margin-left: 0; }
@media (min-width: 769px) {
  .header__login { flex-direction: row; gap: 6px; padding: 10px 20px; border-radius: var(--radius-pill); background: var(--gray-100); font-size: 14px; font-weight: 800; color: var(--dark); white-space: nowrap; transition: background .15s; }
  .header__login:hover { background: var(--gray-200); }
  .header__login-icon, .header__login-icon svg { width: 18px; height: 18px; }
  .catnav .catnav__cart { transition: opacity .2s, transform .2s; }
  .catnav:not(.scrolled) .catnav__cart { opacity: 0; transform: translateX(12px); pointer-events: none; visibility: hidden; }
}
@media (max-width: 768px) {
  .header__cart { display: none; }
}

/* ---------- Отмена заказа покупателем ---------- */
.order-cancel { max-width: 640px; }
.order-cancel__card { display: block; background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 20px; }
.order-cancel__lead { font-size: 15px; line-height: 1.45; color: var(--gray-700); margin-bottom: 18px; }
.order-cancel__label { font-size: 18px; font-weight: 900; margin-bottom: 12px; }
.order-cancel__reasons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.order-cancel__reason { position: relative; cursor: pointer; }
.order-cancel__reason input { position: absolute; opacity: 0; pointer-events: none; }
.order-cancel__reason span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: var(--radius-pill); background: var(--gray-100); font-size: 14px; font-weight: 700; color: var(--dark); transition: background .15s, color .15s, box-shadow .15s; }
.order-cancel__reason span::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--gray-300); background: var(--white) center / 10px no-repeat; transition: border-color .15s, background-color .15s; }
.order-cancel__reason:hover span { background: var(--gray-200); }
.order-cancel__reason input:checked + span { background: var(--orange-light); color: var(--orange); box-shadow: inset 0 0 0 2px var(--orange); }
.order-cancel__reason input:checked + span::before { border-color: var(--orange); background-color: var(--orange); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5l2.5 2.5L10 3.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.order-cancel__reason input:focus-visible + span { outline: 2px solid var(--dark); outline-offset: 2px; }
.order-cancel__text { margin-bottom: 16px; }
.order-cancel__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.order-cancel__submit { border: 0; cursor: pointer; font-family: inherit; }
.order-cancel__submit:disabled { background: var(--gray-300); cursor: default; }
.order-cancel__hint { margin-top: 12px; font-size: 13px; color: var(--gray-500); }
.order-cancel__error { font-size: 15px; font-weight: 700; margin-bottom: 12px; }

/* ---------- ВКонтакте на телефоне: капсула ВК «… ×» справа сверху поверх страницы ----------
   Шапка прилипает (логотип всегда виден), справа в ней — пустое место под капсулу, иконка профиля слева от него.
   Меню разделов липнет под шапку, поэтому не уходит под капсулу и не даёт случайно закрыть приложение. */
.in-vk-mobile { --vk-capsule: 96px; scroll-padding-top: calc(56px + var(--catnav-h) + 20px); }
.in-vk-mobile .header { position: sticky; top: 0; z-index: 1000; background: var(--white); }
.in-vk-mobile .header__inner { padding-right: var(--vk-capsule); }
.in-vk-mobile .header__login { flex-direction: row; padding: 8px; }
.in-vk-mobile .header__login > span:not(.header__login-icon) { display: none; }
.in-vk-mobile .catnav { top: 56px; }
.in-vk-mobile .catnav.scrolled::before { top: 0; }
.in-vk-mobile .catnav__mascot, .in-vk-mobile .catnav.scrolled .catnav__mascot { display: none; }
/* Окна во весь экран: верхняя полоса под капсулу. */
.in-vk-mobile .cart-sidebar__header { padding-top: 48px; padding-right: var(--vk-capsule); }
.in-vk-mobile .story-viewer__close { right: auto; left: 10px; }

/* Код входа пришёл в Telegram: кнопка в бот и запасной вариант по SMS. */
.auth-modal__tg-open { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 4px; padding: 13px; border-radius: var(--radius-pill); background: #2aabee; color: #fff; font-weight: 800; }
.auth-modal__tg-open:hover { background: #229ed9; color: #fff; }
.auth-modal__tg-open[hidden], .auth-modal__link[hidden] { display: none; }

/* Вход через Яндекс ID / VK ID (в мини-приложениях не показываем — там свой вход). */
.auth-ids { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 4px; }
.auth-ids__btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 10px; border: 1px solid var(--gray-200); border-radius: var(--radius-pill); font-size: 14px; font-weight: 800; color: var(--dark); background: var(--white); transition: background .15s, border-color .15s; }
.auth-ids__btn:hover { background: var(--gray-50); border-color: var(--gray-300); color: var(--dark); }
.auth-ids__btn svg { flex-shrink: 0; }
.in-vk .auth-idbox, .in-telegram .auth-idbox { display: none; }

/* End */
/* /local/templates/pizziroll/template_styles.css?1793170182115332 */
