/*
Theme Name: СтальПрофиль
Theme URI: https://stroyprofil.example
Author: СтальПрофиль
Author URI: https://stroyprofil.example
Description: Корпоративная тема для производства отливов и фасонных изделий из оцинкованной окрашенной стали. Каталог продукции, калькулятор заказа, формы заявок, SEO-разметка.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stalprofil
Tags: business, catalog, industrial, custom-colors, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Токены дизайна
   ========================================================================== */
:root {
  --sp-ink: #0c1f2b;
  --sp-ink-2: #16323f;
  --sp-steel: #123c52;
  --sp-steel-soft: #1d5675;
  --sp-accent: #f2621b;
  --sp-accent-dark: #d34f10;
  --sp-accent-soft: #fff1e9;
  --sp-gold: #ffb03a;
  --sp-mist: #f3f6f8;
  --sp-mist-2: #e8eef2;
  --sp-line: #d9e2e8;
  --sp-text: #1b2b35;
  --sp-muted: #5d707c;
  --sp-white: #ffffff;
  --sp-ok: #178a5a;

  --sp-radius: 16px;
  --sp-radius-sm: 10px;
  --sp-shadow-sm: 0 1px 2px rgba(12, 31, 43, .06), 0 4px 12px rgba(12, 31, 43, .05);
  --sp-shadow: 0 12px 32px rgba(12, 31, 43, .10);
  --sp-shadow-lg: 0 24px 60px rgba(12, 31, 43, .16);
  --sp-max: 1240px;
  --sp-font: "SP Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sp-font-head: "SP Display", "Manrope", "SP Sans", "Inter", "Segoe UI", Roboto, sans-serif;
  --sp-header-h: 76px;
}

/* ==========================================================================
   2. Базовые стили
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--sp-header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--sp-font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--sp-text);
  background: var(--sp-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  max-width: 100%;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
svg { overflow: visible; }

h1, h2, h3, h4, h5 {
  font-family: var(--sp-font-head);
  color: var(--sp-ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.02em;
  font-weight: 800;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
a { color: var(--sp-steel); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--sp-accent); }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }

strong, b { font-weight: 700; color: var(--sp-ink); }

hr { border: 0; border-top: 1px solid var(--sp-line); margin: 2.5rem 0; }

::selection { background: var(--sp-accent); color: #fff; }

:focus-visible { outline: 3px solid rgba(242, 98, 27, .55); outline-offset: 3px; border-radius: 4px; }

.sp-container { width: 100%; max-width: var(--sp-max); margin: 0 auto; padding: 0 24px; }
.sp-container--narrow { max-width: 900px; }

.sp-section { padding: clamp(48px, 6vw, 88px) 0; }
.sp-section--mist { background: var(--sp-mist); }
.sp-section--dark { background: var(--sp-ink); color: #c9d6de; }
.sp-section--dark h2, .sp-section--dark h3, .sp-section--dark h4 { color: #fff; }
.sp-section--tight { padding: clamp(32px, 4vw, 56px) 0; }

.sp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sp-accent); margin-bottom: 14px;
}
.sp-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; display: block; }

.sp-section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.sp-section-head p { color: var(--sp-muted); font-size: 1.05rem; margin-bottom: 0; }
.sp-section--dark .sp-section-head p { color: #9fb3bf; }
.sp-section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sp-section-head--center .sp-eyebrow { justify-content: center; }

/* ==========================================================================
   3. Кнопки и формы
   ========================================================================== */
.sp-btn {
  --btn-bg: var(--sp-accent);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--sp-font); font-size: 1rem; font-weight: 700; line-height: 1.1;
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  box-shadow: 0 8px 20px rgba(242, 98, 27, .24);
}
.sp-btn:hover { background: var(--sp-accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(242, 98, 27, .3); }
.sp-btn:active { transform: translateY(0); }

.sp-btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--sp-ink);
  border-color: rgba(12, 31, 43, .22); box-shadow: none;
}
.sp-btn--ghost:hover { background: var(--sp-ink); border-color: var(--sp-ink); color: #fff; box-shadow: var(--sp-shadow); }

.sp-btn--light { --btn-bg: #fff; --btn-fg: var(--sp-ink); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.sp-btn--light:hover { background: var(--sp-mist); color: var(--sp-ink); }

.sp-btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255, 255, 255, .4); box-shadow: none; }
.sp-btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

.sp-btn--wide { width: 100%; }
.sp-btn--sm { padding: 11px 20px; font-size: .92rem; }

.sp-btn svg { width: 18px; height: 18px; flex: none; }

.sp-link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--sp-accent);
}
.sp-link-arrow::after { content: "→"; transition: transform .18s ease; }
.sp-link-arrow:hover::after { transform: translateX(4px); }

.sp-field { margin-bottom: 16px; }
.sp-field label { display: block; font-size: .86rem; font-weight: 600; color: var(--sp-muted); margin-bottom: 6px; }
.sp-field .req { color: var(--sp-accent); }

.sp-input, .sp-select, .sp-textarea {
  width: 100%; padding: 13px 16px; font-family: var(--sp-font); font-size: 1rem; color: var(--sp-text);
  background: #fff; border: 1.5px solid var(--sp-line); border-radius: var(--sp-radius-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
  appearance: none;
}
.sp-input::placeholder, .sp-textarea::placeholder { color: #9aacb6; }
.sp-input:focus, .sp-select:focus, .sp-textarea:focus {
  outline: none; border-color: var(--sp-accent); box-shadow: 0 0 0 4px rgba(242, 98, 27, .12);
}
.sp-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235d707c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.sp-textarea { min-height: 92px; resize: vertical; }

.sp-check { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--sp-muted); }
.sp-check input { margin-top: 3px; accent-color: var(--sp-accent); width: 16px; height: 16px; flex: none; }
.sp-check a { color: var(--sp-muted); text-decoration: underline; }

.sp-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sp-form__grid .sp-field--full { grid-column: 1 / -1; }

.sp-form__status { font-size: .9rem; margin-top: 12px; min-height: 1.2em; }
.sp-form__status.is-error { color: #c0392b; }
.sp-form__status.is-success { color: var(--sp-ok); }

.sp-form--card {
  background: #fff; border-radius: var(--sp-radius); padding: 28px;
  box-shadow: var(--sp-shadow); border: 1px solid var(--sp-line);
}
.sp-cta .sp-lead-form h3 { color: var(--sp-ink); }
.sp-cta .sp-lead-form .sp-form__sub { color: var(--sp-muted); }
.sp-cta .sp-lead-form .sp-field label { color: #556b78; }
.sp-cta .sp-lead-form .sp-check { color: #667c88; }
.sp-cta .sp-lead-form .sp-check a { color: #667c88; }
.sp-cta .sp-lead-form .sp-btn { box-shadow: 0 10px 24px rgba(242, 98, 27, .3); }

.sp-lead-form h3 { margin-bottom: 6px; font-size: 1.22rem; }
.sp-lead-form .sp-form__sub { font-size: .88rem; color: var(--sp-muted); margin-bottom: 18px; }

/* ==========================================================================
   4. Шапка
   ========================================================================== */
.sp-topbar {
  background: var(--sp-ink); color: #9fb3bf; font-size: .82rem;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.sp-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 38px; }
.sp-topbar__list { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; }
.sp-topbar__list li { margin: 0; display: inline-flex; align-items: center; gap: 7px; }
.sp-topbar__list svg { width: 14px; height: 14px; opacity: .7; }
.sp-topbar a { color: #cfe0e8; }
.sp-topbar a:hover { color: var(--sp-gold); }
.sp-topbar__accent { color: var(--sp-gold); font-weight: 600; }

.sp-header {
  position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--sp-line);
  transition: box-shadow .2s ease;
}
.sp-header.is-stuck { box-shadow: 0 8px 24px rgba(12, 31, 43, .08); }
.sp-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--sp-header-h); }

.sp-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--sp-ink); flex: none; }
.sp-logo:hover { color: var(--sp-ink); }
.sp-logo__mark { width: 44px; height: 44px; flex: none; }
.sp-logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.sp-logo__name { font-family: var(--sp-font-head); font-weight: 800; font-size: 1.28rem; letter-spacing: -.02em; }
.sp-logo__name span { color: var(--sp-accent); }
.sp-logo__tag { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sp-muted); font-weight: 600; margin-top: 3px; }

.sp-nav { margin-left: auto; }
.sp-nav ul { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.sp-nav li { position: relative; margin: 0; }
.sp-nav a {
  display: block; padding: 10px 11px; border-radius: 8px; color: var(--sp-ink-2);
  font-size: .91rem; font-weight: 600; white-space: nowrap;
}
.sp-nav a:hover, .sp-nav .current-menu-item > a, .sp-nav .current_page_item > a {
  color: var(--sp-accent); background: var(--sp-accent-soft);
}
.sp-nav .sub-menu {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--sp-line); border-radius: 12px;
  box-shadow: var(--sp-shadow); padding: 8px; display: block;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  flex-direction: column; align-items: stretch; gap: 0; z-index: 20;
}
.sp-nav li:hover > .sub-menu, .sp-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sp-nav .sub-menu a { padding: 9px 12px; font-weight: 500; font-size: .92rem; }
.sp-nav .sub-menu li { width: 100%; }

.sp-header__actions { display: flex; align-items: center; gap: 12px; flex: none; }
.sp-header__phone { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.sp-header__phone a { font-family: var(--sp-font-head); font-size: 1.06rem; font-weight: 800; color: var(--sp-ink); letter-spacing: -.01em; white-space: nowrap; }
.sp-header__phone a:hover { color: var(--sp-accent); }
.sp-header__phone small { font-size: .68rem; color: var(--sp-muted); white-space: nowrap; }
.sp-header .sp-btn--header { padding: 12px 20px; font-size: .93rem; }

.sp-burger {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--sp-line);
  background: #fff; cursor: pointer; align-items: center; justify-content: center; flex: none;
}
.sp-burger span { display: block; width: 20px; height: 2px; background: var(--sp-ink); position: relative; transition: .2s; }
.sp-burger span::before, .sp-burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--sp-ink); transition: .2s;
}
.sp-burger span::before { top: -6px; }
.sp-burger span::after { top: 6px; }
body.sp-menu-open .sp-burger span { background: transparent; }
body.sp-menu-open .sp-burger span::before { top: 0; transform: rotate(45deg); }
body.sp-menu-open .sp-burger span::after { top: 0; transform: rotate(-45deg); }

/* Мобильное меню */
.sp-mobile {
  position: fixed; inset: 0; z-index: 95; background: #fff; padding: 20px 24px 40px;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto; display: flex; flex-direction: column;
  visibility: hidden; width: 100%; max-width: 100vw;
}
body.sp-menu-open .sp-mobile { transform: translateX(0); visibility: visible; }
.sp-mobile__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.sp-mobile__close { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--sp-line); background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--sp-ink); }
.sp-mobile ul { list-style: none; padding: 0; margin: 0; }
.sp-mobile > ul > li { border-bottom: 1px solid var(--sp-line); }
.sp-mobile > ul > li > a { display: block; padding: 14px 0; font-size: 1.05rem; font-weight: 700; color: var(--sp-ink); }
.sp-mobile .sub-menu { padding: 0 0 10px 14px; }
.sp-mobile .sub-menu a { display: block; padding: 8px 0; color: var(--sp-muted); font-size: .95rem; }
.sp-mobile__cta { margin-top: 24px; display: grid; gap: 12px; }
.sp-mobile__phone { font-family: var(--sp-font-head); font-size: 1.3rem; font-weight: 800; color: var(--sp-ink); }

/* ==========================================================================
   5. Главный экран
   ========================================================================== */
.sp-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(242, 98, 27, .30), transparent 62%),
    radial-gradient(900px 600px at 8% 110%, rgba(29, 86, 117, .55), transparent 60%),
    linear-gradient(160deg, #0c1f2b 0%, #123c52 55%, #0d2a39 100%);
  padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 7vw, 96px);
}
.sp-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 70% 20%, #000 20%, transparent 75%);
}
.sp-hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.sp-hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
  font-size: .82rem; font-weight: 600; color: #e7f0f5; margin-bottom: 22px;
}
.sp-hero__badge b { background: var(--sp-accent); color: #fff; padding: 3px 9px; border-radius: 999px; font-size: .74rem; letter-spacing: .04em; }
.sp-hero h1 { color: #fff; margin-bottom: 18px; font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
.sp-hero h1 em { font-style: normal; color: var(--sp-gold); }
.sp-hero__lead { font-size: clamp(1rem, 1.35vw, 1.15rem); color: #c6d8e2; max-width: 560px; margin-bottom: 26px; }
.sp-hero__points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 0 0 30px; padding: 0; list-style: none; }
.sp-hero__points li { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: .95rem; color: #dbe8ef; }
.sp-hero__points svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--sp-gold); }
.sp-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.sp-hero__note { font-size: .82rem; color: #9fb3bf; margin: 16px 0 0; }

.sp-hero-card {
  background: rgba(255, 255, 255, .97); color: var(--sp-text); border-radius: 20px;
  padding: 26px; box-shadow: var(--sp-shadow-lg); border: 1px solid rgba(255, 255, 255, .5);
}
.sp-hero-card h3 { font-size: 1.25rem; margin-bottom: 6px; }
.sp-hero-card > p { font-size: .9rem; color: var(--sp-muted); margin-bottom: 18px; }
.sp-hero-card .sp-lead-form h3 { font-size: 1.2rem; margin-bottom: 4px; }
.sp-hero-card .sp-lead-form .sp-form__sub { font-size: .85rem; margin-bottom: 14px; }
.sp-hero-card .sp-lead-form { padding: 0; box-shadow: none; border: 0; background: none; }
.sp-hero-card .sp-input, .sp-hero-card .sp-select { padding: 11px 14px; font-size: .95rem; }
.sp-hero-card .sp-field { margin-bottom: 12px; }
.sp-hero-card .sp-btn { padding: 13px 22px; }
.sp-hero-card__foot { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--sp-muted); margin-top: 14px; justify-content: center; }
.sp-hero-card__foot svg { width: 15px; height: 15px; color: var(--sp-ok); }

/* ==========================================================================
   6. Полоса доверия / цифры
   ========================================================================== */
.sp-trust { background: #fff; border-bottom: 1px solid var(--sp-line); }
.sp-trust__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.sp-trust__item { padding: 26px 24px; display: flex; gap: 14px; align-items: flex-start; border-left: 1px solid var(--sp-line); }
.sp-trust__item:first-child { border-left: 0; padding-left: 0; }
.sp-trust__item svg { width: 26px; height: 26px; color: var(--sp-accent); flex: none; margin-top: 2px; }
.sp-trust__item b { display: block; font-family: var(--sp-font-head); font-size: 1.02rem; color: var(--sp-ink); margin-bottom: 3px; }
.sp-trust__item span { font-size: .87rem; color: var(--sp-muted); line-height: 1.45; display: block; }

.sp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sp-stat { text-align: center; padding: 8px; }
.sp-stat b { display: block; font-family: var(--sp-font-head); font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.03em; }
.sp-stat b span { color: var(--sp-gold); }
.sp-stat small { display: block; margin-top: 10px; font-size: .86rem; color: #9fb3bf; }

/* ==========================================================================
   7. Карточки каталога
   ========================================================================== */
.sp-grid { display: grid; gap: 22px; }
.sp-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.sp-cat-card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--sp-line); border-radius: var(--sp-radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: var(--sp-ink);
}
.sp-cat-card:hover { transform: translateY(-4px); box-shadow: var(--sp-shadow); border-color: transparent; color: var(--sp-ink); }
.sp-cat-card__media {
  aspect-ratio: 16 / 10; background: linear-gradient(160deg, #eef3f6, #dfe8ee);
  display: flex; align-items: center; justify-content: center; padding: 18px; position: relative;
}
.sp-cat-card__media img, .sp-cat-card__media svg { width: 100%; height: 100%; object-fit: contain; }
.sp-cat-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1 1 auto; }
.sp-cat-card__body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.sp-cat-card__body p { font-size: .88rem; color: var(--sp-muted); margin-bottom: 14px; }
.sp-cat-card__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .82rem; color: var(--sp-muted); }
.sp-cat-card__price { font-weight: 800; color: var(--sp-accent); font-size: .95rem; font-family: var(--sp-font-head); }

.sp-prod-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sp-line);
  border-radius: var(--sp-radius); overflow: hidden; height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sp-prod-card:hover { transform: translateY(-3px); box-shadow: var(--sp-shadow); border-color: rgba(242, 98, 27, .35); }
.sp-prod-card__media {
  display: block; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #f7f9fb, #e6eef3);
  padding: 16px; position: relative;
}
.sp-prod-card__media svg, .sp-prod-card__media img { width: 100%; height: 100%; object-fit: contain; }
.sp-prod-card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--sp-ink); color: #fff; font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px;
}
.sp-prod-card__badge--hit { background: var(--sp-accent); }
.sp-prod-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1 1 auto; }
.sp-prod-card__body h3 { font-size: 1.02rem; margin-bottom: 6px; line-height: 1.25; }
.sp-prod-card__body h3 a { color: var(--sp-ink); }
.sp-prod-card__body h3 a:hover { color: var(--sp-accent); }
.sp-prod-card__desc { font-size: .84rem; color: var(--sp-muted); margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-prod-card__specs { list-style: none; padding: 0; margin: 0 0 14px; font-size: .8rem; color: var(--sp-muted); display: grid; gap: 4px; }
.sp-prod-card__specs li { display: flex; justify-content: space-between; gap: 8px; margin: 0; }
.sp-prod-card__specs b { color: var(--sp-ink-2); font-weight: 600; }
.sp-prod-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--sp-line); }
.sp-price { font-family: var(--sp-font-head); font-weight: 800; font-size: 1.18rem; color: var(--sp-ink); letter-spacing: -.02em; }
.sp-price small { font-size: .74rem; font-weight: 500; color: var(--sp-muted); letter-spacing: 0; }
.sp-price__from { font-size: .74rem; color: var(--sp-muted); display: block; font-weight: 500; letter-spacing: 0; font-family: var(--sp-font); }

/* ==========================================================================
   8. Профили / чертежи
   ========================================================================== */
.sp-profiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.sp-profile {
  background: #fff; border: 1px solid var(--sp-line); border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; gap: 10px; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.sp-profile:hover { border-color: rgba(242, 98, 27, .45); box-shadow: var(--sp-shadow-sm); transform: translateY(-2px); }
.sp-profile__img { aspect-ratio: 4 / 3; background: #f6f9fa; border-radius: 8px; padding: 10px; }
.sp-profile__img svg { width: 100%; height: 100%; }
.sp-profile__name { font-weight: 700; font-size: .95rem; color: var(--sp-ink); }
.sp-profile__size { font-size: .78rem; color: var(--sp-muted); }

/* ==========================================================================
   9. Калькулятор
   ========================================================================== */
.sp-calc {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 0; background: #fff;
  border-radius: 20px; overflow: hidden; box-shadow: var(--sp-shadow); border: 1px solid var(--sp-line);
}
.sp-calc__form { padding: clamp(24px, 3vw, 40px); }
.sp-calc__side {
  background: linear-gradient(165deg, var(--sp-ink), var(--sp-steel)); color: #d5e3eb;
  padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column;
}
.sp-calc__side h3 { color: #fff; font-size: 1.2rem; }
.sp-calc__side ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; }
.sp-calc__side li { display: flex; gap: 10px; font-size: .92rem; margin: 0; }
.sp-calc__side li svg { width: 18px; height: 18px; color: var(--sp-gold); flex: none; margin-top: 3px; }
.sp-calc__side .sp-calc__total { margin-top: auto; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 18px; }
.sp-calc__total small { display: block; font-size: .8rem; color: #9fb3bf; margin-bottom: 4px; }
.sp-calc__total strong { font-family: var(--sp-font-head); font-size: 1.9rem; color: #fff; letter-spacing: -.02em; line-height: 1.1; }
.sp-calc__total span { font-size: .82rem; color: #9fb3bf; }

.sp-calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sp-calc__hint { font-size: .8rem; color: var(--sp-muted); margin: -4px 0 16px; }
.sp-calc__result { font-family: var(--sp-font-head); font-weight: 800; font-size: 1.6rem; color: var(--sp-ink); transition: color .2s; }

.sp-colors { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.sp-color {
  width: 30px; height: 30px; border-radius: 8px; border: 2px solid transparent; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); position: relative; padding: 0;
  transition: transform .15s ease;
}
.sp-color:hover { transform: scale(1.12); }
.sp-color.is-active { border-color: var(--sp-ink); }
.sp-color.is-active::after {
  content: ""; position: absolute; inset: 3px; border: 2px solid #fff; border-radius: 5px; mix-blend-mode: difference;
}

/* ==========================================================================
   10. Шаги, возможности, оборудование
   ========================================================================== */
.sp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.sp-step { position: relative; padding: 24px 22px; background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); }
.sp-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--sp-font-head); font-size: 2.2rem; font-weight: 800; line-height: 1;
  color: rgba(242, 98, 27, .18); display: block; margin-bottom: 12px;
}
.sp-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.sp-step p { font-size: .88rem; color: var(--sp-muted); margin: 0; }

.sp-feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.sp-feature-list li { display: flex; gap: 12px; margin: 0; font-size: .96rem; }
.sp-feature-list svg { width: 22px; height: 22px; flex: none; color: var(--sp-accent); margin-top: 2px; }

.sp-machine { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sp-machine__item {
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--sp-radius); padding: 24px;
}
.sp-machine__item h3 { font-size: 1.05rem; margin-bottom: 6px; color: #fff; }
.sp-machine__item p { font-size: .88rem; color: #9fb3bf; margin: 0; }
.sp-machine__item svg { width: 30px; height: 30px; color: var(--sp-gold); margin-bottom: 14px; }

/* ==========================================================================
   11. RAL палитра
   ========================================================================== */
.sp-ral { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; }
.sp-ral__item { text-align: center; }
.sp-ral__chip { aspect-ratio: 1; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); margin-bottom: 8px; }
.sp-ral__item b { display: block; font-size: .82rem; color: var(--sp-ink); }
.sp-ral__item span { font-size: .74rem; color: var(--sp-muted); }

/* ==========================================================================
   12. Отзывы / FAQ / CTA
   ========================================================================== */
.sp-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sp-quote { background: #fff; border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 26px; display: flex; flex-direction: column; }
.sp-quote__stars { color: var(--sp-gold); letter-spacing: 2px; margin-bottom: 12px; font-size: .95rem; }
.sp-quote p { font-size: .93rem; color: var(--sp-text); flex: 1 1 auto; }
.sp-quote__author { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.sp-quote__avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--sp-steel); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; flex: none;
}
.sp-quote__author b { display: block; font-size: .88rem; color: var(--sp-ink); line-height: 1.2; }
.sp-quote__author span { font-size: .78rem; color: var(--sp-muted); }

.sp-faq { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.sp-faq__item { background: #fff; border: 1px solid var(--sp-line); border-radius: 12px; overflow: hidden; }
.sp-faq__item summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 700; color: var(--sp-ink);
  position: relative; font-size: 1rem;
}
.sp-faq__item summary::-webkit-details-marker { display: none; }
.sp-faq__item summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--sp-accent); line-height: 1;
}
.sp-faq__item[open] summary::after { content: "–"; }
.sp-faq__item[open] summary { border-bottom: 1px solid var(--sp-line); }
.sp-faq__body { padding: 16px 22px 20px; font-size: .94rem; color: var(--sp-muted); }
.sp-faq__body p:last-child { margin-bottom: 0; }

.sp-cta {
  position: relative; overflow: hidden; border-radius: 24px;
  background: linear-gradient(120deg, #143f56 0%, #0c1f2b 62%, #0a1a24 100%);
  color: #fff; padding: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: 1fr .85fr; gap: clamp(24px, 4vw, 56px);
  border: 1px solid rgba(255, 255, 255, .08);
}
.sp-cta::before {
  content: ""; position: absolute; width: 560px; height: 560px; right: -180px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 98, 27, .22), transparent 62%); pointer-events: none;
}
.sp-cta__text { position: relative; z-index: 2; }
.sp-cta h2 { color: #fff; }
.sp-cta p { color: #c1d3dd; }
.sp-cta__list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.sp-cta__list li { display: flex; gap: 10px; font-size: .92rem; color: #d7e5ec; margin: 0; }
.sp-cta__list svg { width: 20px; height: 20px; color: var(--sp-gold); flex: none; }
.sp-cta .sp-form--card { position: relative; z-index: 2; }

/* ==========================================================================
   13. Хлебные крошки, страницы, статьи
   ========================================================================== */
.sp-crumbs { font-size: .82rem; color: var(--sp-muted); padding: 16px 0; }
.sp-crumbs a { color: var(--sp-muted); }
.sp-crumbs a:hover { color: var(--sp-accent); }
.sp-crumbs span[aria-current] { color: var(--sp-ink); }
.sp-crumbs .sp-crumbs__sep { margin: 0 8px; opacity: .5; }

.sp-page-head { background: var(--sp-mist); border-bottom: 1px solid var(--sp-line); padding: 8px 0 clamp(28px, 4vw, 44px); }
.sp-page-head h1 { margin-bottom: 10px; }
.sp-page-head p { color: var(--sp-muted); max-width: 720px; margin: 0; font-size: 1.02rem; }

.sp-content { padding: clamp(32px, 4vw, 56px) 0 clamp(48px, 6vw, 80px); }
.sp-content__inner { max-width: 820px; }
.sp-content h2 { margin-top: 1.6em; }
.sp-content h2:first-child { margin-top: 0; }
.sp-content img { border-radius: 12px; }
.sp-content table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 1.4em 0; }
.sp-content th, .sp-content td { padding: 12px 14px; border-bottom: 1px solid var(--sp-line); text-align: left; }
.sp-content th { background: var(--sp-mist); font-weight: 700; color: var(--sp-ink); }
.sp-content blockquote {
  margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--sp-accent);
  background: var(--sp-accent-soft); border-radius: 0 12px 12px 0;
}
.sp-content blockquote p:last-child { margin-bottom: 0; }

.sp-cols { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.sp-aside { position: sticky; top: calc(var(--sp-header-h) + 24px); display: grid; gap: 20px; }
.sp-aside__card { background: var(--sp-mist); border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 24px; }
.sp-aside__card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.sp-aside__card p { font-size: .88rem; color: var(--sp-muted); }
.sp-aside__card .sp-btn { width: 100%; }

/* Карточка товара */
.sp-product { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.sp-product__gallery { background: var(--sp-mist); border-radius: var(--sp-radius); padding: 24px; border: 1px solid var(--sp-line); }
.sp-product__main-img { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.sp-product__main-img svg, .sp-product__main-img img { max-height: 100%; }
.sp-product__thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.sp-product__thumb { width: 72px; height: 56px; border-radius: 8px; border: 1px solid var(--sp-line); background: #fff; padding: 6px; cursor: pointer; }
.sp-product__thumb.is-active { border-color: var(--sp-accent); }
.sp-product__info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.sp-product__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.sp-chip { font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--sp-mist); color: var(--sp-ink-2); border: 1px solid var(--sp-line); }
.sp-chip--accent { background: var(--sp-accent-soft); color: var(--sp-accent-dark); border-color: rgba(242, 98, 27, .2); }
.sp-product__price-block { background: var(--sp-mist); border-radius: 14px; padding: 20px; margin: 18px 0 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sp-product__price { font-family: var(--sp-font-head); font-weight: 800; font-size: 1.8rem; color: var(--sp-ink); line-height: 1; letter-spacing: -.02em; }
.sp-product__price small { display: block; font-size: .78rem; color: var(--sp-muted); font-weight: 500; margin-top: 4px; letter-spacing: 0; }
.sp-product__specs { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 22px; }
.sp-product__specs th, .sp-product__specs td { padding: 10px 0; border-bottom: 1px solid var(--sp-line); text-align: left; vertical-align: top; }
.sp-product__specs th { color: var(--sp-muted); font-weight: 500; width: 45%; }
.sp-product__specs td { color: var(--sp-ink); font-weight: 600; }
.sp-product__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.sp-product__usp { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.sp-product__usp li { display: flex; gap: 10px; font-size: .88rem; color: var(--sp-muted); margin: 0; }
.sp-product__usp svg { width: 18px; height: 18px; color: var(--sp-ok); flex: none; margin-top: 1px; }

.sp-tabs { margin-top: clamp(32px, 4vw, 56px); }
.sp-tabs__nav { display: flex; gap: 6px; border-bottom: 1px solid var(--sp-line); margin-bottom: 24px; flex-wrap: wrap; }
.sp-tabs__btn {
  background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 18px;
  font-family: var(--sp-font); font-size: .95rem; font-weight: 700; color: var(--sp-muted); cursor: pointer;
  margin-bottom: -1px;
}
.sp-tabs__btn.is-active { color: var(--sp-ink); border-bottom-color: var(--sp-accent); }
.sp-tabs__panel { display: none; }
.sp-tabs__panel.is-active { display: block; }

/* ==========================================================================
   14. Каталог: фильтры и архив
   ========================================================================== */
.sp-archive { display: grid; grid-template-columns: 268px 1fr; gap: 40px; align-items: start; }
.sp-filters { position: sticky; top: calc(var(--sp-header-h) + 24px); }
.sp-filters__group { border-bottom: 1px solid var(--sp-line); padding-bottom: 18px; margin-bottom: 18px; }
.sp-filters__group:last-child { border-bottom: 0; }
.sp-filters h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sp-muted); margin-bottom: 12px; }
.sp-filters ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.sp-filters li { margin: 0; }
.sp-filters a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: .92rem; color: var(--sp-ink-2); }
.sp-filters a:hover { background: var(--sp-mist); color: var(--sp-accent); }
.sp-filters a.is-active { background: var(--sp-accent-soft); color: var(--sp-accent-dark); font-weight: 700; }
.sp-filters a span { color: var(--sp-muted); font-size: .82rem; }

.sp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sp-toolbar__count { font-size: .9rem; color: var(--sp-muted); }
.sp-sort { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--sp-muted); }
.sp-sort select { padding: 8px 34px 8px 12px; font-size: .88rem; border-radius: 8px; }

.sp-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.sp-pagination .page-numbers {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--sp-line); font-weight: 600; font-size: .9rem; color: var(--sp-ink-2);
  padding: 0 12px; background: #fff;
}
.sp-pagination .page-numbers:hover { border-color: var(--sp-accent); color: var(--sp-accent); }
.sp-pagination .page-numbers.current { background: var(--sp-ink); border-color: var(--sp-ink); color: #fff; }

/* ==========================================================================
   15. Подвал
   ========================================================================== */
.sp-footer { background: var(--sp-ink); color: #93a9b6; font-size: .92rem; padding: clamp(44px, 5vw, 68px) 0 0; }
.sp-footer a { color: #c2d4dd; }
.sp-footer a:hover { color: var(--sp-gold); }
.sp-footer__grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1.2fr; gap: 40px; padding-bottom: 40px; }
.sp-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.sp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.sp-footer li { margin: 0; }
.sp-footer p { color: #93a9b6; }
.sp-footer .sp-logo, .sp-footer .sp-logo__white { color: #fff; }
.sp-footer .sp-logo__tag { color: #7f97a5; }
.sp-footer__contact { display: grid; gap: 12px; }
.sp-footer__contact a.sp-phone { font-family: var(--sp-font-head); font-size: 1.24rem; font-weight: 800; color: #fff; }
.sp-footer__contact a.sp-phone:hover { color: var(--sp-gold); }
.sp-footer__contact div { display: flex; gap: 10px; align-items: flex-start; }
.sp-footer__contact svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--sp-accent); }
.sp-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .09); padding: 20px 0 28px; font-size: .8rem; color: #6f8794;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.sp-footer__messengers { display: flex; gap: 10px; margin-top: 16px; }
.sp-footer__messengers a {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .08);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.sp-footer__messengers a:hover { background: var(--sp-accent); }

/* ==========================================================================
   16. Плавающие элементы, уведомления
   ========================================================================== */
.sp-fab { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; gap: 10px; }
.sp-fab a, .sp-fab button {
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sp-shadow); border: 0; cursor: pointer; color: #fff; background: var(--sp-accent);
  transition: transform .18s ease;
}
.sp-fab a:hover, .sp-fab button:hover { transform: scale(1.06); color: #fff; }
.sp-fab svg { width: 24px; height: 24px; }
.sp-fab .sp-fab--wa { background: #25d366; }
.sp-fab .sp-fab--tg { background: #2aabee; }

.sp-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--sp-ink); color: #fff; padding: 14px 22px; border-radius: 999px; font-size: .92rem;
  z-index: 200; transition: .25s ease; box-shadow: var(--sp-shadow-lg);
}
.sp-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   17. Адаптив
   ========================================================================== */
@media (max-width: 1100px) {
  .sp-nav { display: none; }
  .sp-burger { display: inline-flex; margin-left: auto; }
  .sp-header__phone { display: none; }
  .sp-header__actions .sp-btn { padding: 11px 18px; font-size: .9rem; }
  .sp-header__inner { gap: 14px; }
  .sp-hero__inner { grid-template-columns: 1fr; }
  .sp-hero-card { max-width: 520px; }
  .sp-calc { grid-template-columns: 1fr; }
  .sp-product { grid-template-columns: 1fr; }
  .sp-archive { grid-template-columns: 1fr; }
  .sp-filters { position: static; }
  .sp-cols { grid-template-columns: 1fr; }
  .sp-aside { position: static; }
  .sp-cta { grid-template-columns: 1fr; }
  .sp-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .sp-grid--4, .sp-profiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .sp-topbar__list li:nth-child(3), .sp-topbar__list li:nth-child(4) { display: none; }
  .sp-trust__grid { grid-template-columns: 1fr 1fr; }
  .sp-trust__item { border-left: 0; padding: 18px 0; border-top: 1px solid var(--sp-line); }
  .sp-trust__item:nth-child(1), .sp-trust__item:nth-child(2) { border-top: 0; }
  .sp-trust__item:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--sp-line); }
  .sp-grid--3, .sp-grid--4, .sp-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-machine { grid-template-columns: 1fr; }
  .sp-quotes { grid-template-columns: 1fr; }
  .sp-profiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-stats { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .sp-hero__points { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .sp-container { padding: 0 18px; }
  .sp-grid--3, .sp-grid--4, .sp-grid--2, .sp-steps { grid-template-columns: 1fr; }
  .sp-form__grid { grid-template-columns: 1fr; }
  .sp-calc-row { grid-template-columns: 1fr; }
  .sp-footer__grid { grid-template-columns: 1fr; }
  .sp-header__actions .sp-btn--header { display: none; }
  .sp-topbar__inner { justify-content: center; }
  .sp-topbar__list li:first-child { display: none; }
  .sp-topbar__list { flex-wrap: wrap; justify-content: center; gap: 10px 16px; }
  .sp-topbar__inner { flex-direction: column; padding: 8px 0; gap: 4px; }
  .sp-hero__actions .sp-btn { width: 100%; }
  .sp-tabs__btn { padding: 10px 12px; font-size: .88rem; }
  .sp-product__price-block { align-items: flex-start; }
  .sp-fab { right: 14px; bottom: 14px; }
  .sp-fab a, .sp-fab button { width: 48px; height: 48px; }
  .sp-calc__side { order: 2; }
  .sp-header__inner { gap: 12px; }
  .sp-logo__name { font-size: 1.1rem; }
  .sp-logo__tag { font-size: .58rem; letter-spacing: .1em; }
  .sp-logo__mark { width: 38px; height: 38px; }
  .sp-hero__badge { flex-wrap: wrap; font-size: .74rem; }
  .sp-toolbar { flex-direction: column; align-items: flex-start; }
  .sp-product__actions .sp-btn { width: 100%; }
  .sp-calc__form .sp-btn[data-sp-calc-send] { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* Связанные материалы в статье */
.sp-related { margin: clamp(32px, 4vw, 48px) 0 8px; }
.sp-related h2 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin-bottom: 20px; }

.sp-related-card {
  display: flex; gap: 16px; align-items: center; background: #fff;
  border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  color: var(--sp-ink); height: 100%;
}
.sp-related-card:hover { transform: translateY(-2px); box-shadow: var(--sp-shadow-sm); border-color: rgba(242, 98, 27, .35); color: var(--sp-ink); }
.sp-related-card__media {
  width: 104px; height: 78px; flex: none; background: var(--sp-mist);
  border-radius: 8px; padding: 6px; display: flex; align-items: center; justify-content: center;
}
.sp-related-card__media svg { width: 100%; height: 100%; }
.sp-related-card__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sp-related-card__body b { font-size: .95rem; line-height: 1.3; color: var(--sp-ink); }
.sp-related-card__price { font-size: .84rem; color: var(--sp-accent); font-weight: 700; }
.sp-related-card__excerpt { font-size: .84rem; color: var(--sp-muted); line-height: 1.45; }

.sp-related-card--article {
  align-items: flex-start; padding: 18px;
  flex-direction: column; gap: 8px; justify-content: flex-start;
}

@media (max-width: 620px) {
  .sp-related-card { flex-direction: column; align-items: stretch; }
  .sp-related-card__media { width: 100%; height: 96px; }
}

/* ==========================================================================
   19. Служебное (продолжение)
   ========================================================================== */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; display: block; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption { font-size: .82rem; color: var(--sp-muted); text-align: center; margin-top: 6px; }

.sp-empty { text-align: center; padding: 60px 20px; color: var(--sp-muted); }
.sp-hidden { display: none !important; }

.sp-notice {
  padding: 14px 18px; border-radius: 10px; background: var(--sp-accent-soft);
  border: 1px solid rgba(242, 98, 27, .25); color: var(--sp-accent-dark); font-size: .9rem;
}
.sp-notice--ok { background: #e9f7f0; border-color: rgba(23, 138, 90, .25); color: #0f6b46; }
