@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;800&display=swap');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background: #f3f2ee;
  color: #0b0b09;
  font-family: Roboto, Arial, sans-serif;
}
body.auth-body .page-main {
  display: flex;
  flex: 1;
  align-items: center;
}
body.auth-body .auth-layout {
  width: 100%;
}
button, a { font: inherit; }
img { max-width: 100%; }
.city-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  border-radius: 18px;
  padding: 0 18px;
  background: #ffc629;
  color: #0b0b09;
}
.city-button img { width: 10px; }
.top-menu {
  position: sticky;
  top: 0;
  z-index: 90;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: #fff;
}
.top-menu__inner {
  display: flex;
  width: min(1540px, calc(100% - 48px));
  min-height: 74px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.top-menu__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0b0b09;
  text-decoration: none;
}
.top-menu__logo-mark {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffc629;
  font-weight: 800;
}
.top-menu__logo-image {
  display: block;
  width: auto;
  max-width: 120px;
  height: 44px;
  object-fit: contain;
}
.top-menu__logo-text {
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
}
.top-menu__categories {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
}
.top-menu__categories a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border-radius: 18px;
  padding: 0 14px;
  color: #0b0b09;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.top-menu__categories a:hover {
  background: #f3f2ee;
}
.top-menu__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.top-menu__actions form {
  margin: 0;
}
.top-menu__phone {
  color: #0b0b09;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}
.top-menu__link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #e4ded0;
  border-radius: 20px;
  padding: 0 14px;
  background: #fff;
  color: #0b0b09;
  font-weight: 800;
  text-decoration: none;
}
.top-menu__link:hover {
  border-color: #ffc629;
  background: #fff8df;
}
.language-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.language-select-wrap::after {
  position: absolute;
  right: 13px;
  width: 7px;
  height: 7px;
  border-right: 2px solid #0b0b09;
  border-bottom: 2px solid #0b0b09;
  content: "";
  pointer-events: none;
  transform: translateY(-2px) rotate(45deg);
}
.language-select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 38px;
  border: 1px solid #e4ded0;
  border-radius: 20px;
  padding: 0 38px 0 14px;
  background: #fff;
  color: #0b0b09;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.language-select:focus {
  outline: 2px solid rgba(255, 198, 41, .45);
  outline-offset: 2px;
}
.top-menu__cart {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 22px;
  padding: 0 22px;
  background: #ffc629;
  color: #0b0b09;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}
.top-menu__cart-count {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  padding: 0 6px;
  background: #0b0b09;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}
.menu-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}
.top-menu__cart .menu-icon {
  width: 20px;
  height: 20px;
}
.showcase {
  display: grid;
  width: min(1540px, calc(100% - 48px));
  margin: 28px auto 0;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 520px);
  gap: 34px;
  align-items: start;
}
.hero-slider {
  width: 100%;
  min-width: 0;
  margin: 0;
}
.hero-slider__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 360px;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,.08);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #f7f5f0;
}
.hero-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.hero-slider__arrow {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #ffc629;
  color: #0b0b09;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 40px;
}
.hero-slider__dots {
  display: flex;
  gap: 8px;
}
.hero-slider__dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #d6d2c8;
  cursor: pointer;
}
.hero-slider__dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: #ffc629;
}
.main-content {
  width: min(1540px, calc(100% - 48px));
  margin: 34px auto 72px;
}
.section-heading {
  margin: 0 0 24px;
  font-size: 40px;
  line-height: 1.1;
  font-weight: 800;
}
.deals-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.deals .section-heading {
  margin-bottom: 0;
  font-size: 30px;
}
.slider-controls {
  display: flex;
  gap: 10px;
}
.slider-button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #ffc629;
  color: #0b0b09;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 40px;
}
.deals-track {
  display: grid;
  grid-auto-columns: minmax(320px, 380px);
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #ffc629 #e8e2d5;
  padding: 4px 2px 20px;
}
.deals-track::-webkit-scrollbar {
  height: 8px;
}
.deals-track::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #e8e2d5;
}
.deals-track::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #ffc629;
}
.deal-card,
.menu-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.deal-card:hover,
.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,0,0,.1);
}
.deal-card { scroll-snap-align: start; }
.deal-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f7f5f0;
}
.deal-card__body,
.menu-card__body { padding: 18px; }
.menu-card__heading,
.modal-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.deal-card__title,
.menu-card__title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}
.menu-card__heading .menu-card__title {
  margin-bottom: 10px;
}
.product-flags {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 1px;
}
.product-flag {
  position: relative;
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: help;
  outline: none;
}
.product-flag img {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
}
.product-flag__tooltip {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 8px);
  z-index: 5;
  max-width: 160px;
  border-radius: 8px;
  padding: 6px 9px;
  background: #0b0b09;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 4px);
  transition: opacity .16s ease, transform .16s ease;
  white-space: nowrap;
}
.product-flag:hover .product-flag__tooltip,
.product-flag:focus .product-flag__tooltip {
  opacity: 1;
  transform: translate(50%, 0);
}
.deal-card__description,
.menu-card__description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #45423d;
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.showcase .deals {
  min-width: 0;
  position: relative;
  z-index: 1;
}
.showcase .slider-controls {
  display: none;
}
.showcase .deals-header {
  margin: 0;
}
.showcase .deals-track {
  max-height: 580px;
  grid-auto-columns: unset;
  grid-auto-flow: row;
  grid-template-columns: 1fr;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 8px 2px 2px;
  scroll-snap-type: y mandatory;
}
.showcase .deal-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 126px;
  border-radius: 12px;
  scroll-snap-align: start;
}
.showcase .deal-card__image {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.showcase .deal-card__body {
  padding: 14px;
}
.showcase .deal-card__title {
  margin-bottom: 8px;
  font-size: 16px;
}
.showcase .deal-card__description {
  font-size: 13px;
  -webkit-line-clamp: 3;
}
.menu { margin-top: 34px; }
.menu-section { margin-top: 44px; }
.menu-section__title {
  margin: 0 0 22px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
.menu-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
}
.menu-card__image-wrap {
  display: flex;
  height: 220px;
  align-items: center;
  justify-content: center;
  background: #f7f5f0;
}
.menu-card__image {
  max-height: 100%;
  object-fit: contain;
}
.menu-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.menu-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}
.menu-card__price {
  font-size: 22px;
  white-space: nowrap;
}
.menu-card__button,
.modal-card__action {
  min-height: 42px;
  border: 0;
  border-radius: 22px;
  padding: 0 18px;
  background: #ffc629;
  color: #0b0b09;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}
.site-footer {
  margin-top: auto;
  background: #050505;
  color: #fff;
}
.footer-inner {
  display: grid;
  width: min(1540px, calc(100% - 48px));
  min-height: 260px;
  margin: 0 auto;
  grid-template-columns: 1.2fr 1.3fr 1fr;
  gap: 40px;
  padding: 34px 0;
}
.footer-phone { font-size: 22px; font-weight: 800; }
.footer-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-radius: 22px;
  margin-top: 18px;
  padding: 0 28px;
  background: #ffc629;
  color: #0b0b09;
  font-weight: 800;
}
.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 26px;
}
.footer-socials img { width: 44px; height: 44px; }
.footer-social-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #fff;
  text-decoration: none;
}
.footer-social-link--text {
  border: 1px solid #333;
  border-radius: 22px;
  padding: 0 14px;
  color: #f4f4f4;
  font-size: 12px;
  font-weight: 800;
}
.footer-social-link--text:hover {
  border-color: #ffc629;
  color: #ffc629;
}
.footer-muted { color: #9d9d9d; }
.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.modal-shell.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal-shell__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #0b0b09;
  color: #fff;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 30px;
  transition: background .18s ease, transform .18s ease;
}
.modal-shell__close:hover {
  background: #ffc629;
  color: #0b0b09;
  transform: rotate(90deg);
}
.modal-shell__body {
  position: relative;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0,0,0,.24);
  opacity: 0;
  transform: translateY(18px) scale(.965);
  transition: opacity .24s ease, transform .24s cubic-bezier(.2,.8,.2,1);
}
.modal-shell.is-open .modal-shell__body {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.modal-shell--compact .modal-shell__body {
  width: min(760px, calc(100% - 24px));
}
.modal-shell--address .modal-shell__body {
  width: fit-content;
  max-width: min(760px, calc(100% - 24px));
}
.modal-card {
  display: grid;
  max-height: inherit;
  align-items: start;
  grid-template-columns: minmax(280px, 430px) minmax(320px, 490px);
}
.modal-card__image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: min(640px, calc(100vh - 48px));
  object-fit: contain;
  background: #f7f5f0;
}
.modal-card--deal {
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
}
.modal-card--deal .modal-card__image {
  height: auto;
  min-height: 0;
  max-height: min(640px, calc(100vh - 48px));
  object-fit: cover;
  object-position: center top;
}
.modal-card--deal .modal-card__content {
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding-bottom: 0;
}
.modal-card--product,
.modal-card--combo {
  grid-template-columns: 430px minmax(320px, 490px);
}
.modal-card--product .modal-card__image,
.modal-card--combo .modal-card__image {
  width: 430px;
  height: 430px;
  min-height: 0;
  max-width: 100%;
  max-height: min(430px, calc(100vh - 48px));
  object-fit: contain;
}
.modal-card--product .modal-card__content,
.modal-card--combo .modal-card__content {
  height: min(430px, calc(100vh - 48px));
  max-height: min(430px, calc(100vh - 48px));
}
.modal-card--form {
  display: block;
}
.modal-card--form .modal-card__content {
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  padding: 38px 34px 34px;
}
.modal-card--address .modal-card__content {
  width: min(620px, calc(100vw - 36px));
  max-height: min(680px, calc(100vh - 36px));
  padding: 30px 28px 28px;
}
.modal-card--address .modal-card__title {
  margin-bottom: 18px;
  font-size: 28px;
}
.modal-card--address .form-grid {
  gap: 12px 14px;
}
.modal-card--address .field input,
.modal-card--address .field textarea {
  min-height: 44px;
  padding: 10px 12px;
}
.modal-card--address .field textarea {
  min-height: 88px;
}
.modal-card--address .choice-item {
  padding: 10px 12px;
}
.modal-card--address .button-row {
  margin-top: 12px;
}
.modal-card--confirm .modal-card__content {
  width: min(520px, calc(100vw - 36px));
  padding: 30px 28px 28px;
}
.modal-card--confirm .modal-card__title {
  margin-bottom: 14px;
  font-size: 28px;
}
.modal-card--confirm .button-row {
  margin-top: 20px;
}
.modal-card--form .field,
.modal-card--form .button-row {
  opacity: 0;
  transform: translateY(8px);
  animation: modalFieldIn .24s ease forwards;
}
.modal-card--form .field:nth-of-type(2) { animation-delay: .03s; }
.modal-card--form .field:nth-of-type(3) { animation-delay: .06s; }
.modal-card--form .field:nth-of-type(4) { animation-delay: .09s; }
.modal-card--form .field:nth-of-type(5) { animation-delay: .12s; }
.modal-card--form .button-row { animation-delay: .15s; }
.modal-card__content {
  display: flex;
  min-height: 0;
  max-height: min(760px, calc(100vh - 48px));
  flex-direction: column;
  overflow-y: auto;
  padding: 42px 34px 0;
  scrollbar-color: #ffc629 #eee8dc;
  scrollbar-width: thin;
}
.modal-card__title {
  margin: 0 46px 16px 0;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 800;
}
.modal-card__heading {
  align-items: center;
  margin: 0 46px 16px 0;
}
.modal-card__heading .modal-card__title {
  margin: 0;
}
.modal-card__heading .product-flags {
  padding-top: 0;
}
.modal-card__heading .product-flag,
.modal-card__heading .product-flag img {
  width: 28px;
  height: 28px;
}
@keyframes modalFieldIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-card__description,
.modal-card__hint {
  margin: 0 0 16px;
  color: #45423d;
  font-size: 16px;
  line-height: 1.45;
}
.modal-card__hint {
  color: #777067;
}
.modal-card__section {
  border-top: 1px solid #ece8dd;
  padding: 18px 0 2px;
}
.modal-card__section-title {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}
.modal-options {
  display: grid;
  gap: 8px;
}
.modal-options--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.modal-options--visual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.modal-option {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border: 1px solid #ece8dd;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: #0b0b09;
  cursor: pointer;
  font-size: 14px;
}
.modal-options--visual .modal-option {
  display: grid;
  grid-template-columns: 20px 56px minmax(0, 1fr);
  grid-template-rows: auto auto;
  min-height: 92px;
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
  padding: 10px;
}
.modal-option:has(.modal-option__image) {
  display: grid;
  grid-template-columns: 20px 56px minmax(0, 1fr);
  grid-template-rows: auto auto;
  min-height: 92px;
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
  padding: 10px;
}
.modal-option:has(.modal-option__image):not(:has(strong)) {
  grid-template-columns: 20px 56px minmax(0, 1fr);
}
.modal-option input {
  accent-color: #ffc629;
}
.modal-option__image {
  flex: 0 0 auto;
  grid-row: 1 / span 2;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: contain;
  background: #f7f5f0;
}
.modal-option span {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}
.modal-option strong {
  grid-column: 3;
  justify-self: start;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}
.modal-option:has(.modal-option__image) input {
  grid-row: 1 / span 2;
}
.modal-option:has(.modal-option__image) span {
  align-self: end;
}
.modal-option:has(.modal-option__image) strong {
  align-self: start;
  margin-top: 3px;
}
.modal-card__section--sauces .modal-options--visual {
  grid-template-columns: 1fr;
}
.modal-card__section--sauces .modal-option:has(.modal-option__image) {
  grid-template-columns: 22px 64px minmax(0, 1fr) max-content;
  grid-template-rows: auto;
  min-height: 82px;
}
.modal-card__section--sauces .modal-option:has(.modal-option__image) input,
.modal-card__section--sauces .modal-option__image {
  grid-row: auto;
}
.modal-card__section--sauces .modal-option:has(.modal-option__image) span {
  align-self: center;
}
.modal-card__section--sauces .modal-option:has(.modal-option__image) strong {
  grid-column: 4;
  align-self: center;
  justify-self: end;
  margin-top: 0;
}
.modal-option--combo,
.modal-option--combo:has(.modal-option__image),
.modal-option--combo:has(.modal-option__image):not(:has(strong)) {
  grid-template-columns: 56px minmax(0, 1fr) max-content;
  grid-template-rows: auto;
  min-height: 78px;
}
.modal-option--combo:not(:has(.modal-option__image)) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
}
.modal-option--combo .modal-option__image,
.modal-option--combo:has(.modal-option__image) .modal-option__image {
  grid-row: auto;
  object-fit: cover;
}
.modal-option--combo span,
.modal-option--combo:has(.modal-option__image) span {
  align-self: center;
}
.modal-option--combo strong,
.modal-option--combo:has(.modal-option__image) strong {
  grid-column: auto;
  align-self: center;
  justify-self: end;
  margin-top: 0;
}
.modal-option:has(input:checked) {
  border-color: #ffc629;
  background: #fff8df;
}
.modal-card__footer {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 20px -34px 0;
  border-top: 1px solid #ece8dd;
  padding: 16px 34px 20px;
  background: #fff;
  box-shadow: 0 -10px 24px rgba(0,0,0,.06);
}
.modal-card--product .modal-card__footer,
.modal-card--combo .modal-card__footer {
  margin-top: auto;
}
.modal-card__price {
  font-size: 30px;
  white-space: nowrap;
}
.modal-card__action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  padding: 0 24px;
}
.page-main {
  width: min(1220px, calc(100% - 48px));
  margin: 44px auto 70px;
}
.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}
.page-eyebrow {
  margin: 0 0 8px;
  color: #a77900;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.page-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  font-weight: 800;
}
.page-subtitle {
  max-width: 560px;
  margin: 16px 0 0;
  color: #55514b;
  font-size: 18px;
  line-height: 1.45;
}
.page-grid,
.cart-layout,
.checkout-layout,
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.auth-layout {
  display: grid;
  min-height: 560px;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 28px;
  align-items: stretch;
}
.surface,
.cart-item,
.form-panel,
.summary-panel,
.auth-card,
.profile-card {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
}
.surface,
.form-panel,
.summary-panel,
.auth-card,
.profile-card {
  padding: 26px;
}
.surface-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #eee8dc;
  border-radius: 8px;
  margin-top: 18px;
  padding: 16px;
}
.surface-inline p {
  margin: 0;
  color: #55514b;
}
.auth-required {
  max-width: 680px;
  border-radius: 8px;
  padding: 28px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
}
.auth-required[hidden] {
  display: none;
}
.auth-required p {
  margin: 0 0 18px;
  color: #55514b;
  line-height: 1.45;
}
.surface-title {
  margin: 0 0 18px;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 800;
}
.cart-list {
  display: grid;
  gap: 14px;
}
.cart-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}
.cart-item__image {
  width: 120px;
  height: 96px;
  object-fit: contain;
  border-radius: 8px;
  background: #f7f5f0;
}
.cart-item__image--empty {
  display: block;
}
.cart-item__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}
.cart-item__meta {
  margin: 0;
  color: #69645c;
  line-height: 1.45;
}
.cart-item__tools {
  display: grid;
  justify-items: end;
  gap: 14px;
}
.stepper {
  display: inline-grid;
  grid-template-columns: 38px 44px 38px;
  min-height: 38px;
  overflow: hidden;
  border: 1px solid #e4ded0;
  border-radius: 20px;
}
.stepper form {
  display: contents;
}
.stepper button {
  border: 0;
  background: #fff8df;
  cursor: pointer;
  font-weight: 800;
}
.stepper button:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.stepper span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.cart-item__price {
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
}
.cart-item__remove {
  margin-top: 10px;
  padding: 0;
}
.cart-empty p {
  margin: 0 0 18px;
  color: #55514b;
  line-height: 1.45;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #eee8dc;
  padding: 12px 0;
  color: #4f4a43;
}
.summary-row strong {
  color: #0b0b09;
}
.summary-note {
  border-radius: 8px;
  margin: 10px 0;
  padding: 10px 12px;
  background: #fff8df;
  color: #5f4c10;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.summary-row--total {
  border-bottom: 0;
  padding-top: 18px;
  font-size: 24px;
  font-weight: 800;
}
.promo-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 20px 0;
}
.field {
  display: grid;
  gap: 8px;
}
.field span,
.choice-title {
  color: #393630;
  font-size: 14px;
  font-weight: 800;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #ddd6c8;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff;
  color: #0b0b09;
  font: inherit;
}
.password-control {
  position: relative;
  display: block;
}
.field .password-control input {
  padding-right: 52px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5d574d;
  cursor: pointer;
  transform: translateY(-50%);
}
.password-toggle:hover,
.password-toggle:focus-visible {
  background: #f6f0e4;
  color: #0b0b09;
}
.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.password-toggle__eye-off,
.password-toggle.is-visible .password-toggle__eye {
  display: none;
}
.password-toggle.is-visible .password-toggle__eye-off {
  display: block;
}
.field textarea {
  min-height: 112px;
  padding-top: 12px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field--wide {
  grid-column: 1 / -1;
}
.choice-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}
.choice-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid #e5dfd1;
  border-radius: 8px;
  padding: 14px;
}
.choice-item input {
  margin-top: 3px;
  accent-color: #ffc629;
}
.choice-item strong,
.choice-item small {
  display: block;
}
.choice-item small {
  margin-top: 4px;
  color: #69645c;
}
.choice-item:has(input:checked) {
  border-color: #ffc629;
  background: #fff8df;
}
.button-primary,
.button-secondary {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 24px;
  padding: 0 24px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}
.button-primary {
  background: #ffc629;
  color: #0b0b09;
}
.button-primary:disabled,
.button-secondary:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.button-secondary {
  background: #0b0b09;
  color: #fff;
}
.button-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 0;
  background: transparent;
  color: #9d1515;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.auth-visual {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 8px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(11,11,9,.18), rgba(11,11,9,.76)),
    url('https://sinizzais.ru/uploads/media/products/0001/03/e9e29ae5871cfc18c3403a5f4c8fce0c41c25a18.jpeg') center/cover;
  color: #fff;
}
.auth-visual h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1;
  font-weight: 800;
}
.auth-visual p {
  max-width: 520px;
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.45;
}
.auth-card {
  align-self: center;
}
.auth-card form {
  display: grid;
  gap: 16px;
}
.auth-message {
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}
.auth-message--success {
  border: 1px solid #c8e3c1;
  background: #f0faed;
  color: #245d1c;
}
.auth-message--error {
  border: 1px solid #f0b7b7;
  background: #fff0f0;
  color: #9d1515;
}
.auth-card form[hidden] {
  display: none;
}
.auth-step-text {
  margin: 0;
  color: #55514b;
  font-size: 15px;
  line-height: 1.45;
}
.otp-input {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 6px;
}
.otp-tools {
  display: grid;
  gap: 10px;
}
.otp-tools .button-secondary:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.auth-actions {
  display: flex;
  justify-content: flex-end;
}
.auth-actions a {
  color: #0b0b09;
  font-size: 14px;
  font-weight: 800;
}
.auth-note {
  margin: 18px 0 0;
  color: #5d574d;
  line-height: 1.45;
}
.auth-note a {
  color: #0b0b09;
  font-weight: 800;
}
.profile-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.profile-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
}
.profile-sidebar a,
.profile-sidebar button {
  display: flex;
  min-height: 42px;
  align-items: center;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: transparent;
  color: #0b0b09;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}
.profile-sidebar form {
  margin: 0;
}
.profile-sidebar a:hover,
.profile-sidebar button:hover {
  background: #fff8df;
}
.profile-sidebar a.is-active {
  background: #ffc629;
}
.profile-sidebar button.profile-sidebar__logout {
  color: #9d1515;
}
.profile-sidebar button.profile-sidebar__logout:hover {
  background: #fff0f0;
}
.profile-content {
  display: grid;
  gap: 24px;
}
.profile-section {
  scroll-margin-top: 96px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head .surface-title {
  margin: 0;
}
.address-form {
  margin-top: 18px;
  border-top: 1px solid #eee8dc;
  padding-top: 18px;
}
.address-table-wrap {
  overflow-x: auto;
  border: 1px solid #eee8dc;
  border-radius: 8px;
}
.address-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.address-table th,
.address-table td {
  border-bottom: 1px solid #eee8dc;
  padding: 14px;
  text-align: left;
  vertical-align: top;
}
.address-table th {
  color: #5c554a;
  font-size: 13px;
  font-weight: 800;
}
.address-table tr:last-child td {
  border-bottom: 0;
}
.address-table td small {
  display: block;
  margin-top: 4px;
  color: #69645c;
}
.address-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.address-list li > div:first-child {
  min-width: min(100%, 320px);
}
.address-list small {
  display: block;
  color: #69645c;
}
.address-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 12px;
  margin-left: 8px;
  padding: 0 10px;
  background: #ffc629;
  color: #0b0b09;
  font-size: 12px;
  font-weight: 800;
}
.address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.address-actions form {
  margin: 0;
}
.address-actions .button-secondary {
  min-height: 40px;
  padding: 0 18px;
}
.field input[readonly] {
  background: #f7f5f0;
  color: #777067;
  cursor: not-allowed;
}
.order-history li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 18px;
  align-items: center;
}
.order-history strong,
.order-history span {
  grid-column: 1;
}
.order-history b {
  grid-column: 2;
  grid-row: 1 / span 2;
  white-space: nowrap;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.pagination a {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5dfd1;
  border-radius: 20px;
  padding: 0 14px;
  color: #0b0b09;
  font-weight: 800;
  text-decoration: none;
}
.pagination a.is-active {
  border-color: #ffc629;
  background: #ffc629;
}
.pagination a.is-disabled {
  pointer-events: none;
  opacity: .45;
}
.plain-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plain-list li {
  border: 1px solid #eee8dc;
  border-radius: 8px;
  padding: 14px;
  line-height: 1.45;
}
.plain-list strong {
  display: block;
  margin-bottom: 4px;
}
.settings-panel {
  margin-top: 24px;
}
@media (max-width: 1320px) {
  .menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1180px) {
  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .showcase {
    grid-template-columns: 1fr;
  }
  .showcase .deals-track {
    max-height: none;
    grid-auto-columns: minmax(320px, 380px);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 4px 2px 20px;
  }
  .showcase .deal-card {
    display: block;
    min-height: 0;
    border-radius: 22px;
  }
  .showcase .deal-card__image {
    aspect-ratio: 16 / 9;
  }
  .showcase .slider-controls {
    display: flex;
  }
  .top-menu__inner {
    flex-wrap: wrap;
  }
}
@media (max-width: 1080px) {
  .menu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .top-menu { top: 0; }
  .top-menu__inner {
    width: calc(100% - 24px);
    min-height: auto;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0;
  }
  .top-menu__logo-text,
  .top-menu__phone {
    display: none;
  }
  .top-menu__categories {
    order: 3;
    justify-content: flex-start;
    width: 100%;
  }
  .language-select {
    min-height: 36px;
    padding: 0 34px 0 12px;
  }
  .showcase {
    width: calc(100% - 24px);
    margin-top: 22px;
    gap: 28px;
  }
  .hero-slider {
    width: 100%;
    margin-top: 0;
  }
  .hero-slider__viewport {
    aspect-ratio: 16 / 9;
    min-height: 190px;
    border-radius: 12px;
  }
  .main-content { width: min(100% - 24px, 420px); margin-top: 28px; }
  .section-heading { font-size: 30px; }
  .slider-controls { display: none; }
  .deals-track { grid-auto-columns: minmax(280px, 86vw); }
  .menu-grid, .footer-inner { grid-template-columns: 1fr; }
  .menu-section__title { font-size: 24px; }
  .modal-shell { align-items: flex-start; padding: 14px; }
  .modal-card { grid-template-columns: 1fr; }
  .modal-card__image {
    height: auto;
    min-height: 0;
    max-height: 320px;
  }
  .modal-shell--compact .modal-shell__body {
    width: min(100%, calc(100vw - 28px));
  }
  .modal-shell--address .modal-shell__body {
    width: fit-content;
    max-width: calc(100vw - 28px);
  }
  .modal-card--form .modal-card__content {
    padding: 28px 20px 24px;
  }
  .modal-card--address .modal-card__content,
  .modal-card--confirm .modal-card__content {
    width: calc(100vw - 28px);
    max-height: calc(100vh - 48px);
    padding: 26px 18px 22px;
  }
  .modal-card--address .form-grid {
    grid-template-columns: 1fr;
  }
  .modal-card--address .modal-card__title,
  .modal-card--confirm .modal-card__title {
    font-size: 24px;
  }
  .modal-card--deal {
    min-height: 0;
  }
  .modal-card--deal .modal-card__image {
    height: auto;
    min-height: 0;
    max-height: 320px;
  }
  .modal-card--product .modal-card__image,
  .modal-card--combo .modal-card__image {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 320px;
  }
  .modal-card--product .modal-card__content,
  .modal-card--combo .modal-card__content {
    height: auto;
    max-height: calc(100vh - 48px);
  }
  .modal-card--deal .modal-card__content {
    min-height: 0;
    max-height: none;
  }
  .modal-card__content {
    max-height: calc(100vh - 48px);
    padding: 28px 20px 0;
  }
  .modal-card--deal .modal-card__content {
    max-height: none;
  }
  .modal-card__title { margin-right: 44px; font-size: 24px; }
  .modal-options--compact,
  .modal-options--visual { grid-template-columns: 1fr; }
  .modal-card__footer {
    bottom: 0;
    align-items: stretch;
    flex-direction: column;
    margin: 20px -20px 0;
    padding: 14px 20px 18px;
  }
  .page-main { width: min(100% - 24px, 520px); margin-top: 28px; }
  .page-hero { display: block; }
  .page-subtitle { font-size: 16px; }
  .page-grid,
  .cart-layout,
  .checkout-layout,
  .profile-layout,
  .profile-shell,
  .auth-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .profile-sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
  }
  .profile-sidebar a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .surface-inline {
    align-items: flex-start;
    flex-direction: column;
  }
  .address-list li {
    align-items: flex-start;
    flex-direction: column;
  }
  .address-actions {
    justify-content: flex-start;
  }
  .order-history li {
    grid-template-columns: 1fr;
  }
  .order-history b {
    grid-column: 1;
    grid-row: auto;
  }
  .cart-item {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .cart-item__image {
    width: 88px;
    height: 78px;
  }
  .cart-item__tools {
    grid-column: 1 / -1;
    grid-template-columns: 1fr auto;
    justify-items: start;
    align-items: center;
  }
  .auth-visual {
    min-height: 360px;
    padding: 24px;
  }
  .promo-line {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .modal-shell,
  .modal-shell__body,
  .modal-shell__close,
  .modal-card--form .field,
  .modal-card--form .button-row {
    animation: none;
    transition: none;
  }
  .modal-card--form .field,
  .modal-card--form .button-row {
    opacity: 1;
    transform: none;
  }
}
