/* ==========================================================================
   ОБЩЕРОССИЙСКОЕ ОБЪЕДИНЕНИЕ ВЫПУСКНИКОВ ПРЕЗИДЕНТСКОЙ ПРОГРАММЫ
   Фирменный стиль АВПП / ФРЦ. Национальная гамма: белый — синий — красный.
   Цвета сняты пипеткой с материалов презентации АВПП (январь 2026).
   Шрифты: Manrope (текст) + Oswald (акцидентные заголовки, как в брендбуке).
   Шрифты подключаются в <head> каждой страницы (preconnect + stylesheet),
   поэтому @import здесь намеренно не используется — так страница
   отрисовывается быстрее.
   ========================================================================== */

:root{
  /* Национальная палитра из фирменных материалов */
  --blue-deep:  #0d3c7e;   /* глубокий синий, фон тёмных блоков */
  --blue:       #124d9d;   /* основной фирменный синий */
  --blue-mid:   #1062af;   /* средний синий градиента */
  --blue-bright:#009edf;   /* акцентный голубой из «лент» */
  --red:        #e72c33;   /* фирменный красный */
  --red-dark:   #c41f26;
  --white:      #ffffff;
  --paper:      #f4f7fb;   /* холодный светлый фон секций */
  --paper-2:    #e8eef7;
  --ink:        #0f1b30;
  --muted:      #5a6c86;
  --muted-on-dark: #b9cbe4;
  --line:       rgba(18,77,157,0.14);
  --line-on-dark: rgba(255,255,255,0.18);
  --max: 1200px;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Oswald', 'Arial Narrow', Arial, sans-serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--white);
  font-size:16px; line-height:1.65;
  -webkit-text-size-adjust:100%;
}
h1,h2,h3,h4{
  font-family:var(--display);
  font-weight:600; line-height:1.15; margin:0;
  letter-spacing:0.005em; text-transform:uppercase;
}
h1{ font-size:clamp(34px,4.4vw,58px); }
h2{ font-size:clamp(26px,3vw,38px); }
h3{ font-size:19px; }
p{ margin:0 0 16px; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
:focus-visible{ outline:3px solid var(--red); outline-offset:2px; }

.wrap{ max-width:var(--max); margin:0 auto; padding:0 40px; }
.skip-link{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--blue); color:#fff; padding:12px 20px; font-weight:700;
}
.skip-link:focus{ left:0; }

/* ---------- Сигнатурный элемент: лента-триколор ---------- */
.tricolor{ height:5px; width:100%; display:flex; }
.tricolor i{ flex:1; display:block; }
.tricolor i:nth-child(1){ background:var(--white); }
.tricolor i:nth-child(2){ background:var(--blue); }
.tricolor i:nth-child(3){ background:var(--red); }

/* ---------- Навигация ---------- */
.topnav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background:rgba(255,255,255,0.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.topnav .bar{
  max-width:var(--max); margin:0 auto; padding:0 40px;
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; min-height:84px;
}
.brand{ display:flex; align-items:center; gap:13px; }
.brand img{ height:44px; width:auto; flex:0 0 auto; }
.brand .txt{
  font-family:var(--display); font-weight:600; font-size:13px;
  line-height:1.24; text-transform:uppercase; letter-spacing:0.015em;
  max-width:340px;
}
.brand .txt span{
  display:block; font-weight:500; font-size:12px;
  letter-spacing:0.015em; color:var(--muted);
}
.navlinks{ display:flex; align-items:center; gap:4px; }
.navlinks a{
  font-size:14px; font-weight:600; color:var(--ink);
  padding:10px 18px; border-radius:4px; transition:.2s;
}
.navlinks a:hover{ background:var(--paper); }
.navlinks a.active{ color:var(--blue); box-shadow:inset 0 -3px 0 var(--red); border-radius:0; }
.cabinet-btn{
  background:var(--blue); color:#fff; font-weight:700; font-size:13.5px;
  padding:13px 26px; border-radius:4px; letter-spacing:0.02em;
  transition:.2s; white-space:nowrap;
}
.cabinet-btn:hover{ background:var(--red); }

/* ---------- Секции ---------- */
section{ padding:110px 0; position:relative; }
section.pad-sm{ padding:76px 0; }
.sec-blue{ background:var(--blue); color:#fff; }
.sec-deep{ background:var(--blue-deep); color:#fff; }
.sec-paper{ background:var(--paper); }
.sec-blue .muted, .sec-deep .muted{ color:var(--muted-on-dark); }
.muted{ color:var(--muted); }

/* Заголовок-плашка в стиле брендбука */
.eyebrow{
  display:inline-block; font-family:var(--sans);
  font-size:11.5px; font-weight:800; letter-spacing:0.16em;
  text-transform:uppercase; color:var(--red);
  padding-left:14px; border-left:4px solid var(--red); margin-bottom:20px;
}
.sec-blue .eyebrow, .sec-deep .eyebrow, .hero .eyebrow{
  color:#fff; border-left-color:var(--red);
}
.lede{ font-size:19px; line-height:1.6; }

.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:start; }
.grid-2.wide-left{ grid-template-columns:1.15fr 0.85fr; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }

/* ---------- Карточки ---------- */
.card{
  background:#fff; border:1px solid var(--line); border-radius:6px;
  padding:30px 26px; position:relative; overflow:hidden;
  transition:box-shadow .22s, transform .22s;
}
.card::before{
  content:""; position:absolute; left:0; top:0; bottom:0; width:4px;
  background:var(--blue);
}
.card.accent-red::before{ background:var(--red); }
.card:hover{ box-shadow:0 10px 30px rgba(13,60,126,0.10); transform:translateY(-2px); }
.card h3{ margin-bottom:10px; }
.card p{ font-size:14.5px; color:var(--muted); margin:0; }
.sec-blue .card, .sec-deep .card{
  background:rgba(255,255,255,0.07); border-color:var(--line-on-dark); color:#fff;
}
.sec-blue .card p, .sec-deep .card p{ color:var(--muted-on-dark); }

/* ---------- Кнопки ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-weight:700; font-size:14.5px; padding:16px 34px; border-radius:4px;
  border:2px solid transparent; transition:.2s; letter-spacing:0.01em;
}
.btn-red{ background:var(--red); color:#fff; }
.btn-red:hover{ background:var(--red-dark); }
.btn-blue{ background:var(--blue); color:#fff; }
.btn-blue:hover{ background:var(--blue-deep); }
.btn-ghost{ border-color:currentColor; color:inherit; }
.btn-ghost:hover{ background:rgba(255,255,255,0.12); }
.btn-ghost-dark{ border-color:var(--blue); color:var(--blue); }
.btn-ghost-dark:hover{ background:var(--blue); color:#fff; }

/* ---------- Hero ---------- */
.hero{
  min-height:640px; display:flex; align-items:center;
  color:#fff; position:relative; overflow:hidden; padding:160px 0 90px;
}
.hero .bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(100deg, rgba(13,60,126,0.93) 0%, rgba(18,77,157,0.80) 48%, rgba(18,77,157,0.30) 100%);
}
.hero .wrap{ position:relative; z-index:2; }

/* ---------- Статистика ---------- */
.stat .num{
  font-family:var(--display); font-weight:600; font-size:44px;
  line-height:1; color:var(--blue);
}
.stat .num em{ font-style:normal; color:var(--red); }
.stat .lbl{ font-size:13px; color:var(--muted); margin-top:10px; line-height:1.45; }
.sec-blue .stat .num, .sec-deep .stat .num{ color:#fff; }
.sec-blue .stat .num em, .sec-deep .stat .num em{ color:#ff8f93; }
.sec-blue .stat .lbl, .sec-deep .stat .lbl{ color:var(--muted-on-dark); }

/* ---------- Нумерованные блоки ---------- */
.numbered{ display:flex; gap:20px; align-items:flex-start; }
.numbered .n{
  font-family:var(--display); font-size:34px; font-weight:600;
  color:var(--blue); opacity:.28; line-height:1; min-width:52px;
}
.sec-blue .numbered .n, .sec-deep .numbered .n{ color:#fff; opacity:.35; }
.numbered h3{ margin-bottom:8px; }
.numbered p{ font-size:14.5px; color:var(--muted); margin:0; }
.sec-blue .numbered p, .sec-deep .numbered p{ color:var(--muted-on-dark); }

/* ---------- Сценарий (страница платформы) ---------- */
.scenario{
  background:#fff; border:1px solid var(--line); border-radius:6px;
  padding:34px 32px; height:100%;
}
.scenario .tagline{
  display:inline-block; font-size:11px; font-weight:800; letter-spacing:0.12em;
  text-transform:uppercase; color:var(--blue); background:var(--paper-2);
  padding:6px 12px; border-radius:3px; margin-bottom:16px;
}
.scenario h3{ font-size:21px; margin-bottom:12px; }
.scenario > p{ font-size:15px; color:var(--muted); }
.chain{ list-style:none; margin:18px 0 0; padding:0; }
.chain li{
  font-size:13.5px; padding:9px 0 9px 26px; position:relative;
  border-top:1px solid var(--line); color:var(--ink);
}
.chain li::before{
  content:"→"; position:absolute; left:0; color:var(--red); font-weight:700;
}

figure.shot{ margin:0; border:1px solid var(--line); border-radius:6px; overflow:hidden; background:#fff; }
figure.shot img{ width:100%; }
figure.shot figcaption{ font-size:12.5px; color:var(--muted); padding:14px 18px; border-top:1px solid var(--line); }

/* ---------- Цитата ---------- */
.quote{
  border-left:4px solid var(--red); padding:8px 0 8px 28px;
  font-size:19px; line-height:1.55; font-style:italic;
}
.quote .author{
  display:block; font-style:normal; font-size:13.5px; margin-top:16px;
  color:var(--muted-on-dark); font-weight:600;
}

/* ---------- Футер ---------- */
footer{ background:var(--blue-deep); color:#fff; padding:56px 0 40px; }
footer .row{ display:flex; justify-content:space-between; gap:40px; flex-wrap:wrap; }
footer a{ color:var(--muted-on-dark); font-size:14px; }
footer a:hover{ color:#fff; }
footer .brand{ margin-bottom:16px; }
footer .brand img{ height:52px; }
footer .brand .txt{ color:#fff; }
footer .brand .txt span{ color:var(--muted-on-dark); }
footer .col-ttl{ font-family:var(--display); text-transform:uppercase; font-size:13px; margin-bottom:14px; letter-spacing:0.03em; }
footer .col-links{ display:grid; gap:9px; }
footer .about{ font-size:13.5px; color:var(--muted-on-dark); margin:0; max-width:380px; }
.fnote{ font-size:12.5px; color:var(--muted-on-dark); margin-top:36px;
  padding-top:24px; border-top:1px solid var(--line-on-dark); }

/* ---------- Страница 404 ---------- */
.center-page{
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  text-align:center; background:var(--blue-deep); color:#fff; padding:60px 20px;
}
.center-page .code{ font-family:var(--display); font-size:96px; line-height:1; color:#fff; opacity:.35; }

@media (max-width:900px){
  .grid-2,.grid-2.wide-left,.grid-3{ grid-template-columns:1fr; gap:32px; }
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  section{ padding:72px 0; }
  .wrap,.topnav .bar{ padding:0 18px; }

  /* Шапка: компактный бренд + меню второй строкой */
  .topnav .bar{ min-height:0; padding-top:12px; padding-bottom:0; flex-wrap:wrap; gap:12px; }
  .brand img{ height:36px; }
  .brand .txt{ font-size:11.5px; line-height:1.2; max-width:210px; }
  .brand .txt span{ font-size:10.5px; }
  .cabinet-btn{ padding:11px 16px; font-size:12.5px; }
  .navlinks{
    order:3; width:100%; margin-top:10px; gap:0;
    border-top:1px solid var(--line); overflow-x:auto;
  }
  .navlinks a{ padding:12px 14px; font-size:13.5px; white-space:nowrap; border-radius:0; }
  .navlinks a.active{ box-shadow:inset 0 -3px 0 var(--red); }

  .hero{ padding-top:190px; min-height:auto; }
  h1{ font-size:30px; }
  .lede{ font-size:16.5px; }
  .stat .num{ font-size:34px; }
  footer .brand img{ height:44px; }
}
@media (max-width:420px){
  .grid-4{ grid-template-columns:1fr; }
  .brand .txt{ font-size:11px; max-width:205px; }
  .brand .txt span{ font-size:10px; }
}
