/* ============================================
   PROIN PORTAL — THEME CSS
   Профсоюз работников просвещения
   ============================================ */

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-300: #93C5FD;
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-800: #1E40AF;
  --blue-900: #1E3A8A;
  --blue-950: #0F2057;
  --sky-400: #38BDF8;
  --sky-500: #0EA5E9;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --gold-400: #FACC15;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(15, 32, 87, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 32, 87, 0.08);
  --shadow-lg: 0 8px 32px rgba(15, 32, 87, 0.1);
  --shadow-xl: 0 16px 48px rgba(15, 32, 87, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--slate-800);
  background: var(--slate-50);
  line-height: 1.6;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Onest', sans-serif;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TOP BAR ===== */
.topbar {
  background: var(--blue-950);
  color: white;
  font-size: 13px;
  padding: 8px 0;
  position: relative;
  z-index: 100;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-left {
  display: flex;
  gap: 16px;
  align-items: center;
}

.topbar-left a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.topbar-left a:hover {
  color: white;
}

.topbar-social {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.topbar-social a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.topbar-social a:hover {
  color: white;
}

.topbar-social svg {
  width: 20px;
  height: 20px;
}

.topbar-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-btn {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Onest', sans-serif;
}

.lang-btn.active,
.lang-btn:hover {
  background: white;
  color: var(--blue-950);
  border-color: white;
}

/* ===== HEADER ===== */
.header {
  background: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 99;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 65px;
  height: 65px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 20px;
  font-family: 'Onest', sans-serif;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
  animation: logoShine 3s ease-in-out infinite;
}

.logo-icon--sm {
  width: 44px;
  height: 44px;
  font-size: 16px;
}

@keyframes logoShine {

  0%,
  100% {
    transform: translateX(-100%) rotate(45deg);
  }

  50% {
    transform: translateX(100%) rotate(45deg);
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text-main {
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--blue-900);
  line-height: 1.2;
  max-width: 260px;
}

.logo-text-main--white {
  color: white;
  font-size: 14px;
}

.logo-text-sub {
  font-size: 11px;
  color: var(--slate-500);
  line-height: 1.3;
  max-width: 260px;
}

/* NAV */
.nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-item {
  position: relative;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.nav-item:hover {
  color: var(--blue-600);
  background: var(--blue-50);
}

.nav-item.active {
  color: var(--blue-700);
  font-weight: 600;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 260px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-100);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  z-index: 50;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--slate-600);
  border-radius: 8px;
  transition: var(--transition);
}

.nav-dropdown a:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.search-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--slate-200);
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--slate-500);
}

.search-toggle:hover {
  background: var(--blue-50);
  border-color: var(--blue-200);
  color: var(--blue-600);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate-700);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  display: none;
  background: white;
  border-top: 1px solid var(--slate-100);
  padding: 8px 0 16px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-item {
  display: block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-700);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--blue-600);
}

/* ===== BUTTONS ===== */
.btn-outline {
  padding: 14px 32px;
  background: transparent;
  color: var(--blue-600);
  border: 2px solid var(--blue-200);
  border-radius: var(--radius);
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  background: var(--blue-50);
  border-color: var(--blue-400);
  transform: translateY(-2px);
}

.btn-outline--light {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline--light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  color: white;
  transform: translateY(-2px);
}

.btn-primary {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.btn-primary--full {
  width: 100%;
  justify-content: center;
  padding: 14px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 121px 0 120px;
  overflow: hidden;
  background: url('../images/hero-bg.jpg') no-repeat center/cover;
  /* background: linear-gradient(135deg, var(--blue-950) 0%, var(--blue-800) 50%, var(--blue-700) 100%); */
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(56, 189, 248, 0.15), transparent),
    radial-gradient(ellipse 500px 500px at 80% 20%, rgba(59, 130, 246, 0.2), transparent),
    radial-gradient(ellipse 300px 300px at 60% 60%, rgba(250, 204, 21, 0.06), transparent);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  animation: float 20s ease-in-out infinite;
}

.hero-shape-1 {
  width: 400px;
  height: 400px;
  background: var(--sky-400);
  top: -100px;
  right: -100px;
}

.hero-shape-2 {
  width: 300px;
  height: 300px;
  background: var(--gold-400);
  bottom: -80px;
  left: 10%;
  animation-delay: -5s;
}

.hero-shape-3 {
  width: 200px;
  height: 200px;
  background: white;
  top: 30%;
  left: -50px;
  animation-delay: -10s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(30px, -20px) scale(1.05);
  }

  50% {
    transform: translate(-20px, 30px) scale(0.95);
  }

  75% {
    transform: translate(20px, 20px) scale(1.02);
  }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--sky-400);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.hero h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--sky-400), var(--blue-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.btn-hero-primary {
  padding: 16px 32px;
  background: white;
  color: var(--blue-800);
  border: none;
  border-radius: var(--radius);
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
  padding: 16px 32px;
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-family: 'Onest', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 6px;
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue-600);
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--blue-300);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--slate-500);
  max-width: 580px;
  margin: 0 auto;
}

/* ===== NEWS SECTION ===== */
.news-section {
  background: white;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 12px;
}

.news-featured {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 480px;
  cursor: pointer;
  transition: var(--transition);
}

.news-featured:hover {
  transform: translateY(-4px);
}

.news-featured:hover .news-featured-img img {
  transform: scale(1.05);
}

.news-featured-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  overflow: hidden;
}

.news-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-featured-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 32, 87, 0.95) 0%, rgba(15, 32, 87, 0.3) 50%, transparent 100%);
}

.news-featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 36px;
  z-index: 2;
}

.news-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-featured-content h3 {
  font-size: 24px;
  color: white;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.news-featured-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.news-date {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-tile {
  display: flex;
  flex-direction: column;
  background: var(--slate-50);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.news-tile:hover {
  background: white;
  border-color: var(--blue-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-tile-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-200), var(--blue-400));
  flex-shrink: 0;
}

.news-tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-tile:hover .news-tile-thumb img {
  transform: scale(1.05);
}

.news-tile-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.news-tile-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--blue-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-tile h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-800);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-tile-date {
  font-size: 11px;
  color: var(--slate-400);
  margin-top: auto;
}

.news-footer {
  text-align: center;
  margin-top: 40px;
}

.news-empty {
  grid-column: 1/-1;
  text-align: center;
  color: var(--slate-400);
  padding: 40px 0;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: var(--slate-50);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Orbital visual */
.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
}

.about-orbit-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--blue-200);
}

.about-orbit-ring-1 {
  inset: 0;
  animation: orbitSpin 25s linear infinite;
}

.about-orbit-ring-2 {
  inset: 28px;
  border-color: var(--blue-100);
  border-style: dashed;
  animation: orbitSpin 35s linear infinite reverse;
}

.about-orbit-ring-3 {
  inset: 60px;
  border-color: rgba(37, 99, 235, 0.15);
  animation: orbitSpin 18s linear infinite;
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.about-orbit-center {
  position: absolute;
  width: 140px;
  height: 140px;
  /* background: linear-gradient(135deg, var(--blue-600), var(--blue-900)); */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 12px rgba(37, 99, 235, 0.08), 0 0 40px rgba(37, 99, 235, 0.3);
  z-index: 2;
}

.about-orbit-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.about-orbit-dot-1 {
  top: 8px;
  right: 60px;
  background: var(--sky-400);
  animation: floatOrbit 6s ease-in-out infinite;
}

.about-orbit-dot-2 {
  bottom: 20px;
  left: 40px;
  background: var(--gold-400);
  animation: floatOrbit 8s ease-in-out infinite reverse;
}

.about-orbit-dot-3 {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  background: var(--blue-400);
  animation: floatOrbit 7s ease-in-out infinite 2s;
}

@keyframes floatOrbit {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.about-orbit-dot-3 {
  transform: none;
}

/* History orbit link */
.about-orbit-link {
  position: absolute;
  bottom: 120px;
  right: calc(100% - 20px);
  background: white;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 160px;
  z-index: 4;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  animation: floatCard 7s ease-in-out infinite 1.5s;
  transition: box-shadow 0.2s, transform 0.2s;
  border-bottom: 2px solid var(--blue-600);
}

.about-orbit-link::after {
  content: '';
  position: absolute;
  bottom: -9px;
  right: -9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue-400);
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.about-orbit-link:hover {
  box-shadow: var(--shadow-xl, 0 10px 40px rgba(0, 0, 0, 0.14));
  transform: translateY(-3px);
}

.about-orbit-link:hover .about-orbit-link-arrow {
  transform: translateX(3px);
}

.about-orbit-link-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-orbit-link-body {
  flex: 1;
}

.about-orbit-link-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray-900, #111);
  line-height: 1.2;
}

.about-orbit-link-sub {
  font-size: 0.72rem;
  color: var(--blue-600);
  margin-top: 2px;
}

.about-orbit-link-arrow {
  color: var(--blue-600);
  transition: transform 0.2s;
  flex-shrink: 0;
}

/* Video jubilee orbit card */
.about-orbit-video {
  position: absolute;
  bottom: 270px;
  right: calc(100% - 80px);
  background: white;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  z-index: 4;
  border: none;
  border-bottom: 2px solid #EF4444;
  cursor: pointer;
  text-align: left;
  animation: floatCard 6.5s ease-in-out infinite 3s reverse;
  transition: box-shadow 0.2s, transform 0.2s;
}

.about-orbit-video::after {
  content: '';
  position: absolute;
  bottom: -9px;
  right: -9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #EF4444;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.about-orbit-video:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}

.about-orbit-video:hover .about-orbit-link-arrow {
  transform: translateX(3px);
}

.about-orbit-video-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-orbit-video .about-stat-value,
.about-orbit-link .about-stat-value {
  white-space: nowrap;
  font-size: 0.95rem;
}

.about-orbit-video .about-stat-label {
  color: #EF4444;
}

.about-orbit-video .about-orbit-link-arrow {
  color: #EF4444;
}

/* Video modal */
.kz-modal.video-modal {
  width: 80vw;
  max-width: 80vw;
  max-height: none;
  overflow: visible;
  padding: 0;
  background: #000;
  border-radius: var(--radius-lg);
}

.video-modal .kz-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.video-modal .kz-modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
  color: white;
}

.video-modal-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-modal-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}


/* Stat cards */
.about-stat-card {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 180px;
  z-index: 4;
}

.about-stat-card-1 {
  top: 20px;
  right: -20px;
  animation: floatCard 6s ease-in-out infinite;
}

.about-stat-card-2 {
  bottom: 30px;
  left: -30px;
  animation: floatCard 7s ease-in-out infinite 2s reverse;
}

.about-stat-card-3 {
  bottom: 120px;
  right: -40px;
  animation: floatCard 8s ease-in-out infinite 1s;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.about-stat-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-stat-value {
  font-family: 'Onest', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--blue-800);
  line-height: 1.1;
}

.about-stat-label {
  font-size: 12px;
  color: var(--slate-500);
  margin-top: 2px;
}

.about-text h2 {
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.about-text p {
  color: var(--slate-600);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-100);
  transition: var(--transition);
}

.about-feature:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-sm);
}

.about-feature-check {
  width: 28px;
  height: 28px;
  background: var(--blue-50);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  flex-shrink: 0;
  font-size: 14px;
}

.about-feature span {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-700);
}

/* ===== MAP SECTION ===== */
.map-section {
  background: var(--blue-950);
  position: relative;
  overflow: hidden;
}

.map-section::before {
  display: none;
}

.map-section .section-label {
  color: var(--sky-400);
}

.map-section .section-label::before,
.map-section .section-label::after {
  background: rgba(56, 189, 248, 0.3);
}

.map-section .section-title {
  color: white;
}

.map-section .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.map-placeholder {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder-inner {
  text-align: center;
  padding: 60px 40px;
}

.map-placeholder-icon {
  margin: 0 auto 20px;
}

.map-placeholder-text {
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  margin-bottom: 24px;
}

.map-regions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  position: relative;
  z-index: 2;
}

.map-region-pill {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  cursor: default;
}

.map-region-pill:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--sky-400);
  color: white;
}

.map-region-dot {
  width: 7px;
  height: 7px;
  background: var(--sky-400);
  border-radius: 50%;
}

/* ===== ACTIVITIES SECTION ===== */
.activities-section {
  background: white;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.activity-card {
  padding: 36px 28px;
  background: var(--slate-50);
  border-radius: var(--radius);
  border: 1px solid var(--slate-100);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.activity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--sky-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.activity-card:hover::before {
  transform: scaleX(1);
}

.activity-card:hover {
  background: white;
  border-color: var(--blue-100);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.activity-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-50);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  transition: var(--transition);
  color: var(--blue-600);
}

.activity-card:hover .activity-icon {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: white;
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.activity-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 10px;
}

.activity-card p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.6;
}

.activity-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-600);
  transition: var(--transition);
}

.activity-link:hover {
  gap: 10px;
}

/* ===== Q&A SECTION ===== */
.qa-section {
  background: var(--blue-50);
}

.qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.qa-left h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 24px;
}

.qa-item {
  background: white;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 10px;
  border: 1px solid var(--slate-100);
  cursor: pointer;
  transition: var(--transition);
}

.qa-item:hover {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-sm);
}

.qa-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  color: var(--slate-700);
  gap: 12px;
}

.qa-toggle {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--blue-50);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  font-size: 18px;
  transition: var(--transition);
}

.qa-item:hover .qa-toggle {
  background: var(--blue-100);
}

.qa-answer {
  padding-top: 12px;
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.6;
}

.qa-form {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-100);
}

.qa-form h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  color: var(--slate-700);
  transition: var(--transition);
  background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== BRANCHES SECTION ===== */
.branches-section {
  background: white;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.branch-card {
  background: var(--slate-50);
  border-radius: var(--radius);
  border: 1px solid var(--slate-100);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.branch-card:hover {
  background: white;
  border-color: var(--blue-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.branch-card-header {
  padding: 24px 24px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--slate-100);
}

.branch-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.branch-card:hover .branch-icon {
  background: var(--blue-100);
}

.branch-name {
  font-family: 'Onest', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-800);
  line-height: 1.3;
}

.branch-body {
  padding: 16px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.branch-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--slate-600);
}

.branch-row svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--blue-400);
}

.branch-row-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--slate-400);
  margin-bottom: 2px;
}

.branch-row-value {
  font-weight: 600;
  color: var(--slate-800);
  font-size: 14px;
}

.branch-row-sub {
  font-size: 13px;
  color: var(--slate-500);
}

.branch-row-link {
  color: var(--blue-600);
  font-weight: 500;
  transition: var(--transition);
}

.branch-row-link:hover {
  color: var(--blue-800);
}

.branch-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--slate-100);
}

.branch-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  width: 100%;
  justify-content: center;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.branch-map-btn:hover {
  background: var(--blue-100);
  color: var(--blue-700);
}

.branches-empty {
  text-align: center;
  padding: 60px 24px;
}

.branches-empty-inner {
  max-width: 480px;
  margin: 0 auto;
}

.branches-empty-inner svg {
  margin: 0 auto 20px;
}

.branches-empty-inner p {
  color: var(--slate-500);
  margin-bottom: 12px;
}

.branches-empty-inner a {
  color: var(--blue-600);
  font-weight: 600;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--slate-900);
  padding: 72px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.footer-logo {
  margin-bottom: 4px;
  height: 120px;
  width: 120px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 16px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: white;
}

.footer-col h4 {
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  padding: 5px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: white;
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  padding: 5px 0;
  transition: var(--transition);
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item:hover {
  color: rgba(255, 255, 255, 0.8);
}

a.footer-contact-item {
  text-decoration: none;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ===== PAGE HERO (news, inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-950));
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 500px 300px at 80% 50%, rgba(56, 189, 248, 0.1), transparent);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb span {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: white;
  position: relative;
  z-index: 2;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  position: relative;
  z-index: 2;
}

/* ===== FILTERS BAR ===== */
.filters-bar {
  background: white;
  border-bottom: 1px solid var(--slate-100);
  padding: 20px 0;
  position: sticky;
  top: 76px;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.filters-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: 'Noto Sans', sans-serif;
  font-size: 14px;
  transition: var(--transition);
  background: var(--slate-50);
}

.search-box input:focus {
  outline: none;
  border-color: var(--blue-400);
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate-400);
  pointer-events: none;
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--slate-200);
  background: white;
  color: var(--slate-600);
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover {
  border-color: var(--blue-300);
  color: var(--blue-600);
}

.filter-chip.active {
  background: var(--blue-600);
  color: white;
  border-color: var(--blue-600);
}

.sort-select {
  padding: 10px 16px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-family: 'Noto Sans', sans-serif;
  font-size: 13px;
  color: var(--slate-600);
  background: white;
  cursor: pointer;
}

.news-archive-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--slate-600);
  background: white;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.news-archive-link:hover {
  border-color: var(--blue-300);
  color: var(--blue-600);
  background: var(--blue-50);
}

/* ===== NEWS PAGE GRID ===== */
.news-page-content {
  padding: 48px 0 80px;
}

.news-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-page-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--slate-100);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  animation: cardIn 0.5s ease forwards;
}

.news-page-card:nth-child(1) {
  animation-delay: 0.00s;
}

.news-page-card:nth-child(2) {
  animation-delay: 0.05s;
}

.news-page-card:nth-child(3) {
  animation-delay: 0.10s;
}

.news-page-card:nth-child(4) {
  animation-delay: 0.15s;
}

.news-page-card:nth-child(5) {
  animation-delay: 0.20s;
}

.news-page-card:nth-child(6) {
  animation-delay: 0.25s;
}

.news-page-card:nth-child(7) {
  animation-delay: 0.30s;
}

.news-page-card:nth-child(8) {
  animation-delay: 0.35s;
}

.news-page-card:nth-child(9) {
  animation-delay: 0.40s;
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-page-card:hover {
  border-color: var(--blue-100);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.news-page-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-300));
  overflow: hidden;
  position: relative;
}

.news-page-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-page-card:hover .news-page-card-img img {
  transform: scale(1.05);
}

.news-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.25;
  color: var(--blue-800);
}

.news-page-card-body {
  padding: 24px;
  flex: 1;
}

.news-page-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.news-page-tag {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--blue-50);
  color: var(--blue-600);
}

.news-page-date {
  font-size: 12px;
  color: var(--slate-400);
}

.news-page-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-page-card p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-page-card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--slate-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.news-page-card:hover .read-more {
  gap: 10px;
}

.share-btn:not(.btn-outline) {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--slate-100);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  cursor: pointer;
  transition: var(--transition);
}

.share-btn:not(.btn-outline):hover {
  border-color: var(--blue-200);
  color: var(--blue-500);
}

.news-empty-state {
  text-align: center;
  padding: 80px 24px;
}

.news-empty-state svg {
  margin: 0 auto 20px;
}

.news-empty-state p {
  color: var(--slate-400);
  margin-bottom: 24px;
  font-size: 16px;
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.page-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--slate-200);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--slate-600);
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover {
  border-color: var(--blue-300);
  color: var(--blue-600);
}

.page-btn.active {
  background: var(--blue-600);
  color: white;
  border-color: var(--blue-600);
  pointer-events: none;
}

.page-btn--dots {
  pointer-events: none;
  cursor: default;
}

a.page-btn {
  text-decoration: none;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .about-grid {
    gap: 48px;
  }

  .about-stat-card-3 {
    display: none;
  }
}

@media (max-width: 1100px) {
  .nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-stats {
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }

  .news-featured {
    grid-column: 1 / span 2;
    grid-row: 1;
    min-height: 360px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-visual {
    min-height: 360px;
    order: -1;
  }

  .activities-grid {
    grid-template-columns: 1fr 1fr;
  }

  .qa-grid {
    grid-template-columns: 1fr;
  }

  .news-page-grid {
    grid-template-columns: 1fr 1fr;
  }

  .branches-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-featured {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 280px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 60px 0 80px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }

  .news-page-grid {
    grid-template-columns: 1fr;
  }

  .branches-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .topbar-left {
    display: none;
  }

  .filters-row {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    min-width: auto;
  }

  .about-stat-card-1,
  .about-stat-card-2,
  .about-orbit-video {
    display: none;
  }

  .about-orbit-wrapper {
    width: 220px;
    height: 220px;
  }

  .about-orbit-center {
    width: 100px;
    height: 100px;
  }
}

/* ============================================================
   News Detail Page
   ============================================================ */

.news-detail-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* Category badge — светлый фон на тёмном хиро */
.news-detail-category {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  font-size: 13px;
  font-weight: 600;
  color: white;
  text-decoration: none;
  transition: background .2s;
}

.news-detail-category:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Дата — белая на тёмном хиро */
.news-detail-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(22px, 4vw, 36px);
  line-height: 1.25;
}

.news-detail-wrap {
  padding: 48px 0 80px;
}

.news-detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* Обложка — полное изображение без обрезки */
.news-detail-cover {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  background: var(--slate-100);
  display: flex;
  justify-content: center;
}

.news-detail-cover img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
}

.news-detail-excerpt {
  font-size: 18px;
  line-height: 1.7;
  color: var(--slate-500);
  font-style: italic;
  border-left: 3px solid var(--blue-500);
  padding-left: 20px;
  margin-bottom: 32px;
}

/* Rich editor body styles */
.article-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--slate-800);
}

.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--slate-800);
}

.article-body h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--slate-800);
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 3px solid var(--blue-500);
  margin: 32px 0;
  padding: 16px 24px;
  background: var(--slate-50);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--slate-500);
}

.article-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 24px 0;
}

.article-body a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover {
  text-decoration: none;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.article-body th,
.article-body td {
  border: 1px solid var(--slate-200);
  padding: 10px 14px;
  text-align: left;
}

.article-body th {
  background: var(--slate-50);
  font-weight: 600;
}

.news-detail-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--slate-200);
  flex-wrap: wrap;
}

/* .share-btn--text removed — uses .btn-outline instead */

/* Sidebar */
.news-detail-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-block {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 24px;
}

.sidebar-block-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--slate-200);
}

.sidebar-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-news-link {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: opacity .2s;
}

.sidebar-news-link:hover {
  opacity: .75;
}

.sidebar-news-img {
  flex-shrink: 0;
  width: 80px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
}

.sidebar-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-news-body {
  min-width: 0;
}

.sidebar-news-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.sidebar-news-title {
  font-size: 13px;
  line-height: 1.5;
  margin: 4px 0;
  font-weight: 500;
}

.sidebar-news-date {
  font-size: 12px;
  color: var(--slate-400);
}

/* Card image link */
.news-page-card-img-link {
  display: block;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .news-detail-layout {
    grid-template-columns: 1fr;
  }

  .news-detail-sidebar {
    position: static;
  }

  .sidebar-block {
    max-width: 560px;
  }

  .sidebar-news-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-news-item {
    flex: 1 1 200px;
  }
}

@media (max-width: 600px) {
  .news-detail-excerpt {
    font-size: 16px;
  }

  .article-body {
    font-size: 15px;
  }

  .article-body h2 {
    font-size: 20px;
  }

  .article-body h3 {
    font-size: 17px;
  }

  .sidebar-news-list {
    flex-direction: column;
  }
}

/* ===== INTERACTIVE MAP ===== */
.kz-map-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1035px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
}

/* SVG interactive map */
.kz-svg-map {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.kz-svg-map .kz-region {
  fill: rgba(56, 189, 248, 0.35);
  stroke: rgba(56, 160, 230, 0.7);
  stroke-width: 0.8;
  cursor: pointer;
  transition: fill 0.18s ease, stroke 0.18s ease;
  outline: none;
}

.kz-svg-map .kz-region:hover,
.kz-svg-map .kz-region:focus {
  fill: rgba(56, 110, 200, 0.6);
  stroke: rgba(56, 110, 200, 0.9);
  stroke-width: 1;
}

.kz-svg-map .kz-city-dot {
  fill: #f59e0b;
  stroke: white;
  stroke-width: 1.5;
  cursor: pointer;
  filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.8));
  transition: r 0.15s ease, fill 0.15s ease;
}

.kz-svg-map .kz-city-dot:hover,
.kz-svg-map .kz-city-dot:focus {
  fill: white;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 1));
  outline: none;
}

.kz-city-label {
  font-size: 12px;
  fill: rgba(255, 255, 255, 0.85);
  text-anchor: middle;
  pointer-events: none;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.kz-center-dot {
  fill: rgba(255, 255, 255, 0.7);
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 0.6;
}

.kz-center-label {
  font-size: 9px;
  fill: rgba(255, 255, 255, 0.65);
  text-anchor: middle;
  font-family: inherit;
  font-weight: 500;
}

/* Modal overlay */
.kz-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 32, 87, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: kzFadeIn 0.2s ease;
}

.kz-overlay[hidden] {
  display: none;
}

@keyframes kzFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.kz-modal {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  position: relative;
  animation: kzSlideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

/* PDF modal */
.kz-modal.pdf-modal {
  width: 90vw;
  max-width: 90vw;
  height: 90vh;
  max-height: 90vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pdf-modal .kz-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.pdf-modal .kz-modal-close:hover {
  background: rgba(255, 255, 255, 0.35);
  color: white;
}

.pdf-modal-embed {
  width: 100%;
  flex: 1;
  overflow: hidden;
}

.pdf-modal-embed embed {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

@keyframes kzSlideUp {
  from {
    transform: translateY(24px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.kz-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  width: 36px;
  height: 36px;
  background: var(--slate-100);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--slate-500);
  transition: var(--transition);
}

.kz-modal-close:hover {
  background: var(--slate-200);
  color: var(--slate-800);
}

/* ===== CONSENT CHECKBOX ===== */
.form-consent {
  margin-top: 4px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.consent-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--blue-600);
  cursor: pointer;
}

.consent-text {
  font-size: 13px;
  color: var(--slate-600);
  line-height: 1.5;
}

.consent-link {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: var(--blue-600);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.consent-link:hover {
  color: var(--blue-800);
}

/* ===== CONSENT MODAL ===== */
.consent-modal {
  max-width: 540px;
  padding: 40px 36px 32px;
}

.consent-modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.consent-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-800);
  padding-right: 32px;
  line-height: 1.4;
}

.consent-modal-intro {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.6;
}

.consent-modal-list {
  padding-left: 20px;
  font-size: 14px;
  color: var(--slate-700);
  line-height: 1.8;
}

.consent-modal-purpose {
  font-size: 14px;
  color: var(--slate-600);
  line-height: 1.6;
}

.consent-modal-note {
  font-size: 13px;
  color: var(--slate-400);
  line-height: 1.6;
  border-top: 1px solid var(--slate-100);
  padding-top: 12px;
}

.kz-card {
  display: flex;
  flex-direction: column;
}

.kz-card-photo {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--slate-100);
}

.kz-card-photo img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 45vh;
  object-fit: contain;
  object-position: center top;
}

.kz-card-info {
  padding: 16px 28px 32px;
}

.kz-card-title {
  font-family: 'Onest', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.3;
  margin-bottom: 12px;
  padding-right: 32px;
  text-align: center;
}

.kz-card-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 16px;
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.kz-card-head-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--blue-800);
}

.kz-card-head-title {
  font-size: 13px;
  color: var(--slate-500);
}

.kz-card-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kz-card-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--slate-700);
}

.kz-card-row a {
  color: var(--blue-600);
  text-decoration: none;
}

.kz-card-row a:hover {
  text-decoration: underline;
}

.kz-card-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--blue-400);
  margin-top: 1px;
}

.kz-address-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.kz-address-wrap>a:first-child {
  color: var(--blue-600);
  text-decoration: none;
}

.kz-address-wrap>a:first-child:hover {
  text-decoration: underline;
}

.kz-route-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--blue-600);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-sm);
  padding: 2px 8px;
  text-decoration: none;
  transition: var(--transition);
  flex-shrink: 0;
}

.kz-route-btn:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

/* Branch title above photo */
.kz-card-title-wrap {
  padding: 24px 28px 0;
}

.kz-card-title-wrap .kz-card-title {
  margin-bottom: 0;
}

/* Divider between branches */
.kz-branch-divider {
  height: 1px;
  background: var(--slate-200);
  margin: 0;
}

@media (max-width: 600px) {
  .kz-card-info {
    padding: 12px 20px 24px;
  }

  .kz-card-title {
    font-size: 16px;
  }

  .kz-card-title-wrap {
    padding: 20px 20px 12px;
  }
}

/* ============================================
   ABOUT PAGES
   ============================================ */

/* ===== ABOUT PAGE WRAPPER ===== */
.about-page-wrap {
  background: var(--slate-50);
}

.about-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 48px 0 80px;
  align-items: start;
}

/* ===== ABOUT SIDEBAR NAV ===== */
.about-sidebar {
  position: sticky;
  top: 100px;
}

.about-subnav {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
  overflow: hidden;
}

.about-subnav-title {
  background: var(--blue-900);
  color: white;
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 20px;
}

.about-subnav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--slate-600);
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--slate-100);
  transition: var(--transition);
  text-decoration: none;
}

.about-subnav a:last-child {
  border-bottom: none;
}

.about-subnav a svg {
  flex-shrink: 0;
  color: var(--slate-400);
  transition: var(--transition);
}

.about-subnav a:hover {
  background: var(--blue-50);
  color: var(--blue-700);
  border-left-color: var(--blue-300);
}

.about-subnav a:hover svg {
  color: var(--blue-500);
}

.about-subnav a.active {
  background: var(--blue-50);
  color: var(--blue-700);
  border-left-color: var(--blue-600);
  font-weight: 600;
}

.about-subnav a.active svg {
  color: var(--blue-600);
}

/* ===== ABOUT CONTENT AREA ===== */
.about-content {
  min-width: 0;
}

.about-section-header {
  margin-bottom: 32px;
}

.about-section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--blue-950);
  margin-bottom: 10px;
}

.about-section-desc {
  font-size: 16px;
  color: var(--slate-500);
  line-height: 1.6;
  max-width: 600px;
}

.about-empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--slate-400);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: white;
  border-radius: var(--radius);
  border: 1px dashed var(--slate-200);
}

.about-empty p {
  font-size: 15px;
  max-width: 400px;
  line-height: 1.6;
}

/* ===== HISTORY PAGE ===== */
.history-content {
  max-width: 780px;
}

.history-lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--slate-600);
  margin-bottom: 40px;
  font-weight: 400;
}

.history-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 0 40px;
}

.history-stat {
  background: white;
  border-radius: var(--radius);
  padding: 22px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
  text-align: center;
}

.history-stat-value {
  font-family: 'Onest', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--blue-700);
  line-height: 1.1;
  margin-bottom: 6px;
}

.history-stat-label {
  font-size: 12px;
  color: var(--slate-500);
  line-height: 1.4;
}

.history-section {
  margin-bottom: 44px;
}

.history-section h2 {
  font-family: 'Onest', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-100);
}

.history-section p {
  color: var(--slate-600);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 15px;
}

.history-section p strong {
  color: var(--slate-800);
  font-weight: 600;
}

.history-quote {
  border-left: 4px solid var(--blue-500);
  background: var(--blue-50);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 32px 0;
  font-style: italic;
  color: var(--slate-700);
  font-size: 16px;
  line-height: 1.7;
}

.history-photo-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}

.history-photo-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255, 255, 255, 0.025) 20px, rgba(255, 255, 255, 0.025) 40px);
}

.history-photo-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-family: 'Onest', sans-serif;
  text-align: center;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

/* ===== PERSON CARDS ===== */
.persons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.persons-grid--management {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.person-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
  overflow: hidden;
  transition: var(--transition);
}

.person-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.person-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.person-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-200));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-300);
}

.person-info {
  padding: 18px 20px 22px;
}

.person-name {
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--slate-900);
  margin-bottom: 5px;
  line-height: 1.3;
}

.person-position {
  font-size: 13px;
  color: var(--blue-600);
  font-weight: 500;
  line-height: 1.4;
}

.person-bio {
  font-size: 12.5px;
  color: var(--slate-500);
  margin-top: 10px;
  line-height: 1.6;
}

/* ===== DOCUMENTS LIST ===== */
.documents-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.document-item {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.document-item:hover {
  box-shadow: var(--shadow-md);
}

.document-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}

.document-header:hover {
  background: var(--slate-50);
}

.document-item.is-open .document-header {
  background: var(--blue-50);
  border-bottom: 1px solid var(--blue-100);
}

.document-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-600);
  transition: var(--transition);
}

.document-item.is-open .document-icon {
  background: var(--blue-600);
  color: white;
}

.document-title {
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--slate-800);
  line-height: 1.4;
  flex: 1;
}

.document-title-wrap .document-title {
  flex: none;
}

.document-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--slate-500);
}

.document-item.is-open .document-toggle {
  background: var(--blue-600);
  color: white;
  transform: rotate(180deg);
}

.document-embed {
  display: none;
  padding: 0 22px 22px;
}

.document-item.is-open .document-embed {
  display: block;
}

.document-embed object {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  display: block;
}

.document-fallback {
  padding: 24px;
  text-align: center;
  color: var(--slate-500);
  border: 1px dashed var(--slate-200);
  border-radius: var(--radius-sm);
}

.document-fallback p {
  margin-bottom: 16px;
  font-size: 14px;
}

.document-no-file {
  padding: 20px;
  color: var(--slate-400);
  font-size: 14px;
  text-align: center;
}

.document-date {
  font-size: 13px;
  color: var(--slate-400);
  white-space: nowrap;
  margin-right: 4px;
}

/* ===== DECISIONS SECTIONS ===== */
.decisions-sections {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.decisions-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Onest', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue-100);
}

.decisions-group-title svg {
  color: var(--blue-600);
  flex-shrink: 0;
}

.decisions-group-empty {
  color: var(--slate-400);
  font-size: 14px;
  padding: 16px 0;
}

/* ===== DOCUMENT FILTERS ===== */
.doc-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--slate-50);
  border-radius: var(--radius);
  border: 1px solid var(--slate-100);
  max-width: 100%;
  min-width: 0;
}

.doc-filter-bodies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.doc-filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-600);
  background: white;
  border: 1.5px solid var(--slate-200);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.doc-filter-btn:hover {
  border-color: var(--blue-400);
  color: var(--blue-600);
}

.doc-filter-btn.is-active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: white;
}

.doc-filter-years {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.doc-filter-years-label {
  font-size: 13px;
  color: var(--slate-500);
  font-weight: 500;
  margin-right: 4px;
}

.doc-filter-year {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-600);
  background: white;
  border: 1.5px solid var(--slate-200);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.doc-filter-year:hover {
  border-color: var(--blue-400);
  color: var(--blue-600);
}

.doc-filter-year.is-active {
  background: var(--blue-100);
  border-color: var(--blue-300);
  color: var(--blue-700);
  font-weight: 600;
}

.doc-results-info {
  font-size: 14px;
  color: var(--slate-500);
  margin-bottom: 12px;
}

.document-title-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.document-body-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 4px;
  padding: 2px 8px;
  align-self: flex-start;
}

@media (max-width: 640px) {

  .doc-filter-bodies,
  .doc-filter-years {
    gap: 6px;
  }

  .doc-filter-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* ===== MEMBER ORGS GRID ===== */
.member-orgs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.member-org-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-100);
  overflow: hidden;
  transition: var(--transition);
}

.member-org-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.member-org-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 20px 14px;
  border-bottom: 1px solid var(--slate-100);
}

.member-org-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.member-org-name {
  font-family: 'Onest', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--slate-900);
  line-height: 1.3;
  padding-top: 3px;
}

.member-org-body {
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.member-org-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--slate-600);
}

.member-org-row svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--blue-400);
}

.member-org-row-label {
  font-size: 11px;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.member-org-row-value {
  font-weight: 600;
  color: var(--slate-800);
}

.member-org-row-sub {
  font-size: 12px;
  color: var(--slate-500);
  margin-top: 1px;
}

.member-org-link {
  color: var(--blue-600);
  text-decoration: none;
  transition: var(--transition);
}

.member-org-link:hover {
  color: var(--blue-800);
  text-decoration: underline;
}

.member-org-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--slate-100);
}

.member-org-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-600);
  text-decoration: none;
  transition: var(--transition);
}

.member-org-map-btn:hover {
  color: var(--blue-800);
}

/* ===== RESPONSIVE ABOUT ===== */
@media (max-width: 1024px) {

  /* minmax(0,1fr) вместо 1fr — grid-item может сжиматься до 0, иначе
     контент распирает колонку шире экрана                             */
  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0 0 60px;
  }

  /* min-width:0 нужен, чтобы flex/grid-item не был шире родителя      */
  .about-sidebar {
    position: static;
    min-width: 0;
    max-width: 100%;
  }

  /* Горизонтальная Tab-bar навигация вместо вертикального сайдбара.
     overflow-x:auto + flex-wrap:nowrap = скролл пальцем              */
  .about-subnav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    box-shadow: none;
    border-bottom: 2px solid var(--slate-200);
    background: white;
  }

  .about-subnav::-webkit-scrollbar {
    display: none;
  }

  .about-subnav-title {
    display: none;
  }

  .about-subnav a {
    border-left: none;
    border-bottom: 3px solid transparent;
    border-right: none;
    padding: 12px 14px;
    font-size: 13px;
    flex: none;
    white-space: nowrap;
  }

  .about-subnav a:hover,
  .about-subnav a.active {
    border-left-color: transparent;
    border-bottom-color: var(--blue-600);
    background: transparent;
  }

  /* Заголовок группы скрываем полностью — в горизонтальном tab-bar
     он не помещается и перекрывает соседние вкладки                  */
  .about-subnav-group {
    display: none;
  }

  /* Убираем indent sub-пунктов — в горизонтальном tab-bar он лишний */
  .about-subnav a.about-subnav-sub {
    padding-left: 14px;
    font-size: 13px;
  }

  .about-content {
    padding-top: 32px;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .history-stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .persons-grid,
  .persons-grid--management {
    grid-template-columns: 1fr 1fr;
  }

  .member-orgs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {

  .persons-grid,
  .persons-grid--management {
    grid-template-columns: 1fr;
  }
}


/* ── About nav: group headers & sub-items ───────────────────────────── */
.about-subnav-group {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  padding: 14px 12px 4px;
  pointer-events: none;
}

.about-subnav a.about-subnav-sub {
  padding-left: 28px;
  font-size: 0.88rem;
}

/* ── Nav dropdown: group dividers & sub-items ───────────────────────── */
.nav-dropdown-divider {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  padding: 10px 16px 4px;
  pointer-events: none;
  cursor: default;
  border-top: 1px solid var(--slate-100);
  margin-top: 4px;
}

.nav-dropdown a.nav-dropdown-sub {
  padding-left: 28px;
  font-size: 0.88rem;
}

/* ── Mobile nav sub-items ───────────────────────────────────────────── */
.mobile-nav-item.mobile-nav-sub {
  padding-left: 32px;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ── Staff contacts table ───────────────────────────────────────────── */
.staff-table {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  background: #fff;
}

.staff-contacts {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.staff-contacts thead tr {
  background: var(--slate-50, #f8fafc);
  border-bottom: 2px solid var(--slate-200);
}

.staff-contacts th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500, #64748b);
}

.staff-contacts tbody tr {
  border-bottom: 1px solid var(--slate-100, #f1f5f9);
  transition: background 0.15s;
}

.staff-contacts tbody tr:last-child {
  border-bottom: none;
}

.staff-contacts tbody tr:hover {
  background: var(--slate-50, #f8fafc);
}

.staff-contacts td {
  padding: 13px 16px;
  vertical-align: middle;
}

.staff-name {
  font-weight: 600;
  color: var(--slate-800, #1e293b);
}

.staff-position {
  color: var(--slate-600, #475569);
}

.staff-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-600);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.staff-phone-link:hover {
  color: var(--blue-700, #1d4ed8);
}

.staff-phone-empty {
  color: var(--slate-300);
}

@media (max-width: 768px) {
  .staff-contacts thead {
    display: none;
  }

  .staff-contacts,
  .staff-contacts tbody,
  .staff-contacts tr,
  .staff-contacts td {
    display: block;
  }

  .staff-contacts tbody tr {
    padding: 12px 16px;
    border-bottom: 1px solid var(--slate-200);
  }

  .staff-contacts td {
    padding: 2px 0;
  }

  .staff-name {
    font-size: 1rem;
    margin-bottom: 2px;
  }

  .staff-position {
    font-size: 0.85rem;
    margin-bottom: 4px;
  }
}

/* ============================================================
   МОБИЛЬНАЯ АДАПТАЦИЯ — КОМПЛЕКСНЫЕ ИСПРАВЛЕНИЯ
   ============================================================ */

/* Встроенные медиа не выходят за ширину контейнера */
object,
iframe,
embed,
video {
  max-width: 100%;
}

/* ---- Шапка: лого + название организации на мобильных ----
   Стратегия: header-actions фиксирован, иконка фиксирована,
   .logo-text растягивается на оставшееся место через flex:1.  */
@media (max-width: 1100px) {

  /* Лого может сжиматься — освобождает место для кнопок */
  .logo {
    flex-shrink: 1;
    min-width: 0;
  }

  /* Иконка фиксирована, не сжимается */
  .logo-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  /* Текстовый блок занимает всё оставшееся в .logo пространство.
     flex: 1 1 0 + min-width: 0 — стандартный паттерн для
     «растянуть но не выйти за границу».                        */
  .logo-text {
    flex: 1 1 0;
    min-width: 0;
  }

  .logo-text-main {
    font-size: 12px;
    max-width: none;
    line-height: 1.25;
    word-break: break-word;
  }

  .logo-text-sub {
    font-size: 10px;
    max-width: none;
    line-height: 1.25;
    word-break: break-word;
  }
}

@media (max-width: 560px) {
  .header .container {
    gap: 8px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .logo {
    gap: 8px;
  }

  .logo-text-main {
    font-size: 11px;
  }

  .logo-text-sub {
    font-size: 9.5px;
  }
}

/* ---- PDF в <object>: скрываем на мобильных, показываем кнопку ----
   На мобильных браузерах embedded PDF растягивается шире экрана.
   Показываем вместо него удобную кнопку «Открыть PDF».            */
.document-mobile-link {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  color: var(--blue-700);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition);
  margin: 8px 0 0;
}

.document-mobile-link svg {
  flex-shrink: 0;
}

.document-mobile-link:hover {
  background: var(--blue-100);
  color: var(--blue-800);
}

@media (max-width: 640px) {

  .document-embed object,
  .document-embed iframe,
  .document-embed embed {
    display: none;
  }

  .document-mobile-link {
    display: flex;
  }
}

/* ---- Попапы карты: bottom-sheet на мобильных ----
   На мобильных (≤ 540px) модальное окно появляется снизу
   как sheet, а не по центру — удобнее для больших пальцев. */
@media (max-width: 540px) {
  .kz-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .kz-modal {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 88vh;
    max-width: 100%;
  }
}

/* Длинные адреса/email/ссылки не разрывают карточку региона */
.kz-card-row,
.kz-card-row a,
.kz-card-head-name,
.kz-card-head-title {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ---- Контейнер: уменьшенные отступы на очень малых экранах ---- */
@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }
}

/* ---- Мобильное меню: чуть компактнее на малых экранах ---- */
@media (max-width: 400px) {
  .mobile-nav-item {
    padding: 10px 16px;
    font-size: 14px;
  }

  .mobile-nav-item.mobile-nav-sub {
    padding-left: 28px;
    font-size: 13px;
  }
}


/* ---- Фильтры решений: перенос кнопок на мобильных ---- */
@media (max-width: 640px) {

  /* Убеждаемся что контейнер не шире экрана */
  .doc-filters {
    padding: 14px 16px;
    max-width: 100%;
  }

  /* flex-wrap: wrap уже стоит по умолчанию — кнопки переносятся сами.
     Нужно только убедиться что контейнер ограничен шириной.         */
  .doc-filter-bodies {
    flex-wrap: wrap;
    max-width: 100%;
  }
}

/* ---- Контент страниц о нас / документы / деятельность: не выходит за экран ---- */
.about-content,
.about-section-desc,
.about-section-title {
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

/* ---- Карта Leaflet (страница регионов): тач-зум ---- */
#regions-map {
  touch-action: pan-x pan-y;
}

/* ---- Таблицы: запрет выхода за ширину ---- */
.staff-table,
table {
  width: 100%;
  table-layout: fixed;
}

/* ============================================
   EVENTS CALENDAR
   ============================================ */

.events-section {
  padding: 80px 0 100px;
}

/* Layout: content (left, wide) | sidebar (right, fixed) */
.events-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
  margin-top: 48px;
}

/* ---- Left: event detail area ---- */
.events-detail {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.events-detail-empty[hidden],
.events-detail-content[hidden],
.events-panel-empty[hidden],
.events-panel-content[hidden] {
  display: none !important;
}

.events-detail-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 64px 48px;
  color: var(--slate-300);
  text-align: center;
}

.events-detail-empty p {
  font-size: 1rem;
  color: var(--slate-400);
  line-height: 1.6;
  max-width: 320px;
}

.events-detail-content {
  padding: 48px 52px 52px;
  animation: fadeInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.events-detail-image {
  margin-bottom: 24px;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}

.events-detail-image img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.events-detail-image[hidden] {
  display: none !important;
}

.events-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.events-detail-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--slate-500);
}

.events-detail-title {
  font-family: 'Onest', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.25;
  margin-bottom: 28px;
}

.events-detail-desc {
  font-size: 1rem;
  color: var(--slate-700);
  line-height: 1.75;
}

.events-detail-desc p {
  margin-bottom: 14px;
}

.events-detail-desc p:last-child {
  margin-bottom: 0;
}

/* ---- Right sidebar ---- */
.events-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Calendar card */
.events-calendar-wrap {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px;
}

/* Month navigation */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-nav-title {
  font-family: 'Onest', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-800);
  text-align: center;
  flex: 1;
}

.cal-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--slate-600);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.cal-nav-btn:hover {
  background: var(--blue-50);
  border-color: var(--blue-300);
  color: var(--blue-600);
}

/* Weekday headers */
.cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
  text-align: center;
}

.cal-weekdays div {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 0;
}

/* Calendar grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.cal-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  position: relative;
  transition: background var(--transition);
}

.cal-cell--empty {
  pointer-events: none;
}

.cal-cell-num {
  font-size: 0.8rem;
  color: var(--slate-600);
  line-height: 1;
}

.cal-cell--today {
  background: var(--blue-50);
}

.cal-cell--today .cal-cell-num {
  font-weight: 700;
  color: var(--blue-600);
}

.cal-cell--has-events {
  cursor: pointer;
}

.cal-cell--has-events:hover,
.cal-cell--has-events:focus {
  background: var(--blue-100);
  outline: none;
}

.cal-cell--has-events .cal-cell-num {
  color: var(--slate-800);
  font-weight: 600;
}

.cal-cell--selected {
  background: var(--blue-600) !important;
}

.cal-cell--selected .cal-cell-num {
  color: #fff !important;
}

/* Event dots */
.cal-cell-dots {
  display: flex;
  gap: 2px;
  margin-top: 2px;
}

.cal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-400);
}

.cal-cell--selected .cal-dot {
  background: rgba(255, 255, 255, 0.7);
}

/* ---- Day events panel ---- */
.events-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.events-panel-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 20px;
  color: var(--slate-400);
  text-align: center;
}

.events-panel-empty p {
  font-size: 0.82rem;
  line-height: 1.4;
}

.events-panel-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--slate-100);
}

.events-panel-date {
  font-family: 'Onest', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-700);
  margin: 0;
}

/* Events list */
.events-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  max-height: 320px;
  overflow-y: auto;
}

.events-list-item {
  padding: 12px 20px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.events-list-item:hover,
.events-list-item.active {
  background: var(--blue-50);
  border-left-color: var(--blue-500);
}

.events-list-item-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--slate-800);
  margin-bottom: 3px;
  line-height: 1.35;
}

.events-list-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--slate-500);
}

.events-list-item-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .events-layout {
    grid-template-columns: 1fr 320px;
  }
}

@media (max-width: 900px) {
  .events-layout {
    grid-template-columns: 1fr;
  }

  .events-sidebar {
    order: -1;
  }

  .events-detail {
    min-height: auto;
  }
}

@media (max-width: 600px) {
  .events-calendar-wrap {
    padding: 16px 12px;
  }

  .events-detail-content {
    padding: 28px 24px 32px;
  }

  .events-detail-title {
    font-size: 1.3rem;
  }
}

/* ===== NEWS ARCHIVE ===== */
.news-archive-section {
  padding: 48px 0 80px;
}

.news-archive-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: start;
}

/* Left: calendar sidebar */
.news-archive-sidebar {
  position: sticky;
  top: 90px;
}

/* Right: results panel */
.news-archive-results {
  min-height: 480px;
}

.news-archive-panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-height: 480px;
  padding: 0;
  overflow: hidden;
}

/* Panel header (date + count) */
.news-archive-panel-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--slate-100);
}

.news-archive-panel-title {
  font-family: 'Onest', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin: 0;
}

.news-archive-panel-count {
  font-size: 0.82rem;
  color: var(--slate-400);
}

/* News cards grid inside panel */
.news-archive-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 24px 28px 28px;
  animation: fadeInUp 0.25s ease;
}

/* Empty state for a day with no news */
.news-archive-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 64px 40px;
  color: var(--slate-300);
  text-align: center;
}

.news-archive-empty p {
  font-size: 0.95rem;
  color: var(--slate-400);
  line-height: 1.5;
}

/* Placeholder (no day selected) */
.news-archive-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 80px 40px;
  color: var(--slate-300);
  text-align: center;
  min-height: 480px;
}

.news-archive-placeholder p {
  font-size: 1rem;
  color: var(--slate-400);
  line-height: 1.6;
  max-width: 320px;
}

/* Responsive */
@media (max-width: 1100px) {
  .news-archive-layout {
    grid-template-columns: 340px 1fr;
  }
}

@media (max-width: 900px) {
  .news-archive-layout {
    grid-template-columns: 1fr;
  }

  .news-archive-sidebar {
    position: static;
  }

  .news-archive-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .news-archive-panel-header {
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px 14px;
  }

  .news-archive-cards {
    padding: 16px 16px 20px;
    gap: 16px;
  }
}