/*
Theme Name: KMVCG
Theme URI: https://kmvcg.ru/
Author: Codex
Description: Custom WooCommerce-ready theme for KMVCG.
Version: 1.2.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: kmvcg
*/

:root {
  --km-shell: min(1180px, calc(100vw - 32px));
  --km-shell-wide: min(1320px, calc(100vw - 32px));
  --km-bg: #f4efe7;
  --km-paper: #fffdf8;
  --km-paper-soft: #f8f3eb;
  --km-ink: #101820;
  --km-muted: #59646e;
  --km-line: rgba(16, 24, 32, 0.12);
  --km-accent: #d06d28;
  --km-accent-strong: #a94e16;
  --km-accent-soft: rgba(208, 109, 40, 0.12);
  --km-hero: #11181f;
  --km-shadow: 0 28px 80px rgba(12, 17, 22, 0.14);
  --km-radius-xl: 32px;
  --km-radius-lg: 24px;
  --km-radius-md: 18px;
  --km-radius-sm: 14px;
  --km-header-height: 92px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(208, 109, 40, 0.09), transparent 36%),
    linear-gradient(180deg, #fbf8f2 0%, var(--km-bg) 38%, #f2ece3 100%);
  color: var(--km-ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.shell,
.page-shell,
.commerce-shell,
.site-footer__inner {
  width: var(--km-shell);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--km-accent);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.eyebrow::before {
  content: "";
  width: 46px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(18px);
  background: rgba(244, 239, 231, 0.78);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    background 0.24s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 251, 244, 0.92);
  border-color: rgba(16, 24, 32, 0.08);
  box-shadow: 0 18px 40px rgba(16, 24, 32, 0.08);
}

.site-header__bar {
  min-height: var(--km-header-height);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(208, 109, 40, 0.18), rgba(16, 24, 32, 0.08));
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.12);
}

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

.brand__copy {
  min-width: 0;
}

.brand__name {
  display: block;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.brand__tagline {
  display: block;
  color: var(--km-muted);
  font-size: 0.84rem;
  margin-top: 6px;
  white-space: nowrap;
}

.site-nav {
  flex: 1 1 auto;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.site-nav__list a {
  position: relative;
  display: inline-flex;
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--km-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible,
.site-nav__list a.is-active,
.site-nav__list .current-menu-item > a,
.site-nav__list .current-menu-ancestor > a,
.site-nav__list .current_page_item > a {
  color: var(--km-ink);
  background: rgba(16, 24, 32, 0.055);
  transform: translateY(-1px);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.site-header__phone {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--km-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s;
}

.site-header__phone:hover {
  color: var(--km-accent);
}

.site-header__cta-btn {
  white-space: nowrap;
}

.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button,
.wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--km-ink);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.button:hover,
.button:focus-visible,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.wc-block-components-button:hover,
.wp-element-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(16, 24, 32, 0.14);
}

.button--ghost {
  background: transparent;
  color: var(--km-ink);
  border-color: rgba(16, 24, 32, 0.22);
}

.button--accent,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wc-block-components-checkout-place-order-button,
.wc-block-cart__submit-button {
  background: linear-gradient(135deg, var(--km-accent), var(--km-accent-strong));
  color: #fff;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--km-ink);
  min-height: 44px;
  padding: 0 16px;
  font-weight: 700;
}

.site-main {
  padding-bottom: 72px;
}

.home-main {
  width: var(--km-shell-wide);
  margin: 0 auto;
  padding-top: 22px;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--km-header-height) - 28px);
  padding: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: end;
  background: var(--km-hero);
  color: #fff;
  border-radius: clamp(28px, 4vw, 40px);
  overflow: hidden;
  box-shadow: var(--km-shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 14, 18, 0.88), rgba(10, 14, 18, 0.34) 55%, rgba(208, 109, 40, 0.18)),
    radial-gradient(circle at top right, rgba(208, 109, 40, 0.28), transparent 28%);
  z-index: 1;
}

.hero__media,
.hero__content,
.hero__aside {
  position: relative;
  z-index: 2;
}

.hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(0.92) contrast(1.02);
}

.hero__content {
  max-width: 720px;
  align-self: center;
  animation: kmFadeUp 0.9s ease both;
}

.hero__title {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.hero__lead {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  color: rgba(255, 255, 255, 0.78);
}

.hero__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__panel {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero__metric {
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.hero__metric strong {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
  margin-bottom: 8px;
}

.hero__metric span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.hero__aside {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  animation: kmFadeUp 1.15s ease both;
}

.hero__note,
.hero__stack {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: none;
}

.hero__note h2,
.hero__stack h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--km-ink);
}

.hero__note p,
.hero__stack p,
.hero__stack li {
  margin: 0;
  color: var(--km-muted);
}

.hero__stack ul {
  margin: 0;
  padding-left: 18px;
}

.signal-strip,
.solutions,
.showcase,
.trust-band,
.final-cta,
.page-intro,
.page-surface,
.commerce-intro,
.commerce-surface {
  margin-top: 32px;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.signal-strip__item,
.surface-card,
.trust-card,
.final-cta,
.page-intro,
.page-surface,
.commerce-intro,
.commerce-surface {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: var(--km-radius-xl);
  box-shadow: var(--km-shadow);
}

.signal-strip__item {
  padding: 26px;
}

.signal-strip__item strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.signal-strip__item p {
  margin: 0;
  color: var(--km-muted);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--km-muted);
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.solution-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(16, 24, 32, 0.98), rgba(16, 24, 32, 0.82));
  color: #fff;
  border-radius: var(--km-radius-xl);
  box-shadow: var(--km-shadow);
}

.solution-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(208, 109, 40, 0.28), transparent 35%),
    linear-gradient(180deg, transparent 0%, rgba(16, 24, 32, 0.28) 100%);
}

.solution-card > * {
  position: relative;
  z-index: 1;
}

.solution-card__top h3 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.98;
}

.solution-card__top p {
  max-width: 420px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.solution-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.solution-card__chips span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.84rem;
}

.showcase__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-tile {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--km-radius-lg);
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(16, 24, 32, 0.08);
  box-shadow: 0 18px 42px rgba(16, 24, 32, 0.09);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.product-tile:hover,
.product-tile:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(16, 24, 32, 0.12);
  border-color: rgba(208, 109, 40, 0.24);
}

.product-tile__eyebrow {
  margin: 0 0 12px;
  color: var(--km-accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.73rem;
  font-weight: 800;
}

.product-tile h3 {
  margin: 0;
  font-size: 1.34rem;
  line-height: 1.15;
}

.product-tile p {
  margin: 14px 0 0;
  color: var(--km-muted);
}

.product-tile__meta {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.product-tile__price {
  font-weight: 800;
  font-size: 1rem;
}

.product-tile__price .woocommerce-Price-amount,
.product-tile__price .price {
  font-size: 1rem;
}

.product-tile__link {
  text-decoration: none;
  font-weight: 800;
  color: var(--km-ink);
}

.trust-band__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.trust-card {
  padding: 28px;
}

.trust-card h3 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.trust-card p,
.trust-card li {
  color: var(--km-muted);
}

.trust-card ul {
  margin: 0;
  padding-left: 18px;
}

.trust-card a {
  font-weight: 800;
  color: var(--km-accent-strong);
  text-decoration: none;
}

.final-cta {
  position: relative;
  overflow: hidden;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: auto -6% -48% auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(208, 109, 40, 0.18), transparent 70%);
}

.final-cta > * {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.final-cta p {
  margin: 0;
  max-width: 600px;
  color: var(--km-muted);
}

.page-shell,
.commerce-shell {
  padding-top: 26px;
}

.page-intro,
.commerce-intro {
  padding: 30px 34px;
}

.page-intro h1,
.commerce-intro h1 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.page-intro p,
.commerce-intro p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--km-muted);
}

.page-surface,
.commerce-surface {
  padding: 32px;
}

.entry-copy,
.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce-product-details__short-description,
.term-description {
  color: var(--km-muted);
}

.entry-copy h2,
.entry-copy h3,
.entry-copy h4 {
  color: var(--km-ink);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.05;
}

.entry-copy a {
  color: var(--km-accent-strong);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.legal-grid a {
  display: block;
  padding: 22px;
  border-radius: 22px;
  text-decoration: none;
  background: var(--km-paper-soft);
  border: 1px solid rgba(16, 24, 32, 0.08);
}

.legal-grid strong {
  display: block;
  font-size: 1.12rem;
  color: var(--km-ink);
}

.legal-grid span {
  display: block;
  margin-top: 10px;
  color: var(--km-muted);
}

.woocommerce .woocommerce-notices-wrapper:empty {
  display: none;
}

.woocommerce .woocommerce-notices-wrapper,
.woocommerce .return-to-shop,
.woocommerce .cart-empty,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
  margin-bottom: 18px;
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.wc-block-components-notice-banner {
  border: 0;
  border-radius: 20px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 36px rgba(16, 24, 32, 0.08);
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  display: flex;
  flex-direction: column;
  width: auto;
  margin: 0;
  float: none;
  padding: 22px;
  list-style: none;
  border-radius: 24px;
  background: var(--km-paper);
  border: 1px solid rgba(16, 24, 32, 0.08);
  box-shadow: 0 18px 42px rgba(16, 24, 32, 0.08);
}

.woocommerce ul.products li.product a {
  text-decoration: none;
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.woocommerce ul.products li.product a img {
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(208, 109, 40, 0.08), rgba(16, 24, 32, 0.03));
}

.woocommerce ul.products li.product .woocommerce-loop-category__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
  padding: 0;
  margin: 0 0 8px;
  font-size: 1.24rem;
  line-height: 1.14;
}

.woocommerce ul.products li.product .price {
  color: var(--km-ink);
  font-weight: 800;
  margin-bottom: 16px;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
  width: 100%;
  justify-content: center;
  text-align: center;
  margin-top: auto;
}

.woocommerce-result-count,
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  float: none;
}

.woocommerce .woocommerce-result-count {
  margin: 0 0 14px;
  color: var(--km-muted);
  font-weight: 700;
}

.woocommerce .woocommerce-ordering {
  width: 100%;
  max-width: 320px;
  margin: 0 0 22px;
}

.woocommerce .woocommerce-ordering .orderby {
  width: 100%;
}

.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  gap: 34px;
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  width: auto;
  float: none;
  min-width: 0;
  margin: 0;
}

.woocommerce div.product div.images img {
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(208, 109, 40, 0.08), rgba(16, 24, 32, 0.03));
}

.woocommerce div.product .product_title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--km-ink);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.woocommerce div.product form.cart {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.woocommerce div.product form.cart .variations {
  margin-bottom: 18px;
}

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
  padding-bottom: 12px;
}

.woocommerce div.product form.cart .variations .label label {
  display: inline-block;
  color: var(--km-muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.km-variation-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.km-variation-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.km-variation-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid rgba(16, 24, 32, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--km-ink);
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.km-variation-chip:hover,
.km-variation-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(208, 109, 40, 0.42);
  box-shadow: 0 10px 24px rgba(16, 24, 32, 0.08);
  outline: none;
}

.km-variation-chip.is-active {
  background: var(--km-accent);
  border-color: var(--km-accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(208, 109, 40, 0.2);
}

.km-variation-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.woocommerce-product-details__short-description p,
.woocommerce .woocommerce-Tabs-panel p,
.woocommerce .woocommerce-Tabs-panel li,
.woocommerce .product_meta,
.woocommerce .product_meta a {
  overflow-wrap: anywhere;
}

.woocommerce div.product form.cart .variations select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single,
.wc-block-components-text-input input,
.wc-block-components-text-input select,
.wc-block-components-text-input textarea,
.wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-checkout-step__content input,
.wc-block-components-checkout-step__content select,
.wc-block-components-checkout-step__content textarea {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(16, 24, 32, 0.12);
  background: #fff;
  box-shadow: none;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  padding: 0 16px;
}

.woocommerce form .form-row textarea,
.wc-block-components-text-input textarea {
  min-height: 140px;
  padding: 14px 16px;
}

.woocommerce .quantity .qty {
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(16, 24, 32, 0.12);
}

.woocommerce .product_meta,
.woocommerce .woocommerce-product-attributes,
.woocommerce .woocommerce-tabs {
  margin-top: 26px;
}

.woocommerce .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}

.woocommerce .woocommerce-tabs ul.tabs::before {
  display: none;
}

.woocommerce .woocommerce-tabs ul.tabs li {
  border: 0;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.06);
  margin: 0 10px 10px 0;
  padding: 0;
  list-style: none;
}

.woocommerce .woocommerce-tabs ul.tabs li a {
  padding: 12px 18px;
}

.woocommerce .woocommerce-tabs ul.tabs li.active {
  background: var(--km-ink);
}

.woocommerce .woocommerce-tabs ul.tabs li.active a {
  color: #fff;
}

.woocommerce nav.woocommerce-pagination ul {
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  margin: 0 6px;
  border-radius: 999px;
  border: 1px solid rgba(16, 24, 32, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

.woocommerce table.shop_table,
.woocommerce table.shop_attributes,
.wc-block-cart-items,
.wc-block-components-sidebar-layout .wc-block-components-main {
  border-collapse: separate;
  border-spacing: 0;
}

.woocommerce table.shop_table,
.woocommerce-cart-form,
.cart-collaterals .cart_totals,
.woocommerce-checkout-review-order,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content,
.wc-block-checkout,
.wc-block-components-sidebar-layout .wc-block-components-main,
.wc-block-components-sidebar {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(16, 24, 32, 0.08);
}

.woocommerce table.shop_table {
  overflow: hidden;
  width: 100%;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 16px;
}

.woocommerce-cart-form,
.cart-collaterals .cart_totals,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  padding: 22px;
}

.woocommerce-account .woocommerce {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li + li {
  margin-top: 6px;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
  background: rgba(16, 24, 32, 0.06);
}

.woocommerce form.login,
.woocommerce form.register {
  border: 0;
  margin: 0;
  padding: 0;
}

.woocommerce .u-columns.col2-set {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.wc-block-checkout,
.wc-block-cart {
  padding: 22px;
}

.wc-block-checkout .wc-block-components-sidebar-layout,
.wc-block-cart .wc-block-components-sidebar-layout {
  gap: 22px;
}

.wc-block-components-order-summary,
.wc-block-components-checkout-step,
.wc-block-cart-items,
.wc-block-components-totals-wrapper {
  border-color: rgba(16, 24, 32, 0.08) !important;
}

.wc-block-components-radio-control__option,
.wc-block-components-checkout-step,
.wc-block-components-order-summary,
.wc-block-components-totals-wrapper,
.wc-block-components-checkout-place-order-button {
  border-radius: 18px;
}

.landing-builder {
  min-width: 0;
}

.landing-builder > section {
  margin-bottom: 24px;
}

.landing-builder * {
  min-width: 0;
}

.landing-builder img {
  max-width: 100%;
  height: auto;
}

.landing-builder [style*="max-width"] {
  max-width: 100% !important;
}

.landing-builder div[style*="display: flex"] > br,
.hero__actions > br,
.landing-builder .hero__actions br {
  display: none !important;
}

.site-footer {
  padding: 0 0 34px;
}

.site-footer__inner {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: 32px;
  background: #121920;
  color: rgba(255, 255, 255, 0.86);
  box-shadow: var(--km-shadow);
}

.site-footer__inner::before {
  content: "";
  position: absolute;
  inset: auto -10% -44% auto;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(208, 109, 40, 0.28), transparent 68%);
}

.site-footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.site-footer__brand p,
.site-footer__col p,
.site-footer__col li,
.site-footer__bottom {
  color: rgba(255, 255, 255, 0.64);
}

.site-footer__brand .brand {
  margin-bottom: 18px;
}

.site-footer__col h3 {
  margin: 0 0 12px;
  font-size: 0.96rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.64);
}

.site-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__col li + li {
  margin-top: 10px;
}

.site-footer__col a {
  text-decoration: none;
}

.site-footer__text {
  color: inherit;
}

.site-footer__bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
}

.site-footer__bottom a {
  color: #fff;
}

.screen-reader-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@keyframes kmFadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1140px) {
  .site-header__bar {
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .site-nav {
    order: 10;
    width: 100%;
  }

  .site-nav__list {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__aside {
    align-self: auto;
  }

  .showcase__grid,
  .solutions__grid,
  .trust-band__grid,
  .signal-strip,
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .woocommerce div.product,
  .woocommerce-account .woocommerce {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .site-header__bar {
    gap: 16px;
  }

  .brand__tagline,
  .site-header__actions,
  .site-header__right {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 6px;
  }

  .site-nav__list a {
    width: 100%;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
  }

  .home-main,
  .page-shell,
  .commerce-shell,
  .site-footer__inner,
  .signal-strip__item,
  .page-intro,
  .page-surface,
  .commerce-intro,
  .commerce-surface {
    width: var(--km-shell);
  }

  .hero {
    padding: 28px 22px;
  }

  .hero__title {
    font-size: clamp(2.7rem, 14vw, 4.5rem);
    line-height: 0.98;
  }

  .hero__lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero__actions,
  .hero__actions .wp-block-button,
  .hero__actions .wp-element-button,
  .hero__actions .button {
    width: 100%;
  }

  .hero__actions .wp-block-button__link,
  .hero__actions .button {
    justify-content: center;
  }

  .hero__title,
  .section-head h2,
  .page-intro h1,
  .commerce-intro h1,
  .woocommerce div.product .product_title {
    text-wrap: pretty;
  }

  .woocommerce ul.products li.product {
    padding: 18px;
  }

  .woocommerce ul.products li.product .price {
    line-height: 1.35;
  }

  .woocommerce .woocommerce-ordering {
    max-width: none;
  }

  .hero__panel,
  .showcase__grid,
  .solutions__grid,
  .trust-band__grid,
  .signal-strip,
  .site-footer__grid,
  .legal-grid,
  .woocommerce ul.products {
    grid-template-columns: 1fr;
  }

  .final-cta,
  .site-footer__bottom,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .woocommerce div.product form.cart .variations tbody,
  .woocommerce div.product form.cart .variations tr,
  .woocommerce div.product form.cart .variations td,
  .woocommerce div.product form.cart .variations th {
    display: block;
    width: 100%;
  }

  .woocommerce div.product form.cart {
    display: block;
  }

  .woocommerce div.product form.cart .quantity,
  .woocommerce div.product form.cart .single_add_to_cart_button,
  .woocommerce div.product form.cart .button,
  .woocommerce div.product form.cart .qty {
    width: 100%;
  }

  .woocommerce div.product form.cart .variations {
    width: 100%;
  }

  .km-variation-chips {
    width: 100%;
  }

  .km-variation-chip {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
    text-align: center;
  }

  .woocommerce div.product .product_title {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .woocommerce .woocommerce-tabs ul.tabs li {
    display: block;
    margin-right: 0;
  }

  .woocommerce .woocommerce-tabs ul.tabs li a {
    display: block;
    text-align: center;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation,
  .woocommerce-account .woocommerce-MyAccount-content,
  .woocommerce-cart-form,
  .cart-collaterals .cart_totals {
    padding: 18px;
  }

  .woocommerce table.shop_table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .woocommerce table.shop_table th,
  .woocommerce table.shop_table td {
    white-space: nowrap;
  }

  .landing-builder section[style] {
    padding: 28px 18px !important;
    border-radius: 24px !important;
  }

  .landing-builder h1[style] {
    font-size: clamp(2rem, 10vw, 2.8rem) !important;
    line-height: 1.06 !important;
  }

  .landing-builder h2[style] {
    font-size: clamp(1.5rem, 7vw, 2.15rem) !important;
    line-height: 1.12 !important;
  }

  .landing-builder h3[style] {
    font-size: 1.22rem !important;
    line-height: 1.2 !important;
  }

  .landing-builder p[style] {
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  .landing-builder div[style*="display: flex"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .landing-builder div[style*="display: flex"] > a[style] {
    width: 100%;
    text-align: center;
  }

  .landing-builder div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .woocommerce .u-columns.col2-set {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Popup «Оставить заявку»
   ============================================================ */

.kmvsg-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 24, 32, 0.6);
  backdrop-filter: blur(4px);
  padding: 16px;
}

.kmvsg-modal[hidden] {
  display: none !important;
}

body.kmvsg-modal-open {
  overflow: hidden;
}

.kmvsg-modal__overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.kmvsg-modal__box {
  position: relative;
  z-index: 1;
  background: var(--km-paper);
  border-radius: var(--km-radius-xl);
  box-shadow: var(--km-shadow);
  padding: 28px 36px;
  width: min(860px, 100%);
  max-height: calc(100vh - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.kmvsg-modal__close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--km-muted);
  padding: 4px 8px;
  transition: color 0.18s;
}

.kmvsg-modal__close:hover {
  color: var(--km-ink);
}

.kmvsg-modal__title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 16px;
  flex-shrink: 0;
  color: var(--km-ink);
}

.kmvsg-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.kmvsg-modal__hint,
.kmvsg-modal__link,
.kmvcg-form-embed__link {
  margin: 0;
  color: var(--km-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.kmvsg-form-frame {
  width: 100%;
  border: 0;
  border-radius: 20px;
  background: #fff;
}

.kmvsg-form-frame--modal {
  flex: 0 0 auto;
  min-height: 1600px;
}

.kmvsg-form-frame--page {
  min-height: 920px;
}

.kmvcg-form-embed {
  margin-top: 32px;
  padding: 32px;
  border-radius: var(--km-radius-xl);
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(16, 24, 32, 0.08);
  box-shadow: 0 24px 60px rgba(16, 24, 32, 0.08);
  display: grid;
  gap: 18px;
}

.kmvcg-form-embed__header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.kmvcg-form-embed__header p {
  margin: 0;
  color: var(--km-muted);
  line-height: 1.7;
}

/* ============================================================
   Контраст текста на тёмных Gutenberg-блоках
   ============================================================ */

/* Тёмный фон — принудительно белый текст */
.has-ink-background-color,
.has-hero-background-color,
[style*="background-color: #101820"],
[style*="background-color:#101820"],
[style*="background-color: #11181f"],
[style*="background-color:#11181f"],
[style*="background-color: rgb(16, 24, 32)"],
[style*="background-color: rgb(17, 24, 31)"] {
  color: #fff;
}

.has-ink-background-color h1,
.has-ink-background-color h2,
.has-ink-background-color h3,
.has-ink-background-color h4,
.has-ink-background-color p,
.has-ink-background-color li,
.has-hero-background-color h1,
.has-hero-background-color h2,
.has-hero-background-color h3,
.has-hero-background-color h4,
.has-hero-background-color p,
.has-hero-background-color li {
  color: inherit;
}

/* Блоки с тёмным фоном через inline style (Gutenberg cover/group) */
.wp-block-group.has-background:not([class*="has-white"]):not([class*="has-light"]):not([class*="has-pale"]):not([class*="has-vivid-green"]):not([class*="has-cyan"]) {
  color: #fff;
}

/* Кнопки-ссылки на тёмных блоках */
.has-ink-background-color a,
.has-hero-background-color a {
  color: var(--km-accent);
}

/* ============================================================
   Правки вёрстки — баги главной страницы
   ============================================================ */

/* 1. ХЕДЕР — предотвращаем перенос на широких экранах */
.brand {
  flex-shrink: 0;
}

.site-nav {
  min-width: 0;
  overflow: hidden;
}

.site-nav__list {
  flex-wrap: nowrap;
}

.site-nav__list a {
  white-space: nowrap;
  font-size: 0.88rem;
  padding: 10px 10px;
}

/* 2. КНОПКИ ГЕРОЯ — ghost-кнопка на тёмном фоне */
.hero .button--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.06);
}

.hero .button--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.hero .button--accent {
  background: linear-gradient(135deg, var(--km-accent), var(--km-accent-strong));
  color: #fff;
  border-color: transparent;
}

/* 3. БЛОК «Подойдёт, если...» — b2b-page-grid и b2b-card */
.b2b-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.b2b-card {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: var(--km-radius-lg);
  box-shadow: 0 18px 42px rgba(16, 24, 32, 0.08);
  padding: 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.b2b-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(16, 24, 32, 0.12);
  border-color: rgba(208, 109, 40, 0.22);
}

.b2b-card h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--km-ink);
}

.b2b-card p {
  margin: 0;
  color: var(--km-muted);
  font-size: 0.92rem;
}

/* 4. БЛОК «Закрываем понятные задачи...» — белый текст на тёмных карточках */
.solution-card p,
.solution-card h2,
.solution-card h3,
.solution-card span:not(.solution-card__chips span) {
  color: #fff !important;
}

.solution-card__top p {
  color: rgba(255, 255, 255, 0.78) !important;
}

.solution-card .eyebrow {
  color: var(--km-accent) !important;
}

.solution-card__chips span {
  color: rgba(255, 255, 255, 0.82) !important;
}

/* 5. БЛОК «От задачи бизнеса до запуска...» — process-band */
.process-band {
  margin-top: 32px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.process-card {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: var(--km-radius-lg);
  box-shadow: 0 18px 42px rgba(16, 24, 32, 0.08);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.process-card__step {
  display: block;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  color: var(--km-accent);
}

.process-card h3 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--km-ink);
}

.process-card p {
  margin: 0;
  color: var(--km-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* 6. FAQ — faq-band, faq-grid, faq-card */
.faq-band {
  margin-top: 32px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.faq-card {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: var(--km-radius-lg);
  box-shadow: 0 18px 42px rgba(16, 24, 32, 0.08);
  padding: 26px;
  transition: border-color 0.22s ease;
}

.faq-card:hover {
  border-color: rgba(208, 109, 40, 0.22);
}

.faq-card h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--km-ink);
}

.faq-card p {
  margin: 0;
  color: var(--km-muted);
  font-size: 0.93rem;
}

/* 7. КНОПКА «Получить консультацию» в секции final-cta */
.final-cta .button--accent {
  background: linear-gradient(135deg, var(--km-accent), var(--km-accent-strong)) !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  min-height: 50px;
}

/* Адаптив для новых секций */
@media (max-width: 1140px) {
  .process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .b2b-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .b2b-page-grid,
  .faq-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .site-nav__list a {
    font-size: 0.95rem;
    padding: 11px 14px;
  }

  .kmvsg-modal__box,
  .kmvcg-form-embed {
    padding: 24px;
  }

  .kmvsg-form-frame--modal {
    min-height: 1400px;
  }

  .kmvsg-form-frame--page {
    min-height: 860px;
  }
}

/* ── 8. b2b-cta-card — конверсионная карточка с кнопкой ── */
.b2b-cta-card {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(208, 109, 40, 0.2);
  border-radius: var(--km-radius-lg);
  box-shadow: 0 18px 42px rgba(16, 24, 32, 0.08);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.b2b-cta-card h3 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--km-ink);
}

.b2b-cta-card p {
  margin: 0;
  color: var(--km-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.b2b-cta-card .button {
  align-self: flex-start;
  margin-top: 4px;
}

/* ── 9. b2b-solution-card — сценарии на странице «Решения» ── */
.b2b-solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.b2b-solution-card {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: var(--km-radius-lg);
  box-shadow: 0 18px 42px rgba(16, 24, 32, 0.08);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.b2b-solution-card:hover {
  border-color: rgba(208, 109, 40, 0.22);
  box-shadow: 0 22px 52px rgba(16, 24, 32, 0.12);
}

.b2b-solution-card h3 {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--km-ink);
}

.b2b-solution-card p {
  margin: 0;
  color: var(--km-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── 10. b2b-support-card — карточки на странице «Поддержка» ── */
.b2b-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.b2b-support-card {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: var(--km-radius-lg);
  box-shadow: 0 18px 42px rgba(16, 24, 32, 0.08);
  padding: 26px;
  transition: border-color 0.22s ease;
}

.b2b-support-card:hover {
  border-color: rgba(208, 109, 40, 0.22);
}

.b2b-support-card h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--km-ink);
}

.b2b-support-card p {
  margin: 0;
  color: var(--km-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── 11. WooCommerce block filters & search ── */
.wc-block-product-filter,
.wp-block-woocommerce-filter-wrapper,
.wc-block-attribute-filter,
.wc-block-price-filter,
.wc-block-stock-filter,
.wc-block-rating-filter,
.wc-block-active-filters {
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(16, 24, 32, 0.08);
  border-radius: var(--km-radius-md);
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: 0 8px 22px rgba(16, 24, 32, 0.06);
}

.wc-block-components-filter-checkbox-list {
  gap: 6px;
  display: flex;
  flex-direction: column;
}

.wc-block-components-filter-checkbox-list__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--km-muted);
  cursor: pointer;
  padding: 3px 0;
}

.wc-block-components-filter-checkbox-list__item:hover {
  color: var(--km-ink);
}

.wc-block-components-filter-checkbox-list__item-count {
  font-size: 0.8rem;
  color: var(--km-muted);
  margin-left: auto;
}

.wc-block-product-filter__heading,
.wc-block-components-filter-title {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--km-ink);
  margin: 0 0 12px;
}

.wc-block-price-filter__range-text {
  font-size: 0.88rem;
  color: var(--km-muted);
  margin-top: 8px;
}

.wc-block-active-filters__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wc-block-active-filters__list-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--km-accent-soft);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--km-accent-strong);
}

.wc-block-active-filters__list-item-remove {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.18s;
}

.wc-block-active-filters__list-item-remove:hover {
  opacity: 1;
}

/* WooCommerce search block */
.wp-block-search__inside-wrapper {
  display: flex;
  gap: 8px;
  align-items: stretch;
  background: var(--km-paper);
  border: 1px solid rgba(16, 24, 32, 0.12);
  border-radius: var(--km-radius-sm);
  overflow: hidden;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(16, 24, 32, 0.06);
}

.wp-block-search__input {
  flex: 1;
  border: none !important;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  padding: 8px 12px;
  color: var(--km-ink);
}

.wp-block-search__button {
  background: linear-gradient(135deg, var(--km-accent), var(--km-accent-strong)) !important;
  color: #fff !important;
  border: none !important;
  border-radius: calc(var(--km-radius-sm) - 4px) !important;
  padding: 8px 18px !important;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: opacity 0.18s;
}

.wp-block-search__button:hover {
  opacity: 0.9;
}

/* ── 12. Адаптив для новых компонентов ── */
@media (max-width: 820px) {
  .b2b-solution-grid,
  .b2b-support-grid {
    grid-template-columns: 1fr;
  }
}
