:root {
  --page: #f5f8fb;
  --surface: #ffffff;
  --surface-soft: #edf7fc;
  --text: #14324a;
  --muted: #687c8d;
  --line: #dce7ed;
  --primary: #0788ca;
  --primary-dark: #05699e;
  --primary-soft: #e2f5fd;
  --green: #15965a;
  --green-soft: #e4f7ed;
  --red: #c7434b;
  --red-soft: #fff0f1;
  --orange: #f38a31;
  --yellow: #f7b733;
  --shadow-sm: 0 6px 20px rgba(19, 58, 82, 0.07);
  --shadow-lg: 0 24px 70px rgba(13, 45, 66, 0.18);
  --radius: 20px;
  --page-width: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--page);
}

body {
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--page);
  color: var(--text);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.hidden {
  display: none !important;
}

.page-width,
.header-inner,
.site-footer {
  width: min(var(--page-width), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 1px solid var(--line);
  border-radius: 17px;
  object-fit: contain;
  background: #fff;
}

.brand span,
.brand strong,
.brand small {
  display: block;
  min-width: 0;
}

.brand strong {
  overflow: hidden;
  color: #0c4770;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.icon-link,
.header-cart {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  color: var(--primary-dark);
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.icon-link:hover,
.header-cart:hover {
  transform: translateY(-1px);
  border-color: #a9d8ee;
  background: var(--primary-soft);
}

.icon-link svg,
.header-cart svg {
  width: 22px;
  height: 22px;
}

.instagram-link {
  color: #d6388a;
}

.header-cart {
  position: relative;
}

.header-cart span {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding-inline: 5px;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.73rem;
  font-weight: 800;
}

.store-summary {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid #cce7f4;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.store-main,
.delivery-info {
  min-height: 82px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.store-main {
  flex-wrap: wrap;
  background: linear-gradient(110deg, #087fbd 0%, #18a7dc 100%);
  color: #fff;
}

.store-main p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.84rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d9e3e8;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.status-pill.open .status-dot {
  background: #56f0a1;
}

.status-pill.closed .status-dot {
  background: #ff8d91;
}

.delivery-info {
  border-left: 1px solid var(--line);
}

.delivery-icon {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
  font-size: 1.3rem;
}

.delivery-info strong,
.delivery-info small {
  display: block;
}

.delivery-info strong {
  font-size: 0.96rem;
}

.delivery-info small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.install-banner {
  position: relative;
  margin-top: 12px;
  min-height: 72px;
  padding: 10px 48px 10px 11px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 11px;
  border: 1px solid #b9dfee;
  border-radius: 18px;
  background: #edf8fd;
}

.install-banner img {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  box-shadow: 0 3px 10px rgba(18, 59, 82, 0.12);
}

.install-banner strong,
.install-banner p {
  display: block;
}

.install-banner strong {
  font-size: 0.9rem;
}

.install-banner p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.76rem;
}

.install-button {
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.install-close {
  position: absolute;
  top: 5px;
  right: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
}

.browse-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  margin-top: 18px;
  border-block: 1px solid rgba(220, 231, 237, 0.9);
  background: rgba(245, 248, 251, 0.93);
  backdrop-filter: blur(14px);
}

.browse-inner {
  padding-block: 13px 10px;
}

.search-box {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(15, 52, 74, 0.04);
}

.search-box:focus-within {
  border-color: #75c4e7;
  box-shadow: 0 0 0 4px rgba(7, 136, 202, 0.1);
}

.search-box > svg {
  width: 21px;
  height: 21px;
  margin-left: 15px;
  color: var(--muted);
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
}

.search-box input::placeholder {
  color: #8b9aa7;
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

#clearSearch {
  width: 38px;
  height: 38px;
  margin-right: 4px;
  display: none;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 1.45rem;
}

#clearSearch.visible {
  display: grid;
  place-items: center;
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 10px;
  padding: 1px 0 3px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs button {
  flex: 0 0 auto;
  min-height: 39px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #405e71;
  font-size: 0.88rem;
  font-weight: 700;
  transition: 160ms ease;
}

.category-tabs button:hover {
  border-color: #9dd1e8;
}

.category-tabs button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.menu-block {
  padding-top: 30px;
}

.catalog-block {
  padding-bottom: 64px;
}

.section-heading {
  margin-bottom: 15px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--primary-dark);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-heading h1,
.section-heading h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-emoji {
  font-size: 1.6rem;
}

.result-count {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.popular-grid,
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  min-height: 184px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 154px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 3px 14px rgba(14, 51, 73, 0.045);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: #b8dce9;
  box-shadow: var(--shadow-sm);
}

.product-content {
  min-width: 0;
  padding: 17px 8px 16px 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-badges {
  min-height: 22px;
  margin-bottom: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 7px;
  background: #fff1e5;
  color: #b45a0c;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-badge.flavors {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.product-card h3 {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-bottom {
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
}

.price-label,
.price-value {
  display: block;
}

.price-label {
  color: var(--muted);
  font-size: 0.69rem;
}

.price-value {
  color: var(--primary-dark);
  font-size: 1.05rem;
  font-weight: 900;
}

.add-button {
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease;
}

.add-button:hover {
  transform: translateY(-1px);
  background: var(--primary-dark);
}

.product-image {
  min-width: 0;
  margin: 9px;
  overflow: hidden;
  border-radius: 15px;
  background: #eaf5fa;
}

.product-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 240ms ease;
}

.product-image.contain img,
.modal-product-photo.contain {
  padding: 5px;
  object-fit: contain;
}

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

.empty-results {
  padding: 50px 20px;
  text-align: center;
}

.empty-results > span {
  display: block;
  margin-bottom: 10px;
  font-size: 2.2rem;
}

.empty-results p {
  margin: 5px 0 16px;
  color: var(--muted);
}

.empty-results button {
  min-height: 42px;
  padding: 9px 15px;
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.floating-cart {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 55;
  width: min(600px, calc(100% - 24px));
  min-height: 58px;
  padding: 8px 13px;
  display: grid;
  grid-template-columns: 39px 1fr auto;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 17px;
  background: #0b354d;
  color: #fff;
  box-shadow: 0 16px 40px rgba(8, 37, 54, 0.28);
}

.floating-cart-count {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary);
  font-weight: 900;
}

.floating-cart-label {
  text-align: left;
  font-weight: 800;
}

.floating-cart strong {
  font-size: 0.96rem;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  visibility: hidden;
  opacity: 0;
  background: rgba(5, 25, 37, 0.5);
  backdrop-filter: blur(3px);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.overlay.active {
  visibility: visible;
  opacity: 1;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  opacity: 0;
  padding: 18px;
  display: grid;
  place-items: center;
  pointer-events: none;
  transition: opacity 170ms ease, visibility 170ms ease;
}

.modal.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal-content,
.rating-card {
  width: min(590px, 100%);
  max-height: 92dvh;
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.product-modal {
  padding: 22px;
}

.close-button {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
}

.modal-product-head {
  display: grid;
  grid-template-columns: 118px 1fr;
  align-items: center;
  gap: 16px;
  padding-right: 38px;
}

.modal-product-photo {
  width: 118px;
  height: 118px;
  border-radius: 18px;
  object-fit: cover;
  background: var(--surface-soft);
}

.modal-product-head h2 {
  font-size: 1.45rem;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.modal-product-head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.88rem;
}

.option-group {
  margin-top: 22px;
}

.option-heading {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.option-heading h3 {
  font-size: 1rem;
}

.option-heading span {
  color: var(--muted);
  font-size: 0.76rem;
}

.flavor-select,
.checkout input,
.checkout select,
.checkout textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: #fbfdfe;
}

.flavor-select {
  min-height: 50px;
  padding: 11px 13px;
}

.flavor-select:focus,
.checkout input:focus,
.checkout select:focus,
.checkout textarea:focus {
  border-color: #72c4e9;
  box-shadow: 0 0 0 4px rgba(7, 136, 202, 0.1);
}

.size-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.size-option {
  position: relative;
  min-height: 62px;
  padding: 9px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfdfe;
  text-align: center;
  cursor: pointer;
}

.size-option.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.size-option span,
.size-option strong {
  display: block;
}

.size-option span {
  font-size: 0.79rem;
}

.size-option strong {
  color: var(--primary-dark);
  font-size: 0.84rem;
}

.size-option input {
  position: absolute;
  opacity: 0;
}

.addons-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.addon-option {
  min-height: 46px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfe;
  font-size: 0.82rem;
  cursor: pointer;
}

.addon-option.selected {
  border-color: #8ccce8;
  background: var(--primary-soft);
}

.addon-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--primary);
}

.qty-control {
  margin-top: 20px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.qty-control > strong {
  font-size: 0.9rem;
}

.qty-buttons,
.cart-qty {
  display: flex;
  align-items: center;
  gap: 9px;
}

.qty-buttons button,
.cart-qty button {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--primary-dark);
  font-size: 1.15rem;
  font-weight: 800;
}

.modal-actions {
  position: sticky;
  bottom: -22px;
  margin: 21px -22px -22px;
  padding: 13px 22px calc(13px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto minmax(190px, 1fr);
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.modal-total span,
.modal-total strong {
  display: block;
}

.modal-total span {
  color: var(--muted);
  font-size: 0.72rem;
}

.modal-total strong {
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.modal-add-button,
.finish-button,
.rating-continue {
  min-height: 49px;
  border: 0;
  border-radius: 13px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.modal-add-button:disabled,
.finish-button:disabled,
.rating-continue:disabled {
  cursor: not-allowed;
  background: #a8b8c1;
  opacity: 0.8;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -500px;
  z-index: 80;
  width: min(470px, 96vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transition: right 220ms ease;
}

.cart-panel.active {
  right: 0;
}

.cart-header {
  min-height: 82px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.cart-header button {
  width: 41px;
  height: 41px;
  flex: 0 0 41px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-size: 1.45rem;
}

.cart-scroll {
  min-height: 0;
  overflow-y: auto;
  flex: 1;
}

.cart-items {
  padding: 15px 18px 2px;
}

.empty-cart {
  padding: 35px 15px;
  border: 1px dashed #bdd3df;
  border-radius: 16px;
  background: #f8fbfc;
  text-align: center;
}

.empty-cart span {
  display: block;
  font-size: 2rem;
}

.empty-cart h3 {
  margin-top: 6px;
  font-size: 1rem;
}

.empty-cart p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-item {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfdfe;
}

.cart-item + .cart-item {
  margin-top: 9px;
}

.cart-item-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.cart-item h3 {
  font-size: 0.93rem;
  line-height: 1.25;
}

.cart-item-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.cart-item-price {
  flex: 0 0 auto;
  color: var(--primary-dark);
  font-size: 0.91rem;
  font-weight: 900;
}

.cart-item-actions {
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-qty button {
  width: 30px;
  height: 30px;
  font-size: 1rem;
}

.cart-qty strong {
  min-width: 20px;
  text-align: center;
  font-size: 0.85rem;
}

.remove-button {
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 700;
}

.checkout {
  padding: 17px 18px max(25px, env(safe-area-inset-bottom));
  display: grid;
  gap: 12px;
}

.checkout-title {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-title span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.checkout-title h3 {
  font-size: 0.94rem;
}

.checkout label {
  display: grid;
  gap: 5px;
  color: #476276;
  font-size: 0.78rem;
  font-weight: 700;
}

.checkout label small {
  display: inline;
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 500;
}

.checkout input,
.checkout select,
.checkout textarea {
  min-height: 46px;
  padding: 10px 12px;
  font-size: 0.9rem;
  font-weight: 400;
}

.checkout textarea {
  min-height: 78px;
  resize: vertical;
}

.delivery-progress {
  padding: 11px 12px;
  border: 1px solid #c8e7d7;
  border-radius: 13px;
  background: #f1fbf6;
  color: #317050;
  font-size: 0.77rem;
}

.delivery-progress strong {
  color: var(--green);
}

.progress-track {
  height: 6px;
  overflow: hidden;
  margin-top: 8px;
  border-radius: 999px;
  background: #dcefe5;
}

.progress-track span {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--green);
}

.order-totals {
  padding: 13px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfe;
}

.order-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.83rem;
}

.order-totals strong {
  color: var(--text);
}

.order-totals .grand-total {
  margin-top: 3px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.order-totals .grand-total strong {
  color: var(--primary-dark);
  font-size: 1.12rem;
}

.closed-notice {
  padding: 10px 11px;
  border: 1px solid #f0c9cb;
  border-radius: 12px;
  background: var(--red-soft);
  color: #9d3036;
  font-size: 0.78rem;
  text-align: center;
}

.finish-button {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #1ca75b;
  box-shadow: 0 10px 24px rgba(28, 167, 91, 0.18);
}

.finish-button svg {
  width: 22px;
  height: 22px;
}

.rating-modal {
  z-index: 100;
}

.rating-card {
  width: min(410px, 100%);
  padding: 27px 23px 22px;
  text-align: center;
}

.rating-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--primary-soft);
  font-size: 1.8rem;
}

.rating-card h2 {
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.rating-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.stars {
  margin: 19px 0;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.stars button {
  border: 0;
  background: transparent;
  color: #d7e0e5;
  font-size: 2.45rem;
  line-height: 1;
  transition: color 120ms ease, transform 120ms ease;
}

.stars button.active {
  color: var(--yellow);
  transform: translateY(-2px);
}

.rating-continue {
  width: 100%;
}

.rating-skip {
  margin-top: 10px;
  padding: 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 88px;
  z-index: 120;
  max-width: calc(100% - 32px);
  padding: 11px 15px;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 8px);
  border-radius: 12px;
  background: #12384e;
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
  transition: 180ms ease;
}

.toast.active {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-footer {
  margin-bottom: 95px;
  padding-block: 24px;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  object-fit: contain;
  background: #fff;
}

.site-footer strong {
  display: block;
  font-size: 0.86rem;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.75rem;
}

.site-footer a {
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(7, 136, 202, 0.25);
  outline-offset: 2px;
}

@media (max-width: 760px) {
  .page-width,
  .header-inner,
  .site-footer {
    width: min(100% - 24px, var(--page-width));
  }

  .header-inner {
    min-height: 76px;
  }

  .brand img {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 14px;
  }

  .brand strong {
    max-width: 215px;
    font-size: 0.96rem;
  }

  .brand small {
    font-size: 0.75rem;
  }

  .icon-link,
  .header-cart {
    width: 43px;
    height: 43px;
    border-radius: 13px;
  }

  .store-summary {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }

  .store-main,
  .delivery-info {
    min-height: 66px;
    padding: 13px 15px;
  }

  .store-main {
    justify-content: space-between;
  }

  .delivery-info {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .browse-bar {
    margin-top: 12px;
  }

  .popular-grid {
    margin-inline: -12px;
    padding-inline: 12px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .popular-grid::-webkit-scrollbar {
    display: none;
  }

  .popular-grid .product-card {
    width: min(88vw, 355px);
    flex: 0 0 min(88vw, 355px);
    scroll-snap-align: start;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 170px;
    grid-template-columns: minmax(0, 1fr) 137px;
  }

  .product-content {
    padding: 14px 6px 14px 14px;
  }

  .product-badges {
    min-height: 19px;
    margin-bottom: 5px;
  }

  .product-card h3 {
    font-size: 0.98rem;
  }

  .product-image {
    margin: 8px;
    border-radius: 14px;
  }

  .add-button {
    padding-inline: 10px;
  }

  .cart-panel {
    top: auto;
    right: 0;
    bottom: -105dvh;
    width: 100%;
    height: min(94dvh, 820px);
    border-top: 1px solid var(--line);
    border-left: 0;
    border-radius: 24px 24px 0 0;
    transition: bottom 230ms ease;
  }

  .cart-panel.active {
    right: 0;
    bottom: 0;
  }

  .cart-header {
    min-height: 76px;
  }

  .modal {
    padding: 0;
    place-items: end center;
  }

  .modal-content {
    width: 100%;
    max-height: 93dvh;
    border-radius: 24px 24px 0 0;
  }

  .rating-modal {
    padding: 18px;
    place-items: center;
  }

  .rating-card {
    border-radius: 23px;
  }
}

@media (max-width: 480px) {
  .brand small {
    display: none;
  }

  .brand strong {
    max-width: 155px;
    font-size: 0.88rem;
  }

  .header-actions {
    gap: 7px;
  }

  .store-main p {
    font-size: 0.76rem;
  }

  .delivery-icon {
    width: 41px;
    height: 41px;
    flex-basis: 41px;
  }

  .install-banner {
    grid-template-columns: 44px 1fr;
    padding: 10px 42px 10px 10px;
  }

  .install-banner img {
    width: 44px;
    height: 44px;
  }

  .install-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .menu-block {
    padding-top: 25px;
  }

  .product-card {
    grid-template-columns: minmax(0, 1fr) 124px;
  }

  .product-card p {
    -webkit-line-clamp: 2;
  }

  .product-bottom {
    align-items: center;
  }

  .price-value {
    font-size: 0.96rem;
  }

  .modal-product-head {
    grid-template-columns: 92px 1fr;
    gap: 12px;
  }

  .modal-product-photo {
    width: 92px;
    height: 92px;
  }

  .modal-product-head h2 {
    font-size: 1.18rem;
  }

  .addons-list {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    grid-template-columns: auto 1fr;
  }

  .site-footer {
    grid-template-columns: 42px 1fr;
  }

  .site-footer a {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
