/*
Theme Name: Facade Stone Demo
Theme URI: https://example.local/
Author: Demo
Author URI: https://example.local/
Description: Демо-тема для подбора и поставки фасадных, облицовочных и декоративных материалов.
Version: 1.3.0
Text Domain: facade-stone
*/

:root {
  --bg: #f7f4ee;
  --paper: #ffffff;
  --paper-soft: #fbfaf7;
  --ink: #242220;
  --muted: #68615a;
  --graphite: #2f3432;
  --sand: #d7c2a4;
  --stone: #b99b78;
  --brown: #7c5739;
  --sage: #76806f;
  --line: #e5ddd2;
  --shadow: 0 20px 60px rgba(42, 36, 29, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.55;
  background: var(--bg);
}

body.admin-bar .site-header {
  top: 32px;
}

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

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

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 221, 210, 0.82);
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--graphite), var(--brown));
  font-size: 18px;
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--ink);
}

.menu-toggle {
  display: none;
}

.menu-state {
  display: none;
}

.mobile-nav-actions {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-socials {
  gap: 10px;
}

.header-social {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: transparent;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.header-social:hover {
  transform: translateY(-2px);
  opacity: 0.82;
}

.header-social img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.header-social-avito img { width: 27px; height: 27px; }
.header-social-telegram img { width: 25px; height: 25px; }

.phone-link {
  font-weight: 800;
  white-space: nowrap;
}

.btn,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font: 800 15px/1 Inter, Arial, sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--brown);
  box-shadow: 0 12px 30px rgba(124, 87, 57, 0.2);
}

.btn-primary:hover {
  background: #67452b;
}

.btn-secondary {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.84);
}

.btn-outline {
  color: var(--graphite);
  border-color: var(--line);
  background: #fff;
}

.btn-whatsapp {
  color: #fff;
  background: #2f7d59;
}

.btn-telegram {
  color: #fff;
  background: #3578c8;
}

.btn-telegram:hover {
  background: #2865ad;
}

.btn-email {
  color: var(--ink);
  background: #fff;
}

.btn-callback {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.btn-callback:hover {
  color: var(--ink);
  background: #fff;
}

.btn-avito {
  color: #fff;
  background: #4a80f0;
}

.btn-avito:hover {
  background: #376bd7;
}

.hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - 78px);
  padding: 64px 0 40px;
  color: #fff;
  overflow: hidden;
  background: var(--graphite);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(28, 25, 22, 0.86) 0%, rgba(28, 25, 22, 0.62) 43%, rgba(28, 25, 22, 0.14) 100%),
    url("assets/images/hero-facade-house.png") center / cover no-repeat;
}

.hero .container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100svh - 182px);
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

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

.hero-triggers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.trigger-card {
  min-height: 110px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.91);
  font-weight: 750;
}

.section {
  padding: 52px 0;
}

.section-alt {
  background: var(--paper-soft);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 36px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--brown);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.section h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-lead {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.material-card,
.usage-card,
.benefit-card,
.supplier-card,
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.material-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(42, 36, 29, 0.06);
}

.material-image-link {
  display: block;
  height: 210px;
  overflow: hidden;
  background: #ddd1c2;
}

.material-image-link img,
.material-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-image,
.usage-image {
  min-height: 170px;
  background:
    linear-gradient(135deg, rgba(47, 52, 50, 0.08), rgba(124, 87, 57, 0.12)),
    var(--texture, linear-gradient(45deg, #c7a27b, #ede1d0));
  background-size: cover;
}

.texture-decor { --texture: linear-gradient(135deg, #8a785f 0 18%, #c1a988 18% 34%, #786b5a 34% 48%, #d9c8ae 48% 66%, #a98b66 66% 100%); }
.texture-natural { --texture: radial-gradient(circle at 20% 25%, #e0d3c1 0 14%, transparent 15%), radial-gradient(circle at 70% 60%, #8c8379 0 16%, transparent 17%), linear-gradient(120deg, #b8b0a3, #746d64); }
.texture-tile { --texture: repeating-linear-gradient(90deg, #caa46f 0 44px, #ead8c1 44px 48px), repeating-linear-gradient(0deg, rgba(255,255,255,.28) 0 58px, rgba(80,55,38,.22) 58px 62px); }
.texture-clinker { --texture: repeating-linear-gradient(90deg, #7d3f2c 0 55px, #d9c7b1 55px 59px), repeating-linear-gradient(0deg, rgba(255,255,255,.18) 0 28px, rgba(47,52,50,.2) 28px 31px); }
.texture-brick { --texture: repeating-linear-gradient(90deg, #a7653f 0 50px, #e8d5bd 50px 54px), repeating-linear-gradient(0deg, rgba(255,255,255,.16) 0 30px, rgba(70,45,30,.18) 30px 34px); }
.texture-panel { --texture: linear-gradient(135deg, #5f6360, #9a927f 45%, #d0b894); }
.texture-paving { --texture: repeating-linear-gradient(45deg, #8a8177 0 28px, #cbb99e 28px 32px, #a58c6b 32px 58px, #e3d4c0 58px 62px); }
.texture-fence { --texture: linear-gradient(135deg, #4d514f 0 22%, #b79a76 22% 44%, #eee3d0 44% 60%, #806348 60% 100%); }

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.card-meta {
  margin: 0 0 8px;
  color: var(--brown);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.card-body h3,
.card-body h2,
.benefit-card h3,
.supplier-card h3,
.usage-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.card-body p,
.benefit-card p,
.supplier-card p,
.usage-card p,
.faq-item p {
  margin: 0;
  color: var(--muted);
}

.material-card .btn {
  width: 100%;
  margin-top: auto;
  min-height: 54px;
  padding: 0 22px;
  line-height: 1.2;
}

.catalog-grid .material-card .card-body {
  min-height: 250px;
}

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

.supplier-card {
  min-height: 190px;
  padding: 24px;
}

.supplier-logo {
  display: grid;
  place-items: center;
  width: 76px;
  height: 58px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--graphite);
  font-weight: 900;
}

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

.benefit-card {
  min-height: 188px;
  padding: 24px;
}

.benefit-number,
.step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--sage);
  font-weight: 900;
}

.steps {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  counter-reset: work;
}

.step {
  position: relative;
  min-height: 184px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.step p {
  margin: 0;
  font-weight: 750;
}

.usage-card {
  overflow: hidden;
}

.usage-slider {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: #ddd1c2;
}

.usage-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: usageFade 8s infinite ease-in-out;
}

.usage-slider img.is-second {
  opacity: 0;
  animation-delay: 4s;
}

@keyframes usageFade {
  0%,
  42% {
    opacity: 1;
    transform: scale(1);
  }

  50%,
  92% {
    opacity: 0;
    transform: scale(1.035);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .usage-slider img {
    animation: none;
  }

  .usage-slider img.is-second {
    display: none;
  }
}

.usage-card .card-body {
  min-height: 128px;
}

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

.testimonial-card {
  display: grid;
  align-content: space-between;
  min-height: 310px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 36px rgba(42, 36, 29, 0.05);
}

.testimonial-card p {
  margin: 16px 0 24px;
  color: var(--ink);
}

.testimonial-card strong,
.testimonial-card span {
  display: block;
}

.testimonial-card span {
  color: var(--muted);
  font-size: 14px;
}

.testimonial-rating {
  color: var(--brown);
  letter-spacing: 2px;
}

.page-hero {
  padding: 90px 0;
  background: #efe8dd;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 44px;
  align-items: center;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}

.page-hero p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.page-hero .btn {
  margin-top: 30px;
}

.catalog-note {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(124, 87, 57, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.catalog-note strong {
  font-size: 24px;
}

.catalog-note span {
  color: var(--muted);
}

.catalog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-chip { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: 14px; font-weight: 750; }
.filter-chip.is-active, .filter-chip:hover { border-color: var(--brown); color: #fff; background: var(--brown); }
.catalog-products-grid, .variant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.catalog-product-card, .variant-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.catalog-product-card > a, .catalog-product-card img, .variant-card img { display: block; width: 100%; }
.catalog-product-card > a { height: 240px; background: var(--paper-soft); }
.catalog-product-card img { height: 100%; object-fit: cover; }
.catalog-product-card > div, .variant-card > div { padding: 20px; }
.catalog-product-card h2, .variant-card h3 { margin: 0 0 8px; font-size: 22px; }
.catalog-product-card p { color: var(--muted); }
.catalog-card-description { min-height: 66px; margin-bottom: 14px; line-height: 1.5; }
.related-material-visual { min-height: 220px; display: grid; place-content: center; gap: 8px; padding: 28px; text-align: center; color: #fdfbf7; background: radial-gradient(circle at 76% 22%, rgba(225, 188, 119, .38), transparent 23%), linear-gradient(135deg, #283a32 0%, #466354 52%, #26382f 100%); }
.related-material-card:nth-child(even) .related-material-visual { background: radial-gradient(circle at 25% 18%, rgba(244, 216, 175, .48), transparent 21%), linear-gradient(135deg, #785e48 0%, #a77a52 52%, #654d3e 100%); }
.related-material-visual span { display: inline-flex; justify-content: center; align-items: center; width: 76px; height: 76px; margin: 0 auto 6px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; font-size: 17px; font-weight: 800; }
.related-material-visual strong { font-size: 20px; line-height: 1; text-transform: uppercase; letter-spacing: .07em; }
.related-material-visual.detail-visual { min-height: 100%; border-radius: 24px; }
.support-table { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.support-table-head, .support-table-row { display: grid; grid-template-columns: 1.15fr 1.6fr 1fr auto; align-items: center; gap: 24px; padding: 20px 24px; }
.support-table-head { background: var(--paper-soft); color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.support-table-row + .support-table-row { border-top: 1px solid var(--line); }
.support-table-row strong { font-size: 19px; }
.support-table-row span { color: var(--muted); line-height: 1.45; }
.support-table-row .btn { width: auto; white-space: nowrap; }
.support-detail-facts { display: grid; gap: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.support-detail-facts div { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; padding: 18px 20px; }
.support-detail-facts div + div { border-top: 1px solid var(--line); }
.support-detail-facts dt { color: var(--muted); font-size: 14px; font-weight: 700; }
.support-detail-facts dd { margin: 0; font-weight: 750; }
.thermopanel-card { display: flex; flex-direction: column; }
.thermopanel-card > img { display: block; width: 100%; height: 220px; object-fit: cover; }
.thermopanel-card > div { display: flex; flex: 1; flex-direction: column; }
.thermopanel-card .btn { margin-top: auto; align-self: flex-start; }
.variant-count { margin-top: auto; padding-top: 12px; color: var(--brown) !important; font-weight: 800; }
.compact-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 4px 0 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.compact-specs div { display: grid; gap: 3px; }
.compact-specs dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.compact-specs dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 800; }
.variant-card { display: grid; grid-template-columns: 145px 1fr; align-items: stretch; }
.variant-card img { height: 100%; min-height: 170px; object-fit: cover; }
.variant-card > div { display: flex; flex-direction: column; }
.variant-card .btn { width: auto; margin-top: auto; align-self: flex-start; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid img { width: 100%; height: 260px; object-fit: cover; border-radius: var(--radius); }
.selected-product { margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius); background: #f1e9df; color: var(--graphite); font-size: 14px; font-weight: 700; }
.consent-check { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; color: var(--muted); font-size: 13px; line-height: 1.45; cursor: pointer; }
.consent-check input { width: 18px; height: 18px; flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--brown); }
.consent-check a { color: var(--ink); text-decoration: underline; }
.quote-panel .selected-product {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}
.quote-panel .consent-check {
  color: rgba(255, 255, 255, 0.78);
}
.quote-panel .consent-check a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  text-underline-offset: 3px;
}
.quote-panel .consent-check input {
  border-color: rgba(255, 255, 255, 0.8);
}
.quote-panel .form-note {
  color: rgba(255, 255, 255, 0.74);
}

.contact-choice {
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.contact-choice-title {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.contact-choice-product {
  margin: 6px 0 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.45;
}

.contact-choice-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-choice-actions .btn {
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
}
.product-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.product-specs div { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.product-specs dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.product-specs dd { margin: 8px 0 0; font-weight: 800; }

.material-detail-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.collection-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.collection-image {
  width: 100%;
  height: 188px;
  object-fit: cover;
  background: var(--paper-soft);
}

.collection-card-body {
  display: grid;
  align-content: space-between;
  min-height: 190px;
  padding: 22px 26px 26px;
}

.collection-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

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

.collection-card strong {
  margin-top: 24px;
  color: var(--brown);
  font-size: 18px;
}

.contact-soon {
  color: var(--muted);
  font-weight: 700;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
}

.form-status {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  font-weight: 700;
}

.form-status-success {
  color: #165d43;
  background: #e9f7ef;
  border: 1px solid #a9dfbf;
}

.form-status-error {
  color: #8a3028;
  background: #fff0ee;
  border: 1px solid #f0b8b2;
}

.form-submit-status {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 700;
}

.form-submit-status.is-success {
  color: #dff8e9;
  background: rgba(47, 125, 89, 0.45);
}

.form-submit-status.is-error {
  color: #ffe5e0;
  background: rgba(168, 61, 50, 0.45);
}

.contact-form .form-submit-status {
  color: var(--ink);
  background: #f1e9df;
}

.contact-form .form-submit-status.is-success {
  color: #165d43;
  background: #e9f7ef;
}

.contact-form .form-submit-status.is-error {
  color: #8a3028;
  background: #fff0ee;
}

.material-advice {
  display: grid;
  grid-template-columns: 0.8fr 1fr auto;
  gap: 32px;
  align-items: center;
}

.material-advice h2 {
  margin: 0;
}

.material-advice ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.quote-section {
  color: #fff;
  background: var(--graphite);
}

.quote-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
  gap: 44px;
  align-items: start;
}

.quote-section .section-kicker,
.quote-section .section-lead {
  color: rgba(255, 255, 255, 0.76);
}

.quote-panel,
.contact-form {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

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

.field {
  display: grid;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  color: inherit;
  font-size: 13px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid rgba(229, 221, 210, 0.9);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  font: 500 15px/1.35 Inter, Arial, sans-serif;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.form-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

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

.faq-item {
  padding: 24px;
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.contacts-grid-single { grid-template-columns: minmax(0, 760px); }

.lead-modal-open { overflow: hidden; }
.lead-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; overflow-y: auto; background: rgba(26, 23, 20, 0.66); }
.lead-modal[hidden] { display: none; }
.lead-modal-card { position: relative; width: min(100%, 700px); margin: auto; padding: 34px; border-radius: 24px; color: var(--ink); background: #f7f3ed; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32); }
.lead-modal-card h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); }
.lead-modal-card .section-kicker { margin: 0 0 8px; }
.lead-modal-product { margin: 8px 0 22px; color: var(--muted); font-weight: 700; }
.lead-modal-close { position: absolute; top: 14px; right: 16px; display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; color: var(--ink); background: #e9e1d6; font-size: 28px; line-height: 1; cursor: pointer; }
.lead-modal-card .contact-choice { border-color: var(--line); background: #fff; }
.lead-modal-card .contact-choice-title { color: var(--ink); }
.lead-modal-card .consent-check { color: var(--muted); }
.lead-modal-card .consent-check { align-items: center; }
.lead-modal-card .consent-check input { margin: 0; }
.lead-modal-card .consent-check a { color: var(--ink); }
.lead-modal-card .btn-callback { color: var(--graphite); border-color: var(--line); }
.lead-modal-card .btn-callback:hover { color: #fff; background: var(--brown); }
.lead-modal-card .form-submit-status { color: var(--ink); background: #efe8df; }
.lead-modal-card .form-submit-status.is-success { color: #165d43; background: #e9f7ef; }
.lead-modal-card .form-submit-status.is-error { color: #8a3028; background: #fff0ee; }

.contact-list {
  display: grid;
  gap: 14px;
  margin: 30px 0;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row span {
  color: var(--muted);
}

.contact-row strong {
  text-align: right;
}

.contacts .contact-form {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.contacts .form-note {
  color: var(--muted);
}

.legal-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 36px rgba(42, 36, 29, 0.06);
}

.legal-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  object-fit: cover;
}

.legal-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
}

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

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.72);
  background: #222522;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

/* Keep one clear action in the header; the main calculation CTA stays on the first screen. */
@media (min-width: 1121px) {
  .site-header .phone-link,
  .site-header .btn-primary,
  .site-header .btn-avito {
    display: none;
  }

  .main-nav {
    margin-left: auto;
  }
}

/* The complete header needs to fit inside a standard laptop width. */
@media (max-width: 1500px) and (min-width: 1121px) {
  .site-header .phone-link,
  .site-header .btn-avito {
    display: none;
  }
}

@media (max-width: 1120px) {
  .header-inner {
    position: relative;
    justify-content: space-between;
  }

  .header-actions {
    margin-left: auto;
  }

  .site-header .phone-link,
  .site-header .header-actions .btn {
    display: none;
  }

  .site-header .header-socials {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    position: absolute;
    top: 15px;
    right: 0;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 12px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    font: 800 13px/1 Inter, Arial, sans-serif;
    cursor: pointer;
  }

  .menu-toggle-icon,
  .menu-toggle-icon::before,
  .menu-toggle-icon::after {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: var(--graphite);
    content: "";
  }

  .menu-toggle-icon {
    position: relative;
  }

  .menu-toggle-icon::before,
  .menu-toggle-icon::after {
    position: absolute;
    left: 0;
  }

  .menu-toggle-icon::before {
    top: -6px;
  }

  .menu-toggle-icon::after {
    top: 6px;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 12px 16px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    box-shadow: 0 18px 36px rgba(42, 36, 29, 0.12);
  }

  .main-nav.is-open {
    display: block;
  }

  .menu-state:checked ~ .main-nav {
    display: block;
  }

  .main-nav ul {
    display: grid;
    gap: 0;
  }

  .main-nav li + li {
    border-top: 1px solid var(--line);
  }

  .main-nav a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
  }

  .mobile-nav-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 18px 0 4px;
  }

  .mobile-nav-actions .header-social {
    width: 44px;
    height: 44px;
  }

  .mobile-nav-actions .header-social img {
    width: 31px;
    height: 31px;
  }

  .mobile-nav-actions .header-social-avito img {
    width: 35px;
    height: 35px;
  }

  .mobile-nav-actions .btn {
    position: relative;
    flex: 0 1 170px;
    flex-direction: row;
    gap: 9px;
    width: 170px;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid;
    border-radius: 999px;
    box-shadow: none;
    font-size: 14px;
    text-align: center;
    white-space: nowrap;
  }

  .mobile-nav-actions .btn::before {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-nav-actions .btn-whatsapp {
    color: #175b3d;
    border-color: #b8dfca;
    background: #eaf7ef;
  }

  .mobile-nav-actions .btn-whatsapp::before {
    content: "W";
    background: #2f7d59;
  }

  .mobile-nav-actions .btn-avito {
    color: #2854a1;
    border-color: #c9d8fb;
    background: #eef4ff;
  }

  .mobile-nav-actions .btn-avito::before {
    content: "A";
    background: #4a80f0;
  }

  .material-card .btn {
    align-self: center;
    width: auto;
    min-width: 210px;
    margin: 20px auto 0;
    padding: 0 22px;
  }

  .materials-grid,
  .usage-grid,
  .suppliers-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .catalog-products-grid, .variant-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .material-advice {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .contact-choice-actions { grid-template-columns: 1fr; }
  body.admin-bar .site-header {
    top: 46px;
  }

  .header-inner {
    gap: 12px;
    min-height: 72px;
  }

  .phone-link {
    display: none;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .header-actions .btn-avito {
    display: none;
  }

  .header-actions .btn-whatsapp {
    display: none;
  }


  .hero {
    min-height: auto;
    padding: 78px 0 36px;
  }

  .hero .container {
    display: block;
    min-height: 0;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(28, 25, 22, 0.88) 0%, rgba(28, 25, 22, 0.64) 58%, rgba(28, 25, 22, 0.3) 100%),
      url("assets/images/hero-facade-house.png") center / cover no-repeat;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-triggers,
  .benefits-grid,
  .faq-grid,
  .contacts-grid,
  .quote-wrap,
  .testimonials-grid,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-triggers {
    margin-top: 42px;
  }

  .section {
    padding: 48px 0;
  }

  .section-head {
    display: block;
  }

  .section-lead {
    margin-top: 14px;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

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

  .brand {
    min-width: 0;
  }

  .brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-text span {
    display: none;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .btn {
    width: min(100%, 250px);
  }

  .mobile-nav-actions .btn {
    width: 170px;
  }

  .header-actions {
    gap: 8px;
  }

  .header-actions .btn-whatsapp {
    width: auto;
    min-height: 42px;
    padding: 0 13px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  .hero {
    padding: 52px 0 28px;
  }

  .hero-subtitle {
    margin-top: 18px;
    font-size: 16px;
  }

  .hero-triggers {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 28px;
  }

  .trigger-card {
    min-height: 84px;
    padding: 14px;
    font-size: 13px;
  }

  .hero-actions,
  .form-grid,
  .materials-grid,
  .usage-grid,
  .suppliers-grid,
  .testimonials-grid,
  .collection-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 8px;
  }

  .step {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 0;
    padding: 12px 14px;
  }

  .step-number {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 10px;
    font-size: 14px;
  }

  .step p {
    line-height: 1.35;
  }

  .benefits-grid {
    gap: 8px;
  }

  .benefit-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 12px;
    align-content: center;
    min-height: 0;
    padding: 14px;
  }

  .benefit-card .benefit-number {
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 10px;
    font-size: 13px;
  }

  .benefit-card h3 {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.2;
  }

  .benefit-card p {
    font-size: 13px;
    line-height: 1.35;
  }

  .suppliers-grid {
    gap: 8px;
  }

  .supplier-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 12px;
    align-content: center;
    min-height: 0;
    padding: 14px;
  }

  .supplier-logo {
    grid-row: 1 / span 2;
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 10px;
    font-size: 13px;
  }

  .supplier-card h3 {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.2;
  }

  .supplier-card p {
    font-size: 13px;
    line-height: 1.35;
  }

  .catalog-products-grid, .variant-grid, .gallery-grid { grid-template-columns: 1fr; }
  .product-specs { grid-template-columns: 1fr; }
  .support-table-head { display: none; }
  .support-table-row { grid-template-columns: 1fr; gap: 9px; padding: 20px; }
  .support-table-row .btn { margin-top: 6px; justify-self: start; }
  .variant-card { grid-template-columns: 120px 1fr; }
  .gallery-grid img { height: 220px; }

  .materials-grid,
  .usage-grid,
  .suppliers-grid,
  .benefits-grid,
  .faq-grid,
  .testimonials-grid,
  .collection-grid {
    gap: 14px;
  }

  .section {
    padding: 42px 0;
  }

  .material-image-link {
    height: 190px;
  }

  .usage-slider {
    height: 190px;
  }

  .page-hero {
    padding: 46px 0;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .page-hero p {
    font-size: 16px;
  }

  .catalog-note,
  .testimonial-card {
    padding: 20px;
  }

  .collection-card-body {
    padding: 20px;
  }

  .quote-panel,
  .contact-form {
    padding: 20px;
  }

  .contact-row {
    display: grid;
    gap: 3px;
  }

  .contact-row strong {
    text-align: left;
  }

  .footer-inner {
    display: grid;
    gap: 16px;
  }

  .site-footer {
    padding: 28px 0;
  }

  .footer-inner p {
    font-size: 14px;
    line-height: 1.45;
  }

  .footer-brand,
  .footer-legal {
    display: grid;
    gap: 4px;
  }

  .footer-brand {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
  }

  .footer-legal {
    color: rgba(255, 255, 255, 0.64);
  }

  .legal-card {
    grid-template-columns: 1fr;
  }
}
