/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #223bdd;
  --primary-dark: #1a2fc0;
  --secondary: #00D26A;
  --accent: #FF6B00;
  --background: #FFFFFF;
  --surface: #F5F7FA;
  --surface-dark: #E8ECF0;
  --border: #D8DDE4;
  --text-primary: #0D0D0D;
  --text-secondary: #5C6470;
  --text-muted: #8A929D;
  --error: #FF3D3D;
  --success: #00C853;
  --warning: #FFB800;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 32px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

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

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

.btn-secondary,
a.btn-secondary {
  --bs-btn-color: #223BDD;
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #223BDD;
  --bs-btn-hover-color: #223BDD;
  --bs-btn-hover-bg: #eef2ff;
  --bs-btn-hover-border-color: #223BDD;
  --bs-btn-active-color: #223BDD;
  --bs-btn-active-bg: #eef2ff;
  background: #fff !important;
  background-color: #fff !important;
  color: #223BDD !important;
  border: 1px solid #223BDD !important;
}

.btn-secondary:hover,
a.btn-secondary:hover {
  background: #eef2ff !important;
  background-color: #eef2ff !important;
  color: #223BDD !important;
  border-color: #223BDD !important;
}

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

.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 1px solid white;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  border-bottom: 1px solid var(--border);
}

.top-bar {
  background: var(--surface);
  padding: 8px 0;
  font-size: 12px;
  color: var(--text-secondary);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-links {
  display: flex;
  gap: 24px;
}

.top-bar-links a:hover {
  color: var(--primary);
}

.top-bar-phone {
  display: none;
}

@media (min-width: 640px) {
  .top-bar-phone {
    display: block;
  }
}

.main-header {
  padding: 16px 0;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Site logo (image) ───────────────────────────────────── */
.site-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

/* PNG 1078×159 — naturally 2× Retina-ready */
.site-logo-img {
  display: block;
  height: 25px;
  width: auto;
  max-width: none;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

/* Footer logo */
.site-logo-img--footer { height: 25px; }

/* Tablet */
@media (max-width: 1024px) {
  .site-logo-img { height: 23px; }
  .site-logo-img--footer { height: 23px; }
}

/* Mobile */
@media (max-width: 640px) {
  .site-logo-img { height: 20px; }
  .site-logo-img--footer { height: 20px; }
}

/* Legacy classes — kept so other theme partials don't break */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-icon { display: none; }
.logo-text { display: none; }
.logo-main { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.logo-suffix { font-size: 20px; font-weight: 700; color: var(--primary); }

.catalog-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-weight: 500;
}

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

@media (min-width: 768px) {
  .catalog-btn {
    display: flex;
  }
}

.search-box {
  flex: 1;
  max-width: 600px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.search-box input:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 59, 221, 0.1);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

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

.header-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

@media (min-width: 1024px) {
  .header-actions {
    display: flex;
  }
}

.icon-btn {
  padding: 10px;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.2s;
}

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

.auth-buttons {
  display: flex;
  gap: 8px;
}

.mobile-menu-btn {
  padding: 8px;
  color: var(--text-secondary);
  margin-left: auto;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Catalog Dropdown */
.catalog-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.catalog-dropdown.active {
  display: block;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .catalog-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.catalog-item {
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}

.catalog-item:hover {
  background: var(--surface);
  color: var(--primary);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 200;
  padding: 16px;
  flex-direction: column;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-title {
  font-size: 18px;
  font-weight: 600;
}

.mobile-menu-close {
  padding: 8px;
  color: var(--text-secondary);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.mobile-nav a {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
}

.mobile-nav a:hover {
  background: var(--surface);
  color: var(--primary);
}

.mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ─── Home Hero ─────────────────────────────────────────────────────── */
.home-hero-section {
  padding: 24px 0 0;
}

.home-hero-slider {
  position: relative;
  max-width: 1500px;
  width: calc(100% - 48px);
  margin: 0 auto;
  height: 480px;
  border-radius: 18px;
  overflow: hidden;
  color: white;
  background: #111;
}

@media (max-width: 1023px) {
  .home-hero-slider {
    height: 440px;
    border-radius: 14px;
    width: calc(100% - 32px);
  }
}

@media (max-width: 767px) {
  .home-hero-slider {
    height: auto;
    min-height: 420px;
    width: 100%;
    border-radius: 12px;
  }
}

@media (max-width: 479px) {
  .home-hero-slider {
    border-radius: 0;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 80px;
  max-width: 880px;
}

@media (max-width: 1023px) {
  .hero-content { padding: 56px 40px; }
}

@media (max-width: 767px) {
  .hero-content { padding: 40px 20px; }
}

.hero-title {
  font-size: 50px;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 14px;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

@media (max-width: 1023px) {
  .hero-title { font-size: 40px; }
}

@media (max-width: 767px) {
  .hero-title { font-size: 32px; margin-bottom: 10px; }
}

@media (max-width: 479px) {
  .hero-title { font-size: 28px; }
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.92;
  margin-bottom: 28px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

@media (max-width: 767px) {
  .hero-subtitle { font-size: 14px; margin-bottom: 20px; }
}

.hero-search { margin-bottom: 24px; }

.hero-search-box {
  display: flex;
  background: #fff;
  border-radius: 12px;
  padding: 5px 5px 5px 0;
  box-shadow: 0 6px 28px rgba(0,0,0,0.28);
  max-width: 580px;
}

.hero-search-box input {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  background: transparent;
  border-radius: 12px 0 0 12px;
}

.hero-search-box input::placeholder { color: var(--text-muted); }

.hero-search-box .btn {
  flex-shrink: 0;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 479px) {
  .hero-search-box input { padding: 11px 14px; font-size: 14px; }
  .hero-search-box .btn  { padding: 11px 16px; font-size: 13px; }
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.hero-feature svg { flex-shrink: 0; }

@media (max-width: 479px) {
  .hero-features  { gap: 8px; }
  .hero-feature   { font-size: 12px; flex: 0 1 calc(50% - 4px); }
}

.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 7px;
  align-items: center;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.35s, border-radius 0.35s, background 0.35s;
}

.hero-dot.active {
  width: 26px;
  border-radius: 4px;
  background: #fff;
}

/* Section */
.section {
  padding: 48px 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 64px 0;
  }
}

.section-gray {
  background: var(--surface);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 28px;
  }
}

.section-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 500;
}

.section-link:hover {
  text-decoration: underline;
}

.text-center {
  text-align: center;
}

/* Categories Grid */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-card {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  display: block;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.category-card:hover img {
  transform: scale(1.1);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: white;
}

.category-overlay h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.category-overlay span {
  font-size: 12px;
  opacity: 0.8;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

.product-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all 0.2s;
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.product-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}

.favorite-btn:hover {
  color: var(--error);
}

.product-brand {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.product-info {
  padding: 16px;
}

.product-name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.product-price {
  margin-bottom: 8px;
}

.price-main {
  font-size: 18px;
  font-weight: 700;
}

.price-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 4px;
}

.product-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item {
  text-align: center;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.feature-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #0D0D0D 0%, #1a1a1a 100%);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  color: white;
}

.cta-box h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .cta-box h2 {
    font-size: 28px;
  }
}

.cta-box p {
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* ============================================================
   Footer — Wikkeo-style (light lavender background)
   ============================================================ */

.wi-footer {
  background: #e5e7f3; /* Wikkeo --light-grey-3 */
  margin-top: auto;
}

.wi-footer-inner {
  max-width: 1420px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ── Main content grid ───────────────────────────────────── */
.wi-footer-content {
  display: grid;
  grid-template-columns: 280px repeat(4, 1fr);
  column-gap: 48px;
  align-items: start;
}

/* ── Brand column ────────────────────────────────────────── */
.wi-footer-brand {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.wi-footer-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.wi-footer-brand-desc {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* Telegram CTA button — mirrors Wikkeo's subscribe button */
.wi-footer-tg-btn {
  display: inline-flex;
  align-items: center;
  column-gap: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 14px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: column-gap 0.3s, background 0.2s;
  width: fit-content;
  white-space: nowrap;
}

.wi-footer-tg-btn:hover {
  background: var(--primary-dark);
  color: #fff;
  column-gap: 14px;
}

/* ── Nav columns ─────────────────────────────────────────── */
.wi-footer-nav {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.wi-footer-nav h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.wi-footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  row-gap: 12px;
}

.wi-footer-nav ul a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.wi-footer-nav ul a:hover {
  color: var(--primary);
}

/* ── Bottom bar ──────────────────────────────────────────── */
.wi-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Social icon buttons — matches Wikkeo's icon wrapper style */
.wi-footer-socials {
  display: flex;
  align-items: center;
  column-gap: 12px;
}

.wi-footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #f4f5fa; /* Wikkeo --light-grey-1 / --footer-button */
  border-radius: 12px;
  color: var(--primary);
  opacity: 0.7;
  transition: opacity 0.3s, background 0.3s;
  text-decoration: none;
  flex-shrink: 0;
}

.wi-footer-social-icon:hover {
  opacity: 1;
  background: #e1e2f0;
  color: var(--primary);
}

.wi-footer-copyright {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1200px) {
  .wi-footer-content {
    grid-template-columns: 240px repeat(4, 1fr);
    column-gap: 32px;
  }
}

@media (max-width: 960px) {
  .wi-footer-content {
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 32px;
  }

  .wi-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .wi-footer-inner {
    padding: 32px 16px;
  }

  .wi-footer-content {
    grid-template-columns: 1fr 1fr;
    row-gap: 28px;
  }

  .wi-footer-brand {
    grid-column: 1 / -1;
    align-items: center;
    text-align: center;
  }

  .wi-footer-bottom {
    flex-direction: column-reverse;
    align-items: center;
    row-gap: 20px;
    margin-top: 32px;
  }
}

@media (max-width: 420px) {
  .wi-footer-content {
    grid-template-columns: 1fr;
  }

  .wi-footer-brand {
    grid-column: 1;
  }
}

/* Breadcrumbs */
.breadcrumbs {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumbs-list a {
  color: var(--text-secondary);
}

.breadcrumbs-list a:hover {
  color: var(--primary);
}

.breadcrumbs-list span {
  color: var(--text-primary);
}

.breadcrumbs-separator {
  color: var(--text-muted);
}

/* Page Content */
.page-content {
  padding: 24px 0;
}

/* Card */
.card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 16px;
  font-weight: 600;
}

.card-body {
  padding: 20px;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(34, 59, 221, 0.1);
}

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

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.tab {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
}

.tab.active {
  background: var(--primary);
  color: white;
}

.tab:not(.active):hover {
  background: var(--surface);
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
}

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

.table th {
  background: var(--surface);
  font-weight: 500;
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.table tr:hover td {
  background: var(--surface);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
}

.badge-blue {
  background: rgba(34, 59, 221, 0.1);
  color: var(--primary);
}

.badge-green {
  background: rgba(0, 210, 106, 0.1);
  color: var(--secondary);
}

.badge-orange {
  background: rgba(255, 107, 0, 0.1);
  color: var(--accent);
}

.badge-gray {
  background: var(--surface);
  color: var(--text-secondary);
}

/* Chat */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 500px;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: white;
}

.chat-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
}

.chat-user-info h4 {
  font-size: 14px;
  font-weight: 600;
}

.chat-user-info span {
  font-size: 12px;
  color: var(--secondary);
}

.chat-actions {
  display: flex;
  gap: 8px;
}

.chat-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.chat-product img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}

.chat-product-info {
  flex: 1;
}

.chat-product-info h5 {
  font-size: 14px;
  font-weight: 500;
}

.chat-product-info span {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════════
   CHAT — строго по шаблону chat.html
   ════════════════════════════════════════════════════════════════════ */

/* Flex-контейнер фиксированной высоты — применяется вместе с .card */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 500px;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: white;
  flex-shrink: 0;
}

.chat-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
}

.chat-user-info h4 { font-size: 14px; font-weight: 600; }
.chat-user-info span { font-size: 12px; color: var(--secondary); }
.chat-actions { display: flex; gap: 8px; }

.chat-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-product img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; }
.chat-product-info { flex: 1; }
.chat-product-info h5 { font-size: 14px; font-weight: 500; }
.chat-product-info span { font-size: 14px; color: var(--primary); font-weight: 600; }

/* Область сообщений — scroll-контейнер */
.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: var(--surface);
}

/* Внутренний столбец: прижимает историю к низу — стандарт мессенджеров */
.chat-messages-inner {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.message { display: flex; margin-bottom: 12px; flex-shrink: 0; }
.message.sent { justify-content: flex-end; }

.message-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
}
.message.received .message-bubble {
  background: white;
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.message.sent .message-bubble {
  background: var(--primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.message-time {
  font-size: 11px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  line-height: 1;
}
.message.sent .message-time    { color: rgba(255,255,255,.70); }
.message.received .message-time { color: var(--text-muted); opacity: .80; }
.msg-tick { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* Поле ввода — никогда не растёт */
.chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: white;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-input button { padding: 10px; color: var(--text-secondary); border-radius: 8px; }
.chat-input button:hover { background: var(--surface); color: var(--primary); }
.chat-input input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  font-size: 14px;
  font-family: inherit;
}
.chat-input input:focus { border-color: var(--primary); }
.chat-input .btn-primary { padding: 10px; flex-shrink: 0; }

/* Chat List */
.chat-list {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.chat-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.chat-list-item:hover {
  background: var(--surface);
}

.chat-list-item:last-child {
  border-bottom: none;
}

.chat-list-content {
  flex: 1;
  min-width: 0;
}

.chat-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.chat-list-header h4 {
  font-size: 14px;
  font-weight: 500;
}

.chat-list-header span {
  font-size: 12px;
  color: var(--text-muted);
}

.chat-list-preview {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-list-preview.unread {
  color: var(--text-primary);
  font-weight: 500;
}

.chat-list-badge {
  width: 20px;
  height: 20px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 500;
}

/* Dashboard */
.dashboard-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .dashboard-layout {
    flex-direction: row;
  }
}

.dashboard-sidebar {
  width: 100%;
}

@media (min-width: 1024px) {
  .dashboard-sidebar {
    width: 260px;
    flex-shrink: 0;
  }
}

.dashboard-nav {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 16px;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.dashboard-user-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.dashboard-user-info h4 {
  font-size: 14px;
  font-weight: 600;
}

.dashboard-user-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.dashboard-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-menu a,
.dashboard-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: left;
  width: 100%;
}

.dashboard-menu a:hover,
.dashboard-menu button:hover {
  background: var(--surface);
  color: var(--primary);
}

.dashboard-menu a.active,
.dashboard-menu button.active {
  background: var(--surface);
  color: var(--primary);
  font-weight: 500;
}

.dashboard-content {
  flex: 1;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 16px;
}

.stat-card-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Welcome Card */
.welcome-card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  padding: 24px;
  color: white;
  margin-bottom: 24px;
}

.welcome-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.welcome-card p {
  opacity: 0.8;
}

/* Filter Sidebar */
.filter-sidebar {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px;
}

.filter-group {
  margin-bottom: 24px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
}

.filter-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.page-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Accordion */
.accordion {
  border-radius: 12px;
  overflow: hidden;
}

.accordion-item {
  background: white;
  border: 1px solid var(--border);
  margin-bottom: 8px;
  border-radius: 12px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.accordion-header:hover {
  background: var(--surface);
}

.accordion-content {
  padding: 0 20px 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Steps */
.steps {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.step.active .step-number {
  background: var(--primary);
  color: white;
}

.step:not(.active) .step-number {
  background: var(--border);
  color: var(--text-muted);
}

.step-label {
  display: none;
  font-size: 14px;
  font-weight: 500;
}

@media (min-width: 640px) {
  .step-label {
    display: block;
  }
}

.step.active .step-label {
  color: var(--primary);
}

.step:not(.active) .step-label {
  color: var(--text-muted);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
}

.step-line.active {
  background: var(--primary);
}

/* Info Box */
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
}

.info-box.blue {
  background: rgba(34, 59, 221, 0.05);
}

.info-box.orange {
  background: rgba(255, 184, 0, 0.1);
}

.info-box svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Success State */
.success-state {
  text-align: center;
  padding: 48px 24px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 210, 106, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.success-state h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.success-state p {
  color: var(--text-secondary);
  max-width: 400px;
  margin: 0 auto 24px;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gap-2 {
  gap: 8px;
}

.gap-4 {
  gap: 16px;
}

.mt-4 {
  margin-top: 16px;
}

.mt-6 {
  margin-top: 24px;
}

.mb-4 {
  margin-bottom: 16px;
}

.mb-6 {
  margin-bottom: 24px;
}

.flex {
  display: flex;
}

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

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

.flex-wrap {
  flex-wrap: wrap;
}

.grid {
  display: grid;
}

.w-full {
  width: 100%;
}

.text-right {
  text-align: right;
}

/* ============================================
   NEW PAGES STYLES
   Manufacturers, Suppliers, Supplier Profile
   ============================================ */

/* Page Header */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

@media (min-width: 640px) {
  .page-title {
    font-size: 32px;
  }
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Alphabet Filter */
.alphabet-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 24px;
  padding: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.alphabet-letter {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.alphabet-letter:hover {
  background: var(--surface);
  color: var(--primary);
}

.alphabet-letter.active {
  background: var(--primary);
  color: white;
}

/* Category Pills */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-pill {
  padding: 8px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
  cursor: pointer;
}

.category-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.category-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Letter Group */
.letter-group {
  margin-bottom: 40px;
}

.letter-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

/* Manufacturers Grid */
.manufacturers-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .manufacturers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .manufacturers-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.manufacturer-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
}

.manufacturer-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.manufacturer-logo {
  width: 64px;
  height: 64px;
  background: var(--surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.manufacturer-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.manufacturer-country {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.manufacturer-products {
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
}

/* Suppliers List */
.suppliers-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.supplier-card-large {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.supplier-card-large:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.supplier-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.supplier-card-logo {
  width: 64px;
  height: 64px;
  background: var(--surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.supplier-card-info {
  flex: 1;
  min-width: 200px;
}

.supplier-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.supplier-card-title h3 {
  font-size: 18px;
  font-weight: 600;
}

.supplier-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.supplier-location,
.supplier-rating,
.supplier-products {
  display: flex;
  align-items: center;
  gap: 4px;
}

.supplier-rating svg {
  color: var(--warning);
}

.supplier-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 640px) {
  .supplier-card-actions {
    flex-direction: row;
  }
}

.supplier-card-body {
  padding: 20px;
}

.supplier-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.supplier-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.category-tag {
  padding: 4px 12px;
  background: var(--surface);
  border-radius: 9999px;
  font-size: 12px;
  color: var(--text-secondary);
}

.supplier-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.supplier-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.supplier-stat-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.supplier-stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Filter More Link */
.filter-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--primary);
}

.filter-more:hover {
  text-decoration: underline;
}

/* Catalog Toolbar */
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.results-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.sort-dropdown {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.sort-dropdown span {
  color: var(--text-secondary);
}

/* Pagination (Extended) */
.pagination-ellipsis {
  padding: 8px;
  color: var(--text-muted);
}

/* ============================================
   SUPPLIER PROFILE PAGE
   ============================================ */

.supplier-profile-header {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.supplier-profile-main {
  display: flex;
  gap: 20px;
  flex: 1;
}

.supplier-profile-logo {
  width: 80px;
  height: 80px;
  background: var(--surface);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.supplier-profile-info {
  flex: 1;
  min-width: 200px;
}

.supplier-profile-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.supplier-profile-title h1 {
  font-size: 24px;
  font-weight: 700;
}

@media (min-width: 640px) {
  .supplier-profile-title h1 {
    font-size: 28px;
  }
}

.supplier-profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.supplier-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}

.supplier-profile-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-stars {
  display: flex;
  gap: 2px;
  color: var(--warning);
}

.rating-value {
  font-size: 18px;
  font-weight: 700;
}

.rating-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.supplier-profile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .supplier-profile-actions {
    flex-direction: row;
  }
}

.btn-large {
  padding: 14px 28px;
  font-size: 15px;
}

/* Contact Reveal */
.contact-reveal {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border-radius: 8px;
}

.contact-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Supplier Stats Cards */
.supplier-stats-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 640px) {
  .supplier-stats-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .supplier-stats-cards {
    grid-template-columns: repeat(5, 1fr);
  }
}

.stat-card {
  text-align: center;
  padding: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.stat-card-value {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-card-label {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Tabs Container */
.tabs-container {
  margin-top: 32px;
}

.tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.tab-btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: all 0.2s;
}

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

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tabs-container .tab-content {
  display: none;
}

.tabs-container .tab-content.active {
  display: block;
}

/* Company Details */
.company-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-label {
  min-width: 150px;
  font-size: 14px;
  color: var(--text-secondary);
}

.detail-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Reviews */
.reviews-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.reviews-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.reviews-rating-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
}

.reviews-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.reviews-bars {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.review-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-bar span:first-child {
  width: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.review-bar-track {
  flex: 1;
  height: 8px;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
}

.review-bar-fill {
  height: 100%;
  background: var(--warning);
  border-radius: 4px;
}

.review-bar span:last-child {
  width: 30px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: right;
}

/* Review Card */
.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card {
  padding: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.review-name {
  font-size: 14px;
  font-weight: 600;
}

.review-date {
  font-size: 12px;
  color: var(--text-muted);
}

.review-rating {
  display: flex;
  gap: 2px;
  color: var(--warning);
}

.review-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Documents */
.documents-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.document-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border-radius: 8px;
}

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

.document-name {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.document-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Badges Extended */
.badge-success {
  background: rgba(0, 200, 83, 0.1);
  color: var(--success);
}

.badge-primary {
  background: rgba(34, 59, 221, 0.1);
  color: var(--primary);
}

.badge-warning {
  background: rgba(255, 184, 0, 0.1);
  color: var(--warning);
}

/* Product Content (for supplier profile) */
.product-content {
  padding: 16px;
}

.product-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.product-supplier {
  font-size: 12px;
  color: var(--text-muted);
}
.optovka-top-menu,
.optovka-footer-menu,
.optovka-mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.optovka-top-menu {
  display: flex;
  gap: 24px;
}

.optovka-top-menu li,
.optovka-footer-menu li,
.optovka-mobile-menu-list li {
  list-style: none;
}

.optovka-top-menu a:hover {
  color: var(--primary);
}

.optovka-footer-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.optovka-footer-menu a {
  color: var(--text-muted);
  font-size: 14px;
}

.optovka-footer-menu a:hover {
  color: var(--primary);
}

.optovka-mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.optovka-mobile-menu-list a {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 16px;
}

.optovka-mobile-menu-list a:hover {
  background: var(--surface);
  color: var(--primary);
}

.optovka-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
}
/* ════════════════════════════════════════════════════════════════════
   НОВАЯ ШАПКА (Ozon-стиль)
   ════════════════════════════════════════════════════════════════════ */

.header { border-bottom: none; }

.hdr-main { background:#fff; border-bottom:1px solid var(--border); padding:8px 0; }
.hdr-row  { display:flex; align-items:center; gap:10px; }

.hdr-cat-btn { display:flex; align-items:center; gap:6px; padding:9px 14px; background:var(--primary); color:#fff; border:none; border-radius:8px; font-size:14px; font-weight:600; white-space:nowrap; cursor:pointer; flex-shrink:0; font-family:inherit; transition:background .15s; }
.hdr-cat-btn:hover { background:var(--primary-dark); }
@media (max-width:767px) { .hdr-cat-btn { display:none; } }

.hdr-search { flex:1; display:flex; align-items:stretch; background:var(--surface); border:1.5px solid var(--border); border-radius:10px; position:relative; transition:border-color .15s; overflow:visible; }
.hdr-search:focus-within { border-color:var(--primary); background:#fff; box-shadow:0 0 0 3px rgba(34,59,221,.08); }
.hdr-search .input-search-product { flex:1; min-width:0; padding:10px 14px; border:none; outline:none; font-size:14px; font-family:inherit; background:transparent; color:var(--text-primary); }
.hdr-search .input-search-product::placeholder { color:var(--text-muted); }
.hdr-search-btn { display:flex; align-items:center; justify-content:center; width:44px; background:var(--primary); color:#fff; border:none; border-radius:0 8px 8px 0; cursor:pointer; flex-shrink:0; transition:background .15s; }
.hdr-search-btn:hover { background:var(--primary-dark); }

@media (max-width:767px) {
  .hdr-row { flex-wrap:wrap; }
  .hdr-search { order:10; flex:0 0 100%; margin-top:2px; margin-bottom:4px; }
}

.hdr-acts { display:flex; align-items:center; gap:2px; flex-shrink:0; }
@media (max-width:767px) { .hdr-acts { display:none; } }

.hdr-act-wrap { position:relative; }
.hdr-act { display:flex; flex-direction:column; align-items:center; gap:3px; padding:5px 10px; border:none; background:none; color:var(--text-secondary); font-size:11px; font-family:inherit; border-radius:8px; cursor:pointer; text-decoration:none; white-space:nowrap; position:relative; transition:background .15s,color .15s; line-height:1; }
.hdr-act:hover { background:var(--surface); color:var(--primary); }
.hdr-act--icon { padding:7px 8px; }

.hdr-badge { position:absolute; top:2px; right:3px; min-width:17px; height:17px; padding:0 4px; background:#FF3D3D; color:#fff; border-radius:9px; font-size:10px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; pointer-events:none; line-height:1; }

.hdr-dropdown { position:absolute; top:calc(100% + 8px); right:0; min-width:230px; background:#fff; border-radius:12px; box-shadow:0 8px 32px rgba(0,0,0,.13),0 0 0 1px rgba(0,0,0,.06); z-index:210; opacity:0; visibility:hidden; transform:translateY(-6px); transition:opacity .14s,transform .14s,visibility .14s; pointer-events:none; }
.hdr-dropdown.hdr-dd-open { opacity:1; visibility:visible; transform:translateY(0); pointer-events:auto; }
@media (min-width:768px) { .hdr-act-wrap:hover .hdr-dropdown { opacity:1; visibility:visible; transform:translateY(0); pointer-events:auto; } }

.hdr-dropdown--mob { position:fixed; inset:auto 0 0 0; min-width:unset; border-radius:16px 16px 0 0; transform:translateY(12px); max-height:85vh; overflow-y:auto; }
.hdr-dropdown--mob.hdr-dd-open { transform:translateY(0); }

.hdr-dd-head { padding:14px 16px 10px; border-bottom:1px solid var(--border); }
.hdr-dd-name { font-size:14px; font-weight:600; color:var(--text-primary); }
.hdr-dd-role { font-size:12px; color:var(--text-muted); margin-top:2px; }
.hdr-dd-items { padding:6px 0; }
.hdr-dd-item { display:flex; align-items:center; gap:10px; padding:10px 16px; font-size:14px; color:var(--text-secondary); text-decoration:none; transition:background .1s,color .1s; }
.hdr-dd-item:hover { background:var(--surface); color:var(--primary); }
.hdr-dd-item svg { color:var(--text-muted); flex-shrink:0; }
.hdr-dd-item:hover svg { color:var(--primary); }
.hdr-dd-item--accent { color:var(--primary); font-weight:600; }
.hdr-dd-item--accent svg { color:var(--primary); }
.hdr-dd-item--danger { color:var(--error)!important; }
.hdr-dd-item--danger svg { color:var(--error)!important; }
.hdr-dd-item--danger:hover { background:rgba(255,61,61,.05)!important; }
.hdr-dd-sep { height:1px; background:var(--border); margin:4px 0; }
.hdr-dd-badge { min-width:18px; height:18px; padding:0 5px; background:var(--primary); color:#fff; border-radius:9px; font-size:10px; font-weight:700; display:inline-flex; align-items:center; justify-content:center; margin-left:auto; }

.hdr-mob-right { display:none; align-items:center; gap:2px; margin-left:auto; }
@media (max-width:767px) { .hdr-mob-right { display:flex; } .hdr-mob-right .hdr-act { padding:6px 8px; } }

.hdr-burger { display:flex; align-items:center; justify-content:center; padding:7px; color:var(--text-secondary); border:none; background:none; cursor:pointer; border-radius:8px; font-family:inherit; transition:background .15s; }
.hdr-burger:hover { background:var(--surface); color:var(--primary); }

.hdr-links-bar { background:#fff; border-bottom:1px solid var(--border); }
.hdr-links { display:flex; overflow-x:auto; scrollbar-width:none; -ms-overflow-style:none; padding:2px 0; }
.hdr-links::-webkit-scrollbar { display:none; }
.hdr-link { display:flex; align-items:center; gap:5px; padding:9px 12px; font-size:13px; color:var(--text-secondary); text-decoration:none; white-space:nowrap; border-radius:6px; flex-shrink:0; transition:background .15s,color .15s; }
.hdr-link:hover { background:var(--surface); color:var(--primary); }
.hdr-link svg { color:var(--text-muted); flex-shrink:0; }
.hdr-link:hover svg { color:var(--primary); }

/* ════ HEADER REFINEMENTS ════════════════════════════════════════════ */
:root { --primary: #223bdd; --primary-dark: #1a2fc0; --color-brand: #223bdd; --color-brand-dark: #1a2fc0; }
.hdr-main .container, .hdr-links-bar .container { max-width: 1500px; padding: 0 24px; }
@media (max-width:640px) { .hdr-main .container, .hdr-links-bar .container { padding: 0 16px; } }
.hdr-main { border-bottom: none !important; }
.hdr-search .input-search-product { padding: 8px 12px !important; font-size: 13px !important; }
.hdr-search-btn { width: 40px !important; min-height: 36px; border-radius: 0 7px 7px 0 !important; }
.hdr-search { border-radius: 8px !important; }
@media (min-width:768px) { .hdr-act-wrap:hover .hdr-dropdown { opacity: 0!important; visibility:hidden!important; pointer-events:none!important; transform:translateY(-6px)!important; } }
.hdr-act span { display: none !important; }
.hdr-act { padding: 8px 10px !important; }
.hdr-act--icon { padding: 8px !important; }
.hdr-act svg, .hdr-mob-right .hdr-act svg { width: 25px !important; height: 25px !important; }
.hdr-cat-btn { padding: 8px 14px !important; font-size: 13px !important; }
.hdr-main { padding: 10px 0 !important; }
.hdr-search:focus-within { border-color: #223bdd !important; box-shadow: 0 0 0 3px rgba(34,59,221,.10) !important; }

/* ════ HEADER FIX v2 ════════════════════════════════════════════════ */
.hdr-cat-btn { height:38px!important; padding:0 14px!important; box-sizing:border-box!important; }
.hdr-search { height:38px!important; box-sizing:border-box!important; align-items:stretch!important; max-width:480px!important; flex-shrink:1!important; }
.hdr-search-btn { height:100%!important; width:42px!important; box-sizing:border-box!important; }
.hdr-acts { margin-left:auto!important; }
@media (min-width:768px) { .hdr-act-wrap:hover .hdr-dropdown { opacity:1!important; visibility:visible!important; pointer-events:auto!important; transform:translateY(0)!important; } }
.hdr-dropdown::before { content:''; position:absolute; top:-10px; left:0; right:0; height:10px; background:transparent; }

/* ════ SEARCH WIDER + ICON ══════════════════════════════════════════ */
.hdr-search-ico { display:flex; align-items:center; padding:0 4px 0 12px; color:var(--text-muted); pointer-events:none; flex-shrink:0; }
.hdr-search .input-search-product { padding-left:4px !important; }
.hdr-search { max-width:640px !important; }

/* ════ HEADER FIX v3 ════════════════════════════════════════════════ */
.hdr-cat-btn,.hdr-search { height:46px!important; }
.hdr-cat-btn { display:inline-flex!important; align-items:center!important; justify-content:center!important; padding:0 18px!important; font-size:14px!important; font-weight:600!important; line-height:1!important; box-sizing:border-box!important; }
.hdr-search { max-width:875px!important; flex:1 1 0%!important; display:flex!important; align-items:stretch!important; box-sizing:border-box!important; }
.hdr-search-ico { display:flex!important; align-items:center!important; justify-content:center!important; padding:0 6px 0 14px!important; color:#8A929D!important; flex-shrink:0!important; pointer-events:none!important; }
.hdr-search-ico svg { width:18px!important; height:18px!important; display:block!important; }
.hdr-search .input-search-product { padding:0 8px 0 2px!important; font-size:14px!important; line-height:1!important; height:100%!important; box-sizing:border-box!important; }
.hdr-search-btn { flex-shrink:0!important; flex-grow:0!important; width:52px!important; height:100%!important; min-height:unset!important; display:flex!important; align-items:center!important; justify-content:center!important; padding:0!important; background:var(--primary)!important; border:none!important; border-radius:0 7px 7px 0!important; cursor:pointer!important; box-sizing:border-box!important; }
.hdr-search-btn svg { width:20px!important; height:20px!important; display:block!important; stroke:#ffffff!important; fill:none!important; flex-shrink:0!important; }

/* ════ CATALOG BTN MARGINS ══════════════════════════════════════════ */
.hdr-cat-btn { margin-left:20px!important; margin-right:20px!important; }

.hdr-cat-btn { margin-left:20px!important; margin-right:20px!important; }


/* ════════════════════════════════════════════════════════════════════
   OZON-STYLE MEGA CATALOG MENU
   ════════════════════════════════════════════════════════════════════ */

/* Make header the positioning context */
.header { position: relative; }

/* ── Catalog button active state ─────────────────────────────────── */
.hdr-cat-btn.is-open {
  background: rgba(34,59,221,.12) !important;
  color: #223BDD !important;
}

/* ── Mega catalog wrapper: fixed, covers full viewport ─────────────── */
.mega-cat {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  pointer-events: none;
}
/* is-open: keep pointer-events: none on wrapper so header stays clickable */
.mega-cat.is-open { display: block; pointer-events: none; }

/* Backdrop — only below header (top set by JS); catches outside clicks */
.mega-cat-bk {
  position: absolute;
  top: 112px; /* fallback — JS sets exact header bottom */
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.38);
  animation: mcBkIn .2s ease;
  pointer-events: auto;
}
@keyframes mcBkIn { from { opacity:0; } to { opacity:1; } }

/* Panel: from header-bottom to viewport-bottom; width set by JS to match container */
.mega-cat-panel {
  position: absolute;
  top: 112px; /* fallback, JS sets exact value */
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: mcPanelIn .22s ease;
  pointer-events: auto;
}
@keyframes mcPanelIn {
  from { opacity:0; transform:translateY(-4px); }
  to   { opacity:1; transform:translateY(0);    }
}

/* Body: fills panel via absolute inset — guarantees height for scroll */
.mega-cat-body {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  padding-top: 20px;
}

/* ── Left column: L1 categories ──────────────────────────────────── */
.mega-l-col {
  width: 280px;
  flex-shrink: 0;
  min-height: 0;
  border-right: none;
  overflow-y: auto;
  padding: 8px 0;
  background: #f7f8fa;
}
.mega-l-col::-webkit-scrollbar { width: 4px; }
.mega-l-col::-webkit-scrollbar-track { background: transparent; }
.mega-l-col::-webkit-scrollbar-thumb { background: #ced2dc; border-radius: 2px; }

.mega-l1-list { list-style: none; margin: 0; padding: 0; }
.mega-l1-item { }

.mega-l1-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  margin: 1px 5px;
  border-radius: 6px;
  color: #1c1f2e;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .14s, color .14s;
  line-height: 1.25;
}
.mega-l1-link:hover {
  background: #eef0fd;
  color: #223BDD;
  text-decoration: none !important;
}
.mega-l1-item.is-active .mega-l1-link {
  background: #eef0fd;
  color: #223BDD;
}
.mega-l1-item.is-active .mega-l1-link .mega-l1-icon svg { stroke: #223BDD; }
.mega-l1-link:hover .mega-l1-icon svg { stroke: #223BDD; }

.mega-l1-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  flex-shrink: 0;
  color: #7b818e;
  transition: color .14s;
}
.mega-l1-nm {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mega-l1-chev {
  flex-shrink: 0;
  color: #c0c5d0;
  transition: color .14s;
}
.mega-l1-link:hover .mega-l1-chev,
.mega-l1-item.is-active .mega-l1-link .mega-l1-chev { color: #223BDD; }

/* ── Right column: L2 + L3  (Ozon-density) ───────────────────────── */
.mega-r-col {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 20px 14px 22px;
  background: #fff;
}
.mega-r-col::-webkit-scrollbar { width: 4px; }
.mega-r-col::-webkit-scrollbar-thumb { background: #d4d8e2; border-radius: 2px; }

.mega-l2-panel { display: none; }
.mega-l2-panel.is-vis {
  display: block;
  animation: mcL2In .14s ease;
}
@keyframes mcL2In {
  from { opacity:0; transform:translateX(6px); }
  to   { opacity:1; transform:translateX(0);   }
}

/* CSS Grid: 4 columns, grows vertically → right col can scroll */
.mega-l2-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 48px;
  align-items: start;
}
@media (max-width: 1199px) { .mega-l2-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width:  920px) { .mega-l2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* L2 block — standard block, Ozon spacing */
.mega-l2-blk {
  margin-bottom: 22px;
}

/* Отступ сверху для второго и последующих блоков в колонке */
.mega-l2-blk + .mega-l2-blk .mega-l2-ttl {
  margin-top: 15px;
}

/* L2 title — Ozon: 15px semibold */
.mega-l2-ttl {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1c1f2e;
  margin-bottom: 4px;
  text-decoration: none !important;
  line-height: 1.25;
  transition: color .1s;
}
.mega-l2-ttl:hover { color: #223BDD; }

/* L3 list */
.mega-l3-ul { list-style: none; margin: 0; padding: 0; }
.mega-l3-ul li { line-height: 1; }

/* L3 links — Ozon: 14px */
.mega-l3-a {
  display: block;
  font-size: 14px;
  color: #5c6270;
  padding: 4px 0;
  text-decoration: none !important;
  line-height: 1.35;
  transition: color .1s;
}
.mega-l3-a:hover { color: #223BDD; }

/* ════════════════════════════════════════════════════════════════════
   MOBILE CATALOG PANEL
   ════════════════════════════════════════════════════════════════════ */
.mob-cat {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.mob-cat.is-open { transform: translateX(0); }

/* Header bar */
.mob-cat-hdr {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px 0 6px;
  height: 56px;
  min-height: 56px;
  border-bottom: 1px solid #e8eaed;
  background: #fff;
  flex-shrink: 0;
}
.mob-cat-back {
  display: flex;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  padding: 8px 6px;
  font-size: 14px;
  color: #223BDD;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.mob-cat-back.is-hidden { visibility: hidden; pointer-events: none; }
.mob-cat-title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
  color: #1c1f2e;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mob-cat-cls {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  color: #606470;
  flex-shrink: 0;
  transition: background .14s;
}
.mob-cat-cls:hover { background: #f0f2f7; }

/* Screens container */
.mob-cat-screens {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.mob-cat-scr {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  background: #fff;
  transform: translateX(100%);
  transition: transform .26s cubic-bezier(.4,0,.2,1);
}
.mob-cat-scr.is-act  { transform: translateX(0); }
.mob-cat-scr.is-behind { transform: translateX(-30%); }

/* Category list in mobile */
.mob-cat-ul { list-style: none; margin: 0; padding: 0; }
.mob-cat-li { border-bottom: 1px solid #f0f2f7; }
.mob-cat-li:last-child { border-bottom: none; }

.mob-cat-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14.5px;
  color: #1c1f2e;
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
  transition: background .12s;
}
.mob-cat-btn:hover, .mob-cat-btn:active { background: #f5f6fb; }

.mob-cat-lnk {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  font-size: 14.5px;
  color: #1c1f2e;
  font-weight: 500;
  text-decoration: none !important;
  transition: background .12s;
}
.mob-cat-lnk:hover { background: #f5f6fb; color: #223BDD; }

.mob-cat-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  flex-shrink: 0;
  color: #7b818e;
}
.mob-cat-nm { flex: 1; line-height: 1.3; }
.mob-cat-arr { flex-shrink: 0; color: #c0c5d0; }

/* L2 item in mobile (simple link, with L3 sub-arrow) */
.mob-l2-btn {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  color: #1c1f2e;
  cursor: pointer;
  font-weight: 500;
  font-family: inherit;
  border-bottom: 1px solid #f0f2f7;
  transition: background .12s;
}
.mob-l2-btn:hover { background: #f5f6fb; }
.mob-l2-btn-nm { flex: 1; }
.mob-l2-btn-arr { color: #c0c5d0; flex-shrink: 0; }

.mob-l2-lnk {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  color: #1c1f2e;
  font-weight: 500;
  text-decoration: none !important;
  border-bottom: 1px solid #f0f2f7;
  transition: background .12s;
}
.mob-l2-lnk:hover { background: #f5f6fb; color: #223BDD; }

.mob-l3-lnk {
  display: block;
  padding: 11px 16px 11px 20px;
  font-size: 13.5px;
  color: #606470;
  text-decoration: none !important;
  border-bottom: 1px solid #f0f2f7;
  transition: background .12s;
}
.mob-l3-lnk:hover { background: #f5f6fb; color: #223BDD; }

/* ── Responsive: hide mega on mobile, mob-cat only on mobile ─────── */
@media (min-width: 769px) {
  .mob-cat { display: none !important; }
}
@media (max-width: 768px) {
  .mega-cat { display: none !important; }
}

/* ── Mega L3 collapse: "Ещё / Свернуть" ──────────────────────────── */
.mega-l3-more--hidden { display: none; }
.mega-l3-ul.is-expanded .mega-l3-more--hidden { display: list-item; }

.mega-l3-toggle { margin-top: 3px; }
.mega-l3-toggle-a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12.5px;
  color: #223BDD;
  text-decoration: none !important;
  padding: 1px 0;
  font-weight: 500;
  cursor: pointer;
  opacity: .85;
  transition: opacity .1s;
}
.mega-l3-toggle-a:hover { opacity: 1; text-decoration: underline !important; }


/* ═══════════════════════════════════════════════════════════════════
   HOMEPAGE REDESIGN — 3D Cartoon Style
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero: gradient slides ──────────────────────────────────────── */
.hero-slide--1 { background: linear-gradient(135deg, #0F1F8A 0%, #223BDD 55%, #4F6EFF 100%); }
.hero-slide--2 { background: linear-gradient(135deg, #1E3A5F 0%, #1D4ED8 55%, #60A5FA 100%); }
.hero-slide--3 { background: linear-gradient(135deg, #0D1B6E 0%, #3730A3 55%, #818CF8 100%); }
.hero-slide--4 { background: linear-gradient(135deg, #134E4A 0%, #0F766E 55%, #2DD4BF 100%); }

/* Override dark overlay */
.hero-overlay { background: rgba(0,0,0,0) !important; }

/* Split layout: text left, scene right */
.hero-content--split {
  display: flex !important;
  align-items: center !important;
  gap: 24px;
}
.hero-text-side { flex: 1; min-width: 0; }
.hero-scene-side {
  flex: 0 0 auto;
  width: 380px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
  pointer-events: none;
}
.hero-scene-img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.25));
}
@media (max-width: 1023px) {
  .hero-scene-side { width: 280px; }
}
@media (max-width: 767px) {
  .hero-content--split { flex-direction: column; gap: 12px; }
  .hero-scene-side { width: 100%; max-width: 280px; margin: 0 auto; }
  .hero-scene-img { max-height: 200px; }
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 24px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

/* Hero feature icons */
.hero-feature-ico {
  font-size: 14px;
  line-height: 1;
}

/* ── "Почему выбирают" ──────────────────────────────────────────── */
.why-section { background: #fff; }

.why-header {
  text-align: center;
  margin-bottom: 48px;
}
.why-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: 8px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

.why-card {
  background: #F8F9FF;
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  border: 1.5px solid #E0E7FF;
  transition: transform .22s, box-shadow .22s;
}
.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(34,59,221,0.12);
  border-color: #C7D2FE;
}

.why-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  width: 110px;
  height: 110px;
}
.why-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(34,59,221,0.2));
  transition: transform .3s;
}
.why-card:hover .why-card-icon img { transform: scale(1.08) translateY(-4px); }

.why-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1c1f2e;
  margin-bottom: 10px;
}
.why-card-body p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Category 3D Cards ──────────────────────────────────────────── */
.cat3d-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 640px) { .cat3d-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cat3d-grid { grid-template-columns: repeat(4, 1fr); } }

.cat3d-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid #E5E7EB;
  text-decoration: none !important;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.cat3d-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(34,59,221,0.13);
  border-color: #C7D2FE;
}

.cat3d-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  min-height: 120px;
  overflow: hidden;
}
.cat3d-icon {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
  transition: transform .3s;
}
.cat3d-card:hover .cat3d-icon { transform: scale(1.12) translateY(-3px); }

/* Decorative dots in card visual */
.cat3d-dots {
  position: absolute;
  top: 8px;
  right: 10px;
  display: flex;
  gap: 4px;
  opacity: 0.35;
}
.cat3d-dots span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
}

.cat3d-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: #1c1f2e;
}
.cat3d-label svg { color: #9CA3AF; flex-shrink: 0; transition: color .2s; }
.cat3d-card:hover .cat3d-label svg { color: #223BDD; }

/* ═══════════════════════════════════════════════════════════════════
   HOMEPAGE v2 — Light Hero + Banners + Category Images
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero: LIGHT gradient slides (override dark) ────────────────── */
.hero-slide--1 { background: linear-gradient(135deg, #EFF3FF 0%, #E0E7FF 55%, #C7D2FE 100%) !important; }
.hero-slide--2 { background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 55%, #BFDBFE 100%) !important; }
.hero-slide--3 { background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 55%, #DDD6FE 100%) !important; }
.hero-slide--4 { background: linear-gradient(135deg, #F0FDF9 0%, #CCFBF1 55%, #99F6E4 100%) !important; }

/* Hero text — dark on light background */
.hero-title    { color: #1c1f2e !important; }
.hero-subtitle { color: #4B5563 !important; }
.hero-badge {
  background: rgba(34,59,221,0.09) !important;
  border-color: rgba(34,59,221,0.18) !important;
  color: #223BDD !important;
}
.hero-feature {
  color: #374151 !important;
  background: rgba(255,255,255,0.8) !important;
  border-color: rgba(34,59,221,0.12) !important;
}
.hero-scene-img {
  filter: drop-shadow(0 20px 40px rgba(34,59,221,0.18)) !important;
}
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); }
.hero-dot { background: rgba(34,59,221,0.25) !important; }
.hero-dot.active { background: #223BDD !important; }

/* ── cat3d image support ────────────────────────────────────────── */
.cat3d-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.14));
  transition: transform .3s;
}
.cat3d-card:hover .cat3d-img { transform: scale(1.1) translateY(-4px); }

/* cat3d grid: 5 columns on desktop */
@media (min-width: 1024px) { .cat3d-grid { grid-template-columns: repeat(5, 1fr) !important; } }
@media (min-width: 768px) and (max-width: 1023px) { .cat3d-grid { grid-template-columns: repeat(4, 1fr) !important; } }
@media (min-width: 480px) and (max-width: 767px)  { .cat3d-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Banner section ─────────────────────────────────────────────── */
.home-ban-section { padding-top: 0; }

.home-ban-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .home-ban-grid { grid-template-columns: repeat(3, 1fr); }
}

.home-ban {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 20px;
  padding: 28px 24px 24px;
  overflow: hidden;
  position: relative;
  min-height: 168px;
  gap: 12px;
  transition: transform .22s, box-shadow .22s;
}
.home-ban:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
}

.home-ban--blue   { background: linear-gradient(135deg, #1D4ED8 0%, #4F6EFF 100%); }
.home-ban--purple { background: linear-gradient(135deg, #6D28D9 0%, #A855F7 100%); }
.home-ban--teal   { background: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%); }

.home-ban-body { flex: 1; min-width: 0; }

.home-ban-chip {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.95);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.home-ban-title {
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.22;
  margin: 0 0 8px;
}

.home-ban-sub {
  color: rgba(255,255,255,0.82);
  font-size: 12.5px;
  margin: 0 0 16px;
  line-height: 1.5;
}

.home-ban-btn {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9px;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,0.32);
  transition: background .18s, transform .18s;
}
.home-ban-btn:hover {
  background: rgba(255,255,255,0.34);
  color: #fff !important;
  transform: scale(1.03);
}

.home-ban-art {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.home-ban-art img {
  max-width: 145px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.22));
  transition: transform .3s;
}
.home-ban:hover .home-ban-art img { transform: scale(1.06) translateY(-3px); }

/* Mobile: stack banners, hide illustration */
@media (max-width: 479px) {
  .home-ban { flex-direction: column; min-height: auto; padding: 22px 20px; text-align: center; }
  .home-ban-art { display: none; }
  .home-ban-title { font-size: 17px; }
}

/* ═══════════════════════════════════════════════════════════════════
   HOMEPAGE v3 — 3D Cartoon Style (новая главная)
   ═══════════════════════════════════════════════════════════════════ */

/* ── HERO ───────────────────────────────────────────────────────── */
.hm-hero {
  background: linear-gradient(135deg, #F0F4FF 0%, #E8EEFF 50%, #D6E0FF 100%);
  padding: 56px 0 0;
  position: relative;
  overflow: hidden;
}
.hm-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.hm-hero-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 420px;
}
.hm-hero-text {
  flex: 1;
  min-width: 0;
  padding-bottom: 56px;
}
.hm-hero-art {
  flex: 0 0 auto;
  width: 480px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  align-self: flex-end;
}
.hm-hero-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(29,78,216,0.18));
}
.hm-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(99,102,241,0.1);
  border: 1.5px solid rgba(99,102,241,0.2);
  color: #4F46E5;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 24px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
.hm-hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  color: #1c1f2e;
  margin: 0 0 16px;
  letter-spacing: -1px;
}
.hm-hero-sub {
  font-size: 16px;
  color: #4B5563;
  line-height: 1.6;
  margin: 0 0 28px;
}
.hm-hero-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin-bottom: 24px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(29,78,216,0.14);
}
.hm-hero-input {
  flex: 1;
  padding: 14px 18px;
  font-size: 15px;
  border: 2px solid #E0E7FF;
  border-right: none;
  border-radius: 14px 0 0 14px;
  outline: none;
  color: #1c1f2e;
  background: #fff;
  transition: border-color .2s;
}
.hm-hero-input:focus { border-color: #818CF8; }
.hm-hero-input::placeholder { color: #9CA3AF; }
.hm-hero-submit {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  background: #223BDD;
  color: white;
  border: none;
  border-radius: 0 14px 14px 0;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.hm-hero-submit:hover { background: #1D34C4; }
.hm-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hm-chip {
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  background: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(99,102,241,0.15);
  padding: 6px 14px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.hm-hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 0 16px;
}
.hm-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(99,102,241,0.25);
  display: inline-block;
}
.hm-dot--active { background: #4F46E5; width: 24px; border-radius: 4px; }

/* ── WHY SECTION ────────────────────────────────────────────────── */
.hm-why {
  background: #fff;
  padding: 72px 0;
}
.hm-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.hm-why-card {
  background: #FAFBFF;
  border-radius: 24px;
  padding: 36px 28px 32px;
  text-align: center;
  border: 1.5px solid #E8EEFF;
  transition: transform .22s, box-shadow .22s;
}
.hm-why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(99,102,241,0.12);
}
.hm-why-ico {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
}
.hm-why-ico img {
  max-width: 110px;
  max-height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(99,102,241,0.2));
  transition: transform .3s;
}
.hm-why-card:hover .hm-why-ico img { transform: scale(1.08) translateY(-4px); }
.hm-why-title {
  font-size: 18px;
  font-weight: 700;
  color: #1c1f2e;
  margin: 0 0 12px;
}
.hm-why-text {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.65;
  margin: 0;
}

/* ── SECTION HELPERS ────────────────────────────────────────────── */
.hm-section {
  padding: 64px 0;
}
.hm-section--gray {
  background: #F8FAFF;
  padding: 64px 0;
}
.hm-section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.hm-section-hdr--center {
  flex-direction: column;
  text-align: center;
  gap: 8px;
}
.hm-section-title {
  font-size: 28px;
  font-weight: 800;
  color: #1c1f2e;
  margin: 0;
  letter-spacing: -0.5px;
}
.hm-section-sub {
  color: #6B7280;
  font-size: 15px;
  margin: 0;
}
.hm-section-link {
  font-size: 14px;
  font-weight: 600;
  color: #223BDD;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .18s;
}
.hm-section-link:hover { opacity: 0.7; text-decoration: none; }

/* ── CATEGORIES GRID ────────────────────────────────────────────── */
.hm-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 480px)  { .hm-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 768px)  { .hm-cat-grid { grid-template-columns: repeat(5, 1fr); gap: 18px; } }

.hm-cat-card {
  background: #fff;
  border-radius: 20px;
  padding: 22px 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none !important;
  border: 1.5px solid #E8EEFF;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform .22s, box-shadow .22s, border-color .22s;
  cursor: pointer;
}
.hm-cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(34,59,221,0.14);
  border-color: #C7D2FE;
}
.hm-cat-img-wrap {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.hm-cat-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.12));
  transition: transform .28s;
}
.hm-cat-card:hover .hm-cat-img { transform: scale(1.1) translateY(-4px); }
.hm-cat-fallback-ico {
  opacity: 0.5;
}
.hm-cat-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #1c1f2e;
  line-height: 1.3;
}

/* ── BANNER GRID ────────────────────────────────────────────────── */
.hm-ban-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .hm-ban-grid { grid-template-columns: repeat(3, 1fr); }
}
.hm-ban {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 22px;
  padding: 28px 24px 24px;
  overflow: hidden;
  min-height: 172px;
  gap: 12px;
  transition: transform .22s, box-shadow .22s;
}
.hm-ban:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}
.hm-ban--blue   { background: linear-gradient(135deg, #1D4ED8 0%, #4F6EFF 100%); }
.hm-ban--purple { background: linear-gradient(135deg, #6D28D9 0%, #A855F7 100%); }
.hm-ban--teal   { background: linear-gradient(135deg, #0F766E 0%, #14B8A6 100%); }
.hm-ban-body { flex: 1; min-width: 0; }
.hm-ban-chip {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.95);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.hm-ban-title {
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.22;
  margin: 0 0 8px;
}
.hm-ban-sub {
  color: rgba(255,255,255,0.82);
  font-size: 12.5px;
  margin: 0 0 16px;
  line-height: 1.5;
}
.hm-ban-btn {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 9px;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,0.32);
  transition: background .18s;
}
.hm-ban-btn:hover { background: rgba(255,255,255,0.34); }
.hm-ban-art {
  flex: 0 0 auto;
  pointer-events: none;
}
.hm-ban-art img {
  max-width: 145px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.22));
  transition: transform .3s;
}
.hm-ban:hover .hm-ban-art img { transform: scale(1.06) translateY(-3px); }

/* ── RESPONSIVE OVERRIDES ───────────────────────────────────────── */
@media (max-width: 1023px) {
  .hm-hero-art { width: 340px; }
  .hm-hero-title { font-size: 40px; }
}
@media (max-width: 767px) {
  .hm-hero { padding: 36px 0 0; }
  .hm-hero-inner { flex-direction: column; gap: 0; min-height: auto; }
  .hm-hero-text { padding-bottom: 0; }
  .hm-hero-art { width: 100%; max-width: 340px; margin: 16px auto 0; align-self: auto; }
  .hm-hero-img { max-height: 260px; }
  .hm-hero-title { font-size: 32px; }
  .hm-hero-sub { font-size: 14px; }
  .hm-hero-form { max-width: 100%; }
  .hm-why-grid { grid-template-columns: 1fr; gap: 16px; }
  .hm-why-card { padding: 24px 20px; }
  .hm-why-ico { height: 90px; }
  .hm-why-ico img { max-width: 80px; }
  .hm-section-title { font-size: 22px; }
  .hm-ban { flex-direction: column; min-height: auto; padding: 22px 20px; text-align: center; }
  .hm-ban-art { display: none; }
}
@media (max-width: 479px) {
  .hm-hero-title { font-size: 28px; letter-spacing: -0.5px; }
  .hm-hero-chips { gap: 6px; }
  .hm-chip { font-size: 11px; padding: 5px 10px; }
  .hm-cat-img-wrap { width: 76px; height: 76px; }
}


/* ═══════════════════════════════════════════════════════════════════
   SUPPLIER OFFERS TABLE (.so-*)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Переменная сетки — одинакова для .so-head и .so-row ─────────
   Поставщик 30 | Город 22 | Наличие 12 | Мин.заказ 12 | Цена 14 | Кнопка 10
   Колонки без gap — внутренние отступы через padding ячеек       */
:root {
  --so-cols: 30fr 22fr 12fr 12fr 14fr 10fr;
  --so-px:   20px;
  --so-py:   13px;
}

/* Обёртка */
.so-wrap {
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #fff;
}

/* Базовая сетка — одна переменная гарантирует 100% совпадение */
.so-head,
.so-row {
  display: grid;
  grid-template-columns: var(--so-cols);
  align-items: center;
}

/* Заголовок */
.so-head {
  background: #F8FAFF;
  border-bottom: 1.5px solid #E5E7EB;
}
.so-head .so-col {
  padding: 10px var(--so-px);
  font-size: 11px;
  font-weight: 700;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  white-space: nowrap;
}

/* Строка */
.so-row {
  border-bottom: 1px solid #F3F4F6;
  transition: background 0.15s;
  min-height: 60px;
}
.so-row:last-child { border-bottom: none; }
.so-row:hover      { background: rgba(34,59,221,0.025); }
.so-row .so-col    { padding: var(--so-py) var(--so-px); }

/* Выравнивание каждой колонки */
.so-col--vendor   { }
.so-col--location { }
.so-col--stock    { text-align: center; }
.so-col--min      { text-align: center; }
.so-col--price    { text-align: right;  }
.so-col--action   { text-align: right; padding-right: var(--so-px); }

/* Сокращаем левый padding первой колонки, чтобы убрать двойной отступ */
.so-col--vendor   { padding-left: var(--so-px); }

/* Название магазина */
.so-store-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1c1f2e;
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 3px;
  transition: color 0.15s;
}
.so-store-name:hover { color: #223BDD; }

/* Бейдж */
.so-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.so-badge--ok {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #D1FAE5;
}

/* Город */
.so-city {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #4B5563;
}
.so-city svg { color: #9CA3AF; flex-shrink: 0; }

/* Наличие */
.so-stock        { font-size: 13px; font-weight: 600; }
.so-stock--yes   { color: #059669; }
.so-stock--no    { color: #EF4444; }

/* Мин. заказ */
.so-minqty { font-size: 13px; color: #374151; white-space: nowrap; }

/* Цена */
.so-price {
  font-size: 16px;
  font-weight: 800;
  color: #1c1f2e;
  white-space: nowrap;
}

/* Текст-заглушка */
.so-muted { font-size: 13px; color: #9CA3AF; }

/* Кнопка "Выбрать" */
.so-btn {
  display: inline-block;
  background: #223BDD;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.18s, transform 0.12s;
  font-family: inherit;
  line-height: 1.4;
}
.so-btn:hover  { background: #1D34C4; transform: translateY(-1px); color: #fff !important; }
.so-btn:active { transform: translateY(0); }
.so-col--action form { margin: 0; display: flex; justify-content: flex-end; }

/* Пустое состояние */
.so-empty {
  padding: 52px 24px;
  text-align: center;
  color: #9CA3AF;
  border: 1.5px solid #E5E7EB;
  border-radius: 14px;
  margin-bottom: 20px;
  background: #FAFAFA;
}
.so-empty p { margin: 12px 0 0; font-size: 14px; }

/* Баннер авторизации */
.so-auth-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(34,59,221,0.06) 0%, rgba(99,102,241,0.06) 100%);
  border: 1.5px solid rgba(34,59,221,0.12);
  border-radius: 14px;
  padding: 22px 28px;
  margin-top: 16px;
}
.so-auth-title { font-size: 15px; font-weight: 700; color: #1c1f2e; margin: 0 0 5px; }
.so-auth-sub   { font-size: 13px; color: #6B7280; margin: 0; line-height: 1.55; }
.so-auth-btns  { display: flex; gap: 10px; flex-shrink: 0; }

/* ── Mobile (≤ 767px): карточки ─────────────────────────────────── */
@media (max-width: 767px) {
  .so-head { display: none; }

  .so-row {
    display: block;
    padding: 16px;
    border-bottom: 1.5px solid #E5E7EB;
    min-height: auto;
  }

  .so-row .so-col {
    padding: 0;
    text-align: left !important;
  }

  /* Поставщик — верхний блок */
  .so-col--vendor { margin-bottom: 10px; }

  /* Строка деталей: город + наличие */
  .so-col--location,
  .so-col--stock {
    display: inline-block;
    margin-right: 16px;
    margin-bottom: 6px;
  }

  /* Мин.заказ + цена в одной строке */
  .so-col--min,
  .so-col--price {
    display: inline-block;
    margin-right: 16px;
    margin-bottom: 10px;
  }

  /* Метки для мобиля */
  .so-col--location::before { content: 'Город: '; font-size: 10.5px; font-weight: 700; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.4px; display: block; margin-bottom: 2px; }
  .so-col--stock::before    { content: 'Наличие: '; font-size: 10.5px; font-weight: 700; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.4px; display: block; margin-bottom: 2px; }
  .so-col--min::before      { content: 'Мин. заказ: '; font-size: 10.5px; font-weight: 700; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.4px; display: block; margin-bottom: 2px; }
  .so-col--price::before    { content: 'Цена: '; font-size: 10.5px; font-weight: 700; color: #9CA3AF; text-transform: uppercase; letter-spacing: 0.4px; display: block; margin-bottom: 2px; }

  /* Кнопка на всю ширину */
  .so-col--action { display: block; margin-top: 4px; }
  .so-col--action form { justify-content: stretch; }
  .so-btn { width: 100%; text-align: center; padding: 10px; font-size: 14px; }

  .so-auth-banner { flex-direction: column; text-align: center; padding: 18px; }
  .so-auth-btns   { width: 100%; flex-direction: column; }
  .so-auth-btns .btn { text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════════
   PRODUCT PAGE — action buttons (.pd-*)
   ═══════════════════════════════════════════════════════════════════ */

/* Контейнер кнопок */
.pd-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

/* ── Поделиться — синяя основная ─────────────────────────────────── */
.pd-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #223BDD;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  transition: background 0.18s, transform 0.12s;
  white-space: nowrap;
}
.pd-share-btn:hover  { background: #1D34C4; transform: translateY(-1px); }
.pd-share-btn:active { transform: translateY(0); }

/* ── В избранное — ghost, без фона ──────────────────────────────── */
.pd-wish-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1.5px solid #E5E7EB;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  transition: color 0.18s, border-color 0.18s, transform 0.12s;
  white-space: nowrap;
}
.pd-wish-btn:hover {
  color: #223BDD;
  border-color: #C7D2FE;
  transform: translateY(-1px);
}
.pd-wish-btn:active { transform: translateY(0); }

/* Иконка сердца */
.pd-wish-ico {
  transition: stroke 0.18s, fill 0.18s;
  flex-shrink: 0;
}
.pd-wish-btn:hover .pd-wish-ico {
  stroke: #223BDD;
}

/* Активное состояние (добавлено в избранное) */
.pd-wish-btn.is-wishlisted .pd-wish-ico {
  fill: #EF4444;
  stroke: #EF4444;
}
.pd-wish-btn.is-wishlisted { color: #EF4444; border-color: #FCA5A5; }

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 479px) {
  .pd-actions { flex-direction: column; align-items: stretch; }
  .pd-share-btn,
  .pd-wish-btn  { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════
   SHARE TOAST  (fixed, right-bottom, white card)
   ═══════════════════════════════════════════════════════════════════ */
#share-toast {
  position: fixed !important;
  bottom: 24px;
  right: 24px;
  left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #1c1f2e;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.14);
  font-size: 14px;
  font-weight: 500;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
#share-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════════════
   CUSTOM REVIEW SECTION (.rv-*)
   ═══════════════════════════════════════════════════════════════════ */

/* Card wrapper */
.rv-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 24px;
}

/* --- Guest prompt (compact) --- */
.rv-guest-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 4px 0;
}
.rv-guest-icon {
  width: 56px;
  height: 56px;
  background: #eef2ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.rv-guest-title {
  font-size: 17px;
  font-weight: 700;
  color: #1c1f2e;
  margin: 0 0 6px;
}
.rv-guest-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 18px;
  max-width: 300px;
  line-height: 1.5;
}
.rv-guest-btns {
  display: flex;
  gap: 10px;
}

/* --- Info / warning block --- */
.rv-info-block {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 10px;
}
.rv-info-block--info {
  background: #d1ecf1;
  border: 1px solid #bee5eb;
}
.rv-info-block--warning {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
}
.rv-info-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rv-info-block--info .rv-info-icon { background: #17a2b8; color: #fff; }
.rv-info-block--warning .rv-info-icon { background: #ffc107; color: #fff; }
.rv-info-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.rv-info-link {
  font-size: 13px;
  color: #0c5460;
  text-decoration: underline;
}

/* --- Form --- */
.rv-form-title {
  font-size: 17px;
  font-weight: 700;
  color: #1c1f2e;
  margin: 0 0 20px;
}
.rv-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rv-stars-wrap { margin-bottom: 18px; }
.rv-stars label svg { width: 26px !important; height: 26px !important; }
.rv-field-wrap { margin-bottom: 16px; }
.rv-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  resize: vertical;
  min-height: 110px;
  background: #fff;
  transition: border-color 0.18s;
}
.rv-textarea:focus {
  outline: none;
  border-color: #223BDD;
  box-shadow: 0 0 0 3px rgba(34,59,221,0.08);
}
.rv-textarea::placeholder { color: var(--text-muted); }

/* Photo upload button */
.product-review-container .image-upload__uploader.rv-photo-btn {
  width: auto !important;
  height: auto !important;
  flex-direction: row !important;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.product-review-container .image-upload__uploader.rv-photo-btn:hover {
  background: #eef2ff;
  border-color: #223BDD;
}
.image-upload__text.rv-photo-text {
  font-size: 13px !important;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0 !important;
  white-space: nowrap;
}
.rv-photo-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0 0;
}

/* Submit button */
.rv-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #223BDD;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s, transform 0.12s;
  margin-top: 4px;
}
.rv-submit-btn:hover { background: #1D34C4; transform: translateY(-1px); }
.rv-submit-btn:active { transform: translateY(0); }
.rv-submit-btn.loading { opacity: 0.6; pointer-events: none; }

/* Review list */
.rv-list-title {
  font-size: 16px;
  font-weight: 700;
  color: #1c1f2e;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--border);
}

/* Empty state (compact) */
.rv-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  background: #FAFAFA;
}
.rv-empty-icon { margin-bottom: 12px; }
.rv-empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #1c1f2e;
  margin: 0 0 6px;
}
.rv-empty-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Mobile */
@media (max-width: 600px) {
  .rv-card { padding: 16px; }
  .rv-guest-btns { flex-direction: column; width: 100%; }
  .rv-guest-btns .btn { justify-content: center; }
  #share-toast { right: 12px; bottom: 16px; left: 12px; }
}
