:root {
  color-scheme: light;
  --paper: #f7f4ee;
  --paper-strong: #fffdf8;
  --ink: #17211f;
  --muted: #66706d;
  --line: #d9d5c9;
  --green: #126b5a;
  --green-deep: #0c4038;
  --amber: #c8752d;
  --blue: #284f7a;
  --rose: #9e4f4f;
  --shadow: 0 18px 44px rgba(32, 40, 36, 0.14);
  --radius: 8px;
  --fast: 160ms ease;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(40, 79, 122, 0.38);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #33403d;
  font-size: 14px;
}

.nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-color: var(--amber);
}

.phone {
  justify-self: end;
  color: var(--green-deep);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  padding: clamp(120px, 16vh, 180px) clamp(18px, 5vw, 72px) clamp(44px, 7vh, 84px);
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 35, 31, 0.88), rgba(13, 35, 31, 0.58) 48%, rgba(13, 35, 31, 0.28)),
    url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1800&q=82") center / cover;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  width: min(820px, 100%);
  max-width: 100%;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffd39a;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: 0;
}

.lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-actions,
.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.search-row input {
  flex: 1 1 260px;
  min-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  transition: transform var(--fast), background var(--fast), border-color var(--fast);
}

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

.btn.primary {
  background: var(--amber);
  color: #fff;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.btn.ghost-dark {
  background: transparent;
  border-color: var(--line);
  color: var(--green-deep);
}

.btn.compact {
  min-height: 42px;
  padding-inline: 15px;
}

.btn.full {
  width: 100%;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(720px, 100%);
  margin: 32px 0 0;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.stats div {
  padding: 18px;
  background: rgba(12, 64, 56, 0.46);
}

.stats dt {
  font-size: 27px;
  font-weight: 900;
}

.stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.quick {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) repeat(2, minmax(180px, 0.8fr));
  gap: 16px;
  padding: 20px clamp(18px, 5vw, 72px);
  background: var(--paper-strong);
  border-bottom: 1px solid var(--line);
}

.search-panel,
.quick-card,
.calculator,
.quote-form {
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.search-panel {
  padding: 16px;
}

.search-panel label,
.calculator label,
.quote-form label {
  display: grid;
  gap: 7px;
  color: #2d3835;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c6c1b7;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  min-height: 42px;
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

.quick-card {
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 16px;
}

.quick-card span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(260px, 0.65fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head p {
  color: var(--muted);
}

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

.category-card {
  min-height: 410px;
  display: grid;
  grid-template-rows: 170px auto 1fr auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.category-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 6px;
}

.category-card p {
  color: var(--muted);
}

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

.category-card.accent {
  border-color: rgba(18, 107, 90, 0.45);
  box-shadow: var(--shadow);
}

.link-button {
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 900;
  padding: 0;
}

.link-button.subtle {
  color: var(--amber);
}

.link-button:hover {
  text-decoration: underline;
}

.plisse-layout {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(320px, 420px);
  gap: 28px;
  background: #e8eee9;
}

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

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

.check-list li {
  padding: 13px 15px;
  border-left: 4px solid var(--green);
  background: rgba(255, 255, 255, 0.62);
}

.calculator {
  align-self: start;
  display: grid;
  gap: 15px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.calc-result {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-radius: 6px;
  background: var(--green-deep);
  color: #fff;
}

.calc-result span,
.calc-result small {
  color: rgba(255, 255, 255, 0.74);
}

.calc-result strong {
  font-size: 32px;
  line-height: 1;
}

.catalog-table-section {
  background: var(--paper-strong);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.chip.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid #ebe7df;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f0ebe1;
  color: #4b5552;
  font-size: 13px;
  text-transform: uppercase;
}

td {
  color: #263330;
}

td:nth-child(2) {
  font-weight: 800;
}

td:nth-child(5) {
  white-space: nowrap;
  color: var(--green-deep);
  font-weight: 900;
}

.add-btn {
  min-height: 34px;
  border: 1px solid #d8ccbd;
  border-radius: 6px;
  background: #fff8ef;
  color: var(--amber);
  font-weight: 900;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}

.production-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) 1fr;
  gap: 34px;
  background: #263b36;
  color: #fff;
}

.production-band .eyebrow {
  color: #ffc98f;
}

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

.production-grid article {
  min-height: 130px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.production-grid span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #ffd39a;
  font-weight: 900;
}

.production-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.steps span {
  display: block;
  margin-bottom: 28px;
  color: var(--blue);
  font-size: 26px;
  font-weight: 900;
}

.steps strong {
  display: block;
  margin-bottom: 8px;
  font-size: 21px;
}

.steps p {
  color: var(--muted);
}

.quote {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(320px, 520px);
  gap: 30px;
  background: #f3e7d8;
}

.quote-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

#formResult {
  min-height: 24px;
  color: var(--green-deep);
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: #fff;
}

.footer p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.66);
}

.footer a {
  color: #ffd39a;
  font-weight: 900;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: flex-end;
}

.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 56vh;
  padding: clamp(110px, 14vh, 150px) clamp(18px, 5vw, 72px) clamp(42px, 7vh, 72px);
  color: #fff;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 64, 56, 0.92), rgba(38, 59, 54, 0.72) 55%, rgba(40, 79, 122, 0.42)),
    url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.page-hero-inner {
  position: relative;
  width: min(860px, 100%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.breadcrumb a {
  color: #ffd39a;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

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

.answer-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-strong);
  padding: 20px;
}

.answer-card.main-answer {
  background: #fff;
  box-shadow: var(--shadow);
}

.answer-card p:last-child,
.faq-list p:last-child {
  margin-bottom: 0;
}

.seo-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.seo-table {
  min-width: 760px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.faq-list article {
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.related-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) 1fr;
  gap: 24px;
  align-items: start;
  background: #e8eee9;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(18, 107, 90, 0.28);
  border-radius: 6px;
  background: #fff;
  color: var(--green-deep);
  font-weight: 800;
}

.seo-cta .answer-card {
  align-self: start;
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

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

  .content-grid,
  .related-section {
    grid-template-columns: 1fr;
  }

  .answer-grid,
  .faq-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 66px;
    gap: 10px;
  }

  .phone {
    display: none;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 82vh;
    padding-top: 110px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-content {
    width: 320px;
    max-width: calc(100vw - 48px);
  }

  h1 {
    max-width: 330px;
    font-size: 32px;
    line-height: 1.04;
  }

  .lead {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .lead {
    font-size: 17px;
  }

  .stats,
  .section-head,
  .plisse-layout,
  .production-band,
  .quote {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .production-grid,
  .steps,
  .answer-grid,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 0;
  }

  .filters {
    justify-content: flex-start;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .hero-actions .btn,
  .search-row .btn {
    width: 100%;
  }

  .search-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quick {
    padding-right: 16px;
    padding-left: 16px;
  }

  .quick > *,
  .search-panel {
    min-width: 0;
  }

  .footer {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .page-hero {
    min-height: 62vh;
    padding-right: 16px;
    padding-left: 16px;
  }

  .related-links a {
    width: 100%;
    justify-content: center;
  }
}

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

  .btn {
    transition: none;
  }

  .hero-media {
    transform: none;
  }
}
