:root {
  --sem-brand: #1a1a1a;
}

/* Строгие скругления по сайту */
.button { border-radius: 6px !important; }
.footer-wrapper { border-radius: 8px !important; }
.feedback-container { border-radius: 8px !important; }

/* Логотип (из Сайт) */
.header-logo,
.footer-logo {
  display: inline-block;
  text-decoration: none;
}

.header-logo {
  width: 120px;
}

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

.footer-logo {
  width: 160px;
}

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

/* Hero — строгий блок с фоном и инфографикой */
.sem-hero-section {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

.sem-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--white) 0%, var(--sem-bg) 100%);
  border: 1px solid var(--sem-border);
  box-shadow: var(--shadow-md);
  min-height: 320px;
  display: flex;
  align-items: stretch;
}

.sem-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  max-width: 400px;
  height: 100%;
  background: radial-gradient(ellipse at 100% 50%, var(--primary-blue-light) 0%, transparent 70%);
  pointer-events: none;
}

.sem-hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: clamp(20px, 2.5vw, 36px) clamp(20px, 2.5vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sem-hero-subline {
  font-size: clamp(12px, 1.2vw + 0.4rem, 16px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: var(--primary-blue);
}

.sem-hero-title {
  margin-bottom: 16px;
  font-size: clamp(var(--title-1-min), 8vw + 2rem, var(--title-1-max));
  line-height: 0.95;
  color: var(--text-main);
}

.sem-hero-desc {
  font-size: clamp(14px, 1vw + 0.5rem, 16px);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--text-secondary);
}

.sem-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sem-hero-actions .button {
  min-width: 160px;
}

.sem-hero-tags {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-secondary);
  align-items: center;
}

.sem-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-main);
}

.sem-hero-tag-icon {
  flex-shrink: 0;
  color: var(--primary-orange);
}

.sem-hero-side {
  position: relative;
  z-index: 1;
  flex: 0 0 min(280px, 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-left: 1px solid var(--sem-border);
}

.sem-hero-side-card {
  background: var(--white);
  border: 1px solid var(--sem-border);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sem-hero-side-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.sem-hero-side-card .title-3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.sem-hero-steps {
  margin: 0 0 16px;
  padding-left: 1.25rem;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.sem-hero-side-card .button {
  width: 100%;
}

@media (max-width: 1199px) {
  .sem-hero-card {
    flex-direction: column;
    min-height: auto;
  }
  .sem-hero-side {
    border-left: none;
    border-top: 1px solid var(--sem-border);
    padding: 20px;
    flex: none;
  }
}

@media (max-width: 767px) {
  .sem-hero-inner {
    padding: 20px 16px;
  }
  .sem-hero-tags {
    gap: 12px;
    font-size: 12px;
  }
  .sem-hero-side {
    padding: 16px;
  }
  .sem-hero-side-card {
    padding: 16px;
  }
}

/* Блок статистики — инфографика */
.sem-stats-section {
  background: linear-gradient(180deg, var(--sem-bg) 0%, var(--white) 100%);
}

.sem-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 24px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--sem-border);
  box-shadow: var(--shadow-md);
}

.sem-stat-item {
  text-align: center;
  padding: 16px 8px;
  border-radius: 10px;
  transition: background 0.2s, transform 0.2s;
}

.sem-stat-item:hover {
  background: var(--sem-bg);
  transform: translateY(-2px);
}

.sem-stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 12px;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sem-stat-icon svg {
  width: 28px;
  height: 28px;
}

.sem-stat-content {
  min-width: 0;
}

.sem-stat-value {
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 800;
  color: var(--primary-blue);
  line-height: 1.2;
  margin-bottom: 4px;
  font-family: 'PT Sans Narrow', sans-serif;
}

.sem-stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

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

@media (max-width: 767px) {
  .sem-stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 16px;
  }
  .sem-stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    padding: 14px 16px;
  }
  .sem-stat-content {
    flex: 1;
    min-width: 0;
  }
  .sem-stat-icon {
    margin: 0;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }
  .sem-stat-icon svg {
    width: 24px;
    height: 24px;
  }
  .sem-stat-value {
    margin-bottom: 0;
  }
  .sem-stat-label {
    margin-top: 2px;
  }
}

/* Карточки секций — единый стиль */
.sem-section-card {
  background: var(--white);
  border: 1px solid var(--sem-border);
  border-radius: 10px;
  padding: clamp(16px, 2vw, 24px) clamp(16px, 2vw, 28px);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.04);
}

.sem-section-title {
  text-align: right;
  margin-bottom: 16px;
  font-size: clamp(var(--title-2-min), 4vw + 2rem, var(--title-2-max));
}

@media (max-width: 767px) {
  .sem-section-title {
    text-align: left;
    margin-bottom: 12px;
  }
}

/* Benefits — пункты внутри секции */
.sem-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

@media (max-width: 767px) {
  .sem-benefits-grid {
    grid-template-columns: 1fr;
  }
}

.sem-benefit-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--sem-border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.sem-benefit-item:last-child {
  border-bottom: none;
}

.sem-benefit-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sem-benefit-icon svg {
  width: 26px;
  height: 26px;
}

.sem-benefit-item-title {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.sem-benefit-item-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

/* About — двухколоночный блок */
.sem-about-inner {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.sem-about-side {
  flex: 0 0 280px;
}

.sem-about-side-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-main);
}

.sem-about-side-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.sem-about-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sem-about-main {
  flex: 1;
  min-width: 280px;
}

.sem-about-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.sem-about-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 1199px) {
  .sem-about-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .sem-about-features {
    grid-template-columns: 1fr;
  }
}

.sem-about-feature {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--sem-border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.sem-about-feature:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

.sem-about-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sem-about-feature-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text-main);
}

.sem-about-feature-desc {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

/* Purchase — две колонки с инфографикой */
.sem-purchase-card {
  border: 1px solid var(--sem-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.sem-purchase-inner {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.sem-purchase-dark {
  flex: 1 1 400px;
  background: linear-gradient(160deg, var(--text-main) 0%, #2d3748 100%);
  color: var(--white);
  padding: 28px 32px;
}

.sem-purchase-dark .title-3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 20px;
}

.sem-purchase-steps {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.sem-purchase-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.sem-purchase-step:last-child {
  margin-bottom: 0;
}

.sem-purchase-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary-orange);
  color: var(--white);
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sem-purchase-dark .button {
  max-width: 260px;
}

.sem-purchase-light {
  flex: 1 1 400px;
  padding: 28px 32px;
}

.sem-purchase-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--sem-border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.sem-purchase-item:last-child {
  border-bottom: none;
}

.sem-purchase-item-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sem-purchase-item-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text-main);
}

.sem-purchase-item-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 767px) {
  .sem-purchase-dark,
  .sem-purchase-light {
    padding: 20px 16px;
  }
}

/* FAQ — обёртка и пункты */
.sem-faq-wrapper {
  background: var(--white);
  border: 1px solid var(--sem-border);
  border-radius: 10px;
  padding: 16px 20px;
}

.sem-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sem-faq-item {
  border-bottom: 1px solid var(--sem-border);
  transition: background 0.2s;
}

.sem-faq-item:last-child {
  border-bottom: none;
}

.sem-faq-question {
  padding: 12px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.sem-faq-item:hover .sem-faq-question {
  background: var(--sem-bg);
}

.sem-faq-item.active .sem-faq-icon {
  transform: rotate(45deg);
  color: var(--text-main);
}

.sem-faq-question h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  flex: 1;
}

.sem-faq-icon {
  font-size: 20px;
  color: var(--text-secondary);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.sem-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}

.sem-faq-answer-inner {
  padding: 0 0 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

@media (max-width: 767px) {
  .sem-faq-wrapper {
    padding: 14px 16px;
  }
}

/* Каталог: поиск и категории */
.sem-catalog-intro {
  margin: -8px 0 20px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 560px;
}

@media (max-width: 767px) {
  .sem-catalog-intro {
    margin-bottom: 16px;
    font-size: 14px;
  }
}

.catalog-search-wrapper {
  margin-bottom: 16px;
}

.catalog-search-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text-main);
  border: 1px solid var(--sem-border);
  border-radius: 8px;
  background: var(--white);
  font-family: inherit;
  transition: border-color 0.2s;
}

.catalog-search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.catalog-search-input::placeholder {
  color: var(--text-secondary-2);
}

.catalog-categories {
  display: flex;
  flex-direction: column;
}

.catalog-categories .category-item {
  cursor: pointer;
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--sem-border);
  transition: color 0.2s;
}

.catalog-categories .category-item:hover,
.catalog-categories .category-item.active {
  color: var(--primary-blue);
  font-weight: 600;
}

.catalog-categories .category-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.catalog-categories .category-item-link:hover {
  color: var(--primary-blue);
}

.catalog-filters {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  flex-basis: 280px;
}

@media (max-width: 767px) {
  .catalog-filters {
    flex-basis: 100%;
  }
}

.catalog-products {
  width: 100%;
  flex: 1;
}

.catalog-products .grid {
  grid-gap: 20px;
}

.catalog-no-results {
  display: none;
  text-align: center;
  padding: 16px 12px;
  color: var(--text-secondary);
  font-size: 14px;
}

.catalog-no-results.is-visible {
  display: block;
}

.catalog-show-more-wrap {
  text-align: center;
  margin-top: 14px;
}

/* Хлебные крошки и страница категории */
.breadcrumb {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.breadcrumb a {
  color: var(--primary-blue);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 6px;
  color: var(--text-secondary-2);
}

/* --- Страница категории --- */
.sem-category-page {
  padding-top: clamp(1rem, 2vw, 1.5rem);
}

.sem-category-breadcrumb {
  margin-bottom: 24px;
  padding: 10px 0;
  font-size: 14px;
}

.breadcrumb-current {
  color: var(--text-main);
  font-weight: 600;
}

/* Hero категории */
.sem-category-hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 32px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--white) 0%, var(--sem-bg) 100%);
  border: 1px solid var(--sem-border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.sem-category-hero-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sem-category-hero-content {
  flex: 1;
  min-width: 0;
}

.sem-category-hero-title {
  margin: 0 0 12px;
  font-size: clamp(var(--title-2-min), 4vw + 2rem, var(--title-2-max));
}

.sem-category-hero-intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 20px;
  max-width: 720px;
}

.sem-category-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Блоки О направлении / Применение / Преимущества */
.sem-category-blocks {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.sem-category-block {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--sem-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sem-category-block:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 4px 16px rgba(15, 76, 129, 0.08);
}

.sem-category-block-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sem-category-block-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 12px;
  font-family: 'PT Sans Narrow', sans-serif;
  text-transform: uppercase;
}

.sem-category-block .sem-category-desc-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.sem-category-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.sem-category-list li {
  margin-bottom: 8px;
}

.sem-category-list li::marker {
  color: var(--primary-orange);
}

/* Секция моделей */
.sem-category-models {
  padding: 28px 28px 32px;
  margin-bottom: 28px;
  background: var(--white);
  border: 1px solid var(--sem-border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.sem-category-models-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 24px;
  font-family: 'PT Sans Narrow', sans-serif;
  text-transform: uppercase;
}

.sem-category-models-grid {
  grid-gap: 20px;
}

/* Кнопка назад */
.sem-category-back {
  margin-top: 8px;
  margin-bottom: 24px;
}

.sem-category-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 10px;
  transition: gap 0.2s ease;
}

.sem-category-back-btn:hover {
  gap: 14px;
}

.sem-category-back-btn svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.sem-category-back-btn:hover svg {
  transform: translateX(-4px);
}

/* Устаревшие классы для совместимости */
.sem-category-title {
  margin-bottom: 12px;
}

.sem-category-desc {
  margin-bottom: 16px;
}

.sem-category-desc-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 767px) {
  .sem-category-hero {
    flex-direction: column;
    padding: 20px 20px 24px;
    margin-bottom: 20px;
  }
  .sem-category-hero-icon {
    width: 56px;
    height: 56px;
  }
  .sem-category-hero-icon svg {
    width: 28px;
    height: 28px;
  }
  .sem-category-block {
    flex-direction: column;
    padding: 20px 20px 24px;
    gap: 16px;
  }
  .sem-category-models {
    padding: 20px 16px 24px;
  }
  .sem-category-models-title {
    margin-bottom: 20px;
    font-size: 18px;
  }
}

/* Карточка товара в каталоге */
.product-item {
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--sem-border);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-item:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 8px 24px rgba(15, 76, 129, 0.12);
  transform: translateY(-4px);
}

.product-item-image-wrap {
  position: relative;
  width: 100%;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--sem-bg) 0%, #eef2f7 100%);
  overflow: hidden;
}

.product-item-image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.35s ease;
}

.product-item:hover .product-item-image-wrap img {
  transform: scale(1.04);
}

.product-item-category {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary-blue);
  background: var(--white);
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.product-item-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-item-title {
  margin: 0;
  font-size: clamp(15px, 1.1vw + 0.4rem, 17px);
  line-height: 1.35;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.product-item-price {
  font-weight: 800;
  font-size: 16px;
  color: var(--primary-blue);
  background: var(--primary-blue-light);
  padding: 8px 12px;
  border-radius: 8px;
  align-self: flex-start;
  font-family: 'PT Sans Narrow', sans-serif;
}

.product-item-price-request {
  color: var(--text-secondary);
  background: var(--sem-bg);
  font-weight: 600;
  font-size: 14px;
}

.product-item-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-item-spec {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--sem-bg);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--sem-border);
}

.product-item-btn {
  width: 100%;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: 15px;
  min-height: 46px;
  transition: gap 0.2s ease;
}

.product-item-btn:hover {
  gap: 12px;
}

.product-item-btn-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.product-item:hover .product-item-btn-icon {
  transform: translateX(4px);
}

@media (max-width: 767px) {
  .product-item-body {
    padding: 14px;
  }
  .product-item-image-wrap {
    min-height: 140px;
  }
  .product-item-image-wrap img {
    min-height: 140px;
    padding: 12px;
  }
}

/* Модалка товара */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.product-modal.is-open {
  display: flex;
}

.product-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.product-modal-card {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--sem-border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.product-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 0;
  border-bottom: 1px solid var(--sem-border);
}

.product-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--sem-bg);
  border: 1px solid var(--sem-border);
  font-size: 24px;
  color: var(--text-main);
}

.product-modal-body {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  padding: 20px;
}

.product-modal-image-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-modal-image {
  border-radius: 8px;
  background: var(--sem-bg);
  overflow: hidden;
  border: 1px solid var(--sem-border);
}

.product-modal-image img {
  width: 100%;
  height: 320px;
  object-fit: contain;
}

.product-modal-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.product-modal-thumb {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: var(--sem-bg);
  cursor: pointer;
}

.product-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-modal-thumb.active {
  border-color: var(--primary-blue);
}

.product-modal-price {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-main);
  background: var(--sem-bg);
  border: 1px solid var(--sem-border);
  padding: 8px 12px;
  border-radius: 6px;
}

.product-modal-desc {
  line-height: 1.6;
  color: var(--text-main);
  white-space: pre-line;
}

.product-modal-params {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.product-modal-param {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #ececec;
  padding-bottom: 10px;
}

.product-modal-param b {
  font-weight: 600;
}

/* Модалка товара — safe-area на малых экранах */
.product-modal {
  padding: 16px;
  padding-left: calc(16px + env(safe-area-inset-left, 0px));
  padding-right: calc(16px + env(safe-area-inset-right, 0px));
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.product-modal-card {
  max-height: min(calc(90vh - 32px), calc(100dvh - 32px), 900px);
}

@media (max-width: 968px) {
  .product-modal-body {
    grid-template-columns: 1fr;
  }
  .product-modal-image img {
    height: 240px;
  }
  .product-modal-thumb {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .product-modal {
    padding: 12px;
    padding-left: calc(12px + env(safe-area-inset-left, 0px));
    padding-right: calc(12px + env(safe-area-inset-right, 0px));
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
}

/* Страница товара */
.sem-product-page .sem-category-breadcrumb {
  margin-bottom: 20px;
}

.sem-product-hero {
  margin-bottom: 28px;
  padding: 24px 28px;
  background: var(--white);
  border: 1px solid var(--sem-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.sem-product-category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.sem-product-title {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 28px);
  color: var(--text-main);
}

.sem-product-price {
  font-weight: 800;
  font-size: 18px;
  color: var(--primary-blue);
  background: var(--primary-blue-light);
  padding: 10px 14px;
  border-radius: 8px;
  display: inline-block;
  font-family: 'PT Sans Narrow', sans-serif;
}

.sem-product-price-request {
  color: var(--text-secondary);
  background: var(--sem-bg);
  font-weight: 600;
  font-size: 16px;
}

.sem-product-body {
  display: grid;
  grid-template-columns: minmax(320px, 520px) 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--sem-border);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.sem-product-main-image {
  border-radius: 10px;
  overflow: hidden;
  background: var(--sem-bg);
  border: 1px solid var(--sem-border);
}

.sem-product-main-image img {
  width: 100%;
  height: auto;
  min-height: 380px;
  object-fit: contain;
  display: block;
}

.sem-product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.sem-product-thumb {
  width: 76px;
  height: 76px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sem-bg);
  cursor: pointer;
  transition: border-color 0.2s;
}

.sem-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sem-product-thumb.active {
  border-color: var(--primary-blue);
}

.sem-product-block-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 12px;
  font-family: 'PT Sans Narrow', sans-serif;
  text-transform: uppercase;
}

.sem-product-desc {
  margin-bottom: 20px;
}

.sem-product-desc-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  white-space: pre-line;
}

.sem-product-params-list {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.sem-product-param {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--sem-border);
  padding-bottom: 10px;
  font-size: 14px;
}

.sem-product-param-name {
  font-weight: 600;
  color: var(--text-main);
}

.sem-product-param-value {
  color: var(--text-secondary);
  text-align: right;
}

.sem-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sem-product-btn {
  min-width: 200px;
}

.sem-product-related {
  margin-bottom: 28px;
}

.sem-product-related-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 20px;
  font-family: 'PT Sans Narrow', sans-serif;
  text-transform: uppercase;
}

.sem-product-related-grid {
  grid-gap: 20px;
}

.sem-product-related-grid .product-item {
  text-decoration: none;
  color: inherit;
}

.sem-product-related-grid .product-item-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}

@media (max-width: 968px) {
  .sem-product-body {
    grid-template-columns: 1fr;
  }
  .sem-product-main-image img {
    min-height: 320px;
  }
}

@media (max-width: 767px) {
  .sem-product-hero {
    padding: 20px;
  }
  .sem-product-body {
    padding: 20px;
    gap: 24px;
  }
}

