:root {
  --design-ink: #20201f;
  --design-paper: #f3f1ec;
  --design-warm: #ded6c7;
  --design-brick: #443329;
  --design-wood: #9b6841;
  --design-accent: #ff612f;
  --design-line: rgba(32, 32, 31, 0.18);
}

html {
  scroll-behavior: smooth;
}

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

.design-page .site-header {
  background: rgba(243, 241, 236, 0.92);
}

.design-main {
  overflow: hidden;
}

.design-shell {
  width: min(100% - 64px, 1380px);
  margin-inline: auto;
}

.design-section {
  padding: 120px 0;
}

.design-section-label,
.design-kicker {
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.design-section h2,
.design-cta h2,
.project-offer h2 {
  margin: 0;
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.design-hero,
.design-project-hero {
  position: relative;
  min-height: calc(100svh - 80px);
  color: #fff;
  isolation: isolate;
}

.design-hero__image,
.design-project-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.design-hero__veil,
.design-project-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(12, 14, 13, 0.72) 0%, rgba(12, 14, 13, 0.26) 58%, rgba(12, 14, 13, 0.1) 100%);
}

.design-hero__content {
  display: flex;
  min-height: calc(100svh - 80px);
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding-top: 100px;
  padding-bottom: 72px;
}

.design-hero h1,
.design-project-hero h1 {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(54px, 7.4vw, 112px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.design-hero__lead {
  max-width: 650px;
  margin: 34px 0 0;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.42;
}

.design-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.design-btn {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 2px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

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

.design-btn--accent {
  background: var(--design-accent);
  color: #fff;
}

.design-btn--accent:hover {
  background: #e84f20;
}

.design-btn--glass {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(20, 20, 20, 0.2);
  color: #fff;
  backdrop-filter: blur(10px);
}

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

.design-hero__scroll {
  position: absolute;
  right: 32px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.design-hero__scroll span {
  font-size: 20px;
}

.design-intro__grid,
.project-story__grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2.2fr);
  gap: 64px;
}

.design-intro h2 {
  max-width: 1050px;
}

.design-intro__copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  max-width: 900px;
  margin-top: 52px;
}

.design-intro__copy p,
.project-materials__grid > div > p,
.project-offer__grid > div > p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

.design-featured {
  padding-top: 20px;
}

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

.design-section-head__note {
  max-width: 420px;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.design-text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 5px;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.design-project-card {
  position: relative;
  display: block;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
}

.design-project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.design-project-card:hover img {
  transform: scale(1.025);
}

.design-project-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9, 10, 9, 0.7), transparent 55%);
}

.design-project-card__content {
  position: absolute;
  left: 42px;
  right: 120px;
  bottom: 42px;
  display: flex;
  max-width: 740px;
  flex-direction: column;
  gap: 12px;
}

.design-project-card__content strong {
  font-size: clamp(40px, 5vw, 70px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.design-project-card__content span {
  max-width: 590px;
  font-size: 17px;
  line-height: 1.5;
}

.design-project-card__arrow {
  position: absolute;
  right: 42px;
  bottom: 42px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-size: 25px;
}

.design-paths {
  background: #e6e0d6;
}

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

.design-path-card {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  align-items: flex-start;
  padding: 48px;
}

.design-path-card--light {
  background: #f8f6f1;
}

.design-path-card--dark {
  background: var(--design-ink);
  color: #fff;
}

.design-path-card__number {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.65;
}

.design-path-card h3 {
  margin: auto 0 28px;
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
}

.design-path-card p {
  max-width: 570px;
  margin: 0 0 34px;
  font-size: 16px;
  line-height: 1.6;
}

.design-process {
  background: #fff;
}

.design-steps {
  display: grid;
  margin: 70px 0 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  border-top: 1px solid var(--design-line);
}

.design-steps li {
  min-height: 300px;
  padding: 26px 26px 0 0;
  border-right: 1px solid var(--design-line);
}

.design-steps li + li {
  padding-left: 26px;
}

.design-steps li:last-child {
  border-right: 0;
}

.design-steps span,
.adaptation-grid span {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.55;
}

.design-steps h3,
.adaptation-grid h3 {
  margin: 90px 0 16px;
  font-size: 24px;
  font-weight: 600;
}

.design-steps p,
.adaptation-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.design-cta {
  padding: 150px 0;
  background: var(--design-brick);
  color: #fff;
  text-align: center;
}

.design-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.design-cta p:not(.design-section-label) {
  max-width: 650px;
  margin: 32px auto 0;
  font-size: 17px;
  line-height: 1.6;
}

.design-cta .design-btn {
  margin-top: 38px;
}

.design-project-hero {
  min-height: 820px;
}

.design-project-hero__top {
  padding-top: 34px;
}

.design-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 12px;
  opacity: 0.85;
}

.design-breadcrumbs a:hover {
  text-decoration: underline;
}

.design-project-hero__content {
  position: absolute;
  right: 0;
  bottom: 58px;
  left: 0;
}

.design-project-hero__content > p:not(.design-kicker) {
  margin: 26px 0 0;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.45;
}

.project-story__grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 100px;
}

.project-story__copy p {
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.7;
}

.project-story__copy .project-story__lead {
  font-size: 23px;
  font-weight: 500;
  line-height: 1.45;
}

.project-features {
  display: grid;
  margin-top: 92px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--design-line);
  border-bottom: 1px solid var(--design-line);
}

.project-features span {
  min-height: 96px;
  padding: 35px 24px;
  border-right: 1px solid var(--design-line);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.project-features span:last-child {
  border-right: 0;
}

.project-specs-wrap {
  margin-top: 110px;
}

.project-specs-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
}

.project-specs-heading .design-section-label {
  margin-bottom: 0;
}

.project-specs-heading > p:last-child {
  max-width: 560px;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(32, 32, 31, 0.68);
}

.project-specs {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--design-line);
}

.project-specs > div {
  min-height: 160px;
  padding: 30px 26px 28px 0;
  border-right: 1px solid var(--design-line);
  border-bottom: 1px solid var(--design-line);
}

.project-specs > div:nth-child(4n + 1):not(:first-child) {
  padding-left: 0;
}

.project-specs > div:not(:nth-child(4n + 1)) {
  padding-left: 26px;
}

.project-specs > div:nth-child(4n) {
  border-right: 0;
}

.project-specs dt {
  margin: 0 0 28px;
  font-size: clamp(27px, 2.6vw, 42px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.project-specs dd {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(32, 32, 31, 0.58);
}

.project-gallery-section {
  padding-top: 50px;
  background: #20201f;
  color: #fff;
}

.project-gallery-section .design-section-head__note {
  color: rgba(255, 255, 255, 0.68);
}

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

.design-gallery__item {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #111;
  cursor: zoom-in;
}

.design-gallery__item--wide {
  grid-column: 1 / -1;
}

.design-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.design-gallery__item:hover img {
  transform: scale(1.02);
  opacity: 0.85;
}

.design-gallery__item > span {
  position: absolute;
  right: 18px;
  bottom: 16px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.design-gallery__item:hover > span {
  opacity: 1;
}

.project-materials {
  background: #dfd8cd;
}

.project-materials__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 100px;
}

.project-materials__grid > div > p {
  max-width: 640px;
  margin-top: 36px;
}

.material-list {
  border-top: 1px solid var(--design-line);
}

.material-list article {
  display: grid;
  padding: 26px 0;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 22px;
  border-bottom: 1px solid var(--design-line);
}

.material-swatch {
  display: block;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.material-swatch--stone { background: linear-gradient(135deg, #ece5d8, #c8bcaa); }
.material-swatch--brick { background: repeating-linear-gradient(0deg, #49372e 0 7px, #2e2420 7px 9px); }
.material-swatch--wood { background: repeating-linear-gradient(90deg, #a66f44 0 8px, #7c4e2e 8px 11px); }
.material-swatch--graphite { background: linear-gradient(135deg, #4b4a46, #191a19); }

.material-list h3 {
  margin: 2px 0 8px;
  font-size: 20px;
  font-weight: 600;
}

.material-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.project-adaptation {
  background: #fff;
}

.adaptation-grid {
  display: grid;
  margin-top: 72px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--design-line);
}

.adaptation-grid article {
  min-height: 310px;
  padding: 26px 28px 30px 0;
  border-right: 1px solid var(--design-line);
}

.adaptation-grid article + article {
  padding-left: 28px;
}

.adaptation-grid article:last-child {
  border-right: 0;
}

.adaptation-grid h3 {
  margin-top: 100px;
}

.project-offer {
  padding: 130px 0;
  background: var(--design-brick);
  color: #fff;
}

.project-offer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(350px, 0.8fr);
  gap: 100px;
  align-items: end;
}

.project-offer__grid > div > p {
  color: rgba(255, 255, 255, 0.8);
}

.project-offer .design-btn {
  margin-top: 30px;
}

.project-offer small {
  display: block;
  max-width: 560px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  line-height: 1.5;
}

.design-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  padding: 24px 80px;
  border: 0;
  background: rgba(10, 10, 10, 0.96);
  color: #fff;
}

.design-lightbox::backdrop {
  background: rgba(10, 10, 10, 0.92);
}

.design-lightbox[open] {
  display: grid;
  place-items: center;
}

.design-lightbox figure {
  display: flex;
  width: 100%;
  height: 100%;
  margin: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.design-lightbox figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
}

.design-lightbox figcaption {
  display: flex;
  width: min(100%, 1200px);
  justify-content: space-between;
  gap: 24px;
  padding-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.design-lightbox__close,
.design-lightbox__nav {
  position: fixed;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}

.design-lightbox__close {
  top: 22px;
  right: 24px;
}

.design-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.design-lightbox__nav--prev { left: 20px; }
.design-lightbox__nav--next { right: 20px; }

body.design-lightbox-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .design-project-card {
    min-height: 540px;
  }

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

  .design-steps li:nth-child(2),
  .adaptation-grid article:nth-child(2) {
    border-right: 0;
  }

  .design-steps li:nth-child(n + 3),
  .adaptation-grid article:nth-child(n + 3) {
    border-top: 1px solid var(--design-line);
  }

  .project-materials__grid,
  .project-offer__grid {
    gap: 58px;
  }
}

@media (max-width: 767px) {
  .design-shell {
    width: min(100% - 40px, 1380px);
  }

  .design-section {
    padding: 76px 0;
  }

  .design-section h2,
  .design-cta h2,
  .project-offer h2 {
    font-size: clamp(38px, 11vw, 54px);
    line-height: 1;
  }

  .design-hero,
  .design-hero__content,
  .design-project-hero {
    min-height: calc(100svh - var(--mobile-header-h));
  }

  .design-hero__image,
  .design-project-hero__image {
    object-position: 56% center;
  }

  .design-hero__veil,
  .design-project-hero__shade {
    background: linear-gradient(0deg, rgba(10, 11, 10, 0.8) 0%, rgba(10, 11, 10, 0.16) 75%);
  }

  .design-hero__content {
    padding-top: 72px;
    padding-bottom: 44px;
  }

  .design-hero h1,
  .design-project-hero h1 {
    font-size: clamp(50px, 16vw, 76px);
    line-height: 0.92;
  }

  .design-hero__lead {
    margin-top: 24px;
    font-size: 17px;
  }

  .design-actions,
  .design-actions .design-btn {
    width: 100%;
  }

  .design-hero__scroll {
    display: none;
  }

  .design-intro__grid,
  .project-story__grid,
  .project-materials__grid,
  .project-offer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .design-intro__copy {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 32px;
  }

  .design-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
  }

  .design-project-card {
    min-height: 510px;
  }

  .design-project-card img {
    object-position: 58% center;
  }

  .design-project-card__content {
    right: 24px;
    bottom: 28px;
    left: 24px;
  }

  .design-project-card__content strong {
    font-size: 44px;
  }

  .design-project-card__content span {
    padding-right: 46px;
    font-size: 14px;
  }

  .design-project-card__arrow {
    right: 24px;
    bottom: 28px;
    width: 42px;
    height: 42px;
  }

  .design-paths__grid {
    grid-template-columns: 1fr;
  }

  .design-path-card {
    min-height: 490px;
    padding: 30px;
  }

  .design-path-card h3 {
    font-size: 42px;
  }

  .design-steps,
  .adaptation-grid {
    grid-template-columns: 1fr;
  }

  .design-steps li,
  .adaptation-grid article,
  .design-steps li + li,
  .adaptation-grid article + article {
    min-height: 0;
    padding: 26px 0 38px;
    border-top: 1px solid var(--design-line);
    border-right: 0;
  }

  .design-steps h3,
  .adaptation-grid h3 {
    margin-top: 38px;
  }

  .design-cta,
  .project-offer {
    padding: 88px 0;
  }

  .design-project-hero__top {
    padding-top: 22px;
  }

  .design-project-hero__content {
    bottom: 34px;
  }

  .design-project-hero__content > p:not(.design-kicker) {
    font-size: 17px;
  }

  .project-story__copy .project-story__lead {
    font-size: 20px;
  }

  .project-features {
    margin-top: 54px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-features span {
    padding: 24px 12px;
    min-height: 78px;
    font-size: 12px;
  }

  .project-features span:nth-child(2) {
    border-right: 0;
  }

  .project-features span:nth-child(n + 3) {
    border-top: 1px solid var(--design-line);
  }

  .project-specs-wrap {
    margin-top: 70px;
  }

  .project-specs-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

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

  .project-specs > div,
  .project-specs > div:not(:nth-child(4n + 1)),
  .project-specs > div:nth-child(4n + 1):not(:first-child) {
    min-height: 130px;
    padding: 24px 14px 22px 0;
  }

  .project-specs > div:nth-child(even) {
    padding-left: 18px;
    border-right: 0;
  }

  .project-specs > div:nth-child(odd) {
    border-right: 1px solid var(--design-line);
  }

  .project-specs dt {
    margin-bottom: 20px;
    font-size: 27px;
  }

  .project-specs dd {
    font-size: 10px;
  }

  .design-gallery {
    grid-template-columns: 1fr;
  }

  .design-gallery__item--wide {
    grid-column: auto;
  }

  .design-gallery__item > span {
    display: none;
  }

  .project-materials__grid > div > p {
    margin-top: 24px;
  }

  .material-list article {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .material-swatch {
    width: 54px;
    height: 54px;
  }

  .design-lightbox {
    padding: 68px 12px 48px;
  }

  .design-lightbox__nav {
    top: auto;
    bottom: 12px;
    transform: none;
  }

  .design-lightbox__nav--prev { left: 12px; }
  .design-lightbox__nav--next { right: 12px; }
  .design-lightbox__close { top: 12px; right: 12px; }
  .design-lightbox figcaption { padding-inline: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .design-btn,
  .design-project-card img,
  .design-gallery__item img {
    transition: none;
  }
}
