:root {
  --paper: #f6f1e8;
  --ink: #151511;
  --muted: #6b645b;
  --line: rgba(21, 21, 17, 0.16);
  --graphite: #20201d;
  --wood: #a5794f;
  --stone: #c9bfb0;
  --white: #ffffff;
  --radius: 22px;
  --font-main: "Segoe UI Light", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-main);
  line-height: 1.45;
}

body.is-loading {
  overflow: hidden;
}

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

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

.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--white);
  transition: opacity 1100ms ease, visibility 1100ms ease;
}

.intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.intro.is-leaving::after {
  opacity: 1;
}

.intro.is-leaving .intro__video {
  opacity: 0;
  visibility: hidden;
}

.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__video {
  width: min(520px, 72vw);
  height: auto;
  max-height: 52vh;
  object-fit: contain;
  opacity: 1;
  transition: opacity 220ms ease;
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 24px clamp(18px, 4vw, 64px);
  color: var(--white);
  transition: background 220ms ease, color 220ms ease, padding 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  padding-block: 14px;
  color: var(--ink);
  background: rgba(246, 241, 232, 0.82);
  border-bottom: 1px solid rgba(21, 21, 17, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 190px;
  height: 62px;
}

.brand__logo {
  display: block;
  flex: 0 0 190px;
  width: 190px;
  height: 62px;
  background-image: url("logo/4n4.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.site-header.is-scrolled .brand__logo {
  background-image: url("logo/4n3.png");
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  font-size: 14px;
  font-weight: 600;
}

.header-cta {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 130px clamp(18px, 4vw, 64px) 72px;
  overflow: hidden;
  color: var(--white);
  background: var(--graphite);
}

.hero__scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--graphite);
}

.hero__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.68), rgba(0,0,0,0.25) 58%, rgba(0,0,0,0.45)),
    linear-gradient(180deg, rgba(0,0,0,0.36), rgba(0,0,0,0.08) 42%, rgba(0,0,0,0.34));
}

.hero__corner-logo {
  position: absolute;
  bottom: clamp(18px, 3vw, 34px);
  right: clamp(14px, 2.2vw, 34px);
  z-index: 1;
  width: clamp(82px, 9vw, 136px);
  height: auto;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 920px;
  justify-self: center;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(48px, 6.6vw, 88px);
  line-height: 1.04;
  font-weight: 300;
  letter-spacing: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  padding: 14px 22px;
  border: 1px solid currentColor;
  cursor: pointer;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

.button--primary {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.hero .button--primary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.button--secondary {
  color: inherit;
  background: transparent;
}

.section {
  padding: clamp(78px, 10vw, 132px) clamp(18px, 4vw, 64px);
}

.intro-note {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
  min-height: clamp(420px, 34vw, 520px);
  padding-top: clamp(82px, 8vw, 112px);
  padding-bottom: clamp(82px, 8vw, 112px);
  overflow: hidden;
  background: var(--paper);
}

.intro-note__content {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.intro-note h2 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: 0;
}

.intro-note p {
  max-width: 760px;
  margin: 32px 0 0;
  padding-left: 22px;
  border-left: 1px solid rgba(165, 121, 79, 0.48);
  color: var(--muted);
  font-size: clamp(12px, 1.05vw, 15px);
  line-height: 1.75;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-note__brand {
  position: absolute;
  top: 50%;
  right: clamp(-120px, -3vw, -24px);
  z-index: 0;
  width: clamp(380px, 36vw, 560px);
  transform: translateY(-50%);
  pointer-events: none;
}

.intro-note__brand img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.22;
  mix-blend-mode: multiply;
}

.section-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: start;
  margin-bottom: clamp(34px, 5vw, 64px);
}

.section-head > span,
.section-number {
  color: var(--wood);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.section h2,
.estimate-card h2,
.lead-form h2,
.faq-block h2,
.contacts h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.06;
  font-weight: 300;
  letter-spacing: 0;
}

.section-head p,
.estimate-card p,
.faq-block p,
.contacts p {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(230px, 0.58fr) minmax(230px, 0.58fr);
  gap: 18px;
}

.project-card {
  display: block;
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: var(--stone);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(21,21,17,0.08);
  transition: transform 420ms cubic-bezier(.2,.7,.2,1), box-shadow 420ms ease;
}

.case-page {
  background: #f4f0e8;
}

.case-header {
  position: fixed;
}

.case-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--graphite);
  color: var(--white);
}

.case-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 7, 0.08) 35%, rgba(8, 8, 7, 0.72) 100%);
}

.case-hero > img {
  width: 100%;
  height: 100svh;
  display: block;
  object-fit: cover;
}

.case-hero__copy {
  position: absolute;
  z-index: 1;
  left: clamp(20px, 5vw, 76px);
  right: clamp(20px, 5vw, 76px);
  bottom: clamp(34px, 7vw, 92px);
}

.case-hero__copy span,
.case-hero__copy p {
  font-size: clamp(14px, 1.4vw, 20px);
}

.case-hero__copy h1 {
  max-width: 1050px;
  margin: 10px 0 6px;
  font-size: clamp(54px, 9vw, 138px);
  line-height: 0.92;
  font-weight: 300;
  letter-spacing: 0;
}

.case-hero__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.case-intro {
  display: grid;
  grid-template-columns: 110px minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(76px, 10vw, 150px) clamp(18px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
}

.case-index {
  color: var(--wood);
}

.case-lead {
  max-width: 900px;
  margin: 0;
  font-size: clamp(28px, 4vw, 58px);
  line-height: 1.12;
  font-weight: 300;
}

.case-meta {
  margin: 0;
}

.case-meta div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.case-meta dt {
  color: var(--muted);
}

.case-meta dd {
  margin: 0;
  text-align: right;
}

.case-plan {
  padding: clamp(76px, 9vw, 130px) clamp(18px, 5vw, 76px);
}

.case-section-head {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.8fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 42px;
}

.case-section-head span {
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1;
}

.case-section-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.case-plan > img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  background: var(--white);
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 32px);
  padding: 0 clamp(18px, 5vw, 76px) clamp(76px, 10vw, 150px);
}

.case-shot {
  margin: 0;
}

.case-shot--wide {
  grid-column: 1 / -1;
}

.case-shot img {
  width: 100%;
  aspect-ratio: 3 / 2;
  display: block;
  object-fit: cover;
  border-radius: var(--radius);
}

.case-shot figcaption {
  display: flex;
  gap: 18px;
  padding: 14px 2px 6px;
  color: var(--muted);
}

.case-shot figcaption span {
  color: var(--wood);
}

.case-next {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding: clamp(70px, 9vw, 130px) clamp(18px, 5vw, 76px);
  color: var(--white);
  background: var(--graphite);
}

.case-next p {
  max-width: 900px;
  margin: 0;
  font-size: clamp(34px, 5vw, 76px);
  line-height: 1.08;
}

.case-next .button {
  flex: 0 0 auto;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,0.66));
  pointer-events: none;
  transition: background 420ms ease;
}

.placeholder {
  position: relative;
  min-height: 430px;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(0,0,0,0.08)),
    var(--stone);
}

.placeholder img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 720ms cubic-bezier(.2,.7,.2,1), filter 420ms ease;
}

.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(21,21,17,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21,21,17,0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.26;
}

.placeholder:has(img)::before {
  display: none;
}

.placeholder span {
  position: absolute;
  right: 20px;
  bottom: 6px;
  color: rgba(21,21,17,0.28);
  font-family: var(--font-main);
  font-size: clamp(88px, 14vw, 190px);
  line-height: 0.9;
  font-weight: 300;
}

.project-card__body {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 1;
  color: var(--white);
  text-shadow: 0 1px 18px rgba(0,0,0,0.28);
  transition: transform 420ms cubic-bezier(.2,.7,.2,1);
}

.project-card__body h3 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 600;
}

.project-card__body p {
  margin: 0;
  padding-right: 54px;
  color: rgba(255,255,255,0.8);
  transition: color 300ms ease, transform 420ms ease;
}

.project-card__body::after {
  content: "↗";
  position: absolute;
  right: 0;
  bottom: -2px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  color: var(--white);
  font-size: 19px;
  opacity: 0;
  transform: translate(-8px, 8px) rotate(-18deg);
  transition: opacity 300ms ease, transform 420ms cubic-bezier(.2,.7,.2,1), background 300ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 30px 70px rgba(21,21,17,0.2);
  }

  .project-card:hover::after {
    background: linear-gradient(180deg, rgba(20,17,13,0.04) 26%, rgba(15,13,10,0.82) 100%);
  }

  .project-card:hover .placeholder img {
    filter: saturate(0.88) contrast(1.04);
    transform: scale(1.075);
  }

  .project-card:hover .project-card__body {
    transform: translateY(-5px);
  }

  .project-card:hover .project-card__body p {
    color: var(--white);
    transform: translateX(3px);
  }

  .project-card:hover .project-card__body::after {
    opacity: 1;
    background: rgba(255,255,255,0.1);
    transform: translate(0, 0) rotate(0);
  }
}

@media (hover: none) {
  a.project-card .project-card__body::after {
    opacity: 0.9;
    transform: none;
  }
}

.services {
  color: var(--white);
  background: var(--graphite);
}

.services .section-head p {
  color: rgba(255,255,255,0.62);
}

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

.service-item {
  min-width: 0;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.4vw, 34px);
  background: #23221f;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 26px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.18);
}

.service-item--featured {
  border-color: rgba(165,121,79,0.72);
  background: #29251f;
}

.service-item__head {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.service-item__head h3 {
  margin: 0;
  color: rgba(255,255,255,0.7);
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-item__head p {
  margin: 22px 0 0;
  color: var(--white);
  font-size: clamp(17px, 1.5vw, 22px);
  white-space: nowrap;
}

.service-item__head strong {
  color: var(--white);
  font-family: var(--font-main);
  font-size: clamp(31px, 2.6vw, 42px);
  line-height: 1;
  font-weight: 400;
}

.service-options {
  display: grid;
  gap: 2px;
  padding: 22px 0;
}

.service-options details,
.service-option {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.service-options summary,
.service-option {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 11px 0 11px 30px;
  list-style: none;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
  line-height: 1.3;
}

.service-options summary {
  cursor: pointer;
}

.service-options summary::-webkit-details-marker {
  display: none;
}

.service-options summary::before,
.service-option::before {
  content: "+";
  position: absolute;
  left: 2px;
  top: 50%;
  color: var(--wood);
  font-size: 24px;
  font-weight: 300;
  transform: translateY(-52%);
  transition: transform 180ms ease;
}

.service-options details[open] summary::before {
  transform: translateY(-52%) rotate(45deg);
}

.service-options details > p {
  margin: 0;
  padding: 0 0 15px 30px;
  color: rgba(255,255,255,0.58);
  font-size: 13px;
  line-height: 1.48;
}

.service-option--muted {
  color: rgba(255,255,255,0.24);
}

.service-option--muted::before {
  color: rgba(255,255,255,0.2);
}

.service-note {
  min-height: 66px;
  margin: auto 0 24px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  line-height: 1.5;
}

.service-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-cta span:last-child {
  width: 48px;
  height: 48px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.64);
  border-radius: 50%;
  color: var(--white);
  font-size: 22px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.service-cta:hover span:last-child {
  color: var(--ink);
  background: #d2b28f;
  transform: translateX(3px);
}

.process {
  color: var(--ink);
  background: var(--paper);
}

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

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

.step {
  position: relative;
  min-height: 330px;
  padding: clamp(26px, 3vw, 34px);
  overflow: hidden;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(21,21,17,0.08);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(21,21,17,0.07);
}

.step::before {
  content: "";
  position: absolute;
  left: clamp(26px, 3vw, 34px);
  right: clamp(26px, 3vw, 34px);
  top: 160px;
  height: 1px;
  background: rgba(165,121,79,0.28);
}

.step::after {
  content: "";
  position: absolute;
  left: clamp(26px, 3vw, 34px);
  top: 159px;
  width: 70px;
  height: 4px;
  background: var(--wood);
}

.step span {
  display: block;
  color: rgba(21,21,17,0.18);
  font-size: clamp(68px, 7vw, 92px);
  line-height: 0.9;
  font-weight: 300;
}

.step h3 {
  margin: 100px 0 12px;
  color: var(--ink);
  font-size: clamp(20px, 1.8vw, 27px);
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.38;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.estimate {
  background: var(--graphite);
}

.estimate-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.85fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
  max-width: 1320px;
  margin: auto;
  padding: clamp(26px, 5vw, 56px);
  background: var(--white);
  border-radius: var(--radius);
}

.estimate-form {
  display: grid;
  gap: 22px;
}

.estimate-form fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.estimate-form legend {
  width: 100%;
  margin-bottom: 4px;
  color: var(--muted);
}

.estimate-form label {
  color: var(--muted);
}

.estimate-form fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}

.estimate-form input[type="radio"] {
  accent-color: var(--wood);
}

.estimate-form input[type="range"] {
  --range-progress: 38%;
  width: 100%;
  height: 30px;
  margin-top: 14px;
  padding: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.estimate-form input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  background: linear-gradient(
    90deg,
    #8b5e36 0 var(--range-progress),
    #ded5c8 var(--range-progress) 100%
  );
  border: 1px solid rgba(21,21,17,0.18);
  border-radius: 999px;
}

.estimate-form input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -9px;
  appearance: none;
  background: #8b5e36;
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px #8b5e36, 0 4px 12px rgba(69,43,24,0.4);
}

.estimate-form input[type="range"]::-moz-range-track {
  height: 8px;
  background: #ded5c8;
  border: 1px solid rgba(21,21,17,0.18);
  border-radius: 999px;
}

.estimate-form input[type="range"]::-moz-range-progress {
  height: 8px;
  background: #8b5e36;
  border-radius: 999px;
}

.estimate-form input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #8b5e36;
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 2px #8b5e36, 0 4px 12px rgba(69,43,24,0.4);
}

.estimate-form select,
.lead-form input,
.lead-form textarea {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 0;
  background: transparent;
  color: var(--ink);
}

.estimate-result {
  display: grid;
  gap: 12px;
  padding: 28px;
  background: var(--paper);
  border-radius: var(--radius);
}

.estimate-result p,
.estimate-result span {
  margin: 0;
  color: var(--muted);
}

.estimate-result strong {
  font-family: var(--font-main);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  font-weight: 300;
}

.faq-lead {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}

.faq-block {
  display: grid;
  gap: 18px;
}

.faq-block details {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.faq-block summary {
  cursor: pointer;
  list-style: none;
  font-size: clamp(22px, 2.4vw, 30px);
}

.faq-block summary::-webkit-details-marker {
  display: none;
}

.lead-form {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--white);
  border-radius: var(--radius);
}

.lead-form label {
  color: var(--muted);
}

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

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
}

.map {
  min-height: 520px;
}

.contact-visual {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--graphite);
  box-shadow: 0 24px 64px rgba(21,21,17,0.16);
}

.contact-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18,16,13,0.72) 0%, rgba(18,16,13,0.18) 62%, transparent 100%),
    linear-gradient(0deg, rgba(18,16,13,0.45), transparent 58%);
  pointer-events: none;
}

.contact-visual > img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms ease;
}

.contact-visual:hover > img {
  transform: scale(1.025);
}

.contact-visual__number {
  position: absolute;
  top: 26px;
  right: 28px;
  z-index: 2;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.contact-visual__content {
  position: absolute;
  left: clamp(24px, 4vw, 46px);
  bottom: clamp(24px, 4vw, 44px);
  z-index: 2;
  display: grid;
  justify-items: start;
  color: var(--white);
}

.contact-visual__content > span {
  margin-bottom: 14px;
  color: #d2b28f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-visual__content p {
  margin: 0 0 16px;
  color: var(--white);
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.16;
}

.contact-visual__phone {
  margin-bottom: 24px;
  color: rgba(255,255,255,0.78);
  font-size: 15px;
}

.contact-visual__telegram {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  min-height: 48px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.contact-visual__telegram:hover {
  color: var(--white);
  background: var(--wood);
  transform: translateY(-2px);
}

.contacts__info {
  display: grid;
  gap: 24px;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.socials a {
  color: var(--muted);
  border-bottom: 1px solid currentColor;
}

.footer {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 28px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  width: 150px;
  height: 48px;
}

.footer-brand__logo {
  display: block;
  flex: 0 0 150px;
  width: 150px;
  height: 48px;
  background-image: url("logo/4n3.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.footer a {
  color: var(--ink);
  font-weight: 700;
}

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

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

@keyframes drift {
  from { transform: translateX(-16px) scale(1); }
  to { transform: translateX(16px) scale(1.03); }
}

@keyframes curtain {
  from { transform: translateX(0); }
  to { transform: translateX(24px); }
}

@keyframes light {
  from { transform: translateX(-7%) rotate(-16deg); opacity: 0.48; }
  to { transform: translateX(22%) rotate(-16deg); opacity: 0.78; }
}

@media (max-width: 1280px) {
  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav {
    display: none;
  }

  .hero {
    padding-top: 140px;
  }

  .project-grid,
  .service-list,
  .steps,
  .estimate-card,
  .faq-lead,
  .contacts {
    grid-template-columns: 1fr;
  }

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

  .project-card,
  .placeholder {
    min-height: 360px;
  }

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

  .case-intro {
    grid-template-columns: 70px 1fr;
  }

  .case-meta {
    grid-column: 2;
  }
}

@media (max-width: 620px) {
  .service-list {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    padding: 12px 14px 14px;
    background: rgba(18, 18, 15, 0.62);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    width: 116px;
    height: 40px;
  }

  .brand__logo {
    flex-basis: 116px;
    width: 116px;
    height: 40px;
  }

  .nav {
    display: grid;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    font-size: 11px;
    line-height: 1.1;
    text-align: center;
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 4px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
  }

  .header-cta {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    padding: 9px 12px;
    font-size: 12px;
    white-space: nowrap;
  }

  .intro__video {
    width: min(330px, 82vw);
    max-height: 44vh;
  }

  .hero {
    min-height: auto;
    padding: 164px 16px 54px;
  }

  .hero__corner-logo {
    bottom: 14px;
    right: 12px;
    width: 64px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero__actions {
    display: grid;
    max-width: 260px;
    margin-inline: auto;
  }

  .section {
    padding: 66px 16px;
  }

  .intro-note {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .intro-note__brand {
    top: auto;
    right: -44px;
    bottom: 28px;
    width: min(260px, 72vw);
    transform: none;
  }

  .intro-note__brand img {
    opacity: 0.14;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .project-grid {
    gap: 14px;
  }

  .project-card,
  .placeholder {
    min-height: 280px;
  }

  .service-item,
  .step,
  .estimate-card,
  .lead-form {
    padding: 22px;
  }

  .case-header {
    color: var(--ink);
    background: rgba(246, 241, 232, 0.9);
    border-color: rgba(21, 21, 17, 0.12);
  }

  .case-header .nav a {
    border-color: rgba(21, 21, 17, 0.18);
  }

  .case-hero,
  .case-hero > img {
    min-height: 78svh;
    height: 78svh;
  }

  .case-hero__copy {
    bottom: 30px;
  }

  .case-hero__copy h1 {
    font-size: 52px;
  }

  .case-intro {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .case-meta {
    grid-column: 1;
  }

  .case-lead {
    font-size: 30px;
  }

  .case-section-head,
  .case-gallery {
    grid-template-columns: 1fr;
  }

  .case-shot--wide {
    grid-column: auto;
  }

  .case-next {
    align-items: flex-start;
    flex-direction: column;
  }
}
