/* OptiVision — светлый корпоративный B2B (офтальмология / оптика) */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

:root {
  --color-bg: #f4f7fb;
  --color-surface: #ffffff;
  --color-surface-2: #eef3f9;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-primary: #0b5fa5;
  --color-primary-hover: #094a82;
  --color-accent: #c2410c;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --gradient-brand: linear-gradient(135deg, #0b5fa5 0%, #0d9488 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 40px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.06);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --container: 1180px;
  --header-height: 72px;
  --top-bar-min: 44px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
  overflow: hidden;
}

.screen-reader-text {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.skip-link:focus {
  clip: auto !important;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  color: var(--color-text);
  z-index: 100000;
  left: 1rem;
  top: 1rem;
  position: fixed;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/*
 * Другие плагины часто подключают Bootstrap и переопределяют .container (например max-width: 720px),
 * из‑за чего «ломается» вся вёрстка темы. Обводим основной контейнер более узким селектором.
 */
body .container:not(.content-area--narrow) {
  max-width: min(100% - 2rem, var(--container)) !important;
}

.content-area {
  padding-block: 2.5rem 3.5rem;
}

.content-area--narrow,
body .content-area.container.content-area--narrow {
  max-width: 720px !important;
}

.site-main {
  min-height: 48vh;
}

/* Верхняя полоса контактов */
.top-bar {
  background: linear-gradient(90deg, #0b3a5c 0%, #0b5fa5 50%, #0d6b8a 100%);
  color: #f1f5f9;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-bar__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem 2rem;
  align-items: center;
  padding-block: 0.65rem;
}

@media (max-width: 820px) {
  .top-bar__grid {
    grid-template-columns: 1fr;
  }
}

.top-bar__contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.top-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #e2e8f0;
  font-weight: 500;
  transition: color 0.2s;
}

.top-bar__link:hover {
  color: #fff;
}

.top-bar__icon {
  display: flex;
  opacity: 0.9;
}

.top-bar__icon svg {
  flex-shrink: 0;
}

.top-bar__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 0;
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .top-bar__meta {
    justify-content: flex-start;
  }
}

.top-bar__meta-row {
  display: flex;
  gap: 0.35rem;
  align-items: baseline;
}

.top-bar__meta dt {
  margin: 0;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.top-bar__meta dd {
  margin: 0;
  font-weight: 500;
}

/* Шапка */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  /* Не ставить backdrop-filter сюда: иначе fixed-панель #primary-nav привязана к шапке и обрезается. */
  background: transparent;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1.25rem;
  flex-wrap: nowrap;
}

.site-branding .custom-logo-link {
  display: flex;
  align-items: center;
}

.site-branding .custom-logo {
  max-height: 48px;
  width: auto;
}

.site-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--color-primary);
}

.site-tagline {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  max-width: 280px;
  line-height: 1.35;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  margin-left: auto;
  margin-right: -0.35rem;
  border: none;
  background: transparent;
}

.nav-toggle__bar {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.primary-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem 1.5rem;
  flex-wrap: wrap;
}

.primary-nav__list > li {
  position: relative;
}

.primary-nav__list a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a,
.primary-nav__list .current_page_item > a {
  color: var(--color-primary);
  border-bottom-color: rgba(11, 95, 165, 0.35);
}

.primary-nav__actions {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}

.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header-cart:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
}

.header-cart__icon {
  display: flex;
  color: var(--color-primary);
}

.header-cart__label {
  font-size: 0.875rem;
  font-weight: 600;
}

.header-cart__total {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-accent);
}

.header-cart__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: #fff;
}

.submenu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.submenu-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.submenu-toggle__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.submenu-toggle__icon::before {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.22s ease;
}

.is-submenu-open > .submenu-toggle .submenu-toggle__icon::before {
  transform: rotate(225deg);
  margin-top: 2px;
}

@media (min-width: 901px) {
  .primary-nav .submenu-toggle {
    display: none !important;
  }

  .primary-nav__list > .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding-right: 0.15rem;
  }

  .primary-nav__list > .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.45;
    margin-top: 0.1em;
  }

  .primary-nav__list .sub-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 0.35rem);
    min-width: 220px;
    margin: 0;
    padding: 0.4rem 0;
    list-style: none;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 100;
  }

  .primary-nav__list > li.menu-item-has-children:last-child > .sub-menu {
    left: auto;
    right: 0;
  }

  .primary-nav__list li:hover > .sub-menu,
  .primary-nav__list li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav__list .sub-menu li {
    display: block;
    margin: 0;
  }

  .primary-nav__list .sub-menu a {
    display: block;
    padding: 0.55rem 1.15rem;
    white-space: nowrap;
    border-bottom: none;
    font-size: 0.9rem;
  }

  .primary-nav__list .sub-menu a:hover {
    background: var(--color-bg);
    color: var(--color-primary);
  }

  .primary-nav__list .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: 0.25rem;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: var(--header-height);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 2rem;
    background: #fff;
    border-top: 1px solid var(--color-border);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    gap: 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: var(--shadow-md);
    z-index: 60;
  }

  body.has-top-bar .primary-nav {
    top: calc(var(--header-height) + 52px);
  }

  .primary-nav.is-open {
    transform: translateX(0);
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
  }

  .primary-nav__list > li {
    width: 100%;
    padding-block: 0.15rem;
    border-bottom: 1px solid var(--color-border);
  }

  .primary-nav__list > li:last-child {
    border-bottom: none;
  }

  .primary-nav__list a {
    display: block;
    padding: 0.65rem 0;
    border-bottom: none;
  }

  .primary-nav .submenu-toggle {
    display: inline-flex;
  }

  .primary-nav__list li.menu-item-has-children {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
  }

  .primary-nav__list li.menu-item-has-children > a {
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0.25rem;
  }

  .primary-nav__list li.menu-item-has-children > .submenu-toggle {
    margin-left: auto;
  }

  .primary-nav__list li.menu-item-has-children > .sub-menu {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    display: none;
    margin: 0.2rem 0 0;
    padding: 0.4rem 0.65rem 0.65rem;
    list-style: none;
    border: none;
    box-shadow: none;
    background: rgba(11, 95, 165, 0.06);
    border-radius: var(--radius-sm);
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    min-width: 0;
  }

  .primary-nav__list li.menu-item-has-children.is-submenu-open > .sub-menu {
    display: block;
  }

  .primary-nav__list .sub-menu li {
    border-bottom: none;
    padding-block: 0;
  }

  .primary-nav__list .sub-menu .sub-menu {
    margin-top: 0.35rem;
    padding-left: 0.65rem;
    background: rgba(11, 95, 165, 0.08);
  }

  .primary-nav__list .sub-menu a {
    padding: 0.45rem 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
  }

  .primary-nav__list > .menu-item-has-children > a::after {
    display: none;
  }

  .primary-nav__actions {
    margin-left: 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border);
  }

  .header-cart__label {
    display: none;
  }
}

/* Герой */
.home-hero {
  padding-block: 3rem 3.5rem;
  background: linear-gradient(165deg, #ffffff 0%, #eef6ff 45%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
}

.home-hero__grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 44%);
  gap: 2.5rem 3rem;
  align-items: center;
}

@media (max-width: 960px) {
  .home-hero__grid {
    grid-template-columns: 1fr;
  }
}

.home-hero__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.home-hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

.home-hero__lead {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 38rem;
}

.home-hero__chips {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.home-hero__chips li {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.home-hero__visual {
  position: relative;
}

.home-hero__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.home-hero__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

/* Преимущества под героем */
.home-highlights {
  padding-block: 2rem 2.25rem;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.home-highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

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

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

.home-highlight {
  padding: 1.1rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: linear-gradient(180deg, #fafcff 0%, #fff 100%);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.home-highlight:hover {
  border-color: rgba(11, 95, 165, 0.22);
  box-shadow: var(--shadow-card);
}

.home-highlight__icon {
  display: flex;
  color: var(--color-primary);
  margin-bottom: 0.65rem;
}

.home-highlight__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
}

.home-highlight__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

/* Кнопки */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.button--primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 95, 165, 0.35);
}

.button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(11, 95, 165, 0.4);
}

.button--outline {
  border: 1px solid var(--color-border-strong);
  color: var(--color-primary);
  background: var(--color-surface);
}

.button--outline:hover {
  border-color: var(--color-primary);
  background: #f8fafc;
}

/* Категории */
.home-categories {
  padding-block: 3.5rem 4rem;
  background: var(--color-bg);
}

.home-categories--empty .home-categories__empty {
  margin: 0;
  text-align: center;
  color: var(--color-text-muted);
  padding: 2rem;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.section-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.section-lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.section-header--split {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  text-align: left;
}

.section-header--split .section-header__intro {
  flex: 1 1 280px;
  max-width: 560px;
}

.section-header--split .section-header__intro .section-title,
.section-header--split .section-header__intro .section-lead {
  text-align: left;
}

.section-header__action {
  margin: 0;
  flex-shrink: 0;
}

.section-header__link {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.section-header__link:hover {
  border-bottom-color: currentColor;
}

@media (max-width: 640px) {
  .section-header--split {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .section-header--split .section-header__intro .section-title,
  .section-header--split .section-header__intro .section-lead {
    text-align: center;
  }
}

.category-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 1.1rem;
}

.category-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  border-color: rgba(11, 95, 165, 0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.category-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.category-card__media {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--color-surface-2);
}

.category-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.2rem 1.35rem;
}

.category-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-text);
}

.category-card__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.category-card__cta {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Блоки товаров на главной */
.home-product-blocks {
  display: flex;
  flex-direction: column;
}

.product-showcase {
  padding-block: 2.75rem 3.25rem;
  border-bottom: 1px solid var(--color-border);
}

.product-showcase--alt {
  background: linear-gradient(180deg, #f0f6fc 0%, var(--color-bg) 100%);
}

.product-showcase--sale {
  background: linear-gradient(180deg, #fff8f1 0%, #fff 55%);
}

.product-showcase--promo {
  background: linear-gradient(180deg, #fef2f2 0%, var(--color-bg) 100%);
}

.product-showcase--empty {
  background: var(--color-surface);
}

.product-showcase__empty {
  margin: 0;
  text-align: center;
  color: var(--color-text-muted);
  padding: 2rem;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
}

.product-showcase__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
}

.product-showcase__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.product-showcase__lead {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  max-width: 36rem;
}

.product-showcase__more {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .product-showcase__header {
    flex-direction: column;
    align-items: stretch;
  }

  .product-showcase__more {
    width: 100%;
    white-space: normal;
  }
}

.product-showcase__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

@media (min-width: 1100px) {
  .product-showcase__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-showcase__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  color: inherit;
}

.product-showcase__card:hover {
  border-color: rgba(11, 95, 165, 0.28);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.product-showcase__media {
  display: block;
  aspect-ratio: 1;
  background: var(--color-surface-2);
  overflow: hidden;
}

.product-showcase__media img,
.product-showcase__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-showcase__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 0.95rem 1.1rem;
  flex: 1;
}

.product-showcase__name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-showcase__price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-top: auto;
}

.product-showcase__price del {
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

/* Главная: контакты и форма заявки */
.home-contact {
  padding-block: 3rem 3.5rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.home-contact__header.section-header {
  margin-bottom: 2rem;
}

.home-contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2rem;
  align-items: start;
}

.home-contact__grid--form-only {
  max-width: 520px;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .home-contact__grid:not(.home-contact__grid--form-only) {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  }
}

.home-contact__subtitle {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.home-contact__address-text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.home-contact__address-text p {
  margin: 0 0 0.5rem;
}

.home-contact__address-text p:last-child {
  margin-bottom: 0;
}

.home-contact__form-wrap .home-contact__form {
  font-size: 0.9375rem;
  color: var(--color-text);
}

.home-contact__form input[type="text"],
.home-contact__form input[type="email"],
.home-contact__form input[type="tel"],
.home-contact__form input[type="number"],
.home-contact__form input[type="url"],
.home-contact__form textarea,
.home-contact__form select {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.65rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
}

.home-contact__form textarea {
  min-height: 120px;
  resize: vertical;
}

.home-contact__form input[type="submit"],
.home-contact__form button[type="submit"],
.home-contact__form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.8rem 1.35rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(11, 95, 165, 0.35);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.home-contact__form input[type="submit"]:hover,
.home-contact__form button[type="submit"]:hover,
.home-contact__form .wpcf7-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(11, 95, 165, 0.38);
  filter: brightness(1.05);
}

/* Контент главной из редактора */
.home-editorial {
  padding-block: 0 3rem;
}

.home-page-content .entry-content > *:first-child {
  margin-top: 0;
}

.home-blog__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 1.25rem;
  color: var(--color-text);
}

/* Записи */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.post-card__link {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  color: inherit;
  min-height: 110px;
}

.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body {
  padding: 1.1rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.post-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
}

.post-card__excerpt {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 560px) {
  .post-card__link {
    grid-template-columns: 1fr;
  }

  .post-card__thumb {
    max-height: 200px;
  }
}

/* Страницы */
.page-article,
.single-article {
  padding-bottom: 2rem;
}

.entry-header .entry-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.entry-meta {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin: 0 0 1.25rem;
}

.post-thumbnail {
  margin: 0 0 1.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.entry-content {
  color: var(--color-text-muted);
}

.entry-content h2,
.entry-content h3 {
  color: var(--color-text);
  font-family: var(--font-display);
}

.entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-header .page-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  margin: 0 0 1rem;
  color: var(--color-text);
}

.archive-description {
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

/* Пагинация */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 2rem;
}

.pagination a,
.pagination span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  background: var(--color-surface);
}

.pagination a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.pagination .current {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #fff;
}

/* 404 */
.not-found {
  text-align: center;
  padding-block: 4rem;
}

.not-found__title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  margin: 0 0 1rem;
  color: var(--color-text);
}

.not-found__text {
  color: var(--color-text-muted);
  margin: 0 0 1.75rem;
}

/* Подвал */
.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  background: #0f2942;
  color: #e2e8f0;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding-block: 2.5rem;
  align-items: start;
}

@media (max-width: 720px) {
  .site-footer__top {
    grid-template-columns: 1fr;
  }
}

.site-footer__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
}

.site-footer__tagline {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #94a3b8;
  max-width: 420px;
  line-height: 1.5;
}

.site-footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.site-footer__contact {
  margin: 0;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.site-footer__contact strong {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.site-footer__contact a {
  color: #f1f5f9;
  font-weight: 600;
}

.site-footer__contact a:hover {
  color: #7dd3fc;
}

.site-footer__nav-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 1.25rem;
}

.footer-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: center;
}

.footer-nav__list a {
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-nav__list a:hover {
  color: #fff;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: 1.25rem 1.75rem;
  text-align: center;
}

.site-footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  justify-content: center;
  margin: 0 0 1rem;
}

.site-footer__legal-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__legal-links a:hover {
  color: #e2e8f0;
}

.site-footer__legal {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
  max-width: 640px;
  margin-inline: auto;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.75rem;
  color: #475569;
}

.no-results {
  padding: 2rem 0;
  color: var(--color-text-muted);
}
