@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../assets/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-soft: #161616;
  --text: #f2f2f2;
  --text-dim: #8a8a8a;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.2);
  --accent: #ffffff;
  --accent-soft: rgba(255, 255, 255, 0.12);
  --accent-text: #0a0a0a;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f2f2f2;
  --text: #111111;
  --text-dim: #767676;
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(0, 0, 0, 0.2);
  --accent: #000000;
  --accent-soft: rgba(0, 0, 0, 0.08);
  --accent-text: #ffffff;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 100px 24px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

::selection {
  background: var(--accent-soft);
  color: var(--text);
}

a {
  color: inherit;
}

.clock {
  position: fixed;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text-dim);
  font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.clock-icon {
  width: 15px;
  height: 15px;
}

.controls {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.control {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.control:hover {
  border-color: var(--border-strong);
}

.control .icon {
  width: 18px;
  height: 18px;
}

.control-theme .icon-moon {
  display: none;
}

:root[data-theme="light"] .control-theme .icon-sun {
  display: none;
}

:root[data-theme="light"] .control-theme .icon-moon {
  display: block;
}

.lang {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.lang-btn:hover {
  border-color: var(--border-strong);
}

.lang-globe {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
}

.lang-label {
  min-width: 4ch;
  text-align: left;
}

.lang-chevron {
  width: 15px;
  height: 15px;
  color: var(--text-dim);
}

.lang.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 168px;
  list-style: none;
  padding: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0s linear 0.15s;
}

.lang.open .lang-menu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 0.15s ease, visibility 0s;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: var(--bg);
}

.lang-option[aria-selected="true"]::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.page {
  width: min(100%, 420px);
  text-align: center;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 56px;
}

.name {
  font-weight: 600;
  font-size: clamp(1.9rem, 6vw, 2.4rem);
  letter-spacing: -0.02em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin-top: 22px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--text);
}

.chip-icon {
  width: 14px;
  height: 14px;
}

.block {
  margin-bottom: 40px;
}

.block:last-child {
  margin-bottom: 0;
}

.block-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 6px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-soft);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.tile:hover,
.tile:focus-visible {
  border-color: var(--accent);
}

.tile-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.tile-title {
  font-size: 0.88rem;
  font-weight: 500;
}

.cert-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cert {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text);
  text-decoration: none;
  text-align: left;
  transition: border-color 0.15s ease;
}

.cert:hover,
.cert:focus-visible {
  border-color: var(--accent);
}

.cert-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

.cert-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cert-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.cert-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
}

@media (max-width: 480px) {
  body {
    padding: 90px 18px;
  }

  .clock {
    display: none;
  }

  .controls {
    top: 16px;
    right: 16px;
    left: 16px;
    justify-content: flex-end;
  }

  .lang-label {
    display: none;
  }

  .lang-btn {
    padding: 0 12px;
  }

  .tile-grid {
    gap: 6px;
  }

  .tile {
    padding: 12px 4px;
  }

  .tile-icon {
    width: 22px;
    height: 22px;
  }

  .tile-title {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
