/* Remaining sections: same container and type scale as screens 1–3. */
.projects,
.estimate-review { min-height: 0; padding: 80px 0; }
.projects { padding: 76px 0 88px; background: #f5f1eb; }
.estimate-review { background: #fbfaf8; }
.projects__inner,
.estimate-review__inner { width: min(1060px, calc(100% - 64px)); margin-inline: auto; }
.projects__inner { width: min(1280px, calc(100% - 64px)); }
.projects__head { margin-bottom: 36px; gap: 32px; align-items: end; }
.projects__head h2 { font-size: clamp(38px, 3.3vw, 50px); line-height: 1.1; letter-spacing: -.045em; font-weight: 700; }
.estimate-review h2 { font-size: 40px; line-height: 1.12; letter-spacing: -.04em; }
.projects__head p { max-width: 760px; margin-top: 12px; font-size: 17px; line-height: 1.55; }
.projects__all {
  min-height: 44px;
  padding: 0 0 4px;
  gap: 12px;
  border-bottom: 1px solid #937154;
  border-radius: 0;
  color: #705339;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
}
.projects__all:hover { color: #3e3025; background: transparent; transform: none; border-color: currentColor; }
.projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; scroll-margin-top: 32px; }
.project-card {
  min-height: 312px;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  grid-template-rows: 1fr;
  border: 1px solid #dfd5ca;
  border-radius: 12px;
  background: #fffdfa;
  box-shadow: 0 6px 20px rgba(68, 49, 33, .045);
}
.project-card__media { position: relative; display: block; min-height: 0; padding: 0; }
.project-stage { position: absolute; inset: 10px 0 10px 10px; min-height: 0; height: auto; aspect-ratio: auto; border-radius: 7px; }
.project-thumbs { display: none; }
.project-controls { right: 8px; bottom: 8px; min-height: 40px; border-radius: 6px; background: rgba(35, 30, 26, .86); backdrop-filter: none; }
.project-controls--single { display: none; }
.project-arrow { width: 44px; height: 44px; }
.project-counter { font-size: 12px; }
.project-card__body { padding: 25px 22px 24px; }
.project-view-toggle { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 17px; }
.project-view-toggle__button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #d8cbbb;
  border-radius: 6px;
  color: #705339;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.project-view-toggle__button.is-active { border-color: #705339; color: #fffdfa; background: #705339; }
.project-view-toggle__button:hover { border-color: #705339; }
.project-card--korabl h3 { font-size: clamp(19px, 1.45vw, 22px); }
.project-thumbs > [data-project-view-set] { display: contents; }
.project-thumbs > [data-project-view-set][hidden] { display: none; }
.project-card h3 { font-size: clamp(21px, 1.7vw, 25px); line-height: 1.22; letter-spacing: -.035em; font-weight: 700; }
.project-facts { margin-top: 18px; }
.project-facts > div { padding: 14px 10px 14px 0; }
.project-facts > div + div { padding-left: 12px; }
.project-facts span { margin-bottom: 5px; font-size: 12px; color: #746e68; line-height: 1.35; }
.project-facts strong { font-size: 16px; line-height: 1.35; color: #6b5039; }
.project-facts > .project-facts__status { padding-right: 10px; background: #f6eee5; }
.project-facts__status strong { color: #835b38; }
.project-card__body > p { margin-top: 16px; font-size: 14px; line-height: 1.52; color: #625f5b; }
.projects a:focus-visible,
.projects button:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: -3px; }

.project-gallery {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.project-gallery__eyebrow {
  margin: 0 0 16px;
  color: #6b5039;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.project-gallery__item {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e8e0d8;
}
.project-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.estimate-review__inner {
  min-height: 0;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
  background: transparent;
}
.estimate-review__content { order: 0; padding: 0; }
.estimate-review__lead { margin: 24px 0; font-size: 17px; line-height: 1.55; }
.estimate-check { min-height: 0; padding: 18px 0; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; }
.estimate-check__icon { width: 36px; height: 36px; background: transparent; font-size: 26px; }
.estimate-check__icon svg { width: 28px; height: 28px; }
.estimate-check h3 { font-size: 16px; line-height: 1.4; }
.estimate-check p { font-size: 14px; line-height: 1.55; color: #676a68; }
.estimate-review__action { margin-top: 28px; grid-template-columns: minmax(0, 1fr) 170px; gap: 16px; }
.estimate-upload { min-height: 60px; padding: 10px 14px; gap: 10px; font-size: 15px; font-weight: 500; }
.estimate-upload__clip { flex: 0 0 24px; width: 24px; }
.estimate-review__response { min-height: 52px; padding-left: 16px; gap: 10px; }
.estimate-review__clock { width: 28px; height: 28px; flex-basis: 28px; }
.estimate-review__formats { margin-top: 12px; font-size: 12px; color: #72716e; overflow-wrap: anywhere; }
.estimate-review__action:has(.estimate-file:focus-visible) .estimate-upload { outline: 3px solid var(--accent-dark); outline-offset: 4px; }
.estimate-scene {
  order: 0;
  min-height: 0;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: #eee6dc;
}
.estimate-scene::after { background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 55%); }
.estimate-scene__halo { opacity: .35; }
.estimate-scene__plant { width: 58%; left: -20%; top: -8%; filter: drop-shadow(0 6px 12px rgba(61,49,36,.08)); }
.estimate-scene__stone { width: 34%; filter: drop-shadow(0 6px 12px rgba(83,60,42,.08)); }
.estimate-scene__stone--top { right: 4%; top: 4%; }
.estimate-scene__stone--bottom { left: -12%; bottom: 16%; }
.estimate-scene__notebook { width: 52%; left: -20%; bottom: -4%; filter: drop-shadow(0 8px 14px rgba(61,40,28,.1)); }
.estimate-scene__back-sheet { width: 69%; height: auto; aspect-ratio: 210 / 297; left: 16%; top: 14%; box-shadow: 0 8px 18px rgba(66,48,36,.1); }
.estimate-scene__sheet { width: 69%; max-width: none; left: 19%; top: 16%; filter: drop-shadow(0 10px 16px rgba(62,43,30,.12)); }
.estimate-scene__pen { width: 43%; right: -5%; bottom: 7%; filter: drop-shadow(0 6px 10px rgba(69,46,31,.12)); }

@media (max-width: 1100px) {
  .project-card { grid-template-columns: 1fr; grid-template-rows: 208px 1fr; }
  .project-card__media { height: 208px; }
  .project-stage { inset: 10px 10px 0; }
}

@media (max-width: 1000px) {
  .projects__inner, .estimate-review__inner { width: calc(100% - 48px); }
  .projects__head h2 { font-size: 42px; }
  .estimate-review h2 { font-size: 34px; }
  .estimate-review__inner { gap: 32px; }
  .estimate-review__action { grid-template-columns: 1fr; gap: 12px; }
  .estimate-review__response { min-height: 36px; border-left: 0; padding-left: 0; }
  .estimate-review__response br { display: none; }
  .estimate-upload { width: min(320px, 100%); }
}

@media (max-width: 800px) {
  .projects, .estimate-review { padding: 56px 0; }
  .projects__head { grid-template-columns: 1fr; gap: 12px; }
  .projects__all { justify-self: start; width: auto; }
  .projects__grid { gap: 18px; }
  .project-gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .project-card__body { padding: 20px 20px 22px; }
  .project-card h3 { font-size: 22px; }
  .project-facts strong { font-size: 15px; }
  .project-facts span { font-size: 12px; }
  .estimate-review__inner { grid-template-columns: 1fr; gap: 32px; }
  .estimate-review__content { order: 1; }
  .estimate-scene { order: 2; width: min(480px, 100%); justify-self: center; }
}

@media (max-width: 620px) {
  .projects__inner, .estimate-review__inner { width: calc(100% - 32px); }
  .projects__head h2, .estimate-review h2 { font-size: 32px; }
  .projects__head p { font-size: 16px; }
  .projects__all { width: auto; }
  .projects__grid { grid-template-columns: 1fr; gap: 16px; }
  .project-gallery { margin-top: 36px; }
  .project-gallery__grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
  }
  .project-gallery__item {
    width: min(72vw, 280px);
    flex: 0 0 min(72vw, 280px);
    scroll-snap-align: start;
  }
  .project-card { grid-template-columns: 1fr; grid-template-rows: 224px 1fr; }
  .project-card__media { height: 224px; padding: 0; }
  .project-stage { min-height: 0; height: auto; aspect-ratio: auto; inset: 10px 10px 0; }
  .project-card h3 { font-size: 23px; }
  .project-card__body > p { font-size: 14px; }
  .project-facts strong { font-size: 16px; }
  .estimate-check { gap: 12px; }
  .estimate-upload { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .projects *, .estimate-review * { transition: none !important; }
}
