/* ============ Медпси-Фест · общие стили ============ */
:root{
  --ink:#17275c;          /* тёмно-синий текст */
  --blue:#2a4b9b;         /* синий логотипа */
  --cyan:#2fb4cf;         /* бирюза логотипа */
  --sky:#eef6fa;          /* светлая подложка */
  --line:#d8e6ee;         /* тонкие линии */
  --white:#ffffff;
  --grad:linear-gradient(115deg,#2a4b9b 0%,#2fb4cf 100%);
  --radius:22px;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Inter',system-ui,sans-serif;
  color:var(--ink);
  background:var(--white);
  line-height:1.6;
  font-size:17px;
}
img{max-width:100%;display:block}
a{color:var(--blue)}
h1,h2,h3{font-family:'Unbounded',sans-serif;line-height:1.15;font-weight:600}
h1{font-size:clamp(1.9rem,4.5vw,3.3rem);letter-spacing:-.01em}
h2{font-size:clamp(1.45rem,3vw,2.2rem);margin-bottom:.6em}
h3{font-size:1.12rem;margin-bottom:.4em}
p+p{margin-top:.8em}
.wrap{max-width:1100px;margin:0 auto;padding:0 22px}
section{padding:72px 0}

/* ---------- Шапка ---------- */
header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.92);backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav{display:flex;align-items:center;gap:28px;height:84px;position:relative}

/* верхняя служебная полоса */
.topbar{background:var(--sky);border-bottom:1px solid var(--line);font-size:.78rem}
.topbar .wrap{display:flex;flex-wrap:wrap;gap:8px 40px;align-items:center;padding-top:8px;padding-bottom:8px}
.topbar .org,.topbar .support-top{display:flex;align-items:center;gap:10px;color:#5a6f97;line-height:1}
.topbar .org span,.topbar .support-top span{letter-spacing:.04em;text-transform:uppercase;font-weight:600;font-size:.7rem}
.topbar img{height:30px;width:auto;flex-shrink:0}
.topbar .org img{border-radius:5px}
@media(max-width:700px){
  .topbar .wrap{gap:8px 22px}
  .topbar img{height:24px}
  .topbar .org span,.topbar .support-top span{font-size:.62rem}
}
.nav .logo img{height:64px;width:auto}

.nav nav{display:flex;gap:26px;margin-left:auto;align-items:center}
.nav nav a{
  text-decoration:none;color:var(--ink);font-weight:500;font-size:.95rem;
  padding:6px 2px;border-bottom:2px solid transparent;
}
.nav nav a:hover{border-color:var(--cyan)}
.nav nav a.active{border-color:var(--blue)}
.btn{
  display:inline-block;background:var(--grad);color:#fff;text-decoration:none;
  font-weight:600;font-size:.98rem;padding:13px 26px;border-radius:999px;
  box-shadow:0 6px 18px rgba(42,75,155,.25);transition:transform .15s;
}
.btn:hover{transform:translateY(-2px)}
.btn.ghost{
  background:none;color:var(--blue);box-shadow:none;
  border:2px solid var(--blue);padding:11px 24px;
}
.nav .btn{margin-left:18px;padding:10px 22px;font-size:.9rem;white-space:nowrap}

/* мобильное меню */
.burger{display:none;background:none;border:0;cursor:pointer;margin-left:auto;padding:8px}
.burger span{display:block;width:24px;height:2.5px;background:var(--ink);margin:5px 0;border-radius:2px}
@media(max-width:1050px){.nav nav{gap:18px;font-size:.9rem}}
@media(max-width:930px){
  .nav nav{
    display:none;position:absolute;top:84px;left:-22px;right:-22px;
    background:#fff;flex-direction:column;gap:0;border-bottom:1px solid var(--line);
    padding:10px 22px 18px;
  }
  .nav nav.open{display:flex}
  .nav nav a{padding:12px 0;border-bottom:1px solid var(--line)}
  .nav nav a.active{border-color:var(--blue)}
  .burger{display:block}
  .nav .btn{display:none}
}

/* ---------- Герой ---------- */
.hero{position:relative;overflow:hidden;background:var(--sky);padding:88px 0 76px}
.hero-mark{
  position:absolute;right:-30px;top:50%;transform:translateY(-50%);
  width:min(44vw,540px);opacity:.12;pointer-events:none;user-select:none;
}
@media(max-width:900px){.hero-mark{display:none}}
.hero .loop{position:absolute;right:-140px;top:-90px;width:520px;opacity:.5;pointer-events:none}
.hero h1{max-width:18ch;margin-bottom:18px}
.hero .meta{font-weight:600;color:var(--blue);margin-bottom:10px;font-size:1.02rem}
.hero .tagline{
  font-family:'Unbounded',sans-serif;font-weight:500;
  font-size:clamp(1.1rem,2.1vw,1.5rem);line-height:1.25;max-width:22ch;
  background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;
  margin-bottom:4px;
}
.hero h1{max-width:15ch}
.hero .lead{max-width:56ch;margin:22px 0 30px;font-size:1.08rem}
.hero .cta{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:38px}
.support{display:flex;align-items:center;gap:12px;font-size:.92rem;color:var(--blue)}
.support img{height:40px;width:auto}
.support img.crmp{border-radius:8px}
.support-row{display:flex;flex-wrap:wrap;gap:14px 40px}

/* ---------- Цифры ---------- */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:-38px;position:relative;z-index:2}
.stat{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:26px 24px;text-align:left;
}
.stat b{
  font-family:'Unbounded';font-size:1.9rem;font-weight:700;display:block;
  background:var(--grad);-webkit-background-clip:text;background-clip:text;color:transparent;
}
.stat span{font-size:.95rem}
@media(max-width:700px){.stats{grid-template-columns:1fr}}

/* ---------- Карточки ---------- */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:28px 26px;
}
.card.tint{background:var(--sky);border-color:transparent}
.card .tag{
  display:inline-block;font-size:.78rem;font-weight:600;color:var(--cyan);
  border:1.5px solid var(--cyan);border-radius:999px;padding:3px 12px;margin-bottom:14px;
}
.card ul{margin:12px 0 0 0;list-style:none}
.card ul li{padding-left:24px;position:relative;margin-top:8px}
.card ul li::before{
  content:'';position:absolute;left:0;top:9px;width:12px;height:6px;
  border:2.5px solid var(--cyan);border-top:0;border-right:0;transform:rotate(-45deg);
}
@media(max-width:860px){.cards{grid-template-columns:1fr}}

/* ---------- Разделитель-петля ---------- */
.divider{display:flex;justify-content:center;padding:8px 0}
.divider svg{width:120px;height:32px}

/* ---------- Секции ---------- */
.section-alt{background:var(--sky)}
.section-head{max-width:62ch;margin-bottom:40px}
.section-head p{margin-top:10px}

/* пресс-конференция */
.press{
  background:var(--grad);color:#fff;border-radius:var(--radius);
  padding:44px 40px;display:flex;flex-wrap:wrap;gap:26px;align-items:center;
}
.press h2{color:#fff}
.press p{max-width:58ch}
.press .btn{background:#fff;color:var(--blue);box-shadow:none}
.press > div{flex:1 1 420px}
.press-photo{width:230px;height:280px;object-fit:cover;object-position:top;border-radius:18px;box-shadow:0 10px 30px rgba(0,0,0,.2)}
@media(max-width:560px){.press-photo{width:100%;height:auto;max-height:420px}}

/* пустой блок секций */
.placeholder{
  border:2px dashed var(--line);border-radius:var(--radius);
  padding:44px 30px;text-align:center;color:#5a6f97;background:#fff;
}

/* сетка логотипов-заглушек */
.logo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.logo-grid div{
  border:2px dashed var(--line);border-radius:16px;height:90px;background:#fff;
}
@media(max-width:700px){.logo-grid{grid-template-columns:repeat(2,1fr)}}

/* контакты */
.contact-card{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:30px;max-width:560px;
}
.contact-card dl{display:grid;grid-template-columns:110px 1fr;gap:12px 18px}
.contact-card dt{font-size:.82rem;font-weight:600;color:var(--cyan);padding-top:2px}
.contact-card dd a{text-decoration:none;border-bottom:1px solid var(--line)}
.contact-card dd a:hover{border-color:var(--blue)}
.contact-card .role{color:#5a6f97;font-size:.92rem}
.contact-card .lead-sm{margin-bottom:22px;color:#5a6f97}
@media(max-width:520px){.contact-card dl{grid-template-columns:1fr;gap:2px}
.contact-card dt{margin-top:14px}}
.map-placeholder{
  margin-top:26px;border-radius:var(--radius);border:2px dashed var(--line);
  height:260px;display:flex;align-items:center;justify-content:center;color:#5a6f97;background:var(--sky);
}

/* призыв внизу страниц */
.cta-band{background:var(--sky);text-align:left}
.cta-band .inner{display:flex;flex-wrap:wrap;gap:24px;align-items:center;justify-content:space-between}
.cta-band p{max-width:52ch}

/* ---------- Подвал ---------- */
footer{border-top:1px solid var(--line);padding:34px 0;font-size:.92rem}
footer .wrap{display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:space-between}
footer .foot-logos{display:flex;align-items:center;gap:20px}
footer .foot-logos img{height:34px;width:auto}
footer a{color:var(--blue)}

/* доступность и движение */
:focus-visible{outline:3px solid var(--cyan);outline-offset:2px}
@media (prefers-reduced-motion: reduce){
  *{transition:none!important;scroll-behavior:auto}
}

/* ---------- Расписание дня ---------- */
.sched{max-width:760px}
.sched .row{
  display:grid;grid-template-columns:150px 1fr;gap:18px;
  padding:16px 0;border-bottom:1px solid var(--line);
}
.sched .row:last-child{border-bottom:0}
.sched time{font-family:'Unbounded';font-weight:600;color:var(--blue);font-size:.95rem}
@media(max-width:560px){.sched .row{grid-template-columns:1fr;gap:4px}}

/* темы лекций */
.themes{margin:14px 0 0;list-style:none}
.themes li{padding:9px 0 9px 26px;position:relative;border-bottom:1px solid var(--line)}
.themes li:last-child{border-bottom:0}
.themes li::before{
  content:'';position:absolute;left:0;top:16px;width:10px;height:10px;
  border-radius:50%;background:var(--grad);
}
.note{font-size:.92rem;color:#5a6f97;margin-top:18px}

/* ---------- Всплывающее уведомление ---------- */
#notice{
  position:fixed;left:50%;bottom:26px;transform:translate(-50%,24px);
  background:var(--ink);color:#fff;padding:14px 22px;border-radius:14px;
  font-size:.95rem;max-width:min(440px,calc(100vw - 32px));text-align:center;
  box-shadow:0 12px 34px rgba(23,39,92,.35);
  opacity:0;visibility:hidden;transition:opacity .22s,transform .22s,visibility .22s;
  z-index:100;
}
#notice.show{opacity:1;visibility:visible;transform:translate(-50%,0)}
