/* =========================================================
   Youth First Concern — основной стиль
   Фирменный цвет сохранён с исходного сайта (#008ca5)
   ========================================================= */

:root {
  --brand: #008ca5;
  --brand-dark: #006b7e;
  --brand-deep: #0b3a45;
  --brand-soft: #e6f4f7;
  --accent: #f5b335;
  --ink: #1b2a30;
  --muted: #5b6b72;
  --line: #e3eaec;
  --bg: #ffffff;
  --bg-alt: #f6f9fa;
  --footer: #14262c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(11, 58, 69, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 58, 69, 0.14);
  --container: 1180px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--brand { background: var(--brand); color: #fff; }
.section--tight { padding: 64px 0; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.section--brand .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #bfe9f1; }

.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700; font-size: .98rem;
  border: 2px solid transparent;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(0,140,165,.3); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--light { background: #fff; color: var(--brand-deep); }
.btn--light:hover { color: var(--brand); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--brand-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { width: 46px; height: 44px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.02rem; font-weight: 800; }
.brand-text span { font-size: .74rem; color: var(--muted); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav > a, .nav-drop > button {
  font: inherit; font-size: .95rem; font-weight: 600;
  color: var(--ink);
  background: none; border: 0; cursor: pointer;
  padding: 10px 14px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav-drop > button:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav > a.active, .nav-drop.active > button { color: var(--brand); }
.nav .btn { margin-left: 10px; padding: 11px 22px; }
.nav > a.btn--primary, .nav > a.btn--primary:hover { color: #fff; background: var(--brand); border-radius: 999px; }
.nav > a.btn--primary:hover { background: var(--brand-dark); }

.nav-drop { position: relative; }
.nav-drop > button svg { transition: transform .2s; }
.nav-drop:hover > button svg, .nav-drop.open > button svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translate(-50%, 8px);
  min-width: 260px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-drop:hover .dropdown, .nav-drop.open .dropdown, .nav-drop:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: var(--ink); font-weight: 600; font-size: .94rem;
}
.dropdown a small { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.dropdown a:hover, .dropdown a.active { background: var(--brand-soft); color: var(--brand-dark); }

.burger {
  display: none; width: 44px; height: 44px; border: 0; background: var(--brand-soft);
  border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 20px; height: 2px; background: var(--brand-deep); position: relative; transition: .2s;
}
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { top: 0; transform: rotate(45deg); }
.menu-open .burger span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
  color: #fff;
  background: var(--brand-deep) center / cover no-repeat;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,40,48,.88) 0%, rgba(8,40,48,.6) 45%, rgba(8,40,48,.15) 100%);
}
.hero .container { position: relative; padding-top: 60px; padding-bottom: 60px; }
.hero h1 { max-width: 820px; }
.hero p { font-size: 1.2rem; max-width: 620px; color: rgba(255,255,255,.9); margin-bottom: 32px; }

.page-hero {
  position: relative; color: #fff;
  padding: 120px 0 96px;
  background: var(--brand-deep) center / cover no-repeat;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,40,48,.9), rgba(0,107,126,.55));
}
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 800px; }
.page-hero p { font-size: 1.15rem; max-width: 680px; color: rgba(255,255,255,.88); margin: 0; }
.crumbs { font-size: .88rem; margin-bottom: 18px; color: rgba(255,255,255,.75); }
.crumbs a { color: #fff; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- Stats ---------- */
.stats-wrap { position: relative; margin-top: -70px; z-index: 2; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.stat { padding: 34px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat-num { font-size: 2.8rem; font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 10px; }
.stat-num sup { font-size: .5em; vertical-align: top; position: relative; top: .2em; margin-left: 2px; }
.stat-label { color: var(--muted); font-weight: 600; font-size: .95rem; line-height: 1.4; }
.stats--plain { margin-top: 0; }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split-media { order: -1; }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split-media .badge-card {
  position: absolute; left: -24px; bottom: -24px;
  background: var(--brand); color: #fff;
  padding: 20px 24px; border-radius: 14px; box-shadow: var(--shadow-lg);
  max-width: 240px;
}
.badge-card strong { display: block; font-size: 2rem; line-height: 1; margin-bottom: 6px; }
.badge-card span { font-size: .9rem; opacity: .9; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); margin: 0; }
.card h3 { margin-bottom: 10px; }

.icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.icon svg { width: 26px; height: 26px; }

.program-card {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); color: var(--ink);
  transition: transform .25s, box-shadow .25s;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.program-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; }
.program-card:hover img { transform: scale(1.04); }
.program-card .media { overflow: hidden; }
.program-card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.program-card .tag { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.program-card h3 { margin-bottom: 8px; }
.program-card p { color: var(--muted); font-size: .96rem; margin-bottom: 18px; }
.more { margin-top: auto; font-weight: 700; color: var(--brand); display: inline-flex; align-items: center; gap: 6px; }
.more svg { transition: transform .2s; }
.program-card:hover .more svg { transform: translateX(4px); }

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 38px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008ca5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.check-list--2col { grid-template-columns: 1fr 1fr; column-gap: 32px; }

.info-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: .92rem;
}
.pill svg { width: 18px; height: 18px; }

/* ---------- Quote / mission ---------- */
.mission {
  position: relative; text-align: center; max-width: 900px; margin: 0 auto;
}
.mission p { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 700; line-height: 1.45; margin: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  transition: box-shadow .2s, border-color .2s;
}
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 64px 22px 26px; position: relative;
  font-weight: 700; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%;
  width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23008ca5' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 26px 24px; color: var(--muted); }
.faq .answer p { margin: 0; }

/* ---------- CTA ---------- */
.cta {
  border-radius: 24px; padding: 64px;
  background: linear-gradient(120deg, var(--brand-deep), var(--brand));
  color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.cta::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; border: 50px solid rgba(255,255,255,.06);
}
.cta h2 { margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,.88); margin: 0; }
.cta .btn-row { justify-content: flex-end; position: relative; z-index: 1; }

/* ---------- Target groups ---------- */
.audience { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.audience div {
  display: flex; gap: 16px; align-items: center;
  background: #fff; border-radius: 14px; padding: 20px 22px;
  border-left: 4px solid var(--brand); box-shadow: var(--shadow);
  font-weight: 700;
}
.audience svg { flex: none; width: 28px; height: 28px; color: var(--brand); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: rgba(255,255,255,.72); padding: 72px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: #fff; }
.footer-brand img { width: 44px; height: 44px; background: #fff; border-radius: 10px; padding: 4px; }
.footer-brand strong { font-size: 1.05rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { flex: none; width: 20px; height: 20px; color: var(--brand); margin-top: 3px; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center; color: #fff; transition: background .2s;
}
.socials a:hover { background: var(--brand); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; padding: 48px; }
  .cta .btn-row { justify-content: flex-start; }
}

@media (max-width: 960px) {
  .burger { display: inline-flex; }
  /* backdrop-filter создаёт контейнер для fixed-меню — на мобильных отключаем */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .menu-open { overflow: hidden; }
  .nav {
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 20px 24px 40px; gap: 2px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease;
  }
  .menu-open .nav { transform: none; }
  .nav > a, .nav-drop > button { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; }
  .nav .btn { margin: 16px 0 0; justify-content: center; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; padding: 0 0 0 12px; display: none; min-width: 0;
  }
  .nav-drop .dropdown, .nav-drop:hover .dropdown, .nav-drop.open .dropdown, .nav-drop:focus-within .dropdown { transform: none; left: auto; }
  .dropdown::before { display: none; }
  .nav-drop.open .dropdown { display: block; }

  .split, .grid-3 { grid-template-columns: 1fr; }
  .split { gap: 48px; }
  .split--reverse .split-media { order: 0; }
  .split-media .badge-card { left: 16px; bottom: -20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 72px 0; }
  .grid-2, .grid-4, .audience, .check-list--2col, .footer-grid { grid-template-columns: 1fr; }
  .stat { padding: 24px 18px; }
  .stat-num { font-size: 2.2rem; }
  .brand-text span { display: none; }
  .cta { padding: 36px 24px; border-radius: 18px; }
  .page-hero { padding: 88px 0 72px; }
  .hero::before { background: linear-gradient(180deg, rgba(8,40,48,.55), rgba(8,40,48,.85)); }
  .gallery .wide { grid-column: span 2; }
}
