:root {
  --bg: #faf7fc;
  --surface: #ffffff;
  --surface-tinted: #f1eaf7;
  --accent-soft: #eae0f5;
  --primary: #4a3267;
  --primary-hover: #5e4182;
  --terracotta: #8459b6;
  --text: #251e2e;
  --text-muted: #695e78;
  --border: #e4daee;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 16px rgba(74, 50, 103, 0.06);
  --shadow-md: 0 12px 32px rgba(74, 50, 103, 0.11);
  --font-serif: Georgia, "Palatino Linotype", "Book Antiqua", serif;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Атрибут hidden должен побеждать любые display: grid/flex из классов */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.no-scroll {
  overflow: hidden;
}

a,
button {
  touch-action: manipulation;
}

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

button,
input,
select {
  font-family: inherit;
}

.container {
  width: min(1160px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(74, 50, 103, 0.04);
}

.top-utility-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
}

.top-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
}

.header-main {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.header-main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 70px;
  padding-block: 0.45rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo-text {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.logo-city {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-top: 0.12rem;
}

.logo-mark {
  color: var(--terracotta);
  display: inline-block;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary);
}

.utility-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.utility-account-btn:hover {
  background: var(--accent-soft);
  border-color: var(--border);
}

.utility-account-btn span {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-hours {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--text-muted);
}

.header-hours strong {
  color: var(--primary);
  font-weight: 600;
}

.header-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.16rem;
  line-height: 1.25;
}

.header-phones {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.2rem 0.85rem;
}

.header-contact-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.75rem;
}

.header-phone-main,
.header-phone-sub {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.header-phone-main:hover,
.header-phone-sub:hover {
  color: var(--terracotta);
}

.header-callback-link {
  border: none;
  background: none;
  padding: 0;
  color: var(--terracotta);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.header-callback-link:hover {
  color: var(--primary);
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.header-catalog-btn:hover {
  border-color: var(--primary);
  background: var(--accent-soft);
}

.wave-strip {
  width: 100%;
  height: 10px;
  color: #cbb5e8;
  overflow: hidden;
  line-height: 0;
}

.wave-strip svg {
  width: 100%;
  height: 10px;
  display: block;
}

.category-bar {
  background: var(--surface);
}

.category-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.55rem;
}

.category-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.category-search {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  flex-shrink: 0;
}

.category-search:focus-within {
  border-color: var(--primary);
  background: var(--surface);
}

.category-search-input {
  border: none;
  background: transparent;
  outline: none;
  width: 145px;
  font-size: 0.86rem;
  color: var(--text);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.account-btn span {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-btn:hover {
  border-color: var(--primary);
  background: var(--accent-soft);
}

.cart-btn:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding-inline: 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 0 9px;
}

.burger-btn span {
  display: block;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

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

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

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--accent-soft);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.86rem;
}

.btn-full {
  width: 100%;
}

/* Promo Hero Banner */
.hero-banner-section {
  padding: 1.6rem 0 1.25rem;
}

.promo-banner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem 2.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(125deg, #f3ecfa 0%, #ffffff 55%, #ece1f7 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.promo-banner-title {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
}

.promo-banner-title em {
  font-style: normal;
  color: var(--terracotta);
}

.promo-code-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.85rem;
}

.promo-code-pill {
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  border: 1.5px dashed var(--terracotta);
  background: var(--surface);
  color: var(--terracotta);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.promo-code-pill:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.promo-banner-note {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 48ch;
}

.promo-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.promo-banner-img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin-top: 1.35rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.94rem;
  color: var(--text-muted);
}

.trust-city {
  font-weight: 500;
  color: var(--text);
}

.trust-badge {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
}

.trust-score {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.trust-stars {
  color: #d9a032;
  letter-spacing: 0.06em;
}

.trust-reviews {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.catalog-section {
  padding-top: 1.5rem;
}

.catalog-heading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.catalog-main-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

.heading-wave {
  width: 86px;
  height: 10px;
  color: #c8afe8;
  flex-shrink: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.75rem;
  background: var(--surface-tinted);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.filter-price-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary);
}

.price-input-box {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.price-input-box input {
  width: 72px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
}

.filter-select {
  padding: 0.48rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--primary);
}

.filter-reset-btn {
  margin-left: auto;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
}

.filter-reset-btn:hover {
  background: var(--accent-soft);
}

.catalog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.info-two-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.faq-item summary {
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
}

.faq-item p {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.promo-error {
  color: #b83b3b;
}

.section-tinted {
  background: var(--surface-tinted);
  border-block: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
}

.select-input,
.form-control {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.select-input:focus,
.form-control:focus {
  border-color: var(--primary);
}

/* Category Bar Tabs */
.filter-tab {
  padding: 0.4rem 0.82rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  background: var(--accent-soft);
  color: var(--primary);
}

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

/* Catalog Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.product-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 1;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.25rem 1.25rem;
}

.product-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
}

.product-desc {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

/* Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.benefit-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.benefit-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--primary);
}

.benefit-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: var(--primary);
  color: #efe9f7;
  padding: 3.5rem 0 1.5rem;
}

.footer-logo {
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-logo .logo-mark {
  color: #d6c2f0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #fff;
}

.footer-text {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  color: rgba(239, 233, 247, 0.84);
}

.footer-text code {
  background: rgba(255, 255, 255, 0.14);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  color: #fff;
}

.footer-bottom {
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(239, 233, 247, 0.68);
}

/* Cart Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(38, 24, 56, 0.45);
  z-index: 60;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  height: 100dvh;
  background: var(--surface);
  z-index: 70;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  transform: translateX(100%);
  transition: transform 0.25s ease, visibility 0.25s ease;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
}

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

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 2;
}

.cart-header h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--primary);
}

.icon-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cart-empty {
  margin: auto 0;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.cart-item-title {
  margin: 0 0 0.2rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.95rem;
}

.cart-item-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
}

.cart-footer {
  padding: 1.1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: grid;
  gap: 0.85rem;
}

.promo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.promo-message {
  font-size: 0.82rem;
  color: var(--primary);
  min-height: 1rem;
}

.cart-summary {
  display: grid;
  gap: 0.35rem;
}

.summary-line,
.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
}

.discount-line {
  color: var(--terracotta);
}

.summary-total {
  font-size: 1.1rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
  color: var(--primary);
}

.checkout-form {
  display: grid;
  gap: 0.6rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  left: 50%;
  max-width: calc(100vw - 2rem);
  text-align: center;
  transform: translate(-50%, 140%);
  background: var(--primary);
  color: #fff;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 90;
  pointer-events: none;
}

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

/* Responsive */
@media (max-width: 900px) {
  .promo-banner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .promo-banner {
    padding: 1.5rem;
  }

  .header-hours {
    display: none;
  }
}

@media (max-width: 720px) {
  .header-main-inner {
    min-height: 60px;
    gap: 0.6rem;
  }

  .logo {
    font-size: 1.3rem;
    gap: 0.45rem;
  }

  .header-catalog-btn {
    display: none;
  }

  .header-phones {
    flex-direction: column;
    align-items: flex-end;
    gap: 0.08rem;
  }

  .header-phone-main,
  .header-phone-sub {
    font-size: 0.9rem;
  }

  .header-callback-link {
    font-size: 0.68rem;
  }

  .nav {
    position: fixed;
    top: 38px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.4rem 1.25rem 1rem;
    gap: 0;
    display: none;
    box-shadow: var(--shadow-md);
    z-index: 45;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.96rem;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav.open {
    display: flex;
  }

  .burger-btn {
    display: flex;
  }

  .category-bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

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

  .category-search {
    width: 100%;
  }

  .category-search-input {
    width: 100%;
  }

  .heading-wave {
    width: 44px;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-price-group {
    justify-content: space-between;
  }

  .cart-btn-label {
    display: none;
  }

  .section {
    padding: 2.75rem 0;
  }
}

/* Auth & Profile Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(38, 24, 56, 0.48);
  z-index: 75;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 2rem));
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  z-index: 80;
  box-shadow: var(--shadow-md);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal-header h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--primary);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.auth-tab {
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-weight: 500;
  cursor: pointer;
}

.auth-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.auth-form {
  display: grid;
  gap: 0.75rem;
}

.form-error {
  color: #b83b3b;
  font-size: 0.85rem;
  min-height: 1rem;
}

.profile-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.profile-card strong {
  color: var(--primary);
  font-size: 1.05rem;
}

.orders-heading {
  margin: 0 0 0.6rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--primary);
}

.orders-list {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
  max-height: 220px;
  overflow-y: auto;
}

.order-row {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.order-row-top {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

/* Mobile Drawer & Modal Overrides */
@media (max-width: 720px), (max-height: 780px) {
  .cart-drawer {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cart-body {
    flex: 0 0 auto;
    overflow-y: visible;
  }
}

@media (max-width: 600px) {
  .modal {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-height: 90dvh;
    border-radius: 22px 22px 0 0;
    border-bottom: none;
    padding: 1.25rem 1.15rem calc(1.25rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1160px, 100% - 1.5rem);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .qty-btn {
    width: 40px;
    height: 40px;
  }

  .toast {
    width: calc(100vw - 2rem);
    border-radius: 14px;
  }
}

/* Header Call & Branch Support */
.header-phone {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  white-space: nowrap;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.header-phone:hover {
  background: var(--accent-soft);
}

.price-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.price-old {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-badge-stock {
  left: auto;
  right: 0.85rem;
  background: rgba(132, 89, 182, 0.92);
  color: #fff;
  border-color: transparent;
}

.product-badge-sale {
  background: var(--terracotta);
  color: #fff;
  border-color: transparent;
}

.product-card-muted .product-media img {
  opacity: 0.82;
}

.call-summary-box {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: var(--text);
}

.call-summary-box[hidden],
.call-summary-img[hidden],
.call-summary-desc[hidden],
.call-success-box[hidden] {
  display: none;
}

.call-summary-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.call-summary-info {
  min-width: 0;
  flex: 1;
}

.call-summary-box strong {
  display: block;
  color: var(--primary);
  margin-bottom: 0.2rem;
  font-size: 0.96rem;
}

.call-summary-desc {
  margin: 0 0 0.3rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.call-summary-meta {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--terracotta);
}

.call-lead-note {
  margin: 0 0 0.95rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 400;
}

.consent-check input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.call-success-box {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
  padding: 1.25rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.call-success-badge {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 700;
}

.call-success-box h3 {
  margin: 0;
  color: var(--primary);
  font-family: var(--font-serif);
  font-size: 1.25rem;
}

.call-success-box p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.auth-optional-note {
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.footer-requisites {
  margin-top: 0.65rem;
  font-size: 0.82rem;
  opacity: 0.85;
}

.call-direct-box {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.call-hours-note {
  margin: 0;
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.call-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.call-divider::before,
.call-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.branch-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.branch-item {
  font-size: 0.88rem;
  color: rgba(239, 233, 247, 0.88);
}

.branch-item strong {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 720px) {
  .header-phone {
    display: none;
  }
}
