/* ==========================================================================
   Рада ректорів закладів вищої освіти Одеського регіону
   Design tokens: Odesa flag palette — red / white / yellow
   ========================================================================== */

:root{
  --red: #C8102E;
  --red-dark: #96081F;
  --red-light: #F7DCDF;
  --yellow: #F7B500;
  --yellow-dark: #C98E00;
  --yellow-light: #FEF3D9;
  --white: #FFFFFF;
  --ink: #1B1B1F;
  --ink-soft: #4A4A52;
  --gray-50: #FAFAFA;
  --gray-100: #F3F3F4;
  --gray-200: #E7E7E9;
  --gray-300: #D3D3D6;
  --shadow-sm: 0 2px 8px rgba(27,27,31,.06);
  --shadow-md: 0 8px 24px rgba(27,27,31,.10);
  --shadow-lg: 0 20px 48px rgba(27,27,31,.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --red-bright: #FF5A6E;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 84px; }
body{
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p{ margin: 0; }
button{ font-family: inherit; cursor: pointer; }
input, select{ font-family: inherit; }
.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }

section{ padding: 88px 0; position: relative; background: linear-gradient(165deg, #ffffff 0%, #fff7ea 55%, #fdeee9 100%); overflow: hidden; }
section.section-alt{ background: linear-gradient(165deg, #fef3d9 0%, #fde3d4 45%, #fbe4e6 100%); }
main > section:not(.hero)::before,
main > section:not(.hero)::after{
  content: ""; position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(6px);
}
main > section:not(.hero)::before{
  width: 560px; height: 560px; background: radial-gradient(circle, rgba(200,16,46,.16) 0%, rgba(200,16,46,0) 70%);
  top: -220px; right: -160px;
}
main > section:not(.hero)::after{
  width: 480px; height: 480px; background: radial-gradient(circle, rgba(247,181,0,.20) 0%, rgba(247,181,0,0) 70%);
  bottom: -180px; left: -140px;
}
section > .container{ position: relative; z-index: 1; }

.section-head{ max-width: 720px; margin: 0 0 48px; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.kicker{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}
.kicker::before{ content: ""; width: 22px; height: 3px; background: var(--yellow); border-radius: 2px; }
.section-title{
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.15;
}
.section-desc{ margin-top: 14px; font-size: 17px; color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; transition: all .2s ease; white-space: nowrap;
}
.btn-primary{ background: var(--red); color: var(--white); }
.btn-primary:hover{ background: var(--red-dark); transform: translateY(-1px); }
.btn-gold{ background: var(--yellow); color: var(--ink); }
.btn-gold:hover{ background: var(--yellow-dark); transform: translateY(-1px); }
.btn-outline{ background: transparent; border-color: currentColor; color: var(--ink); }
.btn-outline:hover{ background: var(--ink); color: var(--white); }
.btn-outline-white{ background: transparent; border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-outline-white:hover{ background: var(--white); color: var(--ink); }
.btn-sm{ padding: 9px 18px; font-size: 13px; }
.btn-block{ width: 100%; }

/* ---------- Avatar fallback (base) ---------- */
.avatar-fallback{ display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }

/* ---------- Scroll progress ---------- */
.scroll-progress{
  position: fixed; top: 0; left: 0; height: 3px; width: 0%; z-index: 1100;
  background: linear-gradient(90deg, var(--red), var(--yellow));
  transition: width .12s linear;
}

/* ---------- Header ---------- */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(120deg, rgba(255,248,238,.97) 0%, rgba(255,255,255,.97) 45%, rgba(253,225,210,.97) 100%);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(27,27,31,.05), 0 6px 18px rgba(27,27,31,.05);
  transition: box-shadow .25s ease;
}
.site-header::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; display: flex;
  background: linear-gradient(90deg, var(--red) 0 33%, var(--white) 33% 66%, var(--yellow) 66% 100%);
  opacity: .85;
}
.site-header.scrolled{ box-shadow: 0 1px 0 rgba(27,27,31,.06), var(--shadow-md); }
.header-inner{ display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand{ display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark{ width: 60px; height: 60px; flex-shrink: 0; object-fit: contain; }
.brand-text{ display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong{ font-size: 14px; font-weight: 800; white-space: nowrap; }
.brand-text span{ font-size: 11px; color: var(--ink-soft); letter-spacing: .03em; white-space: nowrap; }

.main-nav{ display: flex; align-items: center; gap: 2px; }
.main-nav a{
  padding: 10px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  color: var(--ink-soft); transition: all .15s ease; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active{ background: var(--red-light); color: var(--red); }

.nav-more{ position: relative; }
.nav-more-btn{ background: none; border: none; padding: 10px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); display:flex; align-items:center; gap:5px; }
.nav-more-btn:hover{ background: var(--red-light); color: var(--red); }
.nav-more-menu{
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: 8px; min-width: 220px; opacity: 0; visibility: hidden; translate: 0 6px;
  transition: all .18s ease; border: 1px solid var(--gray-200);
}
.nav-more:hover .nav-more-menu, .nav-more:focus-within .nav-more-menu{ opacity: 1; visibility: visible; translate: 0; }
.nav-more-menu a{ display: block; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; color: var(--ink); }
.nav-more-menu a:hover{ background: var(--gray-100); color: var(--red); }

.header-actions{ display: flex; align-items: center; gap: 10px; }
.icon-btn{
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gray-200); background: var(--white);
  display: flex; align-items: center; justify-content: center; color: var(--ink); flex-shrink: 0;
  transition: all .15s ease;
}
.icon-btn:hover{ background: var(--red); color: var(--white); border-color: var(--red); }
.icon-btn svg{ width: 18px; height: 18px; }

.burger{ display: none; width: 40px; height: 40px; border: 1px solid var(--gray-200); border-radius: 10px; background: var(--white); align-items: center; justify-content: center; }
.burger svg{ width: 20px; height: 20px; }

/* ---------- Mobile nav ---------- */
.mobile-nav{
  position: fixed; inset: 0; z-index: 1100; background: var(--white);
  transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
}
.mobile-nav.open{ transform: translateX(0); }
.mobile-nav-head{ display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--gray-200); }
.mobile-nav-close{ width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gray-200); background: none; display:flex; align-items:center; justify-content:center; }
.mobile-nav-close svg{ width: 18px; height: 18px; }
.mobile-nav-list{ padding: 12px; }
.mobile-nav-list a{ display: block; padding: 15px 12px; font-size: 18px; font-weight: 700; border-bottom: 1px solid var(--gray-100); }
.mobile-nav-list .sub-label{ padding: 15px 12px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); font-weight: 700; }

/* ---------- Hero ---------- */
.hero{
  position: relative; min-height: 100vh; display: flex; align-items: flex-end;
  color: var(--white); overflow: hidden; padding-top: 76px;
}
.hero-bg{ position: absolute; inset: 0; z-index: 0; background: var(--ink); overflow: hidden; }
.hero-static{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 65%;
  animation: heroSlowZoom 26s ease-in-out infinite alternate;
}
@keyframes heroSlowZoom{ from{ transform: scale(1); } to{ transform: scale(1.09); } }
.hero-bg::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,8,10,.6) 0%, rgba(15,8,10,.48) 35%, rgba(15,8,10,.86) 100%),
              linear-gradient(90deg, rgba(150,8,31,.6) 0%, rgba(15,8,10,0) 58%);
}
.hero-stripe{ position: absolute; left: 0; right: 0; bottom: 0; height: 8px; display: flex; z-index: 1; }
.hero-stripe span{ flex: 1; }
.hero-stripe span:nth-child(1){ background: var(--red); }
.hero-stripe span:nth-child(2){ background: var(--white); }
.hero-stripe span:nth-child(3){ background: var(--yellow); }
.hero-content{ position: relative; z-index: 2; padding-bottom: 88px; width: 100%; }
.hero-eyebrow{
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.hero-eyebrow .dot{ width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.hero-title{
  font-size: clamp(34px, 5.6vw, 64px); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; max-width: 920px;
  text-shadow: 0 4px 24px rgba(0,0,0,.4), 0 1px 4px rgba(0,0,0,.45);
}
.hero-title em{ font-style: normal; color: var(--yellow); }
.hero-subtitle{
  margin-top: 22px; font-size: clamp(17px, 2vw, 21px); color: rgba(255,255,255,.92); max-width: 620px;
  text-shadow: 0 2px 14px rgba(0,0,0,.4);
}
.hero-actions{ display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero-scroll{
  position: absolute; right: 40px; bottom: 32px; z-index: 2; display: flex; flex-direction: column;
  align-items: center; gap: 10px; color: rgba(255,255,255,.75); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.hero-scroll .line{ width: 1px; height: 40px; background: rgba(255,255,255,.4); animation: scrollLine 1.8s ease-in-out infinite; }
@keyframes scrollLine{ 0%,100%{ opacity: .3; } 50%{ opacity: 1; } }

/* ---------- Marquee ---------- */
.marquee-band{ background: var(--ink); overflow: hidden; padding: 16px 0; position: relative; }
.marquee-band::before, .marquee-band::after{
  content: ""; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 2; pointer-events: none;
}
.marquee-band::before{ left: 0; background: linear-gradient(90deg, var(--ink), transparent); }
.marquee-band::after{ right: 0; background: linear-gradient(270deg, var(--ink), transparent); }
.marquee-track{
  display: flex; align-items: center; gap: 18px; width: max-content; white-space: nowrap;
  animation: marqueeScroll 34s linear infinite;
}
.marquee-band:hover .marquee-track{ animation-play-state: paused; }
.marquee-track span{ font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .03em; }
.marquee-track span.dot{ color: var(--yellow); font-size: 12px; }
@keyframes marqueeScroll{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ---------- Statement band ---------- */
.statement-band{
  background: linear-gradient(135deg, var(--ink) 0%, #2a1418 60%, var(--ink) 100%);
  padding: 84px 0; position: relative; overflow: hidden;
}
.statement-band::before{
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, var(--red) 0%, transparent 70%); opacity: .22; top: -200px; left: -160px;
}
.statement-band::after{
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 70%); opacity: .18; bottom: -180px; right: -140px;
}
.statement-text{
  position: relative; z-index: 1; text-align: center; max-width: 900px; margin: 0 auto;
  font-size: clamp(22px, 3.2vw, 36px); font-weight: 800; line-height: 1.55; color: rgba(255,255,255,.88);
}
.statement-text .s-red{ color: var(--red-bright); }
.statement-text .s-white{ color: var(--white); }
.statement-text .s-yellow{ color: var(--yellow); }

/* ---------- About ---------- */
.about-grid{ display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: start; }
.about-text .section-desc{ font-size: 18px; }
.about-list{ margin-top: 30px; display: grid; gap: 18px; }
.about-list li{ display: flex; gap: 16px; align-items: flex-start; }
.about-list .num{
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--red);
  color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}
.about-list strong{ display: block; font-size: 16px; margin-bottom: 3px; }
.about-list p{ color: var(--ink-soft); font-size: 14.5px; }

.about-card{
  background: var(--ink); color: var(--white); border-radius: var(--radius-lg); padding: 36px; position: relative; overflow: hidden;
}
.about-card::before{
  content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 70%); opacity: .25; top: -80px; right: -80px;
}
.about-card-quote{ font-size: 20px; font-weight: 700; line-height: 1.4; position: relative; z-index: 1; }
.about-card-quote span{ color: var(--yellow); }
.about-card-foot{ margin-top: 24px; display: flex; gap: 14px; align-items: center; position: relative; z-index: 1; }
.about-card-foot img{ width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.3); }
.about-card-foot strong{ display: block; font-size: 14.5px; }
.about-card-foot small{ color: rgba(255,255,255,.65); font-size: 12.5px; }

/* ---------- Chairman ---------- */
.chairman{ display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.chairman-photo{ position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.chairman-photo img{ width: 100%; height: 100%; object-fit: cover; }
.chairman-photo .badge{
  position: absolute; left: 18px; bottom: 18px; background: var(--white); border-radius: var(--radius-sm);
  padding: 10px 16px; box-shadow: var(--shadow-md); font-size: 12.5px; font-weight: 700; color: var(--red);
}
.chairman-name{ font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-top: 6px; }
.chairman-role{ color: var(--red); font-weight: 700; margin-top: 8px; font-size: 15px; }
.chairman-degree{ color: var(--ink-soft); font-size: 14px; margin-top: 4px; }
.chairman-quote{
  margin: 26px 0; padding: 22px 26px; background: var(--yellow-light); border-radius: var(--radius-md);
  font-size: 16.5px; font-style: normal; line-height: 1.6; position: relative;
}
.chairman-quote::before{ content: "\201C"; font-size: 60px; color: var(--yellow-dark); position: absolute; top: -18px; left: 14px; font-family: Georgia, serif; opacity: .5; }

/* ---------- Council grid ---------- */
.filter-bar{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn{
  padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--gray-300); background: var(--white);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft); transition: all .15s ease;
}
.filter-btn:hover{ border-color: var(--red); color: var(--red); }
.filter-btn.active{ background: var(--red); border-color: var(--red); color: var(--white); }

.council-grid{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.council-card{
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden;
  transition: all .2s ease; display: flex; flex-direction: column;
}
.council-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.council-card-photo{ aspect-ratio: 1/1; background: var(--gray-100); position: relative; overflow: hidden; }
.council-card-photo img{ width: 100%; height: 100%; object-fit: cover; }
.council-card-photo .avatar-fallback{
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; color: var(--white);
}
.council-card-body{ padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.council-card-body h3{ font-size: 16px; font-weight: 800; line-height: 1.3; }
.council-card-body .univ{ font-size: 13px; color: var(--red); font-weight: 700; margin-top: 6px; }
.council-card-body .role{ font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.council-card-body .btn{ margin-top: auto; }

/* ---------- Institutions ---------- */
.inst-toolbar{ display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.search-input{
  display: flex; align-items: center; gap: 10px; background: var(--white); border: 1.5px solid var(--gray-300);
  border-radius: 999px; padding: 11px 20px; flex: 1; min-width: 240px; max-width: 420px;
}
.search-input svg{ width: 18px; height: 18px; color: var(--ink-soft); flex-shrink: 0; }
.search-input input{ border: none; outline: none; flex: 1; font-size: 14.5px; background: none; }

.inst-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.inst-card{ border: 1px solid var(--gray-200); border-radius: var(--radius-md); overflow: hidden; background: var(--white); transition: all .2s ease; display: flex; flex-direction: column; }
.inst-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-4px); }
.inst-card-media{ position: relative; aspect-ratio: 16/10; overflow: hidden; }
.inst-card-media img{ width: 100%; height: 100%; object-fit: cover; }
.inst-card-tag{
  position: absolute; top: 14px; left: 14px; background: var(--yellow); color: var(--ink);
  font-size: 11.5px; font-weight: 800; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em;
}
.inst-card-body{ padding: 20px; flex: 1; display: flex; flex-direction: column; }
.inst-card-body h3{ font-size: 17px; font-weight: 800; line-height: 1.3; min-height: 44px; }
.inst-card-body .rector{ font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }
.inst-card-stats{ display: flex; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gray-100); }
.inst-card-stats div{ font-size: 12px; color: var(--ink-soft); }
.inst-card-stats strong{ display: block; font-size: 16px; color: var(--ink); }
.inst-card-body .btn{ margin-top: auto; }
.inst-empty{ display: none; text-align: center; padding: 60px 20px; color: var(--ink-soft); }

/* ---------- News ---------- */
.news-grid{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.news-card{ border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--gray-200); background: var(--white); transition: all .2s ease; }
.news-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-4px); }
.news-card-media{ aspect-ratio: 16/10; overflow: hidden; position: relative; }
.news-card-media img{ width: 100%; height: 100%; object-fit: cover; }
.news-cat{
  position: absolute; top: 14px; left: 14px; background: var(--red); color: var(--white);
  font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em;
}
.news-card-body{ padding: 20px; }
.news-date{ font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.news-card-body h3{ font-size: 17px; font-weight: 800; margin-top: 8px; line-height: 1.35; }
.news-card-body p{ font-size: 14px; color: var(--ink-soft); margin-top: 10px; }
.news-card-body .read-more{ display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13.5px; font-weight: 700; color: var(--red); background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.news-card-body .read-more svg{ width: 14px; height: 14px; transition: transform .15s ease; }
.news-card:hover .read-more svg{ transform: translateX(4px); }

/* ---------- Calendar ---------- */
.calendar-wrap{ display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: start; }
.calendar-card{ background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.calendar-head{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.calendar-head h3{ font-size: 19px; font-weight: 800; }
.calendar-nav{ display: flex; gap: 8px; }
.calendar-nav button{ width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gray-300); background: var(--white); display:flex; align-items:center; justify-content:center; }
.calendar-nav button:hover{ background: var(--red); border-color: var(--red); color: var(--white); }
.calendar-nav svg{ width: 15px; height: 15px; }
.calendar-grid{ display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.calendar-grid .dow{ font-size: 11.5px; font-weight: 700; color: var(--ink-soft); padding: 6px 0; text-transform: uppercase; }
.calendar-grid .day{
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; border-radius: 10px;
  font-size: 13.5px; color: var(--ink); position: relative; cursor: default;
}
.calendar-grid .day.muted{ color: var(--gray-300); }
.calendar-grid .day.has-event{ background: var(--yellow-light); font-weight: 700; cursor: pointer; }
.calendar-grid .day.has-event::after{ content:""; position:absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.calendar-grid .day.today{ background: var(--red); color: var(--white); font-weight: 800; }
.calendar-legend{ display: flex; gap: 18px; margin-top: 20px; flex-wrap: wrap; }
.calendar-legend span{ display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-soft); }
.calendar-legend i{ width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.event-list{ display: grid; gap: 14px; }
.event-item{ display: flex; gap: 16px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 16px; align-items: center; }
.event-date{
  flex-shrink: 0; width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--red); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800;
}
.event-date span{ font-size: 20px; line-height: 1; }
.event-date small{ font-size: 10px; text-transform: uppercase; }
.event-item h4{ font-size: 14.5px; font-weight: 700; }
.event-item .type{ font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }

/* ---------- Meetings ---------- */
.meeting-list{ display: grid; gap: 20px; }
.meeting-item{
  display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; gap: 26px; align-items: center;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 22px 26px;
}
.meeting-item .m-date{ font-weight: 800; font-size: 15px; }
.meeting-item .m-date small{ display: block; font-weight: 500; color: var(--ink-soft); font-size: 12.5px; margin-top: 4px; }
.meeting-item h3{ font-size: 17px; font-weight: 800; }
.meeting-item p{ font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }
.meeting-tags{ display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.meeting-tags span{ font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--gray-100); color: var(--ink-soft); }
.meeting-actions{ display: flex; flex-direction: column; gap: 8px; }
.meeting-hero{ position: relative; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow-md); }
.meeting-hero img{ width: 100%; max-height: 360px; object-fit: cover; }

/* ---------- Documents ---------- */
.doc-toolbar{ display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }
.doc-tabs{ display: flex; gap: 8px; flex-wrap: wrap; }
.doc-table{ width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--gray-200); }
.doc-table th{ text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); padding: 14px 20px; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.doc-table td{ padding: 16px 20px; border-bottom: 1px solid var(--gray-100); font-size: 14.5px; vertical-align: middle; }
.doc-table tr:last-child td{ border-bottom: none; }
.doc-table tr:hover td{ background: var(--gray-50); }
.doc-name{ display: flex; align-items: center; gap: 12px; font-weight: 700; }
.doc-icon{ width: 36px; height: 36px; border-radius: 8px; background: var(--red-light); color: var(--red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-icon svg{ width: 18px; height: 18px; }
.doc-cat{ font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--yellow-light); color: var(--yellow-dark); }
.doc-dl{ display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--red); font-size: 13.5px; }
.doc-dl svg{ width: 15px; height: 15px; }

/* ---------- Priorities (Проєкти) ---------- */
.priority-list{ border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--gray-200); background: var(--white); box-shadow: var(--shadow-sm); }
.priority-item{
  display: grid; grid-template-columns: 64px 56px minmax(0, 1fr); gap: 26px; align-items: center;
  padding: 30px 32px; position: relative; transition: background .2s ease;
}
.priority-item + .priority-item{ border-top: 1px solid var(--gray-200); }
.priority-item:hover{ background: var(--gray-50); }
.priority-num{
  font-size: 38px; font-weight: 800; line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px var(--red); text-stroke: 1.5px var(--red); opacity: .55;
}
.priority-icon{ width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.priority-icon svg{ width: 24px; height: 24px; }
.priority-body h3{ font-size: 19px; font-weight: 800; }
.priority-body p{ margin-top: 6px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery-tabs{ display: flex; gap: 8px; margin-bottom: 30px; }
.gallery-grid{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 160px; gap: 14px; }
.gallery-item{ border-radius: var(--radius-sm); overflow: hidden; position: relative; cursor: pointer; }
.gallery-item img{ width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-item:hover img{ transform: scale(1.07); }
.gallery-item.tall{ grid-row: span 2; }
.gallery-item.wide{ grid-column: span 2; }
.gallery-item .play{
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.25);
}
.gallery-item .play svg{ width: 44px; height: 44px; color: var(--white); }
.gallery-item .badge360{ position: absolute; top: 10px; right: 10px; background: var(--yellow); color: var(--ink); font-size: 10.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }

/* ---------- Cabinet ---------- */
.cabinet-mock{ display: grid; grid-template-columns: 260px minmax(0, 1fr); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200); }
.cabinet-side{ background: var(--ink); color: var(--white); padding: 26px 20px; }
.cabinet-side .cab-user{ display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 16px; }
.cabinet-side .cab-user .av{ width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.cabinet-side .cab-user strong{ font-size: 13.5px; display: block; }
.cabinet-side .cab-user small{ font-size: 11.5px; color: rgba(255,255,255,.6); }
.cabinet-nav a{ display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.75); margin-bottom: 4px; }
.cabinet-nav a svg{ width: 17px; height: 17px; }
.cabinet-nav a.active{ background: var(--red); color: var(--white); }
.cabinet-main{ padding: 30px; background: var(--white); }
.cabinet-lock{ text-align: center; padding: 40px 20px; }
.cabinet-lock .lock-ic{ width: 56px; height: 56px; margin: 0 auto 18px; color: var(--red); }
.cabinet-lock h3{ font-size: 20px; font-weight: 800; }
.cabinet-lock p{ margin-top: 10px; color: var(--ink-soft); font-size: 14.5px; max-width: 420px; margin-left: auto; margin-right: auto; }
.cabinet-features{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.cabinet-feature{ padding: 16px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); text-align: left; }
.cabinet-feature svg{ width: 20px; height: 20px; color: var(--red); margin-bottom: 8px; }
.cabinet-feature strong{ font-size: 13px; display: block; }

/* ---------- Contacts ---------- */
.contacts-wrap{ display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-panel{
  background: linear-gradient(155deg, var(--ink) 0%, #2a1418 100%); color: var(--white);
  border-radius: var(--radius-lg); padding: 40px; position: relative; overflow: hidden;
  display: grid; gap: 16px; align-content: start;
}
.contact-panel::before{
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, var(--yellow) 0%, transparent 70%); opacity: .18; top: -120px; right: -100px;
}
.contact-panel::after{
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, var(--red) 0%, transparent 70%); opacity: .25; bottom: -110px; left: -90px;
}
.contact-panel h3{ font-size: 24px; font-weight: 800; line-height: 1.25; position: relative; z-index: 1; }
.contact-panel-desc{ color: rgba(255,255,255,.72); font-size: 14.5px; margin-bottom: 8px; position: relative; z-index: 1; }
.contact-row{ display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: var(--radius-md); background: rgba(255,255,255,.06); position: relative; z-index: 1; }
.contact-row .ic{ width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.1); color: var(--yellow); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row .ic svg{ width: 20px; height: 20px; }
.contact-row strong{ font-size: 14.5px; display: block; color: var(--white); }
.contact-row span, .contact-row a{ font-size: 14px; color: rgba(255,255,255,.7); }

.contact-form{ background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 32px; }
.form-row{ margin-bottom: 18px; }
.form-row label{ display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.form-row input, .form-row textarea{
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm); font-size: 14.5px; outline: none; transition: border-color .15s ease;
}
.form-row input:focus, .form-row textarea:focus{ border-color: var(--red); }
.form-row textarea{ resize: vertical; min-height: 110px; }
.form-note{ font-size: 12.5px; color: var(--ink-soft); margin-top: 12px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer{ background: var(--ink); color: rgba(255,255,255,.8); padding: 64px 0 0; }
.footer-top{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand{ display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand strong{ color: var(--white); font-size: 15px; }
.footer-col h4{ color: var(--white); font-size: 14px; font-weight: 800; margin-bottom: 16px; }
.footer-col ul{ display: grid; gap: 10px; }
.footer-col a{ font-size: 13.5px; }
.footer-col a:hover{ color: var(--yellow); }
.footer-partners{ display: flex; flex-wrap: wrap; gap: 10px; padding: 32px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-partners .plogo{
  width: 46px; height: 46px; border-radius: 10px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: rgba(255,255,255,.6);
}
.footer-bottom{ display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: 12.5px; flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover{ color: var(--yellow); }
.footer-legal{ display: flex; gap: 20px; flex-wrap: wrap; }
.footer-stripe{ height: 6px; display: flex; margin-top: 20px; }
.footer-stripe span{ flex: 1; }
.footer-stripe span:nth-child(1){ background: var(--red); }
.footer-stripe span:nth-child(2){ background: var(--white); }
.footer-stripe span:nth-child(3){ background: var(--yellow); }

/* ---------- Search overlay ---------- */
.search-overlay{
  position: fixed; inset: 0; z-index: 1200; background: rgba(20,10,12,.6); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center; padding: 90px 20px;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.search-overlay.open{ opacity: 1; visibility: visible; }
.search-panel{ background: var(--white); width: 100%; max-width: 640px; border-radius: var(--radius-lg); padding: 8px; box-shadow: var(--shadow-lg); }
.search-panel-input{ display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--gray-200); }
.search-panel-input svg{ width: 20px; height: 20px; color: var(--ink-soft); flex-shrink: 0; }
.search-panel-input input{ flex: 1; border: none; outline: none; font-size: 17px; background: none; }
.search-panel-input button{ background: none; border: none; color: var(--ink-soft); }
.search-panel-input button svg{ width: 20px; height: 20px; }
.search-results{ max-height: 50vh; overflow-y: auto; padding: 8px; }
.search-result{ display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); }
.search-result:hover{ background: var(--gray-100); }
.search-result .tag{ font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--red-light); color: var(--red); text-transform: uppercase; flex-shrink: 0; }
.search-result strong{ font-size: 14.5px; }
.search-hint{ padding: 30px 20px; text-align: center; color: var(--ink-soft); font-size: 14px; }

/* ---------- Modal (council member) ---------- */
.modal-overlay{
  position: fixed; inset: 0; z-index: 1300; background: rgba(20,10,12,.65); display: flex; align-items: center; justify-content: center;
  padding: 30px 16px; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.modal-overlay.open{ opacity: 1; visibility: visible; }
.modal-card{ background: var(--white); border-radius: var(--radius-lg); max-width: 720px; width: 100%; max-height: 88vh; overflow-y: auto; position: relative; }
.modal-close{ position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; background: var(--white); border: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: center; z-index: 2; }
.modal-close svg{ width: 16px; height: 16px; }
.modal-hero{ display: flex; gap: 22px; padding: 34px 34px 0; align-items: flex-end; }
.modal-hero img{ width: 110px; height: 110px; border-radius: var(--radius-md); object-fit: cover; }
.modal-hero .avatar-fallback{ width: 110px; height: 110px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 32px; font-weight: 800; }
.modal-hero h3{ font-size: 22px; font-weight: 800; }
.modal-hero .univ{ color: var(--red); font-weight: 700; font-size: 14px; margin-top: 4px; }
.modal-body{ padding: 26px 34px 34px; }
.modal-section{ margin-top: 22px; }
.modal-section h4{ font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); font-weight: 800; margin-bottom: 8px; }
.modal-section p{ font-size: 14.5px; color: var(--ink-soft); }
.modal-tags{ display: flex; gap: 8px; flex-wrap: wrap; }
.modal-tags span{ font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--gray-100); }
.modal-contacts{ display: flex; gap: 18px; flex-wrap: wrap; }
.modal-contacts a{ font-size: 13.5px; font-weight: 600; color: var(--red); }

/* ---------- Lightbox ---------- */
.lightbox{ position: fixed; inset: 0; z-index: 1400; background: rgba(10,10,12,.92); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.lightbox.open{ opacity: 1; visibility: visible; }
.lightbox img{ max-width: 88vw; max-height: 82vh; border-radius: 10px; }
.lightbox-close{ position: absolute; top: 24px; right: 28px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: var(--white); display: flex; align-items: center; justify-content: center; }
.lightbox-close svg{ width: 18px; height: 18px; }
.lightbox-nav{ position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.3); color: var(--white); display: flex; align-items: center; justify-content: center; }
.lightbox-nav svg{ width: 20px; height: 20px; }
.lightbox-prev{ left: 24px; }
.lightbox-next{ right: 24px; }

/* ---------- Scroll reveal ---------- */
.reveal{ opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in-view{ opacity: 1; transform: none; }
.reveal:nth-child(1){ transition-delay: .04s; }
.reveal:nth-child(2){ transition-delay: .09s; }
.reveal:nth-child(3){ transition-delay: .14s; }
.reveal:nth-child(4){ transition-delay: .19s; }
.reveal:nth-child(5){ transition-delay: .24s; }
.reveal:nth-child(6){ transition-delay: .29s; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
  .marquee-track{ animation: none; }
  .hero-static{ animation: none; }
}

/* ---------- Toast ---------- */
.toast{ position: fixed; bottom: 28px; left: 50%; translate: -50% 0; background: var(--ink); color: var(--white); padding: 14px 24px; border-radius: 999px; font-size: 14px; font-weight: 600; z-index: 1500; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .25s ease; }
.toast.show{ opacity: 1; translate: -50% -14px; }

/* ---------- Back to top ---------- */
.back-top{
  position: fixed; right: 26px; bottom: 26px; width: 48px; height: 48px; border-radius: 50%; background: var(--red);
  color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transition: all .25s ease; z-index: 900; border: none;
}
.back-top.show{ opacity: 1; visibility: visible; }
.back-top svg{ width: 20px; height: 20px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px){
  .council-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inst-grid, .news-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-top{ grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-top .footer-col:last-child{ display: none; }
}

@media (max-width: 900px){
  .main-nav, .nav-more{ display: none; }
  .burger{ display: flex; }
  .about-grid, .chairman, .calendar-wrap, .contacts-wrap{ grid-template-columns: minmax(0, 1fr); }
  .chairman-photo{ max-width: 340px; }
  .cabinet-mock{ grid-template-columns: minmax(0, 1fr); }
  .cabinet-side{ display: flex; align-items: center; gap: 20px; }
  .cabinet-nav{ display: flex; gap: 4px; overflow-x: auto; }
  .cabinet-nav a span{ display: none; }
  .meeting-item{ grid-template-columns: minmax(0, 1fr); text-align: left; }
  .meeting-actions{ flex-direction: row; }
  .priority-item{ grid-template-columns: 44px 48px minmax(0, 1fr); padding: 24px 22px; gap: 18px; }
  .priority-num{ font-size: 28px; }
}

@media (max-width: 720px){
  section{ padding: 64px 0; }
  .council-grid, .inst-grid, .news-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .gallery-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; }
  .footer-top{ grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero-scroll{ display: none; }
  .doc-table, .doc-table tbody, .doc-table tr, .doc-table td{ display: block; width: 100%; }
  .doc-table thead{ display: none; }
  .doc-table tr{ padding: 16px 18px; border-bottom: 8px solid var(--gray-50); }
  .doc-table tr:last-child{ border-bottom: none; }
  .doc-table td{ padding: 7px 0; border: none; white-space: normal; }
  .doc-table td[data-label]:not([data-label="Документ"]){ display: flex; align-items: center; gap: 10px; }
  .doc-table td[data-label]:not([data-label="Документ"])::before{
    content: attr(data-label); flex-shrink: 0; min-width: 78px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .03em; color: var(--ink-soft);
  }
  .priority-item{ grid-template-columns: minmax(0, 1fr); text-align: left; }
  .priority-num{ display: none; }
}

@media (max-width: 520px){
  .council-grid, .inst-grid, .news-grid{ grid-template-columns: minmax(0, 1fr); }
  .gallery-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top{ grid-template-columns: minmax(0, 1fr); }
  .hero-actions{ flex-direction: column; align-items: stretch; }
  .about-card, .chairman-quote{ padding: 22px; }
}
