h1 {
  font-size: clamp(32px, 4vw, 48px);
}

h2 {
  font-size: clamp(26px, 3.2vw, 36px);
}

h3 {
  font-size: clamp(22px, 2.6vw, 28px);
}

h4 {
  font-size: clamp(20px, 2.2vw, 22px);
}

h5 {
  font-size: clamp(16px, 1.8vw, 18px);
}

h6 {
  font-size: clamp(14px, 1.6vw, 16px);
}

.has_child .has_child_wrap {
  width: 320px;
  max-height: 80vh; 
  overflow-y: auto;
  z-index: 2;
}
.has_child.is_mega .has_child_wrap {
  width: 800px;
}
.has_child .has_child_wrap .has_child_wrap_inner {

}
.has_child.is_mega .has_child_wrap .has_child_wrap_inner {

}

.burger_btn .burger_btn--is_open {
  display: none;
}
.burger_btn.is_open .burger_btn--is_open {
  display: block;
}
.burger_btn.is_open .burger_btn--is_close {
  display: block;
}

@media (max-width: 1279px) {
  .has_child.is_mega .has_child_wrap {
    width: 528px;
  }
}

/* Фиксированная ширина слайдов как в оригинале */
.solutions-swiper .swiper-slide {
  width: 280px !important;
  height: auto;
}
.solutions-swiper .swiper-wrapper {
  align-items: stretch;
}

@media (min-width: 768px) {
  .solutions-swiper .swiper-slide {
    width: 300px !important;
  }
}

.swiper-button-prev-custom, .swiper-button-next-custom {
  top: 50%;
  transform: translateY(-50%);
}
.swiper-button-prev-custom {
  left: -72px;
}
.swiper-button-next-custom {
  right: -72px;
}
.swiper_container {
  padding: 0px 0px;
}
/* Состояние disabled для кнопок */
.swiper-button-prev-custom.swiper-button-disabled,
.swiper-button-next-custom.swiper-button-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.swiper-button-prev-custom.swiper-button-lock,
.swiper-button-next-custom.swiper-button-lock {
  display: none;
}
@media (max-width: 1439px) {
  .swiper-button-prev-custom {
    left: 0px;
  }
  .swiper-button-next-custom {
    right: 0px;
  }
  .swiper_container {
    padding: 0px 72px;
  }
}
@media (max-width: 1023px) {
  .swiper-button-prev-custom, .swiper-button-next-custom {
    display: none;
  }
  .swiper_container {
    padding: 0px 0px;
  }
}
/* Фиксированная ширина карточек партнёров */
.partners-swiper .swiper-slide {
  width: 160px !important; /* ~w-40 */
}

/* news-swiper */
.news-swiper .swiper-slide {
  width: 320px !important;
  height: auto;
}
.news-swiper .swiper-wrapper {
  align-items: stretch;
}

@media (min-width: 768px) {
  .news-swiper .swiper-slide {
    width: 300px !important;
  }
}
.cat_descr h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 1rem;
}

.cat_descr h3 {
  font-size: 1.25rem; 
  font-weight: 700;
  color: #212529;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.cat_descr h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #212529;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.cat_descr  {

}
.cat_descr ul,
.cat_descr ol {
  margin: .5rem 0 .5rem 1rem;
}

.cat_descr ul {
  list-style-type: disc;
}

.cat_descr ol {
  list-style-type: decimal;
}

.cat_descr li {
  margin-bottom: 0.5rem;
}
.cat_descr p {
  margin-bottom: .5rem;
}
.cat_descr * {
  scroll-margin-top: 100px;
}
.blog_descr a,
.cat_descr a,
.c_top_descr a {
  color: #17375e;
  text-decoration: underline;
  transition: .2s;
}
.blog_descr a:hover,
.cat_descr a:hover,
.c_top_descr a:hover {
  opacity: .6;
}

/* Стилизация checkbox acceptance */
.wpcf7-acceptance input[type="checkbox"] {
  width: .9rem;
  height: .9rem;
  border-radius: 0.25rem;
  border: 1px solid #d1d5db;
  color: #17375E;
}

.wpcf7-acceptance input[type="checkbox"]:focus {
  ring: 2px;
  ring-color: #17375E;
  ring-offset: 2px;
}

.wpcf7-acceptance input[type="checkbox"]:checked {
  background-color: #17375E;
  border-color: #17375E;
}

form.wpcf7-form .wpcf7-submit + .wpcf7-spinner {
  display: none !important;
}
form.wpcf7-form .acceptance-privacy .wpcf7-list-item {
  margin-left: 0px;
}
form.wpcf7-form .wpcf7-not-valid-tip {
  font-size: .875rem;
  line-height: 1.25rem;
}
form.wpcf7-form .wpcf7-submit {
  position: relative;
}
form.wpcf7-form .wpcf7-submit .wpcf7-spinner {
  position: absolute;
  padding: 0px;
  margin: 0px;
  top: 4px;
  right: 4px;
}
#consultation-popup, #product-popup, #project-popup {
  max-width: 500px;
  padding: 0px;
  border-radius: 12px;
}
#consultation-popup .f-button.is-close-button,
#project-popup .f-button.is-close-button,
#product-popup .f-button.is-close-button {
  --tw-text-opacity: 1;
  color: rgb(33 37 41 / var(--tw-text-opacity, 1));
  top: 4px;
  right: 4px;
}
#consultation-popup .f-button.is-close-button svg,
#project-popup .f-button.is-close-button svg,
#product-popup .f-button.is-close-button svg {
  width: 18px;
  height: 18px;
}
.fancybox__backdrop {
  background-color: #00000080;
}
form.wpcf7-form .wpcf7-response-output {
  font-size: .875rem;
  line-height: 1.25rem;
  margin: 1em 0em 0em;
  padding: 0.2em .5em;
}
@media (min-width: 640px) {
  body:not(:has(.cert)) .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog_descr h2 {
  margin-bottom: 1rem;
}
.blog_descr h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.blog_descr p {
  margin-bottom: .5rem;
}
.blog_descr ul,
.blog_descr ol {
  margin: .5rem 0 .5rem 1rem;
}

.blog_descr ul {
  list-style-type: disc;
}

.blog_descr ol {
  list-style-type: decimal;
}

.blog_descr li {
  margin-bottom: 0.5rem;
}
#c_map > iframe {
  width: 100%;
  height: 100%;
  max-width: 100%;
}

body:has(.burger_panel.translate-x-0) {
  overflow: hidden;
}
.reviews-swiper .swiper-slide {
  height: auto;
}

.gallery-main .swiper-button-lock {
  display: none;
}
.gallery-main .swiper-button-disabled {
  pointer-events: none;
  opacity: .6;
}

.swiper-pagination-custom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.swiper-pagination-custom .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #cbd5e1;
  opacity: 1;
  border-radius: 9999px;
  transition: all 0.3s ease;
  margin: 0 !important;
}

.swiper-pagination-custom .swiper-pagination-bullet-active {
  background: #17375E;
  width: 24px;
}
.c_search_icon_404 {
  transform: translateY(-50%);
}

.cat_descr table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0;
}

.cat_descr table thead tr {
  background: #17375E;
  color: #fff;
}
.cat_descr table thead tr td {
  color: #fff;
}

.cat_descr table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cat_descr table td {
  padding: 11px 16px;
  color: #212529;
  vertical-align: top;
  line-height: 1.5;
}

.cat_descr table tbody tr {
  border-bottom: 1px solid #e9ecef;
  transition: background 0.15s ease;
}

.cat_descr table tbody tr:last-child {
  border-bottom: none;
}

.cat_descr table tbody tr:nth-child(even) {
  background: #f8f9fa;
}

.cat_descr table tbody tr:hover {
  background: #EEF2F7;
}

/* Скролл на мобиле */
@media (max-width: 767px) {
  .cat_descr table th,
  .cat_descr table td {
    padding: 10px 12px;
    min-width: 120px;
  }
}
