/* ============================================================
   ПЗПР — components.css
   Хедер, футер, кнопки, карточки, чипы, шаги, карусель,
   формы, статистика, таблицы, breadcrumbs, плейсхолдеры фото
   ============================================================ */

/* ---------- Иконки ---------- */
.icon { display: inline-block; flex: none; width: 24px; height: 24px; vertical-align: middle; }
.ic-14 { width: 14px; height: 14px; }
.ic-16 { width: 16px; height: 16px; }
.ic-18 { width: 18px; height: 18px; }
.ic-20 { width: 20px; height: 20px; }
.ic-22 { width: 22px; height: 22px; }
.ic-32 { width: 32px; height: 32px; }
.ic-34 { width: 34px; height: 34px; }
.ic-quote { width: 40px; height: 32px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--color-bg); border-bottom: 1px solid var(--border);
}
.header__inner { display: flex; align-items: center; gap: 32px; padding-top: 16px; padding-bottom: 16px; }
.header__brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; color: var(--color-dark); }
.header__brand:hover { color: var(--color-dark); }
.logo-mark { flex: none; }
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__word { font-family: var(--font-heading); font-weight: 800; font-size: 22px; letter-spacing: .5px; line-height: 1; }
.brand__sub { font-family: var(--font-heading); font-weight: 600; font-size: 8px; letter-spacing: 1.5px; color: var(--color-steel); line-height: 1.3; }
.header__logo { display: block; height: 44px; width: auto; flex: none; }
.header__wordmark {
  font-family: var(--font-heading); font-weight: 700; font-size: 14px;
  line-height: 1.35; letter-spacing: .2px; color: var(--color-dark);
  text-transform: uppercase;
}

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav__link {
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  color: var(--color-dark); padding: 6px 2px;
}
.nav__link:hover { color: var(--color-blue); }
.nav__link.is-active { color: var(--color-blue); }

.header__cta { padding: 12px 22px; font-size: 14px; }

.header__burger {
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: none; border: none; padding: 10px; margin: -10px -6px -10px 0;
  min-width: 44px; min-height: 44px;
}
.header__burger span { display: block; width: 22px; height: 2px; background: var(--color-dark); transition: transform var(--transition), opacity var(--transition); }
.header__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header__burger.is-open span:nth-child(2) { opacity: 0; }
.header__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 16px 32px; border: none; border-radius: var(--radius);
  cursor: pointer; text-align: center; transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  min-height: 44px;
}
.btn .icon { width: 16px; height: 16px; }
.btn--primary { background: var(--color-blue); color: #fff; }
.btn--primary:hover { background: var(--color-blue-hover); color: #fff; }
.btn--teal { background: var(--color-teal); color: var(--color-dark); }
.btn--teal:hover { background: var(--color-teal-hover); color: var(--color-dark); }
.btn--ghost { background: transparent; border: 1px solid var(--color-blue); color: var(--color-blue); padding: 15px 31px; }
.btn--ghost:hover { background: var(--color-blue); color: #fff; }
.btn--block { width: 100%; }

/* Текстовая ссылка-CTA со стрелкой */
.link-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--color-blue);
}
.link-cta .icon { width: 16px; height: 16px; }
.link-cta:hover { color: var(--color-blue-hover); }
.link-cta--sm { font-size: 13px; letter-spacing: .5px; }

/* ============================================================
   CARDS
   ============================================================ */
/* Карточка категории */
.cat-card {
  display: flex; flex-direction: column; gap: 16px;
  border: 1px solid var(--border); background: var(--color-bg);
  box-shadow: var(--shadow-card); padding: 22px 16px;
  transition: box-shadow var(--transition); color: var(--color-dark);
}
.cat-card:hover { box-shadow: var(--shadow-hover); color: var(--color-dark); }
.cat-card__icon { color: var(--color-blue); }
.cat-card__title { font-family: var(--font-heading); font-weight: 600; font-size: 14px; line-height: 1.3; }

/* Карточка продукта (с верхней акцентной полосой) */
.product-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--border); background: var(--color-bg);
  box-shadow: var(--shadow-product); overflow: hidden;
  transition: box-shadow var(--transition); color: var(--color-dark);
}
.product-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--color-blue); z-index: 1; }
.product-card:hover { box-shadow: var(--shadow-hover-2); color: var(--color-dark); }
.product-card__image { width: 100%; aspect-ratio: 800 / 559; overflow: hidden; background: var(--color-bg-light); line-height: 0; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card__body { display: flex; flex-direction: column; padding: 28px 26px 26px; }
.product-card__icon { color: var(--color-blue); margin-bottom: 18px; }
.product-card__title { font-family: var(--font-heading); font-weight: 700; font-size: 17px; line-height: 1.25; margin: 0 0 8px; }
.product-card__spec { font-family: var(--font-body); font-size: 12px; letter-spacing: .3px; color: var(--color-steel-light); margin-bottom: 14px; }
.product-card__desc { font-size: 14px; line-height: 1.55; color: var(--color-steel); margin: 0 0 18px; }
.product-card__link { margin-top: 0; }
.product-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Универсальная фича-карточка (доставка/хранение/логистика) */
.feature-card {
  border: 1px solid var(--border); background: var(--color-bg);
  box-shadow: var(--shadow-card); padding: 28px 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.feature-card__icon { color: var(--color-blue); }
.feature-card__title { font-family: var(--font-heading); font-weight: 700; font-size: 18px; }
.feature-card__desc { font-size: 14px; line-height: 1.55; color: var(--color-steel); }

/* Колонка "почему ПЗПР" */
.why-item { display: flex; flex-direction: column; gap: 16px; }
.why-item__icon { color: var(--color-blue); }
.why-item__title { font-family: var(--font-heading); font-weight: 700; font-size: 18px; }
.why-item__desc { font-size: 14px; line-height: 1.55; color: var(--color-steel); }

/* Карточка отрасли (с фото) */
.industry-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border); background: var(--color-bg); box-shadow: var(--shadow-card);
  color: var(--color-dark);
}
.industry-card:hover { color: var(--color-dark); }
.industry-card__media { position: relative; height: 150px; }
.industry-card__image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.industry-card__body { display: flex; align-items: flex-start; gap: 10px; padding: 16px 14px; }
.industry-card__icon { color: var(--color-blue); flex: none; margin-top: 1px; }
.industry-card__title { font-family: var(--font-heading); font-weight: 600; font-size: 13px; line-height: 1.3; }

/* Карточка оборудования (светлая → белая при hover) */
.equip-card {
  display: flex; flex-direction: column; gap: 16px;
  background: var(--color-bg-light); border: 1px solid var(--border);
  padding: 26px 22px; transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.equip-card:hover { background: var(--color-bg); border-color: var(--color-blue); box-shadow: var(--shadow-card); }
.equip-card__icon { color: var(--color-blue); }
.equip-card__label { font-family: var(--font-heading); font-weight: 600; font-size: 15px; line-height: 1.35; }

/* Гарантии — пункт с бирюзовой галочкой */
.guarantee { display: flex; align-items: flex-start; gap: 14px; }
.guarantee__icon { color: var(--color-teal); flex: none; }
.guarantee__label { font-family: var(--font-body); font-weight: 500; font-size: 15px; }

/* ============================================================
   ФИЛЬТРЫ / ЧИПЫ
   ============================================================ */
.filter-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-label {
  font-family: var(--font-body); font-size: 12px; letter-spacing: 1px;
  color: var(--color-steel-light); text-transform: uppercase; margin-right: 4px;
}
.chip {
  font-family: var(--font-body); font-weight: 500; font-size: 13px;
  color: var(--color-steel); background: var(--color-bg-light);
  border: 1px solid var(--border); padding: 9px 16px; border-radius: var(--radius-pill);
  cursor: pointer; transition: border-color var(--transition), color var(--transition), background var(--transition);
  min-height: 40px;
}
@media (pointer: coarse) { .chip { min-height: 44px; } }
.chip:hover { border-color: var(--color-blue); color: var(--color-blue); }
.chip.is-active { background: var(--color-blue); border-color: var(--color-blue); color: #fff; }

/* ============================================================
   ШАГИ "КАК ЗАКАЗАТЬ"
   ============================================================ */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.steps__line { position: absolute; top: 26px; left: 8%; right: 8%; height: 2px; background: #D6DBE2; }
.step { position: relative; display: flex; flex-direction: column; gap: 14px; }
.step__num {
  width: 54px; height: 54px; background: var(--color-bg);
  border: 2px solid var(--color-blue); color: var(--color-blue);
  font-family: var(--font-heading); font-weight: 800; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.step__title { font-family: var(--font-heading); font-weight: 700; font-size: 17px; line-height: 1.2; }
.step__desc { font-size: 14px; line-height: 1.55; color: var(--color-steel); }

/* ============================================================
   КАРУСЕЛЬ (отзывы / related)
   ============================================================ */
.carousel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.carousel__controls { display: flex; gap: 12px; flex-shrink: 0; }
.carousel__btn {
  width: 48px; height: 48px; border: 1px solid var(--color-blue);
  background: var(--color-bg); color: var(--color-blue);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.carousel__btn:hover { background: var(--color-blue); color: #fff; }
.carousel__btn:disabled { opacity: .35; cursor: default; }
.carousel__btn:disabled:hover { background: var(--color-bg); color: var(--color-blue); }
.carousel__track {
  display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 4px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { height: 0; display: none; }

/* Карточка отзыва */
.testimonial {
  flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start;
  display: flex; flex-direction: column;
  border: 1px solid var(--border); background: var(--color-bg);
  box-shadow: var(--shadow-product); padding: 32px 30px;
}
.testimonial__quote-icon { color: var(--color-blue); margin-bottom: 20px; }
.testimonial__text { font-size: 15px; line-height: 1.6; color: var(--color-dark); margin: 0 0 26px; }
.testimonial__foot { margin-top: auto; border-top: 1px solid var(--border); padding-top: 18px; }
.testimonial__name { font-family: var(--font-heading); font-weight: 700; font-size: 15px; }
.testimonial__role { font-size: 13px; color: var(--color-steel); margin-top: 3px; }

/* Карточка related-продукта (компактная) */
.related-card {
  flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start;
  position: relative; display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--border); background: var(--color-bg);
  box-shadow: var(--shadow-product); overflow: hidden; padding: 24px 22px;
  color: var(--color-dark);
}
.related-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--color-blue); }
.related-card:hover { box-shadow: var(--shadow-hover-2); color: var(--color-dark); }
.related-card__icon { color: var(--color-blue); }
.related-card__name { font-family: var(--font-heading); font-weight: 700; font-size: 15px; line-height: 1.3; }
.related-card__spec { font-size: 12px; color: var(--color-steel-light); }

/* ============================================================
   СТАТИСТИКА
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat__num {
  font-family: var(--font-heading); font-weight: 800; font-size: clamp(38px, 4vw, 52px);
  line-height: 1; color: var(--color-dark);
}
.stat__num sup, .stat__suffix { color: var(--color-blue); }
.stat__divider { width: 30px; height: 2px; background: var(--color-teal); margin: 14px 0; }
.stat__label { font-size: 14px; line-height: 1.5; color: var(--color-steel); }

/* ============================================================
   ТАБЛИЦЫ (характеристики / параметры)
   ============================================================ */
.spec-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); background: var(--color-bg); }
.spec-table caption { text-align: left; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 18px; font-size: 14px; line-height: 1.4; }
.spec-table thead th {
  background: var(--color-dark); color: #fff;
  font-family: var(--font-heading); font-weight: 600; font-size: 13px;
  letter-spacing: .5px; text-transform: uppercase;
}
.spec-table tbody tr:nth-child(even) { background: #FAFBFC; }
.spec-table tbody td:first-child { color: var(--color-steel); width: 45%; }
.spec-table tbody td:last-child { color: var(--color-dark); font-weight: 500; }
.spec-table tbody tr { border-top: 1px solid var(--border-inner); }

/* Мини-таблица ключевых параметров (в hero товара) */
.key-params { border: 1px solid var(--border); background: var(--color-bg); }
.key-params__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--border-inner); }
.key-params__row:first-child { border-top: none; }
.key-params__k { font-size: 13px; color: var(--color-steel); }
.key-params__v { font-size: 14px; font-weight: 600; color: var(--color-dark); text-align: right; }

/* ============================================================
   ТЁМНАЯ ФОРМА (CTA / заявка)
   ============================================================ */
.form-dark { position: relative; overflow: hidden; background: var(--color-dark); color: #fff; }
.form-dark__decor { position: absolute; inset: 0; pointer-events: none; }
.form-dark__inner { position: relative; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-field label { font-family: var(--font-body); font-size: 12px; color: var(--muted-on-dark); }
.form-field input, .form-field textarea {
  font-family: var(--font-body); font-size: 15px; color: #fff;
  background: var(--input-dark); border: 1px solid var(--border-dark-2);
  padding: 14px 16px; border-radius: var(--radius); width: 100%;
  transition: border-color var(--transition);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #6B7885; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--color-blue); }
.form-field textarea { resize: vertical; min-height: 96px; }

.form-consent { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 20px; }
.form-consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--color-blue); }
.form-consent label { font-size: 13px; line-height: 1.5; color: var(--muted-on-dark); }
.form-consent a { color: var(--color-blue); }
.form-error { color: #FF6B6B; font-size: 13px; margin-top: -8px; margin-bottom: 12px; display: none; }
.form-error.is-visible { display: block; }
.form-success { color: var(--color-teal); font-size: 15px; font-weight: 600; }

/* Светлая форма (контакты) — те же поля на светлом фоне */
.form-light .form-field input, .form-light .form-field textarea {
  background: var(--color-bg); color: var(--color-dark); border-color: var(--border);
}
.form-light .form-field label { color: var(--color-steel); }
.form-light .form-consent label { color: var(--color-steel); }
.form-light .form-field input::placeholder, .form-light .form-field textarea::placeholder { color: var(--color-steel-light); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--color-steel); padding: 16px 0; }
.breadcrumbs a { color: var(--color-steel); }
.breadcrumbs a:hover { color: var(--color-blue); }
.breadcrumbs span[aria-current] { color: var(--color-dark); }
.breadcrumbs .sep { color: var(--color-steel-light); }

/* ============================================================
   ПЛЕЙСХОЛДЕР ФОТО
   ============================================================ */
.img-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 100%; min-height: 160px; text-align: center; padding: 24px;
  background: var(--color-bg-light);
  background-image: linear-gradient(135deg, rgba(38,169,224,.04) 25%, transparent 25%, transparent 50%, rgba(38,169,224,.04) 50%, rgba(38,169,224,.04) 75%, transparent 75%);
  background-size: 20px 20px;
  color: var(--color-steel-light); border: 1px solid var(--border);
}
.img-placeholder svg { width: 34px; height: 34px; color: var(--color-steel-light); opacity: .8; }
.img-placeholder span { font-size: 13px; line-height: 1.45; max-width: 260px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; overflow: hidden; background: var(--color-dark); border-top: 1px solid var(--border-dark); }
.footer__decor { position: absolute; right: -30px; bottom: -40px; opacity: .12; pointer-events: none; }
.footer__top {
  position: relative; display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px;
  padding-top: 64px; padding-bottom: 32px;
}
.footer__word { font-family: var(--font-heading); font-weight: 800; font-size: 26px; letter-spacing: .5px; color: #fff; margin-bottom: 8px; }
.footer__sub { font-family: var(--font-heading); font-weight: 600; font-size: 10px; letter-spacing: 1.5px; color: var(--color-steel); margin-bottom: 20px; }
.footer__desc { font-size: 14px; line-height: 1.6; color: var(--color-steel-light); margin: 0 0 22px; max-width: 280px; }
.footer__socials { display: flex; gap: 12px; }
.footer__socials a {
  width: 40px; height: 40px; border: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center; color: var(--color-steel-light);
  transition: border-color var(--transition), color var(--transition);
}
.footer__socials a:hover { border-color: var(--color-blue); color: var(--color-blue); }
.footer__head { font-family: var(--font-heading); font-weight: 700; font-size: 14px; letter-spacing: 1px; color: #fff; text-transform: uppercase; margin-bottom: 20px; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { font-size: 14px; color: var(--color-steel-light); }
.footer__links a:hover { color: var(--color-blue); }
.footer__contacts { display: flex; flex-direction: column; gap: 14px; font-style: normal; }
.footer__phone { font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: #fff; }
.footer__phone:hover { color: var(--color-blue); }
.footer__email { color: var(--color-blue); }
.footer__addr { font-size: 14px; line-height: 1.5; color: var(--color-steel-light); }
.footer__hours { font-size: 14px; line-height: 1.5; color: var(--color-steel-light); }
.footer__contacts a[href^="privacy"], .footer__contacts a[href$="privacy.html"] { font-size: 13px; color: var(--color-steel-light); }
.footer__bottom { position: relative; border-top: 1px solid var(--border-dark); }
.footer__bottom .container { padding-top: 24px; padding-bottom: 24px; font-size: 13px; color: var(--color-steel); }
