:root {
  --navy: #12324a;
  --amber: #f2a51f;
  --orange: #e8692a;
  --rust: #c7541f;
  --paper: #fbf8f4;
  --card: #ffffff;
  --ink: #2a3540;
  --muted: #5d6b76;
  --line: #ebe4dc;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: ui-sans-serif, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink);
  background: var(--paper); line-height: 1.6; }
a { color: var(--rust); }

header.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 28px; background: rgba(251, 248, 244, .96); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; font-size: 1.15rem;
  letter-spacing: .02em; }
.brand img { height: 30px; width: auto; }
.brand .sep { color: var(--muted); }
nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; font-size: .92rem; }
nav a:hover { color: var(--rust); }
nav a.admin { border: 1px solid var(--navy); color: var(--navy); border-radius: 8px; padding: 5px 12px; }
nav a.admin:hover { background: var(--navy); color: #fff; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button { border: 0; background: transparent; padding: 5px 10px; font: inherit; font-size: .85rem; cursor: pointer;
  color: var(--muted); }
.lang button.on { background: var(--navy); color: #fff; }

.hero { display: grid; grid-template-columns: 1fr 1.2fr; align-items: center; gap: 48px; padding: 96px 8vw;
  background: radial-gradient(circle at 85% 40%, rgba(255, 255, 255, .14) 0 30%, transparent 30.2%),
              linear-gradient(120deg, var(--amber), var(--orange)); }
.hero-card { background: #fff; border-radius: 18px; padding: 40px; box-shadow: 0 18px 40px rgba(120, 50, 0, .18);
  display: flex; justify-content: center; }
.hero-card img { width: min(320px, 100%); height: auto; }
.hero-text h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; color: #2b1a0e; line-height: 1.15; }
.hero-text p { font-size: 1.2rem; color: #3b2412; margin: 12px 0 28px; }
.cta { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; padding: 11px 22px;
  border-radius: 10px; font-weight: 600; }
.cta:hover { background: #0c2436; }

section { padding: 64px 8vw 8px; }
h2 { text-align: center; font-size: 2rem; font-weight: 500; color: #2b1a0e; margin-bottom: 28px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px 32px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .04); max-width: 1100px; margin: 0 auto; }
.panel p + p { margin-top: 12px; }
.panel.center { text-align: center; }
.about .panel { font-size: 1.05rem; text-align: center; }

.cards { display: grid; gap: 20px; max-width: 1180px; margin: 0 auto; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .04); color: var(--ink); text-decoration: none; display: block; }
.card h3 { font-size: 1.12rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.card p { font-size: .95rem; color: var(--muted); }
.step { position: relative; padding-top: 22px; }
.step .num { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: var(--rust); color: #fff;
  align-items: center; justify-content: center; font-weight: 600; margin-bottom: 12px; }
.standards { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 22px; }
a.card.file:hover { border-color: var(--amber); box-shadow: 0 10px 24px rgba(232, 105, 42, .14); }
.card.file .tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: var(--rust);
  background: #fdf1dc; border-radius: 6px; padding: 2px 8px; margin-bottom: 10px; text-transform: uppercase; }
.card.file.muted .tag { color: var(--muted); background: #f1ece6; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); }
th { width: 140px; color: var(--navy); font-weight: 600; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.note { color: var(--muted); font-size: .92rem; margin-top: 14px; }
.mail { font-size: 1.3rem; font-weight: 600; margin: 10px 0; }
.small { font-size: .88rem; color: var(--muted); }

footer { margin-top: 72px; padding: 28px 8vw 36px; border-top: 1px solid var(--line); text-align: center; background: #fff; }
footer img { width: min(900px, 100%); height: auto; }
footer p { color: var(--muted); font-size: .85rem; margin-top: 10px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 56px 6vw; text-align: center; }
  .cards.three, .cards.four { grid-template-columns: 1fr 1fr; }
  nav a:not(.admin) { display: none; }
}
@media (max-width: 600px) {
  section { padding: 48px 16px 8px; }
  .cards.three, .cards.four { grid-template-columns: 1fr; }
  header.top { padding: 10px 16px; }
  .brand span { display: none; }
  th { width: auto; display: block; border-bottom: 0; padding-bottom: 0; }
  td { display: block; }
}
