/* ============================================
   СТРАНИЦА "КЛЕЕНАЯ БАЛКА"
   Файл: assets/css/kleenaya-balka.css
   Подключается только на странице slug: kleenaya-balka
   ============================================ */

/* ============================================
   ОБЩИЙ ГРАДИЕНТ-ФОН (используется в нескольких блоках)
   ============================================ */
.kb-gradient {
  background: linear-gradient(to right, rgba(255,255,255,0.05), rgba(51,153,153,0.15));
}

/* ============================================
   БЛОК 1 — HERO
   ============================================ */

.kb-hero {
  padding: 60px 0 0;
  background: linear-gradient(to right, rgba(255,255,255,0.05), rgba(51,153,153,0.15));
  overflow: hidden;
}

.kb-hero h1 {
  font-size: var(--font-size-h1-desktop);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 16px 0;
}

.kb-hero-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 24px;
  line-height: 1.4;
}

.kb-hero-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kb-hero-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--color-text);
}

.kb-hero-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent-teal);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.kb-hero-image-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}

.kb-hero-image-wrap img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   БЛОК 2 — КАРТОЧКИ ПРОДУКТОВ
   ============================================ */

.kb-cards-section {
  padding: 60px 0;
  background: #fff;
}

.kb-product-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(51,153,153,0.08));
  border: 1px solid #c8e6e6;
  border-radius: var(--border-radius-card);
  padding: 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--box-shadow-card);
}

.kb-product-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 20px 0;
}

.kb-product-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--border-radius-image);
  margin-bottom: 20px;
  display: block;
}

.kb-specs-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 12px 0;
}

.kb-specs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  flex: 1;
}

.kb-specs-list li {
  display: flex;
  align-items: baseline;
  padding: 6px 0;
  font-size: 15px;
  color: var(--color-text);
  border-bottom: 1px solid #f0f0f0;
  gap: 6px;
}

.kb-specs-list li:last-child {
  border-bottom: none;
}

.kb-spec-name {
  flex-shrink: 0;
  color: #555;
  font-weight: 400;
}

.kb-spec-fill {
  flex: 1;
  border-bottom: 1px dotted #aaa;
  margin-bottom: 3px;
  min-width: 20px;
}

.kb-spec-val {
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.kb-card-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 4px;
}

.kb-btn-order {
  background: var(--color-accent-teal);
  color: #fff;
  border: none;
  padding: 10px 48px;
  border-radius: var(--border-radius-button);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-family-base);
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.kb-btn-order:hover {
  background: #267a7a;
  color: #fff;
}

.kb-contact-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kb-contact-inline .kb-tg-icon {
  width: 32px;
  height: 32px;
  transition: opacity 0.3s;
}

.kb-contact-inline .kb-tg-icon:hover {
  opacity: 0.75;
}

.kb-contact-inline .kb-phone-link {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s;
}

.kb-contact-inline .kb-phone-link:hover {
  color: var(--color-accent-teal);
}

/* ============================================
   ТЕКСТОВЫЕ БЛОКИ (3, 5, 6, 7)
   ============================================ */

.kb-text-section {
  padding: 60px 0;
  background: #fff;
}

.kb-text-section h2 {
  font-size: var(--font-size-h2-desktop);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 24px 0;
  line-height: 1.25;
}

.kb-text-section h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 36px 0 12px 0;
  line-height: 1.3;
}

.kb-text-section h3:first-of-type {
  margin-top: 8px;
}

.kb-text-section p {
  font-size: var(--font-size-p-desktop);
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 16px;
}

.kb-text-section p:last-child {
  margin-bottom: 0;
}

.kb-text-section ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.kb-text-section ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: var(--font-size-p-desktop);
  line-height: 1.6;
  color: var(--color-text);
}

.kb-text-section ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--color-accent-teal);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

/* ============================================
   БЛОК 4 — ПРЕИМУЩЕСТВА (переиспользуем custom.css)
   Класс .house-kits-advantages-section уже описан в custom.css
   ============================================ */

/* ============================================
   БЛОКИ 8, 9 — ДВЕ КОЛОНКИ С ИКОНКАМИ
   ============================================ */

.kb-icon-cols-section {
  padding: 60px 0;
  background: linear-gradient(to right, rgba(255,255,255,0.05), rgba(51,153,153,0.15));
}

.kb-icon-cols-section h2 {
  font-size: var(--font-size-h2-desktop);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 40px 0;
  line-height: 1.25;
}

.kb-icon-col-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.kb-icon-col-item .kb-col-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-top: 2px;
}

.kb-icon-col-item p {
  font-size: var(--font-size-p-desktop);
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

/* ============================================
   БЛОК 10 — ДВЕ КОЛОНКИ СО СТРЕЛКАМИ
   ============================================ */

.kb-arrows-section {
  padding: 60px 0;
  background: linear-gradient(to right, rgba(255,255,255,0.05), rgba(51,153,153,0.15));
}

.kb-arrows-section h2 {
  font-size: var(--font-size-h2-desktop);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 40px 0;
  line-height: 1.25;
}

.kb-arrows-section h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.kb-arrows-section p {
  font-size: var(--font-size-p-desktop);
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

.kb-arrows-decor {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-top: 30px;
}

.kb-arrows-decor span {
  font-size: 64px;
  font-weight: 900;
  color: var(--color-accent-orange);
  line-height: 1;
  letter-spacing: -10px;
  display: block;
}

/* ============================================
   БЛОК 11 — МОНТАЖ + CTA + ФОРМА
   ============================================ */

.kb-montage-section {
  padding: 60px 0;
  background: #fff;
}

.kb-montage-section h2 {
  font-size: var(--font-size-h2-desktop);
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 36px 0;
  line-height: 1.25;
}

/* Левая карточка с рамкой */
.kb-montage-card {
  border: 1px solid #c8e6e6;
  border-radius: var(--border-radius-card);
  padding: 30px;
  height: 100%;
  box-shadow: var(--box-shadow-card);
}

.kb-montage-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.kb-montage-item:last-child {
  margin-bottom: 0;
}

.kb-montage-item .kb-montage-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-top: 2px;
}

.kb-montage-item p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0;
}

/* Правая колонка */
.kb-cta-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Тиловая плашка CTA */
.kb-cta-teal-box {
  background: var(--color-accent-teal);
  border-radius: var(--border-radius-card);
  padding: 24px 28px;
}

.kb-cta-teal-box p {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.55;
}

/* Телефон и TG */
.kb-cta-call-hint {
  font-size: 15px;
  color: #555;
  margin: 0 0 6px 0;
}

.kb-cta-phone-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.kb-cta-phone-link {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s;
  line-height: 1;
}

.kb-cta-phone-link:hover {
  color: var(--color-accent-teal);
}

.kb-cta-tg-link img {
  width: 38px;
  height: 38px;
  display: block;
  transition: opacity 0.3s;
}

.kb-cta-tg-link:hover img {
  opacity: 0.75;
}

/* CF7 форма — инлайн в 11-м блоке
   Форма использует Bootstrap grid внутри (row/col-md-3),
   поэтому НЕ переопределяем display у .wpcf7-form
*/
.kb-form-hint {
  font-size: 15px;
  color: #555;
  margin: 0 0 8px 0;
}

/* Сбрасываем лишние отступы CF7 враппера */
.kb-inline-form .wpcf7 {
  margin: 0;
  padding: 0;
}

/* Выравниваем поля и кнопку по вертикали */
.kb-inline-form .row {
  align-items: center;
}

/* Каждая колонка — flex, контент по центру по вертикали */
.kb-inline-form .col-md-3 {
  display: flex;
  align-items: center;
}

/* <p> внутри col — убираем margin, растягиваем на всю ширину */
.kb-inline-form .col-md-3 > p {
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Спиннер CF7 — убираем влияние на высоту */
.kb-inline-form .wpcf7-spinner {
  display: none !important;
}

/* Honeypot скрываем без влияния на высоту */
.kb-inline-form .wpcf7-form-control-wrap[data-name="honeypot-field"] {
  display: none !important;
}

/* Убираем лишние отступы у p внутри col */
.kb-inline-form .wpcf7-form p,
.kb-inline-form p {
  margin: 0;
}

/* Поля формы */
.kb-inline-form input[type="text"],
.kb-inline-form input[type="tel"] {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #c8e6e6;
  border-radius: var(--border-radius-button);
  font-size: 15px;
  font-family: var(--font-family-base);
  color: var(--color-text);
  transition: border-color 0.3s;
}

.kb-inline-form input[type="text"]:focus,
.kb-inline-form input[type="tel"]:focus {
  outline: none;
  border-color: var(--color-accent-teal);
}

.kb-inline-form select {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #c8e6e6;
  border-radius: var(--border-radius-button);
  font-size: 15px;
  font-family: var(--font-family-base);
  color: var(--color-text);
  background: #fff;
  transition: border-color 0.3s;
}

.kb-inline-form select:focus {
  outline: none;
  border-color: var(--color-accent-teal);
}

.kb-inline-form .wpcf7-submit {
  width: 100%;
  background: var(--color-accent-teal);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius-button);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-family-base);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s;
  height: 42px;
}

.kb-inline-form .wpcf7-submit:hover {
  background: #267a7a;
}

/* ============================================
   МОДАЛКА ЗАКАЗА БАЛКИ
   ============================================ */

#kbOrderModal .modal-header {
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  padding-right: 48px;
}

#kbOrderModal .modal-header .btn-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

#kbOrderModal .modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
}

#kbOrderModal .kb-modal-product {
  font-size: 15px;
  color: var(--color-accent-teal);
  font-weight: 600;
  margin-top: 4px;
}

#kbOrderModal .wpcf7-form label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 4px;
  display: block;
}

#kbOrderModal input[type="text"],
#kbOrderModal input[type="tel"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #c8e6e6;
  border-radius: var(--border-radius-button);
  font-size: 15px;
  font-family: var(--font-family-base);
  color: var(--color-text);
  transition: border-color 0.3s;
}

#kbOrderModal input[type="text"]:focus,
#kbOrderModal input[type="tel"]:focus {
  outline: none;
  border-color: var(--color-accent-teal);
}

#kbOrderModal .wpcf7-submit {
  background: var(--color-accent-teal);
  color: #fff;
  border: none;
  /*padding: 12px 30px;*/
  border-radius: var(--border-radius-button);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-family-base);
  width: 100%;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 8px;
}

#kbOrderModal .wpcf7-submit:hover {
  background: #267a7a;
}

.kb-modal-privacy {
  font-size: 12px;
  color: #888;
  margin-top: 8px;
  text-align: center;
}

.kb-modal-privacy a {
  color: var(--color-accent-teal);
}

/* ============================================
   АДАПТИВНОСТЬ — TABLET (≤991px)
   ============================================ */

@media (max-width: 991px) {

  .kb-hero h1 {
    font-size: 34px;
  }

  .kb-hero-subtitle {
    font-size: 18px;
  }

  .kb-hero-image-wrap {
    margin-top: 30px;
  }

  .kb-text-section h2,
  .kb-icon-cols-section h2,
  .kb-arrows-section h2,
  .kb-montage-section h2 {
    font-size: var(--font-size-h2-mobile);
  }

  .kb-arrows-section h3,
  .kb-text-section h3 {
    font-size: 20px;
  }

  .kb-cta-phone-link {
    font-size: 26px;
  }

  .kb-arrows-decor {
    padding: 20px 0;
  }

  .kb-arrows-decor span {
    font-size: 48px;
  }

  .kb-product-card {
    margin-bottom: 24px;
  }
}

/* ============================================
   АДАПТИВНОСТЬ — MOBILE (≤767px)
   ============================================ */

@media (max-width: 767px) {

  .kb-hero {
    padding: 40px 0 0;
  }

  .kb-hero h1 {
    font-size: 26px;
  }

  .kb-hero-subtitle {
    font-size: 16px;
  }

  .kb-hero-list li {
    font-size: 15px;
  }

  .kb-hero-image-wrap img {
    max-height: 260px;
    object-fit: contain;
  }

  .kb-cards-section,
  .kb-text-section,
  .kb-icon-cols-section,
  .kb-arrows-section,
  .kb-montage-section {
    padding: 40px 0;
  }

  .kb-product-card-img {
    height: 200px;
  }

  .kb-icon-col-item {
    margin-bottom: 24px;
  }

  .kb-icon-col-item:last-child {
    margin-bottom: 0;
  }

  /* Стрелки поворачиваем на мобиле */
  .kb-arrows-decor {
    transform: rotate(90deg);
    padding: 0;
    margin: 16px 0;
  }

  .kb-arrows-decor span {
    font-size: 40px;
    letter-spacing: -8px;
  }

  .kb-cta-phone-link {
    font-size: 22px;
  }

  .kb-montage-card {
    margin-bottom: 24px;
  }

  .kb-inline-form .wpcf7-form {
    flex-direction: column;
  }

  .kb-inline-form .wpcf7-form p {
    flex: 1 1 100%;
    min-width: auto;
  }

  .kb-inline-form .wpcf7-submit {
    width: 100%;
  }
}

/* ============================================
   АДАПТИВНОСТЬ — SMALL MOBILE (≤480px)
   ============================================ */

@media (max-width: 480px) {

  .kb-hero h1 {
    font-size: 22px;
  }

  .kb-product-card-title {
    font-size: 18px;
  }

  .kb-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .kb-btn-order {
    width: 100%;
    text-align: center;
  }

  .kb-spec-name {
    font-size: 14px;
  }

  .kb-spec-val {
    font-size: 14px;
  }
}

.balka-advantage-item-teal {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 5;
    gap: 20px;
}

.balka-advantage-item-teal p {
    color: white;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0px;
}