:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --primary: #e8453c;
  --primary-soft: #feeceb;
  --text: #1e2022;
  --text-muted: #68707a;
  --text-faint: #9aa2a9;
  --border: #eaecef;
  --star: #f5a623;
  --success: #22c55e;
  --banner-muted: #d1d5db;
  --radius: 16px;
  --header-h: 72px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, sans-serif;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(var(--nav-h) + 16px);
}

.header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 16px 14px;
}
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.brand-title {
  display: grid;
  gap: 1px;
  font-family: Gabarito, Manrope, sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.15;
}
.brand-title-line {
  display: block;
}
.brand-title-sub {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}
.site-footer .brand-title-sub { color: rgba(255,255,255,.72); }
.header-links {
  display: none;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}
.header-links a.active,
.header-links a:hover { color: var(--primary); }
.search-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.search-input {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid transparent;
}
.search-input input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
  color: var(--text);
}
.filter-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  display: grid;
  place-items: center;
  color: var(--text);
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}
.main { flex: 1; }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
}
.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.sort-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 4px;
}
.sort-bar__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}
.sort-bar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 168px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: #111317 center/cover no-repeat;
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,19,23,.4), rgba(17,19,23,.93));
}
.banner > * { position: relative; z-index: 1; }
.badge {
  align-self: flex-start;
  background: var(--primary);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.banner h1 {
  margin: 18px 0 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}
.banner p {
  margin: 4px 0 0;
  color: var(--banner-muted);
  font-size: 13px;
}

.section { padding: 22px 0 8px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}
.link { color: var(--primary); font-weight: 700; font-size: 14px; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}
.grid-home,
.grid-suppliers {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-home .card-image,
.grid-suppliers .card-image {
  height: 132px;
}
.grid-home .card-body,
.grid-suppliers .card-body {
  padding: 10px;
}
.grid-home .card-name,
.grid-suppliers .card-name {
  font-size: 13px;
}
.grid-home .kicker,
.grid-suppliers .kicker {
  font-size: 10px;
}
.grid-home .btn-soft,
.grid-suppliers .btn-soft {
  margin: auto 8px 8px;
  height: 32px;
  font-size: 12px;
}
.load-more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  padding-bottom: 8px;
}
.load-more-btn {
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.load-more-btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}
.load-more-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(224, 49, 49, 0.25);
  border-top-color: var(--primary, #e03131);
  border-radius: 50%;
  animation: load-more-spin 0.7s linear infinite;
}
.list-heading {
  margin: 4px 0 12px;
  font-size: 16px;
  font-family: 'Manrope_700Bold', sans-serif;
  color: var(--text);
}
@keyframes load-more-spin {
  to { transform: rotate(360deg); }
}
.grid > .card {
  height: 100%;
}
.grid .card-body {
  flex: 1;
}
.grid .card-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-image {
  position: relative;
  height: 168px;
  background: #eceff3;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.loc-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,0,0,.8);
  color: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}
.card-body { padding: 12px; display: grid; gap: 6px; }
.kicker {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.card-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}
.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  font-family: Gabarito, Manrope, sans-serif;
}
.muted { color: var(--text-muted); font-weight: 400; font-size: 12px; }
.btn-soft {
  margin: auto 12px 12px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.new-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.new-list::-webkit-scrollbar { display: none; }
.new-card {
  min-width: 280px;
  height: 88px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.new-card img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}
.new-card .kicker { color: var(--primary); }

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--nav-h);
  background: var(--card);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 50;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}
.bottom-nav a.active { color: var(--primary); }

.page-head {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 18px 0 16px;
}
.page-head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}
.page-head p { margin: 6px 0 0; color: var(--text-muted); font-size: 14px; }

.supplier-head {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.supplier-head .profile {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
}
.supplier-title {
  margin: 0;
  font-size: 22px;
}
.supplier-head .logo-lg {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--border);
  object-fit: cover;
  background: var(--card);
  flex-shrink: 0;
}
.hero {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.cover { width: 100%; height: 160px; object-fit: cover; }
.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 16px;
}
.logo-lg {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  border: 2px solid var(--border);
  object-fit: cover;
  background: var(--card);
}
.meta-card, .block {
  background: var(--card);
  margin-top: 16px;
  padding: 16px;
  border-radius: 0;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.hr { height: 1px; background: var(--border); margin: 10px 0; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.stat b { display: block; font-size: 14px; }
.stat span { color: var(--text-muted); font-size: 11px; }

.promo {
  border-radius: 12px;
  padding: 16px;
  color: #fff;
  margin-top: 10px;
}
.promo h3 { margin: 0; font-size: 16px; }
.promo p { margin: 6px 0 0; opacity: .85; font-size: 12px; }

.product-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.product-row img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}
.price { color: var(--primary); font-weight: 700; font-size: 15px; }
.old { color: var(--text-faint); text-decoration: line-through; font-size: 12px; margin-left: 6px; }

.review {
  background: var(--bg);
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
}
.review-head { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; }
.stars { color: var(--star); letter-spacing: 1px; font-size: 12px; }

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.product-card img { width: 100%; height: 140px; object-fit: cover; }
.product-card .info { padding: 10px 12px 12px; display: grid; gap: 4px; }
.product-card h3 { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.3; }

.gallery {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.gallery img { width: 100%; height: 320px; object-fit: cover; }
.product-page { padding-top: 16px; padding-bottom: 32px; }
.product-layout {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}
.product-media { display: grid; gap: 12px; }
.product-gallery img { height: 420px; object-fit: cover; background: #eceff3; }
.product-thumbs { margin-top: 0; }
.product-info { margin: 0; }
.product-info-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.product-info-top .section-title { margin-top: 4px; }
.product-supplier-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  background: #fff;
}
.product-supplier-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info .section-title { margin-top: 4px; }
.product-description { margin-top: 12px; line-height: 1.6; }
.product-supplier { margin-top: 16px; margin-bottom: 0; }
.product-vk { margin: 8px 0 0; }
.specs { display: grid; gap: 8px; margin-top: 12px; }
.spec {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #fff;
}
.swatch img { width: 100%; height: 100%; object-fit: cover; }

.catalog-grid {
  display: grid;
  gap: 12px;
}
.catalog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
.catalog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: inherit;
  border-radius: 10px;
  margin: -4px -4px 0;
  padding: 4px 4px 0;
  transition: background .15s;
}
.catalog-row:hover { background: var(--bg); }
.catalog-row:hover .catalog-arrow {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.catalog-left { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.catalog-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #f3c4c1;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.catalog-row:hover .catalog-arrow { transform: translateX(2px); }
.catalog-arrow svg { display: block; }
.emoji { font-size: 22px; }
.children { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.child {
  background: var(--bg);
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

.map-stub {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 20px;
  text-align: center;
  margin-top: 24px;
}
.map-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.map-stub h1 { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.map-stub p { margin: 0 auto; max-width: 460px; color: var(--text-muted); line-height: 1.6; }

.privacy {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0 32px;
  white-space: pre-wrap;
  line-height: 1.65;
  color: var(--text-muted);
  font-size: 14px;
}

.empty {
  text-align: center;
  padding: 64px 16px;
  color: var(--text-muted);
}
.empty h2 { color: var(--text); margin: 8px 0 4px; }

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 24px 0 8px;
}
.pagination a, .pagination span {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 14px;
}
.pagination .active span,
.pagination [aria-current="page"] span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.footer-note {
  text-align: center;
  padding: 8px 0 20px;
  font-size: 13px;
  font-weight: 700;
}
.footer-note a { color: var(--primary); }

.header-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-auth form { margin: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  border: 0;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  background: var(--bg);
  color: var(--text);
}
.btn-sm { height: 36px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-rustore {
  background: #0077ff;
  color: #fff;
  border: 0;
  white-space: nowrap;
}
.btn-rustore:hover { opacity: .92; }
.btn-outline { background: #fff; border: 1px solid var(--border); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-light { background: #fff; color: var(--primary); }
.btn-outline-light { background: transparent; border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; }
.btn-danger { background: #feeceb; color: var(--primary); }
.btn:hover { opacity: .92; }

.flash-wrap { padding-top: 14px; }
.flash {
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.flash-success { background: #ecfdf3; color: #166534; }
.flash-error { background: #feeceb; color: var(--primary); }

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.success-modal__inner {
  width: min(100%, 520px);
  text-align: center;
}
.success-modal__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #ecfdf3;
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 800;
}
.success-modal__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 40px);
  line-height: 1.15;
}
.success-modal__text {
  margin: 0 auto 28px;
  max-width: 420px;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.55;
}
.success-modal__actions {
  display: flex;
  justify-content: center;
}
.success-modal__actions .btn {
  min-width: 180px;
  min-height: 48px;
}

.home-coop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
}
.home-coop b { display: block; font-size: 15px; }
.home-coop span { color: var(--text-muted); font-size: 13px; font-weight: 600; }

.partners-section { margin-top: 8px; }
.mailru-ad-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.mailru-ad-section .hp-ad-badge {
  position: static;
  align-self: flex-start;
}
.mailru-ad-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 12px;
}
.hp-ad-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.hp-ad-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.hp-ad-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}
.hp-ad-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hp-ad-card-body {
  display: grid;
  gap: 8px;
  padding: 16px;
}
.hp-ad-card-body strong {
  font-size: 18px;
  font-family: Gabarito, Manrope, sans-serif;
}
.hp-ad-card-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}
.hp-ad-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
}
.hp-ad-card-btn:hover { opacity: .92; }
.hp-ad-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .62);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  pointer-events: none;
}

.coop-hero {
  background: linear-gradient(160deg, #e8453c 0%, #c9342c 55%, #1e2022 140%);
  color: #fff;
  padding: 36px 0 40px;
}
.coop-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}
.coop-hero h1 {
  margin: 0;
  font-family: Gabarito, Manrope, sans-serif;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;
  max-width: 16ch;
}
.coop-lead {
  margin: 14px 0 0;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.5;
  opacity: .92;
}
.coop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.coop-page { padding: 8px 16px 40px; }
.coop-title {
  margin: 28px 0 14px;
  font-size: 22px;
  font-weight: 800;
}
.coop-cabinet-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-top: 20px;
}
.coop-cabinet-cta h2 { margin: 0 0 6px; font-size: 18px; }
.coop-cabinet-cta p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.coop-offers {
  display: grid;
  gap: 12px;
}
.coop-offer {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}
.coop-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 10px;
}
.coop-offer h3 { margin: 0 0 8px; font-size: 17px; }
.coop-offer p { margin: 0; color: var(--text-muted); line-height: 1.55; font-size: 14px; }
.coop-audience {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px 18px 18px;
  margin-top: 8px;
}
.coop-audience p { margin: 0; color: var(--text-muted); line-height: 1.6; }
.coop-prices {
  display: grid;
  gap: 12px;
}
.coop-price {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 12px;
}
.coop-price-top { display: flex; align-items: center; gap: 10px; }
.coop-sum {
  font-family: Gabarito, Manrope, sans-serif;
  font-size: 28px;
  font-weight: 800;
}
.coop-discount {
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 800;
}
.coop-price p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.5; }

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin: 16px 0 32px;
}
.form-grid {
  display: grid;
  gap: 14px;
}
.form-stack { display: grid; gap: 14px; margin: 18px 0; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-muted); }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  outline: none;
}
.field input[type="checkbox"], .field input[type="radio"] {
  width: auto;
  margin: 0;
  flex-shrink: 0;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:not([type="checkbox"]):not([type="radio"]):focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  background: #fff;
}
.field em { color: var(--primary); font-style: normal; font-size: 12px; }
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.check input[type="checkbox"],
.check input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 8px;
}
.check-grid .check {
  min-width: 0;
  margin: 0;
}
.form-preview {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.auth-card {
  max-width: 420px;
  margin: 24px auto 40px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 20px;
}
.auth-wide { max-width: 720px; }
.auth-card h1 { margin: 0 0 6px; font-size: 24px; }

.cabinet-wrap { padding-top: 8px; padding-bottom: 32px; }
.cabinet-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
}
.cabinet-nav a {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.cabinet-nav a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.cabinet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 16px;
}
.cabinet-head h1 { margin: 0; font-size: 22px; }
.cabinet-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cabinet-preview {
  display: flex;
  gap: 12px;
  align-items: center;
}
.cabinet-preview img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
}
.cabinet-product {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cabinet-product img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}
.cabinet-product-body { flex: 1; min-width: 0; }
.cabinet-product-actions { display: flex; flex-direction: column; gap: 6px; }
.cabinet-product-actions form { margin: 0; }

@media (min-width: 768px) {
  .coop-hero { padding: 56px 0 60px; }
  .coop-hero h1 { font-size: 48px; }
  .coop-offers, .coop-prices { grid-template-columns: repeat(2, 1fr); }
  .hp-ad-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .check-grid { grid-template-columns: repeat(3, 1fr); }
  .cabinet-product-actions { flex-direction: row; }
}

@media (min-width: 1024px) {
  .header-links { gap: 14px; }
  .coop-offers { grid-template-columns: repeat(4, 1fr); }
  .coop-prices { grid-template-columns: repeat(4, 1fr); }
}

.list {
  display: grid;
  gap: 10px;
}
.list-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.list-item > div { min-width: 0; }
.list-item .card-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-item img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .page { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .header-links { display: flex; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .new-list { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; }
  .new-card { min-width: 0; width: auto; height: 108px; }
  .new-card img { width: 88px; height: 88px; }
  .banner { min-height: 220px; }
  .banner h1 { font-size: 28px; }
  .cover { height: 240px; }
  .meta-card, .block { border-radius: 16px; border: 1px solid var(--border); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
}

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .grid-home { grid-template-columns: repeat(5, 1fr); }
  .grid-suppliers { grid-template-columns: repeat(5, 1fr); }
  .product-grid { grid-template-columns: repeat(5, 1fr); }
  .list { grid-template-columns: repeat(3, 1fr); }
  .new-list { grid-template-columns: repeat(3, 1fr); }
}

.site-footer {
  background: #1e2022;
  color: #fff;
  margin-top: 24px;
  padding: 32px 0 28px;
}
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.site-footer .brand-title { color: #fff; max-width: none; }
.footer-top {
  display: grid;
  gap: 24px;
}
.footer-brand-block { display: grid; gap: 12px; }
.footer-address {
  margin: 0;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}
.footer-cta { display: grid; gap: 8px; }
.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
}
.footer-btn:hover { background: var(--primary); }
.footer-btn-rustore {
  background: #0077ff;
  width: fit-content;
}
.footer-btn-rustore:hover { background: #0066dd; }
.footer-social-col { display: grid; gap: 12px; align-content: start; }
.footer-social { display: flex; gap: 8px; }
.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  color: #fff !important;
}
.footer-social-link:hover { background: var(--primary); }
.footer-callback { width: fit-content; }
.footer-contacts { display: grid; gap: 14px; }
.footer-contact {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255,255,255,.65);
}
.footer-contact svg { flex-shrink: 0; margin-top: 2px; }
.footer-contact span { display: block; font-size: 12px; font-weight: 600; }
.footer-contact b { display: block; color: #fff; font-size: 16px; margin: 2px 0; }
.footer-contact a { color: #fff; }
.footer-menus {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-menu { display: grid; gap: 8px; align-content: start; }
.footer-menu--objects { width: 100%; }
.footer-menu-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}
@media (min-width: 768px) {
  .footer-menu-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .footer-menu-links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.footer-menu a,
.footer-menu span { font-size: 13px; font-weight: 600; }
.footer-menu span { color: rgba(255,255,255,.55); }
.footer-menu-title {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 4px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.55);
}
.footer-bottom-links { display: flex; gap: 16px; flex-wrap: wrap; }
.object-grid {
  display: grid;
  gap: 12px;
}
.object-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  align-content: start;
}
.object-card-image {
  height: 168px;
  background: #eceff3;
}
.object-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.object-card-body {
  padding: 16px 18px 18px;
  display: grid;
  gap: 8px;
}
.object-card h2 { margin: 0; font-size: 18px; }
.object-card p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.object-card span { color: var(--primary); font-size: 13px; font-weight: 800; }
.object-page { padding-top: 16px; padding-bottom: 32px; }
.object-hero {
  border-radius: 16px;
  overflow: hidden;
  height: 220px;
  background: #eceff3;
  margin-bottom: 16px;
}
.object-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.object-about {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
}
.object-about p { margin: 0 0 12px; color: var(--text-muted); font-size: 15px; line-height: 1.65; }
.object-about p:last-child { margin-bottom: 0; }
.object-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.object-gallery img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}
.object-yandex {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 16px 12px;
  margin-bottom: 16px;
}
.object-yandex h2 { margin: 0 0 12px; font-size: 18px; }
.object-yandex iframe {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 12px;
}
.floor-map {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}
.floor-map.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 90;
  border-radius: 0;
  margin: 0;
  background: #fff;
}
.floor-map__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.floor-map__head h2 { margin: 0; font-size: 18px; }
.floor-map__tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.floor-map__tabs button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.floor-map__tabs button.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.floor-map__layout {
  display: grid;
}
.floor-map__sidebar {
  border-bottom: 1px solid var(--border);
  max-height: 220px;
  overflow: auto;
}
.floor-map__filter {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  font: inherit;
}
.floor-map__group { padding: 6px 8px 10px; }
.floor-map__group-title,
.floor-map__item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.floor-map__group-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: 8px 8px 4px;
}
.floor-map__item {
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.floor-map__item:hover { background: var(--primary-soft); color: var(--primary); }
.floor-map__spot + .floor-map__spot { margin-top: 2px; }
.floor-map__spot-suppliers {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px 6px 14px;
}
.floor-map__spot-supplier {
  display: block;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}
.floor-map__spot-supplier:hover { color: var(--primary); }
.floor-map__spot-supplier--all { font-weight: 800; color: var(--primary); }
.floor-map__main { min-width: 0; }
.floor-map__toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.floor-map__toolbar button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 4px 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.floor-map__zoom-value { font-size: 12px; font-weight: 800; color: var(--text-muted); min-width: 42px; }
.floor-map__viewport {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: #eef1f4;
  cursor: grab;
  touch-action: none;
}
.floor-map.is-fullscreen .floor-map__viewport { height: calc(100vh - 130px); }
.floor-map__stage {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.floor-map__image,
.floor-map__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.floor-map__image { object-fit: fill; user-select: none; pointer-events: none; }
.floor-map__svg { overflow: visible; }
.floor-map__svg polygon,
.floor-map__svg rect {
  fill: rgba(232, 69, 60, 0);
  stroke: transparent;
  stroke-width: 0.08;
  cursor: pointer;
}
.floor-map__svg polygon:hover,
.floor-map__svg rect:hover {
  fill: rgba(232, 69, 60, .28);
  stroke: #e8453c;
}
.floor-map__svg .has-suppliers {
  fill: rgba(34, 197, 94, .18);
  stroke: rgba(22, 163, 74, .45);
}
.floor-map__svg .has-suppliers:hover,
.floor-map__svg .has-suppliers.is-active {
  fill: rgba(34, 197, 94, .4);
  stroke: #16a34a;
}
.floor-map__svg .is-active {
  fill: rgba(232, 69, 60, .4);
  stroke: #e8453c;
}
.floor-map__item.has-suppliers { color: #15803d; }
.floor-map__tooltip {
  position: absolute;
  z-index: 3;
  min-width: 160px;
  max-width: 280px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.floor-map__tooltip-title { font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.floor-map__tooltip-suppliers {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 160px;
  overflow: auto;
  margin-bottom: 8px;
}
.floor-map__tooltip-supplier {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  background: var(--bg);
  font-size: 13px;
  line-height: 1.35;
  transition: background .15s, color .15s;
}
.floor-map__tooltip-supplier:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.floor-map__tooltip-supplier-name {
  display: block;
  font-weight: 700;
}
.floor-map__tooltip-supplier-cat {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted);
}
.floor-map__tooltip-supplier:hover .floor-map__tooltip-supplier-cat { color: inherit; opacity: .85; }
.floor-map__tooltip-more {
  font-size: 12px;
  color: var(--text-muted);
  padding: 2px 8px 0;
}
.floor-map__tooltip-link { font-size: 13px; font-weight: 700; color: var(--primary); }

@media (min-width: 900px) {
  .floor-map__layout { grid-template-columns: 240px 1fr; }
  .floor-map__sidebar {
    border-bottom: 0;
    border-right: 1px solid var(--border);
    max-height: none;
    height: 480px;
  }
  .floor-map.is-fullscreen .floor-map__sidebar { height: calc(100vh - 58px); }
  .floor-map__viewport { height: 480px; }
}

@media (min-width: 768px) {
  .footer-top { grid-template-columns: 1.2fr 1fr; }
  .footer-menus { grid-template-columns: 1fr; }
  .object-grid { grid-template-columns: repeat(2, 1fr); }
  .object-hero { height: 280px; }
  .object-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-top { grid-template-columns: 1.3fr .9fr .9fr 1.1fr; }
  .object-grid { grid-template-columns: repeat(3, 1fr); }
}

.admin-table-wrap { overflow-x: auto; margin-bottom: 20px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.admin-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-ok { background: #dcfce7; color: #15803d; }
.badge-muted { background: #f3f4f6; color: #6b7280; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form-select { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; background: #fff; }

.error-page {
  padding: 24px 0 48px;
}
.error-page__card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 36px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: 0 12px 40px rgba(30, 32, 34, .06);
  overflow: hidden;
}
.error-page__visual {
  position: relative;
  height: 180px;
  margin-bottom: 8px;
  display: grid;
  place-items: center;
}
.error-page__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
}
.error-page__blob--1 {
  width: 220px;
  height: 220px;
  top: -40px;
  left: 50%;
  transform: translateX(-60%);
  background: radial-gradient(circle, rgba(232, 69, 60, .14) 0%, rgba(232, 69, 60, 0) 70%);
}
.error-page__blob--2 {
  width: 160px;
  height: 160px;
  top: 20px;
  left: 50%;
  transform: translateX(-20%);
  background: radial-gradient(circle, rgba(30, 32, 34, .06) 0%, rgba(30, 32, 34, 0) 70%);
}
.error-page__code {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  font-family: Gabarito, Manrope, sans-serif;
  font-weight: 900;
  font-size: clamp(96px, 22vw, 140px);
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(160deg, #e8453c 0%, #c9342c 45%, #1e2022 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .22;
  user-select: none;
  pointer-events: none;
}
.error-page__icon {
  position: relative;
  z-index: 1;
  animation: error-float 4s ease-in-out infinite;
}
@keyframes error-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.error-page__title {
  margin: 0 0 10px;
  font-family: Gabarito, Manrope, sans-serif;
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.15;
}
.error-page__text {
  margin: 0 auto 24px;
  max-width: 420px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}
.error-page__search {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.error-page__search .search-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
}
.error-page__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.error-page__actions .btn {
  min-width: 148px;
}
.error-page__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.error-page__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  transition: border-color .15s, background .15s, color .15s;
}
.error-page__link:hover {
  border-color: var(--primary-soft);
  background: var(--primary-soft);
  color: var(--primary);
}
.error-page__link-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--primary);
  flex-shrink: 0;
}
@media (min-width: 560px) {
  .error-page__card { padding: 48px 40px 40px; }
  .error-page__links { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .error-page__link {
    flex-direction: column;
    text-align: center;
    padding: 14px 10px;
    font-size: 13px;
  }
}

/* Mobile refinements */
@media (max-width: 767px) {
  body:not(.admin-page) .header-auth .btn-primary[href*="cooperation"] {
    display: none;
  }
  .brand-title {
    font-size: 14px;
  }
  .brand-title-sub {
    font-size: 11px;
  }
  .header-auth .btn-sm {
    padding: 0 10px;
    font-size: 12px;
  }
  .header-auth .btn-rustore span {
    display: none;
  }
  .header-auth .btn-rustore {
    padding: 0 10px;
  }

  .home-coop,
  .coop-cabinet-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .home-coop .link,
  .coop-cabinet-cta .btn {
    align-self: flex-start;
  }

  .supplier-head .profile {
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
  }
  .supplier-head .logo-lg {
    width: 96px;
    height: 96px;
  }
  .supplier-title {
    font-size: 20px;
    white-space: normal;
  }

  .cabinet-head {
    flex-direction: column;
    align-items: stretch;
  }
  .cabinet-head .btn {
    width: 100%;
  }
  .cabinet-product {
    flex-wrap: wrap;
  }
  .cabinet-product-actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .product-gallery img,
  .gallery img {
    height: min(56vw, 320px);
  }
  .product-info-top {
    flex-direction: column;
  }
  .product-supplier-avatar {
    align-self: flex-start;
  }
  .spec b {
    text-align: right;
    word-break: break-word;
  }

  .floor-map__viewport {
    height: min(52vw, 360px);
  }
  .object-yandex iframe {
    height: 260px;
  }

  .error-page__search {
    flex-direction: column;
  }
  .error-page__search .btn {
    width: 100%;
  }
  .error-page__actions .btn {
    min-width: 0;
    flex: 1 1 calc(50% - 5px);
  }

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

  .product-card h3 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .page-head h1,
  .meta-row {
    word-break: break-word;
  }

  .coop-hero h1 {
    max-width: none;
  }

  .bottom-nav {
    padding-bottom: env(safe-area-inset-bottom, 0);
    height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0));
  }
  body:not(.admin-page) .page {
    padding-bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom, 0));
  }
}

/* Admin on mobile */
@media (max-width: 767px) {
  .admin-page .page {
    padding-bottom: 0;
  }
  .admin-page .top-nav {
    flex-wrap: wrap;
  }
  .admin-page .header-links {
    display: flex;
    order: 3;
    width: 100%;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    padding-top: 4px;
  }
  .admin-page .brand-title {
    max-width: none;
    font-size: 15px;
  }
  .admin-table {
    font-size: 13px;
  }
  .admin-table th,
  .admin-table td {
    padding: 8px 10px;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .grid-home,
  .grid-suppliers {
    grid-template-columns: repeat(3, 1fr);
  }
  .list {
    grid-template-columns: repeat(2, 1fr);
  }
}
