:root {
  --bg: #f7f4ef;
  --surface: #fffaf4;
  --surface-soft: #f8f2e8;
  --line: #ddd4c8;
  --text: #2f3944;
  --muted: #7b91a5;
  --brand: #1497d4;
  --brand-deep: #0f6f9d;
  --accent: #8ecc26;
  --accent-deep: #68a914;
  --danger: #ff3d3d;
  --orange: #ff8b1f;
  --shadow: 0 12px 28px rgba(22, 37, 56, 0.08);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --font-ui: "Avenir Next", "Trebuchet MS", sans-serif;
  --font-display: "Trebuchet MS", "Avenir Next Condensed", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
}

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

.app-shell {
  min-height: 100vh;
}

.mobile-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 250, 244, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-icon,
.icon-button,
.qty-button,
.ghost-small {
  border: 0;
  background: none;
  cursor: pointer;
}

.header-logo img {
  width: 76px;
  height: 52px;
  object-fit: contain;
}

.header-address {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  text-align: center;
}

.header-address-label {
  display: none;
}

.header-address strong {
  overflow: hidden;
  max-width: 100%;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 2px;
}

.header-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--brand-deep);
}

.header-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-counter {
  position: absolute;
  top: 0;
  right: -1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.catalog-page {
  padding-bottom: 108px;
}

.page-layout {
  display: grid;
  gap: 12px;
  padding-bottom: 108px;
}

.page-hero,
.page-section {
  margin: 0 0 12px;
  padding: 18px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-hero {
  display: grid;
  gap: 8px;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.hero-strip,
.catalog-section,
.cart-summary-section,
.details-block,
.service-banner {
  margin: 0 0 12px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-strip {
  display: grid;
  gap: 14px;
  padding: 18px 18px 20px;
}

.hero-copy {
  display: grid;
  gap: 8px;
}

.hero-copy h1,
.section-caption-row h2,
.product-name,
.promo-copy strong,
.service-banner strong,
.cart-panel-title,
.modal-head h3,
.account-card h3,
.admin-block h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: 2rem;
  line-height: 0.98;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
}

.hero-kicker,
.modal-kicker {
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-button,
.cart-action,
.primary-button,
.outline-button {
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.hero-button,
.cart-action,
.primary-button {
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  color: #fff;
}

.hero-button {
  padding: 14px 18px;
  border-radius: 999px;
}

.catalog-banner {
  padding: 12px 14px 0;
}

.catalog-banner-copy {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 14px 16px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #0f6f9d, #1497d4 55%, #45b9ea);
  color: #fff;
}

.catalog-banner-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}

.catalog-banner-copy strong {
  max-width: 22ch;
  font-size: 1rem;
  line-height: 1.18;
}

.catalog-banner-note {
  font-size: 0.78rem;
  line-height: 1.25;
  opacity: 0.88;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  margin-top: 12px;
}

.product-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  min-height: 430px;
  padding: 10px 8px 10px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-card:nth-child(2n) {
  border-right: 0;
}

.product-visual {
  position: relative;
  height: 168px;
  margin-bottom: 4px;
  overflow: hidden;
  background: linear-gradient(180deg, #fffaf4, #f7f0e5);
}

.product-photo {
  position: absolute;
  inset: 8px;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: contain;
  object-position: center bottom;
}

.product-bottle {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 118px;
  height: 220px;
  border-radius: 26px 26px 34px 34px;
  background: linear-gradient(180deg, #e7f4ff 0%, #fffaf4 38%, #cce8ff 80%, #66bdf4 100%);
  box-shadow: inset 0 0 0 3px rgba(94, 188, 255, 0.16);
}

.product-bottle::before {
  position: absolute;
  top: -24px;
  left: 40px;
  width: 38px;
  height: 34px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #0f9bd8, #2cc0ff);
  content: "";
}

.product-bottle::after {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 78px;
  height: 52px;
  border-radius: 8px;
  background:
    url("./%D0%BA%D0%B0%D1%80%D1%82%D0%BE%D1%87%D0%BA%D0%B8/%D0%BD%D1%8E%20%D0%BB%D0%BE%D0%B3%D0%BE.png") no-repeat 12px center / 46px 34px,
    linear-gradient(180deg, #f8fcff, #c8ecff);
  box-shadow: inset 0 0 0 1px rgba(35, 140, 203, 0.16);
  content: "";
}

.product-pack {
  width: 104px;
  height: 74px;
  right: 10px;
  left: auto;
  bottom: 126px;
  border-radius: 10px;
}

.product-canister {
  width: 158px;
  height: 232px;
  border-radius: 48px 48px 34px 34px;
  background: linear-gradient(180deg, #ddf3ff, #bce6ff 68%, #59b3ff);
}

.product-canister::before {
  top: -18px;
  left: 58px;
  width: 44px;
  height: 28px;
}

.product-canister::after {
  top: 92px;
}

.product-sticker {
  position: absolute;
  left: 10px;
  top: 148px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  padding: 10px 14px;
  background: var(--danger);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  clip-path: polygon(0 0, 100% 0, 89% 100%, 0 100%);
}

.product-sticker.product-sticker-blue {
  background: var(--brand);
}

.product-topnote {
  position: absolute;
  top: 16px;
  right: 10px;
  width: 108px;
  padding: 12px 10px 10px;
  background: linear-gradient(180deg, #8cc62f, #a8dc44);
  color: #422f8d;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

.product-topnote small {
  display: block;
  margin-top: 8px;
  color: var(--brand-deep);
  font-size: 0.78rem;
}

.product-stars {
  margin: 2px 0 7px;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.product-name {
  min-height: 0;
  margin-bottom: 4px;
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 700;
}

.product-caption-row {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

.product-caption {
  margin: 0;
  min-height: 0;
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.25;
}

.product-more {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-deep);
  font-size: 0.66rem;
  font-weight: 800;
  cursor: pointer;
}

.product-stock {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  color: var(--accent-deep);
  font-size: 0.76rem;
}

.product-stock::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-deep);
  content: "";
}

.product-price {
  margin-bottom: 12px;
  display: grid;
  gap: 4px;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.6rem;
  line-height: 1.2;
}

.product-price-row span {
  color: var(--muted);
}

.product-price-row strong {
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--text);
}

.product-price-row-accent strong {
  color: var(--brand-deep);
}

.product-option {
  margin-top: 8px;
  padding: 9px 9px 10px;
  border: 1px solid rgba(20, 151, 212, 0.14);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.98), rgba(247, 239, 229, 0.94));
}

.product-option-accent {
  border-color: rgba(142, 204, 38, 0.24);
  background: linear-gradient(180deg, rgba(248, 253, 239, 0.98), rgba(255, 250, 244, 0.96));
}

.product-option-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 0.58rem;
  line-height: 1.2;
}

.product-option-head span {
  color: var(--text);
  font-weight: 700;
}

.product-option-head strong {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.74rem;
  color: var(--brand-deep);
}

.qty-row-compact {
  height: 34px;
  border-radius: 10px;
}

.qty-row-compact .qty-button {
  font-size: 1.15rem;
}

.qty-row-compact .qty-value {
  font-size: 0.88rem;
}

.product-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.mode-chip {
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.54rem;
  font-weight: 700;
}

.mode-chip.is-active {
  border-color: rgba(20, 151, 212, 0.28);
  background: #eaf6fd;
  color: var(--brand-deep);
}

.qty-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
}

.qty-button {
  height: 100%;
  color: var(--brand-deep);
  font-size: 1.45rem;
}

.qty-value {
  min-width: 30px;
  text-align: center;
  font-size: 0.96rem;
}

.cart-action {
  width: 100%;
  padding: 11px 8px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.promo-grid {
  display: grid;
  gap: 12px;
  padding: 0 0 12px;
}

.promo-card {
  position: relative;
  min-height: 122px;
  overflow: hidden;
  padding: 18px 16px;
  color: #fff;
  border-top: 1px solid var(--line);
}

.promo-card-blue {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(135deg, #0f6f9d, #1497d4 58%, #45b9ea);
}

.promo-card-orange {
  background:
    linear-gradient(135deg, rgba(20, 151, 212, 0.16), rgba(142, 204, 38, 0.12)),
    #fffaf4;
  color: var(--brand-deep);
}

.promo-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.promo-kicker {
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-price,
.promo-badge {
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
}

.promo-price {
  background: rgba(255, 255, 255, 0.14);
}

.promo-card-orange .promo-price {
  background: rgba(20, 151, 212, 0.12);
}

.promo-copy strong {
  max-width: 18ch;
  font-size: 1rem;
  line-height: 1.2;
}

.promo-card-orange .promo-copy strong {
  max-width: 20ch;
}

.service-banner {
  display: grid;
  gap: 14px;
  padding: 18px 16px;
}

.service-banner span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.outline-button {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand);
}

.cart-panel {
  padding: 12px 16px 18px;
}

.cart-box,
.empty-box,
.auth-empty-card,
.last-order-card,
.order-card,
.address-card,
.balance-card,
.login-hint,
.confirmation-card,
.admin-list-card,
.metric-card,
.admin-block,
.details-block > summary + * {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.cart-box,
.empty-box,
.auth-empty-card,
.last-order-card,
.order-card,
.address-card,
.balance-card,
.confirmation-card,
.admin-list-card,
.metric-card,
.admin-block {
  padding: 14px;
}

.cart-head,
.summary-row,
.modal-head,
.inline-actions,
.address-card-head,
.history-head,
.order-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-head {
  margin-bottom: 12px;
}

.cart-panel-title {
  font-size: 1.3rem;
}

.cart-items,
.cart-summary,
.account-orders-list,
.admin-customer-list,
.admin-product-list,
.admin-metrics,
.address-list,
.account-balance,
.account-shell,
.admin-shell {
  display: grid;
  gap: 12px;
}

.auth-empty-card {
  justify-items: center;
  gap: 16px;
  padding: 28px 20px 22px;
  background: var(--surface);
  border-radius: 18px;
}

.auth-empty-image {
  display: block;
  width: 190px;
  height: 190px;
  margin: 0 auto;
  object-fit: contain;
}

.auth-empty-copy {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
}

.auth-empty-copy h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.08;
}

.auth-empty-copy p {
  margin: 0;
  color: var(--muted);
  max-width: 28ch;
  font-size: 0.96rem;
  line-height: 1.4;
}

.cart-item,
.order-product-list {
  display: grid;
  gap: 8px;
}

.cart-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:last-child {
  border-bottom: 0;
}

.mini-qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ghost-small {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eef0f5;
  color: #73767d;
  font-size: 1.2rem;
}

.status-pill,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.pill {
  background: rgba(125, 197, 26, 0.14);
  color: var(--accent-deep);
}

.status-new {
  background: #e6f5ff;
  color: #197eb3;
}

.status-confirmed {
  background: #eef8dd;
  color: #5e8d0a;
}

.status-preparing {
  background: #fff4dd;
  color: #9c6910;
}

.status-delivery {
  background: #e8f7ff;
  color: #0f88c1;
}

.status-delivered {
  background: #edf8ec;
  color: #2d8a37;
}

.status-cancelled {
  background: #fde9e8;
  color: #bb5444;
}

.text-button,
.secondary-button,
.chip-button {
  border: 0;
  cursor: pointer;
  color: var(--brand-deep);
  background: #eaf6fd;
  font-weight: 700;
}

.text-button,
.secondary-button {
  padding: 10px 12px;
  border-radius: 10px;
}

.chip-button {
  padding: 8px 10px;
  border-radius: 999px;
}

.summary-total strong,
.big-number,
.metric-card strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.empty-box {
  color: var(--muted);
}

.details-block {
  overflow: hidden;
}

.details-block summary {
  padding: 16px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.details-block summary::-webkit-details-marker {
  display: none;
}

.details-block summary + * {
  padding: 0;
  margin: 0 16px 16px;
}

.account-shell {
  padding: 14px;
}

.account-grid,
.checkout-layout,
.admin-columns,
.form-grid {
  display: grid;
  gap: 12px;
}

.account-balance {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.big-number {
  display: block;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.86rem;
}

.modal {
  width: min(820px, calc(100% - 20px));
  border: 0;
  padding: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(36, 43, 56, 0.48);
}

.modal-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(16, 39, 61, 0.16);
}

.checkout-modal-card {
  max-width: 100%;
}

.product-modal-card {
  max-width: 100%;
}

.address-modal-card {
  max-width: 100%;
  gap: 18px;
  padding: 18px;
}

.icon-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #eef6fb;
  color: var(--brand-deep);
  font-size: 1.2rem;
}

.modal-kicker {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-head h3 {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1;
}

.product-detail-sheet {
  display: grid;
  gap: 16px;
}

.product-detail-top {
  display: grid;
  gap: 14px;
}

.product-detail-image {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 18px;
  background: linear-gradient(180deg, #eef8ff, #fffaf4);
}

.product-detail-head {
  display: grid;
  gap: 8px;
}

.product-detail-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.05;
}

.product-detail-lead {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.5;
}

.product-detail-grid {
  display: grid;
  gap: 12px;
}

.product-detail-grid section {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.product-detail-grid h4 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand);
}

.product-detail-grid p {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.product-reviews {
  display: grid;
  gap: 12px;
  margin-top: 2px;
}

.product-reviews-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.product-reviews-head h4 {
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--brand);
}

.product-reviews-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.product-reviews-badge {
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff1dd;
  color: #cf7a11;
  font-size: 0.82rem;
  font-weight: 800;
}

.product-reviews-list {
  display: grid;
  gap: 12px;
}

.product-review-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 22px rgba(26, 45, 61, 0.08);
}

.product-review-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.product-review-head strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1rem;
}

.product-review-head span,
.product-review-meta time {
  color: var(--muted);
  font-size: 0.82rem;
}

.product-review-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.product-review-stars {
  color: #efaa54;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.product-review-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.product-review-reply {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f1f0f6;
}

.product-review-reply strong {
  color: var(--muted);
  font-size: 0.82rem;
}

.product-review-reply p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

label span {
  color: var(--muted);
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}

textarea {
  min-height: 92px;
  resize: vertical;
}

.radio-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.checkout-layout {
  grid-template-columns: minmax(0, 1fr) 290px;
}

.checkout-summary {
  display: grid;
  gap: 10px;
  align-content: start;
}

.login-hint {
  padding: 14px;
  color: #6b5a22;
  background: #fff2d9;
}

.login-flow {
  display: grid;
  gap: 14px;
}

.login-intro {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(20, 151, 212, 0.1), rgba(142, 204, 38, 0.08));
}

.login-intro strong {
  font-size: 1rem;
}

.login-intro span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.login-form-grid {
  grid-template-columns: minmax(0, 1fr);
}

.telegram-button {
  width: 100%;
  justify-content: center;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.telegram-auth-box {
  display: grid;
  gap: 10px;
}

.telegram-link {
  display: inline-flex;
  align-items: center;
}

.login-code-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.address-flow,
.address-topline {
  display: grid;
  gap: 12px;
}

.address-current {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
}

.address-map {
  height: 260px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.address-map .leaflet-control-attribution {
  font-size: 0.56rem;
}

.address-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.address-suggestions {
  display: grid;
  gap: 8px;
}

.address-suggestion {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  text-align: left;
  font-size: 0.9rem;
  line-height: 1.3;
}

.address-meta {
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.address-modal-card .modal-head {
  justify-content: center;
  text-align: center;
}

.address-modal-card .modal-head > div {
  display: grid;
  gap: 4px;
  justify-items: center;
}

.address-modal-card .icon-button {
  position: absolute;
  top: 18px;
  right: 18px;
}

.address-modal-card label span {
  display: none;
}

.address-modal-card input {
  text-align: center;
  border-radius: 14px;
  background: var(--surface-soft);
}

.sticky-cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 250, 244, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 24px rgba(17, 35, 53, 0.08);
}

.sticky-cart-meta {
  display: grid;
  gap: 2px;
}

.sticky-cart-meta strong {
  font-size: 1rem;
}

.sticky-cart-meta span {
  color: var(--muted);
  font-size: 0.85rem;
}

.sticky-cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 10px;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.telegram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.page-actions {
  margin-top: 12px;
}

@media (max-width: 840px) {
  .checkout-layout,
  .form-grid,
  .account-balance {
    grid-template-columns: 1fr;
  }

  .summary-row,
  .history-head,
  .inline-actions,
  .order-card-top,
  .modal-head {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .mobile-header {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 6px 8px;
  }

  .header-logo img {
    width: 58px;
    height: 40px;
  }

  .header-address {
    padding: 7px 10px;
  }

  .header-address strong {
    font-size: 0.76rem;
  }

  .address-map {
    height: 220px;
  }
}
