:root {
  --bg: #F6F7FB;
  --surface: #ffffff;
  --surface-soft: #F6F7FB;
  --text: #1f2633;
  --muted: #697386;
  --brand: #392f7d;
  --brand-2: #f2a23a;
  --brand-3: #26a96c;
  --border: #E3E7F0;
  --shadow: 0 18px 45px rgba(31, 38, 51, 0.09);
  --radius: 22px;
  --max: 1120px;
  --focus: 0 0 0 4px rgba(242, 162, 58, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: #231956; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 10px;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 22px 24px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(57, 47, 125, 0.14);
  border-radius: calc(var(--radius) + 10px);
  background:
    radial-gradient(circle at top right, rgba(57, 47, 125, 0.14), transparent 34%),
    linear-gradient(135deg, #EEF1FF 0%, #EAF4FF 52%, #EDF7F2 100%);
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 230px;
  height: 230px;
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(242, 162, 58, 0.32), rgba(38, 169, 108, 0.20));
  transform: rotate(18deg);
}

.badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(57, 47, 125, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--brand);
  font-weight: 750;
  font-size: 0.86rem;
}

h1, h2, h3 { line-height: 1.18; letter-spacing: -0.035em; }
h1 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 18px 0 16px;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
}

.lead {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 2.2vw, 1.22rem);
}

.meta-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.meta-pill {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 22px 72px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 90px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 30px rgba(31, 38, 51, 0.05);
}

.toc strong { display: block; margin-bottom: 10px; }
.toc a {
  display: block;
  padding: 9px 10px;
  border-radius: 12px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.93rem;
}
.toc a:hover { background: rgba(57, 47, 125, 0.08); color: var(--brand); }

.content {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.panel {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 34px rgba(31, 38, 51, 0.055);
}

.panel h2 { margin-top: 0; font-size: clamp(1.45rem, 3vw, 2.05rem); }
.panel h3 { margin: 24px 0 8px; font-size: 1.18rem; }
.panel p:last-child, .panel ul:last-child, .panel ol:last-child { margin-bottom: 0; }
.panel ul, .panel ol { padding-left: 1.25rem; }
.panel li + li { margin-top: 7px; }

.callout {
  padding: 16px 18px;
  border: 1px solid rgba(38, 169, 108, 0.24);
  border-radius: 18px;
  background: rgba(38, 169, 108, 0.08);
}

.warning {
  border-color: rgba(242, 162, 58, 0.32);
  background: rgba(242, 162, 58, 0.12);
}

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

.data-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
}

.data-card strong { display: block; margin-bottom: 6px; }
.data-card p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.data-card .contact-value {
  margin: 9px 0 10px;
  color: var(--text);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
}

table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
th { background: var(--surface-soft); font-weight: 800; }
tr:last-child td { border-bottom: 0; }

.form-box {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

label { font-weight: 750; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
}
textarea { min-height: 132px; resize: vertical; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(57, 47, 125, 0.22);
}

.btn.secondary {
  background: #fff;
  color: var(--brand);
  border: 1px solid rgba(57, 47, 125, 0.2);
  box-shadow: none;
}

.status-message { min-height: 1.2em; color: var(--muted); font-size: 0.94rem; }

.site-footer { border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 22px;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

.placeholder {
  display: inline-block;
  padding: 0 6px;
  border-radius: 8px;
  background: rgba(3, 169, 244, 0.07);
  color: #393939;
  font-weight: 750;
}

@media (max-width: 860px) {
  .hero { padding-top: 34px; }
  .layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .data-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero, .layout, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .hero-card { border-radius: 22px; }
  .panel { border-radius: 18px; }
  .button-row { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
}

@media print {
  body { background: #fff; }
  .toc, .site-footer, .button-row { display: none; }
  .hero, .layout { max-width: none; padding: 0; display: block; }
  .hero-card, .panel { box-shadow: none; border: 0; border-radius: 0; }
  a { color: #000; }
}

/* Information and help pages */
.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 132px;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.link-card:hover {
  color: var(--text);
  transform: translateY(-2px);
  border-color: rgba(57, 47, 125, 0.3);
  box-shadow: 0 12px 26px rgba(31, 38, 51, 0.08);
}

.link-card strong {
  color: var(--brand);
  font-size: 1.06rem;
}

.link-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.faq-list details {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
}

.faq-list summary {
  position: relative;
  padding: 17px 52px 17px 18px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(57, 47, 125, 0.09);
  color: var(--brand);
  transform: translateY(-50%);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-list details[open] summary::after { content: "−"; }
.faq-list details[open] summary { border-bottom: 1px solid var(--border); }

.faq-answer {
  padding: 16px 18px 18px;
  color: var(--muted);
}

.faq-answer p:first-child,
.faq-answer ol:first-child,
.faq-answer ul:first-child { margin-top: 0; }
.faq-answer p:last-child,
.faq-answer ol:last-child,
.faq-answer ul:last-child { margin-bottom: 0; }

.steps { counter-reset: help-step; list-style: none; padding-left: 0 !important; }
.steps li {
  position: relative;
  min-height: 38px;
  padding-left: 48px;
}
.steps li::before {
  counter-increment: help-step;
  content: counter(help-step);
  position: absolute;
  left: 0;
  top: -3px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(57, 47, 125, 0.1);
  color: var(--brand);
  font-weight: 850;
}

@media (max-width: 680px) {
  .link-grid { grid-template-columns: 1fr; }
  .link-card { min-height: 0; }
}

@media print {
  .faq-list details { break-inside: avoid; }
  .faq-list details:not([open]) .faq-answer { display: block; }
}
