:root {
  --bg: #f5f8ff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --text: #10223e;
  --muted: #4d6280;
  --line: #dbe5f4;
  --primary: #0f63ff;
  --primary-strong: #0848bd;
  --accent: #00bfa6;
  --shadow: 0 20px 45px rgba(18, 40, 74, 0.13);
  --radius-lg: 22px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% -10%, rgba(15, 99, 255, 0.18), transparent 44%),
    radial-gradient(circle at 100% 0%, rgba(0, 191, 166, 0.2), transparent 38%),
    var(--bg);
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 16px;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 999;
}

.skip-link:focus {
  left: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 99;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(195, 213, 237, 0.8);
  background: rgba(250, 252, 255, 0.86);
}

.nav-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.brand strong {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand span {
  color: var(--muted);
  font-size: 0.77rem;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 9px;
  font-weight: 600;
  color: #19345a;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  background: #e8f0ff;
  color: var(--primary-strong);
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  text-decoration: none;
  color: #22406c;
  background: rgba(255, 255, 255, 0.78);
}

.socials a:hover {
  border-color: #9dbdf3;
  color: var(--primary-strong);
}

.menu-btn {
  display: none;
  margin-left: auto;
  border: 0;
  background: #eaf1ff;
  color: #133f85;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.mobile-menu {
  display: none;
  padding: 12px 22px 18px;
  border-top: 1px solid var(--line);
  background: rgba(248, 251, 255, 0.98);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu a {
  text-decoration: none;
  font-weight: 600;
  color: #19345a;
  padding: 10px;
  border-radius: 10px;
}

.mobile-menu a[aria-current="page"],
.mobile-menu a:hover {
  background: #e8f0ff;
  color: var(--primary-strong);
}

.mobile-menu.is-open {
  display: block;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 38px 22px 64px;
}

.hero {
  background: linear-gradient(130deg, rgba(15, 99, 255, 0.96), rgba(0, 191, 166, 0.88));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 42px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
}

.hero p {
  margin-top: 14px;
  max-width: 62ch;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
}

.btn-primary {
  color: #0f3c97;
  background: #fff;
}

.btn-secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.section {
  margin-top: 34px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.panel {
  background: var(--surface);
  border: 1px solid rgba(220, 230, 245, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface-solid);
  border-radius: var(--radius-md);
  border: 1px solid #e7eefb;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e9eef8;
}

.card-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: 100%;
}

.card-content h3 {
  font-size: 1.06rem;
}

.card-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.card-content p {
  margin: 0;
  color: #334866;
  line-height: 1.55;
}

.card-link {
  margin-top: auto;
  color: var(--primary-strong);
  text-decoration: none;
  font-weight: 700;
}

.about {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 24px;
  align-items: start;
}

.about img {
  width: 100%;
  border-radius: 18px;
  border: 1px solid #dce8fd;
}

.about p {
  margin-top: 0;
  line-height: 1.7;
  color: #324a6a;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2a4466;
}

.contact-item a {
  color: var(--primary-strong);
  text-decoration: none;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cfdcf3;
  border-radius: 10px;
  padding: 11px;
  font: inherit;
}

.contact-form button {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--primary-strong), #0f63ff);
}

.site-footer {
  border-top: 1px solid rgba(210, 224, 246, 0.95);
  padding: 18px 22px 26px;
  color: var(--muted);
  text-align: center;
}

.status {
  font-weight: 600;
  color: var(--muted);
}

.article-shell {
  display: grid;
  gap: 18px;
}

.article-cover {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #dce8fd;
  max-height: 440px;
  object-fit: cover;
}

.markdown-body {
  color: #2d4567;
  line-height: 1.75;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  margin: 1.1em 0 0.45em;
}

.markdown-body p,
.markdown-body li {
  margin: 0.65em 0;
}

.markdown-body img {
  max-width: 100%;
  border-radius: 12px;
}

.article-back {
  margin-top: 16px;
  background: #2b5fbb;
  color: #fff;
  border: 0;
}

@media (max-width: 860px) {
  .nav-links,
  .nav-wrap .socials {
    display: none;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .hero,
  .panel {
    padding: 20px;
  }

  .about {
    grid-template-columns: 1fr;
  }
}
