:root {
  --bg: #f4f6f3;
  --panel: #ffffff;
  --panel-soft: #eef3ef;
  --ink: #172026;
  --muted: #65717a;
  --line: #dce3dc;
  --green: #28745c;
  --green-strong: #1f604b;
  --teal: #176b73;
  --red: #b13a34;
  --gold: #b7802c;
  --paper: #fbfaf7;
  --shadow: 0 22px 60px rgba(23, 32, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(210px, 300px) minmax(260px, 1fr) auto;
  min-height: 74px;
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  color: #fff;
  display: grid;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 900;
  height: 46px;
  place-items: center;
  width: 46px;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.kicker,
.checkout-note,
.result-count {
  color: var(--muted);
  font-size: 12px;
}

.search {
  align-items: center;
  background: #eef2ee;
  border: 1px solid transparent;
  display: flex;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
}

.search:focus-within {
  background: #fff;
  border-color: var(--teal);
}

.search span {
  color: var(--ink);
  font-weight: 900;
}

.search input {
  background: transparent;
  border: 0;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.icon-button,
.top-link,
.cart-button,
.primary,
.ghost,
.secondary,
.back-button,
.text-button {
  border: 1px solid transparent;
  min-height: 42px;
}

.icon-button {
  align-items: center;
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  display: inline-grid;
  font-size: 22px;
  font-weight: 900;
  min-width: 44px;
  padding: 0 12px;
}

.menu-toggle {
  display: none;
}

.top-link,
.cart-button {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  padding: 0 14px;
}

.top-link.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.access-link[data-mode="verified18"] {
  background: #f4e5e2;
  border-color: #e1b5ae;
  color: var(--red);
}

.access-link[data-mode="registered"] {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.cart-button {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.cart-button b {
  background: var(--red);
  color: #fff;
  display: inline-grid;
  font-size: 12px;
  min-width: 22px;
  padding: 3px 7px;
  place-items: center;
}

.layout {
  display: grid;
  grid-template-columns: 344px minmax(0, 1fr);
  min-height: calc(100vh - 74px);
}

.catalog-panel {
  background: #fff;
  border-right: 1px solid var(--line);
  height: calc(100vh - 74px);
  overflow: auto;
  padding: 22px;
  position: sticky;
  top: 74px;
  z-index: 20;
}

.panel-head,
.view-head,
.drawer-head,
.total-row,
.card-actions,
.mini-card,
.cart-line-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.panel-head {
  margin-bottom: 18px;
}

.panel-head h2,
.drawer-head h2,
.view-head h1,
.view-head h2 {
  margin: 4px 0 0;
}

.kicker {
  font-weight: 900;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.text-button {
  background: transparent;
  color: var(--teal);
  font-weight: 800;
  padding: 0;
}

.category-tree {
  display: grid;
  gap: 10px;
}

.tree-all,
.tree-main,
.tree-group {
  align-items: center;
  display: flex;
  justify-content: space-between;
  text-align: left;
  width: 100%;
}

.tree-all,
.tree-main {
  background: #f7f8f5;
  border: 1px solid transparent;
  color: var(--ink);
  font-weight: 800;
  min-height: 48px;
  padding: 12px 14px;
}

.tree-main {
  margin-top: 2px;
}

.tree-all.active,
.tree-main.active {
  background: #e5f1eb;
  border-color: #a6cdbd;
  color: var(--green-strong);
}

.tree-category {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.tree-groups {
  display: grid;
  gap: 4px;
  margin: 8px 0 6px 12px;
}

.tree-group {
  background: transparent;
  border: 0;
  color: var(--muted);
  min-height: 34px;
  padding: 7px 10px;
}

.tree-group.active {
  background: #eef5f1;
  color: var(--green-strong);
  font-weight: 900;
}

.tree-count {
  color: inherit;
  font-weight: 900;
  margin-left: 12px;
}

.filter-block {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

.filter-title {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 10px;
}

.range-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.range-row input,
.checkout-grid input,
.checkout-grid select,
.auth-form input:not([type="checkbox"]),
.feedback-form select,
.feedback-form textarea,
.review-form select,
.review-form textarea,
.view-tools select,
.ad-form input {
  background: #fff;
  border: 1px solid var(--line);
  min-height: 42px;
  outline: 0;
  padding: 0 12px;
  width: 100%;
}

.range-row input:focus,
.checkout-grid input:focus,
.checkout-grid select:focus,
.auth-form input:not([type="checkbox"]):focus,
.feedback-form select:focus,
.feedback-form textarea:focus,
.review-form select:focus,
.review-form textarea:focus,
.view-tools select:focus,
.ad-form input:focus {
  border-color: var(--teal);
}

.check-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
}

.check-row.compact {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.workbench {
  min-width: 0;
  padding: 24px;
}

.promo-panel {
  background: #1b2422;
  color: #fff;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  min-height: 280px;
  overflow: hidden;
  padding: 30px;
  position: relative;
}

.promo-panel .kicker {
  color: #a6d5c2;
}

.promo-copy {
  align-self: center;
  max-width: 720px;
}

.promo-copy h1 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  margin: 10px 0 12px;
}

.promo-copy p {
  color: #d8e5de;
  line-height: 1.5;
  margin: 0;
}

.promo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.promo-media {
  align-items: end;
  background-color: #2d3432;
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: end;
  min-height: 220px;
  padding: 20px;
  position: relative;
}

.promo-media::before {
  background: linear-gradient(120deg, rgba(27, 36, 34, 0.12), rgba(27, 36, 34, 0.62));
  content: "";
  inset: 0;
  position: absolute;
}

.promo-media span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 42px;
  font-weight: 900;
  position: relative;
}

.promo-dots {
  bottom: 16px;
  display: flex;
  gap: 8px;
  left: 30px;
  position: absolute;
}

.promo-dot {
  background: rgba(255, 255, 255, 0.42);
  border: 0;
  height: 9px;
  padding: 0;
  width: 28px;
}

.promo-dot.active {
  background: #fff;
}

.ad-editor {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  display: none;
  gap: 18px;
  grid-template-columns: 200px minmax(0, 1fr);
  margin-top: 14px;
  padding: 18px;
}

.ad-editor.open {
  display: grid;
}

.prototype-only {
  display: none !important;
}

.ad-form {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.4fr) minmax(170px, 0.9fr) auto;
}

.stats-row {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  margin: 18px 0;
}

.stats-row div {
  background: #fff;
  border: 1px solid var(--line);
  min-height: 74px;
  padding: 14px 16px;
}

.stats-row strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.stats-row span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 5px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.view-head {
  margin-bottom: 18px;
}

.view-head h1 {
  font-size: 34px;
  line-height: 1.05;
}

.view-head.compact {
  margin-bottom: 12px;
}

.view-head.compact h2 {
  font-size: 22px;
}

.view-tools {
  align-items: center;
  display: flex;
  gap: 12px;
}

.result-count {
  min-width: 84px;
  text-align: right;
}

.product-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.product-card {
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 430px;
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

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

.product-card:focus-within {
  border-color: var(--teal);
}

.product-thumb {
  background: #edf1ec;
  overflow: hidden;
  position: relative;
}

.product-thumb img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.stock-chip {
  background: rgba(255, 255, 255, 0.93);
  bottom: 10px;
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 900;
  left: 10px;
  padding: 6px 8px;
  position: absolute;
}

.stock-chip.out {
  color: var(--gold);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px 16px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  background: #edf1ee;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 7px;
  text-transform: uppercase;
}

.badge.age {
  background: #f4e5e2;
  color: var(--red);
}

.badge.photo {
  background: #e8f2ed;
  color: var(--green-strong);
}

.product-card h3 {
  font-size: 18px;
  line-height: 1.18;
  margin: 0;
}

.product-card p {
  color: var(--muted);
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.price {
  font-size: 22px;
  font-weight: 900;
  margin-top: auto;
}

.primary,
.secondary,
.ghost,
.back-button {
  font-weight: 800;
  padding: 0 14px;
}

.primary {
  background: var(--green);
  color: #fff;
}

.primary:hover {
  background: var(--green-strong);
}

.secondary {
  background: #eef2ee;
  color: var(--ink);
}

.ghost,
.back-button {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.full {
  width: 100%;
}

.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  display: none;
  padding: 42px;
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 8px;
}

.empty-state p {
  color: var(--muted);
  margin: 0;
}

.back-button {
  margin-bottom: 18px;
}

.product-detail {
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
}

.detail-media {
  background: #edf1ec;
  min-height: 520px;
}

.detail-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.detail-info {
  padding: 38px;
}

.detail-info h1 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  margin: 8px 0 12px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.detail-meta span {
  background: #eef2ee;
  font-weight: 900;
  padding: 9px 11px;
}

.detail-meta span:first-child {
  background: var(--ink);
  color: #fff;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 28px;
}

.detail-section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.detail-section + .detail-section {
  margin-top: 20px;
}

.detail-section h2 {
  font-size: 20px;
  margin: 0 0 10px;
}

.detail-section p,
.plain-list {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.plain-list {
  padding-left: 18px;
}

.related-block {
  margin-top: 24px;
}

.mini-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.mini-card {
  background: #fff;
  border: 1px solid var(--line);
  min-height: 96px;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.mini-card img {
  aspect-ratio: 1 / 1;
  flex: 0 0 76px;
  object-fit: cover;
  width: 76px;
}

.mini-card strong {
  display: block;
  line-height: 1.2;
}

.mini-card span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.account-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.7fr) minmax(250px, 0.7fr);
  margin-bottom: 16px;
}

.account-card,
.module-card,
.metric-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
}

.module-card.highlight {
  background: var(--ink);
  color: #fff;
}

.module-card.highlight .kicker,
.module-card.highlight p {
  color: rgba(255, 255, 255, 0.72);
}

.profile-card h1 {
  font-size: 40px;
  margin: 6px 0 8px;
}

.profile-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.loyalty-row {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}

.loyalty-row div {
  background: var(--panel-soft);
  padding: 14px;
}

.loyalty-row strong {
  display: block;
  font-size: 24px;
}

.loyalty-row span {
  color: var(--muted);
  font-size: 13px;
}

.profile-facts {
  display: grid;
  gap: 8px;
}

.profile-facts div,
.checkout-module {
  background: var(--panel-soft);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 12px;
}

.profile-facts span,
.checkout-module span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.profile-facts strong,
.checkout-module strong {
  display: block;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.status-row span,
.status-pill {
  background: #eef2ee;
  color: var(--green-strong);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 28px;
  padding: 7px 9px;
}

.status-pill.ok {
  background: #e8f2ed;
  color: var(--green-strong);
}

.status-pill.danger {
  background: #f4e5e2;
  color: var(--red);
}

.module-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  margin-bottom: 16px;
}

.module-card h2,
.module-card p {
  margin-top: 0;
}

.module-card h2 {
  font-size: 24px;
}

.method-list,
.delivery-method-list,
.event-list {
  display: grid;
  gap: 10px;
}

.method-card,
.delivery-method-card,
.event-card {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 6px;
  padding: 14px;
  text-align: left;
}

.method-card.active,
.delivery-method-card.active {
  background: #e8f2ed;
  border-color: #9ac3b2;
}

.method-card span,
.delivery-method-card span,
.delivery-method-card small,
.event-card span,
.event-card small {
  color: var(--muted);
  line-height: 1.4;
}

.event-card {
  align-items: start;
  grid-template-columns: minmax(0, 1fr) auto;
}

.event-card small {
  grid-column: 1 / -1;
}

.metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.metric-card {
  min-height: 112px;
}

.metric-card span {
  color: var(--muted);
  display: block;
  font-size: 13px;
}

.metric-card strong {
  display: block;
  font-size: 30px;
  margin-top: 12px;
}

.integration-flow {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, 1fr);
}

.integration-flow div {
  background: var(--panel-soft);
  padding: 16px;
}

.integration-flow strong {
  background: var(--ink);
  color: #fff;
  display: grid;
  height: 30px;
  margin-bottom: 10px;
  place-items: center;
  width: 30px;
}

.auth-form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-items: start;
}

.auth-form .check-row {
  align-self: center;
  min-height: 42px;
}

.auth-form button {
  min-height: 42px;
}

.password-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px;
  min-width: 0;
}

.password-field input {
  border-right: 0;
  min-width: 0;
}

.password-toggle {
  background: #eef2ee;
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  min-height: 42px;
  min-width: 74px;
  padding: 0;
  place-items: center;
  white-space: nowrap;
}

.verification-grid,
.service-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.verification-step,
.service-form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px;
}

.verification-step h3,
.service-form h2 {
  margin: 6px 0 10px;
}

.verification-step p,
.service-form p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 12px;
}

.verification-step input,
.verification-step select,
.service-form input,
.service-form select,
.service-form textarea {
  margin-bottom: 10px;
  width: 100%;
}

.service-form textarea {
  min-height: 96px;
  resize: vertical;
}

.inline-form {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(90px, 1fr) auto auto;
}

.inline-form input {
  margin: 0;
}

.form-note {
  color: var(--muted);
  font-size: 12px;
}

.compact-list {
  margin-top: 14px;
}

.profile-facts.tight {
  gap: 8px;
}

.review-section {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
}

.review-form {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 0.5fr) minmax(240px, 1fr) auto;
  margin-bottom: 14px;
}

.review-form textarea {
  min-height: 54px;
  padding: 10px 12px;
  resize: vertical;
}

.review-card small {
  color: var(--muted);
}

.feedback-form {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(160px, 0.8fr) minmax(140px, 0.6fr) minmax(240px, 1.3fr) auto;
  margin-bottom: 14px;
}

.feedback-form textarea {
  min-height: 48px;
  padding: 10px 12px;
  resize: vertical;
}

.checkout-module {
  align-items: center;
  margin-bottom: 10px;
}

.checkout-module .secondary {
  min-height: 36px;
}

.order-list {
  display: grid;
  gap: 10px;
}

.order-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px;
}

.order-card h3 {
  margin: 0;
}

.order-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 8px 0 0;
}

.cart-drawer {
  background: #fff;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 480px;
  overflow-y: auto;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateX(104%);
  transition: transform 0.2s ease;
  width: 100%;
  z-index: 70;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  border-bottom: 1px solid var(--line);
  padding: 20px;
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 14px 20px;
}

.cart-line {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 64px 1fr;
  padding: 12px 0;
}

.cart-line img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 64px;
}

.cart-line small {
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

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

.qty button {
  background: #eef2ee;
  border: 0;
  font-weight: 900;
  height: 30px;
  width: 30px;
}

.checkout {
  border-top: 1px solid var(--line);
  padding: 20px;
}

.total-row {
  margin-bottom: 12px;
}

.total-row strong {
  font-size: 20px;
}

.delivery-options {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.delivery-option {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
}

.delivery-option span {
  color: var(--muted);
  font-size: 13px;
}

.delivery-option.active {
  background: #e8f2ed;
  border-color: #9ac3b2;
}

.checkout-grid {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.total-final {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.checkout-note {
  line-height: 1.4;
  margin: 10px 0 0;
}

.checkout-note.ok {
  color: var(--green-strong);
  font-weight: 800;
}

.checkout-note.danger {
  color: var(--red);
  font-weight: 800;
}

#checkoutButton {
  bottom: 10px;
  box-shadow: 0 -8px 18px rgba(255, 255, 255, 0.86);
  position: sticky;
  z-index: 3;
}

.delivery-claim-module {
  display: none;
}

.delivery-claim-module.open {
  display: flex;
}

.delivery-claim-preview {
  background: #11191c;
  color: #e9f3ef;
  display: none;
  font-size: 12px;
  line-height: 1.45;
  margin: 10px 0 0;
  max-height: 190px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

.delivery-claim-preview.open {
  display: block;
}

.overlay {
  background: rgba(12, 19, 23, 0.42);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.18s ease;
  z-index: 60;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.age-screen {
  align-items: center;
  background: #172026;
  display: none;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 100;
}

.age-screen.open {
  display: flex;
}

.age-panel {
  background: #fff;
  max-width: 540px;
  padding: 36px;
}

.age-panel h1 {
  font-size: 42px;
  line-height: 1;
  margin: 8px 0 12px;
}

.age-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.age-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.focus-panel {
  background: #fff;
  border: 1px solid var(--line);
  bottom: 18px;
  box-shadow: var(--shadow);
  max-width: 360px;
  padding: 16px;
  position: fixed;
  right: 18px;
  width: calc(100vw - 36px);
  z-index: 80;
}

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

.focus-panel h2 {
  margin: 4px 0 0;
}

.focus-panel ol {
  color: var(--muted);
  line-height: 1.45;
  margin: 12px 0;
  padding-left: 20px;
}

.focus-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.focus-panel-actions a {
  align-items: center;
  display: inline-flex;
  text-decoration: none;
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: auto minmax(190px, 1fr) auto;
  }

  .search {
    grid-column: 1 / -1;
  }

  .menu-toggle {
    display: inline-grid;
  }

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

  .catalog-panel {
    box-shadow: var(--shadow);
    height: calc(100vh - 74px);
    left: 0;
    max-width: 360px;
    position: fixed;
    top: 74px;
    transform: translateX(-106%);
    transition: transform 0.2s ease;
    width: 88vw;
    z-index: 50;
  }

  .catalog-panel.open {
    transform: translateX(0);
  }

  .promo-panel,
  .product-detail,
  .account-grid,
  .module-grid,
  .service-grid,
  .verification-grid,
  .auth-form,
  .review-form,
  .feedback-form {
    grid-template-columns: 1fr;
  }

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

  .detail-media {
    min-height: 380px;
  }

  .ad-editor,
  .ad-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .topbar {
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 10px;
  }

  .brand-mark {
    height: 40px;
    width: 40px;
  }

  .brand small {
    display: none;
  }

  .top-actions {
    grid-column: 1 / -1;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    width: 100%;
  }

  .top-link {
    display: inline-flex;
    font-size: 0;
    min-width: 42px;
    padding: 0;
  }

  #accountButton.top-link::after {
    content: "ЛК";
    font-size: 14px;
  }

  #paymentButton.top-link::after {
    content: "₽";
    font-size: 18px;
    font-weight: 900;
  }

  #deliveryButton.top-link::after {
    content: "Д";
    font-size: 14px;
    font-weight: 900;
  }

  #servicesButton.top-link::after {
    content: "С";
    font-size: 14px;
    font-weight: 900;
  }

  #accessButton.top-link {
    font-size: 12px;
    padding: 0 8px;
  }

  .cart-button span {
    display: none;
  }

  .workbench {
    padding: 14px;
  }

  .promo-panel,
  .detail-info,
  .account-card,
  .module-card,
  .metric-card,
  .age-panel {
    padding: 22px;
  }

  .promo-copy h1,
  .view-head h1,
  .detail-info h1,
  .profile-card h1 {
    font-size: 30px;
  }

  .stats-row,
  .loyalty-row,
  .metric-grid,
  .integration-flow {
    grid-template-columns: 1fr 1fr;
  }

  .view-head {
    align-items: stretch;
    flex-direction: column;
  }

  .view-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .result-count {
    text-align: left;
  }

  .product-grid,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .card-actions,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cart-drawer {
    max-width: none;
  }

  .drawer-head,
  .checkout {
    padding: 14px;
  }

  .cart-items {
    flex: 0 0 auto;
    max-height: 32vh;
    padding: 8px 14px;
  }

  .delivery-option {
    min-height: 50px;
    padding: 8px 10px;
  }

  .checkout-grid {
    gap: 6px;
  }

  .checkout-grid input,
  .checkout-grid select,
  .auth-form input:not([type="checkbox"]),
  .verification-step input,
  .verification-step select,
  .service-form input,
  .service-form select,
  .service-form textarea,
  .feedback-form select,
  .feedback-form textarea,
  .review-form select,
  .review-form textarea {
    min-height: 38px;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .checkout-module {
    align-items: stretch;
    flex-direction: column;
  }

  .focus-panel {
    bottom: 10px;
    left: 10px;
    right: 10px;
    width: auto;
  }
}
