/* ===== НОМУС · Студенческая научная деятельность ДВГМУ ===== */
:root {
  --blue: #1c5cb8;
  --blue-dark: #0e3f8f;
  --blue-deep: #123c7e;
  --ink: #1a2b4a;
  --muted: #5a6b85;
  --bg-soft: #eef4fc;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(18, 60, 126, .09);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Onest', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.55;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.hand { font-family: 'Caveat', cursive; color: var(--blue-dark); }
img { max-width: 100%; display: block; }
a { color: var(--blue); }

/* ===== Шапка ===== */
.topbar { background: #fff; border-bottom: 1px solid #e3ecf7; position: sticky; top: 0; z-index: 50; }
.topbar-in { display: flex; align-items: center; gap: 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-logo {
  font-weight: 800; font-size: 22px; color: #fff; background: var(--blue-dark);
  padding: 8px 10px; border-radius: 6px; letter-spacing: .5px;
}
.brand-name { font-size: 10px; line-height: 1.25; color: var(--blue-dark); text-transform: uppercase; letter-spacing: .4px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; white-space: nowrap;
  padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav a:hover, .nav a:focus-visible { color: var(--blue); border-color: var(--blue); }
.nav a.active { color: var(--blue); border-color: var(--blue); }
.search-ic { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--blue-dark); border-radius: 50%; transition: background .2s; }
.search-ic:hover, .search-ic:focus-visible { background: var(--bg-soft); }
.search-ic svg { width: 21px; height: 21px; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 24px; height: 2.5px; background: var(--blue-dark); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== Хлебные крошки ===== */
.crumbs { padding-top: 18px; padding-bottom: 6px; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--blue); text-decoration: underline; }
.crumb-sep { color: #b7c6dd; }
.crumb-cur { color: var(--ink); font-weight: 500; }
.crumb-cur::before { content: "/"; color: #b7c6dd; margin-right: 8px; font-weight: 400; }

/* ===== Hero ===== */
.hero { padding: 18px 0 40px; background: linear-gradient(180deg, #f6fafe 0%, #fff 100%); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; position: relative; }
.hero h1 { font-size: 46px; line-height: 1.08; font-weight: 800; color: var(--blue-deep); letter-spacing: -.5px; }
.hero-sub { font-size: 22px; font-weight: 600; color: var(--ink); margin: 18px 0 14px; line-height: 1.3; }
.hero-desc { color: var(--muted); font-size: 16px; max-width: 46ch; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
  background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; font-size: 16.5px;
  padding: 14px 26px; border-radius: 40px; border: 0; cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 8px 20px rgba(28, 92, 184, .28);
}
.btn svg { width: 19px; height: 19px; transition: transform .2s; }
.btn:hover, .btn:focus-visible { background: var(--blue-dark); transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.hero-note { margin-top: 26px; font-size: 26px; line-height: 1.15; transform: rotate(-2deg); }
.hero-photo { position: relative; }
.hero-photo img { border-radius: 24px; width: 100%; height: 370px; object-fit: cover; box-shadow: 0 18px 50px rgba(18, 60, 126, .18); }
.hero-note2 {
  position: absolute; top: 14px; right: -8px; font-size: 25px; line-height: 1.05;
  text-align: center; transform: rotate(4deg);
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.stat {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 24px; display: grid; grid-template-columns: 44px auto 1fr; align-items: center; gap: 14px;
}
.stat-ic { width: 40px; height: 40px; color: var(--blue); }
.stat-n { font-size: 34px; font-weight: 800; color: var(--blue-deep); white-space: nowrap; }
.stat-t { font-size: 13px; line-height: 1.3; color: var(--muted); font-weight: 500; }

/* ===== Секции ===== */
.section { padding: 38px 0; }
.section-blue { background: var(--bg-soft); }
h2 { font-size: 32px; font-weight: 800; color: var(--blue-deep); letter-spacing: -.3px; }
.section-sub { color: var(--muted); margin-top: 8px; font-size: 16.5px; }

/* Что значит заниматься наукой */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.feat {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  font-size: 14.5px; line-height: 1.35; font-weight: 500; transition: transform .2s, box-shadow .2s;
}
.feat:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(18, 60, 126, .14); }
.feat svg { width: 38px; height: 38px; color: var(--blue); }
.feat-wide { grid-row: span 2; background: var(--blue); color: #fff; justify-content: center; font-size: 15.5px; font-weight: 400; }
.feat-wide svg { color: #fff; width: 42px; height: 42px; }
.feat-wide b { display: block; margin-bottom: 6px; font-size: 16.5px; }

/* С чего начать */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.step {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; position: relative;
}
.step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.step-head b { font-size: 17.5px; line-height: 1.25; color: var(--blue-deep); }
.step-n {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 21px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step p { color: var(--muted); font-size: 14.5px; }
.step-arrow { position: absolute; right: -22px; top: 50%; width: 28px; height: 28px; color: #9db8dd; transform: translateY(-50%); z-index: 2; }
.qr-card {
  grid-column: span 3; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 28px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
}
.qr-card h3 { font-size: 19px; color: var(--blue-deep); font-weight: 700; }
.qr-card p { color: var(--muted); font-size: 14.5px; max-width: 40ch; }
.qr-row { display: flex; gap: 26px; margin-left: auto; }
.qr-item { display: flex; align-items: center; gap: 12px; }
.qr-item img { width: 92px; height: 92px; border-radius: 12px; box-shadow: 0 3px 12px rgba(18,60,126,.12); }
.qr-item span { font-size: 12.5px; line-height: 1.25; color: var(--muted); font-weight: 500; }

/* блок «Написать в НОМУС» (вместо QR-кодов) */
.contact-card { display: block; min-width: 0; }
.contact-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.contact-row select { flex: 1 1 240px; min-width: 0; padding: 11px 14px; border: 1.5px solid #c9d8ec; border-radius: 12px; font: inherit; font-size: 14.5px; background: #fff; color: var(--ink); }
.contact-row select:focus { outline: 3px solid rgba(28, 92, 184, .18); border-color: var(--blue); }
.contact-card .contact-btn { margin-top: 0; flex: 0 0 auto; font-size: 15px; padding: 11px 20px; }
.contact-card .contact-btn svg { width: 18px; height: 18px; }
@media (max-width: 720px) { .contact-row select { flex: 1 1 100%; } }

/* Твой путь */
.path-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.path {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 20px; position: relative;
}
.path-ic { width: 36px; height: 36px; color: var(--blue); margin-bottom: 12px; }
.path-title b { display: block; font-size: 18px; color: var(--blue-deep); }
.path-title span { font-size: 14px; color: var(--ink); font-weight: 600; }
.path ul { list-style: none; margin-top: 14px; }
.path li { font-size: 14px; color: var(--muted); padding: 4px 0 4px 18px; position: relative; }
.path li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.path-arrow { position: absolute; right: -22px; top: 40px; width: 28px; height: 28px; color: #9db8dd; z-index: 2; }

/* Направления */
.dir-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.dir-all {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600;
  color: var(--blue); text-decoration: none; white-space: nowrap;
}
.dir-all svg { width: 17px; height: 17px; transition: transform .2s; }
.dir-all:hover svg, .dir-all:focus-visible svg { transform: translateX(3px); }
.dir-all:hover { text-decoration: underline; }
.dir-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.dir-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.dir-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(18, 60, 126, .16); }
.dir-card img { width: 100%; height: 170px; object-fit: cover; }
.dir-body { padding: 16px 18px 20px; }
.dir-body b { display: block; font-size: 16.5px; color: var(--blue-deep); margin-bottom: 4px; }
.dir-body span { font-size: 13.5px; color: var(--muted); line-height: 1.35; }

/* Научные школы и проблемные комиссии */
.dir-sub { margin-top: 34px; font-size: 22px; font-weight: 800; color: var(--blue-dark); }
.school-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.school-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px; border-left: 4px solid var(--blue);
  transition: transform .2s, box-shadow .2s;
}
.school-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(18, 60, 126, .14); }
.school-card b { display: block; font-size: 15.5px; line-height: 1.3; color: var(--blue-deep); margin-bottom: 6px; }
.school-card span { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.src-note { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.src-note a { color: var(--blue); font-weight: 600; }
.src-note a:hover { text-decoration: underline; }

/* ===== Страница «Школа молодого учёного» ===== */
.section-soft { background: var(--bg-soft); }
.sec-title { font-size: 32px; font-weight: 800; color: var(--blue-deep); letter-spacing: -.3px; }
.sec-sub { color: var(--muted); margin-top: 8px; font-size: 16.5px; max-width: 62ch; }
.feat-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  font-size: 14.5px; line-height: 1.35; transition: transform .2s, box-shadow .2s;
}
.feat-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(18, 60, 126, .14); }
.feat-card p { color: var(--muted); }
.feat-card p b { color: var(--blue-deep); }
.feat-ic { width: 38px; height: 38px; color: var(--blue); }
.feat-card.feat-wide { grid-column: 1 / -1; background: var(--blue); flex-direction: row; align-items: center; gap: 20px; }
.feat-card.feat-wide p { color: #fff; opacity: .92; }
.feat-card.feat-wide p b { color: #fff; opacity: 1; }
.step-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; display: flex; gap: 16px; align-items: flex-start;
}
.step-num {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 21px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step-card h4 { font-size: 17px; line-height: 1.25; color: var(--blue-deep); margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 14.5px; }
.qr-text h3 { font-size: 22px; color: var(--blue-deep); font-weight: 800; margin-bottom: 10px; }
.qr-text p { color: var(--muted); font-size: 15px; max-width: 56ch; margin-bottom: 18px; }
.cta-back { margin-top: 16px; }
.cta-back a { color: #fff; font-size: 14px; opacity: .85; }
.cta-back a:hover { opacity: 1; text-decoration: underline; }


/* FAQ + CTA */
.faq-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; align-items: start; }
.faq { margin-top: 22px; }
.faq-item { border-bottom: 1px solid #dde7f4; }
.faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 4px; font-family: inherit; font-size: 16.5px; font-weight: 600; color: var(--ink);
  transition: color .2s;
}
.faq-q:hover, .faq-q:focus-visible { color: var(--blue); outline: none; }
.faq-q:focus-visible { box-shadow: 0 0 0 3px rgba(28,92,184,.25); border-radius: 8px; }
.faq-plus { position: relative; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--blue); transition: transform .25s, background .25s; }
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; background: var(--blue); border-radius: 2px;
  top: 50%; left: 50%; transition: background .25s;
}
.faq-plus::before { width: 12px; height: 2.5px; transform: translate(-50%, -50%); }
.faq-plus::after { width: 2.5px; height: 12px; transform: translate(-50%, -50%); }
.faq-item.open .faq-plus { transform: rotate(45deg); background: var(--blue); }
.faq-item.open .faq-plus::before, .faq-item.open .faq-plus::after { background: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 4px 18px; color: var(--muted); font-size: 15px; max-width: 65ch; }
.quote-card {
  margin-top: 26px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 30px; display: flex; gap: 18px; align-items: flex-start;
}
.quote-mark { width: 40px; height: 40px; color: var(--blue); flex-shrink: 0; opacity: .85; }
.quote-card p { font-size: 27px; line-height: 1.15; transform: rotate(-1.5deg); }
.cta-card {
  background: var(--blue); border-radius: 22px; overflow: hidden; color: #fff;
  display: flex; flex-direction: column; box-shadow: 0 16px 44px rgba(18, 60, 126, .28);
  position: sticky; top: 90px;
}
.cta-body { padding: 30px 30px 26px; }
.cta-body h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.cta-body p { font-size: 15px; opacity: .92; }
.btn-light { background: #fff; color: var(--blue-dark); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn-light:hover, .btn-light:focus-visible { background: #eef4fc; }
.cta-img { width: 100%; height: 240px; object-fit: cover; }

/* ===== Подвал ===== */
.footer { padding: 28px 0 36px; border-top: 1px solid #e3ecf7; background: #fff; }
.foot-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.foot-item {
  min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  text-decoration: none; color: var(--ink); font-size: 13.5px; font-weight: 600; padding: 12px 6px;
  border-radius: 14px; transition: background .2s, transform .2s;
}
.foot-item svg { width: 34px; height: 34px; color: var(--blue); }
.foot-item:hover, .foot-item:focus-visible { background: var(--bg-soft); transform: translateY(-3px); }
.foot-note { text-align: right; font-size: 28px; line-height: 1.1; margin-top: 18px; transform: rotate(-2deg); }

/* ===== Адаптив ===== */
@media (max-width: 1024px) {
  .nav { position: fixed; inset: 66px 0 auto 0; background: #fff; flex-direction: column; gap: 0;
         padding: 10px 20px 20px; border-bottom: 1px solid #e3ecf7; box-shadow: 0 20px 40px rgba(18,60,126,.12);
         display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 4px; font-size: 16px; border-bottom: 1px solid #eef2f9; }
  .burger { display: flex; margin-left: auto; }
  .search-ic { margin-left: auto; }
  .burger { margin-left: 0; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-photo img { height: 340px; }
  .hero h1 { font-size: 38px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .feat-wide { grid-column: span 3; grid-row: auto; }
  .steps-grid { grid-template-columns: 1fr; }
  .qr-card { grid-column: span 1; }
  .step-arrow { display: none; }
  .path-grid { grid-template-columns: 1fr 1fr; }
  .path-arrow { display: none; }
  .faq-wrap { grid-template-columns: 1fr; }
  .cta-card { position: static; }
  .school-grid { grid-template-columns: 1fr 1fr; }
  .step-card { flex-direction: row; }
}
@media (max-width: 700px) {
  .hero { padding-top: 16px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 19px; }
  .hero-photo img { height: 260px; }
  .hero-note2 { font-size: 20px; right: 6px; }
  .stats { grid-template-columns: 1fr; }
  .stat { grid-template-columns: 44px auto; }
  .stat-t { grid-column: 2; }
  h2 { font-size: 25px; }
  .section { padding: 44px 0; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .feat-wide { grid-column: span 2; }
  .dir-grid { grid-template-columns: 1fr; }
  .school-grid { grid-template-columns: 1fr; }
  .sec-title { font-size: 25px; }
  .path-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-note { text-align: center; }
  .qr-row { margin-left: 0; flex-wrap: wrap; }
  .quote-card p { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ===== НОВЫЕ БЛОКИ: мероприятия, заседания СНК, достижения, модалка, формы ===== */

/* --- мероприятия --- */
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.event-card { background: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); border-left: 4px solid var(--blue); display: flex; flex-direction: column; gap: 8px; transition: transform .2s, box-shadow .2s; }
.event-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(14, 63, 143, .14); }
.event-date { font-size: 13px; font-weight: 800; color: var(--blue); letter-spacing: .03em; }
.event-title { margin: 0; font-size: 17px; line-height: 1.35; color: var(--blue-deep); }
.event-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.event-links a { font-size: 14px; color: var(--blue); font-weight: 600; }
.event-files { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.event-file { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--muted); text-decoration: none; }
.event-file:hover { color: var(--blue); }
.event-file svg { width: 16px; height: 16px; flex: 0 0 16px; }

/* --- заседания СНК --- */
.snk-list { display: flex; flex-direction: column; gap: 10px; }
.snk-item { display: flex; gap: 18px; background: #fff; border-radius: 14px; padding: 14px 20px; box-shadow: var(--shadow); }
.snk-when { flex: 0 0 108px; display: flex; flex-direction: column; gap: 2px; color: var(--blue); }
.snk-when b { font-size: 15px; }
.snk-when span { font-size: 13px; font-weight: 600; color: var(--muted); }
.snk-body { display: flex; flex-direction: column; gap: 3px; }
.snk-body b { color: var(--blue-deep); font-size: 15px; }
.snk-place { font-size: 13.5px; color: var(--muted); }
.snk-body p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }

/* --- панель достижений (лента) --- */
.ach-strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-width: thin; scrollbar-color: var(--blue) transparent; }
.ach-strip::-webkit-scrollbar { height: 8px; }
.ach-strip::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 4px; }
.ach-strip::-webkit-scrollbar-track { background: rgba(14, 63, 143, .08); border-radius: 4px; }
.ach-card { flex: 0 0 300px; scroll-snap-align: start; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s; }
.ach-card:hover { transform: translateY(-3px); }
.ach-cover { position: relative; height: 190px; background: #dbe6f4; }
.ach-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ach-badge { position: absolute; right: 10px; bottom: 10px; background: rgba(14, 63, 143, .92); color: #fff; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 14px; }
.ach-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; }
.ach-title { font-size: 15px; line-height: 1.35; color: var(--blue-deep); }
.ach-who { font-size: 13px; font-weight: 600; color: var(--blue); }
.ach-info { margin: 0; font-size: 13.5px; line-height: 1.5; color: #33445e; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ach-files { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.ach-files a { font-size: 12.5px; color: var(--muted); }
.ach-files a:hover { color: var(--blue); }
.ach-empty { align-items: center; text-align: center; padding: 30px 24px; gap: 10px; }
.ach-empty-ic svg { width: 54px; height: 54px; color: var(--blue); }
.ach-empty b { font-size: 17px; color: var(--blue-deep); }
.ach-empty p { margin: 0; font-size: 14px; color: var(--muted); }

/* --- модальное окно (состав НОМУС) --- */
.modal { position: fixed; inset: 0; background: rgba(10, 30, 66, .55); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 100; }
.modal.open { display: flex; }
.modal-box { position: relative; background: #fff; border-radius: 20px; padding: 30px 34px; max-width: 620px; width: 100%; max-height: 84vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(10, 30, 66, .35); }
.modal-box h3 { margin: 0 0 16px; font-size: 22px; color: var(--blue-deep); }
.modal-x { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-x:hover { color: var(--blue-deep); }
.modal-empty { color: var(--muted); }
.sostav-list { display: flex; flex-direction: column; gap: 12px; }
/* карточка члена совета: аватар с инициалами + текст, без «табличных» линий */
.sostav-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid #e2eaf6; border-radius: 14px;
  padding: 12px 14px; box-shadow: 0 2px 10px rgba(18, 60, 126, .05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.sostav-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(18, 60, 126, .13);
  border-color: #c3d6f0;
}
.sostav-ava {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .5px;
  box-shadow: 0 3px 8px rgba(18, 60, 126, .25);
}
.sostav-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sostav-txt > b { font-size: 15px; color: var(--blue-deep); line-height: 1.3; }
.sostav-rank {
  align-self: flex-start; background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .5px;
}
.sostav-role { font-size: 13px; color: var(--muted); line-height: 1.45; }
.sostav-chip {
  align-self: flex-start; background: var(--bg-soft); color: var(--blue-dark);
  font-size: 12.5px; font-weight: 600; padding: 3px 10px;
  border-radius: 999px; line-height: 1.4;
}
.sostav-mail { font-size: 13px; color: var(--blue); text-decoration: none; }
.sostav-mail:hover { text-decoration: underline; }

/* --- кнопка в подвале выглядит как ссылка-карточка --- */
.foot-btn { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; text-align: center; }

/* --- страница «Научная эффективность» --- */
.effect-text { max-width: 820px; font-size: 16.5px; line-height: 1.65; color: #33445e; }
.effect-text b { color: var(--blue-deep); }
.effect-text ul { margin: 10px 0 14px; padding-left: 22px; }
.effect-text li { margin-bottom: 6px; }
.effect-text li::marker { color: var(--blue); }
.effect-cta { margin-top: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* --- форма подачи достижения --- */
.form-wrap { max-width: 640px; }
.form-err { background: #fdeaea; border: 1.5px solid #e89a9a; color: #9c2020; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14.5px; }
.ach-form { display: flex; flex-direction: column; }
.ach-form label { font-weight: 700; font-size: 14.5px; margin: 16px 0 6px; color: var(--blue-deep); }
.ach-form label i { color: #c62828; font-style: normal; }
.ach-form input[type=text], .ach-form input[type=email], .ach-form textarea { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1.5px solid #c9d8ec; border-radius: 12px; font: inherit; font-size: 15px; background: #fff; }
.ach-form input:focus, .ach-form textarea:focus { outline: 3px solid rgba(28, 92, 184, .18); border-color: var(--blue); }
.ach-form input[type=file] { font-size: 14px; }
.ach-form .btn { margin-top: 24px; align-self: flex-start; }
.form-hint { margin: 5px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; width: 0; }
.form-done { text-align: center; padding: 20px 0 10px; }
.form-done svg { width: 74px; height: 74px; color: #1e8e3e; }
.form-done p { max-width: 460px; margin: 0 auto 22px; color: var(--muted); line-height: 1.55; }

@media (max-width: 1024px) {
  .event-grid { grid-template-columns: 1fr 1fr; }
  .ach-card { flex-basis: 270px; }
}
@media (max-width: 700px) {
  .event-grid { grid-template-columns: 1fr; }
  .snk-item { flex-direction: column; gap: 6px; }
  .snk-when { flex-direction: row; gap: 10px; }
  .ach-card { flex-basis: 250px; }
  .ach-cover { height: 160px; }
  .modal-box { padding: 24px 20px; }
}

/* ===== регистрация на мероприятие ===== */
.event-place { font-size: 14px; color: var(--muted); margin-top: -2px; }
.event-reg { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 4px; padding: 9px 16px; background: var(--blue); color: #fff !important; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s; }
.event-reg:hover { background: var(--blue-deep); }
.event-reg svg { width: 16px; height: 16px; }
.event-reg-off { background: #eef3fa; color: var(--muted) !important; cursor: default; }
.sub-reg-note { color: var(--muted); font-size: 13px; }

.event-head { background: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); border-left: 4px solid var(--blue); margin-bottom: 8px; }
.event-head-title { margin: 0 0 6px; font-size: 21px; color: var(--blue-deep); }
.event-head-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--muted); }
.event-head-descr { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink); }

.ach-form select { width: 100%; box-sizing: border-box; padding: 11px 14px; border: 1.5px solid #c9d8ec; border-radius: 12px; font: inherit; font-size: 15px; background: #fff; }
.ach-form select:focus { outline: 3px solid rgba(28, 92, 184, .18); border-color: var(--blue); }
.kurs-row { display: flex; flex-wrap: wrap; gap: 8px; }
.kurs-item { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid #c9d8ec; border-radius: 999px; font-weight: 600 !important; font-size: 14.5px !important; margin: 0 !important; cursor: pointer; background: #fff; }
.kurs-item:has(input:checked) { border-color: var(--blue); background: #e8f0fc; color: var(--blue-deep); }
.form-consent { margin: 18px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ===== быстрые разделы под баннером — компактные кнопки в одну строку ===== */
.quick-nav { padding-top: 12px; padding-bottom: 4px; }
.quick-nav .wrap { padding: 0 10px; } /* кнопки в одну строку: чуть шире контейнер */
.quick-nav .foot-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.quick-nav .foot-item {
  flex-direction: row; gap: 5px; padding: 5px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; background: #fff;
  box-shadow: var(--shadow); border: 1px solid #e3ecf7;
}
.quick-nav .foot-item svg { width: 12px; height: 12px; }
.quick-nav .foot-btn { text-align: left; }

/* ===== площадки мероприятия ===== */
.event-subs { margin: 2px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.event-head-subs { margin-top: 12px; font-size: 14.5px; }
.event-head-subs ul { margin: 6px 0 0; padding-left: 20px; line-height: 1.6; }

/* ===== состав НОМУС: компактная модалка для длинного списка ===== */
.modal-box-wide { max-width: 880px; display: flex; flex-direction: column; overflow: hidden; }
.modal-head { background: #fff; padding: 0 44px 12px 0; margin: 0 0 10px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; flex: 0 0 auto; }
.modal-head h3 { margin: 0; flex: 0 0 auto; }
.sostav-search { flex: 1; min-width: 200px; padding: 10px 14px; border: 1.5px solid #c9d8ec; border-radius: 12px; font: inherit; font-size: 14.5px; }
.sostav-search:focus { outline: 3px solid rgba(28, 92, 184, .18); border-color: var(--blue); }
.modal-box-wide .sostav-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-right: 6px; align-content: start; }
.sostav-none { grid-column: 1 / -1; color: var(--muted); font-size: 14px; margin: 8px 0; }

@media (max-width: 720px) {
  .modal-box-wide .sostav-list { grid-template-columns: 1fr; }
}

/* ===== карточка официального документа (положение) ===== */
.doc-card { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid #e2eaf6; border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow); margin: 18px 0 26px; }
.doc-ic { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; display: flex; align-items: center; justify-content: center; }
.doc-ic svg { width: 26px; height: 26px; }
.doc-info b { display: block; font-size: 16.5px; color: var(--blue-deep); line-height: 1.35; }
.doc-info p { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.doc-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.doc-actions .btn { margin: 0; }
.doc-src { font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; border-bottom: 1.5px dashed rgba(28,92,184,.45); }
.doc-src:hover { color: var(--blue-dark); border-bottom-color: var(--blue-dark); }

@media (max-width: 640px) {
  .doc-card { flex-direction: column; gap: 14px; padding: 18px; }
}

/* ===== архив программ ШМУ ===== */
.arch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 18px; }
.arch-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid #e2eaf6; border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.arch-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(18, 60, 126, .16); }
.arch-year { align-self: flex-start; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; font-weight: 800; font-size: 14px; padding: 5px 14px; border-radius: 999px; letter-spacing: .02em; }
.arch-name { font-size: 15px; font-weight: 600; color: var(--blue-deep); line-height: 1.4; }
.arch-open { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--blue); }
.arch-open svg { width: 15px; height: 15px; }
.arch-card:hover .arch-open { color: var(--blue-dark); }

/* ===== «богатый» текст из визуального редактора (описания лекций, СНК, мероприятий) ===== */
.rich h3, .rich h4, .rich h5 { color: var(--blue-deep); line-height: 1.3; margin: 12px 0 6px; }
.rich h3 { font-size: 20px; }
.rich h4 { font-size: 17px; }
.rich h5 { font-size: 15px; }
.rich p { margin: 0 0 8px; }
.rich ul, .rich ol { margin: 6px 0 10px; padding-left: 22px; }
.rich li { margin-bottom: 4px; }
.rich li::marker { color: var(--blue); }
.rich a { color: var(--blue); }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.step-text { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.snk-tema { margin-top: 4px; font-size: 14px; line-height: 1.5; }

/* Подпись о согласии в формах и юридическая строка в подвале */
.form-consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.foot-legal {
  margin-top: 30px; padding-top: 16px; border-top: 1px solid #e3ecf7;
  display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
.foot-legal a { color: var(--blue); text-decoration: none; }
.foot-legal a:hover, .foot-legal a:focus-visible { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 700px) {
  .foot-legal { flex-direction: column; align-items: flex-start; gap: 4px; }
}
