* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 system-ui, sans-serif; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.06em; line-height: .99; }
h1 { font-size: clamp(3rem, 6vw, 6.6rem); }
h2 { font-size: clamp(2.4rem, 4vw, 4.2rem); }
.nord {
  --paper: #f5f3ed; --surface: #fffdfa; --ink: #27332b; --muted: #526157;
  --line: #d6dbd2; --accent: #284939; --on-accent: #fff; --focus: #547e68;
  --hero: #e2e8dd; --display: Georgia, serif;
}
.kadr {
  --paper: #171815; --surface: #21231f; --ink: #f4f1e8; --muted: #b9bdb0;
  --line: #42453b; --accent: #d8f083; --on-accent: #191f0e; --focus: #d8f083;
  --hero: #22251d; --display: system-ui, sans-serif; color-scheme: dark;
}
.wrap, .site-header { width: min(1320px, calc(100% - 8vw)); margin-inline: auto; }
.demo-bar { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 4vw; background: var(--ink); color: var(--paper); font-size: .75rem; }
.kadr .demo-bar { background: var(--accent); color: var(--on-accent); }
.site-header { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-header nav { display: flex; gap: 2rem; color: var(--muted); font-size: .9rem; }
.wordmark { font-weight: 950; font-size: 1.8rem; letter-spacing: -.08em; line-height: 1; }
.wordmark span { display: block; margin-top: .35rem; color: var(--muted); font: 700 .57rem system-ui; letter-spacing: .12em; }
.header-button, .secondary, .filter, .close, .qty button {
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: .45rem; padding: .55rem .8rem;
}
.header-button span { display: inline-block; margin-left: .3rem; font-weight: 800; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: .9rem; border: 1px solid transparent; border-radius: .45rem; background: var(--accent); color: var(--on-accent); padding: .8rem 1.15rem; font-weight: 700; cursor: pointer; }
.primary:hover, .secondary:hover { filter: brightness(.92); }
.store-hero { display: grid; grid-template-columns: 47% 53%; min-height: 470px; background: var(--hero); }
.hero-copy { padding: clamp(2rem, 5vw, 6rem) 4vw; align-self: center; }
.store-hero img { height: 100%; min-height: 440px; max-height: 640px; }
.kicker { color: var(--muted); font-size: .69rem; font-weight: 750; letter-spacing: .14em; margin-bottom: 1rem; }
.hero-description { max-width: 36ch; color: var(--muted); margin: 1.3rem 0 1.65rem; }
.kadr .store-hero { position: relative; grid-template-columns: 1fr; isolation: isolate; min-height: 550px; overflow: hidden; }
.kadr .hero-copy { z-index: 1; }
.kadr .store-hero img { position: absolute; inset: 0; z-index: -2; max-height: none; }
.kadr .store-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#131612f5 0%,#131612d9 30%,#13161224 85%); }
.kadr h1 { font-weight: 800; letter-spacing: -.075em; }
.benefits { display: grid; grid-template-columns: repeat(3,1fr); padding: 1rem 4vw; border-block: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .82rem; }
.benefits span + span { border-left: 1px solid var(--line); }
.catalog, .details { padding-top: clamp(3rem,6vw,6rem); scroll-margin-top: 1rem; }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.section-title > p { max-width: 32ch; color: var(--muted); }
.filters { display: flex; gap: .55rem; flex-wrap: wrap; margin: 1.7rem 0 1.25rem; }
.filters input { margin-left: auto; min-width: 0; }
.filter[aria-pressed=true] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
input, select { max-width: 100%; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: .45rem; padding: .65rem .75rem; }
.catalog-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; }
.kadr .catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: .65rem; background: var(--surface); animation: appear .35s ease-out both; }
.product-card img { aspect-ratio: 1.18; transition: transform .45s ease; }
.product-card:hover img { transform: scale(1.035); }
.product-photo { overflow: hidden; }
.product-copy { display: grid; gap: .48rem; padding: 1rem; }
.product-copy small { color: var(--muted); }
.product-copy h3 { font-size: 1.18rem; line-height: 1.2; }
.product-copy strong { font-size: 1.12rem; }
.product-copy button { margin-top: .35rem; width: 100%; }
.info-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1.4rem; }
.info-grid article { border-top: 1px solid var(--line); padding: 1rem 0; }
.info-grid p { color: var(--muted); margin-top: .5rem; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.4rem 0; margin-top: 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
dialog { width: min(100%, 520px); max-width: 100%; height: 100%; max-height: 100%; margin: 0 0 0 auto; border: 0; padding: 0; background: var(--surface); color: var(--ink); box-shadow: -8px 0 60px #0003; }
dialog[open] { animation: slide .28s ease-out both; }
dialog::backdrop { background: #0d111177; backdrop-filter: blur(3px); }
.panel-shell { position: relative; min-height: 100%; padding: 1.5rem; }
.close { position: absolute; top: .8rem; right: .8rem; font-size: 1.45rem; line-height: 1; z-index: 1; }
.panel-title { font-size: 2.1rem; padding-right: 2rem; margin: .7rem 0 1rem; }
.panel-img { aspect-ratio: 1.75; border-radius: .5rem; margin-bottom: 1rem; }
.panel-note { color: var(--muted); font-size: .9rem; margin: .6rem 0; }
.panel-form { display: grid; gap: 1rem; margin-top: 1.1rem; }
.panel-form label { display: grid; gap: .35rem; font-weight: 650; }
.panel-form output { font-size: 1.45rem; font-weight: 800; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: .55rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.qty { display: flex; gap: .5rem; align-items: center; }
.qty button { min-width: 2.2rem; padding: .25rem; }
.cart-actions { display: grid; gap: .65rem; margin-top: 1.2rem; }
.confirmation { border: 1px solid var(--line); padding: 1rem; border-radius: .6rem; margin: 1rem 0; }
.confirmation p + p { margin-top: .45rem; }
.toast { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 2; background: var(--ink); color: var(--paper); padding: .7rem 1rem; border-radius: .5rem; pointer-events: none; max-width: 90vw; }
.toast:empty { display: none; }
.empty { grid-column: 1/-1; padding: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: .5rem; }
@keyframes slide { from { transform: translateX(24px); opacity: .6; } }
@keyframes appear { from { transform: translateY(8px); opacity: .6; } }
@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kadr .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .store-hero img { min-height: 360px; }
}
@media (max-width: 640px) {
  .site-header { min-height: 66px; }
  .site-header nav { display: none; }
  .demo-bar { font-size: .66rem; }
  .store-hero { grid-template-columns: 1fr; min-height: auto; }
  .store-hero img { min-height: 0; height: 260px; border-radius: 0; }
  .kadr .store-hero { min-height: 460px; }
  .kadr .store-hero img { height: 100%; }
  .kadr .store-hero::after { background: #1518139c; }
  .benefits { gap: .3rem; padding-inline: 2vw; font-size: .67rem; }
  .section-title { align-items: start; flex-direction: column; }
  .filters input { width: 100%; margin-left: 0; }
  .product-copy { padding: .7rem; }
  .product-copy h3 { font-size: 1rem; }
  .product-copy small { font-size: .72rem; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none!important; transition: none!important; }
}
[hidden] { display: none!important; }
.booking-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .35rem;
}
.booking-slots button { padding-inline: .2rem; font-size: .8rem; }
.booking-slots button:disabled { text-decoration: line-through; }
.kadr .panel-img { max-height: 205px; }
.kadr .panel-form { gap: .75rem; }
#form-message:empty { display: none; }

.wordmark { letter-spacing: -.045em; }

.studio-availability {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.studio-availability label { font-weight: 650; }
.studio-availability span { color: var(--muted); font-size: 13px; }
.kadr .availability { color: var(--accent); font-weight: 650; }
.order-breakdown { display: grid; gap: 8px; margin: 0; }
.order-breakdown > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.order-breakdown > div:last-child { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 750; }
.order-breakdown dd { margin: 0; text-align: right; }
@media (max-width: 640px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 2;
    width: 100%;
    padding-inline: 4vw;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .wordmark { font-size: clamp(20px, 6vw, 29px); }
  .wordmark span { font-size: .55rem; letter-spacing: .08em; }
  .header-button { min-height: 44px; flex: none; padding-inline: 9px; font-size: 14px; }
  .hero-copy { padding: 24px 5%; }
  .hero-copy h1 { font-size: clamp(38px, 10vw, 58px); }
  .hero-description { margin: 12px 0 16px; font-size: 14px; }
  .store-hero img { height: clamp(170px, 52vw, 245px); }
  .kadr .store-hero { min-height: 390px; }
  .catalog, .details { scroll-margin-top: 75px; }
  .catalog-grid, .kadr .catalog-grid { gap: 8px; }
  .product-card { display: flex; flex-direction: column; }
  .product-copy { flex: 1; grid-template-rows: auto auto 1fr auto auto; }
  .product-copy button, .filter, .booking-slots button { min-height: 44px; }
  .filters { margin: 14px 0 10px; }
  .filters input, select, .panel-form input { font-size: 16px; min-height: 44px; }
  .benefits { padding-block: 10px; }
  .studio-availability { padding: 10px; }
  .studio-availability span { flex-basis: 100%; }
  dialog { height: auto; max-height: 94dvh; margin: auto 0 0; border-radius: 14px 14px 0 0; }
  .panel-shell { padding: 14px 14px max(18px, env(safe-area-inset-bottom)); }
  .close { position: sticky; float: right; top: 0; right: auto; min-width: 44px; min-height: 44px; }
  .panel-title { font-size: 28px; }
  .qty button { min-width: 40px; min-height: 44px; }
}

.time-picker { min-width: 0; margin: 0; border: 0; padding: 0; }
.time-picker legend { padding: 0 0 6px; font-weight: 650; }
@media (max-width: 640px) {
  .kadr .panel-img { max-height: 145px; }
}
