/* himiasale Full Frontend — Дизайн-система (Manrope, #0c73fe) */

/* Импорт шрифта Manrope */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

:root {
  /* Цвета */
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1a1d26;
  --muted: #5c6370;
  --border: #e2e5ea;
  --accent: #0c73fe;
  --accent-hover: #095fc7;
  --accent-rgb: 12, 115, 254;
  --success: #19b06e;
  --error: #e53e3e;
  --warning: #f6ad55;

  /* Сетка и отступы */
  --container: 1320px;
  --gap: 1rem;
  --radius-lg: 12px;
  --radius-sm: 8px;

  /* Тени */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body.site {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Блокировка фона при открытой модалке (устраняет сдвиг страницы на iOS) */
body.site.site-modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

/* Типографика */
h1, h2, h3, h4 {
  margin-top: 0;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
}

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

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

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

.btn-outline:hover {
  background: rgba(var(--accent-rgb), 0.08);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Лейаут */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--accent);
  border-bottom: none;
  box-shadow: none;
  padding: 0.75rem 0;
}

.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

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

.search-compact input {
  width: 100%;
  padding: 0.65rem 1rem;
  padding-right: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg);
}

.search-compact button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav a {
  color: var(--text);
}

.nav a:hover {
  color: var(--accent);
}

.contacts-top {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.9rem;
}

/* Шапка: тот же брендовый #0c73fe и светлая типографика на всех страницах */
.hdr .logo {
  color: #fff;
  flex-shrink: 0;
}

.hdr .nav a {
  color: rgba(255, 255, 255, 0.92);
}

.hdr .nav a:hover {
  color: #fff;
}

.hdr .search-compact input {
  background: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hdr .search-compact button {
  background: #fff;
  color: var(--accent);
}

.hdr .search-compact button:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-hover);
}

.hdr .btn-outline {
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
}

.hdr .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.site-home main {
  padding-top: 0;
}

.phone-top {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

/* Карточки */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

/* Футер */
.ftr {
  margin-top: 4rem;
  padding: 4rem 0 2rem;
  background: var(--accent);
  border-top: none;
  color: #fff;
}

.ftr a {
  color: rgba(255, 255, 255, 0.95);
}

.ftr a:hover {
  color: #fff;
}

.ftr .logo {
  color: #fff;
}

.ftr .meta {
  color: rgba(255, 255, 255, 0.78);
}

.ftr .btn-outline {
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
}

.ftr .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.ftr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.ftr-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ftr-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ftr-list li {
  margin-bottom: 0.75rem;
}

.ftr-list a {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.ftr-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.78);
}

/* Специфичные стили для страниц */
.stale {
  margin: 0;
  padding: 0.5rem 0;
  background: #fff8e6;
  color: #6a5a20;
  font-size: 0.9rem;
  border-bottom: 1px solid #f6e0a4;
}

main { padding: 2.5rem 0; }

.hero {
  padding: 5rem 0;
  text-align: center;
  margin-bottom: 3rem;
}

.site-home .hero {
  background: var(--accent);
  color: #fff;
  border-bottom: none;
  margin-top: 0;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.site-home .hero h1 {
  color: #fff;
}

.hero .search-large {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero .search-large input {
  width: 100%;
  padding: 1.5rem 2rem;
  font-size: 1.25rem;
  border: none;
  font-family: inherit;
}

.hero .search-large button {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.85rem 2rem;
  font-size: 1.1rem;
}

.hero .tags {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-home .hero .tag {
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  font-size: 0.9rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.site-home .hero .tag:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.tag {
  padding: 0.4rem 0.85rem;
  background: var(--bg);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--muted);
  border: 1px solid var(--border);
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
}

.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card .img-wrap {
  aspect-ratio: 1;
  background: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.product-card img {
  max-width: 80%;
  height: auto;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  flex-grow: 1;
}

.product-card .price {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.meta { color: var(--muted); font-size: 0.95rem; }

/* PDP Стили */
.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.pdp-gallery {
  position: sticky;
  top: 6rem;
}

.pdp-gallery .main-img {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

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

.pdp-info h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.pdp-price-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pdp-price-box .price-label {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.pdp-price-box .price-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  overflow-wrap: anywhere;
}

.pdp-delivery {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.pdp-delivery-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pdp-tabs {
  margin-top: 4rem;
}

.tabs-nav {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.tab-link {
  padding: 1rem 0;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.tab-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
}

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

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

.specs-table td {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.specs-table td:first-child {
  color: var(--muted);
  width: 30%;
}

.specs-table td:last-child {
  font-weight: 500;
}

/* Таблица упаковки на PDP */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.table-wrap .cat {
  width: 100%;
  min-width: min(100%, 20rem);
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-wrap .cat th,
.table-wrap .cat td {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.table-wrap .cat .num {
  text-align: right;
  white-space: nowrap;
}

.pdp-info {
  min-width: 0;
}

.pdp-info .meta {
  overflow-wrap: anywhere;
}

.catalog-item .title,
.product-card h3,
.pdp-info h1 {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-item .info {
  min-width: 0;
}

.contact-item .value {
  overflow-wrap: anywhere;
}

/* Формы заявки */
.order-form-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 3rem;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-label-with-help {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.form-label-with-help > label {
  display: inline;
  margin-bottom: 0;
}

.form-label-cluster {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-label-cluster label {
  display: inline;
  margin: 0;
  font-weight: 600;
  font-size: inherit;
  cursor: pointer;
}

.form-label-cluster-sep {
  color: var(--muted);
  font-weight: 500;
  user-select: none;
}

.form-group-quantity-unit {
  margin-bottom: 1.5rem;
}

.form-row-quantity-unit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.form-row-quantity-unit-title {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.form-row-quantity-unit .form-group-quantity-unit-field {
  margin-bottom: 0;
}

.form-checkbox-with-help {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.form-checkbox-with-help > label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
  min-width: min(100%, 14rem);
  line-height: 1.35;
}

.form-checkbox-with-help > label input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.form-checkbox-with-help .form-field-help {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.form-field-help {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.form-field-help-trigger {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: var(--bg);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: help;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.form-field-help-trigger:hover,
.form-field-help-trigger:focus-visible {
  outline: none;
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

.form-field-help-tip {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  z-index: 30;
  left: 0;
  /* Небольшое перекрытие с кнопкой, чтобы курсор не «терял» hover в зазоре */
  top: calc(100% - 4px);
  width: max-content;
  max-width: min(22rem, calc(100vw - 2rem));
  padding: calc(0.85rem + 4px) 1rem 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow-md);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--text);
  text-align: left;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.form-field-help-tip p {
  margin: 0 0 0.65rem 0;
}

.form-field-help-tip p:last-child {
  margin-bottom: 0;
}

.form-field-help:hover .form-field-help-tip,
.form-field-help:focus-within .form-field-help-tip {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.18);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-steps {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

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

.step-indicator.active {
  background: var(--accent);
}

/* Модальное окно контактов */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  box-sizing: border-box;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: max(0.75rem, env(safe-area-inset-top, 0px))
    max(0.75rem, env(safe-area-inset-right, 0px))
    max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-left, 0px));
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--card);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-sizing: border-box;
  max-width: min(500px, 100%);
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
  max-height: calc(100vh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 2rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-close {
  position: sticky;
  float: right;
  top: 0;
  z-index: 3;
  margin: 0 0 0.35rem 0.75rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  background: var(--card);
}

.modal-close:hover {
  color: var(--text);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.contact-item:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
}

.contact-item .icon {
  width: 40px;
  height: 40px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-item .info {
  display: flex;
  flex-direction: column;
}

.contact-item .label {
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-item .value {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

/* Catalog Стили */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
}

.catalog-sidebar h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.filter-group {
  margin-bottom: 2.5rem;
}

.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-list li {
  margin-bottom: 0.75rem;
}

.filter-list a {
  color: var(--text);
  font-size: 0.95rem;
}

.filter-list a:hover {
  color: var(--accent);
}

.catalog-price-filter .form-control {
  background: #fff;
  color: var(--text);
}

.catalog-price-filter .btn-price-filter {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}

.catalog-price-filter .btn-price-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.catalog-main h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.catalog-sort-form {
  display: inline;
}

.catalog-sort-select.form-control {
  display: inline-block;
  width: auto;
  max-width: min(22rem, 100%);
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
}

.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.catalog-item {
  display: grid;
  grid-template-columns: 100px 1fr 150px 150px;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.catalog-item > div:nth-child(2) {
  min-width: 0;
}

.catalog-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.catalog-item .img-wrap {
  aspect-ratio: 1;
  background: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.catalog-item img {
  max-width: 70%;
  height: auto;
}

.catalog-item .title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.catalog-item .price {
  font-weight: 700;
  font-size: 1.1rem;
  text-align: right;
}

.pager {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.pager a, .pager .cur {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 600;
}

.pager a:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

.pager .cur {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* PDP: сноска под описанием поставщика (без рамки и фона) */
.supplier-disclaimer-footnote {
  margin-top: 1.25rem;
  margin-bottom: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
}

.supplier-disclaimer-inline-link {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.supplier-disclaimer-inline-link:hover {
  color: var(--accent);
}

.supplier-section-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.supplier-acc-body .supplier-section-title:first-child {
  margin-top: 0;
}

.supplier-html {
  line-height: 1.8;
  font-size: 1.05rem;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overflow-wrap: anywhere;
}

.supplier-html table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.supplier-html td,
.supplier-html th {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
}

.supplier-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.supplier-acc-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
}

.supplier-acc-item > summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 1rem;
  list-style: none;
}

.supplier-acc-item > summary::-webkit-details-marker {
  display: none;
}

.supplier-acc-body {
  padding: 0 1rem 1rem;
  line-height: 1.75;
  font-size: 1.02rem;
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Юридические страницы (/legal/…) */
body.site.legal-page main {
  padding-bottom: 3rem;
}

.legal-doc {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.legal-doc-inner h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.25;
}

.legal-doc-inner .meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.legal-doc-inner .lead {
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.legal-doc-inner h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  line-height: 1.35;
}

.legal-doc-inner h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
}

.legal-doc-inner p {
  margin: 0 0 0.85rem;
  color: var(--text);
}

.legal-doc-inner ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-doc-inner ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.legal-doc-inner li {
  margin-bottom: 0.35rem;
}

.legal-doc-inner a {
  color: var(--accent);
}

/* Главная: блок «надёжный партнёр» */
.home-partner-card {
  margin-top: 4rem;
  padding: 3rem;
  text-align: center;
}

.home-partner-lead {
  max-width: 700px;
  margin: 1.5rem auto;
  font-size: 1.1rem;
}

.home-product-meta {
  font-size: 0.85rem;
  margin: 0.35rem 0 0.5rem;
}

.home-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 1.25rem 1.5rem;
  margin-top: 2rem;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.home-benefit {
  text-align: left;
}

.modal-title {
  margin-bottom: 2rem;
  clear: both;
  padding-right: 2.25rem;
}

.modal-contact-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
}

.modal-contact-channels .contact-item {
  margin-bottom: 0;
}

.btn-lg {
  padding: 0.9rem 1.6rem;
  font-size: 1.05rem;
}

/* Адаптивность */
@media (max-width: 1024px) {
  .hdr-inner { gap: 1rem; }
  .nav { display: none; }
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; max-width: 500px; margin: 0 auto; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { display: none; }

  .catalog-item {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 1rem;
    row-gap: 0.5rem;
    align-items: start;
  }

  .catalog-item > .img-wrap {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .catalog-item > div:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .catalog-item > .price {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
  }

  .catalog-item > div:last-child {
    grid-column: 2;
    grid-row: 3;
  }
}

@media (max-width: 768px) {
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .search-compact { display: none; }
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 2rem; }

  .section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .catalog-toolbar .form-control {
    max-width: 100%;
  }

  .pdp-price-box .price-value {
    font-size: 1.55rem;
  }

  .pdp-info h1 {
    font-size: 1.65rem;
  }

  .pdp-price-box {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .pdp-price-box .btn-primary {
    width: 100%;
    text-align: center;
  }

  .pdp-delivery {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .tabs-nav {
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    row-gap: 0;
  }

  .tab-link {
    padding: 0.65rem 0;
    font-size: 0.95rem;
  }

  .order-form-container {
    padding: 1.5rem;
  }

  /* Подсказки «?» в заявке: без absolute — на всю ширину карточки, не вылезают за экран */
  .form-label-with-help {
    min-width: 0;
  }

  .form-field-help {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .form-field-help-tip {
    position: static;
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    left: auto;
    top: auto;
    display: none;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    padding: 0.75rem 0.85rem;
    margin-top: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }

  .form-field-help:hover .form-field-help-tip,
  .form-field-help:focus-within .form-field-help-tip {
    display: block;
  }

  .form-checkbox-with-help .form-field-help {
    flex-basis: 100%;
    width: 100%;
    margin-top: 0.25rem;
  }

  .grid-products {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .home-partner-card {
    padding: 2rem 1.25rem;
  }

  .modal-content {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 520px) {
  .catalog-item {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .catalog-item > .img-wrap {
    grid-column: 1;
    grid-row: 1;
    width: 5rem;
    justify-self: start;
  }

  .catalog-item > div:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .catalog-item > .price {
    grid-column: 1;
    grid-row: 3;
  }

  .catalog-item > div:last-child {
    grid-column: 1;
    grid-row: 4;
  }

  .ftr-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ftr-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
  }

  .pager {
    flex-wrap: wrap;
  }

  .specs-table td:first-child {
    width: auto;
    max-width: 42%;
  }

  .specs-table td {
    padding: 0.65rem 0;
    font-size: 0.92rem;
    vertical-align: top;
  }

  .form-row,
  .form-row-quantity-unit {
    grid-template-columns: 1fr;
  }

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

  .hero h1 {
    font-size: 1.65rem;
  }

  .hero .search-large input {
    padding: 1rem 1.1rem;
    padding-right: 1.1rem;
    font-size: 1rem;
  }

  .hero .search-large button {
    position: static;
    transform: none;
    width: calc(100% - 1.3rem);
    align-self: center;
    margin: 0.5rem 0.65rem 0.75rem;
    box-sizing: border-box;
  }

  .hero .search-large {
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .pdp-gallery .main-img {
    padding: 1rem;
  }

  .home-partner-card {
    margin-top: 2.5rem;
    padding: 1.5rem 1rem;
  }

  .home-partner-lead {
    font-size: 1rem;
    margin: 1rem auto;
  }

  main {
    padding: 1.5rem 0;
  }
}

@media (max-width: 380px) {
  .hdr-inner {
    gap: 0.5rem;
  }

  .contacts-top .btn-sm {
    padding: 0.45rem 0.65rem;
    font-size: 0.8rem;
  }
}
