:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --surface-soft: #f3f5ff;
  --text: #1d2340;
  --muted: #66708a;
  --primary: #6d28d9;
  --primary-dark: #5521ac;
  --primary-soft: #efe7ff;
  --accent: #ffb703;
  --line: #e7eaf4;
  --shadow: 0 18px 45px rgba(27, 39, 94, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(109, 40, 217, 0.13), transparent 24%),
    linear-gradient(180deg, #fafbff 0%, var(--bg) 100%);
}

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

button,
input {
  font: inherit;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 251, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(231, 234, 244, 0.9);
}

.topbar-inner,
.menu-row,
.footer-inner,
.welcome-shell,
.hero-market,
.hero-buttons,
.stat-grid,
.category-grid,
.product-grid,
.benefit-grid,
.product-layout,
.filter-row {
  display: grid;
  gap: 18px;
}

.topbar-inner {
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  padding: 18px 0 14px;
}

.brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.search input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--surface);
  outline: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-link,
.pill,
.product-badge,
.promo-label,
.filter-chip,
.cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.lang-link,
.filter-chip,
.cart-link {
  min-height: 44px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.menu-row {
  grid-template-columns: repeat(5, max-content);
  padding: 0 0 16px;
}

.menu-row a {
  color: var(--muted);
  font-weight: 700;
}

.page {
  padding: 28px 0 64px;
}

.hero-market {
  grid-template-columns: 1.45fr 0.85fr;
  align-items: stretch;
}

.hero-main,
.promo-card,
.category-card,
.product-card,
.benefit-card,
.welcome-copy,
.welcome-card,
.catalog-hero,
.product-gallery,
.product-info,
.spec-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-main,
.promo-card,
.welcome-copy,
.welcome-card,
.catalog-hero,
.product-info,
.product-gallery,
.spec-box {
  padding: 32px;
}

.hero-main h1,
.welcome-copy h1,
.catalog-hero h1,
.product-info h1 {
  margin: 12px 0 16px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.02;
}

.hero-main p,
.promo-card h2,
.product-card p,
.benefit-card p,
.welcome-copy p,
.welcome-card p,
.footer p,
.catalog-hero p,
.product-description,
.category-card p {
  color: var(--muted);
  line-height: 1.7;
}

.pill {
  width: fit-content;
  padding: 10px 16px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.82rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
}

.button:hover {
  background: var(--primary-dark);
}

.button-light {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.button-small {
  min-height: 44px;
  padding: 0 18px;
}

.button-full {
  width: 100%;
  margin-top: 18px;
}

.hero-buttons,
.welcome-actions,
.product-actions {
  grid-template-columns: repeat(2, max-content);
  margin-top: 24px;
}

.stat-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.stat-card {
  padding: 18px;
  border-radius: 20px;
  background: var(--surface-soft);
}

.stat-card strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.stat-card span,
.price-panel span {
  color: var(--muted);
}

.promo-card {
  background: linear-gradient(180deg, rgba(109, 40, 217, 0.96), rgba(76, 29, 149, 0.98));
  color: #fff;
}

.promo-label,
.product-badge {
  width: fit-content;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.8rem;
}

.promo-card h2 {
  color: #fff;
  font-size: 2rem;
  line-height: 1.2;
}

.promo-list,
.spec-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
}

.promo-list li,
.spec-list li {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
}

.spec-list li {
  background: var(--surface-soft);
}

.section {
  padding-top: 26px;
}

.section-soft {
  margin-top: 26px;
  padding: 32px 0;
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(231, 234, 244, 0.9);
  border-bottom: 1px solid rgba(231, 234, 244, 0.9);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-link {
  color: var(--primary);
  font-weight: 800;
}

.category-grid {
  grid-template-columns: repeat(3, 1fr);
}

.category-card {
  padding: 22px 18px;
}

.category-card h3,
.product-card h3,
.benefit-card h3,
.spec-box h2 {
  margin: 12px 0 8px;
}

.category-icon {
  font-size: 2rem;
}

.product-grid {
  grid-template-columns: repeat(4, 1fr);
}

.product-card {
  padding: 18px;
}

.product-card strong,
.price-panel strong {
  display: block;
  margin-top: 12px;
  font-size: 1.15rem;
}

.product-image {
  height: 180px;
  margin-top: 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #ede9fe 0%, #dbeafe 100%);
}

.product-image-large {
  height: 420px;
  margin-top: 0;
}

.image-phone {
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.55), transparent 18%),
    linear-gradient(135deg, #312e81 0%, #7c3aed 45%, #c4b5fd 100%);
}

.image-appliance {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 183, 3, 0.5), transparent 20%),
    linear-gradient(135deg, #1f2937 0%, #4b5563 55%, #d1d5db 100%);
}

.image-chair {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.3), transparent 18%),
    linear-gradient(135deg, #0f172a 0%, #334155 55%, #94a3b8 100%);
}

.image-watch {
  background:
    radial-gradient(circle at 65% 25%, rgba(255, 255, 255, 0.45), transparent 18%),
    linear-gradient(135deg, #111827 0%, #2563eb 55%, #93c5fd 100%);
}

.image-laptop {
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.4), transparent 18%),
    linear-gradient(135deg, #1d4ed8 0%, #38bdf8 50%, #dbeafe 100%);
}

.image-toy {
  background:
    radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.5), transparent 18%),
    linear-gradient(135deg, #db2777 0%, #fb7185 55%, #fde68a 100%);
}

.benefit-grid {
  grid-template-columns: repeat(3, 1fr);
}

.benefit-card {
  padding: 24px;
}

.footer {
  padding: 32px 0 48px;
}

.footer-inner {
  grid-template-columns: 1.3fr 0.7fr;
  align-items: start;
}

.cart-link {
  gap: 8px;
}

.cart-count {
  display: inline-flex;
  min-width: 24px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
}

.cart-form,
.product-action-form {
  margin-top: 12px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 20px;
  align-items: start;
}

.cart-list,
.cart-summary,
.cart-empty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cart-list,
.cart-summary,
.cart-empty {
  padding: 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item:first-child {
  padding-top: 0;
}

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

.cart-thumb {
  height: 100px;
  margin-top: 0;
}

.cart-item-copy h3 {
  margin: 0 0 8px;
}

.cart-item-controls {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.cart-item-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.qty-input {
  width: 90px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
}

.line-total {
  font-weight: 800;
}

.text-button {
  color: var(--primary);
  font-weight: 800;
}

.cart-actions {
  margin-top: 18px;
}

.cart-summary h2 {
  margin-top: 0;
}

.cart-summary strong {
  display: block;
  font-size: 1.5rem;
  margin: 14px 0 22px;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
  align-items: stretch;
}

.auth-card,
.auth-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.auth-card h1,
.auth-side h2 {
  margin-top: 12px;
  margin-bottom: 12px;
}

.auth-message {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.auth-form input {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: var(--surface);
  outline: none;
}

.auth-side {
  background: linear-gradient(135deg, #1f1147, #5b21b6);
  color: #fff;
}

.auth-side p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.support-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: grid;
  justify-items: end;
  gap: 12px;
}

.support-toggle {
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.28);
  cursor: pointer;
}

.support-panel {
  width: min(340px, calc(100vw - 28px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.support-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.support-panel h3 {
  margin: 14px 0 10px;
  font-size: 1.25rem;
}

.support-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.support-meta {
  display: grid;
  gap: 4px;
  margin: 16px 0 18px;
}

.support-meta strong {
  font-size: 0.98rem;
}

.support-meta span {
  color: var(--muted);
}

.support-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.support-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.support-form label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
}

.support-form input,
.support-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--surface);
  outline: none;
  font: inherit;
}

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

.support-success {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(20, 184, 166, 0.12);
  color: #0f766e;
  font-weight: 700;
}

.admin-shell {
  display: grid;
  gap: 20px;
}

.admin-hero,
.admin-nav,
.admin-section,
.admin-note-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-hero,
.admin-nav,
.admin-section,
.admin-note-card {
  padding: 24px;
}

.admin-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.admin-hero p,
.admin-chat-card p,
.admin-note-card p {
  color: var(--muted);
  line-height: 1.7;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 800;
}

.admin-nav-link.is-active {
  background: var(--primary);
  color: #fff;
}

.admin-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.admin-stat-card {
  padding: 20px;
  border-radius: 20px;
  background: var(--surface-soft);
}

.admin-stat-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.admin-stat-card strong {
  font-size: 1.8rem;
}

.admin-list {
  display: grid;
  gap: 14px;
}

.admin-chat-card {
  padding: 18px;
  border-radius: 20px;
  background: var(--surface-soft);
}

.admin-chat-head,
.admin-chat-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-chat-head span,
.admin-chat-meta span {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-market-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.admin-editor-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.admin-editor-picker {
  display: grid;
  gap: 14px;
}

.admin-editor-picker h2 {
  margin: 0;
}

.admin-editor-list {
  display: grid;
  gap: 12px;
}

.admin-editor-link {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.admin-editor-link span {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-editor-link strong {
  font-size: 1rem;
  line-height: 1.5;
}

.admin-editor-link.is-active {
  outline: 2px solid rgba(109, 40, 217, 0.18);
  background: #f6f1ff;
}

.admin-preview-box {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.admin-preview-box span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--surface);
  outline: none;
  font: inherit;
}

.admin-form textarea {
  resize: vertical;
  min-height: 120px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  color: var(--muted);
  font-size: 0.92rem;
}

.welcome-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
}

.welcome-shell {
  grid-template-columns: 1.2fr 0.8fr;
}

.welcome-card {
  background: linear-gradient(135deg, #1f1147, #5b21b6);
  color: #fff;
}

.welcome-card p {
  color: rgba(255, 255, 255, 0.78);
}

.catalog-hero {
  margin-bottom: 8px;
}

.filter-row {
  grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
  margin-bottom: 18px;
}

.filter-chip.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.product-layout {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.product-description {
  margin-bottom: 18px;
}

.price-panel {
  padding: 20px;
  border-radius: 20px;
  background: var(--surface-soft);
}

.spec-box {
  margin-top: 22px;
  padding: 24px;
}

@media (max-width: 1240px) {
  .container {
    width: min(1120px, calc(100% - 28px));
  }

  .topbar-inner {
    grid-template-columns: 160px 1fr auto;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1040px) {
  .container {
    width: min(980px, calc(100% - 24px));
  }

  .hero-market,
  .welcome-shell,
  .product-layout,
  .footer-inner,
  .cart-layout,
  .auth-shell,
  .admin-market-layout,
  .admin-editor-layout {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .search {
    order: 2;
  }

  .topbar-actions {
    order: 3;
    justify-content: flex-start;
  }

  .menu-row {
    grid-template-columns: repeat(3, max-content);
    gap: 12px 16px;
  }

  .hero-main,
  .promo-card,
  .catalog-hero,
  .product-info,
  .product-gallery,
  .spec-box,
  .auth-card,
  .auth-side {
    padding: 28px;
  }

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

  .category-grid,
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .container {
    width: min(760px, calc(100% - 22px));
  }

  .hero-buttons,
  .welcome-actions,
  .product-actions {
    grid-template-columns: 1fr;
  }

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

  .menu-row {
    grid-template-columns: repeat(2, max-content);
  }

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

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

  .cart-item {
    grid-template-columns: 96px 1fr;
  }

  .cart-item-controls {
    grid-column: 1 / -1;
    justify-items: start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
    background:
      radial-gradient(circle at top left, rgba(109, 40, 217, 0.11), transparent 26%),
      radial-gradient(circle at top right, rgba(255, 183, 3, 0.1), transparent 24%),
      linear-gradient(180deg, #fbfcff 0%, #f3f6ff 100%);
  }

  .container {
    width: calc(100% - 24px);
  }

  .topbar {
    position: static;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
    padding-top: 10px;
  }

  .topbar-inner,
  .stat-grid,
  .product-grid,
  .category-grid,
  .benefit-grid,
  .welcome-shell,
  .footer-inner,
  .product-layout,
  .admin-card-grid {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "actions"
      "search";
    gap: 8px;
    padding: 0;
    align-items: stretch;
  }

  .topbar .brand {
    grid-area: brand;
    display: block;
    min-height: 0;
    padding: 14px 16px;
    text-align: left;
    line-height: 1.1;
    font-size: 1.16rem;
    border: 1px solid rgba(231, 234, 244, 0.95);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 22px rgba(27, 39, 94, 0.07);
  }

  .search {
    grid-area: search;
  }

  .search input {
    height: 52px;
    padding: 0 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 22px rgba(27, 39, 94, 0.07);
  }

  .topbar-actions {
    grid-area: actions;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    justify-content: stretch;
  }

  .topbar-actions > :nth-child(3) { order: 1; }
  .topbar-actions > :nth-child(4) { order: 2; }
  .topbar-actions > :nth-child(1) { order: 3; }
  .topbar-actions > :nth-child(2) { order: 4; }
  .topbar-actions > :nth-child(n + 5) { order: 5; }

  .topbar-actions > * {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    justify-content: center;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(27, 39, 94, 0.07);
    font-size: 0.86rem;
  }

  .topbar-actions .button,
  .topbar-actions .button-small,
  .topbar-actions .cart-link,
  .topbar-actions .lang-link {
    min-height: 48px;
  }

  .menu-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0 4px;
    margin-top: 10px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .menu-row::-webkit-scrollbar {
    display: none;
  }

  .menu-row a {
    flex: 0 0 auto;
    min-height: 52px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    box-shadow: 0 10px 24px rgba(27, 39, 94, 0.06);
    scroll-snap-align: start;
  }

  .page {
    padding: 14px 0 96px;
  }

  .hero-main,
  .promo-card,
  .category-card,
  .product-card,
  .benefit-card,
  .catalog-hero,
  .product-gallery,
  .product-info,
  .spec-box,
  .auth-card,
  .auth-side,
  .cart-list,
  .cart-summary,
  .cart-empty {
    padding: 18px;
    border-radius: 24px;
    box-shadow: 0 12px 28px rgba(27, 39, 94, 0.08);
  }

  .hero-main h1,
  .welcome-copy h1,
  .catalog-hero h1,
  .product-info h1 {
    font-size: clamp(1.78rem, 8vw, 2.45rem);
    line-height: 1.02;
    margin: 10px 0 12px;
  }

  .hero-buttons,
  .welcome-actions,
  .product-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-grid {
    margin-top: 16px;
    gap: 10px;
  }

  .stat-card {
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8f4ff 0%, #f1f5ff 100%);
  }

  .button,
  .button-small {
    width: 100%;
  }

  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
  }

  .section {
    padding-top: 20px;
  }

  .section-soft {
    margin-top: 20px;
    padding: 24px 0;
  }

  .filter-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 0 16px;
    scroll-snap-align: start;
  }

  .category-card,
  .product-card,
  .benefit-card {
    padding: 16px;
  }

  .product-card {
    min-height: 0;
  }

  .category-card h3,
  .product-card h3,
  .benefit-card h3,
  .spec-box h2 {
    margin: 10px 0 8px;
  }

  .cart-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 0;
  }

  .cart-item-controls {
    justify-items: start;
    gap: 8px;
  }

  .cart-summary strong {
    margin: 12px 0 18px;
  }

  .auth-form {
    gap: 14px;
  }

  .auth-side {
    display: grid;
    gap: 12px;
    align-content: start;
  }

  .product-image {
    height: 172px;
    border-radius: 18px;
  }

  .product-image-large {
    height: 280px;
    border-radius: 24px;
  }

  .support-widget {
    right: 10px;
    left: 10px;
    bottom: 10px;
    justify-items: stretch;
  }

  .support-toggle {
    width: 100%;
    min-height: 78px;
    border-radius: 24px;
    justify-content: center;
  }

  .support-panel {
    width: 100%;
    padding: 18px;
    border-radius: 24px;
  }

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

@media (max-width: 420px) {
  .container {
    width: calc(100% - 20px);
  }

  .topbar .brand {
    padding: 12px 14px;
    font-size: 1.02rem;
    border-radius: 16px;
  }

  .hero-main h1,
  .welcome-copy h1,
  .catalog-hero h1,
  .product-info h1 {
    font-size: clamp(1.55rem, 9vw, 2rem);
  }

  .hero-main,
  .promo-card,
  .category-card,
  .product-card,
  .benefit-card,
  .catalog-hero,
  .product-gallery,
  .product-info,
  .spec-box,
  .auth-card,
  .auth-side,
  .cart-list,
  .cart-summary,
  .cart-empty {
    padding: 14px;
    border-radius: 20px;
  }

  .topbar {
    padding-top: 6px;
  }

  .topbar-inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .search input {
    height: 48px;
    border-radius: 14px;
  }

  .auth-form input {
    height: 46px;
    border-radius: 14px;
  }

  .qty-input {
    height: 44px;
    border-radius: 12px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .button,
  .button-small,
  .lang-link,
  .filter-chip,
  .cart-link {
    min-height: 44px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar-actions > * {
    min-height: 44px;
    border-radius: 14px;
    font-size: 0.76rem;
  }

  .menu-row {
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
  }

  .menu-row a {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
  }

  .stat-card {
    padding: 14px;
  }

  .cart-item {
    gap: 12px;
  }

  .cart-thumb {
    height: 88px;
  }

  .support-widget {
    right: 10px;
    left: 10px;
    bottom: 10px;
    justify-items: stretch;
  }

  .support-toggle {
    min-height: 72px;
    border-radius: 20px;
  }

  .support-panel {
    width: 100%;
    padding: 16px;
    border-radius: 20px;
  }

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

  .admin-nav {
    display: grid;
  }
}
