:root {
  --bg: #00131e;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-strong: #051b26;
  --line: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.5);
  --green: #31d158;
  --blue: #0b84ff;
  --orange: #fd9e0d;
  --pink: #ff375f;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Onest", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

button,
a {
  font: inherit;
}

.page {
  min-height: 100vh;
}

.container {
  width: min(100%, 26.875rem);
  margin: 0 auto;
  padding: 0 1rem;
}

.hero {
  padding-top: max(2rem, env(safe-area-inset-top));
}

.landing .hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-bottom: 2rem;
}

.language-switch {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.language-switch a {
  min-width: 3.5rem;
  padding: 0.65rem 0.85rem;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
}

.language-switch a[aria-current="page"] {
  color: var(--bg);
  background: var(--text);
}

h1 {
  width: 13.875rem;
  margin: 0 0 2.5rem;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.quick-nav,
.language-list {
  display: grid;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 3.5rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.quick-link:active,
.info-button:active,
.close-button:active {
  opacity: 0.72;
}

.quick-link:focus-visible,
.info-button:focus-visible,
.close-button:focus-visible,
.language-switch a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.section-icon,
.nav-icon {
  display: grid;
  flex: 0 0 auto;
  min-width: 1.5rem;
  place-items: center;
  color: currentColor;
  font-size: 0.875rem;
  font-weight: 700;
}

.content {
  padding: 5rem 0 calc(6.25rem + env(safe-area-inset-bottom));
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.checklist-section {
  scroll-margin-top: 1rem;
  background: var(--panel);
  border-radius: 1rem;
  padding: 1.5rem;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.item-row {
  border-bottom: 1px solid var(--line);
}

.item-main,
.sub-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.item-label {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
  min-width: 0;
  padding: 1.1rem 0;
}

.item-number {
  min-width: 0.8125rem;
  padding-top: 0.08rem;
  color: var(--text);
  font-size: 0.625rem;
}

.item-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1.125rem;
  line-height: 1.2;
}

.sub-items {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
}

.sub-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  min-width: 0;
  padding: 1.1rem 0 1rem;
}

.dot {
  font-size: 1.3rem;
  line-height: 0.8;
}

.sub-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.9375rem;
  line-height: 1.2;
}

.info-button {
  display: grid;
  flex: 0 0 3.5rem;
  width: 3.5rem;
  height: 3.5rem;
  margin-right: -1.25rem;
  place-items: center;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.details-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 1rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.18);
  border: 0;
  backdrop-filter: blur(12px);
}

.details-dialog:not([open]) {
  display: none;
}

.details-dialog[open] {
  display: grid;
  place-items: center;
}

.details-dialog::backdrop {
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.dialog-panel {
  display: flex;
  flex-direction: column;
  width: min(100%, 24.875rem);
  max-height: 82vh;
  overflow: hidden;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 0.25rem;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

.icon-button {
  position: relative;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.close-button span::before,
.close-button span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.25rem;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 999px;
}

.close-button span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-button span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.dialog-body {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.5rem 1.25rem;
  overflow: auto;
  overscroll-behavior: contain;
}

.dialog-body ol,
.dialog-body ul {
  margin: 0;
  padding-left: 1.25rem;
}

.dialog-body li + li {
  margin-top: 0.625rem;
}

.dialog-body p {
  margin: 0;
}

.dialog-body .muted {
  color: var(--muted);
}

.dialog-image {
  width: 100%;
  border-radius: 0.25rem;
  object-fit: cover;
}

.image-grid {
  display: grid;
  gap: 0.75rem;
}
