/* Fried Joy — design system */
:root {
  --orange: #ff7a00;
  --orange-dark: #e86e00;
  --yellow: #ffd524;
  --yellow-hover: #ffcc00;
  --black: #1a1a1a;
  --text: #2b2b2b;
  --muted: #6b7280;
  --light-muted: #9ca3af;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --input-bg: #f0f2f5;
  --border: #e8eaed;
  --footer: #1c1c1c;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  --font: "Montserrat", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

/* Высота шапки + липкой полоски вкладок меню (index): якоря и JS */
:root {
  --menu-tabs-stick-top: 78px;
  --menu-sticky-offset: 148px;
}

@media (max-width: 1024px) {
  :root {
    --menu-tabs-stick-top: 128px;
    --menu-sticky-offset: 198px;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-size: 15px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
}

.container {
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--border);
}

/* auto | 1fr | auto — меню не начинается, пока не закончится логотип (нет налёта «Главная» на Joy) */
.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(20px, 3vw, 36px);
  padding: 14px 0;
}

.site-header__inner .logo {
  justify-self: start;
  flex-shrink: 0;
  min-width: 0;
}

.site-header__inner .nav {
  justify-self: center;
  width: 100%;
  min-width: 0;
  justify-content: center;
}

.site-header__inner .header-actions {
  justify-self: end;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .site-header__inner {
    grid-template-columns: 1fr auto;
    row-gap: 12px;
  }

  .site-header__inner .nav {
    grid-column: 1 / -1;
    order: 3;
    justify-self: center;
    width: 100%;
    justify-content: center;
    padding-bottom: 4px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
  }

  .site-header__inner .logo {
    grid-column: 1;
  }

  .site-header__inner .header-actions {
    grid-column: 2;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo__mark-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo__wordmark {
  height: clamp(28px, 4vw, 36px);
  width: auto;
  object-fit: contain;
}

.logo__wordmark--footer {
  height: clamp(26px, 3.5vw, 32px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.nav__link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--black);
  transition: color 0.15s, background 0.15s;
}

.nav__link--pill {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav__link--pill:hover {
  background: var(--bg);
  color: var(--orange);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--orange);
}

.site-header .nav__link.is-active {
  background: rgba(255, 122, 0, 0.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--black);
  position: relative;
  transition: background 0.15s;
}

.icon-btn:hover {
  background: var(--bg);
}

.icon-btn svg {
  width: 24px;
  height: 24px;
}

.icon-btn img.icon-btn__cart-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--black);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* Hero — один готовый баннер по центру */
.hero {
  margin: 20px 0 16px;
  width: 100%;
  box-sizing: border-box;
}

.hero__wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.hero__img {
  display: block;
  width: auto;
  max-width: min(100%, 1100px);
  height: auto;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
  object-position: center center;
}

.hero__card {
  background: linear-gradient(120deg, #eceff2 0%, #e2e6ea 50%, #dde2e8 100%);
  border-radius: calc(var(--radius) + 6px);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  min-height: 280px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.hero__banner {
  border-radius: var(--radius);
  overflow: hidden;
  align-self: center;
}

.hero__banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 900px) {
  .hero__card {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero__title {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.03em;
}

.hero__desc {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--yellow {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 4px 16px rgba(255, 213, 36, 0.45);
}

.btn--yellow:hover {
  background: var(--yellow-hover);
}

.btn--orange {
  background: var(--orange);
  color: #fff;
}

.btn--orange:hover {
  background: var(--orange-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--border);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* Product modal — поверх шапки и корзины */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  overscroll-behavior: contain;
}

.product-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.product-modal {
  position: relative;
  background: var(--surface);
  border-radius: 20px;
  max-width: 920px;
  width: 100%;
  overflow: visible;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

/* Скролл только у содержимого — иначе overflow обрезает крестик за пределами блока */
.product-modal__inner {
  max-height: min(90vh, 720px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 20px;
}

.product-modal__close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #e53935;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.product-modal__close:hover {
  filter: brightness(1.05);
}

.product-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px;
  align-items: start;
}

@media (max-width: 720px) {
  .product-modal-overlay {
    padding: 52px 16px 24px;
    align-items: flex-start;
  }

  .product-modal__grid {
    grid-template-columns: 1fr;
    padding: 20px;
    padding-top: 28px;
  }

  .product-modal__close {
    top: -14px;
    right: -10px;
  }
}

.product-modal__img-wrap {
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
}

.product-modal__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1.1;
}

.product-modal__body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-top: 4px;
}

.product-modal__body h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 800;
  color: var(--black);
}

.product-modal__weight {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--light-muted);
}

.product-modal__desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
}

.size-toggle {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 22px 0 8px;
}

.size-btn {
  min-width: 52px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 2px solid var(--orange);
  background: var(--surface);
  color: var(--black);
  font-weight: 800;
  font-size: 0.95rem;
  transition: background 0.15s, color 0.15s;
}

.size-btn.is-active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.product-modal__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: auto;
  padding-top: 24px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--input-bg);
  border-radius: 12px;
  overflow: hidden;
}

.qty-stepper button {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1;
}

.qty-stepper button:hover {
  background: rgba(0, 0, 0, 0.05);
}

.qty-stepper .qty-val {
  min-width: 36px;
  text-align: center;
  font-weight: 800;
  font-size: 1rem;
}

.product-modal__price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-left: auto;
}

.product-modal__price-tag {
  font-size: 1.25rem;
  font-weight: 800;
}

.product-modal__price-unit {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.2;
}

@media (max-width: 720px) {
  .product-modal__price-block {
    margin-left: 0;
    align-items: flex-start;
  }
}

.product-modal__add {
  flex: 1;
  min-width: 140px;
}

/* Как у «Выбрать» на карточке: оранжевая заливка при наведении на окно или на кнопку */
.product-modal__add.btn--yellow:not(:disabled) {
  transition:
    transform 0.12s,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.product-modal:hover .product-modal__add.btn--yellow:not(:disabled),
.product-modal__add.btn--yellow:hover:not(:disabled) {
  background: var(--orange);
  color: #fff;
  box-shadow:
    0 6px 22px rgba(255, 122, 0, 0.45),
    0 0 0 3px rgba(255, 122, 0, 0.2);
}

/* Section menu */
.section-menu {
  padding: 40px 0 80px;
}

.section-menu .section-head {
  text-align: center;
  margin-inline: auto;
  margin-bottom: 24px;
  max-width: 640px;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-menu .section-head p {
  margin-inline: auto;
}

/* Category tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  width: fit-content;
  max-width: 100%;
}

.section-menu .tabs:not(.tabs--jump) {
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

.tabs--jump {
  position: sticky;
  top: var(--menu-tabs-stick-top);
  z-index: 95;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: fit-content;
  max-width: min(960px, calc(100% - 8px));
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  padding: 10px 14px;
  gap: 8px;
  scrollbar-width: thin;
  box-sizing: border-box;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}

.tabs--jump .tab {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 14px 22px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.menu-category {
  scroll-margin-top: var(--menu-sticky-offset);
  margin-bottom: 48px;
}

.menu-category:last-child {
  margin-bottom: 0;
}

.menu-category__title {
  margin: 0 0 20px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.tab {
  border: none;
  background: transparent;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.tab:hover {
  color: var(--black);
}

.tab.is-active {
  background: var(--yellow);
  color: var(--black);
  box-shadow: none;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.section-menu .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  justify-content: center;
  max-width: 1100px;
  margin-inline: auto;
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-menu .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-menu .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .section-menu .product-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover:not(.card--disabled) {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.card--disabled {
  opacity: 0.65;
  filter: grayscale(0.9);
}

.card__img-wrap {
  position: relative;
  aspect-ratio: 1.15;
  overflow: hidden;
  background: #eee;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge--sale {
  background: #e53935;
  color: #fff;
}

.badge--hit {
  background: var(--orange);
  color: #fff;
}

.card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 800;
}

.card__text {
  margin: 0 0 16px;
  font-size: 0.82rem;
  color: var(--muted);
  flex: 1;
  line-height: 1.45;
}

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

/* Карточка товара: при наведении на позицию — жёлтая кнопка → оранжевая, белый текст, «обводка» сзади */
.card:not(.card--disabled) .btn--yellow {
  transition:
    transform 0.12s,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.card:not(.card--disabled):hover .btn--yellow:not(:disabled) {
  background: var(--orange);
  color: #fff;
  box-shadow:
    0 6px 22px rgba(255, 122, 0, 0.45),
    0 0 0 3px rgba(255, 122, 0, 0.2);
}

.price {
  font-weight: 800;
  font-size: 1.05rem;
}

.price--old {
  text-decoration: line-through;
  color: var(--light-muted);
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: 8px;
}

/* Footer */
.site-footer {
  background: var(--footer);
  color: #e5e5e5;
  padding: 48px 0 0;
  margin-top: auto;
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 32px;
}

.footer-grid--compact {
  display: grid;
  grid-template-columns: auto auto;
  align-items: flex-start;
  justify-content: center;
  justify-items: center;
  column-gap: clamp(40px, 8vw, 88px);
  text-align: center;
  padding-bottom: 32px;
}

.footer-grid--compact .footer-brand {
  text-align: center;
}

.footer-grid--compact .footer-brand .logo {
  justify-content: center;
}

.footer-grid--compact .footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-grid--compact .footer-contact {
  justify-self: center;
  text-align: center;
  max-width: 24rem;
}

.footer-grid--compact .footer-contact .email {
  display: inline-block;
}

.footer-contact__meta {
  margin: 8px 0 0;
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid--compact {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 28px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid--compact {
    grid-template-columns: 1fr;
  }
}

/* Текстовые страницы (политики) */
.legal-page {
  padding: 32px 0 56px;
  max-width: 800px;
}

.legal-page h1 {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--black);
}

.legal-page h2 {
  margin: 28px 0 12px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--black);
}

.legal-page h3 {
  margin: 20px 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.legal-page p,
.legal-page li {
  color: var(--text);
  line-height: 1.65;
  font-size: 0.95rem;
}

.legal-page a {
  color: var(--orange);
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page .legal-muted {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 32px;
}

.legal-page .legal-muted a {
  color: var(--orange);
  text-decoration: underline;
}

/* «Доставка и оплата», «О нас» */
.static-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 0 56px;
}

.static-page h1 {
  margin: 0 0 24px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--black);
}

.static-page p {
  margin: 0 0 14px;
  line-height: 1.65;
  color: var(--text);
  font-size: 0.95rem;
}

.static-page strong {
  font-weight: 700;
  color: var(--black);
}

.static-page a {
  color: var(--orange);
}

.about-page .about-block {
  margin-bottom: 20px;
}

.delivery-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 36px 40px;
  align-items: start;
}

.delivery-split__main p {
  margin: 0 0 14px;
  line-height: 1.65;
  color: var(--text);
  font-size: 0.95rem;
}

.delivery-split__main h2 {
  margin: 22px 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
}

.delivery-split__aside {
  border-left: 3px solid var(--yellow);
  padding-left: 28px;
}

.delivery-split__aside h2 {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
}

.delivery-split__aside p,
.delivery-split__aside li {
  margin: 0 0 8px;
  line-height: 1.55;
  font-size: 0.92rem;
  color: var(--text);
}

.delivery-split__aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 768px) {
  .delivery-split {
    grid-template-columns: 1fr;
  }

  .delivery-split__aside {
    border-left: none;
    border-top: 3px solid var(--yellow);
    padding-left: 0;
    padding-top: 24px;
  }
}

.footer-brand .logo__title,
.footer-brand .logo__sub {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-col h3 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.footer-col a {
  color: #ccc;
}

.footer-contact .email {
  color: #fff;
  word-break: break-all;
}

.btn--footer {
  margin-top: 12px;
  background: var(--yellow);
  color: var(--black);
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.social--tg {
  background: #229ed9;
}
.social--wa {
  background: #25d366;
}
.social--vb {
  background: #7360f2;
}
.social--ig {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743);
}

.footer-bar {
  border-top: 1px solid #333;
  padding: 16px 0 20px;
  font-size: 0.8rem;
  color: #888;
  text-align: center;
}

.footer-bar__inner {
  margin: 0 auto;
  line-height: 1.55;
  text-align: center;
  max-width: 32rem;
}

.footer-bar__inner p {
  margin: 0 0 6px;
}

.footer-bar__inner p:last-child {
  margin-bottom: 0;
}

/* Cart drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--surface);
  z-index: 210;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__head {
  padding: 20px 20px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer__head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.cart-drawer__body {
  flex: 1;
  overflow: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px 40px;
  flex: 1;
  min-height: min(420px, 55vh);
}

.cart-empty__img {
  width: min(280px, 88%);
  height: auto;
  display: block;
  margin: 0 auto 20px;
  object-fit: contain;
}

.cart-empty__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
}

.cart-empty__hint {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.45;
  max-width: 16rem;
}

#cart-drawer .cart-drawer__foot.hidden {
  display: none !important;
}

.cart-line {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.cart-line__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--input-bg);
}

.cart-line__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cart-line__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-line__top {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}

.cart-line__text {
  flex: 1;
  min-width: 0;
}

.cart-line__title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  margin: 0 0 4px;
}

.cart-line__muted {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 4px;
}

.cart-line__desc {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-line__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cart-line__line-sum {
  font-weight: 800;
  font-size: 1rem;
  color: var(--black);
}

.cart-line__per {
  font-size: 0.82rem;
  color: var(--muted);
}

.cart-line__info {
  flex: 1;
  min-width: 0;
}

.cart-line__meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.cart-line__tail {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.cart-line__price {
  font-weight: 800;
  white-space: nowrap;
}

.cart-line__remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--light-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.cart-line__remove:hover {
  background: rgba(229, 57, 53, 0.12);
  color: #c62828;
}

.cart-drawer__foot {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--border);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

/* Checkout */
.checkout-page .main {
  background: var(--surface);
  padding-bottom: 60px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
  padding-top: 28px;
}

@media (max-width: 960px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

.checkout-title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 800;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.stepper__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--light-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.stepper__item.is-done {
  color: var(--muted);
}

.stepper__item.is-current {
  color: var(--orange);
}

.stepper__circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
  background: var(--surface);
}

.stepper__item.is-done .stepper__circle {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.stepper__item.is-current .stepper__circle {
  border-color: var(--orange);
  color: var(--orange);
}

.stepper__dash {
  width: 24px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--border),
    var(--border) 4px,
    transparent 4px,
    transparent 8px
  );
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.input,
.textarea,
.select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--input-bg);
  font-size: 0.95rem;
  font-family: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.15);
}

.textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 640px) {
  .form-row-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  font-size: 0.95rem;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--orange);
}

/* Toggle delivery time */
.toggle-pair {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.toggle-btn {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.9rem;
}

.toggle-btn.is-active {
  border-color: var(--orange);
  background: rgba(255, 122, 0, 0.08);
  color: var(--orange);
}

.time-picker-wrap {
  margin-top: 12px;
  display: none;
}

.time-picker-wrap.is-visible {
  display: block;
}

/* Promo inline */
.promo-row {
  display: flex;
  gap: 10px;
}

.promo-row .input {
  flex: 1;
}

/* Payment box */
.pay-box {
  background: var(--input-bg);
  border-radius: var(--radius);
  padding: 20px;
}

.pay-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.pay-option:last-child {
  border-bottom: none;
}

.pay-option input[type="radio"] {
  margin-top: 4px;
  accent-color: var(--orange);
}

.pay-option label {
  flex: 1;
  cursor: pointer;
}

.pay-option__sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.checkout-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.link-back {
  color: var(--muted);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-back:hover {
  color: var(--orange);
}

/* Sticky order summary */
.order-summary {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.order-summary h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 800;
}

.order-summary__line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.order-summary__line-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--input-bg);
}

.order-summary__line-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.order-summary__line-info {
  flex: 1;
  min-width: 0;
}

.order-summary__line-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.order-summary__line-sum {
  font-weight: 800;
  white-space: nowrap;
}

.order-summary__line small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 4px;
}

.order-summary__total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.15rem;
  margin-top: 16px;
}

/* Account page */
.account-page .main {
  padding: 32px 0 60px;
}

.account-section {
  margin-bottom: 40px;
}

.account-section h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 800;
}

.promo-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 420px;
}

.promo-card img,
.promo-card .gift-placeholder {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
}

.gift-placeholder {
  background: linear-gradient(145deg, #e8eaed, #d1d5db);
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 3rem;
}

.promo-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.link-orange {
  color: var(--orange);
  font-weight: 700;
  margin-top: 12px;
  display: inline-block;
}

.link-orange:hover {
  text-decoration: underline;
}

.field-display {
  background: var(--input-bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-display span {
  font-weight: 500;
}

.field-action {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.9rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.field-action:hover {
  text-decoration: underline;
}

.label-with-info {
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--light-muted);
  color: var(--light-muted);
  font-size: 0.7rem;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.subscriptions .checkbox-row {
  max-width: 560px;
}

.orders-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.orders-table th,
.orders-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.orders-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
}

.btn-logout {
  background: var(--input-bg);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--text);
}

.btn-logout:hover {
  background: var(--border);
}

.sub-hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 12px;
}

/* Auth — шапка без меню: только лого (иконка + надпись) по центру */
.site-header--auth .site-header__inner.site-header__inner--auth {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  column-gap: 0;
}

.site-header--auth .logo--auth {
  margin-inline: auto;
}

@media (max-width: 1024px) {
  .site-header--auth .site-header__inner.site-header__inner--auth {
    display: flex;
    justify-content: center;
    grid-template-columns: unset;
    row-gap: 0;
    padding: 16px 0;
  }
}

/* Auth */
.auth-page .main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 200px);
  padding: 40px 20px;
}

.auth-card {
  width: min(420px, 100%);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
}

.auth-card p:not(.auth-hint) {
  text-align: center;
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

.code-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.code-inputs input {
  width: 52px;
  height: 56px;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
}

.code-inputs input:focus {
  outline: none;
  border-color: var(--orange);
}

.auth-hint {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 8px;
}
