:root {
  color-scheme: light;
  --ink: #1f2524;
  --muted: #66706d;
  --line: #dce1dd;
  --paper: #f7f5ef;
  --white: #ffffff;
  --sage: #60746a;
  --sage-dark: #394b44;
  --copper: #b8703f;
  --clay: #d6c5b4;
  --shadow: 0 24px 70px rgba(31, 37, 36, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: clamp(100%, calc(37.5% + 0.625vw), 125%);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--white);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(247, 245, 239, 0.94);
  box-shadow: 0 12px 36px rgba(31, 37, 36, 0.1);
  backdrop-filter: blur(16px);
}

.brand,
.header-phone,
.nav a {
  font-size: 0.875rem;
  font-weight: 650;
}

.header-contacts {
  display: inline-flex;
  align-items: center;
  justify-content: end;
  gap: 8px;
}

.header-messenger {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(4, 18, 31, 0.18);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.header-messenger:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.82);
  background: var(--white);
  box-shadow: 0 14px 30px rgba(4, 18, 31, 0.24);
}

.site-header.is-scrolled .header-messenger,
.site-header.is-open .header-messenger,
.text-page .header-messenger {
  border-color: rgba(31, 37, 36, 0.12);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(31, 37, 36, 0.16);
}

.header-messenger img {
  width: 24px;
  height: 24px;
  max-width: 24px;
  flex: 0 0 auto;
  border-radius: 6px;
  object-fit: contain;
}

.header-messenger[data-telegram-contact] img {
  filter: invert(55%) sepia(81%) saturate(1638%) hue-rotate(165deg) brightness(91%) contrast(92%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
}

.brand span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: currentColor;
}

.brand-mark::before {
  top: 11px;
}

.brand-mark::after {
  top: 19px;
}

.nav {
  justify-self: center;
  display: flex;
  gap: 22px;
}

.nav a {
  opacity: 0.86;
}

.header-phone {
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94svh;
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 5vw, 72px) 34px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(21, 25, 23, 0.78), rgba(21, 25, 23, 0.34) 48%, rgba(21, 25, 23, 0.12)),
    linear-gradient(0deg, rgba(21, 25, 23, 0.55), rgba(21, 25, 23, 0) 48%);
}

.hero-content {
  position: relative;
  width: min(760px, 100%);
  padding-bottom: 118px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--copper);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f1c49b;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.625rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.875rem, 4vw, 3.5rem);
  font-weight: 680;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.3125rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.1875rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--white);
  background: var(--sage-dark);
}

.max-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  color: var(--white);
  background: linear-gradient(135deg, #08a9ff 0%, #2a76ff 100%);
  box-shadow: 0 16px 34px rgba(21, 112, 225, 0.28);
}

.max-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(21, 112, 225, 0.34);
}

.max-button img {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 6px;
}

.max-button-light {
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 14px 30px rgba(4, 18, 31, 0.18);
}

.max-button-light:hover {
  box-shadow: 0 18px 38px rgba(4, 18, 31, 0.24);
}

.telegram-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  color: var(--white);
  background: linear-gradient(135deg, #2ca5e0 0%, #168acd 100%);
  box-shadow: 0 16px 34px rgba(22, 138, 205, 0.24);
}

.telegram-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(22, 138, 205, 0.3);
}

.telegram-button img {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 6px;
}

.telegram-button-light {
  color: var(--ink);
  background: #eaf7ff;
  box-shadow: 0 14px 30px rgba(4, 18, 31, 0.14);
}

.telegram-button-light:hover {
  box-shadow: 0 18px 38px rgba(4, 18, 31, 0.2);
}

.hero .button-primary {
  color: var(--ink);
  background: #f3d0ac;
}

.hero h1 {
  max-width: 980px;
  font-size: clamp(2.25rem, 5.6vw, 5rem);
  line-height: 1;
  overflow-wrap: normal;
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.hero-panel {
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 920px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.hero-panel div {
  padding: 20px;
}

.hero-panel strong {
  display: block;
  font-size: 1.5625rem;
  line-height: 1;
}

.hero-panel span {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
}

.section {
  scroll-margin-top: 88px;
  padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 0.76fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 34px;
}

.section-note {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.projects {
  background: var(--white);
}

.projects .section-heading {
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 0;
}

.projects .section-heading .section-note {
  max-width: 760px;
}

.project-carousel {
  --project-gap: 18px;
  --project-visible: 3;
  --project-gap-total: calc(var(--project-gap) * 2);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding-top: clamp(34px, 4vw, 56px);
}

.project-viewport {
  min-width: 0;
  overflow: hidden;
  outline: none;
}

.project-track {
  display: flex;
  gap: var(--project-gap);
  transition: transform 0.28s ease;
  will-change: transform;
}

.project-card {
  flex: 0 0 calc((100% - var(--project-gap-total)) / var(--project-visible));
  min-width: 0;
  margin: 0;
}

.project-photo-button,
.feature-photo-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.project-photo-button:focus-visible,
.feature-photo-button:focus-visible,
.carousel-control:focus-visible,
.gallery-modal button:focus-visible {
  outline: 3px solid rgba(184, 112, 63, 0.55);
  outline-offset: 4px;
}

.project-card img,
.feature-photo-card img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
  background: var(--line);
  transition: filter 0.18s ease;
}

.project-photo-button:hover img,
.feature-photo-button:hover img {
  filter: saturate(1.05) contrast(1.03);
}

.project-card figcaption {
  min-height: 48px;
  margin: 12px 0 0;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.25;
}

.carousel-control,
.gallery-control,
.gallery-close {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.carousel-control {
  font-size: 2rem;
  line-height: 1;
}

.carousel-control:hover,
.gallery-control:hover,
.gallery-close:hover {
  transform: translateY(-1px);
  background: var(--white);
}

.carousel-control:disabled {
  opacity: 0.34;
  cursor: default;
  transform: none;
}

.pergola-features {
  background: var(--paper);
}

.feature-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-photo-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}

.feature-photo-card div {
  padding: 22px;
}

.feature-photo-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

body.gallery-modal-open {
  overflow: hidden;
}

.gallery-modal {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: none;
  padding: clamp(16px, 3vw, 34px);
  background: rgba(21, 25, 23, 0.78);
}

.gallery-modal.is-open {
  display: grid;
  place-items: center;
}

.gallery-dialog {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(1120px, 100%);
  max-height: calc(100svh - clamp(32px, 6vw, 68px));
  padding: clamp(14px, 2vw, 20px);
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.gallery-image-wrap {
  display: grid;
  place-items: center;
  min-height: 0;
  background: #111;
}

.gallery-image {
  width: 100%;
  max-height: min(68svh, 760px);
  object-fit: contain;
}

.gallery-caption {
  margin: 0;
  font-weight: 750;
  line-height: 1.25;
}

.gallery-description {
  margin: -4px 0 0;
  color: var(--muted);
}

.gallery-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.5rem;
}

.gallery-control {
  position: absolute;
  top: 50%;
  font-size: 2rem;
  line-height: 1;
}

.gallery-prev {
  left: 12px;
}

.gallery-next {
  right: 12px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.benefit-grid article {
  position: relative;
  min-height: 260px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.48);
}

.benefit-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 24px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.66);
}

.benefit-grid span,
.model-card span,
.timeline span {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--sage);
  font-weight: 720;
}

.benefit-grid p,
.split-copy p,
.model-card p,
.option-strip p,
.timeline p,
.colors p,
.faq p,
.site-footer p,
.form-note {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: var(--white);
}

.split-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-copy {
  max-width: 680px;
}

.split-copy p {
  margin: 22px 0 0;
  font-size: 1.125rem;
}

.check-list {
  display: grid;
  gap: 11px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 8px;
  border-left: 2px solid var(--copper);
  border-bottom: 2px solid var(--copper);
  transform: rotate(-45deg);
}

.weather-icons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.weather-icons span {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 90px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fbfaf7;
  font-size: 0.75rem;
  font-weight: 650;
  text-align: center;
}

.weather-icons img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.drainage-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(520px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 12%, rgba(79, 118, 154, 0.28), transparent 34%),
    linear-gradient(135deg, #151918, #26312e 58%, #18201f);
}

.drainage-showcase > *,
.louver-system > * {
  min-width: 0;
}

.drainage-copy {
  max-width: 760px;
}

.drainage-copy p {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.125rem;
}

.louver-modes-list span {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
}

.drainage-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.drainage-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.louver-system {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.58fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: var(--white);
}

.louver-visual {
  min-height: 460px;
  overflow: hidden;
  background: #121716;
  box-shadow: var(--shadow);
}

.louver-visual img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.louver-copy p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.louver-modes-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.louver-modes-list article {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.louver-modes-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.louver-modes-list span {
  color: var(--sage);
}

.louver-modes-list p {
  margin: 0;
  font-size: 1rem;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.model-card,
.option-strip article {
  position: relative;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}

.model-card img {
  width: 100%;
  aspect-ratio: 1.32 / 1;
  object-fit: cover;
}

.model-card div {
  padding: 22px;
}

.model-card span {
  margin-bottom: 18px;
  color: var(--copper);
}

.model-card-wide {
  grid-column: span 2;
  position: relative;
  min-height: 360px;
  overflow: hidden;
  color: var(--white);
}

.model-card-wide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.model-card-wide div {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  min-height: 100%;
  padding: clamp(24px, 4vw, 48px);
  background:
    linear-gradient(0deg, rgba(21, 25, 23, 1.58), rgba(21, 25, 23, 0) 68%);
}

.model-card-wide span {
  color: #f3d0ac;
}

.model-card-wide p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
}

.estimator {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.56fr);
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
  background: var(--sage-dark);
  color: var(--white);
}

.estimator-copy p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.125rem;
}

.lead-form {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 34px);
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-card {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow);
}

.contact-card-light {
  color: var(--ink);
  background: var(--white);
}

.contact-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(21, 112, 225, 0.18);
}

.contact-card h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  line-height: 1.08;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
}

.contact-card .eyebrow {
  margin: 0 0 -6px;
  color: var(--sage);
}

.contact-note {
  font-size: 0.8125rem;
}

.contact-note-light {
  margin: -4px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8125rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.contact-actions .button {
  min-width: min(100%, 220px);
}

.contact-actions-stack {
  display: grid;
  grid-template-columns: 1fr;
}

.contact-actions-stack .button {
  width: 100%;
}

.form-contact-actions,
.lead-form .contact-actions,
.business-form .contact-actions,
.inline-form .contact-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  margin-top: 2px;
}

.form-contact-actions .button,
.lead-form .contact-actions .button,
.business-form .contact-actions .button,
.inline-form .contact-actions .button {
  width: 100%;
  min-width: 0;
}

.form-contact-actions + .form-note,
.form-contact-actions + .form-status,
.lead-form .contact-actions + .form-note,
.lead-form .contact-actions + .form-status,
.business-form .contact-actions + .form-status,
.inline-form .contact-actions + .form-status {
  margin-top: 0;
}

.calc-fields {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.calc-fields label {
  display: grid;
  gap: 8px;
}

.calc-fields label span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.8125rem;
  font-weight: 650;
}

.calc-fields input:not([type="checkbox"]):not([type="hidden"]),
.calc-fields select {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.calc-fields input:not([type="checkbox"]):not([type="hidden"])::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.calc-fields select {
  background-image: none;
}

.calc-fields select option {
  background: var(--sage);
}

.calc-fields input:focus,
.calc-fields select:focus {
  border-color: #f3d0ac;
  box-shadow: 0 0 0 3px rgba(243, 208, 172, 0.14);
}

.size-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.calc-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.calc-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.calc-option input {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  border: 0;
  flex: 0 0 auto;
  accent-color: #f3d0ac;
}

.calc-option-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  object-fit: contain;
}

.calc-option span {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 650;
  line-height: 1.2;
}

.calc-option:has(input:checked) {
  border-color: rgba(243, 208, 172, 0.72);
  background: rgba(243, 208, 172, 0.13);
}

.calc-result {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(243, 208, 172, 0.48);
  border-radius: var(--radius);
  background: rgba(21, 25, 23, 0.22);
}

.calc-result span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
}

.calc-result strong {
  color: #f3d0ac;
  font-size: clamp(2.125rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1;
}

.calc-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 8px 14px;
}

.calc-price-row del {
  color: rgba(255, 255, 255, 0.52);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 650;
  line-height: 1.1;
  text-decoration-color: rgba(243, 208, 172, 0.9);
  text-decoration-thickness: 2px;
}

.calc-discount {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  color: #1f2524;
  background: #f3d0ac;
  font-size: 0.8125rem;
  font-weight: 800;
  line-height: 1;
}

.calc-result small {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.66);
}

.lead-form label {
  display: grid;
  gap: 7px;
}

.lead-form label span {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 650;
}

.lead-form .consent-check,
.consent-check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--sage);
}

.lead-form .consent-check span,
.consent-check span {
  color: inherit;
  font-size: inherit;
  font-weight: 600;
}

.consent-check a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.consent-check-light {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.74);
}

input:not([type="checkbox"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 15px;
  color: var(--ink);
  background: #fbfaf7;
  line-height: 1.25;
  outline: none;
}

input:not([type="checkbox"]):not([type="hidden"]),
select {
  min-height: 54px;
}

select {
  padding-right: 15px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(96, 116, 106, 0.14);
}

.form-note {
  margin: -2px 0 0;
  font-size: 0.75rem;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--sage-dark);
  font-weight: 650;
}

.form-status.is-error {
  color: #9c3c26;
}

.business-offer {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.56fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 245, 239, 0.76)),
    radial-gradient(circle at 12% 14%, rgba(184, 112, 63, 0.16), transparent 34%);
}

.business-copy {
  max-width: 880px;
}

.business-copy p:not(.eyebrow) {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.business-panel {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 3vw, 34px);
  color: var(--white);
  background: var(--sage-dark);
  box-shadow: var(--shadow);
}

.business-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.business-list li {
  position: relative;
  padding: 0 0 14px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.84);
  font-weight: 650;
}

.business-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 8px;
  border-left: 2px solid #f3d0ac;
  border-bottom: 2px solid #f3d0ac;
  transform: rotate(-45deg);
}

.business-form {
  display: grid;
  gap: 12px;
}

.business-form input:not([type="checkbox"]):not([type="hidden"]) {
  background: var(--white);
}

.business-form .button-primary {
  color: var(--ink);
  background: #f3d0ac;
}

.business-form .consent-check {
  color: rgba(255, 255, 255, 0.72);
}

.business-form .form-status {
  color: #f3d0ac;
}

.business-panel .max-button,
.business-panel .telegram-button {
  width: 100%;
}

.option-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.option-strip img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
}

.option-strip .option-icon {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 14px;
  width: 58px;
  height: 58px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(247, 245, 239, 0.88);
  box-shadow: 0 12px 28px rgba(31, 37, 36, 0.16);
  backdrop-filter: blur(12px);
  object-fit: contain;
}

.option-strip h3,
.option-strip p {
  margin-left: 22px;
  margin-right: 22px;
}

.option-strip h3 {
  margin-top: 22px;
}

.option-strip p {
  margin-bottom: 24px;
}

.process {
  background: var(--white);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.timeline article {
  padding: 26px 26px 6px 0;
  border-right: 1px solid var(--line);
}

.timeline article + article {
  padding-left: 26px;
}

.timeline article:last-child {
  border-right: 0;
}

.timeline span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.colors {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(300px, 0.5fr);
  gap: 34px;
  align-items: center;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  min-height: 220px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.swatches span {
  background: var(--swatch);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 980px;
  margin-left: auto;
}

details {
  border: 1px solid var(--line);
  background: var(--white);
}

summary {
  padding: 22px;
  cursor: pointer;
  font-weight: 700;
}

details p {
  margin: 0;
  padding: 0 22px 22px;
}

.final-cta {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 0.68fr);
  gap: 28px;
  align-items: center;
  color: var(--white);
  background: var(--ink);
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.inline-form .form-status {
  grid-column: 1 / -1;
  color: #f3d0ac;
}

.final-contact-actions {
  justify-self: end;
}

.cookie-banner {
  position: fixed;
  z-index: 30;
  left: clamp(14px, 3vw, 32px);
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(220, 225, 221, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.cookie-banner p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cookie-actions .button {
  min-height: 44px;
  padding: 12px 16px;
  white-space: nowrap;
}

.cookie-actions .button-ghost {
  color: var(--ink);
  border-color: var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(18px, 5vw, 72px);
  background: #171b1a;
  color: var(--white);
}

.site-footer p {
  max-width: 540px;
  margin: 8px 0 0;
}

.footer-links {
  display: grid;
  gap: 8px;
  justify-items: end;
  align-content: start;
}

.footer-links a:last-child {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
}

.text-page .site-header {
  position: sticky;
  color: var(--ink);
  background: rgba(247, 245, 239, 0.94);
  box-shadow: 0 12px 36px rgba(31, 37, 36, 0.1);
  backdrop-filter: blur(16px);
}

.legal-page {
  padding-top: 54px;
}

.legal-hero {
  padding: clamp(90px, 13vw, 150px) clamp(18px, 5vw, 72px) clamp(40px, 8vw, 84px);
  color: var(--white);
  background: var(--sage-dark);
}

.legal-hero h1 {
  max-width: 980px;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
}

.legal-hero p:last-child {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.125rem;
}

.legal-content {
  display: grid;
  gap: 34px;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.legal-content article {
  display: grid;
  gap: 14px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.legal-content article:last-child {
  border-bottom: 0;
}

.legal-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
}

.legal-content p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .benefit-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-carousel {
    --project-visible: 2;
    --project-gap-total: var(--project-gap);
  }

  .feature-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .model-card-wide {
    grid-column: span 2;
  }

  .estimator,
  .drainage-showcase,
  .louver-system,
  .business-offer,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .drainage-showcase,
  .louver-system {
    gap: clamp(30px, 6vw, 48px);
  }

  .louver-visual {
    width: 100%;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .louver-visual img {
    min-height: 0;
  }

  .calc-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 64px;
  }

  .brand span:last-child {
    display: none;
  }

  .site-header:not(.is-open) .nav,
  .site-header:not(.is-open) .header-contacts {
    display: none;
  }

  .site-header.is-open .nav,
  .site-header.is-open .header-contacts {
    display: flex;
  }

  .site-header.is-open .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    width: 100%;
    min-width: 320px;
    flex-direction: column;
    gap: 0;
    padding: 12px clamp(24px, 8vw, 44px) 96px;
    background: var(--paper);
    box-shadow: 0 24px 50px rgba(31, 37, 36, 0.12);
  }

  .site-header.is-open .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-header.is-open .header-contacts {
    position: absolute;
    left: clamp(24px, 8vw, 44px);
    right: clamp(24px, 8vw, 44px);
    top: 336px;
    align-items: center;
    gap: 8px;
    justify-content: start;
    padding: 16px 0 18px;
  }

  .site-header.is-open .header-messenger {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .site-header.is-open .header-messenger img {
    width: 24px;
    height: 24px;
    max-width: 24px;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    flex: 0 0 42px;
    position: relative;
    z-index: 2;
    color: var(--ink);
    border-color: rgba(31, 37, 36, 0.12);
    background: var(--white);
    box-shadow: 0 10px 24px rgba(31, 37, 36, 0.16);
  }

  .hero {
    display: block;
    min-height: auto;
  }

  .hero-content {
    padding-bottom: 0;
  }

  .hero-panel {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .hero-panel div {
    padding: 14px 16px;
  }

  .section-heading,
  .split,
  .colors {
    grid-template-columns: 1fr;
  }

  .project-carousel {
    grid-template-columns: 46px 1fr 46px;
    grid-template-areas:
      "prev spacer next"
      "viewport viewport viewport";
    gap: 16px 10px;
  }

  .carousel-control {
    position: static;
    justify-self: center;
  }

  .carousel-control-prev {
    grid-area: prev;
  }

  .carousel-control-next {
    grid-area: next;
  }

  .project-viewport {
    grid-area: viewport;
  }

  .option-strip {
    grid-template-columns: 1fr;
  }

  .weather-icons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .louver-visual {
    min-height: auto;
  }

  .louver-modes-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .calc-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.625rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.9375rem;
  }

  .hero {
    padding-top: 108px;
    padding-bottom: 34px;
  }

  .hero-content {
    padding-bottom: 0;
  }

  .hero-actions,
  .button,
  .max-button,
  .telegram-button {
    width: 100%;
  }

  .contact-actions,
  .final-contact-actions,
  .form-contact-actions,
  .lead-form .contact-actions,
  .business-form .contact-actions,
  .inline-form .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-self: stretch;
  }

  .benefit-grid,
  .drainage-gallery,
  .model-grid,
  .feature-photo-grid,
  .timeline,
  .inline-form,
  .cookie-banner,
  .calc-options,
  .size-fields {
    grid-template-columns: 1fr;
  }

  .drainage-showcase {
    gap: 30px;
  }

  .drainage-gallery {
    gap: 12px;
  }

  .louver-system {
    gap: 26px;
  }

  .louver-modes-list {
    gap: 18px;
    margin-top: 24px;
  }

  .louver-modes-list article {
    padding: 18px 0 20px;
  }

  .cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .calc-option-icon {
    width: 32px;
    height: 32px;
  }

  .model-card-wide {
    grid-column: span 1;
  }

  .model-card-wide,
  .model-card-wide div {
    min-height: 420px;
  }

  .benefit-grid article {
    min-height: auto;
  }

  .weather-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-carousel {
    --project-visible: 1;
    --project-gap: 14px;
    --project-gap-total: 0px;
  }

  .project-card figcaption {
    min-height: 42px;
  }

  .gallery-modal {
    padding: 10px;
  }

  .gallery-dialog {
    grid-template-columns: 1fr 1fr;
    width: calc(100vw - 20px);
    max-height: calc(100svh - 20px);
  }

  .gallery-image-wrap,
  .gallery-caption,
  .gallery-description {
    grid-column: 1 / -1;
  }

  .gallery-image-wrap {
    order: 1;
  }

  .gallery-caption {
    order: 2;
  }

  .gallery-description {
    order: 3;
  }

  .gallery-image {
    max-height: 52svh;
  }

  .gallery-control {
    position: static;
    order: 4;
    transform: none;
  }

  .gallery-prev {
    grid-column: 1;
    justify-self: start;
  }

  .gallery-next {
    grid-column: 2;
    justify-self: end;
  }

  .timeline article,
  .timeline article + article {
    padding-left: 0;
    border-right: 0;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    justify-items: start;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 1.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .project-track,
  .button,
  .carousel-control,
  .gallery-control,
  .gallery-close,
  .project-card img,
  .feature-photo-card img {
    transition: none;
  }
}
