/* =============================================================
   OFFITEC — main.css
   Основной stylesheet темы
   ============================================================= */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* === CSS VARIABLES === */
:root {
  /* Цвета */
  --color-primary:      #e50000;
  --color-primary-dark: #c40000;
  --color-secondary:    #ffe0e0;
  --color-footer:       #0f2140;

  --color-text:         #1a1a2e;
  --color-text-muted:   #6b7280;
  --color-bg:           #f9fafb;
  --color-border:       #e5e7eb;

  /* Типографика */
  --font-main: 'Inter', system-ui, sans-serif;

  /* Тени */
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 2px 12px rgba(0,0,0,.09);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.13);

  /* Контейнер */
  --container-w: 1200px;
  --container:   1200px;

  /* Скругления */
  --radius:    6px;
  --radius-lg: 12px;

  /* Отступы */
  --gap: 24px;

  /* Типографика (заголовки) */
  --font-heading: var(--font-main);

  /* Акцент и вспомогательные фоны */
  --color-accent:  #f59e0b;
  --color-bg-alt:  #f0f4f8;

  /* Тень без суффикса */
  --shadow: 0 1px 6px rgba(0,0,0,.08);
}
/* Admin bar offset for sticky header */
.admin-bar #site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar #site-header {
    top: 46px;
  }
}


/* === RESET / BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-primary); }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* === LAYOUT === */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.site-main {
  min-height: 60vh;
  padding-block: 40px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.375rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: normal;
  cursor: pointer;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
  border: 2px solid var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
}
.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}
.btn--accent {
  background: var(--color-accent);
  color: #fff;
  border: 2px solid var(--color-accent);
}
.btn--accent:hover {
  background: #d4881a;
  border-color: #d4881a;
  color: #fff;
}
.btn--sm { padding: 7px 16px; font-size: 0.875rem; }
.btn--lg { padding: 14px 32px; font-size: 1.0625rem; }

/* === TOP BAR === */
.top-bar {
  background: rgba(0, 0, 0, 0.82);
  color: rgba(255,255,255,.75);
}
.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  min-height: 40px;
  padding-block: 8px;
}
.top-bar__partner-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: color .2s;
  white-space: nowrap;
}
.top-bar__partner-link:hover { color: #fff; }
.top-bar__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  list-style: none;
}
.top-bar__list a {
  font-size: 0.75rem;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.top-bar__list a:hover { color: #fff; }

/* === SITE HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary) url("/wp-content/uploads/2026/09/main-bg.jpg") 50% 50% / auto no-repeat;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-block: 40px 55px;
  min-height: 250px;
}

/* Logo */
.site-logo {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}
.site-logo img { height: 40px; width: auto; }
.site-logo__text {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.site-logo__tagline {
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255,255,255,.82);
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}
.site-logo--footer .site-logo__text { color: #fff; }

/* Header contacts */
.site-header__contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.header-phone {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  transition: opacity .2s;
  white-space: nowrap;
  letter-spacing: -.5px;
}
.header-phone:hover { opacity: .8; }

/* Outline-white button */
.btn--outline-white {
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  background: transparent;
  transition: background .2s, border-color .2s;
}
.btn--outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  color: #fff;
}

/* Burger */
.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
}
.burger-menu span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.burger-menu.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger-menu.is-active span:nth-child(2) { opacity: 0; }
.burger-menu.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* === MAIN NAV === */
.main-nav {
  background: var(--color-primary);
  border-top: 1px solid rgba(255,255,255,.15);
}
.main-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.main-nav__list li { position: relative; }
.main-nav__list > li > a {
  display: block;
  padding: 13px 20px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  transition: color .2s, background .2s;
}
.main-nav__list > li > a:hover,
.main-nav__list > li.current-menu-item > a {
  color: #fff;
  background: rgba(0,0,0,.18);
}

/* Dropdown */
.main-nav__list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 200;
}
.main-nav__list li:hover > .sub-menu { display: block; }
.main-nav__list .sub-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.875rem;
  color: #1a1a2e;
  transition: background .15s, color .15s;
}
.main-nav__list .sub-menu a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* Mobile nav */
/* Hide banner captions on non-desktop */
@media (max-width: 1024px) {
  .hp-slide__caption {
    display: none;
  }
}

@media (max-width: 860px) {
  .top-bar { display: none; }
  .burger-menu { display: flex; }
  .site-logo__tagline { display: none; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .main-nav.is-open .main-nav__list { flex-direction: column; }
  .main-nav__list > li > a { padding: 14px 20px; border-bottom: 1px solid var(--color-border); }
  .main-nav__list .sub-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding-left: 16px;
  }
}

/* === BREADCRUMBS === */
.breadcrumbs {
  padding-block: 12px 0;
  margin-bottom: 20px;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}
.breadcrumbs li:not(:last-child)::after {
  content: '/';
  margin-left: 4px;
  color: var(--color-border);
}
.breadcrumbs a { color: var(--color-text-muted); transition: color .15s; }
.breadcrumbs a:hover { color: var(--color-text); }
.breadcrumbs li:last-child span { color: var(--color-primary); font-weight: 600; }

/* === PAGE TITLE BLOCK === */
.page-title-block {
  padding-block: 32px 24px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}
.page-title-block h1 { margin-bottom: 8px; }
.page-title-block .page-desc {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* === CATALOG LAYOUT === */
.catalog-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}

.catalog-top-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.catalog-top-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}
.catalog-top-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
}
.catalog-top-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
}
.catalog-top-card__count {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: auto;
}

/* Subcategory list */
.catalog-subcats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}
.catalog-subcat-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--color-text);
  background: var(--color-bg-alt);
  transition: border-color .15s, background .15s, color .15s;
}
.catalog-subcat-link:hover,
.catalog-subcat-link.is-active {
  border-color: var(--color-primary);
  background: var(--color-secondary);
  color: var(--color-primary);
}
.catalog-subcat-link .count {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}

/* === PRODUCT CARD === */
.product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}
.product-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: transform .3s;
}
.product-card:hover .product-card__image img { transform: scale(1.04); }

.product-card__body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.product-card__brand {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--color-primary);
}
.product-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__excerpt {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.badge--new     { background: #e8f5e9; color: #2e7d32; }
.badge--sale    { background: #fff3e0; color: #e65100; }
.badge--used    { background: #f3e5f5; color: #6a1b9a; }

.product-card__footer {
  padding: 0 20px 18px;
  margin-top: auto;
}
.product-card__price {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

/* === SINGLE PRODUCT PAGE === */
.product-single__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}
@media (max-width: 860px) {
  .product-single__top { grid-template-columns: 1fr; gap: 32px; }
}

/* Gallery */
.product-gallery__main {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.product-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}
.product-gallery__thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-gallery__thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  border: 2px solid var(--color-border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s;
  background: var(--color-bg-alt);
}
.product-gallery__thumb:hover,
.product-gallery__thumb.is-active { border-color: var(--color-primary); }
.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

/* Product info */
.product-info__brand {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--color-primary);
  margin-bottom: 8px;
}
.product-info h1 { margin-bottom: 16px; }
.product-info__badges { margin-bottom: 16px; }
.product-info__excerpt {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}
.product-info__price-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* Characteristics table */
.product-specs {
  margin-block: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.product-specs__title {
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 600;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
.product-specs table { width: 100%; border-collapse: collapse; }
.product-specs tr:not(:last-child) td { border-bottom: 1px solid var(--color-border); }
.product-specs td {
  padding: 11px 20px;
  font-size: 0.9rem;
  vertical-align: top;
}
.product-specs td:first-child {
  font-weight: 500;
  color: var(--color-text-muted);
  width: 45%;
}

/* Request form block */
.product-request {
  background: var(--color-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 32px;
}
.product-request__title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.product-request__note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* === CF7 FORM BASE STYLES === */
.wpcf7-form .wpcf7-form-control-wrap { display: block; margin-bottom: 12px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color .2s, box-shadow .2s;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(200,0,26,.12);
}
.wpcf7-form textarea { min-height: 100px; resize: vertical; }
.wpcf7-form input[type="submit"] {
  width: 100%;
  padding: 11px 22px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.wpcf7-form input[type="submit"]:hover { background: var(--color-primary-dark); }

/* === SITE FOOTER === */
.site-footer {
  background: #0f2140;
  color: rgba(255,255,255,.8);
  padding-block: 48px 24px;
  margin-top: 64px;
}
.site-footer a { color: rgba(255,255,255,.75); transition: color .15s; }
.site-footer a:hover { color: #fff; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 24px;
}
.site-footer__brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-block: 12px;
  color: rgba(255,255,255,.6);
}
.footer-phone {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff !important;
}

.footer-nav__list {
  columns: 2;
  gap: 12px;
}
.footer-nav__list li { break-inside: avoid; margin-bottom: 8px; }
.footer-nav__list a { font-size: 0.875rem; }

.site-footer__bottom {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.4);
  text-align: center;
}

/* === UTILITY === */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mt-auto { margin-top: auto; }
.w-100 { width: 100%; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .site-header__contacts .btn { display: none; }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-nav__list { columns: 1; }

  .catalog-top-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .catalog-top-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
}

/* Списки внутри описания товара */
.product-description ul,
.product-description ol,
.product-single__desc-content ul,
.product-single__desc-content ol {
    padding-left: 1.5em;
    margin: 0.75em 0;
}

.product-description ul,
.product-single__desc-content ul {
    list-style: disc;
}

.product-description ol,
.product-single__desc-content ol {
    list-style: decimal;
}

.product-description li,
.product-single__desc-content li {
    margin-bottom: 0.3em;
}


/* ═══════════════════════════════════════════════════════
   HEADER REDESIGN v0.1.10
   ═══════════════════════════════════════════════════════ */

.top-bar, .main-nav, .site-header { display: none !important; }

/* ── Внешний контейнер ── */
.offitec-header {
  background: #e50000 url("/wp-content/uploads/2026/09/main-bg.jpg") 50% 50% / auto no-repeat;
  box-shadow: 0 0 10px rgba(0,0,0,.5);
  position: relative;
  z-index: 100;
}

.offitec-header-wrap { position: relative; }

/* ── Контур карты России ── */
.offitec-header-main::after {
  content: "";
  position: absolute;
  background: url("/wp-content/uploads/2026/09/map.png") 0 0 / contain no-repeat;
  width: 268px;
  height: 144px;
  left: 50%;
  top: 50%;
  transform: translate(-235%, -50%);
  z-index: -1;
  pointer-events: none;
}

/* ── Тёмная навигационная полоса (десктоп) ── */
.offitec-nav-bar {
  background: #1b1b1b;
  position: relative;
  z-index: 3;
}

.offitec-nav-bar .container {
  display: flex;
  align-items: center;
  min-height: 45px;
  padding-block: 0;
  gap: 0;
}

.offitec-nav-bar .main-nav__list {
  display: flex !important;
  flex-wrap: nowrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.offitec-nav-bar .main-nav__list > li > a {
  display: block;
  padding: 0 10px;
  height: 45px;
  line-height: 45px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,.82);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color .2s, background .2s;
  background: none;
}

.offitec-nav-bar .main-nav__list > li > a:hover,
.offitec-nav-bar .main-nav__list > li.current-menu-item > a {
  color: #fff;
  background: rgba(255,255,255,.08);
}

.nav-partner {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding-left: 20px;
  transition: color .2s;
}
.nav-partner:hover { color: #fff; }

/* ── Строка логотип + телефон ── */
.offitec-header-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding-block: 20px 16px;
  position: relative;
  z-index: 2;
  gap: 0 24px;
}

.offitec-logo-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.offitec-logo-block img { display: block; }

.offitec-logo-tagline {
  font-size: 0.75rem;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.offitec-phone {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  letter-spacing: -0.5px;
  margin-left: auto;
  transition: opacity .2s;
}
.offitec-phone:hover { opacity: .85; }

/* ── Бургер-кнопка ── */
.offitec-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 10;
}
.offitec-burger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.offitec-burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.offitec-burger.is-active span:nth-child(2) { opacity: 0; }
.offitec-burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Мобильное выпадающее меню ── */
.offitec-mobile-nav {
  display: none;
  background: rgba(0,0,0,0.88);
  position: relative;
  z-index: 50;
}
.offitec-mobile-nav.is-open { display: block; }

.offitec-mobile-nav .container { padding-block: 8px; }

.offitec-mobile-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.offitec-mobile-nav__list > li > a {
  display: block;
  padding: 13px 0;
  color: rgba(255,255,255,.9);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,.1);
  transition: color .2s;
}
.offitec-mobile-nav__list > li:last-child > a { border-bottom: none; }
.offitec-mobile-nav__list > li > a:hover { color: #fff; }

.offitec-mobile-partner {
  display: block;
  padding: 13px 0;
  color: rgba(255,255,255,.65);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-top: 1px solid rgba(255,255,255,.15);
  transition: color .2s;
}
.offitec-mobile-partner:hover { color: #fff; }

/* ── Адаптив — планшет ── */
@media (max-width: 1199px) {
  .offitec-header-main::after { transform: translate(-200%, -50%); }
}
@media (max-width: 991px) {
  .offitec-header-main::after { transform: translate(-155%, -50%); }
  .offitec-phone { font-size: 1.375rem; }
  .offitec-nav-bar .container { overflow-x: auto; }
}

/* ── Адаптив — мобильный ── */
@media (max-width: 767px) {
  /* Скрыть десктопный навбар */
  .offitec-nav-bar { display: none !important; }

  /* Шапка НЕ прилипает на мобильном — прокручивается вместе со страницей */
  .offitec-header { position: relative; }

  /* Карта — по центру, крупнее, как на оригинале.
     На мобильном рисуем её на обёртке, а не на .offitec-header-main: у той не должно быть
     stacking context (z-index), иначе фиксированный бургер оказывается ПОД открытым меню. */
  .offitec-header-main::after { display: none; }
  .offitec-header-main { z-index: auto; }
  .offitec-header-wrap::after {
    content: "";
    position: absolute;
    background: url("/wp-content/uploads/2026/09/map.png") center center / contain no-repeat;
    width: 420px;
    max-width: 100%;
    height: 225px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.75;
    z-index: 0;
    pointer-events: none;
  }
  .offitec-logo-block, .offitec-phone, .offitec-search--header { position: relative; z-index: 1; }

  /* Весь лэйаут — вертикально по центру */
  .offitec-header-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-block: 28px 22px;
    gap: 12px;
  }

  /* Логотип крупнее */
  .offitec-logo-block { align-items: center; }
  .offitec-logo-block img { width: 220px; height: auto; }

  /* Подпись под логотипом */
  .offitec-logo-tagline { font-size: 0.7rem; }

  /* Телефон */
  .offitec-phone {
    font-size: 1.7rem;
    margin-left: 0;
    letter-spacing: 0;
  }

  /* Скрыть кнопку «Контакты» — она в мобильном меню */
  .offitec-contacts-btn { display: none !important; }

  /* Бургер — фиксированный в правом верхнем углу, видим при любой прокрутке */
  .offitec-burger {
    display: flex;
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1001;
    background: rgba(229, 0, 0, 0.92);
    border-radius: 6px;
    padding: 10px;
  }

  /* Мобильное меню — фиксированный оверлей поверх всего */
  .offitec-mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
  }
  .offitec-mobile-nav.is-open { display: block; }
}


/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */

.site-footer {
  background: #7a7a7a;
  color: #fff;
  font-size: 12px;
  padding: 30px 0 0;
  margin-top: 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 32px;
  margin-bottom: 20px;
}

.site-footer h5 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: 0.03em;
}

.site-footer ul,
.footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer ul li,
.footer__nav-list li {
  margin-bottom: 5px;
}

.site-footer a,
.footer__nav-list a {
  color: #fff;
  font-size: 12px;
  text-decoration: none;
  transition: opacity .2s;
}

.site-footer a:hover,
.footer__nav-list a:hover { opacity: .7; }

.footer__contacts li { line-height: 1.6; }
.footer__contacts strong { font-size: 13px; }

.footer__hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,.2);
  margin: 20px 0 14px;
}

.footer__copy {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,.65);
  padding-bottom: 20px;
  margin: 0;
}

@media (max-width: 991px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}


/* ============================================================
   ГЛАВНАЯ СТРАНИЦА (front-page.php) — v0.1.14
   ============================================================ */

/* --- Слайдер баннеров --- */
.hp-hero {
  position: relative;
  overflow: hidden;
  background: #111;
  margin-top: 6px;
}
.hp-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.hp-slide {
  display: none;
  position: relative;
  width: 100%;
}
.hp-slide.is-active {
  display: block;
}
.hp-slide > a {
  display: block;
}
.hp-slide__img {
  width: 100%;
  aspect-ratio: 1920 / 600;
  object-fit: cover;
  display: block;
}
.hp-slide__caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 60px;
  background: linear-gradient(90deg, rgba(0,0,0,.55) 40%, transparent 100%);
}
.hp-slide__title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hp-slide__sub {
  font-size: 1rem;
  color: rgba(255,255,255,.88);
  margin: 0 0 18px;
  max-width: 520px;
}
.hp-slider__prev,
.hp-slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  transition: background .2s;
}
.hp-slider__prev:hover,
.hp-slider__next:hover { background: rgba(0,0,0,.7); }
.hp-slider__prev { left: 16px; }
.hp-slider__next { right: 16px; }
.hp-slider__dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s;
}
.hp-dot.is-active { background: #fff; }

/* --- Основной layout --- */
.hp-body { padding-top: 32px; padding-bottom: 40px; }
.hp-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
.hp-main { min-width: 0; }

/* --- Заголовки секций --- */
.hp-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e50000;
  display: inline-block;
}
.hp-main section { margin-bottom: 36px; }

/* --- Ключевые направления --- */
.hp-directions__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hp-dir-tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #444;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: border-color .2s, color .2s, background .2s;
  background: #fafafa;
}
.hp-dir-tag:hover {
  border-color: #e50000;
  color: #e50000;
  background: #fff5f5;
}

/* --- Технологические решения --- */
.hp-tech__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.hp-tech__card {
  display: block;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
  background: #fff;
}
.hp-tech__card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transform: translateY(-2px);
}
.hp-tech__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.hp-tech__title {
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #333;
}

/* --- Новинки и акции --- */
.hp-featured__outer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hp-featured__slider-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.hp-featured__slider {
  display: flex;
  gap: 16px;
  width: 100%;
  transition: transform 0.4s ease;
  will-change: transform;
}
.hp-featured__slider .hp-featured__card {
  flex: 0 0 calc(25% - 12px);
  min-width: 0;
}
.hp-featured__prev,
.hp-featured__next {
  position: static;
  transform: none;
  background: #e50000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.hp-featured__prev:hover,
.hp-featured__next:hover { opacity: 1; }
.hp-featured__prev:disabled,
.hp-featured__next:disabled { opacity: 0.3; cursor: default; }
.hp-featured__card {
  display: block;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  position: relative;
  transition: box-shadow .2s;
}
.hp-featured__card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.hp-featured__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f5f5f5;
  display: block;
}
.hp-featured__name {
  padding: 8px 10px;
  font-size: 0.8rem;
  color: #333;
  line-height: 1.3;
}
.product-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  color: #fff;
  z-index: 2;
}
.product-badge--new  { background: #2ecc71; }
.product-badge--sale { background: #e50000; }
.product-badge--used { background: #7f8c8d; }

/* --- Бренды — бегущая строка --- */
@keyframes hp-brands-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.hp-brands__marquee {
  overflow: hidden;
  width: 100%;
}
.hp-brands__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: hp-brands-scroll 22s linear infinite;
}
.hp-brands__track:hover { animation-play-state: paused; }
.hp-brands__item {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 10px;
  background: #fff;
  transition: box-shadow .2s;
  text-decoration: none;
  min-height: 70px;
}
.hp-brands__item:hover { box-shadow: 0 2px 10px rgba(0,0,0,.1); }
.hp-brands__logo {
  max-width: 90px;
  max-height: 50px;
  object-fit: contain;
  filter: grayscale(60%);
  transition: filter .2s;
}
.hp-brands__item:hover .hp-brands__logo { filter: grayscale(0); }
.hp-brands__name { font-size: 0.78rem; color: #555; font-weight: 600; text-align: center; }

/* --- О компании + направления деятельности --- */
.hp-about-section {
  background: #f5f5f5;
  border-radius: 6px;
  padding: 28px;
}
.hp-about-intro {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.75;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}
.hp-about-intro p { margin: 0 0 10px; }
.hp-about-intro p:last-child { margin-bottom: 0; }
.hp-about-intro a { color: #e50000; }
.hp-about-intro strong { color: #222; }
.hp-about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.hp-about-col { font-size: 0.88rem; color: #444; line-height: 1.65; }
.hp-about-col__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  margin-bottom: 12px;
}
.hp-about-col__title {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
}
.hp-about-col__text p { margin: 0 0 8px; }
.hp-about-col__text p:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .hp-about-section { padding: 20px; }
  .hp-about-cols { grid-template-columns: 1fr; }
}

/* --- Новости в основном контенте --- */
.hp-news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.hp-news__card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  transition: box-shadow .2s;
}
.hp-news__card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }
.hp-news__img-wrap { overflow: hidden; }
.hp-news__img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.hp-news__card:hover .hp-news__img { transform: scale(1.04); }
.hp-news__body { padding: 14px; flex: 1; }
.hp-news__date { font-size: 0.75rem; color: #999; display: block; margin-bottom: 6px; }
.hp-news__title { font-size: 0.9rem; font-weight: 600; color: #333; margin: 0; line-height: 1.4; }

/* --- Сайдбар --- */
.hp-sidebar { position: sticky; top: 90px; }
.hp-sidebar__widget {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 18px;
  margin-bottom: 20px;
}
.hp-sidebar__title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #333;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e50000;
}
.hp-sidebar__news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hp-sidebar__news-list li {
  border-bottom: 1px solid #f0f0f0;
  padding: 8px 0;
}
.hp-sidebar__news-list li:last-child { border-bottom: none; }
.hp-sidebar__news-link {
  display: block;
  text-decoration: none;
  color: #444;
  font-size: 0.82rem;
  line-height: 1.4;
  transition: color .2s;
}
.hp-sidebar__news-link time {
  display: block;
  font-size: 0.72rem;
  color: #aaa;
  margin-bottom: 2px;
}
.hp-sidebar__news-link:hover { color: #e50000; }
.hp-register-btn {
  display: block;
  width: 100%;
  background: #e50000;
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 12px 14px;
  border-radius: 4px;
  text-decoration: none;
  line-height: 1.4;
  transition: background .2s;
}
.hp-register-btn:hover { background: #c00; }
.hp-sidebar__form .wpcf7 input,
.hp-sidebar__form .wpcf7 textarea {
  width: 100%;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 0.85rem;
  margin-bottom: 8px;
  box-sizing: border-box;
}
.hp-sidebar__form .wpcf7-submit {
  background: #e50000;
  color: #fff;
  border: none;
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.hp-sidebar__form .wpcf7-submit:hover { background: #c00; }

/* --- Responsive --- */
@media (max-width: 991px) {
  .hp-layout { grid-template-columns: 1fr; }
  .hp-sidebar { position: static; }
}
@media (max-width: 767px) {
  .hp-slide__caption { display: none; }
  .hp-tech__grid { grid-template-columns: repeat(2, 1fr); }
  .hp-featured__grid { grid-template-columns: repeat(2, 1fr); }
  .hp-info-cols { grid-template-columns: 1fr; }
  .hp-news__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hp-brands__grid { grid-template-columns: repeat(3, 1fr); }
  .hp-featured__grid { grid-template-columns: repeat(2, 1fr); }
}


/* --- Featured slider: responsive card widths --- */
@media (max-width: 767px) {
  .hp-featured__slider .hp-featured__card {
    flex: 0 0 calc(33.333% - 11px);
  }
}
@media (max-width: 479px) {
  .hp-featured__slider .hp-featured__card {
    flex: 0 0 calc(50% - 8px);
  }
}

/* --- Hide main-content news slider in single-column mode (sidebar shows news) --- */
@media (max-width: 991px) {
  .hp-sidebar__widget--news { display: none; }
}

/* ============================================================
   Слайдер новостей на главной
   ============================================================ */
.hp-news__outer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hp-news__slider-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.hp-news__slider {
  display: flex;
  gap: 16px;
  transition: transform 0.4s ease;
  will-change: transform;
}
.hp-news__slider .hp-news__card {
  flex: 0 0 calc(33.333% - 11px);
  min-width: 0;
}
.hp-news__prev,
.hp-news__next {
  position: static;
  transform: none;
  background: #e50000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.hp-news__prev:hover,
.hp-news__next:hover { opacity: 1; }
.hp-news__prev:disabled,
.hp-news__next:disabled { opacity: 0.3; cursor: default; }

@media (max-width: 767px) {
  .hp-news__slider .hp-news__card {
    flex: 0 0 calc(100% - 8px);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hp-news__slider .hp-news__card {
    flex: 0 0 calc(50% - 8px);
  }
}

/* ═══════════════════════════════════════════════════════
   СТРАНИЦА НОВОСТЕЙ — архив (home.php)
   ═══════════════════════════════════════════════════════ */

.news-archive { padding: 32px 0 56px; }

.news-archive__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 28px;
}
.news-archive__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  position: relative;
  padding-bottom: 8px;
}
.news-archive__title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 64px; height: 3px;
  background: var(--color-primary);
}

.news-sort {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}
.news-sort__label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}
.news-sort__item {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  padding: 5px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: color .2s, border-color .2s, background .2s;
}
.news-sort__item:hover { color: var(--color-primary); border-color: var(--color-primary); }
.news-sort__item.is-active {
  color: #fff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card__link { display: block; text-decoration: none; color: inherit; height: 100%; }

.news-card__img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f1f2f4;
}
.news-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-card__img--empty {
  display: block;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #ececef 25%, #f5f5f7 25% 50%, #ececef 50% 75%, #f5f5f7 75%);
  background-size: 24px 24px;
}

.news-card__body { padding: 16px 18px 20px; }
.news-card__date {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.news-card__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
  margin: 0 0 10px;
}
.news-card__excerpt {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin: 0 0 14px;
}
.news-card__more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary);
}
.news-card:hover .news-card__more { text-decoration: underline; }

.news-pagination {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}
.news-pagination .page-numbers {
  display: inline-block;
  min-width: 36px;
  padding: 7px 10px;
  margin: 0 3px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.news-pagination .page-numbers:hover { border-color: var(--color-primary); color: var(--color-primary); }
.news-pagination .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.news-pagination .page-numbers.dots { border-color: transparent; }

.news-empty { color: var(--color-text-muted); padding: 40px 0; }


/* ═══════════════════════════════════════════════════════
   СТРАНИЦА НОВОСТИ — статья (single.php)
   ═══════════════════════════════════════════════════════ */

.article-page { padding: 24px 0 56px; }

.article-crumbs {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
.article-crumbs a { color: var(--color-text-muted); text-decoration: none; }
.article-crumbs a:hover { color: var(--color-primary); }
.article-crumbs span { margin: 0 6px; }

/* грид-элементы по умолчанию не сжимаются уже своего min-content */
.article-main,
.article-sidebar { min-width: 0; }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.article-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  margin: 0 0 10px;
}
.article-date {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 22px;
}

/* Фото над текстом — только мобильный */
.article-hero--mobile { display: none; margin-bottom: 22px; }
.article-hero__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.article-content {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text);
  /* в старом контенте встречаются ряды подчёркиваний и текст,
     склеенный &nbsp; — без этого статья уезжает вбок на мобильных */
  overflow-wrap: anywhere;
}
.article-content p { margin: 0 0 1.1em; }
.article-content h2,
.article-content h3 {
  font-weight: 700;
  color: var(--color-text);
  margin: 1.6em 0 .6em;
  line-height: 1.3;
}
.article-content h2 { font-size: 1.3rem; }
.article-content h3 { font-size: 1.1rem; }
.article-content ul,
.article-content ol { padding-left: 1.5em; margin: 0 0 1.1em; }
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: .35em; }
.article-content a { color: var(--color-primary); }
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* Горизонтальные фото в тексте — во всю ширину колонки;
   вертикальные остаются в натуральную величину */
.article-content img.img-wide {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 1.2em;
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.2em;
  font-size: 0.875rem;
}
.article-content th,
.article-content td {
  border: 1px solid var(--color-border);
  padding: 8px 10px;
  text-align: left;
}

/* Обтекание изображений */
.article-content .alignright,
.article-content img.alignright {
  float: right;
  margin: 0 0 1em 1.4em;
  max-width: 50%;
}
.article-content .alignleft,
.article-content img.alignleft {
  float: left;
  margin: 0 1.4em 1em 0;
  max-width: 50%;
}
.article-content .aligncenter,
.article-content img.aligncenter {
  display: block;
  margin: 0 auto 1.2em;
}
.article-content::after { content: ""; display: block; clear: both; }

.article-back { margin-top: 32px; }

/* Кнопки под текстом статьи: «Все новости» слева, «Следующая новость» справа */
.article-nav {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.article-nav__next { margin-left: auto; }
@media (max-width: 560px) {
  .article-nav { flex-direction: column; align-items: stretch; }
  .article-nav .btn { justify-content: center; }
  .article-nav__next { margin-left: 0; }
}

/* ── Боковая колонка ── */
.article-sidebar { position: sticky; top: 90px; }

.article-sidebar__hero { margin-bottom: 24px; }
.article-sidebar__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

.sidebar-widget {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px 20px;
}
.sidebar-widget__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
}
.sidebar-widget__list { list-style: none; padding: 0; margin: 0; }
.sidebar-widget__item { border-bottom: 1px solid var(--color-border); }
.sidebar-widget__item:last-child { border-bottom: none; }
.sidebar-widget__link {
  display: block;
  padding: 11px 0;
  text-decoration: none;
  color: var(--color-text);
  transition: color .2s;
}
.sidebar-widget__link:hover { color: var(--color-primary); }
.sidebar-widget__date {
  display: block;
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  margin-bottom: 3px;
}
.sidebar-widget__text {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ── Адаптив новостей ── */
@media (max-width: 991px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .article-sidebar { display: none; }
  .article-hero--mobile { display: block; }
  .article-title { font-size: 1.4rem; }
}
@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-archive__head { flex-direction: column; align-items: flex-start; }
  .news-sort { margin-left: 0; }
  .article-content .alignright,
  .article-content .alignleft,
  .article-content img.alignright,
  .article-content img.alignleft {
    float: none;
    margin: 0 0 1.2em;
    max-width: 100%;
  }
}

/* --- Новинки: переносы длинных слов на узких карточках --- */
.hp-featured__name { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
@media (max-width: 480px) {
  .hp-featured__name { font-size: 0.72rem; padding: 6px 8px; }
}


/* --- Техрешения: 3 в ряд (место под третье решение), фото сверху 3:2 --- */
.hp-tech__grid { grid-template-columns: repeat(3, 1fr); }
.hp-tech__img { height: auto; aspect-ratio: 3 / 2; }
@media (max-width: 767px) { .hp-tech__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .hp-tech__grid { grid-template-columns: 1fr; } }

/* --- Колонки «Печатное/Послепечатное»: фото сверху, пропорция как у анонса новостей (3:2) --- */
.hp-about-col__img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* --- Ключевые направления: ряды выровнены по правому краю (теги растягиваются по ряду) --- */
.hp-dir-tag {
  flex: 1 1 auto;
  text-align: center;
  white-space: nowrap;
  padding-left: 12px;
  padding-right: 12px;
}
@media (max-width: 480px) {
  .hp-dir-tag { white-space: normal; }
}

/* --- Карточка товара в каталоге: «Цена по запросу» и «Подробнее» по центру --- */
.product-card__footer { text-align: center; }
.product-card__footer .btn { justify-content: center; }

/* --- Плитки категорий с фото (каталог и родительские категории) --- */
.catalog-subcats--cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.catalog-subcat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.catalog-subcat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.catalog-subcat-card__img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f5f5f7;
  overflow: hidden;
}
.catalog-subcat-card__img {
  position: absolute;
  top: 12px; left: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: contain;
  display: block;
  transition: transform .3s;
}
.catalog-subcat-card:hover .catalog-subcat-card__img { transform: scale(1.04); }
.catalog-subcat-card__name {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  padding: 12px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}
@media (max-width: 1024px) { .catalog-subcats--cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .catalog-subcats--cards { grid-template-columns: repeat(2, 1fr); gap: 12px; } .catalog-subcat-card__name { font-size: 0.8rem; padding: 10px; } }

/* ═══════════════════════════════════════════════════════
   ОФОРМЛЕНИЕ КАРТОЧЕК v0.1.35
   Фото товаров сняты на белом — поле для фото белое,
   общий фон страницы чуть темнее, чтобы белые карточки читались.
   ═══════════════════════════════════════════════════════ */
:root {
  --color-bg:     #eef0f3;   /* было #f9fafb */
  --color-bg-alt: #ffffff;
  --card-line:    #e6e8ec;
  --card-shadow:       0 1px 2px rgba(16,24,40,.04), 0 1px 3px rgba(16,24,40,.06);
  --card-shadow-hover: 0 10px 24px rgba(16,24,40,.10), 0 2px 6px rgba(16,24,40,.06);
}

/* Карточка товара в каталоге */
.product-card {
  background: #fff;
  border-color: var(--card-line);
  box-shadow: var(--card-shadow);
}
.product-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: var(--card-line);
}
.product-card__image {
  background: #fff;
  border-bottom: 1px solid var(--card-line);
  padding: 14px;
}
.product-card__image img { object-fit: contain; }

/* Плитки категорий */
.catalog-subcat-card {
  border-color: var(--card-line);
  box-shadow: var(--card-shadow);
}
.catalog-subcat-card:hover { box-shadow: var(--card-shadow-hover); }
.catalog-subcat-card__img-wrap {
  background: #fff;
  border-bottom: 1px solid var(--card-line);
}

/* «Новинки и акции» на главной */
.hp-featured__card {
  border-color: var(--card-line);
  box-shadow: var(--card-shadow);
}
.hp-featured__img {
  background: #fff;
  border-bottom: 1px solid var(--card-line);
  padding: 10px;
}

/* Логотипы брендов, виджеты сайдбара, блок «о компании» — на общем фоне */
.hp-brands__item,
.hp-sidebar__widget,
.hp-tech__card,
.news-card,
.sidebar-widget {
  border-color: var(--card-line);
  box-shadow: var(--card-shadow);
}
.hp-about-section {
  background: #fff;
  border: 1px solid var(--card-line);
  box-shadow: var(--card-shadow);
}

/* --- v0.1.36: светлая подложка текстовой части карточек + воздух под заголовками --- */
:root { --card-text-bg: #f6f7f9; }
.product-card__body,
.product-card__footer { background: var(--card-text-bg); }
.product-card__body { padding-top: 16px; }
.catalog-subcat-card__name { background: var(--card-text-bg); }
.hp-featured__name { background: var(--card-text-bg); }

/* Отступ между заголовком/описанием категории и сеткой */
.catalog-cat__title { margin-bottom: 8px; }
.catalog-cat__desc  { margin-bottom: 0; }
.catalog-cat__title + .catalog-subcats--cards,
.catalog-cat__title + .product-grid,
.catalog-cat__desc  + .catalog-subcats--cards,
.catalog-cat__desc  + .product-grid { margin-top: 32px; }


/* =============================================================
   КАРТОЧКА ТОВАРА v2 (v0.2.0)
   ============================================================= */
.product-single {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "photo info" "thumbs .";
  gap: 14px 48px;
  align-items: stretch;
  margin: 8px 0 40px;
}
.product-single > .product-gallery__main { grid-area: photo; margin: 0; }
.product-single > .product-info { grid-area: info; display: flex; flex-direction: column; min-width: 0; }
.product-single > .product-gallery__thumbs { grid-area: thumbs; }
@media (max-width: 900px) {
  .product-single { grid-template-columns: 1fr; grid-template-areas: "photo" "thumbs" "info"; gap: 14px; }
}

/* фото */
.product-gallery__main {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--card-line, var(--color-border));
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow, 0 2px 8px rgba(15, 23, 42, .06)), 0 12px 32px rgba(15, 23, 42, .08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  cursor: zoom-in;
  transition: box-shadow .2s;
}
.product-gallery__main:hover { box-shadow: var(--card-shadow-hover, 0 4px 12px rgba(15, 23, 42, .1)), 0 18px 40px rgba(15, 23, 42, .14); }
.product-gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 0; transition: transform .25s, padding .2s; }
/* рендеры на белом фоне получают немного воздуха (класс ставит JS по цвету углов) */
.product-gallery__main.is-white-bg img { padding: 14px; }
.product-gallery__main:hover img { transform: scale(1.03); }
.product-gallery__zoom {
  position: absolute; right: 12px; bottom: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--color-text-muted); pointer-events: none;
  opacity: 0; transition: opacity .2s;
}
.product-gallery__main:hover .product-gallery__zoom { opacity: 1; }
@media (hover: none) { .product-gallery__zoom { opacity: 1; } }

/* лайтбокс */
.lightbox { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .88); }
.lightbox__figure { position: relative; margin: 0; max-width: min(96vw, 1400px); max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox__img { max-width: 96vw; max-height: 86vh; width: auto; height: auto; background: #fff; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox__caption { color: rgba(255,255,255,.75); font-size: .875rem; }
.lightbox__close {
  position: absolute; top: 14px; right: 18px; z-index: 2;
  background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; opacity: .85;
}
.lightbox__close:hover { opacity: 1; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; font-size: 40px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
@media (max-width: 700px) {
  .lightbox__nav { width: 42px; height: 42px; font-size: 32px; }
  .lightbox__nav--prev { left: 6px; } .lightbox__nav--next { right: 6px; }
}
.product-gallery__badges {
  position: absolute; top: 14px; left: 14px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.product-gallery__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.product-gallery__thumb {
  width: 84px; height: 84px;
  border-radius: var(--radius);
  border: 2px solid var(--color-border);
  background: #fff; overflow: hidden; cursor: pointer; padding: 0;
  transition: border-color .15s;
}
.product-gallery__thumb:hover,
.product-gallery__thumb.is-active { border-color: var(--color-primary); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; display: block; }

/* инфо справа */
.product-info__brand {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: 10px;
}
.product-info__brand a { color: inherit; }
.product-info__title { font-size: 1.6rem; line-height: 1.25; margin: 0 0 14px; }
.product-info__rating {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 16px; color: var(--color-text-muted); font-size: 0.875rem; text-decoration: none;
}
.product-info__short { font-size: 1rem; line-height: 1.7; color: var(--color-text); margin-bottom: 22px; }
.product-info__short p:last-child { margin-bottom: 0; }
.product-info__bottom { margin-top: auto; padding-top: 16px; }
.product-info__meta { font-size: 1rem; color: var(--color-text); line-height: 1.6; margin-bottom: 16px; }
.product-info__request { display: flex; width: 100%; justify-content: center; }

/* звёзды */
.stars { display: inline-flex; gap: 1px; color: #d5d9e0; font-size: 1.05rem; line-height: 1; }
.stars__i.is-on { color: #f5a623; }
.stars__i.is-half { color: #f5a623; opacity: .55; }

/* вкладки */
.product-tabs { margin-bottom: 48px; }
.product-tabs__nav {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 28px;
}
.product-tabs__btn {
  background: none; border: 0; cursor: pointer;
  padding: 12px 20px; margin-bottom: -2px;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.product-tabs__btn:hover { color: var(--color-text); }
.product-tabs__btn.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.product-tabs__panel { display: none; }
.product-tabs__panel.is-active { display: block; }
.product-tabs__empty { color: var(--color-text-muted); }
.product-description { line-height: 1.7; }
.product-description p { margin: 0 0 1em; }
.product-description h2, .product-description h3 { margin: 1.4em 0 .6em; line-height: 1.3; }
.product-description h2 { font-size: 1.2rem; }
.product-description h3 { font-size: 1.05rem; }
.product-description img { max-width: 100%; height: auto; }
.product-description table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .9rem; }
.product-description td, .product-description th { border: 1px solid var(--color-border); padding: 8px 10px; }

/* характеристики — правила оформления таблиц */
.product-specs { width: 100%; }
.product-specs .specs-table {
  width: 100% !important;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 0.9375rem;
  table-layout: auto;
}
.product-specs .specs-table td,
.product-specs .specs-table th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
  font-weight: 400;
  width: auto !important;
}
.product-specs .specs-table tr:last-child td { border-bottom: 0; }
.product-specs .specs-table td:first-child,
.product-specs .specs-table td:first-child * { font-weight: 400; color: var(--color-text); }
.product-specs .specs-table:not(.specs-table--multi) td:last-child:not(:first-child),
.product-specs .specs-table:not(.specs-table--multi) td:last-child:not(:first-child) * {
  text-align: right;
  font-weight: 700;
}
.product-specs .specs-table--multi td:not(:first-child),
.product-specs .specs-table--multi th:not(:first-child) { text-align: center; }
.product-specs .specs-table--multi .specs-table__head td,
.product-specs .specs-table--multi .specs-table__head th,
.product-specs .specs-table--multi .specs-table__head * { font-weight: 700; background: var(--color-bg-alt); }
.product-specs .specs-table td[colspan] { font-weight: 700; background: var(--color-bg-alt); text-align: left; }
.product-specs .specs-table td[colspan] * { text-align: left; font-weight: 700; margin: 0; }
.product-specs .specs-table td p, .product-specs .specs-table td div { margin: 0; }
.product-specs p { margin: 0 0 1em; }
@media (max-width: 600px) {
  .product-specs { overflow-x: auto; }
  .product-specs .specs-table { font-size: .875rem; }
  .product-specs .specs-table td, .product-specs .specs-table th { padding: 8px 10px; }
}

/* видео */
.product-videos { display: grid; grid-template-columns: 1fr; gap: 24px; }
.product-videos--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .product-videos--grid { grid-template-columns: 1fr; } }
.product-videos__item { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius-lg); overflow: hidden; }
.product-videos__item iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* отзывы */
.reviews { max-width: 820px; }
.reviews__list { margin-bottom: 36px; }
.review { padding: 18px 0; border-bottom: 1px solid var(--color-border); }
.review:first-child { padding-top: 0; }
.review__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.review__author { font-weight: 700; }
.review__date { color: var(--color-text-muted); font-size: .875rem; margin-left: auto; }
.review__text p { margin: 0 0 .6em; }
.review-form__title { font-size: 1.15rem; margin: 0 0 16px; }
.review-form__row { margin-bottom: 14px; }
.review-form__row label, .review-form__label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.review-form__row input[type="text"], .review-form__row input[type="email"], .review-form__row textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--color-border); border-radius: var(--radius);
  font: inherit; font-size: .9375rem; background: #fff;
}
.review-form__row input:focus, .review-form__row textarea:focus { outline: none; border-color: var(--color-primary); }
.review-form .req { color: var(--color-primary); }
.review-form__note { font-size: .8125rem; color: var(--color-text-muted); margin: 10px 0 0; }
.review-form__submit .btn { justify-content: center; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label { font-size: 1.7rem; line-height: 1; color: #d5d9e0; cursor: pointer; transition: color .1s; }
.star-input label:hover, .star-input label:hover ~ label,
.star-input input:checked ~ label { color: #f5a623; }

/* похожие / сопутствующие */
.product-related { margin: 0 0 48px; }
.product-related__title { font-size: 1.3rem; margin: 0 0 20px; }
.product-grid--4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .product-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px)  { .product-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

/* модальное окно */
.modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.modal__box {
  position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: #fff; border-radius: var(--radius-lg); padding: 28px 28px 24px;
  box-shadow: var(--shadow-lg);
}
.modal__close {
  position: absolute; top: 10px; right: 12px;
  background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--color-text-muted);
}
.modal__close:hover { color: var(--color-text); }
.modal__title { font-size: 1.3rem; margin: 0 0 6px; }
.modal__title { margin-bottom: 18px; }
.modal__body .wpcf7-form label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 12px; }
.modal__body .wpcf7-form input[type="submit"],
.modal__body .wpcf7-form .wpcf7-submit {
  display: inline-flex; align-items: center; justify-content: center; width: 100%;
  padding: 10px 22px; font: inherit; font-size: 0.9375rem; font-weight: 600;
  background: var(--color-primary); border: 2px solid var(--color-primary); color: #fff;
  border-radius: var(--radius); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.modal__body .wpcf7-form input[type="submit"]:hover,
.modal__body .wpcf7-form .wpcf7-submit:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
/* модель подставляется в письмо автоматически — поле в окне не показываем */
.modal__body .wpcf7-form label:has(input[name="product-name"]) { display: none; }
.modal__body .wpcf7-form textarea { height: 90px; min-height: 90px; }
body.modal-open { overflow: hidden; }


/* =============================================================
   ИНФОРМАЦИОННЫЕ СТРАНИЦЫ (v0.3.0): О компании, Контакты,
   Партнёрская сеть, Производители, FAQ, Карта сайта, Акции…
   ============================================================= */
.page-main { padding-bottom: 56px; }
.page-head { margin: 8px 0 28px; max-width: 900px; }
.page-title { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; }
.page-lead { font-size: 1.05rem; line-height: 1.6; color: var(--color-text-muted); margin: 0; }
.page-lead a { color: var(--color-primary); }
.section-title { font-size: 1.35rem; margin: 0 0 18px; }
.page-article { max-width: 900px; }
.page-content { font-size: 1rem; line-height: 1.75; color: var(--color-text); overflow-wrap: anywhere; }
.page-content p { margin: 0 0 1.1em; }
.page-content h2 { font-size: 1.35rem; margin: 1.8em 0 .7em; line-height: 1.3; }
.page-content h3 { font-size: 1.1rem; margin: 1.5em 0 .6em; line-height: 1.3; }
.page-content h2:first-child, .page-content h3:first-child { margin-top: 0; }
.page-content ul, .page-content ol { padding-left: 1.5em; margin: 0 0 1.2em; }
.page-content ul { list-style: disc; } .page-content ol { list-style: decimal; }
.page-content li { margin-bottom: .4em; }
.page-content a { color: var(--color-primary); }
.page-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.page-content img.img-wide { display: block; width: 100%; margin: 0 0 1.2em; }
.page-content table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .9375rem; }
.page-content th, .page-content td { border: 1px solid var(--color-border); padding: 8px 10px; text-align: left; vertical-align: top; }
.page-content blockquote { border-left: 3px solid var(--color-primary); padding: 4px 0 4px 18px; margin: 0 0 1.2em; color: var(--color-text-muted); }
.page-content .lead-block {
  background: #fff; border: 1px solid var(--card-line, var(--color-border)); border-radius: var(--radius-lg);
  padding: 22px 26px; margin: 0 0 1.6em; font-size: 1.05rem;
}
.page-content .steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 10px; }
.page-content .steps li { position: relative; padding: 12px 16px 12px 56px; background: #fff; border: 1px solid var(--card-line, var(--color-border)); border-radius: var(--radius); margin: 0; }
.page-content .steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 14px; top: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--color-primary); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.page-content .brand-line { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.page-content .brand-line li { background: var(--color-bg-alt); border-radius: 999px; padding: 6px 14px; margin: 0; font-weight: 600; font-size: .9rem; }
.empty-state { background: #fff; border: 1px dashed var(--color-border); border-radius: var(--radius-lg); padding: 28px; color: var(--color-text-muted); }
.pagination { margin: 28px 0; }

/* контакты */
.contacts-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: stretch; margin-bottom: 48px; }
@media (max-width: 900px) { .contacts-grid { grid-template-columns: 1fr; } }
.contacts-card { background: #fff; border: 1px solid var(--card-line, var(--color-border)); border-radius: var(--radius-lg); padding: 26px 28px; box-shadow: var(--card-shadow, none); }
.contacts-card__title { font-size: 1.2rem; margin: 0 0 16px; }
.contacts-card__sub { font-size: .95rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted); margin: 22px 0 10px; }
.contacts-list { margin: 0; }
.contacts-list > div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--color-border); }
.contacts-list > div:last-child { border-bottom: 0; }
.contacts-list dt { color: var(--color-text-muted); font-size: .875rem; padding-top: 2px; }
.contacts-list dd { margin: 0; font-weight: 500; line-height: 1.5; }
.contacts-list a { color: var(--color-text); }
.contacts-list a:hover { color: var(--color-primary); }
.contacts-route p { margin: 0; color: var(--color-text); line-height: 1.6; }
.contacts-map { min-height: 380px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--card-line, var(--color-border)); background: var(--color-bg-alt); }
.contacts-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.contacts-partners { margin-bottom: 48px; }
.contacts-partners__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.contacts-partners__head .section-title { margin: 0; }
.city-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.city-chip { display: inline-block; padding: 7px 14px; background: #fff; border: 1px solid var(--color-border); border-radius: 999px; font-size: .9rem; color: var(--color-text); transition: border-color .15s, color .15s; }
.city-chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.city-chip--offitec { border-color: var(--color-primary); color: var(--color-primary); font-weight: 600; }
.contacts-form__box { background: #fff; border: 1px solid var(--card-line, var(--color-border)); border-radius: var(--radius-lg); padding: 26px 28px; max-width: 720px; }
.contacts-form__box .wpcf7-form label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 14px; }
.contacts-form__box .wpcf7-form input[type="submit"], .contacts-form__box .wpcf7-form .wpcf7-submit {
  display: inline-flex; align-items: center; justify-content: center; padding: 10px 26px; font: inherit; font-size: .9375rem; font-weight: 600;
  background: var(--color-primary); border: 2px solid var(--color-primary); color: #fff; border-radius: var(--radius); cursor: pointer;
}
.contacts-form__box .wpcf7-form input[type="submit"]:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); }
.feedback-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .feedback-grid { grid-template-columns: 1fr; } }
.feedback-grid .contacts-form__box { max-width: none; }
.contacts-card--aside .btn { margin-top: 18px; }

/* партнёрская сеть */
.partners-intro { max-width: 900px; margin-bottom: 24px; }
.partners-search { max-width: 480px; margin: 0 0 22px; }
.partners-search__label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: 6px; }
.partners-search__input { width: 100%; padding: 11px 16px; border: 1px solid var(--color-border); border-radius: var(--radius); font: inherit; font-size: 1rem; background: #fff; }
.partners-search__input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(229,0,0,.08); }
.city-grid { list-style: none; padding: 0; margin: 0 0 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.city-card { display: block; height: 100%; padding: 14px 16px; background: #fff; border: 1px solid var(--card-line, var(--color-border)); border-radius: var(--radius-lg); color: var(--color-text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.city-card:hover { border-color: var(--color-primary); box-shadow: var(--card-shadow-hover, 0 4px 14px rgba(15,23,42,.1)); transform: translateY(-1px); }
.city-card__name { display: block; font-weight: 700; margin-bottom: 4px; }
.city-card__meta { display: block; font-size: .8rem; color: var(--color-text-muted); }
.city-card--offitec { border-left: 4px solid var(--color-primary); }
.city-grid__empty { color: var(--color-text-muted); }
.partners-map { margin: 8px 0 0; }
.partners-map img { width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--card-line, var(--color-border)); }
.partners-map figcaption { font-size: .85rem; color: var(--color-text-muted); margin-top: 8px; }
.partners-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .partners-layout { grid-template-columns: 1fr; } }
.partners-list { display: grid; gap: 18px; }
.partner-card { background: #fff; border: 1px solid var(--card-line, var(--color-border)); border-radius: var(--radius-lg); padding: 22px 26px; }
.partner-card--offitec { border-left: 4px solid var(--color-primary); }
.partner-card__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.partner-card__name { font-size: 1.15rem; margin: 0; }
.partner-card__badge { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; background: var(--color-bg-alt); color: var(--color-text-muted); }
.partner-card__badge--offitec { background: rgba(229,0,0,.08); color: var(--color-primary); }
.partner-card__badge--master { background: #fff4e0; color: #b45309; }
.partner-card__list { margin: 0; }
.partner-card__list > div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 6px 0; }
.partner-card__list dt { color: var(--color-text-muted); font-size: .875rem; padding-top: 1px; }
.partner-card__list dd { margin: 0; line-height: 1.5; }
.partner-card__list a { color: var(--color-text); }
.partner-card__list a:hover { color: var(--color-primary); }
.partner-card__route { margin-top: 12px; border-top: 1px solid var(--color-border); padding-top: 10px; }
.partner-card__route summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--color-primary); }
.partner-card__route p { margin: 10px 0; color: var(--color-text); line-height: 1.6; }
.partner-card__map { max-width: 100%; height: auto; border-radius: var(--radius); margin-top: 8px; }
.partners-aside { position: sticky; top: 90px; display: grid; gap: 18px; }
.partners-aside__box { background: #fff; border: 1px solid var(--card-line, var(--color-border)); border-radius: var(--radius-lg); padding: 20px 22px; }
.partners-aside__title { font-size: 1rem; margin: 0 0 12px; }
.city-links { list-style: none; padding: 0; margin: 0 0 14px; columns: 2; column-gap: 16px; font-size: .9rem; }
.city-links li { break-inside: avoid; padding: 3px 0; }
.city-links a { color: var(--color-text); }
.city-links a:hover { color: var(--color-primary); }
.partners-aside__all { width: 100%; justify-content: center; }
.partners-aside__box--hq p { margin: 0; line-height: 1.7; }
.partners-aside__box--hq a { color: var(--color-text); font-weight: 500; }

/* производители */
.alpha-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; max-width: 100%; }
.alpha-nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); font-weight: 600; color: var(--color-text); }
.alpha-nav a:hover { border-color: var(--color-primary); color: var(--color-primary); }
.brand-group { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--color-border); }
.brand-group__letter { font-size: 1.6rem; margin: 0; color: var(--color-primary); }
.brand-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 800px) { .brand-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .brand-group { grid-template-columns: 48px 1fr; } }
.brand-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border: 1px solid var(--card-line, var(--color-border)); border-radius: var(--radius); color: var(--color-text); transition: border-color .15s; }
.brand-item:hover { border-color: var(--color-primary); }
.brand-item__name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.brand-item { min-width: 0; }
.brand-item__count { font-size: .8rem; color: var(--color-text-muted); background: var(--color-bg-alt); border-radius: 999px; padding: 2px 9px; }
.brand-about { margin: 0 0 36px; }
.brand-about__text { max-width: 900px; line-height: 1.75; }
.brand-about--cols .brand-about__text { max-width: none; columns: 2; column-gap: 48px; column-fill: balance; }
.brand-about__text p { margin: 0 0 1em; break-inside: auto; orphans: 2; widows: 2; }
.brand-about__text p:last-child { margin-bottom: 0; }
.brand-about__text .brand-about__h { font-weight: 600; color: var(--color-text, #1f2430); margin: 1.4em 0 .6em; break-after: avoid; }
.brand-about__text .brand-about__h:first-child { margin-top: 0; }
@media (max-width: 800px) { .brand-about--cols .brand-about__text { columns: 1; } }
.brand-products__title { margin-bottom: 20px; }
.brand-back { margin-top: 28px; }

/* FAQ */
.faq-search { max-width: 480px; margin-bottom: 20px; }
.faq-list { max-width: 900px; display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--card-line, var(--color-border)); border-radius: var(--radius-lg); padding: 0 22px; }
.faq-item__q { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; list-style: none; position: relative; }
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.3rem; color: var(--color-primary); font-weight: 400; }
.faq-item[open] .faq-item__q::after { content: "–"; }
.faq-item__a { padding: 0 0 18px; line-height: 1.7; }
.faq-item__a p { margin: 0 0 .8em; }
.faq-item__a a { color: var(--color-primary); }

/* карта сайта */
.sitemap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 900px) { .sitemap { grid-template-columns: 1fr; } }
.sitemap h2 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--color-primary); }
.sitemap h2 + .sitemap__list + h2 { margin-top: 28px; }
.sitemap__list { list-style: none; padding: 0; margin: 0 0 8px; line-height: 1.7; }
.sitemap__list li { margin-bottom: 4px; }
.sitemap__list a { color: var(--color-text); }
.sitemap__list a:hover { color: var(--color-primary); }
.sitemap__list ul { list-style: none; padding-left: 16px; margin: 2px 0 8px; font-size: .9rem; color: var(--color-text-muted); }
.sitemap__list--inline { display: flex; flex-wrap: wrap; gap: 4px 14px; }

/* технологические решения */
.solution-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 8px; }
@media (max-width: 760px) { .solution-cards { grid-template-columns: 1fr; } }
.solution-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--card-line, var(--color-border)); border-radius: var(--radius-lg); overflow: hidden; color: var(--color-text); transition: box-shadow .15s, border-color .15s; }
.solution-card:hover { border-color: var(--color-primary); box-shadow: var(--card-shadow-hover, 0 4px 14px rgba(15,23,42,.1)); }
.solution-card__img { display: block; aspect-ratio: 3 / 2; background: var(--color-bg-alt); }
.solution-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.solution-card__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 20px; }
.solution-card__title { font-size: 1.1rem; font-weight: 700; line-height: 1.3; }
.solution-card__text { font-size: .9375rem; color: var(--color-text-muted); line-height: 1.6; }
.solution-card__more { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--color-primary); }
.page-content .kit { background: #fff; border: 1px solid var(--card-line, var(--color-border)); border-radius: var(--radius-lg); padding: 20px 24px; margin: 0 0 18px; }
.page-content .kit h3 { margin: 0 0 8px; }
.page-content .kit ul, .page-content .kit ol { margin-bottom: 0; }
.page-content .kit-figs { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.page-content .kit-figs img { max-height: 110px; width: auto; border-radius: 0; }

/* =============================================================
   Поиск по каталогу (v0.4.0)
   ============================================================= */
.offitec-search { position: relative; display: flex; align-items: stretch; width: 100%; }
.offitec-search__input {
  flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 12px 0 16px;
  border: 1px solid #d0d5dd; border-right: 0; border-radius: 6px 0 0 6px;
  background: #fff; color: var(--color-text); font: inherit; font-size: .95rem;
  -webkit-appearance: none; appearance: none; outline: none;
}
.offitec-search__input::placeholder { color: transparent; }
.offitec-search__ph {
  position: absolute; left: 17px; top: 0; height: 44px; line-height: 44px; font-size: .95rem; color: #9aa1ab;
  pointer-events: none; white-space: nowrap; overflow: hidden; max-width: calc(100% - 80px); text-overflow: ellipsis;
}
.offitec-search__ph strong { font-weight: 700; color: #6b7280; }
.offitec-search__input:not(:placeholder-shown) + .offitec-search__ph { display: none; }
.offitec-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.offitec-search__input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(229,0,0,.18); }
.offitec-search__btn {
  flex: 0 0 auto; width: 50px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 0 6px 6px 0; background: var(--color-primary); color: #fff; cursor: pointer; transition: background .2s;
}
.offitec-search__btn:hover { background: var(--color-primary-dark); }

/* в шапке: вторая строка, справа под телефоном; полупрозрачное поле на красном */
.offitec-search--header { flex: 0 0 100%; max-width: none; margin: 10px 0 0; justify-content: flex-end; order: 10; }
.offitec-search--header .offitec-search__input {
  flex: 0 1 400px; height: 38px; font-size: .9rem;
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.45); border-right: 0; color: #fff;
}
.offitec-search--header .offitec-search__ph { height: 38px; line-height: 38px; font-size: .9rem; color: rgba(255,255,255,.85); left: auto; right: 54px; max-width: 386px; width: calc(100% - 54px); box-sizing: border-box; padding-left: 13px; }
.offitec-search--header .offitec-search__ph strong { color: #fff; }
.offitec-search--header:focus-within .offitec-search__ph { color: #9aa1ab; }
.offitec-search--header:focus-within .offitec-search__ph strong { color: #6b7280; }
.offitec-search--header .offitec-search__input:focus { background: #fff; color: var(--color-text); border-color: #fff; box-shadow: none; }
.offitec-search--header .offitec-search__btn {
  height: 38px; width: 42px; color: #fff;
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.45); border-left: 0;
}
.offitec-search--header .offitec-search__btn:hover { background: rgba(0,0,0,.4); }
.offitec-search--header:focus-within .offitec-search__btn { background: #fff; border-color: #fff; color: var(--color-primary); }
.offitec-search--header .offitec-search__drop { left: auto; width: 442px; max-width: 100%; }

/* выпадающие подсказки */
.offitec-search__drop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 1200;
  background: #fff; color: var(--color-text); border: 1px solid var(--color-border); border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0,0,0,.18); overflow: hidden; text-align: left;
}
.offitec-search__drop[hidden] { display: none; }
.offitec-search__item {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; text-decoration: none; color: inherit;
  border-top: 1px solid var(--color-border); line-height: 1.3;
}
.offitec-search__item:first-child { border-top: 0; }
.offitec-search__item:hover, .offitec-search__item.is-active { background: #fff3f3; }
.offitec-search__thumb {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 4px; border: 1px solid var(--color-border); background: #fff;
  object-fit: contain; display: block;
}
.offitec-search__thumb--empty { background: #f3f4f6; }
.offitec-search__name { font-size: .92rem; font-weight: 500; }
.offitec-search__drop mark { background: none; color: var(--color-primary); font-weight: 700; }
.offitec-search__meta { display: block; font-size: .78rem; color: var(--color-text-muted); margin-top: 2px; }
.offitec-search__item--term .offitec-search__name { font-weight: 600; }
.offitec-search__term-label {
  flex: 0 0 auto; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-text-muted);
  border: 1px solid var(--color-border); border-radius: 4px; padding: 2px 6px; margin-left: auto;
}
.offitec-search__all {
  display: block; padding: 10px 12px; text-align: center; font-size: .9rem; font-weight: 600; color: var(--color-primary);
  border-top: 1px solid var(--color-border); background: #fafafa; text-decoration: none;
}
.offitec-search__all:hover, .offitec-search__all.is-active { background: #fff3f3; }
.offitec-search__empty { padding: 12px; font-size: .9rem; color: var(--color-text-muted); }

/* страница результатов */
.search-head { margin-bottom: 28px; }
.search-head .page-title { margin-bottom: 16px; }
.offitec-search--page { max-width: 720px; }
.offitec-search--page .offitec-search__input { height: 50px; font-size: 1.05rem; }
.offitec-search--page .offitec-search__btn { height: 50px; width: 58px; }
.offitec-search--page .offitec-search__ph { height: 50px; line-height: 50px; font-size: 1.05rem; }
.search-head__summary { margin: 14px 0 0; color: var(--color-text-muted); }
.search-head__summary strong { color: var(--color-text); }
.search-empty { max-width: 720px; line-height: 1.7; }
.search-empty a { color: var(--color-primary); }

@media (max-width: 767px) {
  .offitec-search--header { margin: 8px 0 0; order: 10; justify-content: stretch; }
  .offitec-search--header .offitec-search__input { flex: 1 1 auto; height: 42px; }
  .offitec-search--header .offitec-search__btn { height: 42px; width: 48px; }
  .offitec-search--header .offitec-search__ph { height: 42px; line-height: 42px; left: 0; right: auto; width: calc(100% - 60px); max-width: none; padding-left: 17px; }
  .offitec-search--header .offitec-search__drop { left: 0; width: auto; }
  .offitec-search__drop { max-height: 60vh; overflow-y: auto; }
}

/* =============================================================
   Мобильный проход (v0.4.1)
   ============================================================= */
/* пагинация — единый стиль везде (категории, бренды, поиск) */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0 8px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px;
  border: 1px solid var(--color-border); border-radius: 6px; background: #fff; color: var(--color-text); font-weight: 600; font-size: .9rem; text-decoration: none;
}
.pagination a.page-numbers:hover { border-color: var(--color-primary); color: var(--color-primary); }
.pagination .page-numbers.current { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; background: none; min-width: 24px; padding: 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination nav.pagination { margin: 0; }
.pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* выровненный по ширине текст из старого контента → по левому краю (везде, решение пользователя 07.09) */
.entry-content [align="justify"], .entry-content [style*="justify"],
.article-content [align="justify"], .article-content [style*="justify"],
.product-description [align="justify"], .product-description [style*="justify"],
.product-info__short [align="justify"], .product-info__short [style*="justify"],
.catalog-cat__desc [align="justify"], .catalog-cat__desc [style*="justify"],
.brand-about__text [align="justify"], .brand-about__text [style*="justify"] { text-align: left !important; }

/* страница бренда: бренд в карточках не дублируем */
.brand-products .product-card__brand { display: none; }

/* мелкий текст */
.footer__copy { font-size: 12px; }

/* точки слайдера баннеров — область нажатия больше самой точки */
.hp-dot { position: relative; }
.hp-dot::before { content: ""; position: absolute; inset: -10px; }

@media (max-width: 767px) {
  .offitec-logo-tagline { font-size: .72rem; }

  /* мобильное меню: непрозрачное, крупные пункты, телефон внизу */
  .offitec-mobile-nav { background: #1b1b1b; padding-top: 64px; }
  .offitec-mobile-nav__list > li > a { padding: 16px 0; font-size: 1.05rem; border-top: 1px solid rgba(255,255,255,.12); }
  .offitec-mobile-partner { padding: 16px 0; font-size: .85rem; border-top: 1px solid rgba(255,255,255,.12); }
  .offitec-mobile-nav__phone { display: block; margin-top: 28px; color: #fff; font-size: 1.5rem; font-weight: 700; text-decoration: none; }
  .offitec-mobile-nav__mail { display: block; margin-top: 6px; color: rgba(255,255,255,.7); font-size: .95rem; text-decoration: none; }

  /* слайдеры главной: стрелки под карточками, карточки во всю ширину */
  .hp-featured__outer, .hp-news__outer { flex-wrap: wrap; gap: 12px 8px; }
  .hp-featured__slider-wrap, .hp-news__slider-wrap { flex: 0 0 100%; order: -1; }
  .hp-featured__prev, .hp-news__prev { margin-left: auto; }
  .hp-featured__next, .hp-news__next { margin-right: auto; }
  .hp-featured__slider .hp-featured__card { flex: 0 0 calc(50% - 8px); }
  .hp-featured__name { font-size: .8rem; padding: 8px 10px; }
  .hp-news__slider .hp-news__card { flex: 0 0 100%; }

  /* вкладки карточки товара — одной строкой с прокруткой */
  .product-tabs__nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .product-tabs__nav::-webkit-scrollbar { display: none; }
  .product-tabs__btn { white-space: nowrap; padding: 12px 14px; font-size: .9rem; }

}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
}

/* =============================================================
   Описание категории — как в исходнике: картинка слева, текст справа,
   длинный текст свёрнут с кнопкой «Читать полностью» (все экраны)
   ============================================================= */
.catalog-cat__intro { display: flex; gap: 28px; align-items: flex-start; margin-top: 12px; }
.catalog-cat__intro-img { flex: 0 0 150px; background: #fff; border: 1px solid var(--card-line, #e6e8ec); border-radius: var(--radius-lg, 10px); padding: 8px; box-shadow: var(--card-shadow); }
.catalog-cat__intro-img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.catalog-cat__intro-text { flex: 1 1 auto; min-width: 0; }
.catalog-cat__desc { line-height: 1.7; max-width: 900px; }
.catalog-cat__desc p { margin: 0 0 .9em; }
.catalog-cat__desc ul, .catalog-cat__desc ol { margin: 0 0 1em; padding-left: 1.6em; }
.catalog-cat__desc ul { list-style: disc; }
.catalog-cat__desc ol { list-style: decimal; }
.catalog-cat__desc li { margin: 0 0 .35em; }
.catalog-cat__desc li p { margin: 0; }
.catalog-cat__desc a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.catalog-cat__desc a:hover { text-decoration: none; }
.catalog-cat__desc > :last-child { margin-bottom: 0; }
.catalog-cat__desc.is-collapsible { position: relative; max-height: 15.3em; overflow: hidden; }
.catalog-cat__desc.is-collapsible::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4.5em; background: linear-gradient(rgba(238,240,243,0), var(--color-bg)); }
.catalog-cat__desc.is-expanded { max-height: none; }
.catalog-cat__desc.is-expanded::after { display: none; }
.catalog-cat__more { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 0; border: 0; background: none; color: var(--color-primary); font: inherit; font-weight: 600; cursor: pointer; }
.catalog-cat__more::after { content: "▾"; font-size: .8em; }
.catalog-cat__more.is-open::after { content: "▴"; }
.catalog-cat__intro + .catalog-subcats--cards, .catalog-cat__intro + .product-grid { margin-top: 32px; }
@media (max-width: 767px) {
  .catalog-cat__intro { gap: 14px; }
  .catalog-cat__intro-img { flex-basis: 84px; padding: 4px; }
  .catalog-cat__desc.is-collapsible { max-height: 12.5em; }
}

/* === Регистрация оборудования (page-registration.php) === */
.reg-form__title { font-size: 1.2rem; margin: 24px 0 16px; }
.reg-form__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 20px; }
.reg-form__grid > label { display: block; }
.reg-form__consent, .form-consent { font-size: .85rem; line-height: 1.45; color: var(--color-text-muted); margin: 12px 0 16px; }
.reg-form__consent .wpcf7-list-item, .form-consent .wpcf7-list-item { margin: 0; display: block; }
.reg-form__consent a, .form-consent a { color: var(--color-primary); }
.wpcf7-form .reg-form__consent .wpcf7-list-item label,
.wpcf7-form .form-consent .wpcf7-list-item label {
  display: flex; align-items: flex-start; gap: 8px; font-size: .85rem; font-weight: 400; color: var(--color-text-muted); margin: 0; cursor: pointer;
}
.wpcf7-form .reg-form__consent .wpcf7-list-item-label,
.wpcf7-form .form-consent .wpcf7-list-item-label { font-weight: 400; }
.wpcf7-form .reg-form__consent a,
.wpcf7-form .form-consent a { font-weight: 500; }
.reg-form__consent input[type="checkbox"], .form-consent input[type="checkbox"] {
  flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--color-primary); cursor: pointer;
}
.reg-form__consent .wpcf7-list-item-label, .form-consent .wpcf7-list-item-label { display: inline; }
.wpcf7-form .wpcf7-acceptance .wpcf7-not-valid-tip { margin-top: 4px; }
.reg-checklist { margin: 0 0 24px; padding-left: 1.2em; line-height: 1.6; }
.reg-checklist li { margin-bottom: 8px; }
.contacts-card--aside .contacts-card__title + .contacts-list { margin-bottom: 20px; }
@media (max-width: 640px) { .reg-form__grid { grid-template-columns: 1fr; } }

/* === 404 === */
.error-page { max-width: 760px; margin: 24px auto 40px; text-align: center; }
.error-page__code { font-size: 6rem; font-weight: 800; line-height: 1; color: var(--color-primary); letter-spacing: -.04em; margin-bottom: 8px; }
.error-page .page-lead { margin: 0 auto 24px; }
.error-page .offitec-search { margin: 0 auto 20px; }
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.error-page__subtitle { margin-bottom: 14px; }
.error-page__cats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.error-page__cats a { display: inline-block; padding: 8px 14px; border: 1px solid var(--color-border); border-radius: 6px; background: #fff; color: var(--color-text); font-size: .9rem; font-weight: 600; text-decoration: none; }
.error-page__cats a:hover { border-color: var(--color-primary); color: var(--color-primary); }

@media (max-width: 600px) { .error-page__code { font-size: 4.5rem; } }

/* Дата обновления в конце информационных страниц */
.entry-content .page-updated { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--color-border); font-size: .875rem; color: var(--color-text-muted); }

/* =============================================================
   Узкая липкая шапка при прокрутке (десктоп): лого + меню + поиск
   Появляется, когда основная шапка прокручена; убирается только
   при возврате в самый верх страницы.
   ============================================================= */
.offitec-compact {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--color-primary); box-shadow: 0 2px 12px rgba(0,0,0,.28);
  transform: translateY(-100%); visibility: hidden;
  transition: transform .22s ease, visibility .22s;
}
.offitec-compact.is-visible { transform: none; visibility: visible; }
.offitec-compact .container { display: flex; align-items: center; gap: 22px; min-height: 54px; }

.offitec-compact__logo { flex: 0 0 auto; display: flex; align-items: center; }
.offitec-compact__logo img { display: block; width: 110px; height: auto; }

.offitec-compact__nav { flex: 1 1 auto; min-width: 0; }
.offitec-compact__nav .main-nav__list { display: flex !important; flex-wrap: nowrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.offitec-compact__nav .main-nav__list > li > a {
  display: block; padding: 0 12px; height: 54px; line-height: 54px;
  font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255,255,255,.92); white-space: nowrap; transition: color .2s, background .2s;
}
.offitec-compact__nav .main-nav__list > li > a:hover,
.offitec-compact__nav .main-nav__list > li.current-menu-item > a { color: #fff; background: rgba(0,0,0,.22); }

.offitec-compact__phone { flex: 0 0 auto; color: #fff; font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.offitec-compact__phone:hover { opacity: .85; }

.offitec-compact__search-btn {
  flex: 0 0 auto; display: none; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.22); color: #fff;
  transition: background .2s, color .2s, border-color .2s;
}
.offitec-compact__search-btn:hover,
.offitec-compact.is-search-open .offitec-compact__search-btn { background: #fff; color: var(--color-primary); border-color: #fff; }

.offitec-search--compact { flex: 0 0 250px; max-width: 250px; }
.offitec-search--compact .offitec-search__input {
  height: 34px; font-size: .85rem; border-radius: 4px 0 0 4px;
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.45); border-right: 0; color: #fff;
}
.offitec-search--compact .offitec-search__ph { height: 34px; line-height: 34px; font-size: .82rem; color: rgba(255,255,255,.8); left: 0; right: auto; width: calc(100% - 40px); padding-left: 12px; box-sizing: border-box; }
.offitec-search--compact .offitec-search__ph strong { color: rgba(255,255,255,.95); }
.offitec-search--compact .offitec-search__btn {
  height: 34px; width: 38px; border-radius: 0 4px 4px 0; color: #fff;
  background: rgba(0,0,0,.28); border: 1px solid rgba(255,255,255,.45); border-left: 0;
}
.offitec-search--compact .offitec-search__btn:hover { background: rgba(0,0,0,.4); }
.offitec-search--compact:focus-within .offitec-search__input { background: #fff; color: var(--color-text); border-color: #fff; box-shadow: none; }
.offitec-search--compact:focus-within .offitec-search__btn { background: #fff; border-color: #fff; color: var(--color-primary); }
.offitec-search--compact:focus-within .offitec-search__ph { color: #9aa1ab; }
.offitec-search--compact:focus-within .offitec-search__ph strong { color: #6b7280; }
.offitec-search--compact .offitec-search__drop { left: auto; right: 0; width: 380px; max-width: 90vw; }

/* узкие экраны: телефон прячем, поиск — по кнопке-лупе поверх полосы */
@media (max-width: 1399px) { .offitec-compact__phone { display: none; } }
@media (max-width: 1199px) {
  .offitec-compact .container { gap: 14px; position: relative; }
  .offitec-compact__search-btn { display: flex; }
  .offitec-search--compact {
    position: absolute; right: 0; left: auto; top: 50%; transform: translateY(-50%);
    width: 340px; max-width: 100%; flex: none; opacity: 0; pointer-events: none; z-index: 2;
  }
  .offitec-compact.is-search-open .offitec-search--compact { opacity: 1; pointer-events: auto; }
  .offitec-compact.is-search-open .offitec-compact__search-btn { visibility: hidden; }
  .offitec-search--compact .offitec-search__drop { right: 0; width: 360px; }
}
@media (max-width: 991px) {
  .offitec-compact.is-search-open .offitec-compact__nav { visibility: hidden; }
}
@media (max-width: 767px) { .offitec-compact { display: none; } }

/* длинные слова в заголовках не должны выпирать за экран (моб. «Политика конфиденциальности») */
h1, h2, h3, h4,
.page-title, .entry-title, .hp-section-title,
.product-title, .brand-hero__title {
  overflow-wrap: break-word;
  word-break: break-word;
}
@media (max-width: 767px) {
  .page-title, .entry-title { hyphens: auto; }
}
/* точки слайдеров: увеличиваем область нажатия, не меняя вид */
.hp-dot { position: relative; }
.hp-dot::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 28px; height: 28px;
  transform: translate(-50%, -50%);
}
