* {
  box-sizing: border-box;
}
:root {
  --ink: #202022;
  --muted: #646368;
  --line: #dedde0;
  --soft: #f7f6f6;
  --pink: #f78bb0;
  --darkpink: #973052;
  color-scheme: light;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 18px;
}
body {
  margin: 0;
  background: white;
  color: var(--ink);
  font:
    16px/1.55 'Segoe UI',
    Arial,
    sans-serif;
}
h1,
h2,
h3,
.brand,
.model-card strong,
.offer-copy strong {
  font-family: 'Century Gothic', 'Segoe UI', Arial, sans-serif;
}
h1,
h2,
h3,
p,
figure,
blockquote {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(1.85rem, 3.4vw, 3.25rem);
}
h3 {
  font-size: 1.18rem;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button,
a {
  touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--darkpink);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
.wrap {
  width: min(1440px, calc(100% - clamp(32px, 7.2vw, 136px)));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 8px;
  z-index: 5;
  background: white;
  padding: 4px;
}
.mast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
  letter-spacing: -0.075em;
  font-size: clamp(1.65rem, 2.3vw, 2.2rem);
  line-height: 1;
}
.brand span {
  font-weight: 400;
}
.brand i {
  width: 0.19em;
  height: 0.19em;
  background: var(--pink);
  margin-left: 0.09em;
}
.mast nav {
  display: flex;
  gap: clamp(16px, 2.6vw, 44px);
  align-items: center;
  font-size: 0.93rem;
}
.mast nav a:hover,
footer a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  align-items: center;
  gap: clamp(25px, 5.4vw, 90px);
  padding-block: clamp(30px, 4vw, 72px);
}
.hero h1 {
  font-size: clamp(2.45rem, 4.15vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
}
.hero-copy p {
  color: var(--muted);
  margin: 1rem 0 1.65rem;
  max-width: 46ch;
  font-size: clamp(0.98rem, 1.13vw, 1.2rem);
}
.hero-piece {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  min-width: 0;
}
.hero-piece img {
  display: block;
  width: 100%;
  height: clamp(200px, 21.4vw, 330px);
  object-fit: cover;
  object-position: center;
}
.hero-sizes {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 8px 14px;
  font-size: 0.81rem;
}
.hero-sizes span {
  margin-right: auto;
  font-weight: 600;
}
.hero-sizes button {
  color: var(--muted);
  background: none;
  border: 0;
  padding: 4px;
}
.hero-sizes button:hover {
  color: var(--darkpink);
  text-decoration: underline;
}
.button,
.secondary,
.paging button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.62rem 1rem;
  min-height: 42px;
  border-radius: 3px;
  font-weight: 550;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}
.button {
  color: white;
  background: #202022;
  border-color: #202022;
}
.button:hover {
  background: #39383b;
}
.button span {
  color: var(--pink);
}
.secondary:hover,
.paging button:hover {
  border-color: var(--ink);
}
.section {
  padding-block: clamp(35px, 4.2vw, 70px);
}
#models {
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: clamp(16px, 2.15vw, 32px);
}
.section-head p {
  margin-top: 0.52rem;
  color: var(--muted);
  max-width: 64ch;
}
.filter {
  display: grid;
  gap: 0.18rem;
  color: var(--muted);
  font-size: 0.78rem;
  min-width: 155px;
}
.filter select {
  padding: 0.46rem 0.6rem;
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.catalog,
.offer-grid,
.review-grid,
.story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 22px);
}
.model-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  min-width: 0;
  transition: border-color 0.16s;
}
.model-card:hover,
.model-card:focus-visible {
  border-color: #454448;
}
.sample {
  width: 100%;
  aspect-ratio: 1.78;
  overflow: hidden;
}
.sample img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
  transition: transform 0.27s;
}
.model-card:hover img {
  transform: scale(1.03);
}
.model-card strong,
.model-card small {
  padding: 0 clamp(13px, 1.6vw, 24px);
}
.model-card strong {
  margin-top: 0.9rem;
  font-size: clamp(1.02rem, 1.5vw, 1.45rem);
  font-weight: 500;
  line-height: 1.23;
}
.model-card small {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.45rem 0 1.2rem;
}
.card-action {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem clamp(13px, 1.6vw, 24px);
  border-top: 1px solid #efedef;
  font-size: 0.87rem;
}
.card-action span {
  font-size: 1.1rem;
}
.model-card:is(:hover, :focus-visible) .card-action {
  background: #19191b;
  color: #fff;
}
.model-card:is(:hover, :focus-visible) .card-action span {
  color: var(--pink);
}
#more,
#more-reviews {
  display: flex;
  margin: 1.35rem auto 0;
}
.offer-card {
  width: 100%;
  min-width: 0;
  border: 0;
  position: relative;
  min-height: 230px;
  aspect-ratio: 1.37;
  border-radius: 4px;
  overflow: hidden;
  background: #302e32;
  padding: 0;
  text-align: left;
  color: white;
}
.offer-card img,
.offer-card:after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.offer-card:after {
  content: '';
  background: linear-gradient(180deg, transparent 28%, #15101852 53%, #0b090be8);
}
.offer-copy {
  position: absolute;
  inset: auto clamp(15px, 1.5vw, 24px) 1.05rem;
  display: grid;
  gap: 0.38rem;
  z-index: 1;
}
.offer-copy strong {
  font-size: clamp(1.2rem, 1.7vw, 1.65rem);
  font-weight: 500;
  line-height: 1.13;
}
.offer-copy > span {
  font-size: 0.87rem;
  color: #f3edf1;
}
.offer-copy .offer-more {
  width: max-content;
  border-bottom: 1px solid #f4a9c5;
}
.offer-card:hover .offer-more {
  color: #ffc9de;
}
.showcase,
.reviews-section {
  background: var(--soft);
}
.paging {
  display: flex;
  gap: 6px;
}
.paging button {
  min-height: 35px;
  padding: 0.27rem 0.65rem;
  font-size: 0.9rem;
}
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #c0bcc0 transparent;
}
.gallery figure {
  scroll-snap-align: start;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  display: block;
  object-fit: cover;
  border-radius: 4px;
}
.gallery figcaption {
  font-weight: 500;
  padding-top: 0.5rem;
}
.steps {
  list-style: none;
  counter-reset: n;
  display: grid;
  gap: 17px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 0;
  margin: 1.4rem 0 0;
}
.steps li {
  counter-increment: n;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}
.steps li:before {
  content: counter(n, decimal-leading-zero);
  font-size: 0.86rem;
  color: var(--darkpink);
}
.steps h3 {
  font-size: 1.04rem;
  margin: 0.5rem 0;
}
.steps p,
.story-grid p {
  font-size: 0.94rem;
  color: var(--muted);
}
.workshop-story {
  border-top: 1px solid var(--line);
}
.story-grid,
.review-grid {
  margin-top: 1.5rem;
}
.story-grid article {
  padding-right: 1.1rem;
}
.story-grid h3 {
  margin-bottom: 0.65rem;
}
.review-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 4px;
  padding: 1rem;
  align-self: start;
}
.review-card header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.stars {
  color: #a63b61;
  letter-spacing: 2px;
  font-size: 0.88rem;
}
.review-card blockquote {
  white-space: pre-line;
  overflow-wrap: anywhere;
  margin-top: 0.6rem;
  color: #3f3d41;
}
.review-card.condensed blockquote {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-card small {
  color: var(--muted);
  display: block;
  margin: 0.75rem 0 0;
}
.text-button,
.close {
  color: var(--darkpink);
  border: 0;
  background: transparent;
  padding: 0.35rem 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-block: 1.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}
dialog {
  color: var(--ink);
  background: white;
  width: min(1030px, 96vw);
  max-height: 94dvh;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: clamp(16px, 2.4vw, 32px);
  overflow: auto;
}
dialog::backdrop {
  background: #18171aaa;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: clamp(1.4rem, 2.7vw, 2.2rem);
}
.close {
  color: var(--muted);
  margin-left: auto;
  display: block;
}
.designer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
}
.designer-head small {
  color: var(--muted);
}
.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(245px, 1fr);
  gap: clamp(15px, 2.9vw, 42px);
  align-items: start;
}
.buyer-art {
  width: 100%;
  aspect-ratio: 1.65;
  display: grid;
  place-items: center;
  padding: clamp(12px, 2vw, 26px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fcfafb url('/catalog/studio.webp') center/cover;
}
.buyer-art.facade {
  background-image: url('/catalog/facade.webp');
}
.buyer-art svg {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  filter: drop-shadow(1px 4px 3px #2d232327);
}
.backdrops {
  display: flex;
  gap: 4px;
  margin: 0.55rem 0;
}
.backdrops button {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: white;
  color: var(--muted);
  padding: 0.25rem 0.65rem;
  font-size: 0.81rem;
}
.backdrops button[aria-pressed='true'] {
  color: var(--ink);
  border-color: var(--ink);
}
.order-grid p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.55rem 0;
}
.address {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 0.6rem;
}
.order-grid label,
#share-box label {
  display: grid;
  gap: 0.24rem;
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
}
form input,
form select,
form textarea,
#share-url {
  min-width: 0;
  width: 100%;
  padding: 0.49rem 0.6rem;
  border-radius: 3px;
  border: 1px solid #c4c1c7;
  background: white;
  color: var(--ink);
}
textarea {
  resize: vertical;
}
.buyer-size {
  border-block: 1px solid var(--line);
  padding: 0.5rem 0;
  margin: 0.7rem 0;
}
.buyer-size summary {
  cursor: pointer;
  font-size: 0.93rem;
}
.buyer-size[open] summary {
  margin-bottom: 0.7rem;
}
.buyer-scale {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  margin: 0.35rem 0 0.5rem;
}
.buyer-art img.offline-example {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.buyer-size .buyer-scale label {
  display: block;
  margin: 0;
}
.buyer-scale output {
  color: var(--darkpink);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.buyer-scale input[type="range"] {
  grid-column: 1 / -1;
  height: 2.25rem;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  accent-color: var(--darkpink);
  cursor: pointer;
}
.buyer-scale input:disabled {
  opacity: 0.5;
  cursor: default;
}
.order-grid #fit-help p {
  background: #fff2f6;
  color: #6e233c;
  padding: 0.42rem 0.55rem;
}
.checkout-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
#checkout h3 {
  margin-bottom: 0.8rem;
}
#share-box {
  border-block: 1px solid var(--line);
  padding: 0.65rem 0;
  margin: 0.7rem 0;
}
#thanks,
#offer-details {
  max-width: 530px;
}
#offer-details img {
  width: 100%;
  max-height: 165px;
  object-fit: cover;
  display: block;
  margin: 0.5rem 0 1rem;
  border-radius: 3px;
}
#thanks p,
#offer-details p {
  margin: 0.65rem 0 1rem;
}
@media (max-width: 940px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .offer-card {
    min-height: 215px;
  }
  .mast nav {
    gap: 15px;
  }
  .wrap {
    width: calc(100% - 44px);
  }
}
@media (max-width: 740px) {
  .mast {
    min-height: 68px;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 0;
  }
  .mast nav {
    gap: 6px 14px;
    flex-wrap: wrap;
    font-size: 0.8rem;
  }
  .hero {
    gap: 18px;
  }
  .hero h1 {
    font-size: clamp(2rem, 5.5vw, 2.9rem);
  }
  .hero-piece img {
    height: 177px;
  }
  .hero-sizes {
    gap: 3px 6px;
  }
  .hero-sizes span {
    flex-basis: 100%;
  }
  .catalog,
  .offer-grid,
  .review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
  .gallery {
    grid-auto-columns: 70%;
  }
  .order-grid {
    grid-template-columns: 1fr;
  }
  .buyer-art {
    max-height: 230px;
    aspect-ratio: 2.3;
  }
  .preview-col {
    min-width: 0;
  }
}
@media (max-width: 540px) {
  .wrap {
    width: calc(100% - 28px);
  }
  .mast {
    gap: 10px;
  }
  .mast .brand {
    font-size: 1.65rem;
  }
  .mast nav {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
    font-size: 0.73rem;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .hero h1 {
    font-size: 2.45rem;
  }
  .hero-copy p {
    margin: 0.67rem 0 0.85rem;
  }
  .hero-piece img {
    height: 152px;
  }
  .hero-sizes span {
    flex-basis: auto;
  }
  .section-head {
    align-items: start;
    flex-wrap: wrap;
  }
  .catalog {
    gap: 8px;
  }
  .model-card strong {
    font-size: 1.01rem;
    margin-top: 0.55rem;
  }
  .model-card small {
    font-size: 0.76rem;
    margin: 0.35rem 0 0.7rem;
  }
  .card-action {
    font-size: 0.8rem;
  }
  .model-card strong,
  .model-card small,
  .card-action {
    padding-inline: 9px;
  }
  .sample {
    aspect-ratio: 1.38;
  }
  .sample img {
    object-fit: contain;
  }
  .offer-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }
  .offer-card {
    aspect-ratio: 1.87;
    min-height: 0;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .gallery {
    grid-auto-columns: 83%;
  }
  .section {
    padding-block: 33px;
  }
  .buyer-art {
    aspect-ratio: 2.45;
    padding: 8px;
  }
  .designer-head {
    margin-bottom: 0.5rem;
  }
  .order-grid {
    gap: 0.55rem;
  }
  .backdrops button {
    font-size: 0.76rem;
  }
  .address {
    grid-template-columns: 1.65fr 1fr;
  }
  footer {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
  }
}

.buyer-art {
  position: relative;
}
.buyer-art svg {
  position: absolute;
  inset: 5%;
  width: 90%;
  height: 90%;
}
.buyer-art.brick {
  background: #a85537 url('/gallery/brick-1nf.webp') repeat center;
  background-size: var(--brick-tile-w) var(--brick-tile-h);
}
.buyer-art.brick svg {
  inset: auto;
  left: var(--plaque-left);
  top: var(--plaque-top);
  width: var(--plaque-w);
  height: var(--plaque-h);
}
.backdrops {
  flex-wrap: wrap;
}
.backdrops button:disabled {
  opacity: 0.55;
  cursor: default;
}
#brick-note {
  margin: 0.5rem 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

#referral-label {
  margin: 0.45rem 0 0.8rem;
  font-size: 0.87rem;
  color: var(--muted);
}
#referral-label summary {
  cursor: pointer;
}
#referral-label label {
  margin: 0.4rem 0 0;
}
