:root {
  --bg: #08131f;
  --bg-soft: #0f2030;
  --panel: rgba(246, 241, 233, 0.94);
  --panel-strong: rgba(255, 250, 243, 0.98);
  --ink: #1f2730;
  --muted: #596674;
  --line: rgba(18, 39, 59, 0.14);
  --accent: #d86d2f;
  --accent-strong: #9f4213;
  --accent-soft: rgba(216, 109, 47, 0.14);
  --ocean: #1f6f8b;
  --ocean-soft: rgba(31, 111, 139, 0.14);
  --shadow: 0 24px 64px rgba(3, 11, 20, 0.28);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(216, 109, 47, 0.28), transparent 22%),
    radial-gradient(circle at 85% 12%, rgba(91, 172, 199, 0.18), transparent 18%),
    radial-gradient(circle at 50% 110%, rgba(255, 230, 197, 0.18), transparent 26%),
    linear-gradient(180deg, #08131f 0%, #0d1d2b 44%, #13293c 100%);
  font: 16px/1.75 "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 72%, rgba(255, 255, 255, 0.34) 0 1px, transparent 1.5px),
    radial-gradient(circle at 36% 74%, rgba(255, 255, 255, 0.26) 0 1px, transparent 1.5px);
  background-size: 240px 240px, 320px 320px, 280px 280px, 360px 360px;
  opacity: 0.45;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.narrow-page {
  width: min(calc(100% - 32px), 760px);
}

.hero {
  position: relative;
  padding: 34px 0 22px;
}

.hero-card,
.section-card,
.info-card,
.footer-card,
.contact-panel,
.faq-item,
.notice-box,
.status-banner,
.summary-card,
.legal-copy {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(250, 245, 236, 0.98), rgba(244, 237, 226, 0.94)),
    rgba(255, 255, 255, 0.72);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -68px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 109, 47, 0.24), rgba(216, 109, 47, 0));
}

.standalone-card {
  margin: 56px 0;
}

.topbar,
.badge-row,
.quick-links,
.card-grid,
.info-grid,
.inline-list,
.footer-links,
.section-actions,
.contact-chips,
.summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff4e8;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(160deg, #ffd5a8, #d86d2f);
  color: #50220d;
  font: 700 18px/1 Georgia, serif;
  box-shadow: 0 12px 28px rgba(216, 109, 47, 0.3);
}

.brand-copy strong {
  display: block;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-copy span {
  display: block;
  color: rgba(255, 244, 232, 0.72);
  font-size: 12px;
}

.badge,
.meta-pill,
.nav-pill,
.pill,
.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 13px;
}

.badge {
  background: var(--accent-soft);
  border-color: rgba(216, 109, 47, 0.18);
  color: var(--accent-strong);
}

.nav-pill {
  color: #fff4e8;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.nav-pill:hover,
.quick-links a:hover,
.footer-links a:hover,
.text-link:hover,
.contact-chip:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.hero h1,
.section-card h2,
.info-card h3,
.faq-item h3,
.contact-panel h2,
.legal-copy h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.hero h1 {
  margin: 18px 0 10px;
  max-width: 760px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.hero .lead {
  max-width: 760px;
  margin: 0 0 18px;
  color: #47525d;
  font-size: 18px;
}

.hero .microcopy {
  max-width: 760px;
  color: #5c6772;
  margin: 16px 0 0;
}

.quick-links {
  margin-top: 20px;
}

.language-switch {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(18, 39, 59, 0.1);
}

.language-switch strong {
  display: block;
  margin-bottom: 10px;
  color: #54606d;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-links a,
.footer-links a,
.text-link,
.contact-chip {
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.quick-links .primary {
  background: linear-gradient(160deg, #d86d2f, #bb5118);
  color: #fff6ef;
  border-color: rgba(159, 66, 19, 0.35);
}

.quick-links .secondary {
  background: rgba(31, 111, 139, 0.1);
  color: var(--ocean);
  border-color: rgba(31, 111, 139, 0.16);
}

.summary-grid,
.card-grid,
.info-grid {
  align-items: stretch;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.summary-card {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
}

.summary-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-card p {
  margin: 0;
  color: #41505c;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 10px 0 72px;
}

.main-stack,
.sidebar-stack,
.legal-stack {
  display: grid;
  gap: 18px;
}

.section-card,
.info-card,
.contact-panel,
.faq-item,
.notice-box,
.status-banner,
.legal-copy {
  border-radius: var(--radius-lg);
  background: var(--panel);
}

.section-card,
.contact-panel,
.legal-copy {
  padding: 28px;
}

.info-card,
.notice-box,
.status-banner,
.faq-item {
  padding: 22px;
}

.section-card h2,
.contact-panel h2,
.legal-copy h2 {
  margin: 0 0 10px;
  font-size: 30px;
}

.section-card p,
.section-card li,
.info-card p,
.info-card li,
.contact-panel p,
.contact-panel li,
.faq-item p,
.faq-item li,
.notice-box p,
.status-banner p,
.legal-copy p,
.legal-copy li {
  color: #47515c;
}

.card-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-card h3,
.faq-item h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.inline-list {
  margin-top: 12px;
}

.inline-list .pill,
.contact-chip {
  background: rgba(255, 255, 255, 0.76);
}

.language-switch .contact-chip.current {
  background: linear-gradient(160deg, #d86d2f, #bb5118);
  border-color: rgba(159, 66, 19, 0.35);
  color: #fff6ef;
}

.language-switch .contact-chip.recommended:not(.current) {
  border-color: rgba(31, 111, 139, 0.32);
  background: rgba(31, 111, 139, 0.12);
  color: var(--ocean);
}

.language-note {
  margin: 10px 0 0;
  color: #54606d;
  font-size: 14px;
}

.notice-box {
  background:
    linear-gradient(140deg, rgba(31, 111, 139, 0.12), rgba(255, 255, 255, 0.86)),
    var(--panel-strong);
}

.status-banner {
  background:
    linear-gradient(140deg, rgba(216, 109, 47, 0.14), rgba(255, 255, 255, 0.92)),
    var(--panel-strong);
}

.contact-panel {
  background:
    linear-gradient(140deg, rgba(255, 246, 235, 0.95), rgba(239, 247, 250, 0.94));
}

.support-note {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(31, 111, 139, 0.18);
  background: rgba(31, 111, 139, 0.1);
  color: #264e60;
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.contact-box {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.contact-box strong,
.info-card strong,
.notice-box strong,
.status-banner strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.template-block {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(8, 19, 31, 0.94);
  color: #f7efe5;
  overflow-x: auto;
}

.template-block pre {
  margin: 0;
  font: 14px/1.7 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
}

.sidebar-stack {
  position: sticky;
  top: 18px;
  align-self: start;
}

.sidebar-stack .info-card {
  background: rgba(249, 245, 238, 0.92);
}

.footer {
  padding: 0 0 44px;
}

.footer-card {
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: rgba(248, 242, 233, 0.88);
}

.footer-card strong {
  display: block;
  margin-bottom: 10px;
}

.footer-links a,
.text-link,
.contact-chip {
  color: var(--accent-strong);
}

.footer-links a {
  text-decoration: none;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
}

li + li {
  margin-top: 8px;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar-stack {
    position: static;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-card,
  .section-card,
  .contact-panel,
  .info-card,
  .faq-item,
  .notice-box,
  .status-banner,
  .footer-card,
  .legal-copy {
    padding: 20px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero .lead {
    font-size: 16px;
  }

  .card-grid,
  .info-grid,
  .contact-row,
  .summary-grid {
    grid-template-columns: 1fr;
  }
}
