/* Изолированная добавка к стилям страницы калькулятора GERKULES FACADE */
.gfc {
  --gfc-red: #e41d2c;
  --gfc-red-dark: #c91724;
  --gfc-text: #262626;
  --gfc-muted: #777;
  --gfc-line: #e5e5e5;
  --gfc-bg: #f9f9f9;
  --gfc-white: #fff;
  width: 100%;
  max-width: 1450px;
  margin: 0 auto;
  color: var(--gfc-text);
  font-family: 'Circe', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.4;
}

.gfc *, .gfc *::before, .gfc *::after { box-sizing: border-box; }
.gfc [hidden] { display: none !important; }
.gfc button, .gfc input, .gfc select { font: inherit; }
.gfc button, .gfc select { cursor: pointer; }

.gfc__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 0 0 38px;
}

.gfc__eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--gfc-red);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gfc__title { margin: 0; font-size: clamp(34px, 4vw, 54px); font-weight: 600; line-height: 1.05; }
.gfc__lead { max-width: 720px; margin: 18px 0 0; color: var(--gfc-muted); font-size: 18px; }

.gfc__menu {
  position: sticky;
  z-index: 10;
  top: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 30px;
  background: var(--gfc-white);
  border-top: 1px solid var(--gfc-line);
  border-bottom: 1px solid var(--gfc-line);
  display: none !important;
}

.gfc__menu-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 16px 25px;
  color: var(--gfc-text);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-right: 1px solid var(--gfc-line);
  transition: color .2s, background-color .2s;
}

.gfc__menu-link:last-child { border-right: 0; }
.gfc__menu-link span { color: var(--gfc-red); font-size: 12px; }
.gfc__menu-link:hover, .gfc__menu-link:focus-visible { color: var(--gfc-red); background: var(--gfc-bg); }

.gfc__section, .gfc__results { margin-top: 30px; padding: 58px; background: var(--gfc-bg); scroll-margin-top: 88px; }
.gfc__section-heading { display: flex; align-items: flex-start; gap: 22px; margin-bottom: 42px; }
.gfc__section-heading h2 { margin: 0; font-size: 32px; font-weight: 600; line-height: 1.15; }
.gfc__section-heading p { margin: 9px 0 0; color: var(--gfc-muted); font-size: 16px; }
.gfc__step { display: grid; flex: 0 0 46px; place-items: center; width: 46px; height: 46px; color: var(--gfc-white); background: var(--gfc-red); font-size: 13px; font-weight: 600; }

.gfc__field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.gfc__field-grid--area { grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr); align-items: end; }
.gfc__field { position: relative; display: flex; min-width: 0; flex-direction: column; }
.gfc__label, .gfc__compact-field > span:first-child {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.3;
}
.gfc__label b { color: var(--gfc-red); }

.gfc__control {
  display: block;
  width: 100%;
  height: 60px;
  min-width: 0;
  padding: 18px 25px;
  color: var(--gfc-text);
  background: var(--gfc-white);
  border: 1px solid var(--gfc-line);
  border-bottom-width: 4px;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  font-family: Arimo, Arial, sans-serif;
  font-size: 16px;
  line-height: 22px;
  transition: border-color .2s, box-shadow .2s;
}

.gfc__control::placeholder { color: #a3a3a3; opacity: 1; }
.gfc__control:hover { border-color: #cfcfcf; }
.gfc__control:focus { border-color: var(--gfc-red); box-shadow: 0 0 0 2px rgba(228, 29, 44, .08); }
.gfc__control[aria-invalid="true"] { border-color: var(--gfc-red); }

.gfc__select-wrap { position: relative; display: block; }
.gfc__select-wrap::after {
  position: absolute;
  top: 50%;
  right: 23px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--gfc-text);
  border-bottom: 2px solid var(--gfc-text);
  content: "";
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.gfc__control--select { padding-right: 52px; border-bottom-width: 1px; appearance: none; }
.gfc__select-wrap--select2::after { display: none; }

/* Select2: параметры повторяют поля калькуляторов в карточках товаров GERKULES. */
.gfc .select2-hidden-accessible {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.gfc .select2-container { display: block; width: 100% !important; font-family: 'Circe', Arial, sans-serif; font-size: 18px; }
.gfc .select2-container--default .select2-selection--single {
  height: 60px;
  color: var(--gfc-text);
  background: var(--gfc-white);
  border: 1px solid var(--gfc-line);
  border-radius: 0;
  outline: 0;
}
.gfc .select2-container--default .select2-selection--single .select2-selection__rendered {
  height: 58px;
  padding: 0 58px 0 26px;
  overflow: hidden;
  color: #444;
  line-height: 58px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gfc .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0;
  right: 0;
  width: 60px;
  height: 58px;
}
.gfc .select2-container--default .select2-selection--single .select2-selection__arrow b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -7px 0 0 -5px;
  border: 0;
  border-right: 2px solid var(--gfc-text);
  border-bottom: 2px solid var(--gfc-text);
  transform: rotate(45deg);
}
.gfc .select2-container--open .select2-selection--single { border-color: var(--gfc-red); }
.gfc .select2-container--open .select2-selection--single .select2-selection__arrow b { margin-top: -2px; transform: rotate(225deg); }
.gfc .select2-dropdown { overflow: hidden; background: var(--gfc-white); border: 1px solid var(--gfc-line); border-radius: 0; box-shadow: 0 8px 22px rgba(0, 0, 0, .08); }
.gfc .select2-results__options { max-height: 320px !important; }
.gfc .select2-results__option { padding: 10px 20px; color: var(--gfc-text); font-size: 18px; line-height: 1.4; }
.gfc .select2-container--default .select2-results__option[aria-selected="true"],
.gfc .select2-container--default .select2-results__option--highlighted[aria-selected] { color: var(--gfc-red); background: var(--gfc-white); }
.gfc .select2-search--dropdown { display: none; }
.gfc__error { min-height: 18px; margin-top: 5px; color: var(--gfc-red); font-family: Arimo, Arial, sans-serif; font-size: 12px; line-height: 1.25; }
.gfc__error--block { margin: 10px 0 0; }

.gfc__area-summary { display: flex; min-height: 60px; flex-direction: column; justify-content: center; padding: 15px 22px; background: var(--gfc-white); border-left: 4px solid var(--gfc-red); }
.gfc__area-summary > span { color: var(--gfc-muted); font-size: 16px; }
.gfc__area-summary strong { color: var(--gfc-red); font-size: 24px; font-weight: 600; line-height: 1.2; }
.gfc__area-summary strong span { font-weight: 600; }
.gfc__area-summary small { margin-top: 3px; color: var(--gfc-muted); font-size: 14px; }

.gfc__check { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; cursor: pointer; user-select: none; }
.gfc__check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gfc__check-box { position: relative; flex: 0 0 24px; width: 24px; height: 24px; background: var(--gfc-white); border: 1px solid var(--gfc-line); }
.gfc__check input:focus-visible + .gfc__check-box { box-shadow: 0 0 0 2px rgba(228, 29, 44, .18); }
.gfc__check input:checked + .gfc__check-box { background: var(--gfc-red); border-color: var(--gfc-red); }
.gfc__check input:checked + .gfc__check-box::after { position: absolute; top: 5px; left: 8px; width: 7px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; content: ""; transform: rotate(45deg); }

.gfc__openings { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--gfc-line); }
.gfc__openings-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
.gfc__openings-head h3 { margin: 0; font-size: 22px; font-weight: 600; }
.gfc__openings-head p { margin: 4px 0 0; color: var(--gfc-muted); font-size: 14px; }
.gfc__opening-list { display: grid; gap: 16px; }
.gfc__opening-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .45fr) 46px; align-items: end; gap: 16px; padding: 20px; background: var(--gfc-white); }
.gfc__remove { display: grid; width: 46px; height: 60px; place-items: center; color: var(--gfc-text); background: transparent; border: 1px solid var(--gfc-line); font-size: 30px; font-weight: 300; line-height: 1; transition: color .2s, border-color .2s; }
.gfc__remove:hover, .gfc__remove:focus-visible { color: var(--gfc-red); border-color: var(--gfc-red); }
.gfc__opening-total { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 20px; }
.gfc__opening-total span { font-size: 15px; }
.gfc__opening-total strong { font-size: 24px; font-weight: 600; }
.gfc__opening-total strong span { font-size: 24px; font-weight: 600; }

.gfc__text-button { padding: 0; color: var(--gfc-red); background: none; border: 0; border-bottom: 1px solid currentColor; font-size: 15px; font-weight: 600; }
.gfc__text-button:hover, .gfc__text-button:focus-visible { color: var(--gfc-red-dark); }

.gfc__material-list { margin-top: 42px; border-top: 1px solid var(--gfc-line); }
.gfc__material { display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(150px, auto); align-items: center; gap: 20px; min-height: 112px; padding: 20px 0; border-bottom: 1px solid var(--gfc-line); }
.gfc__material-number { color: var(--gfc-red); font-size: 12px; font-weight: 600; }
.gfc__material-copy h3 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.25; }
.gfc__material-copy p { margin: 5px 0 0; color: var(--gfc-muted); font-size: 15px; }
.gfc__material-rate { width: 200px; padding-left: 24px; color: var(--gfc-red); font-size: 24px; font-weight: 600; white-space: nowrap; }
.gfc__compact-field { width: 200px; }
.gfc__compact-field--wide { width: min(500px, 42vw); }
.gfc__material--selectable { grid-template-columns: 42px minmax(220px, .65fr) minmax(360px, 1.25fr) auto; }

.gfc__calculate-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 34px; }
.gfc__calculate-row p { max-width: 700px; margin: 0; color: var(--gfc-muted); font-size: 13px; }
.gfc__button { display: inline-flex; min-height: 44px; flex-direction: row-reverse; align-items: center; justify-content: center; gap: 10px; padding: 12px 32px 10px; border-radius: 3px; font-size: 13px; font-weight: 600; letter-spacing: .02em; line-height: 18px; text-align: center; text-transform: uppercase; transition: background-color .2s, color .2s, border-color .2s; }
.gfc__button-icon { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gfc__button--primary {
  color: var(--gfc-white); background: var(--gfc-red); border: 1px solid var(--gfc-red);
  font-size: 13px !important;
  font-weight: 600 !important;
}
.gfc__button--primary:hover, .gfc__button--primary:focus-visible { background: var(--gfc-red-dark); border-color: var(--gfc-red-dark); }
.gfc__button--clear {
  color: var(--gfc-text); background: var(--gfc-white); border: 1px solid var(--gfc-line); white-space: nowrap;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.gfc__button--clear:hover, .gfc__button--clear:focus-visible { color: var(--gfc-red); border-color: var(--gfc-red); }
.gfc__form-error { margin: 20px 0 0; padding: 14px 18px; color: var(--gfc-red); background: #fff; border-left: 4px solid var(--gfc-red); font-size: 14px; }

.gfc__results { background: var(--gfc-white); border: 1px solid var(--gfc-line); }
.gfc__result-summary { margin-bottom: 34px; padding: 26px; background: var(--gfc-bg); }
.gfc__result-summary dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; }
.gfc__result-summary dl > div { padding: 0 26px; border-right: 1px solid var(--gfc-line); }
.gfc__result-summary dl > div:first-child { padding-left: 0; }
.gfc__result-summary dl > div:last-child { padding-right: 0; border-right: 0; }
.gfc__result-summary dt { color: var(--gfc-muted); font-size: 13px; }
.gfc__result-summary dd { margin: 7px 0 0; font-size: 25px; font-weight: 600; }
.gfc__result-summary dl > div:last-child dd { color: var(--gfc-red); }

.gfc__table-wrap { width: 100%; overflow-x: auto; }
.gfc__table { width: 100%; min-width: 940px; border-collapse: collapse; font-size: 15px; }
.gfc__table th { padding: 14px 16px; color: var(--gfc-muted); background: var(--gfc-bg); border-bottom: 1px solid var(--gfc-line); font-size: 12px; font-weight: 600; text-align: left; text-transform: uppercase; }
.gfc__table td { padding: 20px 16px; border-bottom: 1px solid var(--gfc-line); vertical-align: top; }
.gfc__table td:nth-child(n+3) { white-space: nowrap; }
.gfc__table-product { display: block; font-weight: 600; }
.gfc__table-note { display: block; margin-top: 3px; color: var(--gfc-muted); font-size: 12px; }
.gfc__table-packages { color: var(--gfc-red); font-size: 17px; font-weight: 600; }

.gfc__totals { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 34px; background: var(--gfc-bg); }
.gfc__totals > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 94px; padding: 24px 28px; border-right: 1px solid var(--gfc-line); }
.gfc__totals > div:last-child { border-right: 0; }
.gfc__totals span { font-size: 14px; }
.gfc__totals strong { color: var(--gfc-red); font-size: 24px; font-weight: 600; white-space: nowrap; }
.gfc__totals strong span { font-size: 24px; font-weight: 600; }

.gfc__additional { margin-top: 50px; }
.gfc__additional h3, .gfc__notes h3 { margin: 0 0 20px; font-size: 24px; font-weight: 600; }
.gfc__additional-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gfc__additional-card { padding: 24px; background: var(--gfc-bg); }
.gfc__additional-card span { display: block; min-height: 42px; color: var(--gfc-muted); font-size: 14px; }
.gfc__additional-card strong { display: block; margin-top: 14px; color: var(--gfc-red); font-size: 24px; font-weight: 600; }
.gfc__additional-card small { display: block; margin-top: 4px; color: var(--gfc-muted); font-size: 11px; }

.gfc__notes { margin-top: 50px; padding-top: 34px; border-top: 1px solid var(--gfc-line); }
.gfc__notes ul { margin: 0; padding-left: 22px; color: var(--gfc-muted); font-size: 14px; }
.gfc__notes li + li { margin-top: 8px; }
.gfc__download-row { display: flex; align-items: center; gap: 20px; margin-top: 36px; }
.gfc__pdf-status { color: var(--gfc-muted); font-size: 13px; }

.gfc.is-exporting .gfc__download-row { display: none; }
.gfc.is-exporting .gfc__results { margin: 0; padding: 28px; border: 0; }
.gfc.is-exporting .gfc__table { min-width: 0; font-size: 11px; }
.gfc.is-exporting .gfc__table th, .gfc.is-exporting .gfc__table td { padding: 8px; }

/* Отдельная видимая копия отчёта для html2canvas исключает пустые PDF-страницы. */
.gfc--pdf-export {
  position: fixed;
  z-index: 2147483647;
  top: 0;
  left: 0;
  display: block;
  width: 1440px;
  max-width: none;
  min-height: 100vh;
  padding: 24px;
  overflow: auto;
  background: #fff;
  pointer-events: none;
}
.gfc--pdf-content.gfc__results { display: block !important; box-sizing: border-box; width: 960px; max-width: none; margin: 0 auto; padding: 24px; background: #fff; border: 0; }
.gfc--pdf-content *,
.gfc--pdf-content *::before,
.gfc--pdf-content *::after { box-sizing: border-box; }
.gfc--pdf-content .gfc__step { display: none !important; }
.gfc--pdf-content .gfc__section-heading { gap: 0; }
.gfc--pdf-content .gfc__table-wrap { overflow: visible; }
.gfc--pdf-content .gfc__table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; font-size: 11px; }
.gfc--pdf-content .gfc__table th,
.gfc--pdf-content .gfc__table td { padding: 8px 9px; overflow-wrap: anywhere; white-space: normal; border: 1px solid #d6d6d6; }
.gfc--pdf-content .gfc__table th:nth-child(1) { width: 19%; }
.gfc--pdf-content .gfc__table th:nth-child(2) { width: 28%; }
.gfc--pdf-content .gfc__table th:nth-child(3) { width: 11%; }
.gfc--pdf-content .gfc__table th:nth-child(4) { width: 14%; }
.gfc--pdf-content .gfc__table th:nth-child(5) { width: 13%; }
.gfc--pdf-content .gfc__table th:nth-child(6) { width: 15%; }
.gfc--pdf-content .gfc__table th { color: #262626; background: #e7e7e7; border-color: #c9c9c9; }
.gfc--pdf-content .gfc__table tbody tr:nth-child(even) td { background: #f5f5f5; }
.gfc--pdf-content .gfc__table tbody tr:nth-child(odd) td { background: #fff; }
.gfc--pdf-content .gfc__table tbody td:first-child { background: #efefef; font-weight: 600; }
.gfc--pdf-content .gfc__totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gfc--pdf-content .gfc__totals > div { min-width: 0; }
.gfc--pdf-content .gfc__totals strong { font-size: 21px; }
.gfc--pdf-content .gfc__download-row { display: none !important; }
.gfc--pdf-content .gfc__additional-card,
.gfc--pdf-content .gfc__notes,
.gfc--pdf-content tr { break-inside: avoid; page-break-inside: avoid; }

@media (max-width: 980px) {
  .gfc__header { flex-direction: column; }
  .gfc__section, .gfc__results { padding: 38px 30px; }
  .gfc__material, .gfc__material--selectable { grid-template-columns: 35px minmax(0, 1fr); }
  .gfc__material > :last-child { grid-column: 2; justify-self: stretch; }
  .gfc__material--selectable .gfc__compact-field,
  .gfc__material--selectable .gfc__material-rate { grid-column: 2; }
  .gfc__compact-field, .gfc__compact-field--wide { width: 100%; }
  .gfc__totals { grid-template-columns: 1fr; }
  .gfc__totals > div { border-right: 0; border-bottom: 1px solid var(--gfc-line); }
  .gfc__totals > div:last-child { border-bottom: 0; }
}

@media (max-width: 680px) {
  .gfc { font-size: 16px; }
  .gfc__header { gap: 24px; padding: 28px 0; }
  .gfc__button--clear { width: 100%; }
  .gfc__menu { position: static; grid-template-columns: 1fr; }
  .gfc__menu-link { min-height: 52px; border-right: 0; border-bottom: 1px solid var(--gfc-line); }
  .gfc__menu-link:last-child { border-bottom: 0; }
  .gfc__section, .gfc__results { margin-top: 18px; padding: 28px 18px; }
  .gfc__section-heading { gap: 14px; margin-bottom: 30px; }
  .gfc__section-heading h2 { font-size: 26px; }
  .gfc__step { flex-basis: 38px; width: 38px; height: 38px; }
  .gfc__field-grid, .gfc__field-grid--area { grid-template-columns: 1fr; }
  .gfc__opening-row { grid-template-columns: 1fr 46px; padding: 16px; }
  .gfc__opening-row .gfc__field:first-child { grid-column: 1 / -1; }
  .gfc__remove { grid-column: 2; grid-row: 2; }
  .gfc__openings-head, .gfc__calculate-row { flex-direction: column; align-items: stretch; }
  .gfc__opening-total { align-items: flex-end; flex-direction: column; gap: 4px; }
  .gfc__material, .gfc__material--selectable { gap: 12px; }
  .gfc__material-copy h3 { font-size: 18px; }
  .gfc__button--primary { width: 100%; }
  .gfc__result-summary dl { grid-template-columns: 1fr; }
  .gfc__result-summary dl > div, .gfc__result-summary dl > div:first-child, .gfc__result-summary dl > div:last-child { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--gfc-line); }
  .gfc__result-summary dl > div:last-child { border-bottom: 0; }
  .gfc__additional-grid { grid-template-columns: 1fr; }
  .gfc__download-row { flex-direction: column; align-items: stretch; }
}

@media print {
  .gfc__header, .gfc__menu, .gfc__form, .gfc__download-row { display: none !important; }
  .gfc__results { display: block !important; margin: 0; padding: 0; border: 0; }
  .gfc__results .gfc__step { display: none !important; }
  .gfc__results .gfc__section-heading { gap: 0; }
  .gfc__table { border-collapse: collapse; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .gfc__table th, .gfc__table td { border: 1px solid #bdbdbd !important; }
  .gfc__table th { color: #262626 !important; background: #e7e7e7 !important; }
  .gfc__table tbody tr:nth-child(even) td { background: #f5f5f5 !important; }
  .gfc__table tbody td:first-child { background: #efefef !important; font-weight: 600; }
}
