/* A-List Entertainment — site styles */
:root {
  --bg: #0d0d0f;
  --bg-2: #141417;
  --surface: #1a1a1e;
  --surface-2: #222227;
  --line: #2c2c32;
  --text: #ecebe7;
  --text-2: #b9b6ae;
  --muted: #8a877f;
  --accent: #c9a66b;
  --accent-2: #e3c995;
  --accent-ink: #15120c;
  --danger: #e07a6a;
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-sans: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  --font-serif-jp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-display: "Cormorant Garamond", "Noto Serif JP", Georgia, serif;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--text); }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .6em; font-weight: 600; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.nb { display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 13, 15, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-name { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; font-style: italic; letter-spacing: .01em; }
.brand-sub { font-size: .62rem; letter-spacing: .28em; color: var(--accent); text-transform: uppercase; margin-top: 3px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: var(--text);
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a, .main-nav .sub-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; border-radius: 8px;
  color: var(--text-2); font-size: .88rem; letter-spacing: .06em;
  font-family: var(--font-sans); background: none; border: 0; cursor: pointer;
}
.main-nav a:hover, .main-nav .sub-toggle:hover, .main-nav a[aria-current="page"], .main-nav .is-active > a { color: var(--text); }
.main-nav a[aria-current="page"] { color: var(--accent-2); }
.main-nav .caret { width: 10px; height: 10px; opacity: .7; transition: transform .2s; }
.main-nav .has-sub > .row { display: flex; align-items: center; }
.main-nav .sub-toggle { padding: 8px 6px 8px 0; margin-left: -8px; }
.main-nav .submenu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 220px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s;
}
.main-nav .submenu::before { content: ""; position: absolute; inset: -10px 0 auto 0; height: 10px; }
.main-nav .submenu a { display: block; padding: 8px 12px; font-size: .85rem; white-space: nowrap; }
.main-nav .submenu a:hover { background: var(--surface-2); }
.main-nav .has-sub:hover > .submenu, .main-nav .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
.main-nav .nav-cta {
  margin-left: 8px; border: 1px solid var(--accent); color: var(--accent-2);
  padding: 7px 16px; border-radius: 999px;
}
.main-nav .nav-cta:hover { background: var(--accent); color: var(--accent-ink); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 68px 0 0 0; background: var(--bg);
    overflow-y: auto; padding: 12px var(--gutter) 40px;
    transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav a, .main-nav .sub-toggle { padding: 14px 4px; font-size: 1rem; }
  .main-nav .has-sub > .row { justify-content: space-between; }
  .main-nav .sub-toggle { margin: 0; padding: 14px 8px; }
  .main-nav .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; background: none; padding: 0 0 10px 12px; display: none; min-width: 0;
  }
  .main-nav .has-sub.open > .submenu { display: block; }
  .main-nav .has-sub.open .caret { transform: rotate(180deg); }
  .main-nav .submenu a { padding: 10px 4px; font-size: .92rem; white-space: normal; }
  .main-nav .nav-cta { margin: 16px 0 0; justify-content: center; }
  .main-nav > ul > li:last-child { border-bottom: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 760px); display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) brightness(.45); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 70% 40%, rgba(13,13,15,0) 0%, rgba(13,13,15,.55) 55%, var(--bg) 100%),
              linear-gradient(180deg, rgba(13,13,15,.2) 0%, rgba(13,13,15,.0) 40%, var(--bg) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 80px; }
.hero-eyebrow { color: var(--accent); letter-spacing: .3em; font-size: .78rem; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 {
  font-family: var(--font-serif-jp); font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.5; letter-spacing: .06em; margin-bottom: 20px;
}
.hero-lead { color: var(--text-2); font-size: clamp(.95rem, 1.6vw, 1.08rem); max-width: 34em; }
.hero-logo img { width: 100%; max-width: 520px; margin-left: auto; filter: drop-shadow(0 6px 24px rgba(0,0,0,.6)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 56px 64px; gap: 8px; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 320px; margin: 0 auto 0 -12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 24px; border-radius: 999px;
  font-size: .92rem; letter-spacing: .08em; font-weight: 500;
  border: 1px solid var(--accent); color: var(--accent-ink); background: var(--accent);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s; font-family: var(--font-sans);
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--accent-2); }
.btn-ghost:hover { background: rgba(201,166,107,.12); color: var(--text); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Page header ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(64px, 11vw, 128px) 0 clamp(40px, 6vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) brightness(.38); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,13,15,.35), var(--bg)); }
.page-hero.plain { background: radial-gradient(ellipse at 20% 0%, #1d1a14 0%, var(--bg) 60%); }
.page-hero.plain::after { display: none; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.page-title {
  font-family: var(--font-display); font-style: italic; font-weight: 600;
  font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: 1.05; letter-spacing: .01em; margin: 0;
}
.page-sub { font-family: var(--font-serif-jp); color: var(--accent-2); font-size: clamp(1rem, 2vw, 1.25rem); letter-spacing: .14em; margin-top: 12px; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(56px, 9vw, 104px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.eyebrow { color: var(--accent); letter-spacing: .3em; font-size: .74rem; text-transform: uppercase; margin-bottom: 10px; display: block; }
.section-title { font-family: var(--font-serif-jp); font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: .08em; margin: 0; }
.display { font-family: var(--font-display); font-style: italic; font-weight: 600; letter-spacing: .01em; }

.prose { color: var(--text-2); font-size: 1rem; }
.prose h2 { color: var(--text); font-family: var(--font-serif-jp); font-size: 1.35rem; margin: 2em 0 .8em; padding-left: 14px; border-left: 2px solid var(--accent); letter-spacing: .06em; }
.prose h3 { color: var(--text); font-family: var(--font-serif-jp); font-size: 1.12rem; margin: 1.8em 0 .6em; letter-spacing: .05em; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .3em; }
.prose li::marker { color: var(--accent); }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--radius-sm); }
.prose figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.prose > :first-child { margin-top: 0; }
.lead-text { font-family: var(--font-serif-jp); color: var(--text); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 2; letter-spacing: .06em; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.split.media-left > .media { order: -1; }
.split .media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split .media.sticky { position: sticky; top: 96px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split .media.sticky { position: static; } .split.media-left > .media { order: 0; } }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card-grid.two { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--text); transition: border-color .25s, transform .25s;
}
a.card:hover { border-color: rgba(201,166,107,.6); transform: translateY(-3px); color: var(--text); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; filter: brightness(.88); }
a.card:hover .card-img img { transform: scale(1.04); filter: brightness(1); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-kicker { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
.card-title { font-size: .95rem; color: var(--accent-2); letter-spacing: .08em; }
.card-text { font-size: .88rem; color: var(--text-2); line-height: 1.8; margin: 4px 0 0; }
.card-more { margin-top: auto; padding-top: 12px; font-size: .8rem; letter-spacing: .14em; color: var(--accent); }

/* ---------- Price ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.price {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 6px;
}
.price.featured { border-color: rgba(201,166,107,.55); background: linear-gradient(180deg, #211d15, var(--surface)); }
.price-name { color: var(--text); font-weight: 600; letter-spacing: .06em; font-size: .98rem; }
.price-tag { font-size: .78rem; color: var(--accent); letter-spacing: .1em; }
.price-amount { font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; line-height: 1.1; color: var(--text); margin: 6px 0 2px; }
.price-amount small { font-family: var(--font-sans); font-size: .82rem; color: var(--text-2); font-weight: 400; margin-left: 4px; }
.price-unit { font-family: var(--font-sans); font-size: .9rem; color: var(--text-2); margin-right: 4px; }
.price-note { font-size: .84rem; color: var(--text-2); line-height: 1.7; margin: 0; }
.price-note + .price-note { margin-top: 2px; }
.notes { font-size: .84rem; color: var(--muted); margin-top: 16px; }

/* ---------- Level / step list ---------- */
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.level { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; background: var(--bg-2); }
.level-name { font-family: var(--font-display); font-style: italic; font-size: 1.45rem; font-weight: 600; margin-bottom: 2px; }
.level-jp { font-size: .82rem; color: var(--accent); letter-spacing: .12em; margin-bottom: 12px; }
.level ul { margin: 0 0 12px; padding-left: 1.1em; color: var(--text-2); font-size: .9rem; }
.level ul li::marker { color: var(--accent); }
.level .term { font-size: .82rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; margin: 0; }

.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 4px; top: .7em; width: 10px; height: 6px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-60%) rotate(-45deg);
}

/* ---------- Spec (equipment) ---------- */
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.spec-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg-2); }
.spec-group h3 { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--accent-2); margin: 0 0 10px; }
.spec-group ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; color: var(--text-2); }
.spec-group li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.spec-group li:last-child { border-bottom: 0; }

/* ---------- Info box / CTA ---------- */
.callout {
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 32px);
  background: var(--bg-2);
}
.callout h3 { font-family: var(--font-serif-jp); font-size: 1.1rem; letter-spacing: .06em; color: var(--text); }
.callout p:last-child { margin-bottom: 0; }

.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(201,166,107,.35); border-radius: calc(var(--radius) + 6px);
  padding: clamp(32px, 6vw, 56px); text-align: center;
  background: radial-gradient(ellipse at 50% 0%, #2a2418 0%, var(--surface) 70%);
}
.cta-band h2 { font-family: var(--font-serif-jp); font-size: clamp(1.2rem, 2.6vw, 1.6rem); letter-spacing: .1em; }
.cta-band p { color: var(--text-2); margin-bottom: 24px; }
.cta-band .hero-actions { justify-content: center; margin-top: 0; }

/* ---------- Media ---------- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 24px; }
.video-item h3 { font-size: .95rem; color: var(--text-2); font-weight: 500; margin: 12px 0 0; letter-spacing: .04em; }

.gallery { columns: 3 260px; column-gap: 14px; }
.gallery a { display: block; margin-bottom: 14px; border-radius: var(--radius-sm); overflow: hidden; break-inside: avoid; border: 1px solid var(--line); }
.gallery img { width: 100%; transition: transform .5s, filter .5s; filter: brightness(.9); }
.gallery a:hover img { transform: scale(1.03); filter: brightness(1); }

.figure-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.figure-grid figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.figure-grid figure a { display: block; background: #fff; }
.figure-grid figure img { width: 100%; }
.figure-grid figcaption { padding: 12px 16px; font-size: .85rem; color: var(--text-2); }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #555; background: rgba(20,20,20,.8); color: #fff; font-size: 22px; cursor: pointer; }

/* ---------- Link list ---------- */
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.link-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); color: var(--text);
}
.link-list a:hover { border-color: rgba(201,166,107,.6); }
.link-list .ext { color: var(--muted); font-size: .78rem; }

.app-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.app { display: flex; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); color: var(--text); }
.app img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.app small { display: block; color: var(--muted); font-size: .8rem; }
.app:hover { border-color: rgba(201,166,107,.6); color: var(--text); }

.download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 14px; max-width: 980px; }
@media (min-width: 700px) { .download-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.callout h3, .prose .callout h3 { margin-top: 0; }
.download { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); color: var(--text); }
.download .thumb { background: #fff; aspect-ratio: 3 / 4; display: flex; align-items: center; justify-content: center; padding: 14px; }
.download .thumb img { max-height: 100%; width: auto; }
.download .meta { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .9rem; }
.download .meta span { color: var(--accent); font-size: .75rem; letter-spacing: .12em; }
.download:hover { border-color: rgba(201,166,107,.6); color: var(--text); }

/* ---------- Tools index ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.tool {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 140px;
  padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text);
}
.tool:hover { border-color: rgba(201,166,107,.6); color: var(--text); }
.tool .en { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
.tool .jp { font-size: .84rem; color: var(--text-2); }
.tool .arrow { color: var(--accent); font-size: .78rem; letter-spacing: .14em; }

/* ---------- Blog ---------- */
.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.post-card .card-img { aspect-ratio: 16 / 9; }
.post-date { font-size: .78rem; color: var(--muted); letter-spacing: .1em; }
.post-card .card-title { color: var(--text); font-size: 1.02rem; line-height: 1.6; letter-spacing: .03em; }
.post-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .84rem; margin-top: 14px; }
.post-title { font-family: var(--font-serif-jp); font-size: clamp(1.4rem, 3.6vw, 2.1rem); line-height: 1.55; letter-spacing: .04em; margin: 0; }
.post-body { font-size: 1.02rem; }
.post-body p { color: var(--text-2); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.post-nav a { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; color: var(--text); font-size: .9rem; background: var(--bg-2); }
.post-nav a small { display: block; color: var(--muted); font-size: .75rem; letter-spacing: .12em; margin-bottom: 4px; }
.post-nav a:hover { border-color: rgba(201,166,107,.6); }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: auto; } }

.archive { display: flex; flex-wrap: wrap; gap: 8px; }
.archive span { font-size: .82rem; color: var(--text-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; }

/* ---------- Book ---------- */
.book { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.book img { border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.6); width: 100%; }
@media (max-width: 640px) { .book { grid-template-columns: 1fr; } .book img { max-width: 200px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 100px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.contact-list .k { color: var(--accent); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; padding-top: 4px; }
.contact-list address { font-style: normal; color: var(--text-2); line-height: 1.7; }
@media (max-width: 480px) { .contact-list li { grid-template-columns: 1fr; gap: 2px; } }
.contact-list a { word-break: break-all; }

.form { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); }
.field { display: grid; gap: 6px; }
.field label { font-size: .86rem; color: var(--text-2); letter-spacing: .06em; }
.field label .req { color: var(--accent); margin-left: 4px; font-size: .78rem; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,166,107,.18); }
.form .btn { justify-self: start; min-width: 160px; }
.form-status { font-size: .9rem; margin: 0; min-height: 1.4em; }
.form-status.ok { color: var(--accent-2); }
.form-status.err { color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(48px, 7vw, 72px) 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(28px, 5vw, 56px); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-name { font-size: 1.8rem; }
.footer-brand p { color: var(--text-2); font-size: .86rem; margin-top: 14px; }
.footer-title { font-size: .72rem; color: var(--accent); letter-spacing: .26em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: .86rem; }
.footer-links a { color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--text-2); }
.social a:hover { color: var(--text); border-color: var(--accent); }
.social svg { width: 18px; height: 18px; }
.partners { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.partners a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.partners img { width: 92px; height: 92px; object-fit: cover; }
.partners .book-mini img { width: 60px; height: 92px; }
.partners small { display: block; font-size: .72rem; color: var(--muted); text-align: center; padding: 4px 0; background: var(--bg); }
.footer-bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .76rem; color: var(--muted); letter-spacing: .06em; }

/* ---------- Misc ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 16px; } .mt-2 { margin-top: 32px; } .mt-3 { margin-top: 48px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.2em; padding: 0; list-style: none; }
.tag-row li { font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--text-2); }
.budget-list { display: grid; gap: 12px; }
.budget { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: start; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.budget .name { font-weight: 600; color: var(--text); }
.budget .amount { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--accent-2); line-height: 1.1; display: block; margin-top: 4px; }
.budget p { margin: 0; color: var(--text-2); font-size: .9rem; }
@media (max-width: 600px) { .budget { grid-template-columns: 1fr; gap: 8px; } }
.license { font-size: .85rem; color: var(--text-2); border-left: 2px solid var(--accent); padding: 6px 0 6px 14px; margin-top: 28px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
