:root {
  --ink: #181818;
  --muted: #676a68;
  --accent: #9b7658;
  --accent-dark: #856247;
  --paper: #f7f3ee;
  --line: rgba(60, 46, 35, .12);
  --line-dark: rgba(255, 244, 230, .14);
  --header-h: 76px;
  --content: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Onest", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; }

.site-header {
  position: relative;
  z-index: 20;
  height: var(--header-h);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  width: min(1060px, calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink);
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand__text {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand__eyebrow {
  color: #8a7665;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.brand__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.035em;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.nav a {
  white-space: nowrap;
  text-decoration: none;
  color: #4f5250;
  font-size: 13px;
  font-weight: 450;
  transition: color .18s ease;
}
.nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.manager-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}
.manager-mini picture,
.manager-mini img {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
}
.manager-mini img { object-fit: cover; }
.manager-mini__text { display: grid; gap: 2px; white-space: nowrap; }
.manager-mini__text strong { font-size: 12px; line-height: 1.2; font-weight: 600; }
.manager-mini__text small { color: #8a8b88; font-size: 11px; line-height: 1.2; }

.phone {
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 550;
}

.max-button {
  min-height: 46px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 7px;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  transition: transform .18s ease, background .18s ease;
}
.max-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.max-button span { font-size: 18px; line-height: 1; }

.hero {
  position: relative;
  min-height: 0;
  height: auto;
  overflow: hidden;
  isolation: isolate;
  background: #eee8e1;
}

.hero__picture {
  position: absolute;
  inset: 0;
  z-index: -3;
}
.hero__picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.hero__wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg,
      rgba(250, 248, 245, 1) 0%,
      rgba(250, 248, 245, .995) calc(50% - 370px),
      rgba(250, 248, 245, .94) calc(50% - 160px),
      rgba(250, 248, 245, .68) calc(50% + 20px),
      rgba(250, 248, 245, .20) calc(50% + 240px),
      rgba(250, 248, 245, 0) calc(50% + 440px)),
    linear-gradient(180deg, rgba(250,248,245,.03) 60%, rgba(35,26,20,.10) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  width: min(1060px, calc(100% - 64px));
  min-height: clamp(750px, calc(83svh - var(--header-h)), 960px);
  padding-block: 56px;
  height: auto;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  row-gap: 40px;
  align-items: start;
}

.hero__content {
  width: min(600px, 60%);
  padding-top: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 3.5vw, 48px);
  line-height: 1.09;
  letter-spacing: -.045em;
  font-weight: 500;
  text-wrap: pretty;
}
.hero h1 span { color: var(--accent); }

.hero__copy {
  width: min(540px, 100%);
  margin-top: 28px;
  color: #666967;
  font-size: 19px;
  line-height: 1.55;
  text-wrap: pretty;
}
.hero__copy p { margin: 0; }
.hero__copy .hero__status { margin-top: 18px; }

.primary-cta {
  width: min(350px, 100%);
  min-height: 64px;
  margin-top: 28px;
  padding: 7px 10px 7px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: transform .18s ease, background .18s ease;
}
.primary-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }
.primary-cta__arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 22px;
  line-height: 1;
}

.hero__proof {
  width: min(600px, 60%);
  align-self: end;
  margin-bottom: 0;
  display: grid;
  grid-template-columns: 1fr .86fr 1.28fr;
  color: #5b5e5b;
  border-top: 1px solid var(--line);
}
.proof-item {
  min-width: 0;
  min-height: 68px;
  padding: 4px 16px 4px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.42;
  font-weight: 450;
}
.proof-item + .proof-item {
  position: relative;
  padding-left: 16px;
  border-left: 0;
}
.proof-item + .proof-item::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 0;
  width: 1px;
  background: var(--line);
}
.proof-item img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  opacity: .93;
}

.photo-caption {
  position: absolute;
  right: 0;
  bottom: clamp(26px, 3.8vh, 44px);
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,.92);
  font-size: 12px;
  line-height: 1;
  text-shadow: 0 1px 8px rgba(0,0,0,.28);
}
.photo-caption span {
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,.78);
}

@media (max-width: 1240px) {
  :root { --header-h: 72px; }
  .site-header__inner,
  .hero__inner { width: min(1060px, calc(100% - 48px)); }
  .site-header__inner { grid-template-columns: auto 1fr auto; gap: 20px; }
  .nav { gap: 18px; }
  .manager-mini__text { display: none; }
  .manager-mini { padding-right: 16px; }
  .header-actions { gap: 16px; }
  .max-button { padding-inline: 14px; }
  .hero__content { width: min(600px, 64%); }
  .hero h1 { font-size: clamp(42px, 4vw, 48px); }
  .hero__proof { width: min(600px, 64%); }
}

@media (max-width: 1020px) {
  .nav { display: none; }
  .site-header__inner { grid-template-columns: auto 1fr; }
  .header-actions { justify-self: end; }
  .manager-mini__text { display: none; }
  .hero__wash {
    background: linear-gradient(90deg,
      rgba(250,248,245,1) 0%, rgba(250,248,245,.98) 34%, rgba(250,248,245,.80) 52%, rgba(250,248,245,.15) 78%, rgba(250,248,245,0) 100%);
  }
  .hero__content { width: min(600px, 76%); }
  .hero__proof { width: min(600px, 80%); }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .site-header__inner { width: calc(100% - 28px); gap: 14px; }
  .brand { font-size: 22px; }
  .manager-mini, .max-button { display: none; }
  .phone { font-size: 12px; }
  .hero { height: auto; min-height: 0; }
  .hero__picture img { object-position: 66% center; }
  .hero__wash {
    background: linear-gradient(180deg,
      rgba(250,248,245,.99) 0%, rgba(250,248,245,.97) 42%, rgba(250,248,245,.68) 60%, rgba(250,248,245,.12) 82%, rgba(250,248,245,0) 100%);
  }
  .hero__inner {
    width: calc(100% - 32px);
    padding-block: 0;
    min-height: 0;
    height: auto;
    grid-template-rows: auto auto;
    row-gap: 0;
  }
  .hero__content {
    width: 100%;
    padding-top: 30px;
  }
  .hero h1 { font-size: clamp(26px, 7.4vw, 48px); line-height: 1.12; letter-spacing: -.04em; }
  .hero__copy { width: min(520px, 100%); margin-top: 22px; font-size: 16px; }
  .primary-cta { min-height: 58px; margin-top: 22px; }
  .hero__proof {
    width: 100%;
    margin-top: 190px;
    margin-bottom: 22px;
    grid-template-columns: 1fr;
    color: #222;
    background: rgba(250,248,245,.84);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 6px 14px;
  }
  .proof-item { min-height: 54px; padding: 8px 0; }
  .proof-item + .proof-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .proof-item + .proof-item::before { display: none; }
  .proof-item img { width: 29px; height: 29px; flex-basis: 29px; }
  .photo-caption { display: none; }
}

@media (max-height: 780px) and (min-width: 761px) {
  .hero__inner { min-height: 660px; row-gap: 32px; padding-block: 34px; }
  .hero__content { padding-top: 0; }
  .hero h1 { font-size: clamp(42px, 4vw, 48px); }
  .hero__copy { margin-top: 20px; font-size: 17px; line-height: 1.5; }
  .hero__copy .hero__status { margin-top: 14px; }
  .primary-cta { min-height: 56px; margin-top: 18px; }
  .hero__proof { margin-bottom: 0; }
  .photo-caption { bottom: 24px; }
}

.site-header a:focus-visible,
.hero a:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .max-button, .primary-cta { transition: none; }
}

/* Второй экран: руководитель */
.leader {
  min-height: 100svh;
  padding: clamp(56px, 6.2vw, 88px) 0;
  display: grid;
  align-items: center;
  background: #fbfaf8;
}

.leader__inner {
  width: min(var(--content), calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(420px, .92fr) minmax(0, 1.08fr);
  gap: clamp(52px, 5vw, 82px);
  align-items: center;
}

.leader__photo {
  position: relative;
  min-height: clamp(620px, 72vh, 780px);
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #e8e0d8;
}

.leader__photo picture,
.leader__photo img {
  width: 100%;
  height: 100%;
  display: block;
}

.leader__photo picture { position: absolute; inset: 0; }
.leader__photo img {
  object-fit: cover;
  object-position: 53% center;
}

.leader__content {
  min-width: 0;
  padding-right: clamp(0px, 1.2vw, 18px);
}

.leader h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(50px, 4.25vw, 66px);
  line-height: .99;
  letter-spacing: -.055em;
  font-weight: 500;
}
.leader h2 span { color: var(--accent); }

.leader__lead {
  max-width: 760px;
  margin: clamp(26px, 3vh, 34px) 0 0;
  color: #292a29;
  font-size: clamp(21px, 1.65vw, 27px);
  line-height: 1.43;
  letter-spacing: -.022em;
}

.leader__copy {
  max-width: 760px;
  margin-top: clamp(22px, 2.7vh, 30px);
  display: grid;
  gap: 14px;
  color: #70726f;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.55;
}
.leader__copy p { margin: 0; }

.leader__facts {
  max-width: 800px;
  margin-top: clamp(28px, 3.4vh, 38px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.leader-fact {
  min-width: 0;
  min-height: 154px;
  padding: 22px 22px 22px 0;
}
.leader-fact + .leader-fact {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}
.leader-fact strong {
  min-height: 2.45em;
  display: block;
  color: var(--accent-dark);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -.025em;
}
.leader-fact__number {
  font-size: 1.55em;
  line-height: .8;
}
.leader-fact p {
  margin: 14px 0 0;
  color: #71736f;
  font-size: clamp(12px, .92vw, 14px);
  line-height: 1.48;
}

.leader__signature {
  max-width: 800px;
  margin-top: clamp(28px, 3.4vh, 38px);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.leader__signature-line { height: 1px; background: var(--accent); }
.leader__signature div { display: grid; gap: 4px; }
.leader__signature strong { font-size: 15px; font-weight: 600; }
.leader__signature small { color: #878986; font-size: 12px; }
.leader__sign {
  color: var(--accent);
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: clamp(32px, 3vw, 48px);
  line-height: 1;
  transform: rotate(-5deg);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .leader__inner { width: calc(100% - 48px); grid-template-columns: minmax(360px, .84fr) minmax(0, 1.16fr); gap: 44px; }
  .leader h2 { font-size: clamp(44px, 4.5vw, 56px); }
  .leader__lead { font-size: clamp(19px, 2vw, 23px); }
  .leader__photo { min-height: 650px; }
  .leader-fact { padding-right: 16px; }
  .leader-fact + .leader-fact { padding-left: 16px; }
  .leader__sign { display: none; }
}

@media (max-width: 840px) {
  .leader { min-height: auto; padding: 64px 0; }
  .leader__inner { width: calc(100% - 36px); grid-template-columns: 1fr; gap: 38px; }
  .leader__content { order: -1; }
  .leader h2 { max-width: 680px; font-size: clamp(40px, 8vw, 54px); }
  .leader__lead { max-width: 680px; }
  .leader__copy { max-width: 680px; }
  .leader__photo { min-height: 0; aspect-ratio: 4 / 5; }
}

@media (max-width: 620px) {
  .leader { padding: 54px 0; }
  .leader__inner { width: calc(100% - 28px); }
  .leader h2 { font-size: 39px; }
  .leader__lead { font-size: 18px; }
  .leader__copy { font-size: 14px; }
  .leader__facts { grid-template-columns: 1fr; }
  .leader-fact { min-height: 0; padding: 20px 0; }
  .leader-fact + .leader-fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .leader-fact strong { min-height: 0; }
  .leader-fact p { margin-top: 9px; }
  .leader__signature { grid-template-columns: 34px 1fr; gap: 14px; }
}

@media (max-height: 820px) and (min-width: 841px) {
  .leader { padding-top: 48px; padding-bottom: 48px; }
  .leader__photo { min-height: 610px; max-height: 690px; }
  .leader h2 { font-size: clamp(44px, 3.8vw, 54px); }
  .leader__lead { margin-top: 22px; font-size: clamp(18px, 1.45vw, 22px); }
  .leader__copy { margin-top: 18px; gap: 10px; font-size: 13px; }
  .leader__facts { margin-top: 24px; }
  .leader-fact { min-height: 132px; padding-top: 18px; padding-bottom: 18px; }
  .leader-fact p { margin-top: 10px; font-size: 12px; }
  .leader__signature { margin-top: 22px; }
}

/* Третий экран: реальные объекты */
.projects {
  min-height: 100svh;
  padding: clamp(54px, 5.4vw, 78px) 0 clamp(58px, 5.2vw, 76px);
  background: #f6f2ed;
}

.projects__inner {
  width: min(var(--content), calc(100% - 64px));
  margin: 0 auto;
}

.projects__head {
  margin-bottom: clamp(28px, 3vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: end;
}

.projects__head h2 {
  margin: 0;
  font-size: clamp(48px, 4vw, 62px);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 500;
}

.projects__head p {
  max-width: 720px;
  margin: 14px 0 0;
  color: #6c6e6b;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.5;
}

.projects__all {
  min-height: 50px;
  padding: 0 19px 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  border-radius: 7px;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  transition: transform .18s ease, background .18s ease;
}
.projects__all:hover { background: var(--accent-dark); transform: translateY(-1px); }
.projects__all span { font-size: 18px; line-height: 1; }

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

.project-card {
  min-width: 0;
  min-height: 318px;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(250px, .97fr);
  overflow: hidden;
  border: 1px solid rgba(74, 64, 56, .14);
  border-radius: 12px;
  background: rgba(255,255,255,.60);
}

.project-card__media {
  min-width: 0;
  padding: 12px 0 12px 12px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 46px;
  gap: 7px;
}

.project-stage {
  position: relative;
  min-height: 228px;
  overflow: hidden;
  border-radius: 9px;
  background: #ddd5ce;
}

.project-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.008);
  transition: opacity .22s ease, transform .42s ease;
  cursor: zoom-in;
  pointer-events: none;
}
.project-slide.is-active { opacity: 1; transform: scale(1); pointer-events: auto; }

.project-gallery__item img {
  cursor: zoom-in;
}

.project-lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(24, 20, 17, .88);
}
.project-lightbox[hidden] { display: none; }
body.is-lightbox-open { overflow: hidden; }
.project-lightbox__image {
  display: block;
  max-width: min(1180px, 92vw);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
}
.project-lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  color: #fff;
  background: rgba(255,255,255,.12);
  border-radius: 8px;
  font: inherit;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.project-lightbox__close:hover { background: rgba(255,255,255,.2); }

.project-controls {
  position: absolute;
  z-index: 3;
  right: 9px;
  bottom: 9px;
  min-height: 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 9px;
  color: #fff;
  background: rgba(32, 28, 25, .90);
  backdrop-filter: blur(8px);
}

.project-controls--single { padding-inline: 13px; }
.project-arrow {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-size: 19px;
  cursor: pointer;
}
.project-arrow:hover { background: rgba(255,255,255,.10); }
.project-counter {
  min-width: 54px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.project-thumbs {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}
.project-thumbs--single { grid-template-columns: 58px; }

.project-thumb {
  position: relative;
  min-width: 0;
  height: 46px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 5px;
  background: #d7d0c9;
  cursor: pointer;
}
.project-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-radius: inherit;
  pointer-events: none;
}
.project-thumb.is-active::after { border-color: var(--accent); }
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82);
  transition: transform .22s ease, filter .18s ease;
}
.project-thumb:hover img,
.project-thumb.is-active img { filter: none; transform: scale(1.035); }

.project-card__body {
  min-width: 0;
  padding: 24px 20px 22px 22px;
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  margin: 0;
  font-size: clamp(23px, 1.85vw, 30px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 550;
}

.project-facts {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.project-facts > div {
  min-width: 0;
  padding: 13px 12px 14px 0;
}
.project-facts > div + div {
  padding-left: 14px;
  border-left: 1px solid var(--line);
}
.project-facts span,
.project-facts strong { display: block; }
.project-facts span {
  margin-bottom: 5px;
  color: #85857f;
  font-size: 11px;
  line-height: 1.25;
}
.project-facts strong {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
}

.project-card__body > p {
  margin: 16px 0 0;
  color: #747570;
  font-size: 12px;
  line-height: 1.48;
}

@media (max-width: 1180px) {
  .projects__inner { width: calc(100% - 48px); }
  .project-card { grid-template-columns: 1fr; }
  .project-card__media { padding: 12px 12px 0; }
  .project-stage { min-height: 240px; }
  .project-card__body { padding-top: 18px; }
}

@media (max-width: 900px) {
  .projects { min-height: auto; padding: 64px 0; }
  .projects__inner { width: calc(100% - 36px); }
  .projects__head { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .projects__all { justify-self: start; }
  .projects__grid { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr); }
  .project-card__media { padding: 12px 0 12px 12px; }
  .project-card__body { padding-top: 24px; }
}

@media (max-width: 680px) {
  .projects { padding: 54px 0; }
  .projects__inner { width: calc(100% - 28px); }
  .projects__head h2 { font-size: 42px; }
  .projects__all { width: 100%; justify-content: space-between; }
  .project-card { grid-template-columns: 1fr; }
  .project-card__media { padding: 10px 10px 0; }
  .project-stage { min-height: 0; aspect-ratio: 4 / 3; }
  .project-card__body { padding: 20px 18px 22px; }
  .project-card h3 { font-size: 28px; }
  .project-thumbs { height: 44px; }
  .project-thumb { height: 44px; }
}

@media (max-height: 820px) and (min-width: 1181px) {
  .projects { padding-top: 46px; padding-bottom: 46px; }
  .projects__head { margin-bottom: 24px; }
  .projects__head h2 { font-size: 50px; }
  .projects__head p { margin-top: 10px; font-size: 13px; }
  .project-card { min-height: 292px; }
  .project-card__media { grid-template-rows: minmax(0, 1fr) 40px; }
  .project-stage { min-height: 205px; }
  .project-thumb { height: 40px; }
  .project-card__body { padding-top: 20px; padding-bottom: 18px; }
  .project-card h3 { font-size: 24px; }
  .project-facts { margin-top: 18px; }
  .project-card__body > p { margin-top: 12px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .project-slide, .project-thumb img, .projects__all { transition: none; }
}

/* Квиз: второй экран после hero */
.quiz {
  position: relative;
  min-height: 100svh;
  padding: clamp(72px, 7vw, 104px) 0;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 4% 90%, rgba(155,118,88,.08), transparent 31%),
    linear-gradient(115deg, #faf8f5 0%, #f7f2ec 46%, #f3eee8 100%);
}
.quiz::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: -4vw;
  bottom: -18%;
  width: 52vw;
  height: 56%;
  background: url('./assets/hero-main.webp') center 56% / cover no-repeat;
  opacity: .16;
  filter: saturate(.7) contrast(.92);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 30%, #000 100%), linear-gradient(90deg, #000 0%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.55) 30%, #000 100%);
  pointer-events: none;
}
.quiz__inner {
  position: relative;
  z-index: 1;
  width: min(var(--content), calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(400px, .88fr) minmax(620px, 1.12fr);
  gap: clamp(56px, 6vw, 92px);
  align-items: center;
}
.quiz__intro { align-self: center; }
.quiz__intro h2 {
  max-width: 610px;
  margin: 0;
  font-size: clamp(48px, 4.45vw, 68px);
  line-height: 1.01;
  letter-spacing: -.056em;
  font-weight: 500;
}
.quiz__intro h2 span { color: var(--accent); }
.quiz__lead {
  max-width: 590px;
  margin: 30px 0 0;
  color: #686b69;
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.48;
}
.quiz__note {
  max-width: 570px;
  margin: 20px 0 0;
  color: #8a8985;
  font-size: 15px;
  line-height: 1.55;
}
.quiz__benefits {
  max-width: 610px;
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
.quiz-benefit {
  min-height: 72px;
  padding: 4px 20px 4px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #4d504d;
  font-size: 13px;
  line-height: 1.4;
}
.quiz-benefit + .quiz-benefit { padding-left: 20px; border-left: 1px solid var(--line); }
.quiz-benefit__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  color: var(--accent);
}
.quiz-benefit__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

.quiz-card {
  width: 100%;
  min-height: 640px;
  padding: 36px 38px 28px;
  border: 1px solid rgba(79,61,48,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 60px rgba(67,49,36,.07);
  backdrop-filter: blur(16px);
}
.quiz-card__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  color: #78756f;
  font-size: 13px;
}
.quiz-card__step b { color: inherit; font-weight: 500; }
.quiz-progress { height: 7px; overflow: hidden; border-radius: 20px; background: #dedad5; }
.quiz-progress span { display: block; width: 25%; height: 100%; border-radius: inherit; background: var(--accent); transition: width .25s ease; }
.quiz-card__percent { font-variant-numeric: tabular-nums; }
.quiz-panel { margin-top: 38px; }
.quiz-panel[hidden] { display: none; }
.quiz-panel h3 {
  margin: 0 0 22px;
  font-size: clamp(25px, 2vw, 32px);
  line-height: 1.15;
  letter-spacing: -.035em;
  font-weight: 550;
}
.quiz-panel__hint { max-width: 620px; margin: -8px 0 24px; color: #85847f; font-size: 14px; line-height: 1.5; }
.quiz-options { display: grid; gap: 14px; }
.quiz-options--objects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiz-options--simple { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiz-option {
  min-height: 112px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid #ded8d2;
  border-radius: 10px;
  color: #4d4c49;
  background: rgba(255,255,255,.70);
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, color .16s ease;
}
.quiz-option:hover { border-color: rgba(155,118,88,.64); transform: translateY(-1px); }
.quiz-option.is-selected { border-color: var(--accent); color: #372a21; background: #f4ebe3; box-shadow: inset 0 0 0 1px rgba(155,118,88,.12); }
.quiz-option__icon { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; color: var(--accent); }
.quiz-option__icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.quiz-option__icon--round svg { width: 42px; height: 42px; }
.quiz-option--text { min-height: 74px; justify-content: center; text-align: center; font-size: 16px; }
.quiz-preview {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #aaa7a2;
  font-size: 13px;
}
.quiz-preview > span { display: block; margin-bottom: 18px; }
.quiz-preview__groups { display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px; }
.quiz-preview__groups small { display: block; margin-bottom: 9px; color: #96938e; font-size: 12px; }
.quiz-preview__groups div > div { display: flex; gap: 7px; flex-wrap: wrap; }
.quiz-preview__groups i { padding: 8px 12px; border-radius: 7px; background: rgba(236,233,229,.78); font-style: normal; font-size: 11px; }
.quiz-phone { display: grid; gap: 10px; margin-top: 28px; }
.quiz-phone span { color: #77746f; font-size: 13px; }
.quiz-phone input {
  width: 100%;
  min-height: 64px;
  padding: 0 20px;
  border: 1px solid #d7d1cb;
  border-radius: 9px;
  background: rgba(255,255,255,.82);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  outline: 0;
}
.quiz-phone input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(155,118,88,.10); }
.quiz-card__actions {
  margin-top: 30px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
}
.quiz-back {
  min-height: 54px;
  padding: 0 12px;
  border: 0;
  color: #77746f;
  background: transparent;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.quiz-back:hover { color: var(--ink); }
.quiz-next,
.quiz-submit {
  min-width: 220px;
  min-height: 58px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, opacity .18s ease;
}
.quiz-next:hover:not(:disabled), .quiz-submit:hover { background: var(--accent-dark); transform: translateY(-1px); }
.quiz-next:disabled { opacity: .35; cursor: not-allowed; }
.quiz-next span, .quiz-submit span { font-size: 20px; line-height: 1; }
.quiz-consent { display: flex; align-items: flex-start; gap: 8px; max-width: 520px; margin: 12px 0 0 auto; color: #a09d98; font-size: 11px; line-height: 1.4; text-align: right; cursor: pointer; }
.quiz-consent input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.quiz-consent a, .cookie-notice a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cookie-notice { position: fixed; z-index: 30; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 18px; max-width: 620px; padding: 16px 18px; border: 1px solid rgba(32,33,35,.14); border-radius: 12px; background: #202123; color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.18); font-size: 13px; line-height: 1.45; }
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; }
.cookie-notice button { flex: 0 0 auto; border: 0; border-radius: 8px; padding: 10px 14px; background: var(--accent); color: #202123; font: inherit; font-weight: 700; cursor: pointer; }
.quiz-card__footer { margin-top: 24px; padding-top: 18px; display: flex; justify-content: center; gap: 9px; border-top: 1px solid var(--line); color: #9a9792; font-size: 12px; }
.quiz-card__footer span { color: var(--accent); font-size: 17px; }

@media (max-width: 1180px) {
  .quiz__inner { grid-template-columns: minmax(340px, .78fr) minmax(560px, 1.22fr); gap: 44px; }
  .quiz__intro h2 { font-size: clamp(44px, 4vw, 56px); }
  .quiz__benefits { grid-template-columns: 1fr; margin-top: 28px; }
  .quiz-benefit { min-height: 52px; padding: 10px 0; }
  .quiz-benefit + .quiz-benefit { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .quiz-card { padding: 30px; }
}

@media (max-width: 900px) {
  .quiz { min-height: auto; padding: 70px 0; }
  .quiz::after { display: none; }
  .quiz__inner { width: calc(100% - 44px); grid-template-columns: 1fr; gap: 44px; }
  .quiz__intro h2 { max-width: 700px; }
  .quiz__lead, .quiz__note { max-width: 680px; }
  .quiz__benefits { max-width: 680px; grid-template-columns: repeat(3,1fr); }
  .quiz-benefit { min-height: 68px; padding: 4px 16px 4px 0; }
  .quiz-benefit + .quiz-benefit { padding-left: 16px; border-top: 0; border-left: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .quiz { padding: 58px 0; }
  .quiz__inner { width: calc(100% - 32px); gap: 34px; }
  .quiz__intro h2 { font-size: 40px; }
  .quiz__lead { margin-top: 22px; font-size: 16px; }
  .quiz__note { margin-top: 16px; font-size: 14px; }
  .quiz__benefits { grid-template-columns: 1fr; margin-top: 26px; }
  .quiz-benefit { min-height: 48px; padding: 9px 0; }
  .quiz-benefit + .quiz-benefit { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .quiz-card { min-height: 0; padding: 22px 18px 20px; border-radius: 13px; }
  .quiz-card__top { grid-template-columns: auto 1fr auto; gap: 12px; }
  .quiz-panel { margin-top: 28px; }
  .quiz-panel h3 { font-size: 24px; }
  .quiz-options--objects, .quiz-options--simple { grid-template-columns: 1fr; }
  .quiz-option { min-height: 82px; padding: 15px 16px; }
  .quiz-option__icon { width: 40px; height: 40px; flex-basis: 40px; }
  .quiz-option__icon svg { width: 34px; height: 34px; }
  .quiz-option--text { min-height: 58px; }
  .quiz-preview { display: none; }
  .quiz-card__actions { margin-top: 24px; }
  .quiz-next, .quiz-submit { min-width: 170px; min-height: 54px; padding: 0 18px; }
  .quiz-consent { margin-left: 0; text-align: left; }
  .cookie-notice { right: 12px; bottom: 12px; left: 12px; max-width: none; align-items: flex-start; }
  .cookie-notice button { margin-top: 1px; }
}

/* Estimate review — rebuilt from the clean editorial mockup */
.estimate-review {
  --estimate-bg: #f5efe8;
  --estimate-line: rgba(87, 67, 51, .14);
  padding: 0;
  background: var(--estimate-bg);
  overflow: hidden;
}

.estimate-review__inner {
  width: min(1600px, 100%);
  min-height: 840px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(520px, .92fr);
  background:
    radial-gradient(circle at 76% 14%, rgba(255,255,255,.65), transparent 31%),
    linear-gradient(90deg, #efe5da 0 50%, #faf7f2 50% 100%);
}

.estimate-scene {
  position: relative;
  min-height: 840px;
  overflow: hidden;
  background:
    radial-gradient(circle at 54% 48%, rgba(255,255,255,.8) 0 36%, transparent 58%),
    linear-gradient(135deg, #e7d9ca 0%, #efe7de 38%, #e5d6c7 100%);
}

.estimate-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.28), transparent 42%),
    linear-gradient(315deg, rgba(89,64,45,.08), transparent 34%);
}

.estimate-scene__halo {
  position: absolute;
  z-index: 0;
  width: 78%;
  aspect-ratio: 1;
  left: 13%;
  top: 7%;
  border-radius: 50%;
  background: rgba(255,255,255,.50);
  filter: blur(.2px);
}

.estimate-scene__plant {
  position: absolute;
  z-index: 5;
  width: 390px;
  left: -112px;
  top: -76px;
  transform: rotate(-8deg);
  filter: drop-shadow(0 16px 24px rgba(61, 49, 36, .09));
}

.estimate-scene__stone {
  position: absolute;
  z-index: 1;
  width: 260px;
  filter: drop-shadow(0 15px 25px rgba(83, 60, 42, .08));
}
.estimate-scene__stone--top { right: 78px; top: 34px; transform: rotate(13deg); }
.estimate-scene__stone--bottom { left: -64px; bottom: 100px; transform: rotate(-12deg); opacity: .96; }

.estimate-scene__notebook {
  position: absolute;
  z-index: 2;
  width: 360px;
  left: -76px;
  bottom: -40px;
  transform: rotate(-13deg);
  filter: drop-shadow(0 24px 36px rgba(61, 40, 28, .16));
}

.estimate-scene__back-sheet {
  position: absolute;
  z-index: 2;
  width: 540px;
  height: 665px;
  left: 22%;
  top: 78px;
  transform: rotate(-5deg);
  background: rgba(255,252,248,.83);
  box-shadow: 0 24px 46px rgba(66, 48, 36, .12);
}

.estimate-scene__sheet {
  position: absolute;
  z-index: 4;
  width: min(560px, 64%);
  left: 25%;
  top: 88px;
  transform: rotate(-1.8deg);
  transform-origin: center;
  filter: drop-shadow(0 30px 34px rgba(62, 43, 30, .18));
}

.estimate-scene__pen {
  position: absolute;
  z-index: 6;
  width: 330px;
  right: 22px;
  bottom: 42px;
  transform: rotate(56deg);
  transform-origin: center;
  filter: drop-shadow(0 16px 18px rgba(69, 46, 31, .22));
}

.estimate-review__content {
  min-width: 0;
  padding: 92px 76px 72px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.estimate-review h2 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(56px, 4vw, 72px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 500;
}
.estimate-review h2 span { color: var(--accent); }

.estimate-review__lead {
  max-width: 640px;
  margin: 28px 0 28px;
  color: #656864;
  font-size: 18px;
  line-height: 1.55;
}

.estimate-checks {
  border-top: 1px solid var(--estimate-line);
}

.estimate-check {
  min-height: 102px;
  padding: 20px 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--estimate-line);
}

.estimate-check__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--accent);
  background: #f0e7dd;
  font-size: 29px;
  line-height: 1;
  font-weight: 400;
}
.estimate-check__icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.estimate-check h3 {
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: -.015em;
}
.estimate-check p {
  margin: 0;
  color: #777975;
  font-size: 14px;
  line-height: 1.48;
}

.estimate-review__action {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(180px, 1fr);
  gap: 24px;
  align-items: center;
}

.estimate-upload {
  min-height: 64px;
  padding: 8px 14px 8px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background .18s ease, transform .18s ease;
}
.estimate-upload:hover { background: var(--accent-dark); transform: translateY(-1px); }
.estimate-upload__clip { width: 28px; height: 28px; display: grid; place-items: center; }
.estimate-upload__clip svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.estimate-upload__arrow { margin-left: auto; font-size: 20px; }
.estimate-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.estimate-review__response {
  min-height: 58px;
  padding-left: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 1px solid var(--estimate-line);
  color: #767873;
  font-size: 13px;
  line-height: 1.4;
}
.estimate-review__clock { width: 34px; height: 34px; flex: 0 0 34px; color: var(--accent); }
.estimate-review__clock svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.estimate-review__formats { margin: 8px 0 0; color: #969895; font-size: 11px; line-height: 1.4; }

@media (max-width: 1320px) {
  .estimate-review__inner { grid-template-columns: minmax(0, 1fr) minmax(480px, .9fr); }
  .estimate-review__content { padding-left: 54px; padding-right: 48px; }
  .estimate-review h2 { font-size: 58px; }
  .estimate-scene__sheet { width: min(530px, 68%); left: 22%; }
  .estimate-scene__back-sheet { left: 19%; }
  .estimate-scene__pen { width: 300px; right: -12px; }
}

@media (max-width: 1060px) {
  .estimate-review__inner { min-height: auto; grid-template-columns: 1fr; background: #f7f2ec; }
  .estimate-scene { min-height: 720px; order: 2; }
  .estimate-review__content { order: 1; padding: 76px 52px 58px; }
  .estimate-review h2 { max-width: 720px; font-size: 60px; }
  .estimate-review__lead { max-width: 720px; }
  .estimate-scene__sheet { width: min(560px, 58%); left: 25%; top: 62px; }
  .estimate-scene__back-sheet { left: 22%; top: 54px; }
}

@media (max-width: 700px) {
  .estimate-review__content { padding: 58px 20px 42px; }
  .estimate-review h2 { font-size: 43px; line-height: 1.02; }
  .estimate-review__lead { margin-top: 22px; font-size: 16px; }
  .estimate-check { grid-template-columns: 48px 1fr; gap: 12px; min-height: 92px; }
  .estimate-check__icon { width: 40px; height: 40px; }
  .estimate-check h3 { font-size: 16px; }
  .estimate-check p { font-size: 13px; }
  .estimate-review__action { grid-template-columns: 1fr; gap: 14px; }
  .estimate-review__response { padding-left: 0; border-left: 0; }
  .estimate-scene { min-height: 560px; }
  .estimate-scene__plant { width: 260px; left: -88px; top: -52px; }
  .estimate-scene__stone--top { width: 180px; right: 18px; }
  .estimate-scene__stone--bottom { width: 170px; left: -70px; bottom: 80px; }
  .estimate-scene__notebook { width: 260px; left: -98px; bottom: -8px; }
  .estimate-scene__back-sheet { width: 330px; height: 420px; left: 14%; top: 68px; }
  .estimate-scene__sheet { width: 350px; max-width: 72%; left: 16%; top: 78px; }
  .estimate-scene__pen { width: 230px; right: -42px; bottom: 20px; }
}
