/* AI NEW CINEMA — public site. Direction D: midnight blue & gold. */

@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/cormorant-garamond-latin-ext-500-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cormorant"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/cormorant-garamond-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/geist-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/geist-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/geist-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #0A0F1C;
  --bg-2: #111829;
  --bg-3: #18223A;
  --bg-4: #1F2A45;
  --line: rgba(217, 179, 108, 0.15);
  --line-2: rgba(239, 232, 218, 0.14);
  --text: #EFE8DA;
  --text-2: #D4CEC2;
  --muted: #A9AFBF;
  --muted-2: #8E95A8;
  --gold: #D9B36C;
  --gold-2: #E6C58A;
  --gold-ink: #14110A;
  --danger: #F08C7A;
  --ok: #8FD3A8;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 2400px;
  --gutter: clamp(20px, 4vw, 80px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1; margin: 0; }
em, .it { font-style: italic; }
.gold { color: var(--gold); }
.sr-only { 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; left: 16px; top: -60px; z-index: 50; background: var(--gold); color: var(--gold-ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 12px; color: var(--gold-ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); }
.rule { width: 64px; height: 1px; background: var(--gold); border: 0; margin: 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: var(--radius); border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 15px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s, color .15s; text-align: center; }
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 600; }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--gold-ink); }
.btn-outline-gold { border-color: var(--gold); color: var(--gold); font-weight: 600; }
.btn-outline-gold:hover { background: rgba(217,179,108,.1); }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn svg { flex: none; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header.overlay { position: absolute; left: 0; right: 0; top: 0; border-bottom-color: transparent; background: linear-gradient(180deg, rgba(10,15,28,.85), rgba(10,15,28,0)); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { width: 34px; height: 34px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; color: var(--gold); }
.brand-name { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .08em; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-links a[aria-current="page"] { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text); display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.nav-toggle { display: none; }
.nav-submit { min-height: 44px; padding: 0 18px; font-size: 14px; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-grid; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-submit { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(760px, 88vh); display: flex; align-items: center; overflow: hidden; background: var(--bg-3); }
.hero-media { position: absolute; top: 0; bottom: 0; right: 0; width: 64%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(10,15,28,.85) 22%, rgba(10,15,28,.25) 60%, rgba(10,15,28,.15) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(10,15,28,0) 30%); }
.hero-fade { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: var(--bg); }
.hero-inner { position: relative; width: 100%; padding-top: 130px; padding-bottom: 64px; }
.hero-copy { max-width: clamp(560px, 38vw, 820px); }
.hero h1 { margin-top: 22px; font-size: clamp(56px, 8vw, 112px); line-height: .92; }
.hero .episode-line { margin-top: 12px; font-family: var(--serif); font-size: 28px; font-style: italic; color: var(--text-2); }
.hero .rule { margin-top: 26px; }
.hero-logline { margin: 22px 0 0; font-size: 18px; line-height: 1.65; color: var(--text-2); }
.hero-meta { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin: 22px 0 0; font-size: 13px; color: var(--muted-2); }
@media (max-width: 860px) {
  .hero { min-height: 0; align-items: flex-end; flex-direction: column; }
  .hero-media { position: relative; width: 100%; aspect-ratio: 16 / 9; }
  .hero-media::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(10,15,28,0) 55%); }
  .hero-fade { display: none; }
  .hero-inner { padding-top: 0; margin-top: -40px; }
  .site-header.overlay { position: relative; background: var(--bg); border-bottom-color: var(--line); }
}

/* ---------- concept strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; padding-top: 44px; padding-bottom: 44px; }
.strip h2 { font-size: 30px; }
.strip p { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--muted); }

/* ---------- rows & cards ---------- */
.section { padding-top: 72px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 44px; }
.section-head p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.section-head .see-all { font-size: 14px; color: var(--gold); white-space: nowrap; }
.row-wrap { position: relative; margin-top: 24px; }
.row { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); padding: 0 var(--gutter) 8px; scrollbar-width: none; max-width: var(--wrap); margin: 0 auto; }
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }
.row-btn { position: absolute; top: 0; height: calc(100% - 70px); width: 44px; display: none; place-items: center; background: rgba(10,15,28,.75); border: 0; color: var(--text); cursor: pointer; z-index: 2; }
.row-btn:hover { color: var(--gold); }
.row-btn.prev { left: 0; } .row-btn.next { right: 0; }
@media (hover: hover) and (min-width: 860px) { .row-wrap.scrollable .row-btn { display: grid; } }

.card { flex: 0 0 clamp(260px, 19vw, 400px); width: clamp(260px, 19vw, 400px); display: block; }
.grid .card { width: auto; }
.card-media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card:hover .card-title { color: var(--gold); }
.card-badge { position: absolute; left: 10px; top: 10px; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; background: rgba(10,15,28,.82); color: var(--gold); }
.card-badge.warn { color: var(--danger); left: auto; right: 10px; }
.card-duration { position: absolute; right: 10px; bottom: 10px; font-size: 12px; font-weight: 500; padding: 2px 7px; border-radius: 3px; background: rgba(10,15,28,.85); color: var(--text); }
.card-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; font-family: var(--serif); font-size: 26px; line-height: 1; }
.card-title { margin-top: 12px; font-size: 15px; font-weight: 500; line-height: 1.35; transition: color .15s; }
.card-meta { margin-top: 4px; font-size: 13px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(260px, 18vw, 380px), 1fr)); gap: 32px 24px; }

/* ---------- filmmakers ---------- */
.maker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 24px; }
.maker { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.maker:hover { border-color: rgba(217,179,108,.45); }
.avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; overflow: hidden; font-family: var(--serif); font-size: 22px; color: var(--gold); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 120px; height: 120px; font-size: 44px; }
.maker-name { font-size: 15px; font-weight: 500; }
.maker-meta { margin-top: 3px; font-size: 13px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { margin: 96px auto 0; }
.cta-box { border-radius: var(--radius); background: var(--bg-2); border: 1px solid rgba(217,179,108,.3); padding: 60px; display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.cta-box h2 { margin-top: 16px; font-size: clamp(36px, 4.5vw, 56px); }
.cta-box p { margin: 18px 0 0; max-width: 640px; font-size: 16px; line-height: 1.7; color: var(--text-2); }
.cta-actions { display: flex; flex-direction: column; gap: 12px; min-width: 240px; }
@media (max-width: 640px) { .cta-box { padding: 32px 24px; } .cta-actions { width: 100%; } }

/* ---------- footer ---------- */
.site-footer { margin-top: 110px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; padding-top: 52px; padding-bottom: 40px; }
.footer-about { max-width: 380px; }
.footer-about p { margin: 12px 0 0; font-size: 13px; line-height: 1.65; color: var(--muted); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; font-size: 14px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols h3 { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.footer-base { border-top: 1px solid var(--line); padding-top: 22px; padding-bottom: 30px; font-size: 12px; color: var(--muted-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- title pages (film / series) ---------- */
.crumbs { padding-top: 32px; font-size: 13px; color: var(--muted-2); }
.crumbs a { color: var(--muted-2); }
.crumbs a:hover { color: var(--gold); }
.title-block { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; margin-top: 28px; }
.poster { flex: 0 0 220px; width: 220px; aspect-ratio: 2 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); border: 1px solid rgba(217,179,108,.25); }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.poster-text { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; font-family: var(--serif); font-size: 36px; line-height: .95; }
.title-main { flex: 999 1 560px; min-width: 0; }
.title-main h1 { margin-top: 14px; font-size: clamp(48px, 7vw, 88px); line-height: .95; }
.title-main .episode-line { margin-top: 8px; font-family: var(--serif); font-size: 30px; font-style: italic; color: var(--text-2); }
.byline { margin: 14px 0 0; font-size: 17px; color: var(--text-2); }
.byline a { color: var(--gold); border-bottom: 1px solid rgba(217,179,108,.4); }
.facts { margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 20px; max-width: 820px; }
.facts dt { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.facts dd { margin: 6px 0 0; font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
a.tag:hover { border-color: var(--gold); }
@media (max-width: 640px) { .poster { flex-basis: 140px; width: 140px; } .title-block { gap: 24px; } }

/* ---------- player ---------- */
.watch { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; margin-top: 44px; }
.watch-main { flex: 999 1 640px; min-width: 0; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid rgba(217,179,108,.18); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: #000; color: var(--text); }
.player-facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: opacity .2s; }
.player-facade:hover img { opacity: .85; }
.player-facade .play-ui { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; height: 100%; padding: 24px; background: radial-gradient(circle at center, rgba(10,15,28,.15), rgba(10,15,28,.6)); }
.play-circle { width: 92px; height: 92px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; box-shadow: 0 10px 40px rgba(0,0,0,.45); transition: transform .2s; }
.player-facade:hover .play-circle { transform: scale(1.06); }
.play-label { font-size: 16px; font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.7); }
.play-note { max-width: 520px; font-size: 12px; line-height: 1.5; color: var(--text-2); text-shadow: 0 1px 6px rgba(0,0,0,.8); text-align: center; }
.player-unavailable { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 24px; background: var(--bg-2); }
.player-unavailable h2 { font-size: 30px; }
.player-bar { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 14px; }
.player-bar .muted { max-width: 560px; }
.player-bar-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.player-bar .btn { min-height: 44px; padding: 0 18px; font-size: 14px; }
@media (max-width: 640px) { .play-circle { width: 64px; height: 64px; } .play-note { display: none; } }

.episodes { flex: 1 1 320px; min-width: 0; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); padding: 22px; }
.episodes-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.episodes-head h2 { font-size: 26px; }
.season-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.season-tab { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-size: 13px; cursor: pointer; }
.season-tab[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 600; }
.ep-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow-y: auto; }
.ep { display: flex; gap: 14px; padding: 10px; border-radius: var(--radius); border: 1px solid transparent; }
.ep:hover { background: rgba(239,232,218,.04); }
.ep.current { background: rgba(217,179,108,.1); border-color: rgba(217,179,108,.4); }
.ep-thumb { position: relative; flex: 0 0 112px; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: var(--bg-3); }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-num { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.ep-title { margin-top: 3px; font-size: 15px; font-weight: 500; line-height: 1.3; }
.ep-meta { margin-top: 2px; font-size: 13px; color: var(--muted); }

/* ---------- detail body ---------- */
.detail { display: flex; flex-wrap: wrap; gap: 64px; margin-top: 72px; }
.detail-main { flex: 999 1 560px; min-width: 0; }
.detail-main h2 { font-size: 40px; }
.detail-main h2 + * { margin-top: 16px; }
.prose { max-width: 740px; font-size: 17px; line-height: 1.75; color: var(--text-2); }
.prose p { margin: 0 0 14px; }
.prose a { color: var(--gold); border-bottom: 1px solid rgba(217,179,108,.4); }
.prose h2 { margin: 40px 0 12px; font-size: 32px; color: var(--text); }
.prose h3 { margin: 28px 0 8px; font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--text); }
.prose ul { padding-left: 20px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.credits { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 32px; }
.credit { padding: 14px 0; border-bottom: 1px solid rgba(217,179,108,.12); }
.credit dt { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.credit dd { margin: 5px 0 0; font-size: 15px; }
.credit a { color: var(--gold); }
.side { flex: 1 1 320px; min-width: 0; }
.panel { padding: 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.panel + .panel { margin-top: 16px; }
.panel .kicker { font-size: 11px; letter-spacing: .2em; }
.panel-person { margin-top: 18px; display: flex; align-items: center; gap: 14px; }
.panel p { margin: 16px 0 0; font-size: 14px; line-height: 1.65; color: var(--text-2); }
.panel-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.side-note { margin: 18px 4px 0; font-size: 12px; line-height: 1.6; color: var(--muted-2); }
.side-note a { color: var(--text-2); border-bottom: 1px solid rgba(212,206,194,.4); }

/* ---------- catalog ---------- */
.page-head { padding-top: 56px; }
.page-head h1 { font-size: clamp(48px, 6vw, 76px); }
.page-head p { margin: 14px 0 0; max-width: 680px; font-size: 17px; color: var(--muted); }
.filters { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 18px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.filters .field { display: flex; flex-direction: column; gap: 6px; min-width: 150px; flex: 1 1 150px; }
.filters .field.q { flex: 3 1 260px; }
.filters label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.filters .btns { display: flex; gap: 8px; }
.result-count { margin: 28px 0 20px; font-size: 14px; color: var(--muted); }
.empty { padding: 72px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty h2 { font-size: 34px; color: var(--text); margin-bottom: 10px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--line-2); font-size: 14px; }
.pager .current { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 600; }

/* ---------- forms ---------- */
input[type=text], input[type=email], input[type=url], input[type=number], input[type=search], input[type=password], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: inherit; font-size: 15px;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23A9AFBF' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,179,108,.18); }
.form { max-width: 820px; }
.form-section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.form-section h2 { font-size: 32px; }
.form-section > p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.fld label, .fld > .lbl { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.fld .req { color: var(--gold); }
.fld .hint { margin-top: 6px; font-size: 12px; line-height: 1.5; color: var(--muted-2); }
.fld .err { margin-top: 6px; font-size: 13px; color: var(--danger); }
.fld.has-err input, .fld.has-err textarea, .fld.has-err select { border-color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--text-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); }
.checks { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 14px; margin-top: 20px; border: 1px solid; }
.alert-err { border-color: rgba(240,140,122,.5); background: rgba(240,140,122,.08); color: #F6C3B9; }
.alert-ok { border-color: rgba(143,211,168,.5); background: rgba(143,211,168,.08); color: #CDEBD7; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- content pages ---------- */
.content { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; margin-top: 48px; }
@media (max-width: 960px) { .content { grid-template-columns: 1fr; } }
.steps { list-style: none; padding: 0; margin: 24px 0 0; counter-reset: s; display: grid; gap: 16px; }
.steps li { counter-increment: s; position: relative; padding: 20px 20px 20px 72px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font-family: var(--serif); font-size: 20px; color: var(--gold); }
.steps strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 28px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.feature h3 { font-size: 26px; }
.feature p { margin: 10px 0 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.notice { padding: 18px 20px; border-radius: var(--radius); border: 1px solid rgba(217,179,108,.35); background: rgba(217,179,108,.06); font-size: 14px; line-height: 1.6; color: var(--text-2); }
.message-page { padding: 120px 0 40px; max-width: 720px; }
.message-page h1 { font-size: clamp(44px, 6vw, 72px); margin-top: 18px; }
.message-page p { margin: 22px 0 0; font-size: 18px; line-height: 1.7; color: var(--text-2); }
.message-page .btn { margin-top: 32px; }

@media (max-width: 640px) {
  .section { padding-top: 56px; }
  .section-head h2 { font-size: 36px; }
  .card { flex-basis: 260px; width: 260px; }
  .brand-name { font-size: 22px; }
}
