*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: #12141a;
  color: #f6f3ee;
  font-family: "Segoe UI", "Nirmala UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Noto Sans Devanagari", "Noto Naskh Arabic", "Geeza Pro", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #1a1c20;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #e7d3b1;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: calc(8px + env(safe-area-inset-top));
  z-index: 40;
  transform: translateY(-160%);
  background: #f3efe8;
  color: #16181d;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.container {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.narrow {
  width: min(100% - 32px, 640px);
}

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  background: rgba(18, 20, 26, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  min-height: 44px;
}

.mark {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e7d3b1;
}

.brand-name {
  display: block;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-sub {
  display: none;
  color: #c9c3b8;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lang {
  min-height: 44px;
  max-width: 46vw;
  width: 168px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(246, 243, 238, 0.28);
  background: rgba(18, 20, 26, 0.4);
  color: #f6f3ee;
  font-size: 16px;
}

section[id] {
  scroll-margin-top: calc(72px + env(safe-area-inset-top));
}

.cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100dvh;
  background: #12141a;
  color: #f6f3ee;
}

.cover-visual {
  position: absolute;
  inset: 0;
}

.cover-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.cover-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8, 9, 12, 0.94) 0%, rgba(8, 9, 12, 0.58) 18%, rgba(8, 9, 12, 0.1) 40%, rgba(8, 9, 12, 0.28) 100%);
}

.finder {
  position: absolute;
  inset: calc(68px + env(safe-area-inset-top)) 12px calc(18px + env(safe-area-inset-bottom)) 12px;
  z-index: 1;
  pointer-events: none;
}

.finder span {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(246, 243, 238, 0.72);
}

.finder span:nth-child(1) {
  top: 0;
  left: 0;
  border-right: 0;
  border-bottom: 0;
}

.finder span:nth-child(2) {
  top: 0;
  right: 0;
  border-left: 0;
  border-bottom: 0;
}

.finder span:nth-child(3) {
  bottom: 0;
  left: 0;
  border-right: 0;
  border-top: 0;
}

.finder span:nth-child(4) {
  bottom: 0;
  right: 0;
  border-left: 0;
  border-top: 0;
}

.cover-copy {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, 640px);
  margin: 0 auto;
  padding: 18px 0 calc(100px + env(safe-area-inset-bottom));
}

.cover-copy h1,
.cover-copy .hero-lead,
.cover-copy .plate-note {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #e7d3b1;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.idx {
  font-variant-numeric: tabular-nums;
}

h1 {
  font-size: clamp(1.85rem, 8vw, 4.2rem);
  max-width: 14ch;
}

.hero-lead {
  margin-top: 10px;
  max-width: 34ch;
  color: #e6e1d8;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(231, 211, 177, 0.45);
  border-radius: 999px;
  color: #f6f3ee;
  font-size: 14px;
}

.chip-price {
  background: rgba(231, 211, 177, 0.16);
  border-color: #e7d3b1;
  font-variant-numeric: tabular-nums;
}

.plate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(246, 243, 238, 0.28);
}

.plate div {
  min-width: 0;
}

.plate dt {
  color: #d9d3c8;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plate dd {
  margin: 2px 0 0;
  font-size: 1.05rem;
}

.plate-note {
  margin-top: 12px;
  color: #d5d0c6;
  font-size: 14px;
}

.craft-next {
  margin-top: 16px;
}

.reason {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(231, 211, 177, 0.45);
  background: rgba(231, 211, 177, 0.08);
}

.reason-label {
  display: block;
  color: #e7d3b1;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reason p {
  margin-top: 4px;
}

.spec-card {
  margin-top: 14px;
  padding: 12px 14px 4px;
  border-radius: 16px;
  background: rgba(246, 243, 238, 0.06);
  border: 1px solid rgba(246, 243, 238, 0.16);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: #f3efe8;
  color: #16181d;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.cover .btn {
  width: 100%;
  margin-top: 16px;
}

.btn-dark {
  background: #16181d;
  color: #f6f3ee;
}

.chapter-dark {
  background: #12141a;
  color: #f6f3ee;
  padding: 28px 0 8px;
}

.chapter-light {
  background: #f3efe8;
  color: #16181d;
  padding: 28px 0 8px;
}

.chapter-dark h2,
.chapter-light h2 {
  font-size: clamp(1.6rem, 6vw, 2.6rem);
}

.lead {
  margin-top: 8px;
  color: #3c3934;
}

.chapter-dark .lead,
.chapter-dark .micro,
.chapter-dark .flow {
  color: #d5d0c6;
}

.rail {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 18px;
  padding-inline: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.snap {
  flex: 0 0 min(78vw, 420px);
  min-width: 0;
  scroll-snap-align: start;
}

.snap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: #1b1e26;
}

.snap figcaption {
  margin-top: 8px;
  font-size: 16px;
}

.rail-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 18px;
  color: #d5d0c6;
  font-variant-numeric: tabular-nums;
}

.chapter-light .rail-meta {
  color: #3c3934;
}

.machine {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 8px;
}

.machine[hidden] {
  display: none;
}

.price {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.band-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.band {
  min-height: 48px;
  min-width: 0;
  padding: 8px 6px;
  border-radius: 14px;
  border: 1px solid rgba(22, 24, 29, 0.22);
  background: transparent;
  color: #16181d;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
}

.band[aria-pressed="true"] {
  background: #16181d;
  color: #f6f3ee;
  border-color: #16181d;
}

.band-count {
  margin-top: 10px;
  color: #3c3934;
}

.machine img {
  aspect-ratio: 3 / 4;
  object-position: center 18%;
}

.flag,
.role {
  color: #6b645c;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.machine h3 {
  font-size: 1.7rem;
}

.card-line {
  color: #3c3934;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
}

.meta li {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(22, 24, 29, 0.06);
}

.machine .btn {
  margin-top: auto;
}

.floor-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.tab {
  min-height: 48px;
  min-width: 0;
  padding: 8px 6px;
  border-radius: 14px;
  border: 1px solid rgba(246, 243, 238, 0.28);
  background: transparent;
  color: #f6f3ee;
  font-size: 16px;
  cursor: pointer;
}

.tab[aria-selected="true"] {
  background: #f3efe8;
  color: #16181d;
  border-color: #f3efe8;
}

.match {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.match[hidden] {
  display: none;
}

.match img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 16%;
  border-radius: 18px;
  background: #1b1e26;
}

.match h3 {
  font-size: 1.6rem;
}

.match p {
  margin-top: 8px;
  color: #e6e1d8;
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin: 14px 0;
}

.specs div {
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(246, 243, 238, 0.2);
}

.specs dt {
  color: #d9d3c8;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.specs dd {
  margin: 2px 0 0;
}

.match .btn {
  width: 100%;
}

.micro,
.flow {
  margin-top: 14px;
  font-size: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.field label,
.consent {
  font-size: 16px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(22, 24, 29, 0.2);
  background: #fff;
  color: #16181d;
  font-size: 16px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  min-height: 44px;
}

.consent input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin-top: 2px;
  flex: 0 0 auto;
}

.err,
.ok {
  margin-top: 12px;
}

.err {
  color: #8d1c1c;
}

.ok {
  color: #1d5c32;
}

form .btn {
  width: 100%;
  margin-top: 14px;
}

.faq {
  margin-top: 12px;
}

.faq details {
  border-top: 1px solid rgba(22, 24, 29, 0.12);
}

.faq summary {
  min-height: 48px;
  padding: 14px 0;
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 0 0 14px;
  color: #3c3934;
}

.close-block {
  padding-bottom: 28px;
}

.close-box {
  padding: 20px 0 8px;
}

.close-box .btn {
  margin-top: 14px;
}

.site-footer {
  background: #12141a;
  color: #d5d0c6;
  padding: 28px 0 12px;
}

.site-footer p + p {
  margin-top: 10px;
}

.sticky-action {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 10px 16px max(10px, env(safe-area-inset-bottom));
  background: rgba(18, 20, 26, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.sticky-action .btn {
  width: min(100%, 420px);
}

@media (min-width: 400px) {
  .brand-sub {
    display: block;
  }
}

@media (min-width: 768px) {
  .plate {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .match {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .match .btn,
  .cover .btn,
  form .btn {
    width: auto;
    min-width: 220px;
  }
}

@media (min-width: 900px) {
  .cover {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    align-items: stretch;
  }

  .cover-visual {
    position: relative;
    grid-column: 2;
    grid-row: 1;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .cover-photo {
    min-height: 100vh;
    min-height: 100dvh;
    object-position: center 30%;
  }

  .cover-shade {
    display: none;
  }

  .finder {
    inset: calc(72px + env(safe-area-inset-top)) 16px 16px;
  }

  .cover-copy {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    margin: 0;
    max-width: none;
    width: auto;
    padding: calc(96px + env(safe-area-inset-top)) 40px calc(108px + env(safe-area-inset-bottom)) 32px;
  }
}

@media (min-width: 720px) {
  .floor-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100% - 32px, 1120px);
    margin-inline: auto;
    padding-inline: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .snap {
    flex: none;
  }

  .rail-meta {
    display: none;
  }
}

@media (min-width: 1200px) {
  .cover {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
