:root {
  --paper: #fbf8f1;
  --paper-soft: #f2ede3;
  --paper-warm: #efe5d5;
  --ink: #17211d;
  --muted: #66706a;
  --line: #ddd3c2;
  --green: #22352d;
  --green-2: #304d3f;
  --bronze: #b6783e;
  --bronze-dark: #7f532f;
  --wood: #8d6442;
  --white: #ffffff;
  --shadow: 0 18px 55px rgba(33, 40, 32, 0.13);
  --shadow-soft: 0 10px 28px rgba(33, 40, 32, 0.09);
  --radius: 8px;
  --container: 1220px;
  --header-height: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.section {
  padding: 106px 0;
}

.section-muted {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0)),
    var(--paper-soft);
}

.section-dark {
  color: var(--white);
  background: var(--green);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading h2,
.guarantee h2,
.estimate h2,
.contacts h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(2rem, 4.2vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.guarantee__content p:not(.eyebrow),
.estimate__content p:not(.eyebrow),
.contacts__content p:not(.eyebrow) {
  margin: 18px 0 0;
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.section-dark .section-heading p:not(.eyebrow),
.section-dark .guarantee__content p:not(.eyebrow),
.section-dark .contacts__content p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--bronze);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--bronze);
  border-radius: 999px;
  background: var(--bronze);
  color: var(--white);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--bronze-dark);
  background: var(--bronze-dark);
  box-shadow: 0 12px 28px rgba(127, 83, 47, 0.22);
  outline: none;
}

.button--small {
  min-height: 42px;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  backdrop-filter: blur(12px);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.16);
}

.button--wide {
  width: 100%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(24, 34, 30, 0.68);
  color: var(--white);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(35, 53, 45, 0.12);
  background: rgba(251, 248, 241, 0.92);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(23, 33, 29, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.5vw, 22px);
  height: 100%;
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--bronze);
  font-size: 1.2rem;
  font-weight: 800;
  overflow: hidden;
  padding: 4px;
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__name,
.brand__caption {
  display: block;
}

.brand__name {
  font-size: 1.05rem;
  font-weight: 800;
}

.brand__caption {
  color: currentColor;
  opacity: 0.62;
  font-size: 0.72rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.15vw, 20px);
  min-width: 0;
  font-size: 0.9rem;
}

.nav a,
.header-link,
.header-phone,
.mobile-menu a,
.footer a {
  transition: color 160ms ease, opacity 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav a {
  white-space: nowrap;
}

.nav a:hover,
.header-link:hover,
.header-phone:hover,
.mobile-menu a:hover,
.footer a:hover {
  color: var(--bronze);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
}

.header-phone {
  font-weight: 750;
  white-space: nowrap;
}

.header-link {
  opacity: 0.78;
}

.header-actions .social-link {
  min-height: 36px;
  padding: 5px 8px 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 1;
}

.site-header.is-scrolled .header-actions .social-link {
  border-color: rgba(35, 53, 45, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(182, 120, 62, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: currentColor;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

body.nav-open .burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .burger span:nth-child(2) {
  opacity: 0;
}

body.nav-open .burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: min(850px, calc(100svh - 22px));
  padding: calc(var(--header-height) + 62px) 0 72px;
  overflow: hidden;
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

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

.hero__overlay {
  background:
    linear-gradient(90deg, rgba(24, 34, 30, 0.9) 0%, rgba(24, 34, 30, 0.72) 34%, rgba(24, 34, 30, 0.16) 74%),
    linear-gradient(180deg, rgba(24, 34, 30, 0.62), rgba(24, 34, 30, 0.2) 45%, rgba(24, 34, 30, 0.62));
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  align-items: center;
  gap: clamp(34px, 6vw, 90px);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.15rem, 4.2vw, 4.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  max-width: 700px;
}

.hero-offer {
  position: relative;
  max-width: 690px;
  margin-top: 24px;
  padding: 20px 22px 20px 86px;
  border: 1px solid rgba(241, 194, 143, 0.55);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(182, 120, 62, 0.32), rgba(255, 255, 255, 0.09)),
    rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.hero-offer::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 24px;
  width: 38px;
  height: 38px;
  border: 2px solid #f1c28f;
  border-radius: 50%;
  background: rgba(17, 26, 23, 0.18);
}

.hero-offer::after {
  content: "";
  position: absolute;
  left: 38px;
  top: 35px;
  width: 12px;
  height: 20px;
  border-right: 3px solid #f1c28f;
  border-bottom: 3px solid #f1c28f;
  transform: rotate(42deg);
}

.hero-offer span,
.hero-offer strong,
.hero-offer p {
  display: block;
}

.hero-offer span {
  color: #f1c28f;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-offer strong {
  margin-top: 4px;
  color: var(--white);
  font-size: clamp(1.06rem, 1.8vw, 1.3rem);
  line-height: 1.18;
}

.hero-offer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.hero-benefits span,
.estimate-points span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
}

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

.lead-form,
.estimate-form {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(251, 248, 241, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.lead-form {
  padding: 28px;
  backdrop-filter: blur(18px);
}

.lead-form__title {
  margin: 0;
  color: var(--green);
  font-size: 1.35rem;
  font-weight: 800;
}

.lead-form__text {
  margin: 8px 0 22px;
  color: var(--muted);
  font-size: 0.96rem;
}

.form {
  display: grid;
  gap: 14px;
}

.form-offer {
  position: relative;
  margin: 0 0 8px;
  padding: 18px 18px 18px 64px;
  border: 1px solid rgba(182, 120, 62, 0.48);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(182, 120, 62, 0.2), rgba(34, 53, 45, 0.07)),
    #fffaf1;
  color: var(--green);
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.25;
  box-shadow: 0 12px 30px rgba(182, 120, 62, 0.12);
}

.form-offer::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bronze);
  transform: translateY(-50%);
}

.form-offer::after {
  content: "";
  position: absolute;
  left: 29px;
  top: 50%;
  width: 9px;
  height: 15px;
  border-right: 3px solid var(--white);
  border-bottom: 3px solid var(--white);
  transform: translateY(-62%) rotate(42deg);
}

.form-offer span {
  display: block;
  margin-bottom: 5px;
  color: var(--bronze-dark);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

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

.form label > span {
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 760;
}

.form label > span small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.form input[type="text"],
.form input[type="tel"],
.form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d7cdbb;
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  padding: 0.82rem 0.9rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.form textarea {
  min-height: 92px;
  resize: vertical;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--bronze);
  box-shadow: 0 0 0 4px rgba(182, 120, 62, 0.13);
}

.form input.is-error,
.form textarea.is-error {
  border-color: #b34b3e;
  background: #fff7f5;
}

.form-consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px !important;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.form-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--bronze);
}

.form-consent a {
  color: var(--bronze-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-status {
  min-height: 1.35em;
  margin: 0;
  color: var(--green);
  font-size: 0.88rem;
  font-weight: 700;
}

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

.trust-band {
  position: relative;
  z-index: 2;
  padding: 28px 0;
  background: var(--green);
  color: var(--white);
}

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

.trust-grid div {
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  color: #f1c28f;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1;
}

.trust-grid span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

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

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

.service-card,
.supervision-item,
.material-card,
.portfolio-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-soft);
}

.service-card {
  display: flex;
  min-height: 100%;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(221, 211, 194, 0.8);
  padding: 0;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(221, 211, 194, 0.8);
  border-width: 1px 0 0;
}

.service-card:hover,
.supervision-item:hover,
.material-card:hover,
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card__body span {
  color: var(--bronze);
  font-weight: 800;
}

.service-card h3,
.supervision-item h3,
.material-card h3,
.portfolio-card h3 {
  margin: 18px 0 0;
  color: var(--green);
  font-size: 1.25rem;
  line-height: 1.16;
}

.service-card p,
.supervision-item p,
.material-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.service-card--accent {
  background: linear-gradient(145deg, var(--green), #395c4a);
  color: var(--white);
}

.service-card--accent h3,
.service-card--accent p {
  color: var(--white);
}

.service-card--accent .service-card__body span {
  color: #f1c28f;
}

.service-card--accent .button {
  width: fit-content;
  margin-top: 22px;
  align-self: flex-start;
  padding-right: 1.15rem;
  padding-left: 1.15rem;
}

.material-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -12px 0 26px;
}

.filter-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--green);
  padding: 0.55rem 1rem;
  font-weight: 740;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

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

.material-card {
  scroll-margin-top: 96px;
  min-height: 148px;
  padding: 20px;
  border: 1px solid rgba(221, 211, 194, 0.92);
  transition: opacity 160ms ease, transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.material-card--media {
  display: grid;
  grid-column: span 2;
  grid-template-columns: minmax(0, 1fr) 224px;
  gap: 28px;
  align-items: start;
  padding: 16px;
}

.material-card__content {
  min-width: 0;
}

.material-card__image {
  width: 224px;
  height: 224px;
  border-radius: 8px;
  object-fit: cover;
}

.material-card__desktop-text {
  display: inline;
}

.material-card.is-hidden {
  display: none;
}

.material-card.is-anchor-highlighted {
  border-color: rgba(182, 120, 62, 0.78);
  background: linear-gradient(180deg, rgba(255, 251, 243, 0.96), rgba(255, 255, 255, 0.74));
  box-shadow: 0 18px 44px rgba(127, 83, 47, 0.22), 0 0 0 4px rgba(182, 120, 62, 0.18);
}

.material-card.is-anchor-pulsing {
  animation: materialAnchorPulse 2200ms ease-out 1;
}

@keyframes materialAnchorPulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 0 0 0 rgba(182, 120, 62, 0.34), 0 18px 44px rgba(127, 83, 47, 0.18);
  }

  34% {
    transform: translateY(-6px);
    box-shadow: 0 0 0 8px rgba(182, 120, 62, 0.2), 0 22px 52px rgba(127, 83, 47, 0.24);
  }

  100% {
    transform: translateY(0);
    box-shadow: 0 18px 44px rgba(127, 83, 47, 0.22), 0 0 0 4px rgba(182, 120, 62, 0.18);
  }
}

.material-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.material-card p {
  font-size: 0.92rem;
}

.material-card__price {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(80, 104, 87, 0.18);
}

.material-card__price-main {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
}

.material-card__price-main span {
  color: var(--bronze-dark);
  font-size: 0.78rem;
  font-weight: 820;
  line-height: 1.25;
  text-transform: uppercase;
}

.material-card__price-main strong {
  color: var(--green);
  font-size: 1.38rem;
  line-height: 1;
  white-space: nowrap;
}

.material-card__price-details {
  display: grid;
  gap: 8px;
  margin: 0;
}

.material-card__price-details div {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(247, 243, 236, 0.82);
}

.material-card__price-details dt,
.material-card__price-details dd {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.25;
}

.material-card__price-details dt {
  color: var(--muted);
}

.material-card__price-details dd {
  color: var(--green);
  font-weight: 800;
  white-space: nowrap;
}

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

.portfolio-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(221, 211, 194, 0.78);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.portfolio-card:focus-visible {
  outline: 4px solid rgba(182, 120, 62, 0.28);
  outline-offset: 4px;
}

.portfolio-card img {
  width: 100%;
  aspect-ratio: 1.488 / 1;
  object-fit: cover;
  transition: transform 450ms ease;
}

.portfolio-card:hover img {
  transform: scale(1.035);
}

.portfolio-card__body {
  padding: 18px;
  background: var(--white);
}

.portfolio-card__body p,
.portfolio-card__body span {
  margin: 0;
  color: var(--bronze-dark);
  font-size: 0.84rem;
  font-weight: 760;
}

.portfolio-card__body h3 {
  margin: 8px 0 10px;
}

.portfolio-card__body span {
  color: var(--muted);
  font-weight: 650;
}

.portfolio-card__note {
  margin-top: 14px !important;
  color: var(--muted) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.45;
}

.portfolio-card__note strong {
  color: var(--green);
  font-weight: 800;
}

.portfolio-card__note strong:nth-of-type(2) {
  display: block;
  margin-top: 8px;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.steps-list li {
  min-height: 190px;
  padding: 20px;
  border: 1px solid rgba(221, 211, 194, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.steps-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 32px;
  border-radius: 999px;
  background: rgba(182, 120, 62, 0.13);
  color: var(--bronze-dark);
  font-weight: 800;
}

.steps-list strong {
  display: block;
  margin-top: 18px;
  color: var(--green);
  font-size: 1.04rem;
  line-height: 1.2;
}

.steps-list p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.guarantee {
  padding: 96px 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(182, 120, 62, 0.22), transparent 34%),
    linear-gradient(135deg, var(--green), #15231e 72%);
}

.guarantee__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
}

.guarantee__content h2 {
  max-width: 720px;
}

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

.guarantee-list div {
  min-height: 154px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.guarantee-list span {
  display: block;
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(182, 120, 62, 0.22);
  border: 1px solid rgba(241, 194, 143, 0.46);
}

.guarantee-list span::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  width: 10px;
  height: 18px;
  border-right: 3px solid #f1c28f;
  border-bottom: 3px solid #f1c28f;
  transform: rotate(42deg);
}

.guarantee-list p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
}

.supervision {
  position: relative;
}

.supervision-grid {
  grid-template-columns: repeat(3, 1fr);
}

.supervision-item {
  min-height: 182px;
  padding: 24px;
  border: 1px solid rgba(221, 211, 194, 0.78);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.supervision-item h3 {
  margin-top: 0;
}

.estimate {
  padding: 96px 0;
}

.estimate__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: clamp(34px, 7vw, 94px);
  align-items: center;
}

.estimate-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.estimate-points span {
  border-color: rgba(34, 53, 45, 0.16);
  background: rgba(34, 53, 45, 0.08);
  color: var(--green);
}

.estimate-form {
  padding: 30px;
  border-color: rgba(221, 211, 194, 0.9);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: start;
}

.faq-layout .section-heading {
  position: sticky;
  top: calc(var(--header-height) + 26px);
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid rgba(221, 211, 194, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.faq-item button {
  position: relative;
  width: 100%;
  min-height: 66px;
  border: 0;
  background: transparent;
  color: var(--green);
  padding: 18px 54px 18px 20px;
  text-align: left;
  font-weight: 800;
}

.faq-item button::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(182, 120, 62, 0.12);
  color: var(--bronze-dark);
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  transition: transform 160ms ease;
}

.faq-item button[aria-expanded="true"]::after {
  content: "–";
}

.faq-panel p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.contacts {
  padding: 96px 0;
  background:
    linear-gradient(135deg, rgba(182, 120, 62, 0.14), transparent 36%),
    var(--green);
}

.contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: clamp(34px, 7vw, 90px);
  align-items: center;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.contact-list a,
.contacts address {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  padding: 14px 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.social-link--telegram .social-icon {
  background: #229ed9;
}

.social-link--telegram .social-icon::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 13px solid var(--white);
  transform: translateX(1px) rotate(-16deg);
}

.social-link--max .social-icon {
  border-radius: 8px;
  background: #2a7fff;
}

.social-link--max .social-icon::before {
  content: "MAX";
  color: var(--white);
  font-size: 0.47rem;
  font-weight: 900;
}

.social-link--compact .social-icon {
  width: 24px;
  height: 24px;
}

.contacts address {
  display: block;
  font-style: normal;
}

.map-placeholder {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: block;
  padding: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

.map-office-label {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(182, 120, 62, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--green);
  box-shadow: 0 14px 34px rgba(23, 33, 29, 0.18);
  pointer-events: none;
  transform: translate(-50%, -118%);
  z-index: 1;
}

.map-office-label span {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 8px;
  background: var(--bronze);
  transform: rotate(-45deg);
}

.map-office-label span::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--white);
}

.map-office-label strong {
  font-size: 0.95rem;
  white-space: nowrap;
}

.footer {
  padding: 54px 0;
  background: #111a17;
  color: rgba(255, 255, 255, 0.78);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 0.7fr 0.9fr;
  gap: 38px;
}

.brand--footer {
  color: var(--white);
}

.footer p {
  max-width: 430px;
  margin: 18px 0 0;
}

.footer__links {
  display: grid;
  gap: 9px;
  align-content: start;
}

.footer__links h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 1rem;
}

.portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.portfolio-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.portfolio-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 22, 19, 0.78);
  backdrop-filter: blur(8px);
}

.portfolio-modal__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  width: min(1180px, 100%);
  max-height: min(760px, calc(100svh - 40px));
  overflow: auto;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.portfolio-modal__dialog img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.portfolio-modal__content {
  padding: 34px;
}

.portfolio-modal__content p:first-child {
  margin: 0 0 12px;
  color: var(--bronze-dark);
  font-weight: 800;
}

.portfolio-modal__content h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.portfolio-modal__content dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 24px 0;
}

.portfolio-modal__content dl div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
}

.portfolio-modal__content dt {
  color: var(--muted);
  font-size: 0.82rem;
}

.portfolio-modal__content dd {
  margin: 4px 0 0;
  color: var(--green);
  font-weight: 800;
}

.portfolio-modal__content p:last-child {
  margin: 0;
  color: var(--muted);
}

.modal-detail {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.modal-detail h3 {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 1rem;
}

.modal-detail p {
  margin: 0;
  color: var(--muted);
}

.portfolio-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  background: rgba(17, 26, 23, 0.62);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
}

.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(680px, calc(100% - 40px));
  padding: 16px;
  border: 1px solid rgba(221, 211, 194, 0.94);
  border-radius: var(--radius);
  background: rgba(251, 248, 241, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

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

.cookie-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.cookie-banner a {
  color: var(--bronze-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.section-animate {
  opacity: 1;
  transform: translateY(10px);
  transition: transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-animate.is-visible {
  transform: translateY(0);
}

@media (max-width: 1280px) {
  .nav,
  .header-actions .header-link {
    display: none;
  }

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

  .header-actions .button {
    display: none;
  }

  .burger {
    display: block;
  }

  .mobile-menu {
    position: fixed;
    top: var(--header-height);
    right: 20px;
    left: 20px;
    display: grid;
    gap: 20px;
    max-height: calc(100svh - var(--header-height) - 24px);
    overflow: auto;
    padding: 22px;
    border: 1px solid rgba(221, 211, 194, 0.9);
    border-radius: var(--radius);
    background: rgba(251, 248, 241, 0.98);
    color: var(--ink);
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.nav-open .mobile-menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu nav,
  .mobile-menu__contacts {
    display: grid;
    gap: 12px;
  }

  .mobile-menu nav a,
  .mobile-menu__contacts a {
    min-height: 42px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(221, 211, 194, 0.72);
  }

  .hero__grid,
  .estimate__grid,
  .contacts__grid,
  .guarantee__grid {
    grid-template-columns: 1fr;
  }

  .hero__grid {
    align-items: start;
  }

  .lead-form,
  .estimate-form {
    max-width: 560px;
  }

  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 920px) {
  .section {
    padding: 78px 0;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 42px) 0 58px;
  }

  .hero__overlay {
    background:
      linear-gradient(180deg, rgba(24, 34, 30, 0.92) 0%, rgba(24, 34, 30, 0.74) 52%, rgba(24, 34, 30, 0.7)),
      rgba(24, 34, 30, 0.22);
  }

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

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-layout .section-heading {
    position: static;
  }

  .portfolio-modal__dialog {
    grid-template-columns: 1fr;
  }

  .portfolio-modal__dialog img {
    min-height: 320px;
    max-height: 46svh;
  }

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

@media (max-width: 720px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .header-phone {
    display: none;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .brand__caption {
    display: none;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8.2vw, 2.65rem);
  }

  .hero-offer {
    padding: 18px 18px 18px 70px;
  }

  .hero-offer::before {
    left: 18px;
  }

  .hero-offer::after {
    left: 32px;
  }

  .form-offer {
    padding: 16px 16px 16px 58px;
  }

  .hero-benefits span,
  .estimate-points span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero__cta {
    display: grid;
  }

  .hero .lead-form {
    display: none;
  }

  .estimate-form {
    padding: 22px;
  }

  .trust-grid,
  .service-grid,
  .supervision-grid,
  .material-grid,
  .portfolio-grid,
  .steps-list,
  .guarantee-list,
  .contact-list,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .trust-grid div,
  .steps-list li,
  .service-card,
  .supervision-item {
    min-height: auto;
  }

  .material-card {
    min-height: 118px;
  }

  .material-card--media {
    grid-column: auto;
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 14px;
  }

  .material-card__image {
    width: 100%;
    height: 208px;
    order: -1;
  }

  .material-card__desktop-text {
    display: none;
  }

  .material-card__price-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .material-card__price-main strong {
    font-size: 1.32rem;
  }

  .material-card__price-details div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .guarantee,
  .contacts,
  .estimate {
    padding: 72px 0;
  }

  .map-placeholder {
    min-height: 310px;
  }

  .map-placeholder iframe {
    min-height: 310px;
  }

  .portfolio-modal {
    padding: 12px;
  }

  .portfolio-modal__content {
    padding: 24px;
  }

  .portfolio-modal__content dl {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
  }

  .cookie-banner .button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  body {
    font-size: 15px;
  }

  .section-heading h2,
  .guarantee h2,
  .estimate h2,
  .contacts h2 {
    font-size: clamp(2rem, 12vw, 2.8rem);
  }

  .mobile-menu {
    right: 12px;
    left: 12px;
  }

  .hero {
    padding-top: calc(var(--header-height) + 30px);
  }

  .button {
    min-height: 48px;
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .filter-button {
    flex: 1 1 calc(50% - 10px);
  }

  .portfolio-card__body,
  .service-card,
  .supervision-item,
  .steps-list li,
  .material-card {
    padding: 18px;
  }

  .material-card--media {
    padding: 14px;
  }

  .material-card__image {
    height: 192px;
  }
}

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

  .reveal,
  .section-animate {
    opacity: 1;
    transform: none;
  }

  .material-card.is-anchor-pulsing {
    animation: none;
  }
}
