:root {
  --navy: #12205a;
  --navy-deep: #0b1538;
  --navy-soft: #1c2e73;
  --red: #e31c23;
  --red-dark: #b31419;
  --gold: #c9a227;
  --paper: #f6f1e8;
  --paper-2: #eee6d6;
  --ink: #16141c;
  --muted: #5c564c;
  --line: rgba(18, 32, 90, 0.12);
  --white: #fffdf8;
  --shadow: 0 18px 50px rgba(11, 21, 56, 0.12);
  --radius: 18px;
  --header-h: 78px;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: white;
  padding: 8px 12px;
  z-index: 20;
}

.skip:focus {
  top: 12px;
}

/* Top bar */
.topbar {
  background: var(--navy-deep);
  color: #d7dcec;
  font-size: 0.82rem;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 38px;
}

.topbar a:hover {
  color: white;
}

.topbar-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.lang-switch {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: #d7dcec;
  padding: 4px 10px;
  cursor: pointer;
}

.lang-switch button.is-active {
  background: var(--red);
  color: white;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  height: 48px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--navy);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}

.nav a:hover::after,
.nav a.is-active::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  transition: 0.2s ease;
}

.btn-red {
  background: var(--red);
  color: white;
}

.btn-red:hover {
  background: var(--red-dark);
}

.btn-navy {
  background: var(--navy);
  color: white;
}

.btn-navy:hover {
  background: var(--navy-soft);
}

.btn-ghost {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: white;
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: white;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  margin: 4px auto;
}

.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;
}

.header-search,
.search-page-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
}

.header-search {
  margin-left: auto;
  flex: 0 1 230px;
  min-width: 0;
}

.header-search input,
.search-page-form .search-lg {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 9px 42px 9px 14px;
}

.header-search button[type="submit"] {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-search button[type="submit"]:hover {
  background: var(--navy-soft);
}

.search-jump {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  color: var(--navy);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 40;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
}

.search-suggest .search-hit {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 10px 12px;
  grid-template-columns: 44px 1fr;
  gap: 10px;
}

.search-suggest .search-hit + .search-hit {
  border-top: 1px solid var(--line);
}

.search-suggest .search-hit.is-active,
.search-suggest .search-hit:hover {
  background: #f3eee4;
}

.search-suggest-all {
  display: block;
  padding: 12px 14px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  border-top: 1px solid var(--line);
  background: #f7f2e9;
}

.search-page-form {
  margin-top: 22px;
  max-width: 640px;
}

.search-page-form .search-lg {
  padding: 14px 18px;
  font-size: 1.02rem;
}

.search-page-form .btn {
  margin-left: 8px;
  flex-shrink: 0;
}

.search-page-form .search-suggest {
  right: 148px;
}

.search-results {
  display: grid;
  gap: 12px;
}

.search-hit {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
}

.search-hit:hover {
  border-color: rgba(18, 32, 90, 0.28);
  box-shadow: var(--shadow);
}

.search-hit h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 4px 0 6px;
  color: var(--navy);
  line-height: 1.2;
}

.search-hit p {
  margin: 0;
  font-size: 0.92rem;
}

.search-excerpt {
  margin-top: 8px !important;
}

.search-cover {
  width: 72px;
  min-height: 104px;
  padding: 8px 7px;
  box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.18);
}

.search-cover.has-image {
  min-height: 0;
  display: flex;
  align-items: center;
  background: #0f1738;
}

.search-cover.has-image img {
  max-height: 104px;
  object-fit: contain;
}

.search-cover small,
.search-cover em {
  display: none;
}

.search-cover strong {
  font-size: 0.68rem;
}

.search-suggest .search-cover {
  width: 44px;
  min-height: 62px;
  padding: 4px;
}

.search-suggest .search-cover.has-image {
  min-height: 0;
}

.search-suggest .search-cover.has-image img {
  max-height: 62px;
}

.search-suggest .search-cover strong {
  font-size: 0.48rem;
}

.search-hit mark,
.search-excerpt mark {
  background: rgba(201, 162, 39, 0.38);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

.search-toolbar {
  align-items: center;
  justify-content: space-between;
}

.article-item {
  scroll-margin-top: calc(var(--header-h) + 52px);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(227, 28, 35, 0.28), transparent 50%),
    radial-gradient(700px 300px at 10% 90%, rgba(201, 162, 39, 0.16), transparent 50%),
    linear-gradient(165deg, #07122f 0%, #12205a 52%, #0d1a46 100%);
  padding: 72px 0 84px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 70% 40%, black, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.9;
  margin: 14px 0 18px;
  font-weight: 600;
}

.hero p.lead {
  font-size: 1.15rem;
  max-width: 38rem;
  color: #d7dcec;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-meta b {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  line-height: 1;
}

.hero-meta span {
  font-size: 0.82rem;
  color: #b9c0d4;
}

.hero-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  transform: rotate(-6deg);
}

/* Book covers */
.cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 4px 10px 10px 4px;
  color: white;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 10px 16px 30px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(255, 255, 255, 0.12));
}

.cover::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -10%;
  width: 90px;
  height: 160%;
  background: rgba(255, 255, 255, 0.06);
  transform: rotate(18deg);
}

.cover small {
  position: relative;
  z-index: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.62rem;
  opacity: 0.8;
}

.cover strong {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.15;
}

.cover em {
  position: relative;
  z-index: 1;
  font-style: normal;
  font-size: 0.75rem;
  opacity: 0.85;
}

.cover.has-image::before,
.cover.has-image::after {
  display: none;
}

.cover.has-image {
  padding: 0;
  aspect-ratio: auto;
  height: auto;
  display: block;
  background: #0f1738;
}

.cover.has-image img {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
  vertical-align: top;
}

/* Sections */
.section {
  padding: 84px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}

.section-head h2,
.page-hero h1,
.article-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin: 8px 0 0;
  color: var(--navy);
}

.kicker {
  color: var(--red);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* Carousel */
.carousel-wrap {
  position: relative;
  overflow: hidden;
}

.carousel {
  display: flex;
  gap: 20px;
  will-change: transform;
}

.carousel > .pub-card {
  flex: 0 0 calc(33.333% - 14px);
}

.pub-card,
.book-card,
.journal-card,
.service-card,
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pub-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pub-card .cover {
  border-radius: 18px 18px 0 0;
  box-shadow: none;
  aspect-ratio: 16 / 11;
  min-height: 148px;
}

.pub-card .cover.has-image {
  aspect-ratio: auto;
  min-height: 0;
}

.pub-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
}

.pub-body .cat,
.book-card .cat,
.meta-chip {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pub-body h3,
.book-card h3,
.journal-card h3 {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  line-height: 1.2;
  margin: 8px 0;
  color: var(--navy);
}

.pub-body h3 {
  font-size: 1.12rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pub-body p,
.book-card p,
.muted {
  color: var(--muted);
  margin: 0;
}

.pub-body .btn,
.book-card .btn {
  margin-top: auto;
  align-self: flex-start;
  padding: 8px 14px;
  font-size: 0.85rem;
}

.carousel-nav {
  display: flex;
  gap: 10px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  color: var(--navy);
}

.icon-btn:hover {
  background: var(--navy);
  color: white;
}

.dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
}

.dots button {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  border: 0;
  background: #cfc6b4;
  cursor: pointer;
  padding: 0;
}

.dots button.is-active {
  width: 26px;
  background: var(--red);
}

/* Services */
.services {
  background: var(--navy-deep);
  color: white;
}

.services h2 {
  color: white;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  padding: 28px;
}

.service-card .num {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.4rem;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  margin: 10px 0;
}

.service-card p {
  color: #c9d0e3;
  margin: 0;
}

/* Catalog preview */
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.book-card .cover {
  border-radius: 18px 18px 0 0;
  aspect-ratio: 3 / 3.4;
  box-shadow: none;
}

.book-card .cover.has-image {
  aspect-ratio: auto;
}

.book-card .pad {
  padding: 16px 16px 18px;
}

.book-card h3 {
  font-size: 1.12rem;
  min-height: 2.6em;
}

/* Journals */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.journal-card {
  padding: 0;
}

.journal-card .banner {
  height: 140px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: white;
}

.journal-card .banner span {
  font-family: var(--font-serif);
  font-size: 1.8rem;
}

.journal-card .banner.has-image {
  position: relative;
  padding: 0;
  height: 180px;
}

.journal-card .banner.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.journal-card .banner.has-image span {
  position: absolute;
  left: 18px;
  bottom: 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.journal-card .pad {
  padding: 20px;
}

/* CTA */
.cta-band {
  background:
    linear-gradient(135deg, rgba(227, 28, 35, 0.92), rgba(18, 32, 90, 0.92)),
    var(--navy);
  color: white;
  padding: 64px 0;
}

.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-band h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 8px;
}

/* Page hero */
.page-hero {
  padding: 56px 0 28px;
  background:
    linear-gradient(180deg, #efe7d8, var(--paper));
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.breadcrumb a:hover {
  color: var(--red);
}

/* About */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.values {
  display: grid;
  gap: 14px;
}

.value {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.value:last-child {
  border-bottom: 0;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f8e8e8;
  color: var(--red);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-card {
  padding: 24px;
}

.stat-card b {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--navy);
  display: block;
}

/* Filters */
.toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 24px;
}

.search {
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 12px 16px;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--navy);
}

.chip.is-active,
.chip:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}

/* Detail */
.detail {
  display: grid;
  grid-template-columns: minmax(280px, 520px) 1fr;
  gap: 40px;
  align-items: start;
}

.detail .cover {
  width: 100%;
}

.cover-zoom {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
  border-radius: 4px 10px 10px 4px;
}

.cover-zoom:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.cover-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 56px 24px 24px;
  background: rgba(11, 21, 56, 0.92);
  cursor: zoom-out;
}

.cover-lightbox[hidden] {
  display: none;
}

.cover-lightbox img {
  max-width: min(96vw, 1600px);
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  cursor: default;
}

.cover-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: white;
  color: var(--navy);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.cover-lightbox-close:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

body.is-lightbox-open {
  overflow: hidden;
}

.cover.journal-cover {
  aspect-ratio: 4 / 3;
  min-height: 220px;
}

.cover.journal-cover.has-image {
  aspect-ratio: auto;
  min-height: 0;
}

.facts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 22px;
}

.facts span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
}

.book-prose {
  display: grid;
  gap: 14px;
}

.book-prose p {
  margin: 0;
  line-height: 1.7;
}

.book-prose h2,
.book-prose h3,
.book-prose h4 {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.25;
}

.book-prose h2 { font-size: 1.45rem; }
.book-prose h3 { font-size: 1.25rem; }
.book-prose h4 { font-size: 1.1rem; }

.book-prose ul,
.book-prose ol {
  margin: 0;
  padding-left: 1.3rem;
}

.book-prose li + li {
  margin-top: 0.35rem;
}

.book-prose blockquote {
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  color: var(--navy);
}

.book-prose a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.book-prose pre {
  margin: 0;
  padding: 12px 14px;
  background: var(--white);
  border-radius: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  font-size: 0.92rem;
}

.book-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.book-about,
.author-bio {
  margin-top: 28px;
}

.book-about > h2,
.author-bio > h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
}

.author-bio {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-list {
  display: grid;
  gap: 14px;
}

.article-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
}

.article-item.has-cover {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: start;
}

.article-thumb {
  width: 92px;
  height: 128px;
  object-fit: cover;
  border-radius: 10px;
}

.article-item h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 6px 0 8px;
  color: var(--navy);
}

.article-download {
  margin: 14px 0 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form input,
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  padding: 12px 14px;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.recaptcha-slot {
  min-height: 78px;
}

@media (max-width: 420px) {
  .recaptcha-slot {
    height: 66px;
    min-height: 0;
  }

  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: 0 0;
  }
}

.form-success {
  display: none;
  background: #e8f6ec;
  color: #1b5e32;
  border-radius: 12px;
  padding: 12px 14px;
}

.form-success.is-visible,
.form-error.is-visible {
  display: block;
}

.form-error {
  display: none;
  background: #fde8e8;
  color: #8a1f1f;
  border-radius: 12px;
  padding: 12px 14px;
}

.map {
  height: 220px;
  border: 0;
  width: 100%;
  border-radius: 16px;
  margin-top: 18px;
  filter: grayscale(0.2) contrast(1.05);
}

/* Footer */
.footer {
  background: var(--navy-deep);
  color: #c5ccde;
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer h3 {
  color: white;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer a:hover {
  color: white;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  font-size: 0.82rem;
}

body[data-page="contact"] .cta-band {
  display: none;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 8px 20px 18px;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .contact-grid,
  .detail,
  .cta-band .wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .carousel > .pub-card {
    flex-basis: 80%;
  }

  .book-grid,
  .service-grid,
  .journal-grid,
  .partners {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stack {
    max-width: 420px;
    margin-top: 12px;
  }

  .nav,
  .header .bar > .header-search {
    display: none;
  }

  .search-jump {
    display: inline-flex;
    margin-left: auto;
  }

  .header-search.is-mobile {
    display: flex;
    margin: 0 0 8px;
    flex: none;
    width: 100%;
  }

  .search-page-form {
    flex-wrap: wrap;
  }

  .search-page-form .btn {
    margin: 8px 0 0;
  }

  .search-page-form .search-suggest {
    right: 0;
  }

  .menu-toggle {
    display: inline-block;
  }

  .header .mobile-nav.is-open {
    display: flex;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(1180px, calc(100% - 28px));
  }

  .book-grid,
  .service-grid,
  .journal-grid,
  .partners {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .section {
    padding: 56px 0;
  }

  .hero-meta {
    flex-direction: column;
    gap: 14px;
  }

  .topbar .wrap {
    justify-content: space-between;
  }

  .topbar-links span:nth-child(2) {
    display: none;
  }

  .search-hit,
  .search-hit.has-cover {
    grid-template-columns: 56px 1fr;
  }

  .search-cover {
    width: 56px;
    min-height: 80px;
  }

  .search-cover.has-image {
    min-height: 0;
  }

  .search-cover.has-image img {
    max-height: 80px;
  }
}
