/* Asens — фирменный красный #ff0101, чёрный в логотипе */
:root {
  --color-bg: #f5f5f4;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #5c5c5c;
  --color-accent: #ff0101;
  --color-accent-hover: #cc0101;
  --color-accent-light: #ffebeb;
  --color-border: #e5e5e5;
  --color-black: #0f0f0f;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  /* Отступ при переходе по якорям (#alkotestery, #scannery), чтобы заголовок секции был виден под шапкой */
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

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

.nav__list .current-menu-item .nav__link {
  color: var(--color-text-muted);
  cursor: default;
}

.nav__list .current-menu-item .nav__link:hover {
  text-decoration: none;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: text-decoration 0.2s;
}

.nav__link:hover {
  text-decoration: underline;
}

.nav__link--current {
  color: var(--color-text-muted);
  cursor: default;
}

.nav__link--current:hover {
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo__img {
  height: 40px;
  width: auto;
  display: block;
}

.header__hours {
  flex-shrink: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
}

.btn--full {
  width: 100%;
}

/* Main */
.main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  width: 100%;
}

/* Hero */
.hero {
  text-align: center;
  padding: 2.5rem 0 3rem;
}

.hero__title {
  margin: 0 0 0.5rem;
  padding-bottom: 0.4rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-black);
  display: inline-block;
  border-bottom: 2px solid var(--color-accent);
}

.hero__subtitle {
  margin: 0;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* Catalog */
.section-title {
  margin: 0 0 1.5rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-black);
}

.categories {
  margin-bottom: 2.5rem;
}

.categories:last-child {
  margin-bottom: 0;
}

.category-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.category-dscr {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.5;
}

.catalog-placeholder {
  margin: 0;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px dashed var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Б/У раздел */
.bu-intro {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.6;
}

.bu-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 0 0 2rem;
}

.bu-feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.bu-feature:hover {
  box-shadow: var(--shadow);
  border-color: #ddd;
}

.bu-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  color: var(--color-text);
}

.bu-feature__icon svg,
.bu-feature__icon img {
  width: 48px;
  height: 48px;
}

.bu-feature__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-black);
}

.bu-feature__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

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

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

.bu-info {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.bu-info p {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.bu-info p:last-child {
  margin-bottom: 0;
}

.bu-product {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.bu-product__image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
}

.bu-product__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.bu-product__body {
  min-width: 0;
}

.bu-product__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-black);
}

.bu-product__price {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.bu-product__stock {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.bu-product__desc,
.bu-product__kit {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
}

.bu-product__note {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

@media (max-width: 640px) {
  .bu-product {
    grid-template-columns: 1fr;
  }

  .bu-product__image-wrap {
    max-width: 280px;
  }
}

/* Страница Б/У */
.main--bu {
  padding-top: 1rem;
}

.bu-page-title {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-black);
}

.bu-products {
  margin-top: 2rem;
}

.bu-products .bu-product {
  margin-bottom: 2.5rem;
}

.bu-products .bu-product:last-child {
  margin-bottom: 0;
}

.bu-teaser {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.5;
}

.bu-cta {
  display: inline-block;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

/* Card */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-light);
}

.card__image-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.card__image {
  width: auto;
  height: 240px;
  margin: 0 auto;
  display: block;
  object-fit: cover;
  background: var(--color-bg-muted, #f0f0f0);
}

.card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: #e8e8e8;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.card__badge--scanner {
  color: var(--color-text-muted);
  background: #e8e8e8;
}

.card__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-black);
}

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

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

.card__image-wrap a {
  display: block;
  color: inherit;
}

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

.card__btn {
  display: inline-block;
  width: auto;
  padding: 0.5rem 1rem;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent);
  background: transparent;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}

.card__btn:hover {
  background: var(--color-accent-light);
  color: var(--color-accent-hover);
}

.card__btn--link {
  text-decoration: none;
  text-align: left;
}

/* Product detail panel */
.product-detail {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.product-detail.hidden {
  display: none;
}

.product-detail__inner {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.product-detail__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.product-detail__close:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.product-detail__name {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-black);
}

.product-detail__notice {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: #fef3c7;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: #92400e;
}

.product-detail__links {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.product-detail__links li {
  margin-bottom: 0.5rem;
}

.product-detail__links a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.product-detail__links a:hover {
  text-decoration: underline;
}

.product-detail__faq {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.product-detail__faq h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.faq-item {
  margin-bottom: 1rem;
}

.faq-item strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.product-detail__actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* Modal form */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.modal__close:hover {
  background: var(--color-bg);
  color: var(--color-text);
}

.modal__title {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-black);
}

.modal__subtitle {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* Form */
.form__row {
  margin-bottom: 1.1rem;
}

.form__row--double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.form__required {
  color: #b91c1c;
}

.form__hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color 0.2s;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form__textarea {
  resize: vertical;
  min-height: 100px;
}

.form button[type="submit"] {
  margin-top: 0.5rem;
}

/* Footer */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  text-align: center;
}

/* Меню в подвале */
.footer__nav {
  margin: 0.75rem 0 0;
}
.footer__nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__nav-list li {
  margin: 0;
}
.footer__nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}
.footer__nav a:hover {
  text-decoration: underline;
  color: var(--color-text);
}

/* Ссылки в подвале (Политика конфиденциальности, Политика обработки персональных данных) */
.footer a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}
.footer a:hover {
  text-decoration: underline;
}

.footer__link {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.footer__link:hover {
  text-decoration: underline;
}

.footer__hours {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.footer__cta {
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.footer__requisites-title {
  margin: 0.75rem 0 0.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.footer__requisites {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.footer__copy {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer__requisites {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* Consent checkbox */
.form__row--consent {
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1.4;
}

.form__checkbox {
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
}

/* Product page — внутренняя страница товара */
.main--product {
  padding-top: 1rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 2rem;
  align-items: start;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.product-card__image-wrap {
  position: sticky;
  top: 6rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
}

.product-card__image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.product-card__body {
  min-width: 0;
}

.product-card__content {
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
}

.product-card__content p:first-child {
  margin-top: 0;
}

.product-card__content p:last-child {
  margin-bottom: 0;
}

.product-card__title {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-black);
}

.product-card__section {
  margin-bottom: 2rem;
}

.product-card__section:last-of-type {
  margin-bottom: 1.5rem;
}

.product-card__heading {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.page-tabs__dscr {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.page-tabs__heading {
  margin: 1.5rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.page-tabs__heading:first-child {
  margin-top: 0;
}

.product-card__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-card__links li {
  margin-bottom: 0.5rem;
}

.product-card__links a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.product-card__links a:hover {
  text-decoration: underline;
}

/* Accordion — открывающиеся вкладки FAQ */
.accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion__item {
  border-bottom: 1px solid var(--color-border);
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__head {
  width: 100%;
  padding: 1rem 1.1rem;
  text-align: left;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  transition: background 0.2s;
}

.accordion__head::after {
  content: '';
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  margin-top: -0.2rem;
  transition: transform 0.2s;
}

.accordion__head:hover {
  background: var(--color-bg);
}

.accordion__head[aria-expanded="true"]::after {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
}

.accordion__body {
  padding: 1rem 1.1rem 1rem;
  background: var(--color-surface);
}

.accordion__body[hidden] {
  display: none;
}

.accordion__body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.accordion__body a {
color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}
.accordion__body a:hover {
  text-decoration: underline;
}

.product-card__cta {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .product-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .product-card__image-wrap {
    position: static;
    max-width: 280px;
    margin: 0 auto 0 0;
  }
}

@media (max-width: 600px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
  }

  body {
    padding-top: 7rem;
  }

  .categories {
    scroll-margin-top: 7rem;
  }

  .header__inner {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .logo {
    order: 1;
    width: auto;
    flex-shrink: 0;
    justify-content: flex-start;
  }

  .header__hours {
    order: 2;
    width: auto;
    flex-shrink: 0;
    text-align: right;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1rem;
  }

  .nav__link {
    font-size: 0.9rem;
  }

  .form__row--double {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

.cookie-banner.hidden {
  display: none;
}

.cookie-banner__text {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  max-width: 680px;
}

.cookie-banner__btn {
  flex-shrink: 0;
  padding: 0.45rem 1.25rem;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* Contact Form 7 внутри модалок — подгонка под стили верстки */
.form--cf7 .wpcf7-form p {
  margin-bottom: 1.1rem;
}
.form--cf7 .wpcf7-form p:last-of-type {
  margin-bottom: 0;
}
.form--cf7 .wpcf7-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}
.form--cf7 .wpcf7-form .form__hint {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.form--cf7 .wpcf7-form .form__required {
  color: #b91c1c;
}
.form--cf7 .wpcf7-form .form__row--consent {
  margin-top: 0.25rem;
  font-size: 0.9rem;
}
.form--cf7 .wpcf7-form .form__row--consent a {
  color: var(--color-accent);
  text-decoration: underline;
}
.form--cf7 .wpcf7-form .form__row--consent a:hover {
  text-decoration: underline;
}
.form--cf7 .wpcf7-form .form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1.4;
}
.form--cf7 .wpcf7-form .form__consent .form__checkbox {
  margin-top: 0.15rem;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.form--cf7 .wpcf7-form .wpcf7-list-item {
  display: inline-block;
  margin: 0em;
}
/* Скрытая строка «Товар» в форме «Задать вопрос» */
.form--cf7 .wpcf7-form .form__row:has(input#product[type="hidden"]) {
  display: none;
}
.form--cf7 .wpcf7-form select optgroup {
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
  padding: 0.25rem 0;
}
.form--cf7 .wpcf7-form input[type="text"],
.form--cf7 .wpcf7-form input[type="email"],
.form--cf7 .wpcf7-form input[type="tel"],
.form--cf7 .wpcf7-form select,
.form--cf7 .wpcf7-form textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
}
.form--cf7 .wpcf7-form textarea {
  min-height: 6.5rem; /* ~4 строки, только textarea */
}
.form--cf7 .wpcf7-form input.wpcf7-not-valid,
.form--cf7 .wpcf7-form select.wpcf7-not-valid,
.form--cf7 .wpcf7-form textarea.wpcf7-not-valid {
  border-color: #b91c1c;
}
.form--cf7 .wpcf7-form .wpcf7-submit {
  margin-top: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  width: 100%;
}
.form--cf7 .wpcf7-form .wpcf7-submit:hover {
  background: var(--color-accent-hover);
}
.form--cf7 .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}
.wpcf7 form.sent .wpcf7-response-output {
  border-color: #46b450;
  margin: 0px!important;
}