/* ==========================================================================
   ol0.info — technology, software & internet
   ========================================================================== */

:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --ink: #0d1220;
  --ink-soft: #273449;
  --muted: #5a6478;
  --line: #e5e8f0;
  --line-strong: #d5dae8;
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-soft: #eef2ff;
  --cyan: #06b6d4;
  --green: #16a34a;
  --radius: 18px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .05);
  --shadow: 0 16px 40px rgba(15, 23, 42, .10);
  --container: 1160px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Noto Sans", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
[hidden] { display: none !important; }

::selection { background: #c7d2fe; color: #1e1b4b; }

:focus-visible {
  outline: 3px solid rgba(79, 70, 229, .45);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

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

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(15, 23, 42, .07); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand img { width: auto; height: 34px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: .93rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.nav-link:hover,
.nav-drop-btn:hover { color: var(--ink); background: #f1f4fa; }
.nav-link.active,
.nav-drop-btn.active { color: var(--brand-dark); background: var(--brand-soft); }

.nav-dropdown { position: relative; }

.nav-drop-btn .chevron {
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
}
.nav-dropdown.is-open .nav-drop-btn .chevron { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 228px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, .14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: .89rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background .16s ease, color .16s ease;
}
.dropdown-link:hover { background: #f4f6fb; color: var(--brand-dark); }
.dropdown-link .flag { font-size: 1.06rem; line-height: 1; }
.dropdown-link .check {
  width: 15px;
  height: 15px;
  margin-left: auto;
  color: var(--brand);
  opacity: 0;
}
.dropdown-link[aria-current="true"] { color: var(--brand-dark); background: var(--brand-soft); }
.dropdown-link[aria-current="true"] .check { opacity: 1; }

.lang-dropdown .dropdown-menu { left: auto; right: 0; min-width: 214px; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Buttons, chips, labels
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.2;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  box-shadow: 0 10px 24px rgba(79, 70, 229, .32);
}
.btn-primary:hover { box-shadow: 0 14px 30px rgba(79, 70, 229, .4); }

.btn-secondary {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .24);
  color: #e8edf7;
}
.btn-secondary:hover { background: rgba(255, 255, 255, .14); }

.btn-ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: #b9c2d8; box-shadow: var(--shadow-sm); }

.btn-sm { padding: 10px 16px; font-size: .86rem; border-radius: 10px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #6366f1, #22d3ee);
}

.chip {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #4338ca;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--brand-dark);
  white-space: nowrap;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 86px;
  color: #e2e8f0;
  background:
    radial-gradient(900px 520px at 8% -5%, rgba(99, 102, 241, .34), transparent 62%),
    radial-gradient(780px 520px at 96% 18%, rgba(6, 182, 212, .22), transparent 58%),
    linear-gradient(155deg, #0b1220 0%, #101a2e 58%, #0b1220 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 20%, #000 25%, transparent 78%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 54px;
  align-items: center;
}

.hero .eyebrow { color: #a5b4fc; }
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.35rem, 4.5vw, 3.85rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  color: #fff;
  text-wrap: balance;
}
.hero-sub {
  max-width: 560px;
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.72;
  color: #b7c3d9;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 26px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .85rem;
  color: #93a4c3;
}
.hero-badges li { display: flex; align-items: center; gap: 7px; }
.hero-badges svg { width: 15px; height: 15px; color: #22d3ee; }

.hero-visual { position: relative; }
.hero-img {
  width: 100%;
  aspect-ratio: 1400 / 950;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 34px 90px rgba(2, 6, 23, .6);
}
.hero-float {
  position: absolute;
  left: -16px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 14px;
  background: rgba(10, 17, 32, .84);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(2, 6, 23, .45);
}
.hero-float .flags { font-size: 1.08rem; letter-spacing: 2px; }
.hero-float span { font-size: .78rem; font-weight: 700; color: #cbd5e1; }

/* ==========================================================================
   Sections and cards
   ========================================================================== */

.section { padding: 74px 0; }
.section-tight { padding: 46px 0 70px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}
.section-title {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
  line-height: 1.16;
  letter-spacing: -.025em;
}
.section-desc { margin: 0; max-width: 580px; color: var(--muted); font-size: .98rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: #d3d9ea;
  box-shadow: var(--shadow);
}
.card-media { display: block; overflow: hidden; background: #0b1220; }
.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .card-media img { transform: scale(1.035); }

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 20px 20px 22px;
}
.card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.36;
  letter-spacing: -.012em;
}
.card h3 a:hover { color: var(--brand-dark); }
.card p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.62;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  font-size: .87rem;
  font-weight: 700;
  color: var(--brand-dark);
}
.card-link svg { width: 15px; height: 15px; transition: transform .18s ease; }
.card-link:hover svg { transform: translateX(3px); }

/* Topics */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.topic-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.topic-card:hover {
  transform: translateY(-3px);
  border-color: #d3d9ea;
  box-shadow: var(--shadow-sm);
}
.topic-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--brand);
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
}
.topic-icon svg { width: 21px; height: 21px; }
.topic-card h3 { margin: 0 0 4px; font-size: 1rem; letter-spacing: -.01em; }
.topic-card p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.topic-count {
  margin-left: auto;
  padding-left: 6px;
  font-size: .76rem;
  font-weight: 800;
  color: #94a3b8;
}

/* CTA */
.cta-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  overflow: hidden;
  padding: 48px 52px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(560px 300px at 92% 0%, rgba(6, 182, 212, .26), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(99, 102, 241, .3), transparent 60%),
    #0b1220;
}
.cta-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  pointer-events: none;
}
.cta-panel h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  max-width: 640px;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.cta-panel p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 620px;
  color: #b7c3d9;
  font-size: .96rem;
}
.cta-panel .btn { position: relative; z-index: 1; flex: 0 0 auto; }

/* ==========================================================================
   Page hero (blog, static, article)
   ========================================================================== */

.page-hero {
  padding: 62px 0 42px;
  background:
    radial-gradient(760px 320px at 12% -10%, rgba(99, 102, 241, .14), transparent 62%),
    radial-gradient(600px 280px at 92% 0%, rgba(6, 182, 212, .1), transparent 60%),
    linear-gradient(#ffffff, var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.page-sub {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}
.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--muted);
  font-size: .85rem;
}
.count-pill {
  display: inline-flex;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
}

/* ==========================================================================
   Blog controls
   ========================================================================== */

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}
.search-field {
  position: relative;
  flex: 1 1 280px;
  max-width: 380px;
}
.search-field svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
.search-field input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: .92rem;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-field input:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn {
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: .81rem;
  font-weight: 700;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.chip-btn:hover { border-color: #b9c2d8; color: var(--ink); }
.chip-btn.is-active { background: #0f172a; border-color: #0f172a; color: #fff; }

.empty-state {
  padding: 60px 24px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

/* ==========================================================================
   Article
   ========================================================================== */

.article-hero {
  padding: 46px 0 6px;
  background:
    radial-gradient(700px 300px at 15% -10%, rgba(99, 102, 241, .11), transparent 60%),
    linear-gradient(#ffffff, var(--bg));
}
.article-header { max-width: 880px; margin: 0 auto; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  color: #94a3b8;
  font-size: .8rem;
}
.breadcrumbs a:hover { color: var(--brand-dark); }
.breadcrumbs .sep { color: #cbd5e1; }

.article-title {
  margin: 14px 0 18px;
  font-size: clamp(1.95rem, 4vw, 3.05rem);
  line-height: 1.13;
  letter-spacing: -.032em;
  text-wrap: balance;
}
.article-lead {
  margin: 0 0 24px;
  color: #475569;
  font-size: 1.09rem;
  line-height: 1.72;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-bottom: 26px;
  color: var(--muted);
  font-size: .84rem;
}
.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #fff;
  font-size: .92rem;
  font-weight: 800;
}
.meta-strong { color: var(--ink-soft); font-weight: 700; }
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: #cbd5e1; }

.article-figure {
  max-width: 1000px;
  margin: 18px auto 0;
}
.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
.article-figure figcaption {
  padding-top: 10px;
  color: #94a3b8;
  font-size: .76rem;
  text-align: center;
}

.article-main { padding: 34px 0 58px; }
.article-body { max-width: 760px; margin: 0 auto; }

.prose {
  color: var(--ink-soft);
  font-size: 1.045rem;
  line-height: 1.8;
}
.prose h2 {
  margin: 2.2em 0 .55em;
  color: var(--ink);
  font-size: 1.52rem;
  line-height: 1.3;
  letter-spacing: -.018em;
}
.prose h3 { margin: 1.8em 0 .5em; font-size: 1.2rem; color: var(--ink); }
.prose p { margin: 0 0 1.15em; }
.prose ul,
.prose ol { margin: 0 0 1.3em; padding-left: 1.35em; }
.prose li { margin: .42em 0; }
.prose strong { color: #0f172a; }
.prose a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand); }
.prose .lead { font-size: 1.1rem; color: #334155; }
.prose .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }
.prose .btn { text-decoration: none; }
.prose .btn-primary { color: #fff; }
.prose .btn-secondary { color: #e8edf7; }
.prose .btn-ghost { color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  max-width: 760px;
  margin: 40px auto 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.share-label { margin-right: 4px; font-size: .8rem; font-weight: 800; color: var(--ink-soft); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.share-btn:hover { border-color: #c7d2fe; background: #f8faff; color: var(--brand-dark); }
.share-btn svg { width: 14px; height: 14px; }

.lang-panel {
  max-width: 1000px;
  margin: 42px auto 0;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.lang-panel h2 { margin: 0 0 4px; font-size: 1.04rem; letter-spacing: -.01em; }
.lang-panel > p { margin: 0 0 16px; color: var(--muted); font-size: .85rem; }
.lang-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.lang-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fbfcfe;
  font-size: .85rem;
  font-weight: 700;
  transition: border-color .16s ease, background .16s ease;
}
.lang-card:hover { border-color: #c7d2fe; background: #f5f7ff; }
.lang-card.is-current { border-color: #c7d2fe; background: var(--brand-soft); color: #3730a3; }
.lang-card .flag { font-size: 1.05rem; line-height: 1; }
.lang-card .now {
  margin-left: auto;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6366f1;
}

.author-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 760px;
  margin: 34px auto 0;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.author-box .avatar { width: 46px; height: 46px; font-size: 1.1rem; }
.author-box h2 { margin: 0 0 3px; font-size: .96rem; }
.author-box p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.6; }

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 1000px;
  margin: 40px auto 0;
}
.article-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color .16s ease, transform .16s ease;
}
.article-nav a:hover { border-color: #c7d2fe; transform: translateY(-2px); }
.article-nav span { color: #94a3b8; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.article-nav strong { font-size: .9rem; line-height: 1.45; }
.article-nav .next { text-align: right; align-items: flex-end; }
.article-nav a:only-child { grid-column: 1 / -1; }

.related-section { background: #fff; border-top: 1px solid var(--line); }

/* ==========================================================================
   Static pages
   ========================================================================== */

.prose-wrap { max-width: 900px; margin: 0 auto; }
.panel {
  padding: 32px 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}
.panel .prose h2:first-child { margin-top: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 24px;
  align-items: start;
}
.contact-intro h2 { margin: 0 0 8px; font-size: 1.35rem; letter-spacing: -.02em; }
.contact-intro > p { margin: 0 0 22px; color: var(--muted); font-size: .95rem; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .79rem; font-weight: 800; color: #334155; }
.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fbfcfe;
  color: var(--ink);
  font: inherit;
  font-size: .93rem;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .12);
}
.form-note { margin: 14px 0 0; color: #94a3b8; font-size: .78rem; line-height: 1.6; }
.form-status { margin: 12px 0 0; color: var(--green); font-size: .84rem; font-weight: 700; }

.contact-aside { display: flex; flex-direction: column; gap: 12px; }
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.info-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef2ff, #ecfeff);
  color: var(--brand);
}
.info-icon svg { width: 18px; height: 18px; }
.info-card h3 {
  margin: 0 0 2px;
  color: #94a3b8;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.info-card a,
.info-card p { margin: 0; color: var(--ink); font-size: .88rem; font-weight: 600; line-height: 1.5; word-break: break-word; }
.info-card a:hover { color: var(--brand-dark); }
.contact-response { padding: 2px 4px; color: var(--muted); font-size: .8rem; }

/* Sitemap page */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.sitemap-group {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
}
.sitemap-group h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  letter-spacing: -.01em;
}
.sitemap-group ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sitemap-group li { font-size: .88rem; line-height: 1.5; }
.sitemap-group a { color: var(--muted); }
.sitemap-group a:hover { color: var(--brand-dark); }
.sitemap-lang-block { margin-top: 20px; }
.sitemap-lang-block h2 { margin: 0 0 14px; font-size: 1.15rem; }
.sitemap-lang-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.sitemap-lang-grid .sitemap-group h3 { margin: 0 0 12px; font-size: .92rem; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-chips a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcfe;
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
}
.lang-chips a:hover { border-color: #c7d2fe; color: var(--brand-dark); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-top: 58px;
  background: #0b1220;
  color: #94a3b8;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1fr;
  gap: 38px;
  padding-bottom: 42px;
}
.footer-brand img { width: auto; height: 32px; margin-bottom: 16px; }
.footer-desc { max-width: 330px; margin: 0; font-size: .88rem; line-height: 1.7; }
.footer-contact { display: grid; gap: 7px; margin-top: 16px; font-size: .86rem; }
.footer-contact a { color: #cbd5e1; }
.footer-contact a:hover { color: #fff; }
.footer-col h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.footer-col ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: .88rem; }
.footer-col a { color: #94a3b8; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: .78rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #cbd5e1; }
.footer-bottom a:hover { color: #fff; }

/* ==========================================================================
   404
   ========================================================================== */

.error-page {
  display: grid;
  place-items: center;
  min-height: 58vh;
  padding: 80px 0;
  text-align: center;
}
.error-code {
  margin: 0;
  font-size: clamp(5rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-page .error-code { color: transparent; }
.error-page h1 { margin: 10px 0 10px; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.02em; }
.error-page p { margin: 0 0 24px; color: var(--muted); }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-sub { max-width: 680px; }
  .hero-visual { max-width: 720px; }
  .hero-float { left: 14px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: 2 / 4; }
  .lang-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .container { width: min(100% - 36px, var(--container)); }
  .header-inner { height: 64px; }
  .menu-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 12px 18px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 40px rgba(15, 23, 42, .12);
  }
  .main-nav.is-open { display: flex; }

  .nav-link,
  .nav-drop-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 10px;
    font-size: .95rem;
  }
  .nav-drop-btn .chevron { margin-left: auto; }
  .nav-dropdown { width: 100%; }
  .dropdown-menu {
    position: static;
    min-width: 0;
    margin: 2px 0 6px;
    padding: 4px 0 4px 12px;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: hidden;
    transform: none;
    display: none;
  }
  .nav-dropdown.is-open .dropdown-menu { display: block; visibility: visible; }
  .lang-dropdown .dropdown-menu { right: auto; }
  .dropdown-link { padding: 9px 10px; }

  .section { padding: 58px 0; }
  .cta-panel { flex-direction: column; align-items: flex-start; padding: 36px 30px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-grid .footer-brand { grid-column: 1 / -1; }
  .footer-grid .footer-col:last-child { grid-column: auto; }
}

@media (max-width: 760px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .card-grid { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 46px 0 32px; }
  .article-hero { padding-top: 34px; }
  .article-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .article-figure { margin-top: 8px; }
  .article-figure img { border-radius: 14px; }
  .lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav .next { text-align: left; align-items: flex-start; }
  .sitemap-grid,
  .sitemap-lang-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .panel { padding: 24px 20px; }
  .prose { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid .footer-col:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, var(--container)); }
  .hero { padding: 48px 0 58px; }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.7rem); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-float { left: 10px; bottom: 10px; padding: 9px 12px; }
  .hero-float .flags { font-size: .92rem; }
  .section { padding: 48px 0; }
  .cta-panel { padding: 30px 22px; border-radius: 18px; }
  .blog-toolbar { flex-direction: column; align-items: stretch; }
  .search-field { flex: 0 0 auto; max-width: none; }
  .lang-grid { grid-template-columns: 1fr; }
  .article-meta { gap: 9px; }
  .author-box { padding: 18px; }
  .share-label { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
