@font-face {
  font-family: "TikTok Expanded";
  src: url("TikTokSans24ptExpandedRegular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "TikTok Expanded";
  src: url("TikTokSans24ptExpandedMediumRegular.ttf") format("truetype");
  font-weight: 500 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #292927;
  --paper: #f1eee8;
  --surface: #fdfcf9;
  --muted: #625e57;
  --line: #dcd6cc;
  --accent: #884938;
  --button: #30302e;
  --button-hover: #4b4a46;
  --heading: "TikTok Expanded", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f8f6f1; color: var(--ink); font: 16px/1.55 system-ui, sans-serif; }
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; }
h2 { font-size: clamp(29px, 3.65vw, 54px); }
h3 { font-size: clamp(21px, 2vw, 30px); }
a { color: inherit; text-underline-offset: .25em; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 95px; }
.wrap { width: min(1380px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 10px; background: var(--surface); color: var(--ink); padding: 10px; transform: translateY(-160%); z-index: 5; }
.skip:focus { transform: none; }
.header { position: sticky; top: 0; z-index: 4; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 75px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-block; flex-shrink: 0; }
.brand img { width: clamp(120px, 16vw, 200px); }
.header nav { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: clamp(18px, 3vw, 44px); white-space: nowrap; font-size: 15px; }
.header nav a { text-decoration: none; }
.header nav a:hover { color: var(--accent); }
.header nav .header__callback { font-weight: 650; text-decoration: underline; }
.header__contacts { display: grid; justify-items: end; flex-shrink: 0; font-size: 13px; line-height: 1.45; }
.header__contacts a { text-decoration: none; white-space: nowrap; }
.header__contacts a:first-child { font-weight: 650; }
.header__contacts a:hover, .form-contact a:hover { color: var(--accent); }
.header__contacts svg, .header__callback-mobile, .mobile-carousel { display: none; }
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-copy { padding-block: clamp(58px, 7.7vw, 118px); text-align: center; }
.eyebrow { font: 500 11px/1.4 var(--heading); letter-spacing: .11em; color: var(--accent); margin-bottom: 15px; }
.hero .eyebrow { color: var(--muted); margin-bottom: clamp(18px, 2vw, 30px); }
.hero .eyebrow span { color: var(--accent); }
.hero h1 { font-size: clamp(23px, 6.7vw, 105px); line-height: 1.02; text-transform: uppercase; }
.hero-description { max-width: 54ch; color: var(--muted); margin: clamp(19px, 2.6vw, 35px) auto 26px; font-size: clamp(16px, 1.45vw, 19px); }
.hero-meta { margin: 17px auto 0; color: var(--muted); font-size: 13px; }
.hero__button {
  border: 1px solid var(--button);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 12px 20px;
  background: var(--button);
  color: #fff;
  font: 500 14px/1.3 var(--heading);
  text-align: center;
  text-decoration: none;
  transition: background-color .18s, border-color .18s;
}
.hero__button:hover { background: var(--button-hover); border-color: var(--button-hover); }
.hero__button:disabled { opacity: .6; cursor: wait; }
.hero__button.outline { background: transparent; border-color: currentColor; color: inherit; }
.hero__button.outline:hover { background: #2929270d; }
.section, .companions, .showroom { padding-block: clamp(48px, 6vw, 92px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px 38px; margin-bottom: 30px; }
.section-heading > p { max-width: 29ch; color: var(--muted); }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 27px); }
.product { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); }
.card-image { display: block; position: relative; }
.card-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card-image span { position: absolute; bottom: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; background: #30302ee8; color: #fff; font-size: 20px; }
.thumbs { display: flex; align-items: center; gap: 7px; padding: 9px 12px 0; }
.thumb { display: block; width: 19%; max-width: 70px; border: 1px solid var(--line); }
.thumb:hover { border-color: var(--accent); }
.thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: clamp(14px, 1.7vw, 25px); }
.product-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; }
.product-meta p { color: var(--muted); font-size: 13px; }
.product-meta strong { color: var(--ink); white-space: nowrap; }
.status { padding: 4px 7px; color: #724d2e; background: #f3e9db; font-size: 11px; }
[data-status="available"] .status { background: #e8f0e3; color: #355134; }
[data-status="reserved"] .status { background: #e9e8f0; color: #4e4562; }
[data-status="sold"] .status { background: #f3e3df; color: #733d34; }
.product-description { color: var(--ink); margin-block: 14px; font-size: 14px; }
.stock-note { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.stock-note a:hover { color: var(--accent); }
details { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
summary { cursor: pointer; }
details dl { margin-block: 10px; }
details dl > div { display: grid; grid-template-columns: 1fr 1.8fr; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); }
details dd { color: var(--ink); }
.product-price { margin-top: auto; border-top: 1px solid var(--line); margin-bottom: 17px; }
.product-price dt { color: var(--muted); font-size: 13px; }
.roll-price { padding-block: 12px; }
.product-price strong, .pair-price strong { display: block; font: 500 clamp(25px, 3vw, 42px)/1.16 var(--heading); letter-spacing: -.055em; margin-block: 5px; }
.meter-price { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.meter-price dd { font-size: 14px; font-weight: 600; white-space: nowrap; }
.meter-price sup { margin-left: 2px; }
.meter-note { color: var(--muted); font-size: 12px; margin: -7px 0 15px; }
.meter-note span { color: var(--accent); }
.product-action { width: 100%; font-size: 12px; }
.companions, .showroom { background: var(--paper); }
.pair-grid, .showroom-grid, .order-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: clamp(26px, 5vw, 74px); }
.pair-grid { align-items: center; }
.pair-copy { grid-column: 2; grid-row: 1; }
.pair-figure {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}
.sofa-scene { display: block; width: 100%; height: auto; }
.sofa-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  padding: 14px 12px;
  font-size: 13px;
}
.sofa-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sofa-legend img { width: clamp(44px, 4.3vw, 58px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; flex-shrink: 0; }

.pair-grid h2 + p, .showroom h2 + p { margin-top: 20px; max-width: 55ch; }
.pair-price { margin-block: 19px; }
.pair-price span { font-size: 14px; }
.steps { list-style: none; counter-reset: steps; padding: 0; margin: 24px 0 0; }
.steps li { display: grid; grid-template-columns: 32px 1fr; border-top: 1px solid var(--line); padding-block: 13px; column-gap: 12px; counter-increment: steps; }
.steps li::before { grid-row: span 2; content: counter(steps, decimal-leading-zero); font: 500 12px/1.8 var(--heading); color: var(--accent); }
.steps strong { font: 500 17px/1.3 var(--heading); }
.steps span { color: var(--muted); font-size: 14px; margin-top: 4px; }
.form-panel { background: var(--surface); border: 1px solid var(--line); padding: clamp(17px, 3vw, 38px); min-width: 0; }
.form-panel > p { margin-block: 12px 20px; color: var(--muted); font-size: 14px; }
.form-panel > .form-contact { margin-block: 16px 0; }
form { display: grid; gap: 15px; }
form label { font-size: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.form-row label { min-width: 0; }
input:not([type="checkbox"]) { width: 100%; display: block; margin-top: 5px; background: #fff; color: var(--ink); border: 1px solid #a8a095; padding: 10px; border-radius: 0; }
fieldset { margin: 0; border: 1px solid #a8a095; padding: 8px 12px; min-width: 0; }
legend { padding-inline: 4px; font-size: 14px; }
.choice { display: flex; align-items: start; gap: 8px; padding-block: 4px; }
.choice input { margin: .3em 0 0; accent-color: var(--button); width: 16px; height: 16px; flex-shrink: 0; }
.consent { color: var(--muted); }
.trap { display: none; }
#form-feedback { font-size: 14px; color: #31552f; }
#form-feedback[data-error] { color: #923b32; }
.address { padding: clamp(16px, 2.6vw, 35px); border: 1px solid #c9c0b2; }
address { font-style: normal; margin-block: 11px; }
.address p { font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.conditions ul { display: grid; gap: 8px; padding-left: 19px; margin-bottom: 0; color: var(--ink); }
.conditions li::marker { color: var(--accent); }
.more { background: var(--paper); border-block: 1px solid var(--line); padding-block: 36px; }
.more .section-heading { margin-bottom: 0; align-items: center; }
.more h2 { font-size: clamp(24px, 3vw, 40px); }
.more p { color: var(--muted); margin-top: 9px; }
.more-links { display: grid; justify-items: start; gap: 10px; flex-shrink: 0; font-size: 14px; }
.more-links > a:not(.hero__button) { color: var(--muted); }
.more-links > a:not(.hero__button):hover { color: var(--accent); }
.footer { padding-block: 35px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; color: var(--muted); font-size: 12px; }
.footer .brand img { width: 140px; }
html:has(.lightbox[open]) { overflow: hidden; scrollbar-gutter: stable; }

.lightbox {
  --gallery-edge: clamp(42px, 6vw, 96px);
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(48px, 7vh, 84px) var(--gallery-edge);
  overflow: hidden;
  background: transparent;
  border: 0;
  color: #fff;
  opacity: 0;
  transition: opacity 240ms ease, display 240ms allow-discrete, overlay 240ms allow-discrete;
}

.lightbox[open] { opacity: 1; }

.lightbox::backdrop {
  background: rgba(23, 22, 21, 0);
  backdrop-filter: blur(0);
  transition: background-color 260ms ease, backdrop-filter 260ms ease,
              display 260ms allow-discrete, overlay 260ms allow-discrete;
}

.lightbox[open]::backdrop {
  background: rgba(23, 22, 21, .74);
  backdrop-filter: blur(9px);
}

@starting-style {
  .lightbox[open] { opacity: 0; }
  .lightbox[open]::backdrop { background: rgba(23, 22, 21, 0); backdrop-filter: blur(0); }
}

.gallery-frame {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: min(100%, 1600px);
  height: 100%;
  margin-inline: auto;
}

.gallery-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  animation: gallery-photo-in 240ms cubic-bezier(.2, .7, .25, 1) both;
}

@keyframes gallery-photo-in {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: inherit;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transition: background-color 180ms ease;
}

.lightbox button:hover { background: rgba(255, 255, 255, .14); }
.lightbox button:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.lightbox button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-close { top: max(6px, env(safe-area-inset-top)); right: max(4px, env(safe-area-inset-right)); }
.gallery-prev { left: max(0px, calc((var(--gallery-edge) - 44px) / 2)); }
.gallery-next { right: max(0px, calc((var(--gallery-edge) - 44px) / 2)); }
.gallery-prev, .gallery-next { top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  .gallery-image { animation: none; }
}
@media (max-width: 1080px) {
  .wrap { width: calc(100% - 56px); }
}
@media (max-width: 860px) {
  .wrap { width: calc(100% - 40px); }
  .pair-grid, .showroom-grid, .order-grid { grid-template-columns: 1fr; }
  .pair-copy, .pair-figure { grid-column: auto; grid-row: auto; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 590px) {
  .wrap { width: calc(100% - 32px); }
  .hero-copy { padding-block: 46px; }
  .hero h1 { font-size: clamp(23px, 7vw, 40px); }
  .hero-description { margin-block: 16px 20px; }
  .hero-meta { max-width: 34ch; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 12px; }
  .products { grid-template-columns: 1fr; }
  .more-links { margin-top: 18px; }
  .product-price strong { font-size: 31px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px), (max-width: 960px) and (pointer: coarse) {
  section[id] { scroll-margin-top: 116px; }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; min-height: 0; padding-top: 6px; }
  .header .brand { justify-self: start; display: grid; align-items: center; min-height: 48px; }
  .header .brand img { width: clamp(112px, 32vw, 148px); }
  .header__contacts { grid-column: 2; grid-row: 1; display: flex; gap: 6px; }
  .header__contacts a {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
  }
  .header__contacts svg { display: block; width: 22px; height: 22px; }
  .header__contacts span, .header__callback > span:first-child { display: none; }
  .header__callback-mobile { display: inline; }
  .header nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin: 0;
    padding-block: 1px 3px;
    border-top: 1px solid var(--line);
    font-size: 14px;
  }
  .header nav a { display: grid; place-items: center; min-height: 44px; }
  .header nav .header__callback { color: var(--accent); text-decoration: none; }
  .products { grid-template-columns: 1fr; }
  .product .mobile-carousel ~ .card-image,
  .product .mobile-carousel ~ .thumbs,
  .companions .mobile-carousel ~ .companion-visual,
  .companions .mobile-carousel ~ .companion-stills { display: none; }
  .mobile-carousel { display: block; min-width: 0; }
  .mobile-carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .mobile-carousel__track::-webkit-scrollbar { display: none; }
  .mobile-carousel__track:focus-visible { outline-offset: -3px; }
  .mobile-carousel__image {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    scroll-snap-align: start;
    background: var(--paper);
  }
  .companion-carousel .mobile-carousel__image { aspect-ratio: 800 / 458; }
  .mobile-carousel__dots {
    display: flex;
    justify-content: center;
  }
  .mobile-carousel__dot {
    display: grid;
    place-items: center;
    width: 24px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .mobile-carousel__dot::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a5a7aa;
  }
  .mobile-carousel__dot[aria-current="true"]::before {
    width: 9px;
    height: 9px;
    background: #30343a;
  }
  .sofa-legend { justify-content: flex-start; padding-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.companions [data-companion-track] {
  display: flow-root;
}

.companions [data-companion-track].is-pinned {
  min-height: calc(var(--companion-grid-height) + var(--companion-travel));
}

.companions .is-pinned > .pair-grid {
  position: sticky;
  top: var(--companion-pin-top);
}

.companions .companion-visual {
  position: relative;
  width: 100%;
  max-height: 45svh;
  aspect-ratio: 640 / 366;
}

.companions .companion-poster,
.companions [data-companion-frames] {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.companions [data-companion-frames],
.companions .is-pinned .companion-poster,
.companions .is-pinned .companion-stills {
  display: none;
}

.companions .is-pinned [data-companion-frames] {
  display: block;
}

.companions .companion-stills {
  display: flex;
  gap: 1rem;
  margin: 1rem 0 0;
}

.companions .companion-stills img {
  width: min(44%, 12rem);
  height: auto;
  object-fit: contain;
}

.companions [data-companion-label] {
  font: inherit;
}

.companion-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 70px);
  margin-top: clamp(30px, 6vw, 80px);
}

.companion-detail img { width: 100%; height: auto; }
.companion-detail h3 { font-size: clamp(24px, 3vw, 40px); }
.companion-detail dl { display: grid; gap: 16px; margin-top: 20px; }
.companion-detail dt { font-weight: 650; }
.companion-detail dd { color: var(--muted); margin-top: 3px; }

@media (max-width: 700px) {
  .companion-detail { grid-template-columns: 1fr; }
}
