:root {
  --navy-950: #050b45;
  --navy-900: #07105f;
  --navy-800: #111b73;
  --azure-600: #087ef5;
  --azure-500: #1596ff;
  --cyan-400: #37c6ef;
  --violet-500: #6939f5;
  --ink: #0e163d;
  --muted: #5e6783;
  --line: #e3e7f1;
  --surface: #f4f7fc;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(7, 16, 95, 0.12);
  --shell: min(1200px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.dialog-open { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.shell { width: var(--shell); margin-inline: 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; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 16px; color: white; background: var(--navy-950); border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); border-bottom: 1px solid rgba(227,231,241,.8); backdrop-filter: blur(18px); }
.header-inner { height: 82px; display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 205px; max-height: 58px; object-fit: contain; object-position: left center; }
.nav { display: flex; justify-content: center; gap: 32px; }
.nav a, .footer-links a { color: #48516d; text-decoration: none; font-size: .92rem; font-weight: 600; transition: color .2s; }
.nav a:hover, .nav a:focus-visible, .footer-links a:hover { color: var(--azure-600); }
.header-cta { padding: 10px 17px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy-900); text-decoration: none; font-size: .86rem; font-weight: 700; transition: border-color .2s, transform .2s; }
.header-cta:hover { border-color: var(--azure-500); transform: translateY(-1px); }

.hero { min-height: 610px; display: grid; grid-template-columns: minmax(0,1.12fr) minmax(340px,.68fr); align-items: center; gap: clamp(50px,8vw,110px); padding-block: 72px 78px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--azure-600); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 2px; background: currentColor; }
.hero h1, .section-heading h2, .about-section h2, .dialog-summary h2, .legal-page h1 { margin: 0; font-family: "Manrope", sans-serif; letter-spacing: -.045em; line-height: 1.04; }
.hero h1 { max-width: 760px; color: var(--navy-950); font-size: clamp(3.3rem,6.1vw,5.9rem); font-weight: 700; }
.hero h1 em { color: var(--azure-600); font-style: normal; }
.hero-lead { max-width: 670px; margin: 30px 0 0; color: var(--muted); font-size: 1.14rem; line-height: 1.72; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 24px; padding: 13px 20px; border: 0; border-radius: 8px; text-decoration: none; font-size: .92rem; font-weight: 700; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button-primary { color: white; background: var(--navy-900); box-shadow: 0 12px 30px rgba(7,16,95,.17); }
.button-primary:hover { background: var(--azure-600); box-shadow: 0 14px 34px rgba(8,126,245,.25); transform: translateY(-2px); }
.button:focus-visible, .filter:focus-visible, .text-button:focus-visible, input:focus-visible, .dialog-close:focus-visible { outline: 3px solid rgba(21,150,255,.35); outline-offset: 3px; }
.hero-note { color: #7a8298; font-size: .82rem; }

.featured-panel { position: relative; min-height: 450px; padding: 32px 28px 22px; overflow: hidden; color: white; background: linear-gradient(145deg,var(--navy-950),#111c7a 62%,#08358e); border-radius: 4px 40px 4px 4px; box-shadow: var(--shadow); }
.featured-panel::before { content: ""; position: absolute; inset: auto -70px -110px auto; width: 300px; aspect-ratio: 1; border: 1px solid rgba(68,187,255,.3); border-radius: 50%; }
.featured-orbit { position: absolute; right: -115px; top: -90px; width: 290px; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.featured-orbit::after { content: ""; position: absolute; left: 30px; bottom: 52px; width: 11px; height: 11px; background: var(--cyan-400); border-radius: 50%; box-shadow: 0 0 0 8px rgba(55,198,239,.1); }
.featured-kicker { position: relative; font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.featured-cover { position: relative; width: min(230px,80%); aspect-ratio: 148/210; margin: 28px auto 25px; padding: 22px; color: var(--navy-950); background: white; box-shadow: 0 20px 45px rgba(0,0,0,.27); transform: rotate(-2.3deg); }
.cover-brand { color: var(--azure-600); font-size: .46rem; font-weight: 800; letter-spacing: .16em; }
.cover-rule { width: 28px; height: 3px; margin: 24px 0 16px; background: var(--azure-500); }
.featured-cover strong { display: block; font: 700 1.2rem/1.12 "Manrope", sans-serif; letter-spacing: -.04em; }
.featured-cover small { display: block; margin-top: 8px; color: var(--azure-600); font-size: .48rem; letter-spacing: .12em; font-weight: 800; }
.cover-edition { position: absolute; left: 22px; bottom: 20px; color: #69718d; font-size: .42rem; letter-spacing: .12em; }
.featured-meta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(255,255,255,.17); padding-top: 18px; font-size: .76rem; }
.featured-meta > span { color: rgba(255,255,255,.65); }
.text-button { padding: 0; color: inherit; background: transparent; border: 0; font-weight: 700; cursor: pointer; }
.featured-meta .text-button { color: white; }

.catalogue-section { padding-block: 92px 106px; background: var(--surface); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.section-heading h2, .about-section h2 { color: var(--navy-950); font-size: clamp(2.15rem,4vw,3.45rem); }
.section-heading > p { max-width: 450px; margin: 0 0 4px; color: var(--muted); }
.catalogue-tools { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 52px; padding-bottom: 21px; border-bottom: 1px solid #d8ddeb; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { padding: 8px 14px; color: #68718a; background: transparent; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-size: .85rem; font-weight: 700; }
.filter:hover { color: var(--navy-900); }
.filter.is-active { color: white; background: var(--navy-900); }
.search-field { display: flex; align-items: center; gap: 8px; min-width: 215px; padding: 8px 0; border-bottom: 1px solid #9ca5bb; }
.search-field svg { width: 18px; fill: none; stroke: #68718a; stroke-width: 1.8; }
.search-field input { width: 100%; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: .9rem; }
.search-field input::placeholder { color: #8d95a8; }
.catalogue-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 32px; }
.book-card { display: flex; min-height: 440px; flex-direction: column; padding: 26px; background: white; border: 1px solid #e4e8f2; border-radius: 14px; box-shadow: 0 6px 18px rgba(9,18,78,.035); transition: transform .25s, box-shadow .25s, border-color .25s; }
.book-card:hover { transform: translateY(-5px); border-color: #cbd4e7; box-shadow: 0 18px 45px rgba(9,18,78,.09); }
.book-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.book-category { color: var(--azure-600); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.book-status { padding: 4px 8px; color: #626b83; background: #f2f4f8; border-radius: 999px; font-size: .68rem; font-weight: 700; }
.book-status.available { color: #05604c; background: #e7f8f3; }
.book-art { position: relative; height: 98px; margin: 25px 0 24px; overflow: hidden; background: linear-gradient(135deg,#f2f6ff,#e5efff); border-radius: 10px; }
.book-art::before { content: ""; position: absolute; width: 145px; height: 145px; right: -25px; top: -75px; border: 1px solid rgba(8,126,245,.38); border-radius: 50%; }
.book-art::after { content: ""; position: absolute; width: 75px; height: 75px; right: 35px; bottom: -42px; border: 10px solid rgba(21,150,255,.11); border-radius: 50%; }
.book-art span { position: absolute; left: 18px; top: 18px; color: var(--navy-900); font: 800 .68rem/1 "Manrope",sans-serif; letter-spacing: .11em; }
.accent-violet .book-art { background: linear-gradient(135deg,#f6f2ff,#eae3ff); }
.accent-violet .book-art::before { border-color: rgba(105,57,245,.45); }
.accent-navy .book-art { background: linear-gradient(135deg,#eef0fb,#dee4fb); }
.accent-cyan .book-art { background: linear-gradient(135deg,#edfbfe,#dff5fb); }
.accent-indigo .book-art { background: linear-gradient(135deg,#f1f2ff,#e4e5ff); }
.book-card h3 { margin: 0; color: var(--navy-950); font: 700 1.35rem/1.22 "Manrope",sans-serif; letter-spacing: -.035em; }
.book-subtitle { margin: 13px 0 0; color: var(--muted); font-size: .91rem; line-height: 1.55; }
.book-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 26px; }
.book-tags span { color: #66708c; font-size: .7rem; font-weight: 600; }
.book-tags span:not(:last-child)::after { content: "·"; margin-left: 6px; color: #a6aec0; }
.book-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.book-meta { color: #8a92a5; font-size: .72rem; }
.book-action { display: inline-flex; align-items: center; gap: 8px; color: var(--navy-900); font-size: .82rem; }
.book-action[disabled] { color: #9ba2b3; cursor: default; }
.empty-state { padding: 70px 24px; text-align: center; }
.empty-state h3 { margin: 0; color: var(--navy-950); font: 700 1.4rem "Manrope",sans-serif; }
.empty-state p { color: var(--muted); }
.empty-state .text-button { color: var(--azure-600); }

.expertise-section { padding-block: 100px 112px; }
.section-heading.compact { align-items: start; }
.expertise-grid { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 54px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.expertise-grid article { min-height: 250px; padding: 28px 26px 30px; border-right: 1px solid var(--line); }
.expertise-grid article:last-child { border-right: 0; }
.expertise-grid article > span { color: var(--azure-600); font: 800 .7rem "Manrope",sans-serif; letter-spacing: .08em; }
.expertise-grid h3 { margin: 50px 0 12px; color: var(--navy-950); font: 700 1.08rem/1.25 "Manrope",sans-serif; }
.expertise-grid p { margin: 0; color: var(--muted); font-size: .87rem; line-height: 1.62; }

.about-section { position: relative; overflow: hidden; padding-block: 90px; color: white; background: var(--navy-950); }
.about-section::after { content: ""; position: absolute; width: 530px; height: 530px; right: -180px; top: -230px; border: 1px solid rgba(68,187,255,.18); border-radius: 50%; box-shadow: 0 0 0 74px rgba(68,187,255,.03),0 0 0 150px rgba(68,187,255,.025); }
.about-inner { position: relative; z-index: 1; display: grid; grid-template-columns: .95fr 1.05fr; gap: 100px; }
.eyebrow.light { color: var(--cyan-400); }
.about-section h2 { max-width: 580px; color: white; }
.about-copy { padding-top: 36px; }
.about-copy p { max-width: 610px; margin: 0 0 20px; color: rgba(255,255,255,.7); font-size: 1rem; line-height: 1.75; }

.site-footer { padding-top: 50px; background: white; }
.footer-main { display: grid; grid-template-columns: 230px 1fr auto; align-items: center; gap: 30px; padding-bottom: 38px; }
.footer-brand img { width: 185px; }
.footer-main > p { margin: 0; color: var(--muted); font-size: .86rem; }
.footer-links { display: flex; gap: 22px; }
.footer-bottom { display: flex; justify-content: space-between; padding-block: 20px; color: #8991a6; border-top: 1px solid var(--line); font-size: .72rem; }

.download-dialog { width: min(880px,calc(100vw - 32px)); max-height: min(750px,calc(100vh - 32px)); padding: 0; overflow: auto; color: var(--ink); background: white; border: 0; border-radius: 18px; box-shadow: 0 32px 90px rgba(5,11,69,.28); }
.download-dialog::backdrop { background: rgba(5,11,69,.68); backdrop-filter: blur(6px); }
.dialog-close { position: absolute; right: 18px; top: 15px; z-index: 2; width: 38px; height: 38px; padding: 0; color: #69718a; background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.dialog-layout { display: grid; grid-template-columns: .8fr 1.2fr; }
.dialog-summary { padding: 54px 40px; color: white; background: linear-gradient(150deg,var(--navy-950),#102080); }
.dialog-summary h2 { color: white; font-size: 2.15rem; }
.dialog-summary > p:not(.eyebrow) { margin: 24px 0 0; color: rgba(255,255,255,.72); }
.dialog-summary ul { display: grid; gap: 15px; margin: 42px 0 0; padding: 0; list-style: none; }
.dialog-summary li { position: relative; padding-left: 23px; color: rgba(255,255,255,.83); font-size: .86rem; }
.dialog-summary li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan-400); font-weight: 800; }
.download-form { display: grid; gap: 17px; padding: 50px 44px 42px; }
.download-form label { display: grid; gap: 7px; color: var(--navy-950); font-size: .79rem; font-weight: 700; }
.download-form label > span { color: #8b93a7; font-weight: 500; }
.download-form input:not([type="checkbox"]) { min-width: 0; height: 45px; padding: 0 13px; color: var(--ink); background: #fbfcfe; border: 1px solid #dce1eb; border-radius: 7px; }
.download-form input:not([type="checkbox"]):focus { border-color: var(--azure-500); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.consent-field { display: flex !important; grid-template-columns: 18px 1fr; align-items: start; gap: 10px !important; color: #66708a !important; font-size: .73rem !important; font-weight: 500 !important; line-height: 1.45; }
.consent-field input { flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--azure-600); }
.consent-field span { color: inherit !important; }
.privacy-note { margin: -6px 0 0; color: #8a92a5; font-size: .68rem; }
.privacy-note a { color: var(--azure-600); }
.submit-button { width: 100%; margin-top: 2px; }
.submit-button[disabled] { opacity: .65; cursor: wait; transform: none; }
.form-error { padding: 10px 12px; color: #9b1c31; background: #fff0f2; border-radius: 6px; font-size: .77rem; }
.honeypot { position: absolute; left: -10000px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 60; max-width: 360px; padding: 14px 18px; color: white; background: #05604c; border-radius: 8px; box-shadow: var(--shadow); font-size: .86rem; }

.legal-page { background: var(--surface); }
.legal-header { background: white; border-bottom: 1px solid var(--line); }
.legal-header .header-inner { grid-template-columns: 1fr auto; }
.legal-content { max-width: 840px; margin: 0 auto; padding: 80px 24px 110px; }
.legal-page h1 { color: var(--navy-950); font-size: clamp(2.4rem,5vw,4rem); }
.legal-content .intro { margin: 24px 0 50px; color: var(--muted); font-size: 1.05rem; }
.legal-content h2 { margin: 38px 0 12px; color: var(--navy-950); font: 700 1.25rem "Manrope",sans-serif; }
.legal-content p, .legal-content li { color: #515b76; line-height: 1.75; }
.legal-content a { color: var(--azure-600); }
.legal-notice { padding: 15px 18px; color: #5b6480; background: #eaf2ff; border-left: 3px solid var(--azure-600); }
.not-found { min-height: 75vh; display: grid; place-items: center; padding: 32px; text-align: center; }
.not-found h1 { margin: 0; color: var(--navy-950); font: 700 clamp(3rem,8vw,7rem) "Manrope",sans-serif; }
.not-found p { color: var(--muted); }

@media (max-width: 980px) {
  :root { --shell: min(100% - 36px, 800px); }
  .header-inner { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 58px; padding-top: 58px; }
  .featured-panel { max-width: 520px; width: 100%; justify-self: center; }
  .catalogue-grid { grid-template-columns: repeat(2,1fr); }
  .expertise-grid { grid-template-columns: repeat(2,1fr); }
  .expertise-grid article:nth-child(2) { border-right: 0; }
  .expertise-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about-inner { grid-template-columns: 1fr; gap: 16px; }
  .footer-main { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --shell: calc(100% - 28px); }
  .header-inner { height: 70px; }
  .brand img { width: 170px; }
  .header-cta { display: none; }
  .hero { min-height: auto; padding-block: 55px 65px; }
  .hero h1 { font-size: clamp(2.8rem,14vw,4rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .featured-panel { min-height: 420px; padding-inline: 20px; }
  .section-heading { align-items: start; flex-direction: column; }
  .catalogue-section { padding-block: 72px 80px; }
  .catalogue-tools { align-items: stretch; flex-direction: column; margin-top: 38px; }
  .filters { flex-wrap: nowrap; margin-inline: -14px; padding-inline: 14px; overflow-x: auto; }
  .filter { white-space: nowrap; }
  .search-field { width: 100%; }
  .catalogue-grid { grid-template-columns: 1fr; }
  .book-card { min-height: 410px; }
  .expertise-section { padding-block: 78px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-grid article { min-height: 210px; border-right: 0; border-bottom: 1px solid var(--line); }
  .expertise-grid article:last-child { border-bottom: 0; }
  .expertise-grid h3 { margin-top: 30px; }
  .about-section { padding-block: 72px; }
  .about-copy { padding-top: 12px; }
  .footer-bottom, .footer-links { align-items: flex-start; flex-direction: column; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-summary { padding: 42px 26px 30px; }
  .dialog-summary ul { display: none; }
  .download-form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
}

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