:root {
  --ink: #102738;
  --muted: #536879;
  --ocean: #006f86;
  --ocean-deep: #004f67;
  --foam: #e9f7f8;
  --sky: #d8eef5;
  --sun: #f6b84a;
  --line: #c9dde3;
  --paper: #ffffff;
  --canvas: #f4f9fa;
  --shadow: 0 18px 50px rgba(16, 39, 56, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; min-width: 0; background: var(--canvas); color: var(--ink); font-size: 1rem; line-height: 1.72; }
a { color: var(--ocean-deep); text-underline-offset: .18em; }
a:hover { color: var(--ocean); }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link { position: fixed; left: 1rem; top: -8rem; z-index: 100; padding: .7rem 1rem; background: var(--paper); border: 2px solid var(--ocean); border-radius: .6rem; }
.skip-link:focus { top: 1rem; }

.topbar { position: relative; z-index: 20; color: #fff; background: linear-gradient(115deg, #04394e 0%, #007b8e 62%, #129bb0 100%); box-shadow: 0 8px 30px rgba(4, 57, 78, .22); }
.topbar::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .22; background: radial-gradient(circle at 80% -20%, #fff 0 1px, transparent 2px) 0 0/28px 28px; }
.topbar-inner { position: relative; z-index: 1; max-width: 1480px; margin: auto; padding: 1.25rem clamp(1rem, 4vw, 3.5rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .85rem; color: #fff; text-decoration: none; }
.brand-mark { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; flex: 0 0 auto; color: #07394b; background: var(--sun); border-radius: 50% 50% 45% 55%; font-size: 1.35rem; box-shadow: inset 0 -5px 12px rgba(106, 62, 0, .18); }
.brand strong { display: block; font-size: 1.08rem; letter-spacing: .01em; }
.brand span { display: block; color: #d8f5f7; font-size: .83rem; }
.top-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .55rem; }
.languages { display: inline-flex; padding: .25rem; gap: .15rem; border: 1px solid rgba(255,255,255,.42); background: rgba(0,0,0,.12); border-radius: 999px; }
.languages a { min-width: 2.55rem; padding: .42rem .68rem; color: #fff; text-align: center; text-decoration: none; border-radius: 999px; font-size: .88rem; font-weight: 700; }
.languages a[aria-current="page"] { color: #07394b; background: #fff; }
.download { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.65rem; padding: .55rem .85rem; color: #07394b; background: var(--sun); border: 0; border-radius: .75rem; font: inherit; font-size: .88rem; font-weight: 800; text-decoration: none; }
.download.pending { color: #d6e3e6; background: rgba(255,255,255,.13); border: 1px dashed rgba(255,255,255,.55); cursor: not-allowed; }

.layout { max-width: 1480px; margin: auto; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); padding: 0 clamp(1rem, 4vw, 3.5rem) 6rem; }
.sidebar { position: sticky; top: 0; align-self: start; max-height: 100vh; padding: 2rem 0 1.5rem; overflow: auto; scrollbar-width: thin; }
.sidebar h2 { margin: 0 0 .65rem; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }
.toc { margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: .43rem .7rem; color: var(--muted); border-left: 2px solid var(--line); text-decoration: none; font-size: .92rem; line-height: 1.3; }
.toc a:hover, .toc a.active { color: var(--ocean-deep); border-left-color: var(--ocean); background: linear-gradient(90deg, var(--foam), transparent); }

main { min-width: 0; padding-top: 2.5rem; }
.hero { padding: clamp(1.5rem, 4vw, 3.25rem); margin-bottom: 2.25rem; color: #fff; background: linear-gradient(135deg, #063f53 0%, #076f82 75%); border-radius: 0 0 1.4rem 1.4rem; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; width: 23rem; height: 23rem; right: -8rem; bottom: -15rem; border: 3rem solid rgba(255,255,255,.08); border-radius: 50%; }
.eyebrow { margin: 0 0 .55rem; color: #aeeaf0; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.hero h1 { max-width: 19ch; margin: 0; font-size: clamp(2.1rem, 6vw, 4.7rem); line-height: .98; letter-spacing: -.045em; }
.hero .lead { max-width: 64ch; margin: 1.25rem 0 0; color: #e6fafb; font-size: clamp(1.03rem, 2vw, 1.24rem); }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.35rem; }
.hero-meta span { padding: .32rem .65rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #e7fbfc; font-size: .82rem; }

.section { padding: clamp(1.3rem, 3vw, 2.5rem); margin: 0 0 1.35rem; background: var(--paper); border: 1px solid #d9e8ec; border-radius: 1.15rem; box-shadow: 0 8px 28px rgba(16,39,56,.055); scroll-margin-top: 1rem; }
.section h2 { margin: 0 0 .8rem; color: var(--ocean-deep); font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.16; letter-spacing: -.025em; }
.section h3 { margin: 1.65rem 0 .45rem; font-size: 1.18rem; line-height: 1.25; }
.section p { max-width: 76ch; }
.section ul, .section ol { max-width: 74ch; padding-left: 1.35rem; }
.section li + li { margin-top: .25rem; }
.note { padding: 1rem 1.1rem; margin: 1.1rem 0; border-left: 4px solid var(--sun); background: #fff7e7; border-radius: 0 .75rem .75rem 0; }
.safety { border-left-color: #d45c44; background: #fff0ed; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0; }
.chip { padding: .36rem .7rem; border-radius: 999px; color: var(--ocean-deep); background: var(--foam); border: 1px solid var(--line); font-size: .86rem; font-weight: 750; }
.status-grid, .faq-grid, .quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; margin-top: 1rem; }
.mini-card { padding: 1rem; background: #f8fbfc; border: 1px solid var(--line); border-radius: .8rem; }
.mini-card strong { display: block; margin-bottom: .2rem; color: var(--ocean-deep); }
.mini-card p { margin: 0; font-size: .94rem; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin: 1.25rem 0 .25rem; }
figure { margin: 0; min-width: 0; }
.shot { padding: .7rem; background: linear-gradient(160deg, #eef7f8, #fff); border: 1px solid var(--line); border-radius: 1rem; }
.shot img { width: 100%; height: auto; max-height: 720px; object-fit: contain; border-radius: .65rem; filter: drop-shadow(0 12px 16px rgba(0,35,48,.16)); }
.shot figcaption { margin-top: .6rem; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.gallery.single { grid-template-columns: minmax(0, 620px); }

.legal main { max-width: 900px; margin: auto; padding: 2.5rem clamp(1rem, 4vw, 3rem) 6rem; }
.legal .hero { border-radius: 1.3rem; }
.legal article { padding: clamp(1.25rem, 4vw, 3rem); background: var(--paper); border: 1px solid #d9e8ec; border-radius: 1.2rem; box-shadow: var(--shadow); }
.legal article h2 { margin-top: 2.4rem; color: var(--ocean-deep); font-size: 1.5rem; line-height: 1.25; }
.legal article h3 { margin-top: 1.6rem; font-size: 1.12rem; }
.legal article ul { padding-left: 1.35rem; }
.legal .old-url { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }

.back-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; width: 3rem; height: 3rem; display: grid; place-items: center; color: #fff; background: var(--ocean-deep); border: 0; border-radius: 50%; box-shadow: 0 8px 22px rgba(0,47,65,.3); text-decoration: none; opacity: 0; transform: translateY(.75rem); pointer-events: none; transition: .2s ease; }
.back-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.menu-button { display: none; }
.footer { max-width: 1480px; margin: auto; padding: 2rem clamp(1rem,4vw,3.5rem); color: var(--muted); text-align: center; font-size: .86rem; }

@media (max-width: 920px) {
  .topbar-inner { align-items: flex-start; }
  .top-actions { max-width: 58%; }
  .layout { display: block; }
  .menu-button { display: inline-flex; align-items: center; gap: .45rem; margin: 1rem 0 0; padding: .65rem .85rem; color: var(--ocean-deep); background: #fff; border: 1px solid var(--line); border-radius: .7rem; font: inherit; font-weight: 800; }
  .sidebar { position: static; max-height: 0; padding: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
  .sidebar.open { max-height: 80vh; padding: 1rem 0; overflow: auto; }
  main { padding-top: 1rem; }
}

@media (max-width: 640px) {
  .topbar-inner { display: block; }
  .top-actions { max-width: none; justify-content: flex-start; margin-top: 1rem; }
  .languages { order: 2; }
  .download { order: 1; width: 100%; }
  .hero { padding-top: 2rem; }
  .gallery, .status-grid, .faq-grid, .quick-grid { grid-template-columns: 1fr; }
  .section { border-radius: .9rem; }
  .shot img { max-height: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
  .topbar, .sidebar, .menu-button, .back-top, .footer { display: none !important; }
  .layout { display: block; padding: 0; }
  main { padding: 0; }
  .hero, .section, .legal article { box-shadow: none; break-inside: avoid; }
}
