.products-page .home-section,
.cabinet-single .home-section {
  padding-block: var(--warmmile-section-space);
}

.products-page .breadcrumb,
.cabinet-single .breadcrumb {
  padding-block: var(--warmmile-space-3);
}

.products-page .breadcrumb ol,
.cabinet-single .breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0;
  color: var(--warmmile-color-muted-text);
  font-size: 0.92rem;
  gap: 8px;
  list-style: none;
}

.products-page .breadcrumb li:not(:last-child)::after,
.cabinet-single .breadcrumb li:not(:last-child)::after {
  margin-left: 8px;
  color: rgba(36, 61, 53, 0.42);
  content: "/";
}

.products-page .breadcrumb a,
.cabinet-single .breadcrumb a {
  color: var(--warmmile-color-primary-text);
}

.products-page .breadcrumb [aria-current="page"],
.cabinet-single .breadcrumb [aria-current="page"] {
  color: var(--warmmile-color-muted-text);
}

.products-hero,
.cabinet-single-hero {
  background: var(--warmmile-color-warm-background);
}

.products-hero__inner,
.cabinet-single-hero__inner {
  display: grid;
  align-items: center;
  min-height: 500px;
  padding-block: var(--warmmile-space-6);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.5fr);
  gap: clamp(48px, 7vw, 96px);
}

.products-hero__content,
.cabinet-single-hero__content {
  max-width: 790px;
}

.products-hero h1,
.cabinet-single-hero h1 {
  max-width: 820px;
  margin-bottom: var(--warmmile-space-3);
  font-size: clamp(3.2rem, 5.35vw, 5.35rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.products-hero__content > p:last-child,
.cabinet-single-hero__content > p:last-child {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--warmmile-color-muted-text);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.7;
}

.products-hero__geometry {
  position: relative;
  width: min(100%, 350px);
  height: 320px;
  justify-self: end;
  isolation: isolate;
}

.products-hero__geometry::before,
.products-hero__geometry::after {
  position: absolute;
  z-index: 4;
  display: block;
  content: "";
}

.products-hero__geometry::before {
  top: 8%;
  left: 5%;
  width: 42px;
  height: 12px;
  background: var(--warmmile-color-accent);
}

.products-hero__geometry::after {
  right: 3%;
  bottom: 4%;
  width: 18px;
  height: 18px;
  background: var(--warmmile-color-primary-text);
}

.products-hero__plane {
  position: absolute;
  border: 2px solid var(--warmmile-color-primary-text);
  background: var(--warmmile-color-warm-background);
}

.products-hero__plane::after {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(36, 61, 53, 0.3);
  content: "";
}

.products-hero__plane--rear {
  top: 21%;
  left: 4%;
  width: 38%;
  height: 70%;
  z-index: 1;
}

.products-hero__plane--middle {
  top: 5%;
  left: 31%;
  width: 39%;
  height: 88%;
  border-color: var(--warmmile-color-accent);
  background: rgba(166, 97, 70, 0.1);
  z-index: 3;
}

.products-hero__plane--middle::after {
  border-color: rgba(166, 97, 70, 0.46);
}

.products-hero__plane--front {
  top: 14%;
  right: 3%;
  width: 35%;
  height: 80%;
  background: rgba(255, 255, 255, 0.5);
  z-index: 2;
}

.products-intro__inner,
.cabinet-overview__inner {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(48px, 10vw, 150px);
}

.products-intro h2,
.cabinet-overview h2,
.cabinet-information h2 {
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  letter-spacing: -0.03em;
}

.products-intro__copy,
.cabinet-overview__content,
.cabinet-information article p {
  color: var(--warmmile-color-muted-text);
  font-size: clamp(1.05rem, 1.7vw, 1.22rem);
  line-height: 1.75;
}

.products-intro__copy > *:last-child,
.cabinet-overview__content > *:last-child,
.cabinet-information article > *:last-child {
  margin-bottom: 0;
}

.product-choices {
  border-top: 1px solid var(--warmmile-color-border);
}

.product-choices__steps {
  display: grid;
  padding: 0;
  border-top: 1px solid var(--warmmile-color-primary-text);
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.product-choices__steps li {
  min-height: 280px;
  padding: var(--warmmile-space-4);
  border-right: 1px solid var(--warmmile-color-border);
}

.product-choices__steps li:first-child {
  padding-left: 0;
}

.product-choices__steps li:last-child {
  border-right: 0;
}

.product-choices__steps span {
  display: block;
  margin-bottom: var(--warmmile-space-5);
  color: var(--warmmile-color-accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.product-choices__steps h3 {
  max-width: 290px;
  font-size: clamp(1.45rem, 2.4vw, 2.05rem);
}

.product-choices__steps p {
  max-width: 320px;
  margin-bottom: 0;
  color: var(--warmmile-color-muted-text);
}

.cabinet-styles,
.related-cabinets {
  background: var(--warmmile-color-warm-background);
}

.cabinet-styles__empty {
  display: grid;
  align-items: center;
  padding: clamp(32px, 5vw, 64px);
  border-left: 4px solid var(--warmmile-color-accent);
  background: var(--warmmile-color-clean-background);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--warmmile-space-5);
}

.cabinet-styles__empty p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--warmmile-color-muted-text);
  font-family: var(--warmmile-font-heading);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.35;
}

.cabinet-styles__grid,
.product-projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--warmmile-space-3);
}

.cabinet-card,
.product-project-card {
  min-width: 0;
}

.cabinet-card > a,
.product-project-card > a {
  display: flex;
  height: 100%;
  min-height: 320px;
  border: 1px solid var(--warmmile-color-border);
  border-radius: var(--warmmile-radius-card);
  overflow: hidden;
  background: var(--warmmile-color-clean-background);
  color: var(--warmmile-color-primary-text);
  flex-direction: column;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.cabinet-card > a:hover,
.cabinet-card > a:focus-visible,
.product-project-card > a:hover,
.product-project-card > a:focus-visible {
  border-color: var(--warmmile-color-accent);
  transform: translateY(-2px);
}

.cabinet-card__image,
.product-project-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--warmmile-color-warm-background);
}

.cabinet-card__image img,
.product-project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cabinet-card__content,
.product-project-card__content {
  display: flex;
  height: 100%;
  padding: var(--warmmile-space-4);
  flex-direction: column;
}

.cabinet-card h3,
.product-project-card h3 {
  font-size: clamp(1.6rem, 2.4vw, 2.15rem);
}

.cabinet-card p {
  color: var(--warmmile-color-muted-text);
}

.cabinet-card__content > span,
.product-project-card__content > span {
  margin-top: auto;
  padding-top: var(--warmmile-space-4);
  color: var(--warmmile-color-accent);
  font-weight: 750;
}

.cabinet-dimensions {
  background: var(--warmmile-color-clean-background);
}

.cabinet-dimensions .section-heading > p:last-child {
  max-width: 680px;
  color: var(--warmmile-color-muted-text);
  font-size: 1.1rem;
}

.cabinet-dimensions__grid {
  display: grid;
  border-top: 1px solid var(--warmmile-color-primary-text);
  grid-template-columns: repeat(4, 1fr);
}

.cabinet-dimensions__grid article {
  min-width: 0;
  padding: var(--warmmile-space-4);
  border-right: 1px solid var(--warmmile-color-border);
}

.cabinet-dimensions__grid article:first-child {
  padding-left: 0;
}

.cabinet-dimensions__grid article:last-child {
  border-right: 0;
}

.cabinet-dimensions__grid h3 {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
}

.cabinet-dimensions__grid p {
  margin-bottom: 0;
  color: var(--warmmile-color-muted-text);
}

.product-design-cta {
  background: var(--warmmile-color-warm-background);
}

.product-design-cta__inner,
.product-final-cta__inner {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--warmmile-space-6);
}

.product-design-cta h2,
.product-final-cta h2 {
  font-size: clamp(2.5rem, 4.8vw, 4.65rem);
  letter-spacing: -0.03em;
}

.product-design-cta p:not(.section-eyebrow),
.product-final-cta p:not(.section-eyebrow) {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--warmmile-color-muted-text);
  font-size: 1.1rem;
}

.product-design-cta__actions {
  display: flex;
  align-items: stretch;
  gap: var(--warmmile-space-2);
}

.product-projects {
  border-top: 1px solid var(--warmmile-color-border);
}

.product-final-cta {
  background: var(--warmmile-color-dark-background);
  color: var(--warmmile-color-clean-background);
}

.product-final-cta h2 {
  color: var(--warmmile-color-clean-background);
}

.product-final-cta p:not(.section-eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.cabinet-single-hero__image {
  width: min(100%, 420px);
  aspect-ratio: 4 / 3;
  justify-self: end;
  overflow: hidden;
  border-radius: var(--warmmile-radius-large);
  background: var(--warmmile-color-clean-background);
}

.cabinet-single-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cabinet-single-hero__geometry {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1 / 1;
  justify-self: end;
}

.cabinet-single-hero__geometry span {
  position: absolute;
  inset: 8% 22% 8% 0;
  border: 2px solid var(--warmmile-color-primary-text);
}

.cabinet-single-hero__geometry span:last-child {
  inset: 22% 0 0 28%;
  border-color: var(--warmmile-color-accent);
  background: rgba(166, 97, 70, 0.08);
}

.cabinet-overview__content > * + * {
  margin-top: var(--warmmile-space-3);
}

.cabinet-overview__content h2,
.cabinet-overview__content h3 {
  margin-top: var(--warmmile-space-5);
}

.cabinet-overview__content ul,
.cabinet-overview__content ol {
  padding-left: 1.35em;
}

.cabinet-information {
  background: var(--warmmile-color-warm-background);
}

.cabinet-information__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 8vw, 112px);
}

.cabinet-information article {
  min-width: 0;
}

@media (max-width: 1099px) {
  .products-hero__inner,
  .cabinet-single-hero__inner {
    min-height: 450px;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.46fr);
    gap: clamp(32px, 5vw, 56px);
  }

  .products-hero__geometry {
    width: min(100%, 300px);
    height: 272px;
  }

  .product-choices__steps li {
    min-height: 300px;
  }

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

  .cabinet-dimensions__grid article:nth-child(2) {
    border-right: 0;
  }

  .cabinet-dimensions__grid article:nth-child(n + 3) {
    border-top: 1px solid var(--warmmile-color-border);
  }

  .cabinet-dimensions__grid article:nth-child(3) {
    padding-left: 0;
  }

  .cabinet-styles__grid,
  .product-projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .products-page .breadcrumb,
  .cabinet-single .breadcrumb {
    padding-block: var(--warmmile-space-2);
  }

  .products-hero__inner,
  .cabinet-single-hero__inner,
  .products-intro__inner,
  .cabinet-overview__inner,
  .cabinet-information__inner,
  .product-design-cta__inner,
  .product-final-cta__inner,
  .cabinet-styles__empty {
    grid-template-columns: 1fr;
  }

  .products-hero__inner,
  .cabinet-single-hero__inner {
    min-height: 0;
    padding-block: var(--warmmile-space-5);
    gap: var(--warmmile-space-4);
  }

  .products-hero h1,
  .cabinet-single-hero h1 {
    font-size: clamp(2.65rem, 11.5vw, 3.65rem);
  }

  .products-hero__geometry {
    width: min(100%, 280px);
    height: 232px;
    justify-self: center;
  }

  .cabinet-single-hero__geometry {
    width: 210px;
    justify-self: start;
  }

  .cabinet-single-hero__image {
    width: 100%;
    justify-self: stretch;
  }

  .products-intro__inner,
  .cabinet-overview__inner,
  .cabinet-information__inner {
    gap: var(--warmmile-space-4);
  }

  .product-choices__steps,
  .cabinet-styles__grid,
  .product-projects__grid,
  .cabinet-dimensions__grid {
    grid-template-columns: 1fr;
  }

  .product-choices__steps li,
  .product-choices__steps li:first-child {
    min-height: 0;
    padding: var(--warmmile-space-4) 0;
    border-right: 0;
    border-bottom: 1px solid var(--warmmile-color-border);
  }

  .product-choices__steps span {
    margin-bottom: var(--warmmile-space-3);
  }

  .cabinet-styles__empty {
    align-items: start;
    gap: var(--warmmile-space-4);
  }

  .cabinet-styles__empty .button {
    width: 100%;
  }

  .cabinet-card > a,
  .product-project-card > a {
    min-height: 0;
  }

  .cabinet-dimensions__grid article,
  .cabinet-dimensions__grid article:first-child,
  .cabinet-dimensions__grid article:nth-child(3) {
    padding: var(--warmmile-space-4) 0;
    border-top: 1px solid var(--warmmile-color-border);
    border-right: 0;
  }

  .cabinet-dimensions__grid article:first-child {
    border-top-color: var(--warmmile-color-primary-text);
  }

  .product-design-cta__inner,
  .product-final-cta__inner {
    align-items: start;
    gap: var(--warmmile-space-4);
  }

  .product-design-cta__actions {
    width: 100%;
    flex-direction: column;
  }

  .product-design-cta__actions .button,
  .product-final-cta .button {
    width: 100%;
  }
}
