*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0f0f1a;
  --bg2: #1a1c2e;
  --bg3: #141520;
  --surface: #f4f1eb;
  --surface2: #eae6dc;
  --accent: #b94215;
  --accent-h: #d65420;
  --text: #1e1e2e;
  --text-b: #2e2e42;
  --text-m: #5a5a72;
  --text-l: #d0cdc6;
  --text-d: #a8a4a0;
  --border-l: #d8d4cb;
  --border-d: #252638;
  --radius: 4px;
  --shadow: 0 2px 16px rgba(0,0,0,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Literata', Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-h); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

#page-loader {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s ease;
}
#page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-inner {
  width: 36px; height: 36px;
  border: 3px solid var(--border-d);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg3);
  border-bottom: 1px solid var(--border-d);
}
.header-inner {
  display: flex; align-items: center;
  height: 64px; gap: 32px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.logo img { width: 36px; height: 36px; border-radius: 6px; }
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--text-l);
  letter-spacing: -0.02em;
}
.logo-text em { font-style: normal; color: var(--accent); }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; list-style: none; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; font-weight: 500;
  color: var(--text-l);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  text-decoration: none; display: block;
}
.main-nav a:hover { color: #fff; background: var(--border-d); }
.main-nav a.active { color: var(--accent); }

.dropdown {
  display: none; position: absolute; top: calc(100% + 4px); left: 0;
  background: var(--bg2); border: 1px solid var(--border-d);
  list-style: none; min-width: 250px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  z-index: 200; border-radius: 0 0 6px 6px;
}
.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown { display: block; }
.dropdown li a {
  font-size: 13px; padding: 11px 18px;
  border-radius: 0; border-bottom: 1px solid var(--border-d);
  color: var(--text-d);
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover { color: var(--text-l); background: rgba(255,255,255,0.05); }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; margin-left: auto;
}
.burger span { width: 22px; height: 2px; background: var(--text-l); display: block; transition: 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg3);
  z-index: 500;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 80px 32px 40px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; cursor: pointer;
  color: var(--text-l); font-size: 28px; line-height: 1;
}
.mobile-menu ul { list-style: none; }
.mobile-menu > nav > ul > li { border-bottom: 1px solid var(--border-d); }
.mobile-menu a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 500;
  color: var(--text-l); display: block;
  padding: 14px 0; text-decoration: none;
}
.mobile-nav-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 600;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.1em; display: block; padding-top: 18px;
}
.mobile-menu > nav > ul > li > ul { padding: 4px 0 14px 16px; }
.mobile-menu > nav > ul > li > ul > li a {
  font-size: 15px; padding: 8px 0; color: var(--text-d);
}

.hero {
  background: var(--bg2);
  min-height: 520px; display: flex; align-items: stretch;
  overflow: hidden;
}
.hero-inner {
  display: grid; grid-template-columns: 55% 45%;
  width: 100%; max-width: 1160px;
  margin: 0 auto; padding: 0 24px;
}
.hero-content {
  padding: 72px 48px 72px 0;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.12em; margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 3.6vw, 46px);
  font-weight: 700; line-height: 1.15;
  color: #fff; margin-bottom: 20px;
}
.hero-desc { font-size: 16px; color: var(--text-d); max-width: 440px; line-height: 1.65; margin-bottom: 32px; }
.hero-meta { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-meta-item {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; color: var(--text-m);
  display: flex; align-items: center; gap: 6px;
}
.hero-meta-item::before { content: '—'; color: var(--accent); }
.hero-image {
  position: relative; overflow: hidden;
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

.stats-bar { background: var(--accent); padding: 22px 0; }
.stats-bar-inner { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px; }
.stat-item { text-align: center; }
.stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: 30px; font-weight: 600; color: #fff; line-height: 1;
}
.stat-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: rgba(255,255,255,0.75);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 5px;
}

.section { padding: 72px 0; }
.section-dark { background: var(--bg2); }
.section-light { background: var(--surface); }
.section-header { margin-bottom: 48px; }
.section-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px;
}
.section-h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 600; color: var(--text); line-height: 1.2;
}
.section-dark .section-h2 { color: var(--text-l); }
.section-dark .section-tag { color: var(--accent-h); }
.section-desc { font-size: 15px; color: var(--text-m); margin-top: 12px; max-width: 540px; }
.section-dark .section-desc { color: var(--text-d); }

.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.article-card {
  background: var(--surface);
  border-radius: 8px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-5px); box-shadow: 0 10px 32px rgba(0,0,0,0.25); }
.card-image { aspect-ratio: 16/9; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.article-card:hover .card-image img { transform: scale(1.05); }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px;
}
.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 600;
  color: var(--text); line-height: 1.3; margin-bottom: 12px;
}
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { font-size: 14px; color: var(--text-m); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.card-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: var(--text-m);
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--border-l);
  padding-top: 14px; margin-top: auto;
}

.about-snippet { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.about-text h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 30px; font-weight: 600;
  color: var(--text-l); margin-bottom: 20px;
}
.about-text p { color: var(--text-d); line-height: 1.7; margin-bottom: 14px; font-size: 15px; }
.about-features { list-style: none; margin-top: 24px; }
.about-features li {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px; color: var(--text-d);
  padding: 9px 0; border-bottom: 1px solid var(--border-d);
  display: flex; align-items: center; gap: 12px;
}
.about-features li::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.about-visual { position: relative; height: 380px; border-radius: 8px; overflow: hidden; }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }
.about-visual-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  padding: 36px 24px 20px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; color: rgba(255,255,255,0.7);
}

.page-hero {
  background: var(--bg2);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border-d);
}
.page-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700; color: #fff; margin-bottom: 12px;
}
.page-hero p { color: var(--text-d); max-width: 600px; font-size: 16px; }

.breadcrumb { padding: 16px 0; border-bottom: 1px solid var(--border-l); margin-bottom: 8px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; color: var(--text-m);
  display: flex; align-items: center; gap: 6px;
}
.breadcrumb li + li::before { content: '/'; }
.breadcrumb a { color: var(--text-m); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li:last-child { color: var(--text); font-weight: 500; }

.article-layout { display: grid; grid-template-columns: 1fr 310px; gap: 52px; align-items: start; }
.article-header { margin-bottom: 36px; }
.article-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px;
}
.article-h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 700; line-height: 1.15;
  color: var(--text); margin-bottom: 18px;
}
.article-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; color: var(--text-m);
  display: flex; gap: 24px; flex-wrap: wrap;
  padding-bottom: 24px; border-bottom: 2px solid var(--border-l); margin-bottom: 32px;
}
.article-hero-image { width: 100%; border-radius: 8px; overflow: hidden; margin-bottom: 40px; aspect-ratio: 16/7; }
.article-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.article-content h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 24px; font-weight: 600;
  color: var(--text); margin: 40px 0 14px;
}
.article-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px; font-weight: 600;
  color: var(--text); margin: 26px 0 10px;
}
.article-content p { margin-bottom: 20px; color: var(--text-b); }
.article-content ul, .article-content ol { margin: 14px 0 20px 24px; color: var(--text-b); }
.article-content li { margin-bottom: 8px; }
.article-content strong { font-weight: 600; color: var(--text); }
.article-content a { color: var(--accent); }
.article-content a:hover { text-decoration: underline; }
.info-box {
  background: var(--surface2); border-left: 3px solid var(--accent);
  padding: 18px 22px; margin: 28px 0; border-radius: 0 4px 4px 0;
}
.info-box p { margin: 0; font-size: 15px; }
.article-updated {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px; color: var(--text-m);
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid var(--border-l);
}

.sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--surface); border-radius: 8px;
  padding: 24px; margin-bottom: 24px;
  border: 1px solid var(--border-l);
}
.widget-title {
  font-family: 'Oswald', sans-serif;
  font-size: 16px; font-weight: 600;
  color: var(--text); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--accent);
}
.sidebar-articles { list-style: none; }
.sidebar-articles li { border-bottom: 1px solid var(--border-l); }
.sidebar-articles li:last-child { border-bottom: none; }
.sidebar-articles a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; color: var(--text);
  display: block; padding: 11px 0; text-decoration: none;
  line-height: 1.4;
}
.sidebar-articles a:hover { color: var(--accent); }
.sidebar-articles .art-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--text-m);
  text-transform: uppercase; letter-spacing: 0.08em;
  display: block; margin-bottom: 3px;
}
.sidebar-info { font-size: 13px; color: var(--text-m); line-height: 1.6; }
.sidebar-info strong { color: var(--text); font-weight: 600; display: block; margin-bottom: 4px; }

.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info-block { margin-bottom: 32px; }
.contact-info-block h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px; font-weight: 600;
  color: var(--text); margin-bottom: 16px;
}
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.contact-detail-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: var(--text-m);
  text-transform: uppercase; letter-spacing: 0.08em;
  min-width: 72px; flex-shrink: 0; padding-top: 2px;
}
.contact-detail-val { font-size: 15px; color: var(--text); }
.form-group { margin-bottom: 20px; }
.form-group label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 500;
  color: var(--text); display: block; margin-bottom: 6px;
}
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border-l); border-radius: var(--radius);
  font: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-submit {
  background: var(--accent); color: #fff;
  border: none; padding: 14px 36px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px; font-weight: 600;
  border-radius: var(--radius); cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--accent-h); }
.form-note { font-size: 12px; color: var(--text-m); margin-top: 10px; }

.policy-content { max-width: 800px; }
.policy-content h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 22px; font-weight: 600;
  color: var(--text); margin: 36px 0 14px;
}
.policy-content p, .policy-content li { color: var(--text-b); line-height: 1.7; margin-bottom: 12px; }
.policy-content ul, .policy-content ol { margin: 0 0 16px 24px; }
.policy-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px; font-weight: 600;
  color: var(--text); margin: 22px 0 8px;
}

.site-footer {
  background: var(--bg3);
  border-top: 1px solid var(--border-d);
  padding: 56px 0 0;
  color: var(--text-d);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-about .logo { margin-bottom: 16px; }
.footer-about p { font-size: 14px; line-height: 1.6; color: var(--text-d); max-width: 280px; margin-bottom: 20px; }
.footer-disclaimer {
  font-size: 12px; color: var(--text-m); line-height: 1.5;
  padding: 14px 16px; background: rgba(255,255,255,0.04); border-radius: var(--radius);
}
.footer-col h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--text-l); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: var(--text-d); text-decoration: none; }
.footer-col a:hover { color: var(--text-l); }
.footer-col .footer-contact-item {
  font-size: 13px; color: var(--text-d); margin-bottom: 8px;
  display: flex; gap: 8px;
}
.footer-col .fci-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px; color: var(--text-m);
  text-transform: uppercase; letter-spacing: 0.06em;
  flex-shrink: 0; padding-top: 2px; min-width: 44px;
}
.footer-bottom {
  border-top: 1px solid var(--border-d); padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--text-m); }
.footer-bottom a { color: var(--text-m); text-decoration: none; }
.footer-bottom a:hover { color: var(--text-d); }
.footer-links { display: flex; gap: 20px; }

.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg3); border-top: 1px solid var(--border-d);
  padding: 18px 0; z-index: 800;
  transform: translateY(100%); transition: transform 0.35s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-text { font-size: 14px; color: var(--text-d); flex: 1; line-height: 1.5; }
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 12px; flex-shrink: 0; }
.btn-accept {
  background: var(--accent); color: #fff;
  border: none; padding: 10px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 600;
  border-radius: var(--radius); cursor: pointer; transition: background 0.2s;
}
.btn-accept:hover { background: var(--accent-h); }
.btn-reject {
  background: transparent; color: var(--text-d);
  border: 1px solid var(--border-d); padding: 10px 20px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 500;
  border-radius: var(--radius); cursor: pointer; transition: 0.2s;
}
.btn-reject:hover { border-color: var(--text-d); color: var(--text-l); }

@media (max-width: 960px) {
  .main-nav { display: none; }
  .burger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-content { padding: 48px 0; }
  .articles-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .about-snippet { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { height: 280px; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
  .stats-bar-inner { justify-content: center; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
}
