/* Layout and icon refinements for the public site. */

/* Content must remain available even when reveal animations are throttled. */
.reveal,
.reveal.visible {
  opacity: 1;
  transform: none;
}

[data-icon] {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
}

[data-icon] > svg {
  width: 1em;
  height: 1em;
  overflow: visible;
}

.hero .eyebrow > span[data-content] {
  width: auto;
  height: auto;
  min-width: 0;
  background: transparent;
}

.button {
  gap: 10px;
}

.button [data-icon] {
  font-size: 18px;
}

.hero-checks [data-icon] {
  font-size: 13px;
}

.badge-icon[data-icon] {
  font-size: 18px;
}

.service-card,
.case-card,
.case-card-featured,
.why-cards article,
.lead-form {
  min-width: 0;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding-bottom: 78px;
}

.service-card > h3,
.service-card > p,
.service-label,
.case-content,
.case-content h3,
.why-cards h3,
.why-cards p,
.social-links b,
.footer-meta,
.footer-contact,
.footer-legal {
  overflow-wrap: break-word;
}

.service-card > p:not(.card-number) {
  min-height: 0;
}

.service-card .price-tag {
  margin-top: auto;
}

.service-label {
  max-width: calc(100% - 56px);
  text-align: center;
}

.service-more {
  min-height: 44px;
  max-width: calc(100% - 60px);
}

.service-more [data-icon],
.text-link [data-icon],
.case-open [data-icon] {
  font-size: 17px;
}

.case-open,
.text-link {
  min-height: 44px;
}

.case-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.calculator-shell,
.calculator-intro,
.calculator,
.calc-step-stack,
.calc-step,
.calc-question,
.calc-question > div,
.calc-field,
.choice-grid,
.choice-list,
.choice-list label > span,
.choice-copy,
.extra-options,
.extra-options label > span,
.calc-result,
.calc-result > div,
.calc-breakdown,
.field-row {
  min-width: 0;
  max-width: 100%;
}

.calculator-intro h2,
.calculator-intro p,
.calc-live-card strong,
.calc-live-card small,
.calc-question h4,
.calc-question p,
.choice-copy,
.choice-grid b,
.choice-grid small,
.choice-grid em,
.extra-options b,
.extra-options small,
.calc-final h4,
.calc-result strong,
.calc-result span {
  overflow-wrap: break-word;
}

.choice-icon[data-icon],
.extra-options i[data-icon] {
  font-size: 17px;
}

.calc-note [data-icon] {
  font-size: 16px;
}

.gallery-filter {
  min-height: 44px;
}

.gallery-filters {
  max-width: 100%;
}

.why-cards article {
  display: flex;
  flex-direction: column;
}

.why-cards article > span[data-icon] {
  font-size: 18px;
}

.social-links a {
  min-width: 0;
  min-height: 62px;
}

.social-links a > span[data-icon] {
  font-size: 17px;
}

.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form select,
.lead-form textarea {
  min-height: 46px;
  font-size: 16px;
}

.privacy {
  line-height: 1.45;
}

.mobile-contact-bar span[data-icon] {
  font-size: 15px;
}

.button:focus-visible,
.menu-toggle:focus-visible,
.gallery-filter:focus-visible,
.case-open:focus-visible,
.calc-wizard-nav button:focus-visible,
.calc-wizard-head > button:focus-visible,
.social-links a:focus-visible,
.mobile-contact-bar a:focus-visible,
.accordion summary:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(204, 105, 57, .42);
  outline-offset: 3px;
}

#services,
#calculator,
#portfolio,
#steps,
#contacts {
  scroll-margin-top: 88px;
}

@media (max-width: 1080px) {
  .service-grid {
    align-items: stretch;
  }

  .service-card {
    height: 100%;
  }

  .contact-shell,
  .why-grid,
  .faq-grid {
    gap: clamp(38px, 6vw, 68px);
  }
}

@media (max-width: 620px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .container {
    max-width: calc(100% - 28px);
  }

  .site-header,
  .hero,
  .calculator-section,
  .contact-section,
  .site-footer {
    overflow-x: clip;
  }

  .header-inner,
  .brand,
  .brand > span:last-child,
  .hero-grid,
  .hero-copy,
  .hero-visual,
  .section-heading,
  .section-heading > div,
  .service-grid,
  .gallery-toolbar,
  .case-grid,
  .why-grid,
  .faq-grid,
  .contact-shell,
  .footer-grid,
  .footer-bottom {
    min-width: 0;
    max-width: 100%;
  }

  .brand {
    min-height: 44px;
  }

  .brand > span:last-child {
    overflow: hidden;
  }

  .brand strong,
  .brand small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .mobile-menu a {
    display: flex;
    min-height: 48px;
    align-items: center;
  }

  .hero {
    padding-top: 34px;
  }

  .hero .eyebrow {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    line-height: 1.45;
  }

  .hero .eyebrow > span:first-child {
    flex: 0 0 auto;
  }

  .hero .eyebrow > span[data-content] {
    width: auto;
    height: auto;
    min-width: 0;
    flex: 0 1 auto;
    background: transparent;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(39px, 12.4vw, 54px);
    line-height: .98;
    overflow-wrap: break-word;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    min-width: 0;
    padding-inline: 17px;
    text-align: center;
  }

  .hero-checks {
    grid-template-columns: 1fr;
  }

  .hero-checks li,
  .hero-checks li:last-child {
    min-width: 0;
    grid-column: auto;
  }

  .hero-badge-top {
    right: 8px;
    max-width: calc(100% - 16px);
  }

  .hero-badge-bottom {
    bottom: 10px;
    left: 8px;
    max-width: calc(100% - 16px);
  }

  .hero-badge-bottom > span:last-child {
    min-width: 0;
  }

  .hero-badge-bottom strong,
  .hero-badge-bottom small {
    overflow-wrap: break-word;
  }

  .trust-grid > div {
    min-width: 0;
  }

  .trust-grid span {
    overflow-wrap: break-word;
  }

  .section-heading h2,
  .why-copy h2,
  .faq-heading h2,
  .contact-copy h2 {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .service-card {
    min-height: 0;
    padding: 25px 24px 22px;
  }

  .service-label {
    right: 18px;
    max-width: calc(100% - 36px);
  }

  .service-card .price-tag {
    margin-top: 22px;
  }

  .service-more {
    position: static;
    max-width: 100%;
    margin-top: 10px;
    justify-content: space-between;
  }

  .calculator-shell,
  .calculator-intro,
  .calculator {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .calculator-intro {
    padding-inline: 20px;
  }

  .calculator-intro .eyebrow {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .calculator-intro h2 {
    max-width: 100%;
    font-size: clamp(34px, 11.5vw, 39px);
  }

  .calc-live-card {
    width: 100%;
    max-width: 100%;
  }

  .calc-live-card > strong {
    font-size: clamp(25px, 9vw, 31px);
    line-height: 1.08;
  }

  .calc-note {
    align-items: flex-start;
  }

  .calculator {
    overflow: hidden;
  }

  .calc-wizard-head {
    gap: 12px;
  }

  .calc-wizard-head > div {
    min-width: 0;
  }

  .calc-wizard-head h3 {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .calc-wizard-head > button {
    min-width: 68px;
    min-height: 44px;
  }

  .calc-progress {
    max-width: 100%;
  }

  .calc-progress li,
  .calc-progress button {
    min-width: 0;
  }

  .field-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .field-row > label {
    flex: 1 1 145px;
  }

  .area-input {
    width: min(112px, 100%);
    min-height: 46px;
    max-width: 100%;
  }

  .area-input input {
    min-height: 44px;
  }

  .range {
    height: 28px;
    margin: 0;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 6px;
  }

  .condition-options {
    grid-template-columns: 1fr;
  }

  .condition-options label > span {
    display: grid;
    min-height: 76px;
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-content: center;
    text-align: left;
  }

  .condition-options .choice-icon {
    grid-row: 1 / 3;
    margin: 0;
  }

  .condition-options b,
  .condition-options small {
    min-width: 0;
    align-self: center;
    font-size: 10px;
  }

  .choice-list label > span,
  .material-options label > span,
  .extra-options label > span {
    overflow: hidden;
  }

  .choice-list mark,
  .material-options mark {
    max-width: calc(100% - 18px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .calc-breakdown b,
  .calc-result strong,
  .duration b {
    overflow-wrap: anywhere;
  }

  .calc-result {
    gap: 12px;
  }

  .gallery-toolbar {
    overflow: hidden;
  }

  .gallery-filters {
    width: 100%;
    max-width: 100%;
    padding: 2px 2px 8px;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
  }

  .gallery-filter {
    scroll-snap-align: start;
  }

  .case-content,
  .case-card-featured .case-content {
    padding: 22px 20px 24px;
  }

  .case-content h3,
  .case-card-featured .case-content h3 {
    padding-right: 26px;
    font-size: clamp(25px, 8.8vw, 29px);
  }

  .case-facts,
  .project-view-facts {
    min-width: 0;
  }

  .case-facts div,
  .project-view-facts div {
    min-width: 0;
  }

  .case-facts dd,
  .project-view-facts b {
    overflow-wrap: break-word;
  }

  .steps-list li {
    min-width: 0;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
    padding: 22px 20px;
  }

  .why-cards article {
    min-height: 0;
    padding: 22px;
  }

  .why-cards article > span {
    margin-bottom: 18px;
  }

  .accordion summary {
    min-height: 76px;
    overflow-wrap: break-word;
  }

  .social-links {
    grid-template-columns: 1fr;
  }

  .social-links a {
    min-height: 66px;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 12px 14px;
  }

  .social-links a > span {
    width: 40px;
    height: 40px;
  }

  .master-card {
    flex-wrap: wrap;
  }

  .online {
    min-height: 32px;
  }

  .lead-form {
    width: 100%;
    max-width: 100%;
  }

  .privacy {
    min-height: 44px;
    align-items: flex-start;
  }

  .privacy input {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
  }

  .footer-contact a,
  .footer-legal a {
    display: flex;
    min-height: 44px;
    align-items: center;
  }

  .footer-contact {
    min-width: 0;
  }

  .footer-contact a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .footer-legal {
    align-items: flex-start;
    gap: 0 14px;
  }

  .mobile-contact-bar a {
    min-width: 0;
    min-height: 54px;
  }

  .mobile-contact-bar span[data-icon] {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 360px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
    max-width: calc(100% - 24px);
  }

  .header-inner {
    gap: 8px;
  }

  .brand strong {
    max-width: 150px;
  }

  .hero h1 {
    font-size: clamp(37px, 12vw, 43px);
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid > div {
    min-height: 78px;
  }

  .material-options,
  .extra-options,
  .calc-breakdown {
    grid-template-columns: 1fr;
  }

  .material-options label > span,
  .extra-options label > span {
    min-height: 104px;
  }

  .calc-result {
    align-items: flex-start;
    flex-direction: column;
  }

  .duration {
    width: 100%;
    padding: 12px 0 0;
    border-top: 1px solid rgba(255,255,255,.14);
    border-left: 0;
  }

  .calc-wizard-nav {
    flex-wrap: wrap;
  }

  .calc-wizard-nav button {
    flex-basis: 100%;
  }

  .project-view-facts {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-view-facts div {
    padding: 0 0 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

/* Honest customer reviews */
.reviews-section {
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 15%, rgba(215, 236, 166, .26), transparent 23%),
    #f1ede4;
}

.reviews-heading {
  margin-bottom: 38px;
}

.reviews-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.reviews-overview {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  padding: 30px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(145deg, #1d3e2f, #132a20);
  box-shadow: 0 22px 60px rgba(22, 48, 36, .17);
}

.reviews-overview::after {
  position: absolute;
  right: -110px;
  bottom: -180px;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  content: "";
}

.reviews-overview > * {
  position: relative;
  z-index: 1;
}

.reviews-score {
  display: flex;
  align-items: center;
  gap: 17px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.reviews-score > strong {
  min-width: 78px;
  font: 500 58px/1 Georgia, serif;
  letter-spacing: -.05em;
}

.reviews-score > div {
  display: grid;
  gap: 7px;
}

.review-stars {
  color: #d9eea8;
  font-size: 18px;
  letter-spacing: .08em;
}

.reviews-score small {
  max-width: 170px;
  color: #bac9c0;
  font-size: 10px;
  line-height: 1.4;
}

.reviews-trust {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.reviews-trust li {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 11px;
  align-items: start;
}

.reviews-trust li > span {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  color: #d9eea8;
  background: rgba(255, 255, 255, .08);
  font-size: 17px;
}

.reviews-trust b,
.reviews-trust small {
  display: block;
}

.reviews-trust b {
  margin-bottom: 4px;
  font-size: 11px;
}

.reviews-trust small {
  color: #afbeb5;
  font-size: 9px;
  line-height: 1.5;
}

.review-platform-links {
  display: grid;
  gap: 7px;
  margin: auto 0 15px;
}

.review-platform-links a {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
  color: #e9efeb;
  background: rgba(255, 255, 255, .055);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

.reviews-feed {
  min-width: 0;
  padding: 8px;
  border: 1px solid #ded8cc;
  border-radius: 27px;
  background: rgba(255, 255, 255, .66);
}

.reviews-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 8px;
}

.review-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #e3ded4;
  border-radius: 20px;
  background: #fff;
}

.review-card::before {
  position: absolute;
  top: 13px;
  right: 18px;
  color: #ede8df;
  content: "“";
  font: 70px/1 Georgia, serif;
}

.review-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.review-card-stars {
  color: #d16c38;
  font-size: 13px;
  letter-spacing: .08em;
}

.review-verified {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border-radius: 99px;
  color: #285f42;
  background: #e4f2e8;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.review-verified [data-icon] {
  font-size: 11px;
}

.review-card > p {
  position: relative;
  z-index: 1;
  margin: 16px 0 18px;
  color: #46524b;
  font-size: 12px;
  line-height: 1.75;
}

.review-card footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
  padding-top: 13px;
  border-top: 1px solid #eeeae2;
}

.review-card footer b,
.review-card footer small {
  display: block;
}

.review-card footer b {
  margin-bottom: 3px;
  font-size: 11px;
}

.review-card footer small,
.review-card time {
  color: #7b857f;
  font-size: 8px;
}

.reviews-empty {
  display: grid;
  grid-column: 1 / -1;
  min-height: 480px;
  place-items: center;
  align-content: center;
  padding: 35px;
  border-radius: 20px;
  text-align: center;
}

.reviews-empty > span {
  color: #d8d2c6;
  font: 90px/1 Georgia, serif;
}

.reviews-empty h3 {
  margin: -16px 0 9px;
  font: 500 30px/1.1 Georgia, serif;
}

.reviews-empty p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.review-dialog {
  width: min(640px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 28px 90px rgba(11, 25, 17, .3);
}

.review-dialog::backdrop {
  background: rgba(8, 18, 12, .72);
  backdrop-filter: blur(8px);
}

.review-form {
  display: grid;
  gap: 15px;
  padding: 29px;
}

.review-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.review-dialog-head p {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.review-dialog-head h2 {
  margin: 0;
  font: 500 36px/1 Georgia, serif;
}

.review-dialog-head button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: #f8f6f1;
  cursor: pointer;
  font-size: 21px;
}

.review-form-intro {
  margin: -4px 0 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.review-form > label,
.review-form-row > label {
  display: grid;
  gap: 7px;
  color: #3f4b44;
  font-size: 10px;
  font-weight: 800;
}

.review-form label > small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
  line-height: 1.4;
}

.review-form input[type="text"],
.review-form input[type="tel"],
.review-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #fbfaf7;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.review-form textarea {
  resize: vertical;
  line-height: 1.5;
}

.review-form input:focus,
.review-form textarea:focus {
  border-color: #5e796a;
  box-shadow: 0 0 0 3px rgba(68, 104, 83, .1);
}

.review-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.review-rating-field {
  margin: 0;
  padding: 0;
  border: 0;
}

.review-rating-field legend {
  margin-bottom: 8px;
  color: #3f4b44;
  font-size: 10px;
  font-weight: 800;
}

.review-rating-field > div {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.review-rating-field label {
  position: relative;
  cursor: pointer;
}

.review-rating-field input {
  position: absolute;
  opacity: 0;
}

.review-rating-field span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #7d756a;
  background: #fbfaf7;
  font-size: 11px;
  font-weight: 850;
}

.review-rating-field input:checked + span {
  color: #fff;
  border-color: var(--forest);
  background: var(--forest);
}

.review-rating-field input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(68, 104, 83, .16);
}

@media (max-width: 860px) {
  .reviews-layout {
    grid-template-columns: 1fr;
  }

  .reviews-overview {
    min-height: 0;
  }

  .reviews-trust {
    grid-template-columns: 1fr 1fr;
  }

  .review-platform-links {
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .reviews-heading {
    margin-bottom: 26px;
  }

  .reviews-overview {
    padding: 23px 20px;
    border-radius: 20px;
  }

  .reviews-trust,
  .review-platform-links,
  .reviews-list,
  .review-form-row {
    grid-template-columns: 1fr;
  }

  .reviews-feed {
    padding: 6px;
    border-radius: 21px;
  }

  .review-card {
    min-height: 0;
    padding: 17px 16px;
    border-radius: 16px;
  }

  .reviews-empty {
    min-height: 330px;
  }

  .review-dialog {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 19px;
  }

  .review-form {
    padding: 21px 17px 24px;
  }

  .review-dialog-head h2 {
    font-size: 31px;
  }

  .review-rating-field span {
    min-height: 40px;
    font-size: 9px;
  }
}

/* Compact calculator: one useful step per viewport. */
.calculator-section.section-pad {
  padding-block: 22px;
}

.calculator-shell {
  height: clamp(520px, calc(100dvh - 150px), 560px);
  min-height: 0;
  grid-template-columns: minmax(286px, 330px) minmax(0, 1fr);
  border-radius: 28px;
}

.calculator-intro {
  padding: 30px 28px 26px;
}

.calculator-intro h2 {
  margin-bottom: 12px;
  font-size: clamp(36px, 3.4vw, 44px);
}

.calculator-intro > p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.55;
}

.calc-live-card {
  margin-top: 20px;
  padding: 18px;
  border-radius: 16px;
}

.calc-live-card > strong {
  margin-block: 6px 4px;
  font-size: clamp(27px, 2.7vw, 34px);
}

.calc-live-card > div {
  margin-top: 12px;
  padding-top: 11px;
}

.calc-benefits {
  gap: 7px;
  margin-top: 18px;
}

.calc-note {
  padding-top: 15px;
}

.calculator {
  padding: 20px 30px 18px;
  overflow: hidden;
  scroll-margin-top: 82px;
}

.calc-wizard-head {
  min-height: 39px;
  align-items: center;
}

.calc-wizard-head h3 {
  margin-top: 2px;
  font-size: 24px;
}

.calc-wizard-head > button {
  min-height: 40px;
}

.calc-progress {
  margin-top: 10px;
}

.calc-progress button {
  min-height: 36px;
}

.calc-progress button i {
  width: 24px;
  height: 24px;
}

.calc-step-stack {
  min-height: 0;
}

.calc-step {
  padding-top: 14px;
}

.calc-question {
  gap: 11px;
  margin-bottom: 14px;
}

.calc-question > span {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 12px;
}

.calc-question h4 {
  font-size: 22px;
}

.calc-question p {
  font-size: 10px;
}

.calc-field {
  margin-bottom: 13px;
}

.calc-field legend {
  margin-bottom: 7px;
}

.field-row {
  margin-bottom: 7px;
}

.area-input {
  min-height: 38px;
}

.range-labels {
  margin-top: 5px;
}

.choice-grid label > span {
  min-height: 76px;
  padding: 9px 11px;
  border-radius: 12px;
}

.choice-icon {
  width: 27px;
  height: 27px;
  margin-bottom: 6px;
}

.choice-grid em {
  padding-top: 5px;
}

.choice-list {
  gap: 7px;
}

.choice-list label > span {
  min-height: 66px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
}

.choice-copy small {
  margin-top: 2px;
}

.material-options label > span {
  min-height: 88px;
}

.extra-options {
  gap: 7px;
}

.extra-options label > span {
  min-height: 70px;
  grid-template-columns: 30px minmax(0, 1fr) 20px;
  column-gap: 9px;
  padding: 9px 11px;
  border-radius: 12px;
}

.extra-options label > span > i {
  width: 30px;
  height: 30px;
  grid-column: 1;
  grid-row: 1 / 3;
}

.extra-options label b,
.extra-options label small {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.extra-options label b {
  grid-column: 2;
  grid-row: 1;
}

.extra-options label small {
  grid-column: 2;
  grid-row: 2;
}

.extra-options label em {
  grid-column: 3;
  grid-row: 1 / 3;
}

.calc-skip-note {
  margin-top: 10px;
  padding: 9px 12px;
}

.calc-final {
  padding-top: 14px;
}

.calc-summary-chips,
.calc-breakdown {
  margin-top: 10px;
}

.calc-breakdown > div {
  padding: 9px 12px;
}

.calc-result {
  margin-block: 7px 9px;
  padding: 14px 16px;
}

.calc-result strong {
  font-size: 26px;
}

.calc-wizard-nav {
  padding-top: 10px;
}

.calc-wizard-nav button {
  min-height: 44px;
}

@media (max-width: 860px) {
  .calculator-shell {
    height: clamp(570px, calc(100dvh - 128px), 620px);
    grid-template-columns: 1fr;
    grid-template-rows: 106px minmax(0, 1fr);
    border-radius: 24px;
  }

  .calculator-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .78fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 2px 22px;
    padding: 14px 24px;
  }

  .calculator-intro .eyebrow {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }

  .calculator-intro h2 {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    font-size: 29px;
  }

  .calculator-intro > p:not(.eyebrow),
  .calculator-intro .calc-benefits,
  .calculator-intro .calc-note {
    display: none;
  }

  .calc-live-card {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
    padding: 11px 14px;
  }

  .calc-live-card > strong {
    margin-block: 3px;
    font-size: 25px;
  }

  .calc-live-card > div {
    display: none;
  }

  .calculator {
    padding: 16px 24px 14px;
  }
}

@media (max-width: 620px) {
  .calculator-section.section-pad {
    padding-block: 0;
  }

  .calculator-shell {
    height: auto;
    min-height: 0;
    grid-template-rows: auto auto;
    border-radius: 0;
  }

  .calculator-intro {
    display: block;
    padding: 8px 12px 9px;
  }

  .calculator-intro .eyebrow {
    display: none;
  }

  .calculator-intro h2,
  .calculator-intro > p:not(.eyebrow),
  .calculator-intro .calc-benefits,
  .calculator-intro .calc-note {
    display: none;
  }

  .calc-live-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 10px;
    align-items: end;
    margin: 0;
    padding: 10px 13px;
    border-radius: 13px;
  }

  .calc-live-card > span {
    grid-column: 1 / 3;
  }

  .calc-live-card > strong {
    margin: 0;
    font-size: clamp(22px, 8vw, 27px);
  }

  .calc-live-card > small {
    max-width: 104px;
    padding-bottom: 2px;
    text-align: right;
  }

  .calculator {
    min-height: clamp(440px, calc(100dvh - 205px), 480px);
    padding: 12px 14px 11px;
  }

  .calc-wizard-head {
    min-height: 36px;
  }

  .calc-wizard-head h3 {
    max-width: 190px;
    font-size: 20px;
  }

  .calc-wizard-head > button {
    min-width: 62px;
    min-height: 40px;
  }

  .calc-progress {
    margin-top: 5px;
  }

  .calc-progress button {
    min-height: 34px;
  }

  .calc-progress button i {
    width: 25px;
    height: 25px;
  }

  .calc-step {
    padding-top: 10px;
  }

  .calc-question {
    margin-bottom: 10px;
  }

  .calc-question > span {
    width: 31px;
    height: 31px;
  }

  .calc-question h4 {
    font-size: 20px;
  }

  .calc-question p {
    font-size: 9px;
  }

  .calc-field {
    margin-bottom: 10px;
  }

  .condition-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .condition-options label > span {
    display: flex;
    min-height: 82px;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px;
    text-align: left;
  }

  .condition-options .choice-icon {
    margin: 0 0 6px;
  }

  .condition-options b {
    font-size: 8px;
  }

  .condition-options small {
    font-size: 7px;
  }

  .material-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .material-options label > span {
    min-height: 86px;
  }

  .extra-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .extra-options label > span {
    display: flex;
    min-height: 78px;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 9px;
  }

  .extra-options label > span > i {
    width: 27px;
    height: 27px;
    margin-bottom: 5px;
  }

  .extra-options label em {
    position: absolute;
    top: 8px;
    right: 8px;
  }

  .extra-options label b {
    padding-right: 20px;
    font-size: 9px;
  }

  .extra-options label small {
    font-size: 7px;
  }

  .calc-skip-note {
    margin-top: 8px;
    padding: 8px 10px;
  }

  .calc-wizard-nav {
    padding-top: 8px;
  }

  .calc-wizard-nav button {
    min-height: 44px;
  }
}

@media (max-width: 360px) {
  .material-options,
  .extra-options,
  .calc-breakdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .material-options label > span,
  .extra-options label > span {
    min-height: 82px;
  }

  .calc-wizard-nav {
    flex-wrap: nowrap;
  }

  .calc-wizard-nav button {
    flex-basis: auto;
  }
}

/* --- фотография на главной --- */
.hero-room { display: block; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: #e8e2d6; }
