:root {
  --font-small: clamp(12px, 0.75vw, 13px);
  --font-body: clamp(15px, 0.95vw, 16px);
  --font-display: clamp(32px, 3.7vw, 58px);
}

html {
  overflow-x: clip;
  scroll-behavior: auto;
  scroll-padding-top: 84px;
}

body {
  overflow-x: clip;
}

a,
button,
input,
select,
textarea {
  touch-action: manipulation;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  height: 84px;
}

.hero {
  min-height: 650px;
}

.hero-copy {
  padding-top: clamp(68px, 7vw, 104px);
}

.catalog-section,
.section,
.contacts {
  padding-top: 96px;
  padding-bottom: 96px;
}

.installation-planner {
  padding-top: 92px;
  padding-bottom: 92px;
}

.product-card,
.catalog-filters,
.contact-card,
.product-modal-card {
  box-shadow: none;
}

.product-modal {
  height: 100dvh;
  overscroll-behavior: contain;
}

.product-modal-card {
  max-height: calc(100dvh - 56px);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.catalog-tabs {
  overscroll-behavior-inline: contain;
  touch-action: pan-x;
}

.field-error {
  color: #a23535;
  font-size: var(--font-small);
  line-height: 1.4;
  margin-top: 7px;
  display: block;
}

.field-error[hidden] {
  display: none;
}

.request-form input[aria-invalid="true"] {
  border-color: #b94141;
  box-shadow: 0 0 0 3px rgba(185, 65, 65, 0.1);
}

.privacy-consent .field-error {
  grid-column: 2;
}

@media (width <= 820px) {
  :root {
    --font-small: 12px;
    --font-body: 16px;
    --font-display: 34px;
  }

  html {
    scroll-padding-top: 74px;
  }

  .site-header {
    gap: 10px;
    height: 74px;
    padding-inline: 14px;
  }

  .header-contact {
    min-width: 0;
  }

  .header-cta {
    min-height: 44px;
    height: 44px;
    padding-inline: 12px;
  }

  .hero-copy {
    min-height: auto;
    padding: 54px 20px 34px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-proof {
    gap: 16px;
    margin-top: 38px;
    padding-top: 24px;
  }

  .hero-visual {
    min-height: 330px;
  }

  .quick-choice > div {
    padding: 22px 20px;
  }

  .quick-choice > a {
    min-height: 64px;
  }

  .catalog-section,
  .section,
  .contacts {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .catalog-heading {
    margin-bottom: 32px;
  }

  .catalog-heading > div {
    margin-bottom: 22px;
  }

  .catalog-heading > p,
  .section-heading > p {
    margin-top: 18px;
  }

  .section-heading h2 {
    margin-top: 24px;
  }

  .installation-planner {
    gap: 42px;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .solution-grid {
    margin-top: 36px;
  }

  .solution-card {
    min-height: 220px;
  }

  .service-section,
  .experience,
  .contacts {
    gap: 44px;
  }

  .engineering {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .contact-card {
    padding: 24px 18px;
  }

  .planner-card select,
  .request-form input,
  .request-form select,
  .request-form textarea {
    font-size: 16px;
  }
}

@media (width <= 520px) {
  .site-header {
    gap: 8px;
    padding-inline: 12px;
  }

  .brand-logo {
    width: 100px;
  }

  .header-cta {
    padding-inline: 10px;
  }

  .catalog-section {
    padding-inline: 14px;
  }

  .product-grid {
    gap: 12px;
  }

  .product-card {
    grid-template-columns: 112px minmax(0, 1fr);
    display: grid;
  }

  .product-image {
    aspect-ratio: auto;
    align-self: stretch;
    min-height: 100%;
    height: 100%;
  }

  .product-image img {
    padding: 12px;
  }

  .product-type {
    top: 8px;
    left: 8px;
    padding: 5px 7px;
    font-size: 10px;
  }

  .product-body {
    padding: 14px 14px 12px;
  }

  .product-topline {
    gap: 6px;
  }

  .product-topline small {
    display: none;
  }

  .product-card h3 {
    min-height: auto;
    margin: 8px 0 11px;
    line-height: 1.32;
  }

  .product-specs {
    gap: 7px 10px;
    margin-bottom: 12px;
  }

  .product-specs div:nth-child(n + 3) {
    display: none;
  }

  .product-buy {
    grid-template-columns: 1fr;
    gap: 7px;
    padding-top: 10px;
  }

  .product-buy button {
    justify-self: start;
    min-height: 44px;
    margin-block: -5px;
  }

  .product-modal {
    height: 100dvh;
    min-height: 100dvh;
  }

  .product-modal-card {
    height: 100dvh;
    max-height: 100dvh;
  }

  .modal-product-image {
    min-height: 240px;
  }

  .modal-product-copy {
    padding-top: 32px;
  }

  .request-form {
    padding: 18px 14px;
  }
}

@media (width <= 350px) {
  .brand-logo {
    width: 92px;
  }

  .header-cta {
    font-size: 12px;
    padding-inline: 8px;
  }

  .product-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* The production bundle loads this file through @import before its base rules.
   These targeted overrides stay explicit so the deployable archive works
   without rebuilding the original application. */
:root {
  --font-small: clamp(12px, 0.75vw, 13px) !important;
  --font-body: clamp(15px, 0.95vw, 16px) !important;
  --font-display: clamp(32px, 3.7vw, 58px) !important;
}

html {
  overflow-x: clip !important;
  scroll-behavior: auto !important;
  scroll-padding-top: 84px !important;
}

body {
  overflow-x: clip !important;
}

.site-header {
  height: 84px !important;
}

.hero {
  min-height: 650px !important;
}

.hero-copy {
  padding-top: clamp(68px, 7vw, 104px) !important;
}

.catalog-section,
.section,
.contacts {
  padding-top: 96px !important;
  padding-bottom: 96px !important;
}

.installation-planner {
  padding-top: 92px !important;
  padding-bottom: 92px !important;
}

.product-card,
.catalog-filters,
.contact-card,
.product-modal-card {
  box-shadow: none !important;
}

.product-modal {
  height: 100dvh !important;
  overscroll-behavior: contain !important;
}

.product-modal-card {
  max-height: calc(100dvh - 56px) !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

@media (width <= 820px) {
  :root {
    --font-small: 12px !important;
    --font-body: 16px !important;
    --font-display: 34px !important;
  }

  html {
    scroll-padding-top: 74px !important;
  }

  .site-header {
    gap: 10px !important;
    height: 74px !important;
    padding-inline: 14px !important;
  }

  .header-contact {
    min-width: 0 !important;
  }

  .header-cta {
    min-height: 44px !important;
    height: 44px !important;
    padding-inline: 12px !important;
  }

  .hero-copy {
    min-height: auto !important;
    padding: 54px 20px 34px !important;
  }

  .hero-actions {
    margin-top: 28px !important;
  }

  .hero-proof {
    gap: 16px !important;
    margin-top: 38px !important;
    padding-top: 24px !important;
  }

  .hero-visual {
    min-height: 330px !important;
  }

  .quick-choice > div {
    padding: 22px 20px !important;
  }

  .quick-choice > a {
    min-height: 64px !important;
  }

  .catalog-section,
  .section,
  .contacts {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .catalog-heading {
    margin-bottom: 32px !important;
  }

  .catalog-heading > div {
    margin-bottom: 22px !important;
  }

  .catalog-heading > p,
  .section-heading > p {
    margin-top: 18px !important;
  }

  .section-heading h2 {
    margin-top: 24px !important;
  }

  .installation-planner {
    gap: 42px !important;
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .solution-grid {
    margin-top: 36px !important;
  }

  .solution-card {
    min-height: 220px !important;
  }

  .service-section,
  .experience,
  .contacts {
    gap: 44px !important;
  }

  .engineering {
    padding-top: 54px !important;
    padding-bottom: 54px !important;
  }

  .contact-card {
    padding: 24px 18px !important;
  }

  .planner-card select,
  .request-form input,
  .request-form select,
  .request-form textarea {
    font-size: 16px !important;
  }
}

@media (width <= 520px) {
  .site-header {
    gap: 8px !important;
    padding-inline: 12px !important;
  }

  .brand-logo {
    width: 100px !important;
  }

  .header-cta {
    padding-inline: 10px !important;
  }

  .catalog-section {
    padding-inline: 14px !important;
  }

  .product-grid {
    gap: 12px !important;
  }

  .product-card {
    grid-template-columns: 112px minmax(0, 1fr) !important;
    display: grid !important;
  }

  .product-image {
    aspect-ratio: auto !important;
    align-self: stretch !important;
    min-height: 100% !important;
    height: 100% !important;
  }

  .product-image img {
    padding: 12px !important;
  }

  .product-type {
    top: 8px !important;
    left: 8px !important;
    padding: 5px 7px !important;
    font-size: 10px !important;
  }

  .product-body {
    padding: 14px 14px 12px !important;
  }

  .product-topline {
    gap: 6px !important;
  }

  .product-topline small {
    display: none !important;
  }

  .product-card h3 {
    min-height: auto !important;
    margin: 8px 0 11px !important;
    line-height: 1.32 !important;
  }

  .product-specs {
    gap: 7px 10px !important;
    margin-bottom: 12px !important;
  }

  .product-specs div:nth-child(n + 3) {
    display: none !important;
  }

  .product-buy {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    padding-top: 10px !important;
  }

  .product-buy button {
    justify-self: start !important;
    min-height: 44px !important;
    margin-block: -5px !important;
  }

  .product-modal,
  .product-modal-card {
    height: 100dvh !important;
    max-height: 100dvh !important;
  }

  .modal-product-image {
    min-height: 240px !important;
  }

  .modal-product-copy {
    padding-top: 32px !important;
  }

  .request-form {
    padding: 18px 14px !important;
  }
}

@media (width <= 350px) {
  .brand-logo {
    width: 92px !important;
  }

  .header-cta {
    font-size: 12px !important;
    padding-inline: 8px !important;
  }

  .product-card {
    grid-template-columns: 96px minmax(0, 1fr) !important;
  }
}

/* Mobile density pass: keep the sales path visible without oversized blocks. */
@media (width <= 820px) {
  html {
    scroll-padding-top: 64px !important;
  }

  .site-header {
    height: 64px !important;
    padding-inline: 14px !important;
  }

  .phone {
    display: flex !important;
    min-height: 44px !important;
    align-items: center !important;
    font-size: 13px !important;
    letter-spacing: -0.015em !important;
  }

  .header-contact {
    gap: 10px !important;
  }

  .header-cta {
    min-height: 40px !important;
    height: 40px !important;
  }

  .hero-copy {
    padding: 34px 20px 24px !important;
  }

  h1 {
    margin-top: 20px !important;
    margin-bottom: 18px !important;
  }

  .hero-lead {
    line-height: 1.5 !important;
  }

  .hero-actions {
    gap: 8px !important;
    margin-top: 22px !important;
  }

  .button {
    min-height: 48px !important;
    padding-inline: 20px !important;
  }

  .hero-proof {
    gap: 8px !important;
    margin-top: 26px !important;
    padding-top: 14px !important;
  }

  .hero-proof div {
    padding-top: 12px !important;
  }

  .hero-visual {
    min-height: 270px !important;
  }

  .hero-badge {
    padding: 14px 18px 14px 14px !important;
  }

  .quick-choice > div {
    padding: 16px 18px !important;
  }

  .quick-choice small {
    margin-top: 4px !important;
  }

  .quick-choice > a {
    min-height: 52px !important;
  }

  .catalog-section,
  .section,
  .contacts {
    padding-top: 46px !important;
    padding-bottom: 46px !important;
  }

  .catalog-heading {
    margin-bottom: 24px !important;
  }

  .catalog-heading > div {
    margin-bottom: 14px !important;
  }

  .catalog-heading > p,
  .section-heading > p {
    margin-top: 12px !important;
    line-height: 1.55 !important;
  }

  .section-heading h2 {
    margin-top: 16px !important;
  }

  .catalog-tabs button {
    padding: 10px 15px !important;
  }

  .catalog-filters {
    padding: 12px !important;
  }

  .catalog-meta {
    min-height: 50px !important;
  }

  .load-more {
    min-height: 50px !important;
  }

  .installation-planner {
    gap: 28px !important;
    padding-top: 46px !important;
    padding-bottom: 46px !important;
  }

  .planner-copy .kicker,
  .service-intro .kicker,
  .contact-copy .kicker,
  .experience-copy .kicker {
    margin-top: 18px !important;
    margin-bottom: 12px !important;
  }

  .planner-card {
    gap: 12px !important;
    padding: 18px !important;
  }

  .planner-card select,
  .request-form input,
  .request-form select {
    height: 48px !important;
  }

  .planner-result {
    padding: 18px !important;
  }

  .solution-grid {
    margin-top: 26px !important;
  }

  .solution-card {
    min-height: 170px !important;
    padding: 22px 18px !important;
  }

  .solution-card > svg {
    width: 30px !important;
    height: 30px !important;
  }

  .solution-card h3 {
    margin-top: 34px !important;
    margin-bottom: 8px !important;
  }

  .solution-card a {
    right: 18px !important;
    bottom: 18px !important;
  }

  .service-section,
  .experience,
  .contacts {
    gap: 30px !important;
  }

  .service-list article {
    min-height: 0 !important;
    padding: 18px 0 !important;
  }

  .experience-number {
    min-height: 280px !important;
    padding: 28px !important;
  }

  .experience-copy > p:last-of-type,
  .service-intro > p:last-child,
  .contact-copy > p:last-child {
    margin-top: 16px !important;
    line-height: 1.6 !important;
  }

  .engineering {
    gap: 22px !important;
    padding: 42px 20px !important;
  }

  .engineering .kicker {
    margin-top: 14px !important;
    margin-bottom: 10px !important;
  }

  .engineering p:last-child {
    margin-top: 14px !important;
  }

  .contact-card {
    padding: 20px 18px !important;
  }

  .contact-phone {
    margin-bottom: 18px !important;
  }

  .contact-details {
    gap: 16px 20px !important;
    margin-top: 20px !important;
    padding-top: 18px !important;
  }

  footer {
    min-height: 0 !important;
    gap: 18px !important;
    padding: 24px 18px !important;
  }
}

@media (width <= 520px) {
  .brand-logo {
    width: 96px !important;
  }

  .header-contact {
    margin-left: auto !important;
    gap: 0 !important;
  }

  .header-cta {
    display: none !important;
  }

  .phone {
    color: var(--ink) !important;
    font-size: 13px !important;
  }

  .hero-copy {
    padding-inline: 18px !important;
  }

  .hero-actions .button {
    min-height: 46px !important;
  }

  .hero-visual {
    min-height: 245px !important;
  }

  .catalog-section,
  .section,
  .contacts {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .product-card {
    grid-template-columns: 96px minmax(0, 1fr) !important;
  }

  .product-body {
    padding: 12px !important;
  }

  .product-card h3 {
    margin: 6px 0 9px !important;
  }

  .product-specs {
    margin-bottom: 9px !important;
  }

  .product-buy {
    padding-top: 8px !important;
  }

  .product-buy button {
    min-height: 40px !important;
  }

  .modal-product-image {
    min-height: 205px !important;
  }

  .modal-product-copy {
    padding: 24px 18px !important;
  }

  .modal-specs {
    margin: 20px 0 !important;
  }

  .request-form {
    gap: 11px !important;
    padding: 16px 14px !important;
  }
}

@media (width <= 350px) {
  .brand-logo {
    width: 86px !important;
  }

  .phone {
    font-size: 12px !important;
  }
}

.price-date {
  color: var(--ink) !important;
  font-weight: 800 !important;
}

.request-form {
  scroll-margin-top: 74px !important;
}

/* Section 02: installation and service details must be readable at a glance. */
.service-section .service-intro > p:last-child,
.service-section .service-list p {
  font-size: 16px !important;
}

.service-section .service-list h3 {
  font-size: 18px !important;
}

.service-section .service-list article > span {
  font-size: 13px !important;
}

@media (width <= 820px) {
  .request-form {
    scroll-margin-top: 64px !important;
  }

  .service-section .service-intro h2 {
    font-size: 36px !important;
  }

  .service-section .service-intro > p:last-child,
  .service-section .service-list p {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  .service-section .service-list h3 {
    font-size: 18px !important;
  }
}
