:root {
  color-scheme: light;
  --page: #fff7fb;
  --surface: #fffafd;
  --pink: #fff0f6;
  --pink-strong: #ffeaf3;
  --border: #ead7e0;
  --border-soft: #f0e2e9;
  --ink: #20231d;
  --muted: #666b61;
  --subtle: #82867b;
  --accent: #c02670;
  --button-hover: #3b4232;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #f9a8d4;
  color: #3b1024;
}

h1,
h2,
h3,
p,
pre,
dl,
dd {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  max-width: 1152px;
  margin: 0 auto;
  padding: 16px 20px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 18px;
  font-weight: 700;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 32px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a,
.language-option,
.button {
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-switcher {
  position: relative;
}

.language-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 160ms ease;
}

.language-button:hover,
.language-option:hover {
  background: var(--pink);
}

.language-chevron {
  width: 12px;
  height: 12px;
}

.language-menu {
  position: absolute;
  z-index: 20;
  top: 100%;
  right: 0;
  width: 144px;
  margin-top: 8px;
  padding: 4px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgb(32 35 29 / 12%);
}

.is-hidden {
  display: none !important;
}

.language-option {
  display: flex;
  width: 100%;
  padding: 8px 16px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
}

.language-option:hover {
  color: var(--ink);
}

.language-option span {
  color: #a4a79f;
  font-size: 12px;
}

.button {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--button-hover);
  box-shadow: 0 10px 24px rgb(32 35 29 / 18%);
}

.button:active {
  transform: translateY(0);
}

.nav-telegram {
  padding: 8px 16px;
}

.hero-section {
  max-width: 1152px;
  margin: 0 auto;
  padding: 64px 20px 80px;
}

.hero-copy {
  max-width: 768px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.111;
}

.accent-text,
.json-key {
  color: var(--accent);
}

.hero-description {
  max-width: 576px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 28px;
}

.desktop-break {
  display: none;
}

.countdown {
  display: flex;
  max-width: 672px;
  margin: 48px auto 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.countdown-label {
  color: var(--subtle);
  font-size: 12px;
}

.countdown-value {
  font-size: 40px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.countdown-separator {
  margin-top: 20px;
  color: #a4a79f;
  font-size: 30px;
}

.countdown-caption {
  margin-top: 20px;
  color: var(--subtle);
  font-size: 14px;
  text-align: center;
}

.payment-title {
  margin-top: 32px;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

.payment-description {
  max-width: 672px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
  text-align: center;
}

.payment-address {
  max-width: 672px;
  margin: 20px auto 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.payment-address-code {
  display: inline-block;
  padding: 8px;
  overflow-wrap: anywhere;
  color: #555b4e;
  font-size: 14px;
  text-align: center;
}

.copy-status {
  min-height: 20px;
  margin-top: 8px;
  color: var(--subtle);
  font-size: 14px;
  text-align: center;
}

.people-section {
  margin-top: 48px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

.large-title {
  font-size: 30px;
}

.people-grid {
  display: grid;
  margin-top: 20px;
  grid-template-columns: 1fr;
  gap: 16px;
}

.person-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-align: left;
}

.person-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 16px;
  border-radius: 8px;
  object-fit: cover;
}

.person-name {
  font-size: 16px;
  font-weight: 600;
}

.person-details {
  margin-top: 16px;
  color: var(--ink);
  font-size: 14px;
}

.person-details dt {
  color: var(--subtle);
}

.person-details dd {
  margin-top: 4px;
}

.check-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--pink-strong);
}

.content-container {
  max-width: 1152px;
  margin: 0 auto;
  padding-right: 20px;
  padding-left: 20px;
}

.section-spacing {
  padding-top: 64px;
  padding-bottom: 64px;
}

.check-content {
  max-width: 672px;
  margin: 0 auto;
}

.section-description {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
  text-align: center;
}

.lookup-form {
  display: flex;
  margin-top: 28px;
  padding: 12px;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lookup-input {
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  outline: none;
  background: var(--page);
  font-size: 14px;
  transition: border-color 160ms ease;
}

.lookup-input::placeholder {
  color: #9a9d94;
}

.lookup-input:focus {
  border-color: #e879a9;
}

.lookup-button {
  width: 100%;
  margin-top: 0;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.lookup-note {
  margin-top: 8px;
  color: #9a9d94;
  font-size: 12px;
  text-align: center;
}

.lookup-result {
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
}

.result-neutral {
  border-color: var(--border);
  background: var(--surface);
  color: var(--muted);
}

.result-exposed {
  border-color: #f0a5c0;
  background: #fff2f8;
  color: #8f2450;
}

.result-safe {
  border-color: #bfe3cd;
  background: #f2fbf5;
  color: #27663d;
}

.result-error {
  border-color: #e8c6b8;
  background: #fff8f5;
  color: #8a4932;
}

.record-card,
.schema-card,
.info-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.record-card {
  margin-top: 12px;
}

.record-card-header,
.schema-card-header {
  display: flex;
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
}

.record-card-label {
  font-size: 12px;
  font-weight: 600;
}

.code-badge {
  padding: 4px 8px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  color: var(--subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.record-json,
.schema-json {
  overflow: auto;
  color: #555b4e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 28px;
  white-space: pre;
}

.record-json {
  max-height: 384px;
  padding: 16px;
  line-height: 24px;
}

.schema-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.schema-intro {
  max-width: 768px;
  margin: 0 auto 32px;
  text-align: center;
}

.schema-description {
  max-width: 384px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
}

.schema-card {
  max-width: 768px;
  margin: 0 auto;
}

.schema-card-header {
  padding: 16px 20px;
}

.schema-card-label {
  font-size: 14px;
  font-weight: 600;
}

.schema-json {
  padding: 20px;
  line-height: 28px;
}

.json-value {
  color: #9a6d35;
}

.info-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--pink);
}

.info-grid {
  display: grid;
}

.info-panel {
  padding: 24px;
  text-align: center;
}

.info-copy {
  display: grid;
  max-width: 448px;
  margin: 16px auto 0;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 28px;
}

.updates-panel {
  border-top: 1px solid var(--border);
}

.updates-description {
  max-width: 448px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
}

.updates-button {
  margin-top: 24px;
  padding: 12px 20px;
}

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  max-width: 1152px;
  margin: 0 auto;
  padding: 24px 20px;
  flex-direction: column;
  gap: 12px;
  color: var(--subtle);
  font-size: 12px;
}

.footer-brand {
  color: var(--ink);
  font-weight: 600;
}

.floating-telegram {
  position: fixed;
  z-index: 10;
  left: 20px;
  bottom: 20px;
  padding: 12px 16px;
  box-shadow: 0 4px 18px rgb(32 35 29 / 12%);
}

.floating-telegram:hover {
  box-shadow: 0 10px 24px rgb(32 35 29 / 22%);
}

@media (min-width: 640px) {
  .nav-container {
    padding-right: 32px;
    padding-left: 32px;
  }

  .nav-links {
    display: flex;
  }

  .nav-actions {
    gap: 12px;
  }

  .hero-section {
    padding: 96px 32px 112px;
  }

  .hero-title {
    font-size: 60px;
    line-height: 1;
  }

  .desktop-break {
    display: initial;
  }

  .countdown {
    margin-top: 64px;
    gap: 16px;
  }

  .countdown-label {
    font-size: 14px;
  }

  .countdown-value {
    font-size: 72px;
  }

  .countdown-separator {
    font-size: 60px;
  }

  .payment-description {
    font-size: 16px;
  }

  .payment-address {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }

  .payment-address-code {
    min-width: 0;
    flex: 1;
  }

  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-container {
    padding-right: 32px;
    padding-left: 32px;
  }

  .section-spacing,
  .schema-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .section-description,
  .info-copy {
    font-size: 16px;
  }

  .large-title {
    font-size: 36px;
  }

  .info-panel .section-title {
    font-size: 30px;
  }

  .lookup-form {
    padding: 16px;
  }

  .lookup-button {
    width: auto;
    margin-top: 0;
  }

  .schema-json {
    padding: 28px;
    font-size: 14px;
  }

  .info-panel {
    padding: 40px;
  }

  .footer-inner {
    padding-right: 32px;
    padding-left: 32px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .updates-panel {
    border-top: 0;
    border-left: 1px solid var(--border);
  }
}

@media (min-width: 1280px) {
  .people-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
