:root {
  color-scheme: light;
  --blue: #0057b8;
  --blue-dark: #063b72;
  --yellow: #ffd700;
  --ink: #17202a;
  --muted: #5b6775;
  --paper: #fffdf7;
  --line: rgba(0, 87, 184, 0.18);
  --page-accent: #0057b8;
  --page-accent-soft: rgba(0, 87, 184, 0.12);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 215, 0, 0.20), transparent 28rem),
    radial-gradient(circle at 88% 92%, rgba(0, 87, 184, 0.16), transparent 30rem),
    #f5f8fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--blue) 0 50%, var(--yellow) 50% 100%);
}

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
  color: var(--blue-dark);
  text-decoration: none;
}

.brand-logo-frame {
  flex: 0 0 auto;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border-radius: 50%;
  background: #031a31;
  box-shadow: 0 9px 26px rgba(6, 59, 114, 0.20);
}

.brand-logo {
  display: block;
  width: 110%;
  height: 110%;
  object-fit: cover;
  transform: translate(-4.5%, -4.5%);
}

.brand-copy { min-width: 0; }

.brand-subtitle {
  display: block;
  color: var(--blue-dark);
  font-size: clamp(0.76rem, 1.65vw, 1.02rem);
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.25;
  white-space: nowrap;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 247, 0.95);
  box-shadow: 0 24px 70px rgba(13, 44, 78, 0.14);
}

.card::after {
  content: attr(data-page-code);
  position: absolute;
  top: 22px;
  right: clamp(22px, 5vw, 48px);
  color: var(--page-accent-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 18vw, 11rem);
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}

.page-number {
  position: absolute;
  top: clamp(28px, 5vw, 48px);
  right: clamp(24px, 5vw, 48px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: clamp(74px, 14vw, 112px);
  aspect-ratio: 1;
  border: 5px solid rgba(255, 255, 255, 0.88);
  border-radius: 24px;
  color: #fff;
  background: var(--page-accent);
  box-shadow: 0 14px 32px rgba(6, 59, 114, 0.20);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
}

.ornament {
  height: 18px;
  background:
    linear-gradient(135deg, transparent 42%, var(--yellow) 43% 57%, transparent 58%) 0 0 / 28px 28px,
    linear-gradient(45deg, transparent 42%, var(--page-accent) 43% 57%, transparent 58%) 14px 0 / 28px 28px;
  opacity: 0.9;
}

.content {
  position: relative;
  z-index: 1;
  padding: clamp(30px, 7vw, 70px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--page-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 720px;
  margin: 0;
  color: var(--blue-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 8vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.page-subtitle {
  margin: 12px 0 0;
  color: var(--page-accent);
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 750;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 24px 0 0;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--blue-dark);
  background: var(--page-accent-soft);
  font-size: 0.86rem;
  font-weight: 750;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--page-accent);
  box-shadow: 0 0 0 4px var(--page-accent-soft);
}

.languages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 42px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.language-label {
  display: block;
  margin-bottom: 10px;
  color: var(--page-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.language h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.language p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer a { color: var(--blue-dark); }

@media (max-width: 640px) {
  .shell { width: min(100% - 20px, 920px); padding-top: 32px; }
  .card { border-radius: 20px; }
  .languages { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 8px; }
  .brand-logo-frame { width: 66px; height: 66px; }
  .brand-subtitle { font-size: clamp(0.66rem, 3vw, 0.82rem); }
  .page-number { top: 24px; right: 20px; border-radius: 18px; }
  h1 { max-width: 62%; }
}

@media (max-width: 420px) {
  .brand { gap: 12px; }
  .brand-subtitle { white-space: normal; }
}

@media (prefers-reduced-motion: no-preference) {
  .card { animation: enter 500ms ease-out both; }
  @keyframes enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
