/* =========================================================================
   ruslan.savchyshyn.com — двомовний статичний сайт
   Кольори — у :root. Кожна сторінка генерується build.js із спільним
   шаблоном, тож правки стилю тут застосовуються до всього сайту.
   ========================================================================= */
:root {
  --accent: #34d399;
  --accent-soft: #d1fae5;
  --black: #000000;
  --ink: #141414;
  --white: #ffffff;
  --light: #f8fafc;
  --muted: #6b7280;
  --muted-light: rgba(255, 255, 255, 0.65);
  --card-border: #e5e7eb;
  --radius: 24px;
  --maxw: 1100px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink); background: var(--white); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.section-title { font-size: 52px; font-weight: 800; letter-spacing: -1px; margin-bottom: 24px; }
.lead { font-size: 20px; max-width: 760px; }
.muted { color: var(--muted); }
.bg-dark  { background: var(--black); color: var(--white); }
.bg-dark .muted { color: var(--muted-light); }
.bg-light { background: var(--light); }
.bg-white { background: var(--white); }
.accent { color: var(--accent); }

/* ---------- шапка ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(10px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { color: var(--white); font-weight: 800; font-size: 18px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: rgba(255, 255, 255, 0.8); font-size: 14px; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--white); }
.nav a.nav-talk {
  background: var(--white); color: var(--black); padding: 9px 20px; border-radius: 999px;
  font-weight: 600; transition: background .15s, color .15s, transform .15s;
}
.nav a.nav-talk:hover { background: var(--accent); color: var(--black); transform: translateY(-1px); }
.lang { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.lang a { color: rgba(255, 255, 255, 0.6); }
.lang a:hover { color: var(--white); }
.lang a.active { color: var(--white); font-weight: 700; }
.lang .sep { color: rgba(255, 255, 255, 0.4); }

/* ---------- герой ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  text-align: center; color: var(--white); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.45)), url("/assets/hero-bg.png");
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero .eyebrow { color: rgba(255,255,255,0.65); margin-bottom: 22px; }
.eyebrow { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; }
.hero h1 { font-size: 82px; font-weight: 900; line-height: 1.05; letter-spacing: -2px; margin-bottom: 28px; }
.hero p.sub { font-size: 22px; max-width: 640px; margin: 0 auto 14px; }
.hero p.sub2 { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 44px; flex-wrap: wrap; }
.btn { padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 15px; display: inline-block; }
.btn-primary { background: var(--white); color: var(--black); }
.btn-primary:hover { opacity: .9; }
.btn-outline { border: 1px solid rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.hero-pills { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 12px; letter-spacing: 2px; color: rgba(255,255,255,0.7); text-transform: uppercase; }

/* ---------- сітки/картки ---------- */
.grid { display: grid; gap: 24px; margin-top: 44px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 32px; }
.bg-dark .card { background: #0c0c0c; border-color: rgba(255,255,255,0.12); }
.card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 15px; }
.card .num { font-size: 60px; font-weight: 900; color: var(--accent-soft); line-height: 1; margin-bottom: 12px; }
a.card { display: block; transition: transform .15s, border-color .15s; }
a.card:hover { transform: translateY(-3px); border-color: var(--accent); }
a.card .role { color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 8px; }

/* дво-колонкові списки */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.list-block h3 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.list-block ul { list-style: none; }
.list-block li { padding: 10px 0 10px 26px; position: relative; border-bottom: 1px solid rgba(127,127,127,0.15); }
.list-block li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ---------- сторінка About + стаття ---------- */
.page-head { padding: 150px 0 60px; }
.page-head h1 { font-size: 56px; font-weight: 800; letter-spacing: -1.5px; }
.page-head .eyebrow { color: var(--accent); margin-bottom: 16px; }
.prose { max-width: 760px; }
.prose p { margin-bottom: 20px; font-size: 18px; }
.prose h2 { font-size: 30px; font-weight: 700; margin: 40px 0 14px; letter-spacing: -.5px; }
.prose h3 { font-size: 22px; font-weight: 700; margin: 28px 0 10px; }
.prose ul { margin: 0 0 20px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: #0f766e; border-bottom: 1px solid rgba(15,118,110,.3); }

/* адаптивні YouTube-вставки (сторінка відгуків) */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  margin: 0 0 36px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--card-border);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* блок відгуків: плеєр на всю ширину контейнера + помітне посилання на плейлист */
.testi-block { margin-bottom: 64px; }
.testi-title { font-size: 30px; font-weight: 700; letter-spacing: -.5px; margin-bottom: 18px; }
.testi-block .video-embed { margin-bottom: 16px; }
.testi-link { margin: 0; }
.testi-link a {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.testi-link a:hover { color: #0f766e; }

/* breadcrumb */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }

/* ---------- блог ---------- */
.post-list { display: grid; gap: 20px; margin-top: 40px; max-width: 820px; }
.post-item {
  border: 1px solid var(--card-border); border-radius: var(--radius); padding: 28px 30px;
  transition: transform .15s, border-color .15s; display: block;
}
.post-item:hover { transform: translateY(-2px); border-color: var(--accent); }
.post-item time { font-size: 13px; color: var(--muted); }
.post-item h2 { font-size: 24px; font-weight: 700; margin: 6px 0 8px; letter-spacing: -.5px; }
.post-item p { color: var(--muted); font-size: 15px; }
.article time { display: block; color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* ---------- підвал ---------- */
.site-footer { background: var(--black); color: var(--white); padding: 60px 0 40px; text-align: center; }
.site-footer .socials { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin: 22px 0; }
.site-footer .socials a { color: rgba(255,255,255,0.75); font-size: 15px; }
.site-footer .socials a:hover { color: var(--accent); }
.site-footer .foot-nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; font-size: 14px; margin-bottom: 8px; }
.site-footer .foot-nav a { color: rgba(255,255,255,0.7); }
.copyright { color: rgba(255,255,255,0.45); font-size: 13px; margin-top: 22px; }

/* ---------- адаптив ---------- */
@media (max-width: 900px) {
  .nav { gap: 12px; }
  .hero h1 { font-size: 46px; }
  .section-title, .page-head h1 { font-size: 34px; }
  .grid-3, .grid-4, .cols-2 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .page-head { padding: 120px 0 40px; }
}
