:root {
  --ux: calc(100vw / 1440);
  --u: min(calc(100vw / 1440), calc(100vh / 900));
  --n: calc(100vw / 430);
  --ink: #1a1a1a;
  --red: #d7193f;
  --page: #fff;
  --grey: #6d6466;
  --line: rgba(215, 25, 63, .22);
  --sans: "Inter", system-ui, sans-serif;
  --wide: "Unbounded", "Arial Black", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --script: "Marck Script", cursive;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--page); color: var(--ink); -webkit-font-smoothing: antialiased; }
html.anim .enter { opacity: 0; }
body { font-family: var(--sans); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.nav {
  position: fixed; z-index: 20; left: 0; right: 0; top: 0;
  padding-left: calc(63 * var(--ux));
  padding-right: calc(62 * var(--ux));
  height: max(32px, calc(36 * var(--u)));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(255, 255, 255, .9);
}
.word {
  font-family: var(--wide); font-weight: 800;
  font-size: max(12px, calc(16 * var(--u)));
  letter-spacing: -0.01em;
}
.links { display: flex; justify-self: end; gap: calc(50 * var(--ux)); font-family: var(--mono); font-size: max(11px, calc(16.7 * var(--u))); }
.links a { position: relative; }
.links a.on { color: var(--red); }
.links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.links a:hover::after, .links a.on::after { transform: scaleX(1); transform-origin: left center; }
.links { align-items: center; }
.links .book {
  font: inherit;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: var(--red);
  padding: 0.38em 0.78em;
  line-height: 1;
  border-radius: 999px;
  animation: book 1.5s ease-in-out infinite;
}
.links .book::after { display: none; }
.links .book:hover { color: #fff; }
@keyframes book {
  0%, 100% { box-shadow: 0 0 0 0 rgba(215, 25, 63, .55); transform: scale(1); }
  55% { box-shadow: 0 0 0 9px rgba(215, 25, 63, 0); transform: scale(1.07); }
}
.nav-book {
  justify-self: center;
  color: #fff;
  background: var(--red);
  font-family: var(--mono);
  font-size: max(13px, calc(15 * var(--u)));
  letter-spacing: 0.12em;
  padding: 0.55em 1.2em;
  line-height: 1;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  animation: book-mid 1.8s ease-in-out infinite;
}
.nav-book:hover { color: #fff; }
@keyframes book-mid {
  0%, 100% { box-shadow: 0 0 0 0 rgba(215, 25, 63, .45); }
  55% { box-shadow: 0 0 0 12px rgba(215, 25, 63, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .links .book, .nav-book { animation: none; }
}
main { padding: calc(110 * var(--u)) calc(63 * var(--ux)) calc(80 * var(--u)); position: relative; }
.rule {
  position: absolute; left: calc(52 * var(--ux)); right: calc(52 * var(--ux));
  top: calc(92 * var(--u)); height: 1px; background: var(--line);
}
.kicker {
  font-family: var(--mono); font-size: calc(16.7 * var(--u));
  color: var(--red); letter-spacing: .04em;
}
h1 {
  margin-top: calc(18 * var(--u));
  font-family: var(--wide); font-weight: 800;
  font-size: calc(77 * var(--u)); line-height: .98;
  letter-spacing: -0.03em; text-transform: uppercase;
}
.script {
  margin-top: calc(8 * var(--u));
  font-family: var(--script); font-size: calc(54 * var(--u));
  color: var(--red); line-height: 1;
}
.list { margin-top: calc(48 * var(--u)); border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 1fr auto;
  gap: calc(24 * var(--ux));
  align-items: end;
  padding: calc(22 * var(--u)) 0;
  border-bottom: 1px solid var(--line);
}
.row h2 { font-weight: 400; font-size: calc(32 * var(--u)); letter-spacing: -0.02em; }
.row p { margin-top: calc(6 * var(--u)); max-width: 62ch; color: var(--grey); font-size: calc(16 * var(--u)); line-height: 1.45; }
.price {
  font-family: var(--wide); font-weight: 800;
  font-size: calc(36 * var(--u)); letter-spacing: -0.04em;
  color: var(--red); white-space: nowrap;
}
.plates { display: grid; grid-template-columns: 1fr 1fr; gap: calc(18 * var(--u)); margin-top: calc(28 * var(--u)); }
.plate {
  position: relative; background: var(--red); color: #fff;
  min-height: calc(180 * var(--u));
  padding: calc(24 * var(--u));
  display: flex; flex-direction: column; justify-content: flex-end;
}
.plate .corner {
  position: absolute; top: calc(14 * var(--u)); right: calc(14 * var(--u));
  width: calc(36 * var(--u)); height: calc(56 * var(--u));
  border-top: calc(8 * var(--u)) solid #fff;
  border-right: calc(8 * var(--u)) solid #fff;
}
.plate p { font-family: var(--mono); font-size: calc(14 * var(--u)); letter-spacing: .08em; text-transform: uppercase; }
.plate strong {
  display: block; margin-top: calc(8 * var(--u));
  font-family: var(--wide); font-weight: 800;
  font-size: calc(42 * var(--u)); letter-spacing: -0.04em; line-height: .95;
}
.contact {
  margin-top: calc(36 * var(--u));
  display: grid; grid-template-columns: 1fr 1fr; gap: calc(40 * var(--ux));
}
.contact h2 { font-family: var(--mono); font-weight: 400; font-size: calc(16 * var(--u)); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.big {
  display: block; margin-top: calc(10 * var(--u));
  font-family: var(--wide); font-weight: 800;
  font-size: calc(42 * var(--u)); letter-spacing: -0.04em; line-height: 1.05;
}
.big:hover { color: var(--red); }
.note { margin-top: calc(12 * var(--u)); color: var(--grey); font-size: calc(16 * var(--u)); line-height: 1.45; max-width: 36ch; }
.note a { color: var(--ink); background-image: linear-gradient(var(--red), var(--red)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; }
.fine {
  margin-top: calc(28 * var(--u));
  font-family: var(--mono); font-size: calc(13 * var(--u));
  color: var(--grey); line-height: 1.45;
}
.crumb {
  margin-top: calc(14 * var(--u));
  font-family: var(--mono); font-size: calc(13 * var(--u));
  color: var(--grey);
}
.crumb a { color: var(--ink); }
.crumb a:hover { color: var(--red); }
.faq { margin-top: calc(56 * var(--u)); }
.faq h2 {
  font-family: var(--wide); font-weight: 800;
  font-size: calc(32 * var(--u)); letter-spacing: -0.03em;
  text-transform: uppercase;
}
.faq .row h3 { font-weight: 400; font-size: calc(22 * var(--u)); letter-spacing: -0.02em; }
.faq .row a { color: var(--ink); background-image: linear-gradient(var(--red), var(--red)); background-size: 100% 2px; background-position: 0 100%; background-repeat: no-repeat; }
.shots { margin-top: calc(36 * var(--u)); display: grid; gap: calc(22 * var(--u)); }
.shots.pair { grid-template-columns: 1fr 1fr; align-items: start; }
.shots.pair .shot img { height: min(420px, 46vw); object-fit: cover; object-position: center; }
.shot { margin: 0; }
.shot img { width: 100%; height: auto; display: block; background: #f3f0ec; }
.slider { margin-top: calc(18 * var(--u)); }
.slider-frame { position: relative; }
.slider-view { overflow: hidden; }
.slider-track { display: flex; transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.slide { flex: 0 0 100%; margin: 0; }
.slide img {
  width: 100%;
  height: min(460px, 58vw);
  object-fit: contain;
  display: block;
  background: #f6f3f1;
}
.slide figcaption {
  margin-top: calc(10 * var(--u));
  font-family: var(--mono); font-size: calc(14 * var(--u));
  color: var(--grey); line-height: 1.45; max-width: 68ch;
}
.slider-prev, .slider-next {
  position: absolute; top: min(230px, 29vw); z-index: 2;
  width: 42px; height: 42px;
  border: 0; border-radius: 50%;
  background: var(--red); color: #fff;
  font-family: var(--mono); font-size: 28px; line-height: 1;
  cursor: pointer;
}
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-prev:hover, .slider-next:hover { background: #1a1a1a; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.slider-dot {
  width: 8px; height: 8px; padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(215, 25, 63, .28);
  cursor: pointer;
}
.slider-dot.on { background: var(--red); }
@media (prefers-reduced-motion: reduce) {
  .slider-track { transition: none; }
}
.shot figcaption {
  margin-top: calc(10 * var(--u));
  font-family: var(--mono); font-size: calc(14 * var(--u));
  color: var(--grey); line-height: 1.45; max-width: 62ch;
}
.works-title {
  margin-top: calc(48 * var(--u));
  font-family: var(--wide); font-weight: 800;
  font-size: calc(32 * var(--u)); letter-spacing: -0.03em;
  text-transform: uppercase;
}
.map {
  margin-top: calc(28 * var(--u));
  height: calc(420 * var(--u));
  min-height: 280px;
  background: #fff;
  border: 1px solid var(--line);
  position: relative;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.xh {
  position: absolute; width: 13px; height: 13px; transform: translate(-50%, -50%);
}
.xh::before, .xh::after { content: ""; position: absolute; background: var(--red); }
.xh::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.xh::after { top: 50%; left: 0; right: 0; height: 1px; }
.foot {
  padding: 0 calc(63 * var(--ux)) calc(28 * var(--u));
  display: flex; justify-content: space-between; gap: 24px;
  font-family: var(--mono); font-size: max(11px, calc(14 * var(--u)));
}
.foot a:hover { color: var(--red); }
@media (max-width: 1099px) {
  .nav {
    padding: calc(6px + env(safe-area-inset-top)) 16px 6px;
    height: auto;
    min-height: 56px;
    background: #fff;
  }
  .word { font-size: clamp(11px, 3.4vw, 16px); min-height: 40px; display: inline-flex; align-items: center; }
  .links { gap: clamp(8px, 2.2vw, 18px); font-size: clamp(10px, 2.9vw, 13px); }
  .links a, .links .book, .nav-book { min-height: 40px; display: inline-flex; align-items: center; }
  .links .book, .nav-book { padding: 0 14px; font-size: 12px; letter-spacing: 0.08em; }
  main { padding: calc(76px + env(safe-area-inset-top)) 18px 36px; }
  .rule, .xh { display: none; }
  .kicker { font-size: 13px; }
  h1 { font-size: clamp(34px, 8vw, 52px); margin-top: 12px; }
  .script { font-size: clamp(28px, 7vw, 42px); }
  .row { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
  .row h2 { font-size: clamp(20px, 5vw, 28px); }
  .row p, .note { font-size: 16px; max-width: none; }
  .price { font-size: clamp(26px, 7vw, 36px); }
  .plates, .contact { grid-template-columns: 1fr; gap: 14px; }
  .plate { min-height: 128px; padding: 20px; }
  .plate .corner { width: 28px; height: 44px; border-width: 7px; top: 12px; right: 12px; }
  .plate strong, .big { font-size: clamp(22px, 6.4vw, 40px); }
  .fine, .crumb { font-size: 13px; }
  .faq { margin-top: 36px; }
  .faq h2 { font-size: clamp(26px, 7vw, 36px); }
  .faq .row h3 { font-size: clamp(18px, 4.6vw, 22px); }
  .shots.pair { grid-template-columns: 1fr; }
  .shots.pair .shot img { height: 220px; }
  .slide img { height: min(320px, 78vw); }
  .slider-prev, .slider-next { top: min(160px, 34vw); width: 36px; height: 36px; }
  .shot figcaption { font-size: 14px; max-width: none; }
  .works-title { margin-top: 36px; font-size: clamp(26px, 7vw, 36px); }
  .fine a, .fine .book-open, .foot a, .foot .book-open { display: inline-flex; align-items: center; min-height: 40px; }
  .map { height: min(420px, 70vw); min-height: 240px; margin-top: 18px; }
  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 0 18px calc(20px + env(safe-area-inset-bottom));
    font-size: 13px;
  }
}
@media (min-width: 720px) and (max-width: 1099px) {
  .nav, main, .foot { padding-left: 32px; padding-right: 32px; }
  .row { grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
  .plates, .contact, .shots.pair { grid-template-columns: 1fr 1fr; }
  .foot { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (max-width: 520px) {
  .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo links" "book book";
    height: auto;
    row-gap: 8px;
    padding-bottom: 8px;
  }
  .word { grid-area: logo; }
  .links { grid-area: links; }
  .nav-book { grid-area: book; }
  main { padding-top: calc(108px + env(safe-area-inset-top)); }
}
@media (max-width: 360px) {
  .nav { padding-left: 12px; padding-right: 12px; }
  .links { gap: 6px; }
  .word { letter-spacing: -0.04em; }
}
