/*
Theme Name: Hq Pages Child
Theme URI: https://hq-web.net/themes/wordpress/hq-web
Text Domain: hq-pages
Author: hq-web
Author URI: https://hq-web.net
Template: hq-pages
*/

.wpcf7 textarea {
  color: var(--color-text-primary);
}

.block-hq-contact-form-2 p:has(> span[data-name^="acceptance"]),
.block-hq-contact-form-4 p:has(> span[data-name^="acceptance"]) {
  grid-column: span 3;
}
@media (max-width: 1070px) {
  .block-hq-contact-form-2 p:has(> span[data-name^="acceptance"]) {
    grid-column: auto;
  }
}
@media (max-width: 1023px) {
  .block-hq-contact-form-4 p:has(> span[data-name^="acceptance"]) {
    grid-column: span 2;
  }
}

@media (max-width: 721px) {
  .block-hq-contact-form-4 p:has(> span[data-name^="acceptance"]) {
    grid-column: auto;
  }
}

.catalog__single-brand-logo {
  display: flex;
  align-items: center;
}

.catalog__single-additional-information
  .woocommerce-product-attributes
  .woocommerce-product-attributes-item {
  flex-direction: row;
}

/* ==================== Страница бренда ==================== */

/* HERO */
.brand-hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 20px 0 10px;
}
.brand-hero__title {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--color-accent-secondary);
}
.brand-hero__tagline {
  color: var(--color-text-primary);
}
.brand-hero__description {
  font-size: 16px;
  line-height: 1.65;
  color: #444;
  max-width: 780px;
}
.brand-hero__description p {
  margin: 0 0 14px;
}
.brand-hero__logo img {
  max-height: 110px;
  width: auto;
  display: block;
}

.title-h2 {
  font-size: 40px;
  margin-bottom: 0.6em;
  font-weight: 700;
}
.brand-rnd .title-h2 {
  margin-bottom: 1.5em;
  text-align: center;
}
.title-h2 span {
  color: var(--color-accent-secondary);
}

.brand-rnd__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
/* R&D */
.brand-rnd {
  padding: 60px 0 40px;
}

.brand-rnd__text p {
  margin: 0 0 16px;
}
.brand-rnd__icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 71px;
  height: 71px;

  margin-bottom: 25px;

  border-radius: 14px;
  background-color: #ced3fc;
}
/* Статистика */
.brand-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px;
  margin-top: 40px;
  background: var(--color-background-primary, #f5f7fb);
  border-radius: 16px;
}
.brand-stats__item {
  text-align: center;
  position: relative;
}
.brand-stats__item + .brand-stats__item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 0;

  width: 1px;
  height: 100%;

  background-color: var(--color-accent-secondary);
}
.brand-stats__value {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-accent-secondary);
  margin-bottom: 10px;
}
.brand-stats__label {
}

/* Товары */
.brand-products {
  padding: 40px 0 60px;
}

/* Адаптив */
@media (max-width: 992px) {
  .brand-rnd {
    padding-top: 30px;
  }
  .brand-hero__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .brand-hero__logo {
    order: -1;
  }
  .brand-hero__title {
    font-size: 32px;
  }
  .brand-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 30px 20px;
  }
  .brand-stats__item:nth-child(3)::before {
    display: none;
  }
  .brand-stats__value {
    font-size: 34px;
  }
}
@media (max-width: 600px) {
  .brand-rnd {
    padding-top: 0;
  }
  .brand-hero__title {
    font-size: 26px;
  }
  .brand-rnd__grid {
    grid-template-columns: 1fr;
  }
  .brand-stats {
    grid-template-columns: 1fr;
  }
  .brand-stats__item::before {
    display: none;
  }
  .brand-contact__box {
    padding: 24px;
  }
}

.single-product .hq-faq {
  margin-bottom: 60px;
}

/* COOKIE  КУКИ*/
.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--color-background-secondary);

  padding: 16px 20px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
  /* font-size: 14px;
  line-height: 1.4; */
}
.cookie-notice[hidden] {
  display: none;
}

.cookie-notice__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.cookie-notice__text {
  margin: 0;
}
.cookie-notice__text a {
  /* color: var(--color-text-secondary, #8a8a8a); */
  text-decoration: underline;
  font-weight: 600;
}
.cookie-notice__btn {
  flex-shrink: 0;
}

/* .cookie-notice__btn {
  background: #7382fe;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 10px 22px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
  white-space: nowrap;
}
.cookie-notice__btn:hover {
  background: #5a6be0;
} */

@media (max-width: 600px) {
  .cookie-notice {
    padding-left: 0;
    padding-right: 0;
  }
  /* .cookie-notice__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  } */
  .cookie-notice__inner {
    flex-direction: column;
  }
  .cookie-notice__btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .hq-faq__element-question-text {
    display: block;
  }
  .hq-faq__element-question {
    align-items: center;
    padding: 20px 25px;
  }
  .hq-faq__element-answer {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 25px;
  }
}

main
  > section:first-of-type:has(
    .widget_block:first-of-type .block-hq-first-section-1
  ) {
  margin-bottom: 0;
}
.hq-widget-2 {
  display: none !important;
}

.single-post .title-h1 {
  font-weight: 700;
}

.single-v4 .article__thumbnail img {
  object-fit: contain;
}
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.page-template-template-servis .layout__wrapper {
  flex-wrap: wrap-reverse;
  row-gap: var(--distance1, 50px);
}
body.page-template-template-servis .layout__sidebar {
  display: block;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .page-template-template-servis .layout__wrapper {
    flex-wrap: nowrap;
  }
  body.page-template-template-servis .layout__sidebar {
    max-width: fit-content;
  }
}
