/* ==========================================================================
   Микола Олофінський — site-v5
   Visual language fully borrowed from landing_page/
   (Inter + Outfit, tactical muted gold, glass-morphism, cinematic hero photo,
    noise overlay), filled with the full content of site-v3.
   ========================================================================== */
:root {
  --color-bg: #0a0a0c;
  --color-surface: #121216;
  --color-surface-2: #15151a;
  --color-glass: rgba(25, 25, 30, 0.6);
  --color-glass-border: rgba(255, 255, 255, 0.06);

  --color-text: #e0e0e0;
  --color-heading: #ffffff;
  --color-muted: #888890;
  --color-faint: #6a6a72;

  --color-accent: #b08d57;        /* tactical muted gold */
  --color-accent-hover: #cbb085;
  --color-accent-soft: rgba(176, 141, 87, 0.12);
  --color-danger: #8a2a2a;        /* crimson */

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --maxw: 75rem;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ============================================================ base reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  /* Proportional root size so the rem-based layout scales up on large /
     high-density displays instead of looking microscopic. Anchored to a
     ~1512px MacBook → 16px. */
  font-size: clamp(16px, 1.06vw, 52px);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main {
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
::selection { background: var(--color-accent); color: #15100a; }

/* Cinematic noise overlay (from landing_page) */
.noise-overlay {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 9999; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--color-accent); z-index: 1200;
  box-shadow: 0 0 12px rgba(176, 141, 87, 0.6);
}

/* ============================================================== typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-heading);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
p  { font-size: 1.1rem; color: var(--color-muted); }

.text-glow { color: var(--color-heading); text-shadow: 0 0 40px rgba(255, 255, 255, 0.18); }
.text-muted { color: var(--color-muted); }
.highlight { color: var(--color-accent); }

/* =============================================================== layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }

.block { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
section { position: relative; }

.block-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.block-head.center { margin-inline: auto; text-align: center; }
.block-head h2 { margin-bottom: 1rem; }
.block-head p { font-size: 1.15rem; color: var(--color-muted); max-width: 44rem; }
.block-head.center p { margin-inline: auto; }

/* ============================================================== buttons */
.btn-primary {
  display: inline-block; background: var(--color-heading); color: var(--color-bg);
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
  padding: 1rem 2rem; border-radius: var(--radius-sm); text-transform: uppercase;
  letter-spacing: 0.05em; transition: var(--transition); border: 1px solid transparent;
}
.btn-primary:hover {
  background: transparent; color: var(--color-heading);
  border-color: var(--color-heading); box-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}
.btn-primary.large { padding: 1.25rem 3rem; font-size: 1.1rem; }

.btn-ghost {
  display: inline-block; background: transparent; color: var(--color-heading);
  text-decoration: none; padding: 0.6rem 1.5rem; border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-sm); transition: var(--transition); font-family: var(--font-display);
}
.btn-ghost:hover { border-color: var(--color-accent); color: var(--color-accent-hover); }
.btn-ghost-lg { padding: 1rem 2rem; }

/* ============================================================== glass card */
.glass-card {
  background: var(--color-glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-glass-border); border-radius: var(--radius-lg);
  padding: 2rem; transition: var(--transition);
}
.glass-card:hover {
  transform: translateY(-5px); border-color: rgba(176, 141, 87, 0.35);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

/* =============================================================== nav */
.glass-nav {
  position: sticky; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(10, 10, 12, 0.7); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: var(--transition);
}
.glass-nav.scrolled { background: rgba(10, 10, 12, 0.95); border-bottom-color: rgba(255, 255, 255, 0.15); box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.nav-content {
  max-width: var(--maxw); margin: 0 auto; padding: 1rem 2rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1rem;
  letter-spacing: 0.12em; color: var(--color-heading); text-decoration: none; white-space: nowrap;
}
.nav-links { margin-left: auto; display: flex; gap: 1.8rem; }
.nav-links a {
  font-size: 0.9rem; color: var(--color-muted); text-decoration: none;
  letter-spacing: 0.02em; position: relative; transition: color var(--transition);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px;
  background: var(--color-accent); transition: width var(--transition);
}
.nav-links a:hover { color: var(--color-heading); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 0; }

.nav-toggle { display: none; position: relative; flex-direction: column; justify-content: center; gap: 5px; width: 30px; height: 26px; background: none; border: 0; cursor: pointer; margin-left: auto; }
.nav-toggle span { height: 2px; width: 100%; background: var(--color-heading); border-radius: 2px; transition: opacity 0.3s ease, transform 0.35s ease; }
/* Algiz rune that the hamburger morphs into when the menu opens */
.nav-toggle .rune-ico { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; opacity: 0; transform: scale(0.55) rotate(-10deg); transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; }
.nav-toggle .rune-ico path { fill: none; stroke: var(--color-accent); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px); }
.nav-toggle[aria-expanded="true"] .rune-ico { opacity: 1; transform: scale(1) rotate(0); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: rgba(8, 8, 10, 0.97);
  backdrop-filter: blur(10px); display: flex; flex-direction: column; justify-content: center;
  gap: 1rem; padding: 2rem; transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: transform 0.5s var(--transition), opacity 0.4s;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.mobile-menu nav a {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 7vw, 2.2rem);
  text-transform: uppercase; color: var(--color-heading); text-decoration: none;
  padding: 0.4rem 0; border-bottom: 1px solid var(--color-glass-border); transition: var(--transition);
}
.mobile-menu nav a:hover { color: var(--color-accent); padding-left: 0.5rem; }
.mobile-cta { width: 100%; text-align: center; }

/* =============================================================== badge */
.badge {
  display: inline-block; padding: 0.3rem 0.9rem; background: var(--color-accent-soft);
  color: var(--color-accent); border: 1px solid rgba(176, 141, 87, 0.25);
  border-radius: 100px; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 1.5rem; font-family: var(--font-display); font-weight: 600;
}

/* =============================================================== hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 6rem 0 4rem; overflow: hidden;
}
.hero-bg { position: absolute; top: 0; right: 0; width: 64%; height: 100%; z-index: -1; overflow: hidden; }
.hero-image {
  width: 100%; height: 116%; object-fit: cover; object-position: 62% 28%;
  margin-top: -8%;
  opacity: 0.6; filter: grayscale(62%) contrast(1.05) brightness(0.72); will-change: transform;
}
.hero-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, var(--color-bg) 0%, rgba(10,10,12,0.86) 44%, transparent 100%),
    linear-gradient(to top, var(--color-bg) 0%, transparent 32%);
}
.hero-content { position: relative; z-index: 1; max-width: 36rem; }
.kicker {
  font-family: var(--font-display); font-size: 0.84rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-accent);
  margin-bottom: 1.6rem; line-height: 1.5;
}
.hero-content h1 { margin-bottom: 1.3rem; }
.hero-motto {
  font-family: var(--font-display); font-style: normal; font-size: 1rem; font-weight: 300;
  color: var(--color-text); border-left: 2px solid var(--color-accent);
  padding-left: 1rem; margin-top: -4px; margin-bottom: 1.6rem; max-width: 30rem;
}
.hero .subtitle { margin-bottom: 2.4rem; font-size: 1.2rem; color: var(--color-text); max-width: 34rem; font-weight: 300; }
.cta-group { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.cta-group.center { justify-content: center; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 2.4rem;
  margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--color-glass-border);
  width: fit-content; max-width: 100%;
}
.stat-item { padding-left: 1rem; border-left: 2px solid var(--color-accent); }
.stat-item dt { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--color-heading); line-height: 1; margin-bottom: 0.35rem; }
.stat-item dd { font-size: 0.82rem; color: var(--color-muted); max-width: 12ch; }

/* ========================================================== media marquee */
.marquee-band { padding: 1.4rem 0; border-bottom: 1px solid var(--color-glass-border); background: var(--color-bg); }
.marquee {
  max-width: 60rem; margin-inline: auto; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 1.6rem; width: max-content; animation: marquee 55s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-faint); white-space: nowrap; }
.marquee-track i { color: var(--color-accent); font-style: normal; font-size: 0.5rem; opacity: 0.6; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ====================================================== about / solution */
.solution {
  background: var(--color-surface); border-top: 1px solid var(--color-glass-border);
  border-bottom: 1px solid var(--color-glass-border); padding: clamp(5rem, 9vw, 8rem) 0;
}
.solution-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.portrait-frame {
  position: relative; width: 100%; aspect-ratio: 4/5; border-radius: var(--radius-lg);
  overflow: hidden; border: 1px solid var(--color-glass-border); box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.solution-portrait { width: 100%; height: 100%; object-fit: cover; object-position: 42% center; filter: grayscale(100%) contrast(1.08); transition: var(--transition); }
.portrait-frame:hover .solution-portrait { filter: grayscale(55%) contrast(1.08); transform: scale(1.03); }
.portrait-overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--color-surface) 0%, transparent 42%); }

.solution-text-col h2 { margin-bottom: 1.2rem; }
.solution-bio { margin-bottom: 1.4rem; line-height: 1.7; }
.pull {
  margin: 2rem 0; padding: 0.4rem 0 0.4rem 1.6rem; border-left: 2px solid var(--color-accent);
  font-family: var(--font-display); font-weight: 300; font-style: normal;
  font-size: 1.4rem; line-height: 1.4; color: var(--color-heading);
}

.stats-grid-small { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; margin-top: 2.5rem; }
.stat-sm { padding-left: 1rem; border-left: 2px solid var(--color-accent); }
.stat-sm-num { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--color-heading); line-height: 1; margin-bottom: 0.4rem; }
.stat-sm-label { font-size: 0.88rem; color: var(--color-muted); line-height: 1.4; display: flex; flex-direction: column; gap: 0.8rem; }
.stat-sm-label span { display: block; }

/* =============================================================== focus */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.focus-card { position: relative; }
.focus-num { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--color-accent); letter-spacing: 0.1em; display: block; margin-bottom: 1.1rem; }
.focus-card h3 { margin-bottom: 0.8rem; line-height: 1.2; }
.focus-card p { font-size: 1rem; color: var(--color-muted); }

/* ====================================================== methodology/dragon */
.methodology { background: var(--color-bg); position: relative; overflow: hidden; }
.methodology::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(45% 40% at 50% 0%, rgba(176,141,87,0.10), transparent 70%),
    radial-gradient(55% 45% at 50% 105%, rgba(138,42,42,0.16), transparent 72%);
}
.methodology .container { position: relative; z-index: 1; }
.dragon-title { text-transform: none; }
.dragon-title::after { content: ""; display: block; width: 64px; height: 2px; margin: 1.2rem auto 0; background: var(--color-accent); }
.methodology-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.head-card { text-align: center; }
.head-roman { font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.3em; color: var(--color-accent); display: block; margin-bottom: 0.8rem; }
.head-card h4 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-bottom: 0.9rem; }
.head-card p { font-size: 1rem; color: var(--color-muted); }
.dragon-foot {
  max-width: 40rem; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; text-align: center;
  font-family: var(--font-display); font-weight: 300; font-size: 1.4rem; line-height: 1.45; color: var(--color-heading);
}

/* =========================================================== quote band */
.quote-band { padding: clamp(4rem, 9vw, 7rem) 0; text-align: center; background: var(--color-surface); border-block: 1px solid var(--color-glass-border); }
.big-quote {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  line-height: 1.3; color: var(--color-heading); max-width: 24ch; margin-inline: auto;
  position: relative; letter-spacing: -0.01em;
}

/* =============================================================== formats */
.formats-list { border-top: 1px solid var(--color-glass-border); }
.format-row {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.2rem) 0; border-bottom: 1px solid var(--color-glass-border);
  transition: padding-left var(--transition);
}
.format-row:hover { padding-left: 1rem; }
/* last row flush — keeps the gap to the next section equal to all the others */
.format-row:last-child { border-bottom: none; padding-bottom: 0; }
.format-main { max-width: 64rem; }
.format-main h3 { margin-bottom: 0.5rem; transition: color var(--transition); }
.format-row:hover .format-main h3 { color: var(--color-accent-hover); }
.format-main p { font-size: 1rem; color: var(--color-muted); }
.format-tag {
  flex-shrink: 0; font-family: var(--font-display); font-size: 0.74rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-accent); border: 1px solid rgba(176,141,87,0.3);
  border-radius: 100px; padding: 0.5rem 1.1rem; white-space: nowrap;
}

/* ============================================================== audiences */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.aud-item h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.aud-item p { font-size: 0.96rem; color: var(--color-muted); }

/* ================================================================ media */
.media-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.media-col-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--color-accent-hover); padding-bottom: 1rem; margin-bottom: 1.2rem; border-bottom: 1px solid rgba(176,141,87,0.3); }
.media-listing { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }
.media-listing li { display: flex; flex-direction: column; gap: 0.2rem; }
.media-listing strong { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--color-heading); }
.media-listing span { font-size: 0.9rem; color: var(--color-muted); }

/* ================================================================== faq */
.faq-list { max-width: 50rem; display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--color-glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-glass-border); border-radius: var(--radius-md); overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: rgba(176,141,87,0.4); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.2rem 1.5rem; display: flex;
  align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--color-heading);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ico { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-ico::before, .faq-ico::after { content: ""; position: absolute; background: var(--color-accent); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.faq-ico::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-ico::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item[open] .faq-ico::after { transform: rotate(90deg); opacity: 0; }
.faq-body { padding: 0 1.5rem 1.3rem; }
.faq-body p { font-size: 1rem; color: var(--color-muted); }

/* ============================================================= final cta */
.final-cta { text-align: center; padding: clamp(5rem, 10vw, 9rem) 0; position: relative; overflow: hidden; background: var(--color-surface); border-top: 1px solid var(--color-glass-border); }
.final-cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 55% at 50% 35%, rgba(176,141,87,0.12), transparent 72%); }
.final-cta-inner { position: relative; z-index: 1; max-width: 44rem; }
.final-cta h2 { margin-bottom: 1.2rem; }
.final-cta p { margin: 0 auto 2.4rem; max-width: 34rem; font-size: 1.15rem; }
.cta-note { margin: 2rem auto 0; font-size: 0.9rem; color: var(--color-faint); max-width: 30rem; }

/* =============================================================== footer */
footer { border-top: 1px solid var(--color-glass-border); padding: 3rem 0 2rem; background: var(--color-bg); }
.footer-content { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.footer-brand .logo { display: block; margin-bottom: 0.5rem; }
.footer-role { font-size: 0.85rem; color: var(--color-muted); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--color-muted); text-decoration: none; font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--color-heading); }
.footer-bottom { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--color-glass-border); }
.footer-bottom p { font-size: 0.8rem; color: var(--color-faint); }

/* =========================================================== animations */
.reveal { opacity: 0; will-change: transform, opacity; }
.reveal.active { opacity: 1; }
.fade-up { transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.active { transform: translateY(0); }
.fade-right { transform: translateX(-40px); transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-right.active { transform: translateX(0); }
.fade-left { transform: translateX(40px); transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-left.active { transform: translateX(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* =========================================================== responsive */

/* ---- desktop hero text refinement ---- */
@media (min-width: 981px) {
  .hero { padding: 6rem 0 10rem; }           /* shifts visual center upward (upper third) */
  .hero-motto { margin-bottom: 2.4rem; }      /* more air between quote & description */
  .hero-stats { margin-top: 2.5rem; }         /* tighter stats block */
}

/* ---- tablets & below ---- */
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* HERO (mobile) → focal text (roles + name + quote) sits at the TOP, right
     under the nav. The photo is a DARK, desaturated ATMOSPHERE — not a portrait
     (the clear photo lives in "Про мене"). The silhouette is nudged into the
     gap between the quote and the subtitle, so text never sits on the face. */
  .hero { display: block; min-height: 100svh; padding: 0 0 2rem; }
  .hero .container { padding-top: 1.5rem; }
  .hero-bg { width: 100%; height: 100svh; }
  .hero-image {
    height: 100%; object-position: 50% 10%;
    opacity: 0.55; filter: grayscale(60%) contrast(1.1) brightness(0.38);
    transform: scale(1.1) translateY(5%) !important;        /* nudge silhouette */
  }
  /* dark behind the top text → faint "window" for the silhouette → dark again
     behind the lower text, then into the solid background */
  .hero-gradient {
    background: linear-gradient(to bottom,
      rgba(10,10,12,0.90) 0%,
      rgba(10,10,12,0.74) 24%,
      rgba(10,10,12,0.44) 46%,
      rgba(10,10,12,0.60) 62%,
      rgba(10,10,12,0.95) 76%,
      var(--color-bg) 90%);
  }
  .hero-content { max-width: 100%; }
  .hero-content .hero-motto { margin-bottom: 45svh; }   /* push text down to the bottom */

  .solution-grid { grid-template-columns: 1fr; }
  .solution-image-col { order: -1; max-width: 22rem; margin-inline: auto; }
  .focus-grid, .methodology-cards, .aud-grid, .media-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---- phones ---- */
@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .nav-content { padding: 0.85rem 1.25rem; }
  .logo { font-size: 0.82rem; letter-spacing: 0.1em; }

  /* hero type tuned down for the top-aligned mobile layout */
  .hero .container { padding-top: 1rem; }
  .hero-content .hero-motto { margin-bottom: 40svh; }
  .hero-content h1 { font-size: clamp(1.95rem, 9vw, 2.6rem); }
  .kicker { font-size: 0.72rem; letter-spacing: 0.12em; margin-bottom: 0.8rem; }
  .hero .subtitle { font-size: 1.05rem; margin-bottom: 1.5rem; }
  .hero-motto { font-size: 0.95rem; }

  /* buttons: stacked + full width — fixes the overflow off-screen.
     Scoped to .cta-group so the hidden nav-cta (also .btn-ghost) stays hidden. */
  .cta-group { flex-direction: column; align-items: stretch; gap: 0.8rem; width: 100%; }
  .cta-group.center { align-items: stretch; }
  .cta-group .btn-primary, .cta-group .btn-ghost { display: block; width: 100%; text-align: center; white-space: normal; }
  .cta-group .btn-primary { padding: 0.95rem 1.1rem; font-size: 0.95rem; letter-spacing: 0.04em; }
  .cta-group .btn-primary.large { padding: 1.05rem 1.2rem; font-size: 1rem; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1.1rem; margin-top: 2.5rem; }
  .stat-item dt { font-size: 1.45rem; }
  .stat-item dd { max-width: none; }
  .stats-grid-small { grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }

  .focus-grid, .methodology-cards, .aud-grid, .media-cols { grid-template-columns: 1fr; }

  .format-row { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .format-row:hover { padding-left: 0; }
  .format-tag { order: -1; }

  .glass-card { padding: 1.5rem; }
  .block-head { margin-bottom: 2.2rem; }
  .pull { font-size: 1.2rem; }
  .dragon-foot, .big-quote { font-size: 1.25rem; }
  .faq-item summary { font-size: 1.05rem; padding: 1.05rem 1.2rem; }

  .footer-content { flex-direction: column; align-items: flex-start; gap: 1.3rem; }
  .hide-mobile { display: none; }
}

/* ---- small phones ---- */
@media (max-width: 380px) {
  .hero .container { padding-top: 1rem; }
  .hero-content h1 { font-size: 1.9rem; }
}
