:root {
  --bg: #f6f1e6;
  --card: #fffdf8;
  --text: #26352f;
  --muted: #68746b;
  --line: #e3dac7;
  --green: #426b64;
  --green-deep: #355952;
  --sage: #8ca081;
  --gold: #c8a978;
  --gold-soft: #dbc49e;
  --cream: #f9f4ea;
  --success: #2f6d48;
  --danger: #a24c3a;
  --shadow: 0 18px 50px rgba(53, 89, 82, .10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(200, 169, 120, .14), transparent 28rem),
    radial-gradient(circle at right top, rgba(66, 107, 100, .10), transparent 22rem),
    var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
}

body.drawer-open { overflow: hidden; }
body.modal-open { overflow: hidden; }
a { color: inherit; }

.container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.header {
  padding: 24px 0 18px;
  background: rgba(246, 241, 230, .94);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  display: block;
  width: 178px;
  height: auto;
}

.nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(227,218,199,.8);
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  color: var(--green);
}

.nav a.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.header__right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.icon-btn {
  min-width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  padding: 0 16px;
  font: inherit;
  box-shadow: 0 12px 28px rgba(53, 89, 82, .16);
}

.js-open-cart {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  width: 60px;
  min-width: 60px;
  height: 60px;
  padding: 0;
  z-index: 35;
  box-shadow: 0 16px 34px rgba(35, 68, 61, .28);
  transition: transform .18s ease, box-shadow .18s ease;
}

.js-open-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 19px 38px rgba(35, 68, 61, .34);
}

.js-open-cart:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.phone-badge {
  position: relative;
  flex: 0 0 auto;
  min-height: 56px;
  border-radius: 999px;
  background: rgba(255,255,255,.8);
  border: 1px solid rgba(227,218,199,.9);
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  appearance: none;
  font: inherit;
  font-weight: 900;
  color: var(--green);
  white-space: nowrap;
  cursor: copy;
}

.pickup-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(227,218,199,.9);
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  color: var(--green);
}

.pickup-pill b { display: block; line-height: 1.15; }
.pickup-pill span { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

.account-pill {
  border: 1px solid rgba(227,218,199,.9);
  font: inherit;
  cursor: pointer;
}

.account-pill--active {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.account-pill__logout {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 900;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
}

.account-pill__orders {
  color: var(--green);
  font-weight: 900;
  white-space: nowrap;
}

.account-pill--unavailable {
  color: var(--danger);
  min-width: 0;
}

.login-code-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.link-button {
  width: fit-content;
  border: 0;
  padding: 0;
  background: none;
  color: var(--green);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.link-button:disabled {
  color: var(--muted);
  cursor: not-allowed;
  text-decoration: none;
}

.hidden { display: none; }

.hero { padding: 38px 0 42px; }

.hero__inner {
  min-height: 590px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 34px;
  align-items: stretch;
}

.hero__text,
.info-card,
.location-card,
.cart-drawer,
.order-card {
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero__text {
  border-radius: 46px;
  padding: 56px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.45), rgba(255,255,255,.45)),
    linear-gradient(135deg, #f8f3ea, #efe5d1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero__text::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -40px;
  width: 280px;
  height: 340px;
  background: url('/static/assets/flower.jpg') center/cover no-repeat;
  opacity: .18;
  filter: saturate(.85);
  border-radius: 28px;
}

.badge {
  width: fit-content;
  background: #fff;
  color: var(--green);
  border: 1px solid rgba(200,169,120,.4);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 900;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero h1,
.page-title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(50px, 7vw, 94px);
  line-height: .96;
  letter-spacing: -0.06em;
  color: var(--green-deep);
  position: relative;
  z-index: 1;
}

.hero p {
  max-width: 550px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.button {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--green);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  font: inherit;
}

.button--green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 28px rgba(53, 89, 82, .16);
}

.button--gold {
  background: var(--gold);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(200, 169, 120, .18);
}

.hero__visual {
  border-radius: 46px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.10)),
    linear-gradient(135deg, #4b746d, #40665f 46%, #c8a978);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/static/assets/coffee-branch.jpg') center/cover no-repeat;
  opacity: .22;
  mix-blend-mode: screen;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url('/static/assets/logo-round.png') center 42%/220px auto no-repeat,
    url('/static/assets/icon-cup.png') center 72%/180px auto no-repeat;
  opacity: .92;
}

.section { padding: 34px 0; }

.section-title {
  margin: 0 0 22px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 36px;
  letter-spacing: -0.03em;
  color: var(--green-deep);
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 32px;
}

.category-chip {
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(227,218,199,.9);
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 900;
  cursor: pointer;
  font-size: 16px;
  color: var(--green);
}

.category-chip.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.preview-grid,
.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card { background: transparent; }

.product-card--clickable {
  cursor: pointer;
}

.product-card--clickable .product-bottom button {
  cursor: pointer;
}

.product-image {
  height: 255px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.16)),
    url('/static/assets/botanical.jpg') center/cover no-repeat,
    linear-gradient(180deg, #f8faf8, #edf0ec);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.product-image::after {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 56%, rgba(66,107,100,.16), transparent 36%),
    radial-gradient(circle at 48% 43%, rgba(200,169,120,.32) 0 24%, transparent 25%);
}

.product-card:nth-child(2n) .product-image {
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.18)),
    url('/static/assets/flower.jpg') center/cover no-repeat;
}

.product-card h3 {
  margin: 18px 0 8px;
  font-size: 22px;
  color: var(--green-deep);
}

.product-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.45;
}

.product-meta {
  color: var(--muted);
  margin-bottom: 12px;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.price {
  font-size: 20px;
  font-weight: 900;
  color: var(--green-deep);
}

.page-head { padding: 48px 0 20px; }

.page-head p {
  color: var(--muted);
  max-width: 720px;
  font-size: 19px;
  line-height: 1.6;
}

.input {
  width: 100%;
  min-height: 50px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 16px;
  font: inherit;
  color: var(--green-deep);
}

.menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}

.menu-top .input { max-width: 360px; }

.about-grid,
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.info-card {
  border-radius: 34px;
  padding: 42px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.75)),
    linear-gradient(135deg, #f9f4ea, #efe6d4);
}

.info-card h2 {
  margin: 0 0 18px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 40px;
  letter-spacing: -0.05em;
  color: var(--green-deep);
}

.info-card p,
.info-card li {
  color: var(--muted);
  line-height: 1.7;
  font-size: 18px;
}

.photo-card,
.map-card {
  min-height: 520px;
  border-radius: 34px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.photo-card {
  background:
    linear-gradient(180deg, rgba(53,89,82,.10), rgba(53,89,82,.10)),
    url('/static/assets/flower.jpg') center/cover no-repeat;
}

.photo-card::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: 200px;
  height: 70px;
  background: url('/static/assets/logo-alt.png') left center/contain no-repeat;
  opacity: .95;
}

.location-list { display: grid; gap: 14px; }

.location-card {
  border-radius: 26px;
  padding: 22px;
  border: 1px solid rgba(227,218,199,.9);
}

.location-card h3 { margin: 0 0 8px; color: var(--green-deep); }
.location-card p { margin: 6px 0; color: var(--muted); }

.phone-copy {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid rgba(66, 107, 100, .22);
  border-radius: 999px;
  appearance: none;
  background: rgba(255, 255, 255, .72);
  color: var(--green-deep);
  font: inherit;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  cursor: copy;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.phone-copy:hover,
.phone-badge:hover {
  border-color: rgba(66, 107, 100, .5);
  background: #fff;
}

.phone-copy:active,
.phone-badge:active {
  transform: translateY(1px);
}

.phone-copy:focus-visible,
.phone-badge:focus-visible {
  outline: 3px solid rgba(66, 107, 100, .28);
  outline-offset: 3px;
}

.phone-copy--inline {
  vertical-align: middle;
  margin: 0 3px;
  padding: 3px 9px;
}

.location-card__phone {
  margin-top: 8px;
}

.phone-copy-toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 120;
  padding: 11px 18px;
  border-radius: 999px;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  background: var(--green-deep);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--shadow);
  transition: opacity .2s ease, transform .2s ease;
}

.phone-copy-toast.active {
  transform: translate(-50%, 0);
  opacity: 1;
}

.map-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.14)),
    url('/static/assets/plum.jpg') center/cover no-repeat;
}

.map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(66,107,100,.38), rgba(200,169,120,.22));
}

.map-card::after {
  content: "Lanvi · Уфа";
  position: absolute;
  left: 34px;
  bottom: 28px;
  color: rgba(255,255,255,.82);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 54px;
  font-weight: 500;
  letter-spacing: -0.06em;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 53, 47, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 40;
}

.cart-overlay.active { opacity: 1; pointer-events: auto; }

.product-overlay {
  position: fixed;
  inset: 0;
  background: rgba(35, 53, 47, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
  z-index: 60;
}

.product-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 28px;
  border-radius: 28px;
  transform: translate(-50%, -48%) scale(.975);
  opacity: 0;
  pointer-events: none;
  transition:
    transform .34s cubic-bezier(.22, 1, .36, 1),
    opacity .24s ease;
  will-change: transform, opacity;
  z-index: 70;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.94)),
    linear-gradient(135deg, #f9f4ea, #efe6d4);
  box-shadow: var(--shadow);
}

.product-modal.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.product-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.product-modal__head h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 34px;
  letter-spacing: -0.05em;
  color: var(--green-deep);
}

.product-modal__image {
  height: 220px;
  border-radius: 24px;
  margin-bottom: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.16)),
    url('/static/assets/botanical.jpg') center/cover no-repeat,
    linear-gradient(180deg, #f8faf8, #edf0ec);
  box-shadow: var(--shadow);
}

.product-modal__image[data-category="Десерты"] {
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.18)),
    url('/static/assets/flower.jpg') center/cover no-repeat;
}

.product-modal__meta {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 700;
}

.product-modal__section {
  margin-bottom: 16px;
}

.product-modal__section strong {
  display: block;
  margin-bottom: 8px;
  color: var(--green-deep);
  font-size: 18px;
}

.product-modal__section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.product-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.product-image--photo {
  background: #eee7da;
}

.product-image--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.product-card--clickable:hover .product-image--photo img {
  transform: scale(1.025);
}

.product-gallery {
  position: relative;
  margin-bottom: 18px;
  touch-action: pan-y;
  user-select: none;
}

.product-gallery__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 24px;
  background: #eee7da;
  box-shadow: var(--shadow);
}

.product-gallery__stage .product-modal__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  background-color: #eee7da;
  border-radius: inherit;
  box-shadow: none;
  opacity: 0;
  transform: scale(1.018);
  transition:
    opacity .34s ease,
    transform .52s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}

.product-gallery__stage .product-gallery__image--active {
  opacity: 1;
  transform: scale(1);
}

.product-gallery[data-category="Десерты"] .product-modal__image--placeholder,
.product-gallery[data-category="Мороженое"] .product-modal__image--placeholder {
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.18)),
    url('/static/assets/flower.jpg') center/cover no-repeat;
}

.product-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 999px;
  transform: translateY(-50%);
  background: rgba(53, 89, 82, .86);
  color: #fff;
  font-size: 0;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(35, 53, 47, .20);
}

.product-gallery__arrow::before {
  content: "";
  width: 11px;
  height: 11px;
  border-bottom: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

.product-gallery__arrow--previous::before {
  transform: translateX(2px) rotate(45deg);
}

.product-gallery__arrow--next::before {
  transform: translateX(-2px) rotate(225deg);
}

.product-gallery__arrow:hover,
.product-gallery__arrow:focus-visible {
  background: var(--green-deep);
}

.product-gallery__arrow--previous { left: 12px; }
.product-gallery__arrow--next { right: 12px; }

.product-gallery__counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(35, 53, 47, .72);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.product-gallery__dots {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 2px;
}

.product-gallery__dot {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.product-gallery__dot::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  background: rgba(35, 53, 47, .48);
  box-shadow: 0 1px 4px rgba(35, 53, 47, .28);
}

.product-gallery__dot.active::after {
  background: #fff;
  transform: scale(1.25);
}

@media (prefers-reduced-motion: reduce) {
  .product-overlay,
  .product-modal,
  .product-gallery__stage .product-modal__image {
    transition-duration: .01ms;
  }
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, 100%);
  height: 100vh;
  padding: 28px;
  border-radius: 28px 0 0 28px;
  transform: translateX(106%);
  transition: transform .28s ease;
  z-index: 50;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.88)),
    linear-gradient(135deg, #f9f4ea, #efe6d4);
}

.cart-drawer.active { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.cart-head h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 34px;
  letter-spacing: -0.05em;
  color: var(--green-deep);
}

.cart-close {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--green);
  cursor: pointer;
  font-size: 26px;
}

.cart-block {
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(227,218,199,.85);
  border-radius: 24px;
  padding: 18px;
  margin-bottom: 12px;
}

.cart-items { display: grid; gap: 12px; }

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.cart-item__title { font-weight: 900; color: var(--green-deep); }
.cart-item__meta { color: var(--muted); font-size: 14px; }

.qty {
  display: flex;
  gap: 8px;
  align-items: center;
}

.qty button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  cursor: pointer;
}

.qty .qty__remove {
  margin-left: 4px;
  background: #f7e9e5;
  color: #9b3d32;
  font-size: 15px;
}

.qty button:hover { filter: brightness(.96); }

.qty .qty__limit,
.product-quantity__button--limit {
  background: var(--gold-soft);
  color: var(--green-deep);
}

.qty button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.cart-total {
  margin: 18px 0;
  padding-top: 16px;
  border-top: 2px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 21px;
  color: var(--green-deep);
}

.bulk-order-note {
  display: grid;
  gap: 6px;
  padding: 13px 15px;
  border: 1px solid rgba(200, 169, 120, .6);
  border-radius: 16px;
  background: rgba(219, 196, 158, .2);
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  outline: none;
}

.bulk-order-note__phone {
  width: fit-content;
  border: 0;
  padding: 0;
  background: none;
  color: var(--green);
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  cursor: copy;
}

.bulk-order-note--highlight {
  animation: bulk-order-note-highlight 1.1s ease;
}

@keyframes bulk-order-note-highlight {
  0%, 100% { box-shadow: none; }
  35% { box-shadow: 0 0 0 4px rgba(200, 169, 120, .38); }
}

.order-form {
  display: grid;
  gap: 12px;
}

.order-form label {
  display: grid;
  gap: 7px;
  font-weight: 900;
  color: var(--green-deep);
}

.pickup-info {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(140,160,129,.18);
  color: var(--green);
  font-weight: 900;
  line-height: 1.45;
}

.message {
  margin-top: 12px;
  font-weight: 900;
  line-height: 1.45;
}

.message.success { color: var(--success); }
.message.error { color: var(--danger); }
.pickup-info.error { color: var(--danger); }

.footer {
  padding: 36px 0;
  margin-top: 44px;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.admin-page { padding: 30px 0; }

.orders { display: grid; gap: 16px; }

.customer-orders {
  margin: 18px 0;
}

.product-card__details {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
}

.product-card__details:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.customer-order-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.customer-order-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.customer-order-items {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding-left: 22px;
}

.customer-orders-back {
  display: block;
  margin-top: 20px;
  color: var(--green);
  font-weight: 900;
}

.order-card {
  border-radius: 24px;
  padding: 20px;
  background: var(--card);
}

.order-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.badge-status {
  background: rgba(200,169,120,.16);
  color: var(--green);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 8px;
  color: var(--muted);
}

.status-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 1000px) {
  .hero__inner,
  .about-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid,
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container { width: min(100% - 24px, 1280px); }

  .header__line,
  .nav,
  .header__right,
  .menu-top,
  .footer__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav a { text-align: center; }
  .pickup-pill { min-width: 0; }
  .hero__text { padding: 30px; }
  .hero h1, .page-title { font-size: 46px; }
  .preview-grid, .products { grid-template-columns: 1fr; }
  .cart-drawer { border-radius: 0; }
  .logo img { width: 150px; }
}

/* Mobile adaptation v8 */
html {
  -webkit-text-size-adjust: 100%;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font-size: 16px;
}

@media (max-width: 1180px) {
  .container {
    width: min(100% - 36px, 1280px);
  }

  .header__line {
    gap: 14px;
  }

  .nav a {
    padding: 11px 16px;
  }

  .phone-badge {
    display: none;
  }

  .preview-grid,
  .products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .header {
    padding: 14px 0 12px;
  }

  .header__line {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
  }

  .logo img {
    width: 142px;
  }

  .nav {
    grid-column: 1 / -1;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 8px;
    padding-bottom: 3px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    flex: 0 0 auto;
    padding: 10px 15px;
    font-size: 14px;
    white-space: nowrap;
  }

  .header__right {
    justify-self: end;
  }

  .pickup-pill {
    min-width: 0;
    padding: 10px 14px;
  }

  .pickup-pill span {
    display: none;
  }

  .hero__inner,
  .about-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    min-height: 0;
    gap: 18px;
  }

  .hero__visual {
    min-height: 300px;
  }

  .preview-grid,
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --shadow: 0 10px 26px rgba(53, 89, 82, .10);
  }

  body {
    font-size: 16px;
  }

  .container {
    width: min(100% - 28px, 1280px);
  }

  .header {
    padding: 10px 0 8px;
  }

  .header__line {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .logo img {
    width: 116px;
  }

  .header__right {
    display: contents;
  }

  .phone-badge,
  .header__right > .pickup-pill {
    display: none;
  }

  #authControl {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .account-pill--active b {
    display: none;
  }

  .account-pill--active {
    gap: 8px;
  }

  .icon-btn {
    grid-column: 2;
    grid-row: 1;
    min-width: 46px;
    width: 46px;
    height: 46px;
    padding: 0;
    font-size: 19px;
    justify-self: end;
  }

  .js-open-cart {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 54px;
    min-width: 54px;
    height: 54px;
    font-size: 21px;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 4px;
    padding-bottom: 4px;
  }

  .nav a {
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 13px;
  }

  .hero {
    padding: 16px 0 20px;
  }

  .hero__inner {
    gap: 12px;
  }

  .hero__text {
    border-radius: 26px;
    padding: 24px 18px;
  }

  .hero__text::after {
    width: 170px;
    height: 210px;
    right: -54px;
    bottom: -58px;
    opacity: .12;
  }

  .badge {
    margin-bottom: 16px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .hero h1,
  .page-title {
    font-size: clamp(32px, 11vw, 42px);
    line-height: 1.03;
    letter-spacing: -0.045em;
  }

  .hero p,
  .page-head p {
    font-size: 16px;
    line-height: 1.5;
  }

  .hero p {
    margin: 18px 0 20px;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .button {
    min-height: 48px;
    padding: 0 18px;
    text-align: center;
  }

  .hero__visual {
    min-height: 185px;
    border-radius: 26px;
    padding: 0;
  }

  .hero__visual::after {
    background:
      url('/static/assets/logo-round.png') center 42%/118px auto no-repeat,
      url('/static/assets/icon-cup.png') center 75%/92px auto no-repeat;
  }

  .section {
    padding: 22px 0;
  }

  .section-title {
    margin-bottom: 16px;
    font-size: 28px;
    line-height: 1.1;
  }

  .category-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    margin: 16px -14px 22px;
    padding: 0 14px 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .category-strip::-webkit-scrollbar {
    display: none;
  }

  .category-chip {
    flex: 0 0 auto;
    padding: 11px 15px;
    font-size: 14px;
    white-space: nowrap;
  }

  .preview-grid,
  .products {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card {
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(227,218,199,.84);
    border-radius: 24px;
    padding: 12px;
    box-shadow: 0 8px 22px rgba(53, 89, 82, .08);
  }

  .product-image {
    height: 150px;
    border-radius: 18px;
  }

  .product-image::after {
    inset: 14px;
    border-radius: 16px;
  }

  .product-card h3 {
    margin: 13px 2px 6px;
    font-size: 19px;
    line-height: 1.2;
  }

  .product-card p {
    margin: 0 2px 8px;
    font-size: 14px;
    line-height: 1.4;
  }

  .product-meta {
    margin: 0 2px 11px;
    font-size: 13px;
  }

  .product-bottom {
    gap: 10px;
  }

  .price {
    font-size: 19px;
  }

  .product-bottom .button {
    min-height: 42px;
    padding: 0 15px;
    font-size: 14px;
  }

  .page-head {
    padding: 26px 0 8px;
  }

  .menu-top {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 8px;
  }

  .menu-top .input {
    max-width: 100%;
  }

  .input {
    min-height: 48px;
    border-radius: 15px;
  }

  .info-card {
    border-radius: 26px;
    padding: 24px 18px;
  }

  .info-card h2 {
    font-size: 30px;
    line-height: 1.08;
  }

  .info-card p,
  .info-card li {
    font-size: 16px;
    line-height: 1.55;
  }

  .photo-card,
  .map-card {
    min-height: 230px;
    border-radius: 26px;
  }

  .photo-card::after {
    left: 18px;
    bottom: 18px;
    width: 140px;
    height: 48px;
  }

  .location-list {
    gap: 12px;
  }

  .location-card {
    border-radius: 20px;
    padding: 16px;
  }

  .map-card::after {
    left: 20px;
    bottom: 18px;
    font-size: 32px;
  }

  .cart-overlay {
    background: rgba(35, 53, 47, .50);
  }

  .cart-drawer {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 88dvh;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    transform: translateY(106%);
  }

  .cart-drawer.active {
    transform: translateY(0);
  }

  .cart-head {
    position: sticky;
    top: -18px;
    z-index: 1;
    margin: -2px -2px 14px;
    padding: 2px 2px 10px;
    background: linear-gradient(180deg, #f9f4ea 70%, rgba(249,244,234,0));
  }

  .cart-head h2 {
    font-size: 28px;
  }

  .cart-close {
    width: 42px;
    height: 42px;
  }

  .cart-block {
    border-radius: 20px;
    padding: 14px;
  }

  .cart-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .qty button {
    width: 34px;
    height: 34px;
  }

  .cart-total {
    font-size: 19px;
  }

  .pickup-info {
    border-radius: 15px;
  }

  .footer {
    padding: 26px 0;
    margin-top: 22px;
  }

  .footer__inner {
    display: grid;
    gap: 14px;
    padding-top: 20px;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-brand img {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
  }

  .admin-page {
    padding: 12px 0 24px;
  }

  .admin-page .header__line {
    grid-template-columns: 1fr auto;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .admin-page .button {
    white-space: nowrap;
  }

  .order-card {
    border-radius: 20px;
    padding: 16px;
  }

  .order-card__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .order-card__top h3 {
    margin-top: 0;
  }

  .badge-status {
    width: fit-content;
  }

  .order-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .status-row {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 20px, 1280px);
  }

  .header {
    padding-top: 8px;
  }

  .logo img {
    width: 106px;
  }

  .nav {
    margin-left: -10px;
    margin-right: -10px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .nav a {
    padding: 8px 11px;
    font-size: 12px;
  }

  .hero__text {
    padding: 22px 16px;
  }

  .hero h1,
  .page-title {
    font-size: 32px;
  }

  .badge {
    font-size: 12px;
  }

  .hero__visual {
    min-height: 160px;
  }

  .section-title {
    font-size: 26px;
  }

  .product-bottom {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .product-bottom .button {
    width: 100%;
  }

  .cart-drawer {
    max-height: 92dvh;
  }
}

/* Mobile catalog redesign v9: compact Lanvi-style shop cards */
:root {
  --lanvi-white: #fffdf8;
  --lanvi-paper: #f8f3e9;
  --lanvi-beige: #d5c2a2;
  --lanvi-green: #426b64;
  --lanvi-green-deep: #355952;
}

body {
  font-family: "Sofia Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

.hero h1,
.page-title,
.section-title,
.info-card h2,
.cart-head h2 {
  font-family: "Sofia Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-weight: 900;
}

.product-card {
  min-width: 0;
}

.product-image {
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255,253,248,.76), rgba(255,253,248,.55)),
    url('/static/assets/botanical.jpg') center/cover no-repeat,
    var(--lanvi-white);
  border: 1px solid rgba(213, 194, 162, .52);
}

.product-card[data-category="Выпечка"] .product-image {
  background:
    linear-gradient(180deg, rgba(255,253,248,.70), rgba(255,253,248,.50)),
    url('/static/assets/botanical.jpg') center/cover no-repeat,
    var(--lanvi-white);
}

.product-card[data-category="Десерты"] .product-image {
  background:
    linear-gradient(180deg, rgba(255,253,248,.70), rgba(255,253,248,.48)),
    url('/static/assets/flower.jpg') center/cover no-repeat,
    var(--lanvi-white);
}

.product-card[data-category="Напитки"] .product-image {
  background:
    linear-gradient(180deg, rgba(255,253,248,.72), rgba(255,253,248,.48)),
    url('/static/assets/coffee-branch.jpg') center/cover no-repeat,
    var(--lanvi-white);
}

.product-card[data-category="Горячее"] .product-image,
.product-card[data-category="Блины"] .product-image {
  background:
    linear-gradient(180deg, rgba(255,253,248,.72), rgba(255,253,248,.50)),
    url('/static/assets/plum.jpg') center/cover no-repeat,
    var(--lanvi-white);
}

.product-image::after {
  display: none;
}

.product-image__frame {
  position: absolute;
  inset: 16%;
  z-index: 1;
  border: 2px solid rgba(66, 107, 100, .72);
  border-radius: 48% 52% 46% 54% / 54% 45% 55% 46%;
  background:
    radial-gradient(circle at 52% 50%, rgba(255, 253, 248, .78) 0 35%, transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(213, 194, 162, .28) 0 54%, transparent 55%);
  box-shadow: inset 0 0 0 14px rgba(255, 253, 248, .34);
}

.product-image__frame::before,
.product-image__frame::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  background: rgba(66, 107, 100, .20);
}

.product-image__frame::before {
  width: 34%;
  height: 34%;
  right: -10%;
  top: 10%;
}

.product-image__frame::after {
  width: 24%;
  height: 24%;
  left: 1%;
  bottom: -6%;
  background: rgba(213, 194, 162, .32);
}

.product-image__mark {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  max-width: calc(100% - 32px);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(53, 89, 82, .88);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.add-button {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--lanvi-green);
  color: #fff;
  box-shadow: 0 12px 26px rgba(53, 89, 82, .18);
  cursor: pointer;
  font: inherit;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.add-button:active {
  transform: scale(.96);
}

.product-cart-slot {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}

.product-quantity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(213, 194, 162, .56);
  border-radius: 999px;
  background: var(--lanvi-white);
  box-shadow: 0 7px 16px rgba(53, 89, 82, .07);
}

.product-quantity__button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(53, 89, 82, .10);
  color: var(--lanvi-green-deep);
  cursor: pointer;
  font: inherit;
  font-size: 20px;
  line-height: 1;
}

.product-quantity__value {
  min-width: 20px;
  text-align: center;
  color: var(--lanvi-green-deep);
}

.product-quantity__button:hover { filter: brightness(.96); }

.product-quantity__button:focus-visible {
  outline: 2px solid var(--lanvi-green);
  outline-offset: 2px;
}

@media (min-width: 721px) {
  .product-bottom .price {
    padding: 0;
    background: transparent;
    border: 0;
  }
}

@media (max-width: 720px) {
  body {
    background: var(--lanvi-paper);
  }

  .header {
    background: rgba(248, 243, 233, .96);
  }

  .page-head {
    padding: 18px 0 4px;
  }

  .page-head p {
    margin-top: 10px;
  }

  .menu-top {
    margin-bottom: 2px;
  }

  .category-strip {
    margin-top: 10px;
    margin-bottom: 18px;
  }

  .category-chip {
    background: rgba(255, 253, 248, .88);
    border-color: rgba(213, 194, 162, .55);
    box-shadow: none;
  }

  .category-chip.active {
    background: var(--lanvi-green);
    color: #fff;
  }

  .preview-grid,
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }

  .product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    box-shadow: 0 10px 22px rgba(53, 89, 82, .10);
  }

  .product-image__frame {
    inset: 18%;
    border-width: 1.5px;
    box-shadow: inset 0 0 0 9px rgba(255, 253, 248, .26);
  }

  .product-image__mark {
    left: 10px;
    bottom: 9px;
    max-width: calc(100% - 20px);
    padding: 5px 8px;
    font-size: 8px;
    letter-spacing: .06em;
  }

  .product-card h3 {
    min-height: 38px;
    margin: 10px 2px 4px;
    color: var(--lanvi-green-deep);
    font-size: 15px;
    line-height: 1.22;
    letter-spacing: -0.015em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .product-card p {
    min-height: 34px;
    margin: 0 2px 4px;
    color: #758078;
    font-size: 12px;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .product-meta {
    min-height: 16px;
    margin: 0 2px 8px;
    color: #9a9d98;
    font-size: 12px;
    font-weight: 800;
  }

  .product-bottom {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
  }

  .price {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--lanvi-white);
    border: 1px solid rgba(213, 194, 162, .56);
    color: var(--lanvi-green-deep);
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 7px 16px rgba(53, 89, 82, .07);
  }

  .add-button {
    width: 38px;
    height: 38px;
    margin-left: -5px;
    font-size: 27px;
    background: var(--lanvi-green);
    box-shadow: 0 8px 18px rgba(53, 89, 82, .18);
  }

  .product-cart-slot--active {
    flex: 1 0 100%;
    justify-content: flex-start;
    margin: 7px 0 0;
  }

  .product-quantity {
    gap: 4px;
    padding: 3px;
  }

  .product-quantity__button {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(100% - 18px, 1280px);
  }

  .preview-grid,
  .products {
    gap: 20px 10px;
  }

  .product-image {
    border-radius: 19px;
  }

  .product-card h3 {
    font-size: 14px;
  }

  .price {
    min-height: 36px;
    padding: 0 12px;
    font-size: 14px;
  }

  .add-button {
    width: 36px;
    height: 36px;
  }
}
