*, *::before, *::after {
  box-sizing: border-box;
}
:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-soft: #f7f9f8;
  --border: #e1e7e5;
  --text: #171d1c;
  --muted: #6c7976;
  --brand: #2f6f69;
  --brand-dark: #245a56;
  --brand-soft: #e7f1ee;
  --danger: #d64848;
  --danger-soft: #fff1f1;
  --warning: #d79135;
  --blue: #5d76a9;
  --header: #252525;
  --shadow: 0 8px 26px rgba(18, 34, 31, 0.05);
  --radius: 16px;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button, input, select, textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
body:not(.et-tb) #main-content .container {
  width: min(1480px, calc(100% - 40px)) !important;
  margin-inline: auto;
  max-width: none !important;
}
.site-header {
  color: #fff;
  background: var(--header);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
}
.site-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 185px;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  color: #d49a4c;
  font-size: 24px;
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__text strong {
  font-size: 20px;
  letter-spacing: .04em;
}
.brand__text small, .header-contact span {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
}
.header-contact {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  white-space: nowrap;
}
.header-contact a {
  font-weight: 700;
}
.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.main-nav a {
  opacity: .92;
}
.main-nav a:hover, .main-nav a:focus-visible {
  opacity: 1;
  color: #c9e4df;
}
.calculator-section {
  padding: 36px 0 60px;
}
.section-heading {
  margin-bottom: 24px;
}
.section-heading h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.12;
}
.section-heading p {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.calculator-layout {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(620px, 1.45fr);
  gap: 24px;
  align-items: start;
}
.calculator-sidebar, .calculator-results {
  display: grid;
  gap: 18px;
}
.panel {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.panel h2, .panel h3 {
  margin-top: 0;
}
.panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.panel__title h2 {
  margin: 0;
  font-size: 19px;
}
.step {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
}
.fields-grid {
  display: grid;
  gap: 14px;
}
.fields-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.field {
  display: grid;
  gap: 7px;
}
.field span, .select-row > span {
  font-size: 13px;
  font-weight: 700;
  color: #485452;
}
.calculator-field, .lead-form input, .lead-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px !important;
  border: 1px solid #dce2e0 !important;
  border-radius: 10px;
  color: var(--text) !important;
  background: #fff;
}
.calculator-field:focus, .lead-form input:focus, .lead-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(47, 111, 105, .12);
}
.lead-form input[name="consent"] {
  width: auto;
  min-height: 0;
}
.calculator-field[aria-invalid="true"] {
  border-color: var(--danger);
}
.field-error {
  min-height: 16px;
  color: var(--danger);
  font-size: 11px;
}
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.metric-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}
.metric-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
}
.metric-card span {
  display: grid;
}
.metric-card small {
  color: var(--muted);
}
.metric-card strong {
  font-size: 18px;
}
.select-list {
  display: grid;
  gap: 13px;
}
.select-row {
  display: grid;
  grid-template-columns: 72px 1fr 78px;
  gap: 12px;
  align-items: center;
}
.select-row b {
  text-align: right;
  font-size: 13px;
}
.panel-note, .disclaimer {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.room-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.room-type {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: #fff;
}
.room-type:hover, .room-type:focus-visible {
  border-color: var(--brand);
}
.room-type--active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}
.room-type strong, .room-type span {
  display: block;
}
.room-type span {
  font-size: 11px;
  opacity: .84;
}
.target-card {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}
.target-card small, .target-card strong, .target-card span {
  display: block;
}
.target-card strong {
  margin-top: 3px;
  color: var(--brand);
  font-size: 22px;
}
.target-card span {
  color: var(--muted);
  font-size: 12px;
}
.sidebar-cta, .cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
  transition: background .2s ease, transform .2s ease;
}
.sidebar-cta:hover, .sidebar-cta:focus-visible, .cta-button:hover, .cta-button:focus-visible {
  background: var(--brand-dark);
  transform: translateY(-1px);
}
.result-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.result-title-row h2 {
  margin-bottom: 20px;
}
.status-pill {
  align-self: flex-start;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 12px;
  font-weight: 800;
}
.result-top {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
  align-items: center;
}
.rt-value {
  display: grid;
}
.rt-value small {
  color: var(--text);
  font-weight: 700;
}
.rt-value strong {
  font-size: clamp(54px, 6vw, 78px);
  line-height: 1;
}
.rt-value strong span:last-child {
  font-size: 28px;
}
.rt-value em {
  margin-top: 4px;
  font-size: 22px;
  font-style: normal;
}
.rt-scale__labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
}
.rt-scale__track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #65b98d 0 24%, #e6d06f 24% 36%, #f7a049 36% 62%, #d64242 62% 100%);
}
.rt-scale__target {
  position: absolute;
  top: -3px;
  bottom: -3px;
  border: 2px solid #2f6f69;
  border-radius: 999px;
}
.rt-scale__marker {
  position: absolute;
  top: -8px;
  width: 4px;
  height: 28px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .3);
  transform: translateX(-50%);
}
.rt-scale__caption {
  margin-top: 12px;
  text-align: center;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}
.summary-card {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
  background: var(--surface-soft);
}
.summary-card span {
  color: var(--muted);
  font-size: 12px;
}
.summary-card strong {
  font-size: 19px;
}
.summary-card--danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #f1caca;
}
.absorption-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 24px;
}
.progress-row {
  margin-top: 18px;
}
.progress-row__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}
.progress {
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: #e8eceb;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
}
.progress-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  text-align: right;
}
.absorption-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.explanation-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}
.explanation-card h3 {
  margin-bottom: 10px;
  color: var(--brand-dark);
}
.explanation-card p {
  margin: 0 0 12px;
  color: #56615f;
  font-size: 14px;
}
.recommendations__head p {
  margin: -4px 0 18px;
  color: var(--muted);
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.category-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.category-card__visual {
  min-height: 220px;
}
.category-card__visual--blue {
  background:
    linear-gradient(135deg, rgba(31, 65, 92, .95), rgba(49, 86, 116, .75)), repeating-linear-gradient(90deg, transparent 0 25px, rgba(255, 255, 255, .12) 25px 27px);
}
.category-card__visual--baffles {
  background:
    linear-gradient(135deg, #e9e7e1, #b7b2a6), repeating-linear-gradient(90deg, #242424 0 14px, transparent 14px 28px);
}
.category-card__visual--clouds {
  background:
    radial-gradient(circle at 30% 30%, #696969 0 20%, transparent 21%), radial-gradient(circle at 70% 60%, #858585 0 24%, transparent 25%), linear-gradient(#efefef, #dadada);
}
.category-card__visual--lamp {
  background:
    radial-gradient(circle at 50% 55%, #f2dfbd 0 18%, #464646 19% 42%, #2c2c2c 43% 55%, transparent 56%), linear-gradient(#ececec, #d9d9d9);
}
.category-card__body {
  padding: 16px;
}
.category-card__type {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 800;
}
.category-card h3 {
  margin: 10px 0 6px;
  font-size: 17px;
}
.category-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.category-card dl {
  margin: 0 0 14px;
}
.category-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.category-card dt {
  color: var(--muted);
  font-size: 12px;
}
.category-card dd {
  margin: 0;
  text-align: right;
  font-size: 12px;
  font-weight: 800;
}
.category-card a {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}
.recommendations .cta-button {
  width: 100%;
  margin-top: 18px;
}
.status--too-dry {
  color: #5d76a9;
}
.status--slightly-dry {
  color: #7794b8;
}
.status--comfortable {
  color: #3f8978;
}
.status--slightly-echo {
  color: #d79135;
}
.status--too-echo {
  color: #d64848;
}
.calculator-disclaimer {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--brand);
  color: var(--muted);
  background: #eef3f1;
  font-size: 12px;
}
.lead-dialog {
  width: min(760px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .25);
}
.lead-dialog::backdrop {
  background: rgba(10, 16, 15, .72);
  backdrop-filter: blur(4px);
}
.lead-form {
  position: relative;
  padding: 30px;
  background: #fff;
  overflow: auto;
}
.lead-form__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #eef3f1;
  font-size: 28px;
}
.lead-form__eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.lead-form h2 {
  margin: 8px 44px 8px 0;
  font-size: 30px;
}
.lead-form > p {
  color: var(--muted);
}
.lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0 14px;
}
.lead-form textarea {
  resize: vertical;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0;
  font-size: 13px;
}
.lead-form__success {
  margin-top: 12px;
  color: var(--brand-dark) !important;
  font-weight: 800;
}
@media (max-width: 1180px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding-block: 14px;
  }
  .main-nav {
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 14px;
    overflow-x: auto;
  }
  .calculator-layout {
    grid-template-columns: 1fr;
  }
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  body:not(.et-tb) #main-content .container {
    width: min(100% - 24px, 1480px) !important;
  }
  .header-contact {
    display: none;
  }
  .main-nav {
    font-size: 12px;
  }
  .fields-grid--3, .summary-grid, .room-types, .absorption-grid, .category-grid {
    grid-template-columns: 1fr 1fr;
  }
  .result-top {
    grid-template-columns: 1fr;
  }
  .select-row {
    grid-template-columns: 1fr;
  }
  .select-row b {
    text-align: left;
  }
  .category-card {
    grid-template-columns: 110px 1fr;
  }
  .lead-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .main-nav {
    display: none;
  }
  .calculator-section {
    padding-top: 22px;
  }
  .panel {
    padding: 16px;
  }
  .fields-grid--3, .summary-grid, .room-types, .absorption-grid, .category-grid, .metric-grid {
    grid-template-columns: 1fr;
  }
  .category-card {
    grid-template-columns: 1fr;
  }
  .category-card__visual {
    min-height: 150px;
  }
  .rt-value strong {
    font-size: 58px;
  }
  .progress-row__top {
    flex-direction: column;
    gap: 4px;
  }
  .lead-form {
    padding: 22px 16px;
  }
}
/* Обновление: крупное значение RT60 окрашивается по результату */
.rt-value strong.status--too-dry {
  color: #5d76a9;
}
.rt-value strong.status--slightly-dry {
  color: #7794b8;
}
.rt-value strong.status--comfortable {
  color: #3f8978;
}
.rt-value strong.status--slightly-echo {
  color: #d79135;
}
.rt-value strong.status--too-echo {
  color: #d64848;
}
/* Обновление: компактный квадратный блок рекомендаций */
.recommendations {
  padding-bottom: 18px;
}
.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
.category-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  min-width: 0;
}
.category-card__visual {
  flex: 0 0 42%;
  min-height: 0;
}
.category-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 12px;
}
.category-card h3 {
  margin: 8px 0 6px;
  font-size: 14px;
  line-height: 1.2;
}
.category-card dl {
  margin: auto 0 8px;
}
.category-card dl div {
  padding: 5px 0;
}
.category-card dt, .category-card dd {
  font-size: 11px;
}
.category-card a {
  margin-top: auto;
}
.recommendations .cta-button {
  width: min(360px, 100%);
  margin: 16px auto 0;
}
/* В калькуляторе остаётся только одна основная CTA-кнопка */
.sidebar-cta {
  display: none !important;
}
@media (max-width: 1180px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-card {
    aspect-ratio: auto;
    min-height: 260px;
  }
}
@media (max-width: 520px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  .category-card {
    aspect-ratio: auto;
    min-height: 0;
  }
}
/* Фотографии-заглушки в блоке рекомендаций */
.category-card__visual {
  display: block;
  overflow: hidden;
  background: #eef2f1;
}
.category-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.category-card__visual:hover img, .category-card__visual:focus-visible img {
  transform: scale(1.025);
}
/*
  Чтобы заменить заглушки своими фотографиями:
  1. Откройте папку assets/recommendations.
  2. Замените нужный SVG-файл изображением с тем же именем
     либо измените путь image в config.js.
  3. Рекомендуемое соотношение сторон — 4:3, размер от 1200 × 900 px.
*/
/* ===== Финальное обновление калькулятора ===== */
/* Цвет крупного значения и плашки зависит от зоны результата */
.rt-value strong.status--too-dry, .rt-scale__badge.status--too-dry {
  color: #5d76a9;
}
.rt-value strong.status--slightly-dry, .rt-scale__badge.status--slightly-dry {
  color: #7794b8;
}
.rt-value strong.status--comfortable, .rt-scale__badge.status--comfortable {
  color: #3f8978;
}
.rt-value strong.status--slightly-echo, .rt-scale__badge.status--slightly-echo {
  color: #d79135;
}
.rt-value strong.status--too-echo, .rt-scale__badge.status--too-echo {
  color: #d64848;
}
/* Цветная плашка со значением на шкале */
.rt-scale {
  position: relative;
  padding-top: 42px;
}
.rt-scale__badge {
  position: absolute;
  top: 0;
  left: var(--rt60-badge-left, 50%);
  transform: translateX(-50%);
  min-width: 74px;
  padding: 7px 12px;
  border: 1px solid currentColor;
  border-radius: 9px;
  background: color-mix(in srgb, currentColor 12%, white);
  color: var(--brand);
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .08);
  white-space: nowrap;
}
.rt-scale__badge::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 12px;
  height: 12px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}
/* Компактный квадратный блок рекомендаций */
.recommendations {
  padding-bottom: 18px;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.category-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: 1 / 1;
  min-width: 0;
  overflow: hidden;
}
.category-card__visual {
  display: block;
  flex: 0 0 44%;
  min-height: 0;
  overflow: hidden;
  background: #eef2f1;
}
.category-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding: 11px 12px 10px;
}
.category-card h3 {
  margin: 7px 0 5px;
  font-size: 13px;
  line-height: 1.18;
}
.category-card dl {
  margin: auto 0 6px;
}
.category-card dl div {
  padding: 4px 0;
}
.category-card dt, .category-card dd {
  font-size: 10.5px;
}
.category-card a {
  margin-top: auto;
  font-size: 11px;
}
/* Одна понятная CTA-кнопка с сильным УТП */
.recommendations .cta-button {
  width: min(460px, 100%);
  margin: 16px auto 0;
  min-height: 54px;
  font-size: 15px;
}
.sidebar-cta {
  display: none !important;
}
  body:not(.et-tb) #main-content .container, body:not(.et-tb-has-header) #main-content .container {
    padding-top: 25px !important;
  }

#breadcrumbs_custom {display: none !important;}
.custom_top_sections_1 .et_pb_row_custom.et_pb_row {
    margin-top: -24px !important;
}
.custom_top_sections_1_width .et_pb_row {
    width: 100% !important;
    max-width: 1524px !important;
    padding: 20px 20px !important;
}

@media (max-width: 1400px) {
.custom_top_sections_1 .et_pb_row_custom.et_pb_row {
    margin-top: 51px !important;
}
}


@media (max-width: 1180px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-card {
    aspect-ratio: auto;
    min-height: 280px;
  }
}
@media (max-width: 1024px) {

}
@media (max-width: 520px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  .category-card {
    aspect-ratio: auto;
    min-height: 0;
  }
  .rt-scale {
    padding-top: 46px;
  }
}