:root {
  color-scheme: dark;
  --bg: #0b1020;
  --surface: #141b2d;
  --text: #e7ecff;
  --muted: #aab4d6;
  --primary: #6a8dff;
  --primary-dark: #8dabff;
  --border: #263151;
  --shadow: 0 16px 34px rgba(3, 7, 18, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #1a2440 0, var(--bg) 38%);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary-dark);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 16, 32, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(138, 165, 255, 0.24);
}

.topbar__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.85rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  color: #eef2ff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.navbar-toggler {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #e7ecff;
  border-radius: 8px;
  width: 42px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.navbar-toggler-icon,
.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  content: "";
}

.navbar-toggler-icon {
  position: relative;
}

.navbar-toggler-icon::before {
  position: absolute;
  top: -6px;
}

.navbar-toggler-icon::after {
  position: absolute;
  top: 6px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.menu a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
  white-space: nowrap;
}

.menu a:hover {
  color: #d7e2ff;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(138, 165, 255, 0.45);
  border-radius: 10px;
  overflow: hidden;
}

.lang-switch__btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.lang-switch__btn:hover {
  color: #e7ecff;
  background: rgba(255, 255, 255, 0.08);
}

.lang-switch__btn.is-active {
  color: #ffffff;
  background: #2b3e78;
}

.hero {
  color: #fff;
  padding: 3rem 1.2rem 2rem;
  background: linear-gradient(140deg, #17295f, #243f8f 55%, #3355bd);
}

.hero__content {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.8rem;
  align-items: center;
}

.hero__tag {
  margin: 0;
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
}

.hero h1 {
  margin: 0.7rem 0 0;
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  line-height: 1.15;
}

.hero__subtitle {
  margin: 0.9rem 0 1.1rem;
  color: #deebff;
  max-width: 62ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.58rem 1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.btn--primary {
  color: #ecf1ff;
  background: #2b3e78;
  border-color: #4e66b8;
}

.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.hero__highlights {
  margin: 0;
  padding-left: 1rem;
  color: #e2ebff;
}

.hero__right {
  display: flex;
  justify-content: center;
}

.hero__photo {
  width: 260px;
  height: 260px;
  border-radius: 24px;
  object-fit: cover;
  border: 5px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 20px 35px rgba(7, 19, 64, 0.35);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.2rem 2.4rem;
}

.panel {
  margin-top: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #b8c9ff;
}

.grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #19223a;
  padding: 0.85rem;
}

.card h3 {
  margin: 0;
  color: #a8beff;
}

.tech {
  margin-top: 1rem;
  font-weight: 600;
  color: #b7c3e8;
}

.timeline {
  position: relative;
  margin-left: 0.2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #4a6cff, #a9bcff);
}

.timeline article {
  position: relative;
  margin: 0 0 1rem 1.1rem;
  padding: 0.2rem 0.1rem 0.2rem 0.8rem;
}

.timeline article::before {
  content: "";
  position: absolute;
  left: -1.12rem;
  top: 0.75rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline__date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #dbe5ff;
  background: #24355f;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.timeline h3 {
  margin: 0.45rem 0;
}

.list-plain li {
  word-break: break-word;
}

.list-plain {
  margin: 0;
  padding-left: 1.1rem;
}

.two-columns {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

footer {
  text-align: center;
  color: var(--muted);
  padding: 1rem 1.2rem 1.8rem;
}

@media (max-width: 850px) {
  .topbar__inner {
    padding: 0.75rem 1rem;
  }

  .topbar__actions {
    gap: 0.8rem;
  }

  .menu {
    gap: 0.75rem;
  }

  .menu a {
    font-size: 0.88rem;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .hero__left {
    order: 2;
  }

  .hero__right {
    order: 1;
    justify-content: flex-start;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  main {
    padding: 1.2rem 1rem 2rem;
  }

  .panel {
    padding: 1rem;
  }
}

@media (max-width: 620px) {
  .topbar__inner {
    align-items: center;
    flex-wrap: wrap;
  }

  .navbar-toggler {
    display: inline-flex;
    margin-left: auto;
  }

  .topbar__actions {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    display: none;
    padding-top: 0.25rem;
  }

  .topbar__actions.is-open {
    display: flex;
  }

  .menu {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem 0.9rem;
  }

  .lang-switch {
    align-self: flex-start;
  }

  .hero {
    padding-top: 2.2rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero__photo {
    width: 210px;
    height: 210px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 320px);
  }

  .btn {
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .timeline article {
    margin-left: 0.85rem;
    padding-left: 0.65rem;
  }

  .two-columns {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 0.8rem 1rem 1.4rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  .brand {
    font-size: 0.95rem;
  }

  .menu a {
    font-size: 0.82rem;
  }

  .hero h1 {
    font-size: 1.55rem;
  }

  .hero__photo {
    width: 180px;
    height: 180px;
    border-radius: 18px;
  }

  .panel {
    border-radius: 12px;
  }
}
