/* Современный стиль: видеофон, чистые формы, акценты */

:root {
  --color-primary: #0ea5e9;
  --color-primary-dark: #0284c7;
  --color-primary-light: #e0f2fe;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-bg: #fff;
  --color-bg-alt: #f8fafc;
  --color-border: #e2e8f0;
  --radius: 10px;
  --radius-lg: 10px;
  --radius-xl: 10px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --font-main: 'Open Sans', 'PT Sans', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Верхняя полоса — компактная, аккуратная */
.top-bar {
  background: linear-gradient(90deg, #0c4a6e 0%, var(--color-primary-dark) 100%);
  color: #fff;
  font-size: 12px;
  padding: 10px 0;
  min-height: 40px;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
}

.top-bar a:hover {
  text-decoration: underline;
}

.top-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
}

.top-links a {
  padding: 2px 4px;
  white-space: nowrap;
  border-radius: 4px;
}

.top-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.top-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.top-phones {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.phone {
  white-space: nowrap;
}

.phone-sep {
  opacity: 0.7;
  font-size: 10px;
  margin: 0 1px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px 4px;
}

.lang-switcher .lang-label {
  margin-right: 2px;
  opacity: 0.9;
  font-size: 11px;
}

.lang-switcher a {
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.lang-switcher a.active {
  background: rgba(255, 255, 255, 0.25);
}

.lang-switcher a:hover:not(.active) {
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.social {
  display: flex;
  align-items: center;
  gap: 4px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
}

.social a:hover {
  background: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}

/* Основная навигация — лёгкий стеклянный эффект */
.main-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 20px;
}

.logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  color: var(--color-primary);
  font-weight: 700;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.logo-img {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
  align-items: center;
}

.nav-menu > li > a {
  display: block;
  padding: 10px 12px;
  color: var(--color-text);
  font-weight: 600;
  font-size: 12px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.nav-menu > li > a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  text-decoration: none;
}

.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  list-style: none;
  margin: 4px 0 0;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  border: 1px solid var(--color-border);
}

.has-dropdown:hover .dropdown,
.dropdown.open {
  opacity: 1;
  visibility: visible;
}

.dropdown li a {
  display: block;
  padding: 8px 16px;
  color: var(--color-text);
  font-size: 13px;
}

.dropdown li a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
  border-radius: var(--radius);
}

@media (max-width: 992px) {
  .nav-toggle {
    display: block;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px;
    box-shadow: var(--shadow-hover);
  }
  .nav-menu.open {
    display: flex;
  }
  .has-dropdown .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    margin: 4px 0 4px 16px;
    padding: 4px 0;
    display: none;
  }
  .has-dropdown:hover .dropdown,
  .has-dropdown .dropdown.open {
    display: block;
  }
}

/* Герой с видеофоном */
.hero {
  position: relative;
  color: #fff;
  padding: 48px 0 56px;
  min-height: 0;
}

.hero--video {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-width: 177.78vh; /* чтобы кадр перекрывал экран по высоте */
  min-height: 100vh;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.7) 0%, rgba(2, 6, 23, 0.45) 50%, rgba(2, 6, 23, 0.8) 100%);
  backdrop-filter: blur(1px);
}

.hero--video .hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0 0 48px;
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.95;
  text-align: center;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.hero-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 26px;
  color: #fff;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.hero-card:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  text-decoration: none;
  color: #fff;
}

.hero-card-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.hero-card-desc {
  font-size: 14px;
  opacity: 0.92;
  line-height: 1.45;
}

/* Секции контента */
.main-content {
  padding: 48px 0 64px;
}

.section {
  margin-bottom: 56px;
}

.section:last-child {
  margin-bottom: 0;
}

.section-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.section-desc {
  margin: 0 0 24px;
  color: var(--color-text-muted);
  max-width: 600px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.section-link {
  font-weight: 600;
  color: var(--color-primary);
}

.section-link:hover {
  text-decoration: none;
}

/* Скрыть раздел "Актуальное" */
.quick-links-section {
  display: none;
}

/* Домашние панели: новости + гид */
.home-dashboard {
  margin-bottom: 40px;
}

.home-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 1.4fr);
  gap: 16px;
  align-items: stretch;
}

.home-main-news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #020617;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  min-height: 220px;
}

.home-main-news-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.home-main-news-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?w=1400&auto=format&fit=crop&q=85") center top / cover no-repeat;
  transform: scale(1);
  transition: transform 0.45s ease-out;
}

.home-main-news-card:hover .home-main-news-image::before {
  transform: scale(1.04);
}

.home-main-news-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px 16px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6), transparent);
}

.home-main-news-label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  color: var(--color-primary-dark);
}

.home-main-news-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}

.home-panel {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 16px 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.home-panel-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary-dark);
}

.home-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.home-news-list li {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
}

.home-news-list li:last-child {
  border-bottom: none;
}

.home-news-time {
  flex-shrink: 0;
  width: 52px;
  color: var(--color-primary);
  font-weight: 600;
}

.home-news-list a {
  color: var(--color-text);
}

.home-news-list a:hover {
  color: var(--color-primary-dark);
  text-decoration: none;
}

.home-guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.home-guide-card {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid rgba(148, 163, 184, 0.5);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  min-height: 120px;
  justify-content: space-between;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.home-guide-card:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  transform: translateY(-1px);
  text-decoration: none;
}

.home-guide-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.home-guide-text {
  font-size: 13px;
  color: var(--color-text-muted);
}

.home-media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.home-media-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.5);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  height: 120px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.home-media-card:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.home-media-thumb {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  padding-bottom: 0;
  background: #0f172a;
}

.home-media-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.25s ease-out;
}

.home-media-card:nth-child(1) .home-media-thumb::before {
  background-image: url("https://img.youtube.com/vi/JyDsfZY6yYw/hqdefault.jpg");
}

.home-media-card:nth-child(2) .home-media-thumb::before {
  background-image: url("https://img.youtube.com/vi/dQw4w9WgXcQ/hqdefault.jpg");
}

.home-media-card:nth-child(3) .home-media-thumb::before {
  background-image: url("https://img.youtube.com/vi/aqz-KE-bpKQ/hqdefault.jpg");
}

.home-media-card:hover .home-media-thumb::before {
  transform: scale(1.05);
}

.home-media-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid #fff;
  font-size: 16px;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.8);
}

.home-media-title {
  display: none;
}

/* Приём абитуриентов — дизайн как на скриншоте (заголовок + белая карточка) */
.notice-banner {
  margin-bottom: 48px;
}

.notice-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 16px;
}

.notice-banner-heading {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.02em;
}

.notice-banner-section-link {
  font-size: 15px;
  color: #4285F4;
  text-decoration: underline;
  font-weight: 500;
}

.notice-banner-section-link:hover {
  color: #3367d6;
  text-decoration: underline;
}

.notice-banner-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.notice-banner-card:hover {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.notice-banner-body {
  padding: 28px 32px 32px;
  max-width: 640px;
}

.notice-banner-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #000;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.notice-banner-desc {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
  color: #1a1a1a;
  font-weight: 400;
}

.notice-banner-contacts {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.notice-banner-contacts a {
  color: #4285F4;
  font-weight: 600;
}

.notice-banner-contacts a:hover {
  text-decoration: underline;
}

.notice-banner-btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 8px;
  background: #4285F4;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.notice-banner-btn:hover {
  background: #3367d6;
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

/* Блок "В облаке" / "Туториал" */
.cloud-section {
  margin-bottom: 56px;
}

.cloud-header {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 20px;
  align-items: baseline;
  margin-bottom: 20px;
}

.cloud-header-left,
.cloud-header-right {
  min-width: 0;
}

.cloud-heading {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
}

.cloud-header-link {
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.cloud-header-link:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

.cloud-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.4fr);
  gap: 20px;
  align-items: stretch;
}

/* Слайдер \"Ақпарат\" с данными спортсменов (правая колонка) */
.akparat-slider {
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  min-height: 320px;
}

.akparat-slide {
  display: none;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 20px;
  padding: 24px 20px 24px;
  align-items: center;
  min-height: 320px;
}

.akparat-slide--active {
  display: grid;
}

.akparat-slide-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.akparat-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}

.akparat-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.akparat-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text);
}

.akparat-slide-photo {
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-bg-alt);
  justify-self: stretch;
  height: 220px;
}

.akparat-slide-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


.cloud-main-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.cloud-main-media {
  position: relative;
  flex: 1;
  min-height: 260px;
  background: #020617;
}

.cloud-main-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/paper-clips-bg.png") center center / cover no-repeat;
  transform: scale(1.02);
  transition: transform 0.4s ease-out;
  z-index: 0;
}

.cloud-main-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 1;
}

.cloud-main-card:hover .cloud-main-media::before {
  transform: scale(1.05);
}

.cloud-main-text {
  position: absolute;
  inset: 32px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.cloud-side-card {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr);
  align-items: stretch;
  gap: 4px;
  background: #f9fafb;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  padding: 26px;
  min-height: 0;
}

.cloud-side-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cloud-side-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
}

.cloud-side-text {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}

.cloud-side-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 6px;
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.4);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cloud-side-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(2, 132, 199, 0.5);
  text-decoration: none;
}

.cloud-side-illustration {
  position: relative;
  border-radius: 24px;
  min-height: 140px;
  height: 100%;
  margin-left: 10px;
  overflow: hidden;
  background: #f1f5f9;
}

.cloud-side-illustration img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Объявления — карточки */
.announcements-section {
  padding: 0;
}

.announcements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.announcement-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.announcement-card:hover {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--color-text);
}

.announcement-card-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.announcement-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Карточки (гранты и т.п.) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 26px;
  color: var(--color-text);
  text-decoration: none;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.card:hover {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--color-text);
}

.card-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.card-text {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Новости с фотографиями */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.news-card:hover {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  transform: translateY(-4px);
}

.news-card-image-wrap {
  display: block;
  aspect-ratio: 5/3;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.news-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-card:hover .news-card-image {
  transform: scale(1.05);
}

.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-date {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.news-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
}

.news-title a {
  color: var(--color-text);
}

.news-title a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.news-excerpt {
  margin: 0;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Медиагалерея: одна большая картинка (та же форма) + меню справа */
.media-gallery-section {
  margin-top: 16px;
}

.media-gallery-section .section-title {
  margin-bottom: 16px;
}

.media-gallery-card--with-menu {
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  overflow: visible;
}

.media-gallery-main {
  position: relative;
  overflow: visible;
  aspect-ratio: 1170 / 610;
  border-radius: 10px 10px 0 0;
}

/* Нижняя часть картинки: срез справа 70%, снизу 80px; скругление 10px у внутреннего угла (SVG path) */
.media-gallery-main-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 10px 10px 10px 10px;
  clip-path: url(#media-gallery-img-clip);
}

.media-gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.media-gallery-slide--active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.media-gallery-main-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  vertical-align: middle;
}

.media-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(2, 132, 199, 0.8);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  z-index: 2;
}

.media-gallery-nav:hover {
  background: var(--color-primary-dark);
}

.media-gallery-nav--prev { left: 16px; }
.media-gallery-nav--next { right: 16px; }

/* Меню в вырезе: нижние 180px, правые 70% ширины — стили как на основном сайте */
.media-gallery-menu {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 70%;
  height: 80px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 20px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-bottom: none;
  border-right: none;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 10px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  z-index: 2;
}
/* Скругление 10px у внутреннего угла среза картинки (перекрывает острый угол) */
.media-gallery-menu::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 10px;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 0 0 10px 0;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  pointer-events: none;
  z-index: 1;
}
.media-gallery-menu-link {
  display: inline-block;
  padding: 8px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

.media-gallery-menu-link:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.media-gallery-menu-link--active {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
}

.media-gallery-menu-link--active:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

@media (max-width: 992px) {
  .media-gallery-main {
    border-radius: 10px 10px 0 0;
    aspect-ratio: 16 / 9;
  }
  .media-gallery-main-img-wrap {
    clip-path: none;
  }
  .media-gallery-menu {
    width: 100%;
    height: auto;
    min-height: 70px;
    bottom: 0;
    right: 0;
    padding: 14px 16px;
    gap: 6px 14px;
    border-radius: 0;
    border-left: none;
    border-top: 1px solid var(--color-border);
  }
  .media-gallery-menu-link {
    font-size: 0.9rem;
  }
}

/* Партнёры и спонсоры — wpls-logo-showcase с kazast.edu.kz */
.wpls-logo-showcase-slider-wrp {
  margin-top: 12px;
}

.wpls-logo-clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.sponsors-section {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
}

.sponsors-trends-slider {
  overflow: hidden;
  padding-top: 2px;
}

.wpls-logo-track.sponsors-trends-track {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.sponsor-trend-card.wpls-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  flex: 0 0 calc(25% - 12px);
  min-width: 120px;
  max-width: 160px;
}

.sponsor-trend-card.wpls-logo-item:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  transform: translateY(-2px);
  text-decoration: none;
}

.sponsor-trend-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  display: block;
}

.sponsor-trend-card .fallback-icon {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

.sponsor-trend-card.wpls-logo-item .sponsor-trend-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

.sponsor-trend-icon:not(.fallback-icon) {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.sponsor-trend-text {
  display: flex;
  flex-direction: column;
}

.sponsor-trend-sub {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* Две колонки (рейтинги и платформы) */
.two-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  padding: 32px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
}

.col-block .section-title {
  margin-bottom: 8px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  margin-top: 8px;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  text-decoration: none;
}

/* Онлайн‑сервисы (как на mai.ru) */
.online-services-section {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 24px 24px 20px;
}

.online-services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.online-service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 14px;
  border-radius: 24px;
  background: #f5f8ff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  font-size: 13px;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.online-service-card:hover {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--color-text);
}

.online-service-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background: #e0edff;
  color: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.online-service-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.online-service-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.online-service-url {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
}

/* Актуальное — быстрые ссылки */
.quick-links-section {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.quick-link {
  display: block;
  padding: 12px 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  color: var(--color-text);
  font-weight: 500;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
}

.quick-link:hover {
  background: var(--color-primary-light);
  color: var(--color-primary);
  text-decoration: none;
}

/* Галерея */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.gallery-item {
  display: block;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg-alt);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Факультеты */
.faculties-section {
  margin-top: 40px;
}

.faculties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.faculty-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.faculty-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  border-color: var(--color-primary);
  text-decoration: none;
}

.faculty-card-image-wrap {
  width: 100%;
  height: 140px;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.faculty-card-image {
  max-width: 120px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.faculty-card-body {
  padding: 14px 16px 16px;
}

.faculty-card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.faculties-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faculties-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--color-border);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: none;
}

.faculties-links a:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary);
  text-decoration: none;
}

/* Карта */
.map-section .section-desc {
  margin-bottom: 20px;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.map-wrap iframe {
  display: block;
}

/* Подвал в стиле mai.ru */
.footer {
  background: linear-gradient(90deg, #0c4a6e 0%, var(--color-primary-dark) 100%);
  color: #fff;
  margin-top: 48px;
}

.footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-main {
  padding: 40px 0 28px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px 16px;
}

.footer-col-title {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.footer-list li {
  margin-bottom: 4px;
}

.footer-portal {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.footer-portal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.footer-portal-label {
  color: rgba(255, 255, 255, 0.7);
  margin-right: 4px;
}

.footer-portal-sep {
  color: rgba(255, 255, 255, 0.35);
  margin: 0 4px;
}

.footer-bottom {
  padding: 18px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-lang {
  display: flex;
  align-items: center;
  gap: 8px 12px;
}

.footer-lang-label {
  color: rgba(255, 255, 255, 0.7);
}

.footer-lang-link {
  color: rgba(255, 255, 255, 0.85);
}

.footer-lang-link.active {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.footer-lang-link:hover:not(.active) {
  color: #fff;
}

.footer-copy {
  margin: 0;
}

@media (max-width: 992px) {
  .footer-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 12px;
  }
  .footer-main {
    padding: 28px 0 20px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Адаптив */
@media (max-width: 992px) {
  .nav-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .top-bar {
    padding: 8px 0;
    font-size: 11px;
  }
  .top-bar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .top-links {
    gap: 4px 10px;
  }
  .top-links a {
    font-size: 11px;
  }
  .top-right {
    gap: 8px;
  }
  .logo-img {
    height: 34px;
    max-width: 120px;
  }
  .nav-inner {
    padding: 10px 16px;
  }
  .hero--video {
    min-height: 58vh;
    padding: 20px 0 28px;
  }
  .hero-title {
    font-size: 1.35rem;
    margin-bottom: 10px;
  }
  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }
  .hero-cards {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }
  .hero-card:nth-child(4) {
    display: none;
  }
  .hero-card {
    padding: 18px 20px;
  }
  .hero-card-title {
    font-size: 1rem;
  }
  .hero-card-desc {
    font-size: 13px;
  }
  .main-content {
    padding: 28px 0 40px;
  }
  .section {
    margin-bottom: 36px;
  }
  .section-title {
    font-size: 1.25rem;
  }
  .section-header {
    margin-bottom: 16px;
  }
  .two-cols {
    padding: 24px 20px;
  }
  .home-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .home-main-news-card {
    min-height: 180px;
  }
  .home-main-news-title {
    font-size: 1rem;
  }
  .home-panel {
    padding: 14px 16px;
  }
  .announcements-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .announcement-card {
    padding: 16px 18px;
  }
  .notice-banner-body {
    padding: 20px;
  }
  .notice-banner-title {
    font-size: 1.2rem;
  }
  .notice-banner-desc {
    font-size: 14px;
  }
  .sponsors-section {
    padding: 20px 16px;
  }
  .sponsors-trends-slider {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .sponsors-trends-track {
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }
  .sponsor-trend-card {
    flex: 0 0 280px;
    min-width: 280px;
  }
  .sponsors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .sponsor-item {
    min-height: 70px;
    padding: 12px;
  }
  .sponsor-logo {
    max-width: 100px;
    max-height: 44px;
  }
  .quick-links-section {
    padding: 20px;
  }
  .quick-links-grid {
    grid-template-columns: 1fr;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .news-card-body {
    padding: 16px;
  }
  .news-title a {
    font-size: 0.95rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .faculties-grid {
    grid-template-columns: 1fr;
  }
  .faculty-card-image-wrap {
    height: 120px;
  }
  .map-wrap iframe {
    height: 260px;
  }
  .online-services-section {
    padding: 20px 16px;
  }
  .online-services-list {
    grid-template-columns: 1fr;
  }
  /* Блок В облаке / Туториал */
  .cloud-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
  }
  .cloud-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cloud-main-media {
    min-height: 200px;
  }
  .cloud-main-text {
    font-size: 1.15rem;
    inset: 20px;
  }
  .cloud-side-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .cloud-side-illustration {
    min-height: 160px;
    margin-left: 0;
    margin-top: 12px;
  }
  .cloud-side-title {
    font-size: 1.05rem;
  }
  .akparat-slide {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .akparat-slide-photo {
    margin-top: 12px;
    height: 220px;
  }
  /* Футер */
  .footer-main {
    padding: 28px 0 20px;
  }
  .footer-portal {
    padding: 12px 0;
  }
  .footer-portal-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .footer-portal-sep {
    display: none;
  }
  .footer-bottom {
    padding: 14px 0 20px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero--video {
    min-height: 52vh;
    padding: 16px 0 24px;
  }
  .hero-title {
    font-size: 1.2rem;
  }
  .section-title {
    font-size: 1.15rem;
  }
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 20px 0;
  }
  .footer-col-title {
    font-size: 0.75rem;
  }
  .footer-list {
    font-size: 12px;
  }
}
