/* ==================================================================
   1. ФОРМА BF204N — ЕДИНЫЙ СТИЛЬ
   ================================================================== */

.dh-bf204 {
  background-color: #f3f9fd !important;
  padding: 40px 0 !important;
}

.dh-bf204 .t-form {
  max-width: 420px !important;
  margin: 0 auto !important;
  background: #f4f8fb !important;
  border: 1px solid #e8eef5 !important;
  border-radius: 16px !important;
  padding: 20px 20px 16px !important;
  box-shadow: 0 16px 44px -14px rgba(43, 124, 211, 0.18) !important;
  text-align: left !important;
}

.dh-bf204 .t-form__inputsbox,
.dh-bf204 .t-form__inputs {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.dh-bf204 .t-title,
.dh-bf204 .t-form__title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #0f1a2c !important;
  text-align: center !important;
  margin: 0 0 6px !important;
  letter-spacing: -0.02em !important;
}

.dh-bf204 .t-descr,
.dh-bf204 .t-form__descr,
.dh-bf204 .t-form__text {
  font-size: 13px !important;
  color: #5b6577 !important;
  text-align: center !important;
  margin: 0 0 14px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(43, 124, 211, 0.12) !important;
}

.dh-bf204 .t-form label:not(.dh-consent):not(.t-checkbox),
.dh-bf204 .t-form .t-label,
.dh-bf204 .t-form .t-form__label {
  display: block !important;
  text-align: left !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #0f1a2c !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
  border: 0 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.01em !important;
}

.dh-bf204 .t-form__field,
.dh-bf204 .t-input-group,
.dh-bf204 .t-form [class*="__field"],
.dh-bf204 .t-form [class*="fieldbox"] {
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-bottom: 12px !important;
}

.dh-bf204 .t-input,
.dh-bf204 .t-form input[type="text"],
.dh-bf204 .t-form input[type="email"],
.dh-bf204 .t-form select {
  width: 100% !important;
  background: #fff !important;
  border: 1.5px solid #d4e0ec !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  color: #0f1a2c !important;
  box-sizing: border-box !important;
  transition: all 0.2s !important;
  outline: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.dh-bf204 .t-input::placeholder,
.dh-bf204 .t-form input::placeholder {
  color: #8a94a6 !important;
  opacity: 1 !important;
}

.dh-bf204 .t-input:focus,
.dh-bf204 .t-form input:focus {
  border-color: #2B7CD3 !important;
  box-shadow: 0 0 0 4px rgba(43, 124, 211, 0.12) !important;
}

.dh-bf204 .t-select,
.dh-bf204 .t-form select {
  padding-right: 40px !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3e%3cpath d='M1 1L6 6L11 1' stroke='%232B7CD3' stroke-width='2' stroke-linecap='round'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  cursor: pointer !important;
}

.dh-bf204 .t-submit,
.dh-bf204 .t-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 12px 18px !important;
  background: linear-gradient(135deg, #2B7CD3 0%, #1f5fa3 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.25s !important;
  box-shadow: 0 12px 26px -10px rgba(43, 124, 211, 0.5) !important;
  margin-top: 6px !important;
}

.dh-bf204 .t-submit::after {
  content: " →";
  margin-left: 6px;
  font-size: 16px;
  line-height: 1;
}

.dh-bf204 .t-submit:hover,
.dh-bf204 .t-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 32px -10px rgba(43, 124, 211, 0.6) !important;
}

.dh-bf204 input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  border: 1.5px solid #2B7CD3 !important;
  border-radius: 4px !important;
  padding: 0 !important;
  background: #fff !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

.dh-bf204 input[type="checkbox"]:checked {
  background: #2B7CD3 url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3e%3cpath d='M3.4 8.3 L6.5 11.4 L12.6 4.8' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e") center/11px no-repeat !important;
  border-color: #2B7CD3 !important;
}

.dh-bf204 .dh-consent,
.dh-bf204 .t-checkbox {
  margin-top: 12px !important;
  font-size: 11.5px !important;
  line-height: 1.45 !important;
  color: #5b6577 !important;
}

.dh-bf204 a {
  color: #1f5fa3 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(31, 95, 163, 0.3) !important;
}

.dh-bf204 .t-form__success {
  background: #f4f8fb !important;
  border-radius: 16px !important;
  padding: 30px 20px !important;
  text-align: center !important;
}

.dh-bf204 .t-form__success-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f1a2c !important;
  margin-bottom: 6px !important;
}

/* ==================================================================
   2. ТЮНИНГ ФОРМЫ — РУБРИЛЬНИКИ РАЗМЕРОВ
   ================================================================== */

/* Высота полей (38–48px, сейчас 40px) */
.dh-bf204 .t-input,
.dh-bf204 .t-form select,
.dh-bf204 .t-form input[type="text"],
.dh-bf204 .t-form input[type="email"] {
  height: 40px !important;
  min-height: 0 !important;
  padding: 0 14px !important;
}

/* Телефон — единая рамка (высота синхронна с высотой полей) */
.dh-bf204 .t-form .t-input:has(input[type="tel"]),
.dh-bf204 .t-form [class*="phone-wrap"],
.dh-bf204 .t-form [class*="phone__"] {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 40px !important;
  min-height: 0 !important;
  padding: 0 14px !important;
}

.dh-bf204 .t-form input[type="tel"] {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  height: auto !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.dh-bf204 .t-form input[type="tel"]:focus {
  box-shadow: none !important;
}

.dh-bf204 .t-form .t-input:has(input[type="tel"]:focus) {
  border-color: #2B7CD3 !important;
  box-shadow: 0 0 0 4px rgba(43, 124, 211, 0.12) !important;
}

/* ==================================================================
   3. OD-СЕКЦИЯ «Столкнулись с неприятным запахом?»
   ================================================================== */

body .od-form {
  padding: 48px 24px 56px !important;
}

body .od-form__container {
  max-width: 1320px !important;
  padding: 0 24px !important;
  grid-template-columns: 1fr 420px !important;
  gap: 36px !important;
  align-items: stretch !important;
}

body .od-form__title-wrap {
  gap: 12px !important;
  margin-bottom: 28px !important;
}

body .od-form__left {
  display: flex !important;
  flex-direction: column !important;
}

body .od-form__text {
  margin-bottom: 16px !important;
}

body .od-form__bullets {
  gap: 8px !important;
  margin-bottom: 18px !important;
}

body .od-form__cta-row {
  margin-top: auto !important;
  padding-top: 24px !important;
  padding-bottom: 16px !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
}

body .od-form__cta-primary {
  padding: 16px 28px !important;
  font-size: 16px !important;
  border-radius: 14px !important;
}

body .od-form__formslot .t-form {
  max-width: 420px !important;
  margin: 0 auto !important;
}

body .od-form__formslot .t-title,
body .od-form__formslot .t-form__title,
body .od-form__formslot .t-descr,
body .od-form__formslot .t-form__descr,
body .od-form__formslot .t-form__text {
  max-width: 420px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ==================================================================
   4. МОБИЛЬНАЯ АДАПТАЦИЯ
   ================================================================== */

@media (max-width: 960px) {
  body .od-form__container {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  body .od-form__cta-row {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
}

@media (max-width: 640px) {
  .dh-bf204 {
    padding: 28px 0 !important;
  }
  .dh-bf204 .t-title,
  .dh-bf204 .t-form__title {
    font-size: 19px !important;
  }
  .dh-bf204 .t-form {
    padding: 18px 16px 14px !important;
  }
  .dh-bf204 .t-input,
  .dh-bf204 .t-form input,
  .dh-bf204 .t-form select,
  .dh-bf204 .t-select {
    padding: 10px 13px !important;
  }
  .dh-bf204 .t-submit,
  .dh-bf204 .t-btn {
    padding: 11px 16px !important;
  }
}

/* ==================================================================
   5. ТИПОГРАФИЧЕСКИЕ ТОКЕНЫ (десктоп ≥961)
   Примечание: блоки wsv2-steps и whyme стилизуют себя сами
   из своих T123 — из токенов они исключены, чтобы не конфликтовать
   ================================================================== */

:root {
  --dh-h2-banner: 48px;
  --dh-h2-section: 32px;
  --dh-h3-card: 19px;
  --dh-lead: 17px;
  --dh-body: 16px;
  --dh-explain: 15px;
  --dh-micro: 13px;
  --dh-w-head: 700;
  --dh-w-body: 400;
  --dh-lh-banner: 1.1;
  --dh-lh-section: 1.25;
  --dh-lh-card: 1.3;
  --dh-lh-lead: 1.55;
  --dh-lh-body: 1.6;
  --dh-lh-micro: 1.5;
  --dh-ink: #0F1A2C;
  --dh-text: #374151;
  --dh-muted: #5B6577;
  --dh-mb-banner: 16px;
  --dh-mb-section: 14px;
  --dh-mb-card: 10px;
  --dh-mb-lead: 16px;
  --dh-mb-body: 14px;
  --dh-mb-explain: 12px;
  --dh-mb-micro: 12px;
}

@media (min-width: 961px) {
  /* R2 большой титул секции */
  body .ab-meet__title,
  body .dh-objects__title,
  body .od-form__title,
  body .sv-grid__inner > h2 {
    font-size: var(--dh-h2-banner) !important;
    font-weight: var(--dh-w-head) !important;
    line-height: var(--dh-lh-banner) !important;
    color: var(--dh-ink) !important;
    margin-bottom: var(--dh-mb-banner) !important;
  }

  /* R4 заголовок карточки */
  body .dh-objects__card-name {
    font-size: var(--dh-h3-card) !important;
    font-weight: var(--dh-w-head) !important;
    line-height: var(--dh-lh-card) !important;
    color: var(--dh-ink) !important;
    margin-bottom: var(--dh-mb-card) !important;
  }

  /* R6 лид/подзаголовок */
  body .dh-hero__subtitle {
    font-size: var(--dh-lead) !important;
    font-weight: var(--dh-w-body) !important;
    line-height: var(--dh-lh-lead) !important;
    color: var(--dh-muted) !important;
    margin-bottom: var(--dh-mb-lead) !important;
  }

  /* R7 основной текст */
  body .ab-meet p,
  body .sv-grid__sub {
    font-size: var(--dh-body) !important;
    font-weight: var(--dh-w-body) !important;
    line-height: var(--dh-lh-body) !important;
    color: var(--dh-text) !important;
    margin-bottom: var(--dh-mb-body) !important;
  }

  /* R8 пояснительный + ответ FAQ */
  body .uo7-faq p,
  body .ob-bx7 p,
  body .od-form__text,
  body .faq-main p {
    font-size: var(--dh-explain) !important;
    font-weight: var(--dh-w-body) !important;
    line-height: var(--dh-lh-body) !important;
    color: var(--dh-text) !important;
    margin-bottom: var(--dh-mb-explain) !important;
  }

  /* R10 микро-описание карточки */
  body .dh-objects__card-desc {
    font-size: var(--dh-micro) !important;
    font-weight: var(--dh-w-body) !important;
    line-height: var(--dh-lh-micro) !important;
    color: var(--dh-muted) !important;
    margin-bottom: var(--dh-mb-micro) !important;
  }
}

/* ==================================================================
   7. ЕДИНЫЙ АККОРДЕОН (dh-acc) — uo7-faq / ob-bx7 / faq-main
   ================================================================== */

.dh-acc {
  background: #f3f9fd;
  padding: 64px 24px;
  font-family: var(--t-text-font);
  color: #0f1a2c;
  position: relative;
  overflow: hidden;
}

.dh-acc__inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
.dh-acc--wide .dh-acc__inner { max-width: 1080px; }

.dh-acc__head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 12px; margin-bottom: 32px;
}

.dh-acc__pill {
  display: inline-block; padding: 10px 24px;
  background: linear-gradient(135deg, #1f8fcd 0%, #0f6fa8 100%);
  color: #ffffff; font-size: 14px; font-weight: 600; border-radius: 999px;
  letter-spacing: 0.01em; box-shadow: 0 6px 18px -4px rgba(31, 143, 205, 0.4);
}

.dh-acc__title {
  font-family: var(--t-headline-font); font-weight: 700;
  font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15;
  letter-spacing: -0.02em; color: #0f1a2c; margin: 0;
  max-width: 820px; text-wrap: balance;
}

.dh-acc__list { display: flex; flex-direction: column; gap: 12px; }
.dh-acc--two-col .dh-acc__list {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px 16px; align-items: start;
}

.dh-acc__item {
  background: #ffffff; border: 1px solid #e2eaf2; border-radius: 16px;
  overflow: hidden; transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.dh-acc__item:hover {
  border-color: rgba(31, 143, 205, 0.45);
  box-shadow: 0 14px 32px -12px rgba(31, 143, 205, 0.18);
}
.dh-acc__item--open { border-color: rgba(31, 143, 205, 0.45); }

.dh-acc__trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 18px 22px; background: transparent; border: 0;
  cursor: pointer; text-align: left; font-family: inherit; color: inherit;
}
.dh-acc__trigger:focus-visible { outline: 2px solid #1f8fcd; outline-offset: 3px; border-radius: 12px; }

.dh-acc__question {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--t-headline-font); font-size: 16px; font-weight: 600;
  line-height: 1.4; color: #0f1a2c; transition: color 0.25s ease;
}
.dh-acc__item:hover .dh-acc__question { color: #0f6fa8; }

.dh-acc__icon {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #1f8fcd 0%, #0f6fa8 100%);
  display: inline-flex; align-items: center; justify-content: center; color: #ffffff;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 6px 14px -4px rgba(31, 143, 205, 0.45);
}
.dh-acc__icon svg { width: 14px; height: 14px; display: block; }
.dh-acc__item--open .dh-acc__icon { transform: rotate(45deg); }

.dh-acc__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.dh-acc__item--open .dh-acc__panel { grid-template-rows: 1fr; }
.dh-acc__panel-inner { overflow: hidden; }

.dh-acc__content { padding: 0 22px 20px; font-size: 15px; line-height: 1.6; color: #5b6577; }
.dh-acc__content p { margin: 0 0 10px; }
.dh-acc__content p:last-child { margin-bottom: 0; }
.dh-acc__content ul { list-style: none; padding: 0; margin: 0 0 10px; }
.dh-acc__content li { position: relative; padding-left: 18px; margin: 0 0 8px; }
.dh-acc__content li::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 6px; height: 6px; border-radius: 50%; background: #1f8fcd;
}
.dh-acc__content li:last-child { margin-bottom: 0; }

.dh-acc__readmore {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  color: #1f5fa3; font-weight: 600; font-size: 14px; text-decoration: none;
  border-bottom: 1px solid rgba(31, 95, 163, 0.3); transition: all 0.2s ease;
}
.dh-acc__readmore:hover { color: #1f8fcd; border-bottom-color: #1f8fcd; }
.dh-acc__readmore svg { width: 14px; height: 14px; transition: transform 0.25s ease; }
.dh-acc__readmore:hover svg { transform: translateX(3px); }

@media (max-width: 768px) {
  .dh-acc--two-col .dh-acc__list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dh-acc { padding: 44px 16px; }
  .dh-acc__head { margin-bottom: 24px; gap: 10px; }
  .dh-acc__trigger { padding: 16px 16px; gap: 12px; }
  .dh-acc__question { font-size: 15px; }
  .dh-acc__icon { width: 28px; height: 28px; }
  .dh-acc__icon svg { width: 12px; height: 12px; }
  .dh-acc__content { padding: 0 16px 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .dh-acc__panel, .dh-acc__icon, .dh-acc__item, .dh-acc__readmore svg { transition: none; }
  .dh-acc__item--open .dh-acc__icon { transform: none; }
}

/* ===== ФИКС АККОРДЕОНА: box-sizing + плашка под заголовком ===== */

/* Возвращаем border-box всем элементам аккордеонов —
   иначе кнопка с width:100% + padding вылезает за карточку */
.dh-acc,
.dh-acc * {
  box-sizing: border-box !important;
}

/* Плашка под заголовком (как в od-секции) */
.dh-acc__title { order: 1 !important; }
.dh-acc__pill { order: 2 !important; }

/* === Компактный баннер cookie (Tilda T972), добавлено 2026-10-06 === */
.t972__banner { max-width: 340px !important; padding: 12px 14px !important; border-radius: 12px !important; box-shadow: 0 6px 24px rgba(0,0,0,.14) !important; }
.t972__banner .t972__title { font-size: 13px !important; line-height: 1.25 !important; margin: 0 0 4px !important; }
.t972__banner .t972__text { font-size: 11.5px !important; line-height: 1.35 !important; margin: 0 0 8px !important; }
.t972__banner .t972__buttons { gap: 6px !important; }
.t972__banner .t972__accept-btn, .t972__banner .t972__settings-btn { min-height: 30px !important; height: auto !important; padding: 6px 12px !important; font-size: 12px !important; }
@media screen and (max-width: 640px) {
  .t972__banner { max-width: calc(100vw - 16px) !important; padding: 8px 12px 10px !important; }
  .t972__banner .t972__title { display: none !important; }
  .t972__banner .t972__text { font-size: 11px !important; line-height: 1.3 !important; margin: 0 0 6px !important; }
}
/* === /Компактный баннер cookie === */
