/* =========================================================================
   UkraineWebModels — theme
   Dark, premium "glam" look: deep plum background, magenta→violet gradient
   accents, glassmorphism surfaces and smooth reveal animations.
   ========================================================================= */

:root {
  --bg: #0e0b1a;
  --bg-2: #141020;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f5f3ff;
  --muted: #a49ec8;
  --pink: #ff4d8d;
  --violet: #8b5cf6;
  --cyan: #38e1ff;
  --grad: linear-gradient(135deg, #ff4d8d 0%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 77, 141, 0.16), rgba(139, 92, 246, 0.16));
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font-head: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 500px at 15% -5%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(700px 500px at 90% 5%, rgba(255, 77, 141, 0.18), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(56, 225, 255, 0.08), transparent 60%);
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1rem; }
a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================================
   Header
   ========================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 11, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(255, 77, 141, 0.4);
}
.brand-text { white-space: nowrap; }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.main-nav a:hover { color: var(--text); background: var(--surface); }
.main-nav a.active { color: var(--text); background: var(--surface-2); }

.header-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   Buttons
   ========================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 77, 141, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(255, 77, 141, 0.5);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
/* =========================================================================
   Hero
   ========================================================================= */

.hero {
  position: relative;
  padding: 84px 0 64px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 420px at 75% 20%, rgba(255, 77, 141, 0.16), transparent 60%),
    radial-gradient(500px 380px at 15% 30%, rgba(139, 92, 246, 0.16), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid rgba(255, 77, 141, 0.3);
  color: #ffb3d0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.hero h1 {
  margin-bottom: 20px;
  background: linear-gradient(120deg, #fff 20%, #ffb3d0 60%, #c9b8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: var(--muted);
  font-size: 1.13rem;
  max-width: 52ch;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-panel {
  padding: 34px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { color: var(--muted); font-size: 0.88rem; }

/* =========================================================================
   Sections
   ========================================================================= */

.section { padding: 72px 0; }
.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}
.section-head h2 { margin: 0; }
.link-arrow {
  font-weight: 600;
  color: var(--pink);
  white-space: nowrap;
  transition: transform 0.2s ease;
}
.link-arrow:hover { transform: translateX(3px); }

/* =========================================================================
   Cards
   ========================================================================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 77, 141, 0.45);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.4);
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #2a1f4a, #4a1f3a);
  display: block;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .card-media img { transform: scale(1.05); }
.card-media-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c9b8ff;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}
.badge:hover { background: rgba(139, 92, 246, 0.25); color: #fff; }
.card-title { margin: 0; font-size: 1.18rem; }
.card-title a { color: var(--text); transition: color 0.2s ease; }
.card-title a:hover { color: var(--pink); }
.card-excerpt { color: var(--muted); font-size: 0.92rem; margin: 0; flex: 1; }
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.card-dot { opacity: 0.6; }

/* =========================================================================
   Category tiles
   ========================================================================= */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.cat-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.cat-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 141, 0.4);
  background: var(--surface-2);
}
.cat-tile-name { font-weight: 600; font-family: var(--font-head); }
.cat-tile-count {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--grad-soft);
  color: var(--muted);
  font-size: 0.78rem;
}
/* =========================================================================
   CTA
   ========================================================================= */

.cta { padding: 64px 0 80px; }
.cta-inner {
  position: relative;
  text-align: center;
  padding: 56px 34px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 77, 141, 0.16), rgba(139, 92, 246, 0.16));
  border: 1px solid rgba(255, 77, 141, 0.3);
  overflow: hidden;
}
.cta-inner h2 { margin-bottom: 14px; }
.cta-inner p { color: var(--muted); max-width: 46ch; margin: 0 auto 26px; }

/* =========================================================================
   Page header (list / taxonomy / terms)
   ========================================================================= */

.page-header { padding: 56px 0 36px; }
.page-header h1 { margin-bottom: 12px; }
.page-desc { color: var(--muted); font-size: 1.08rem; max-width: 60ch; margin: 0; }

/* =========================================================================
   Single article
   ========================================================================= */

.single { padding: 56px 0 80px; }
.single-header { max-width: 820px; margin: 0 auto 34px; text-align: center; }
.single-header .card-cats { justify-content: center; margin-bottom: 18px; }
.single-header h1 { margin-bottom: 16px; }
.single-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.single-cover {
  max-width: 960px;
  margin: 0 auto 36px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.single-cover img { width: 100%; height: auto; }

.toc {
  max-width: 820px;
  margin: 0 auto 40px;
  padding: 24px 28px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.toc-title {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 6px 0; }
.toc a { color: var(--muted); transition: color 0.2s ease; }
.toc a:hover { color: var(--pink); }
.toc ul ul { padding-left: 18px; }

/* =========================================================================
   Prose (article body)
   ========================================================================= */

.prose { max-width: 820px; margin: 0 auto; }
.prose-center { max-width: 820px; margin: 0 auto; text-align: center; }
.prose-center ul, .prose-center ol { text-align: left; }

.prose h2 {
  margin: 2.2em 0 0.6em;
  padding-bottom: 0.4em;
  border-bottom: 2px solid;
  border-image: var(--grad) 1;
}
.prose h3 { margin: 1.6em 0 0.5em; color: #ffd6e6; }
.prose p { color: #d9d5ee; }
.prose strong { color: #fff; }
.prose a { border-bottom: 1px solid rgba(255, 77, 141, 0.4); }
.prose a:hover { color: #ff7aa8; border-bottom-color: #ff7aa8; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.prose li { margin: 0.45em 0; color: #d9d5ee; }
.prose blockquote {
  margin: 1.5em 0;
  padding: 16px 22px;
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
  color: var(--muted);
}
.prose code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9em;
}
.prose hr { border: 0; height: 1px; background: var(--border); margin: 2em 0; }
/* =========================================================================
   FAQ
   ========================================================================= */

.faq { max-width: 820px; margin: 48px auto 0; }
.faq h2 { margin-bottom: 22px; }
.faq-item {
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-family: var(--font-head);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.4rem;
  color: var(--pink);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 22px 20px; color: var(--muted); }

/* =========================================================================
   Pagination
   ========================================================================= */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 44px;
}
.page-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}
.page-btn:hover { transform: translateY(-2px); background: var(--surface-2); }
.page-info { color: var(--muted); font-size: 0.9rem; }

/* =========================================================================
   Apply form
   ========================================================================= */

.apply-form {
  display: grid;
  gap: 16px;
  max-width: 560px;
  margin-top: 28px;
}
.apply-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 600;
  font-size: 0.92rem;
}
.apply-form input, .apply-form textarea {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.apply-form input:focus, .apply-form textarea:focus {
  outline: none;
  border-color: rgba(255, 77, 141, 0.55);
  background: var(--surface-2);
}
.apply-form textarea { resize: vertical; }
.apply-form .btn { justify-self: start; }

/* =========================================================================
   Footer
   ========================================================================= */

.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-top: 56px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: #fff;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--muted); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--pink); }
.footer-links li { color: var(--muted); font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }

/* =========================================================================
   404
   ========================================================================= */

.page-404 {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 40px 24px;
  text-align: center;
}
.error-wrap { max-width: 560px; }
.error-code {
  font-family: var(--font-head);
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.error-wrap h1 { margin-bottom: 14px; }
.error-wrap p { color: var(--muted); margin-bottom: 30px; }
.error-wrap .hero-actions { justify-content: center; }

/* =========================================================================
   Reveal animation (only active when JS is available)
   ========================================================================= */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .card-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 56px 0 44px; }
  .section { padding: 52px 0; }

  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(14, 11, 26, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 22px;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 12px 14px; font-size: 1.05rem; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}



