:root {
  --bg: #ffffff;
  --text: #1b1f23;
  --muted: #6b7280;
  --primary: #1f3b7a;
  --primary-600: #2b4c9f;
  --accent: #ff6b35;
  --surface: #e8ecf6;
  --border: #e5e7eb;
  --radius: 12px;
  --radius-2: 50px;
  --shadow: 0 8px 24px rgba(0,0,0,.06);

  --var-bg: var(--bg);
  --var-text: var(--text);
  --var-muted: var(--muted);
  --var-primary: var(--primary);
  --var-primary-600: var(--primary-600);
  --var-accent: var(--accent);
  --var-surface: var(--surface);
  --var-border: var(--border);
}

html { -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: var(--surface);
  color: var(--text);
}
main {
  min-height: calc(100vh - 400px);
}

.container {
  width: 100%;
  max-width: 1820px;
  margin-left: auto;
  margin-right: auto;
}

.container-margin-top {
  margin-top: 120px;
}

.base-icon {
  width: 16px;
  height: 16px;
}

/* Header */
.site-header {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(34, 34, 34, 0.5);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  width: calc(100% - 60px);
  max-width: 1820px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 30px;
  height: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffffff;
}
.header-brand {
  flex-shrink: 0;
}
.brand-name {
  font-family: 'TT Nooks Trial', sans-serif;
  font-weight: 400;
  font-size: 10px;
  line-height: 1em;
  text-align: center;
  color: #ffffff;
}
.brand-name--light {
  color: #ffffff;
}

/* Navigation */
.header-nav {
  display: none;
  align-items: center;
  gap: 50px;
}
.header-nav-show {
  display: flex;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-item {
  position: relative;
}
.nav-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #222222;
  border: none;
  border-radius: 20px;
  color: #ffffff;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.21em;
  cursor: pointer;
  transition: all 0.3s ease;
}
.nav-toggle:hover {
  background: #333333;
}
.nav-text {
  color: #ffffff;
}
.nav-arrow {
  width: 12px;
  height: 10px;
  transition: transform 0.3s ease;
}

.nav-link--no-dropdown {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #222222;
  border: none;
  border-radius: 20px;
  color: #ffffff;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.21em;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.nav-link--no-dropdown:hover {
  background: #333333;
  color: #ffffff;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 1001;
  overflow: visible;
  width: 245px;
  margin-top: 10px;
  display: none;
}

.nav-dropdown-show {
  display: block;
}

.nav-dropdown--left {
  left: auto;
  right: 0;
}

.dropdown-list {
  list-style: none;
  padding: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 40px;
}

.header-nav .dropdown-list {
  max-height: none;
  overflow-y: unset;
}

/* Firefox Scrollbar Styles */
@supports (-moz-appearance: none) {
  .dropdown-list {
    scrollbar-color: #242424 #E3E3E3;
  }

  .carousel-container,
  .events-carousel-section .carousel-container,
  .filter-modal-body,
  .images-gallery__thumbnails,
  .news-card-article-text,
  .description-text {
    scrollbar-color: #303EC9 rgba(48, 62, 201, 0.15);
  }

  .filter-section-list {
    scrollbar-color: #000000 rgba(0, 0, 0, 0.1);
  }
}

/* Webkit Scrollbar Styles */
.dropdown-list::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.dropdown-list::-webkit-scrollbar-track {
  background: #E3E3E3;
  border-radius: 50px;
}

.dropdown-list::-webkit-scrollbar-thumb {
  background: #242424;
  border-radius: 50px;
  height: 25.6px;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
  background: #1a1a1a;
}
.dropdown-link {
  display: block;
  color: #242424;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.21em;
  text-decoration: none;
  padding: 0;
  transition: color 0.3s ease;
  width: 100%;
}
.dropdown-link:hover {
  color: var(--primary);
}

/* Search */
.nav-search {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #222222;
  border-radius: 20px;
}
.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #222222;
  border-radius: 20px;
  position: relative;
}
.hero-search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 20px;
  position: relative;
}
.search-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.21em;
  outline: none;
  max-width: 150px;
}

.search-input:focus {
  color: #ffffff;
}

.search-input::placeholder {
  color: #ffffff;
  opacity: 0.8;
}

.search-icon {
  cursor: pointer;
  padding-right: 5px;
  min-width: 20px;
  min-height: 20px;
}

/* Стили для контейнера с кнопкой меню, навигацией, поиском и кнопкой слабовидящих - десктоп */
.header-inner > div[x-data] {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-blind-icon {
  flex-shrink: 0;
}

.burger { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); }
.burger:hover { background: var(--surface); }
.burger-bar { display:block; width: 20px; height:2px; background: var(--text); margin:4px auto; border-radius:2px }

.main-nav {
  display: block;
}
.main-nav.open {
  display: block;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-link:not(.nav-link--no-dropdown) {
  color: var(--text);
  font-weight: 500;
  padding: 10px 8px;
  border-radius: 8px;
}
.nav-link:not(.nav-link--no-dropdown):hover {
  color: var(--primary);
  background: var(--surface);
}
.nav-details {
  position: relative;
}
.nav-details > summary {
  list-style: none;
  cursor: pointer;
}
.nav-details > summary::-webkit-details-marker {
  display: none;
}
.nav-details[open] > summary {
  color: var(--primary);
}
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
}
.dropdown a {
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
}
.dropdown a:hover {
  background: var(--surface);
  color: var(--primary);
}

/* Hero */
.hero {
  position: relative;
  border-radius: 0 0 50px 50px;
  overflow: hidden;
}

/* Hero Slides */
.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}
.hero-shadowed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  padding: 30px 0 40px;
}
.hero-title {
  font-size: clamp(28px, 3.2vw, 48px);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .2px;
}
.hero-subtitle {
  color: var(--muted);
  font-size: 16px;
}

/* Hero — pills header */
.hero-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(34,34,34,.5);
  border-radius: 50px;
  padding: 15px 20px;
  backdrop-filter: saturate(120%) blur(6px);
}
.pill-link {
  color: #fff;
  background: #222;
  border-radius: 20px;
  padding: 12px 20px;
}
.pill-link:hover {
  background: #1a1a1a;
}
.pill-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #222;
  border-radius: 20px;
  padding: 5px 15px 5px 5px;
}
.pill-search-text {
  color: #fff;
}
.pill-eye {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff26;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: center;
}
.brand-name--light {
  color: #fff;
}

/* Hero Section */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  border-radius: 0 0 50px 50px;
  overflow: hidden;
  padding: 30px 50px 100px;
}

/* Логотип в центре */
.hero-logo {
  position: relative;
  z-index: 3;
  margin-top: 200px;
}

.hero-logo {
  width: clamp(167px, 20vw, 426px);
}

.hero-logo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  color: #ffffff;
}

/* Основной контент */
.hero-content {
  position: relative;
  z-index: 3;
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Стрелки слайдера */
.hero-slider {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.slider-arrow {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(48, 62, 201, 0.15);
  transition: all 0.3s ease;
}
.slider-arrow:hover {
  background: rgba(48, 62, 201, 0.25);
  transform: scale(1.05);
}
.slider-arrow:active {
  background: #303EC9;
  transform: scale(1.05);
}
.arrow-icon {
  width: 21px;
  height: 25px;
}

/* Поисковая карточка */
.hero-search-card {
  background: transparent;
  border-radius: 41px;
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 1500px;
}

/* Заголовок поиска */
.search-header {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
}
.search-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.21em;
  color: #ffffff;
  margin: 0;
}
.search-chips {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.search-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #222222;
  border-radius: 50px;
  padding: 8px 12px;
}
.chip-text {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1em;
  color: #ffffff;
}
.chip-close {
  width: 14px;
  height: 14px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-icon {
  width: 12px;
  height: 12px;
}

/* Форма поиска */
.search-form {
  background-color: var(--var-bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 5px 5px 5px 20px;
  border-radius: var(--radius-2);
  width: 100%;
}
.search-input-wrapper, .hero-search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
}
.search-input-wrapper input, .hero-search-input-wrapper input {
  flex: 1;
  border: none;
  background: none;
  outline: none;
  color: #222222;
  font-size: 18px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  line-height: 1.21em;
}
.search-button {
  background: #303EC9;
  border: none;
  border-radius: 50px;
  color: #ffffff;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.21em;
  padding: 15px 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.search-button:hover {
  background: #2a35b0;
}

/* Теги */
.hero-tags {
  display: flex;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}
.tag {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 26px;
  background: #ffffff;
  border-radius: 50px;
  color: #222222;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1em;
  text-decoration: none;
  transition: all 0.3s ease;
}
.tag-outline {
  border: 2px solid #303EC9;
}
.tag:hover {
  background: #f0f0f0;
}

/* Хештеги */
.hero-hashtags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 10px;
  width: 100%;
}
.hashtag {
  color: #ffffff;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1em;
  cursor: pointer;
}

.hashtag-all-tags {
  background: #ffffff;
  border: none;
  border-radius: 50px;
  color: #303EC9;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.21em;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hashtag-all-tags:hover, .hashtag-all-tags:active {
  border: 2px solid #303EC9;
}

.search { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding-top: 6px; }
.search input { height: 48px; border:1px solid var(--border); border-radius: 12px; padding: 0 14px; background:#fff }
.search input::placeholder { color:#9aa0a6 }
.search button { height: 48px; padding: 0 18px; border-radius: 12px; background: var(--primary); color:#fff; font-weight:600 }
.search button:hover { background: var(--primary-600); }

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: #fff;
}
.tag:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Recommended Section */
.recommended {
  background: var(--var-surface);
}

.section-hashtag {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1em;
  color: #222222;
  text-align: center;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.section-head h2 {
  font-family: 'TT Nooks Trial', serif;
  font-weight: 400;
  font-size: 72px;
  line-height: 1em;
  letter-spacing: -0.05em;
  color: #222222;
  margin: 0;
}

.recommended-carousel {
  position: relative;
}

.carousel-container {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding-bottom: 20px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
  transition: transform 0.3s ease;
}

.event-card {
  flex-shrink: 0;
  width: 440px;
  height: 500px;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.event-card::before,
.event-card::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--var-surface);
  border-radius: 50%;
  top: -20px;
  z-index: 1;
}

.event-card::before {
  left: -20px;
}

.event-card::after {
  right: -20px;
}

.event-image {
  position: relative;
  width: 440px;
  height: 220px;
  overflow: hidden;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-date-container {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  z-index: 1;
}
.event-date {
  background: #A16C0A;
  padding: 8px 12px;
  border-radius: 0;
  border-right: 1px solid #ffffff;
}

.event-date:first-child {
  border-right: none;
}

.event-date:nth-child(2) {
  background: #002054;
}

.event-date:nth-child(3) {
  background: #141212;
}

.event-date span {
  font-family: 'Inter Tight', serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.36em;
  color: #ffffff;
}

.event-date sup {
  font-size: 15px;
  line-height: 0;
  vertical-align: 10px;
  font-family: 'Inter Tight', serif;
  font-weight: 400;
}

.event-location {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(48, 62, 201, 0.3);
  backdrop-filter: blur(15.6px);
  border-radius: 37px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.event-location img {
  width: 16px;
  height: 16px;
}

.event-location span {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.21em;
  color: #ffffff;
}

.event-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding: 20px;
  position: relative;
}

.event-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/event-card.png');
  background-size: cover;
  filter: blur(80px);
  z-index: 0;
}

.event-content::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(48, 62, 201, 0.3);
  z-index: 1;
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  position: relative;
  z-index: 2;
}

.event-title-section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}

.event-title {
  display: -webkit-box;
  display: -moz-box;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1em;
  color: #ffffff;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  box-orient: vertical;
  -moz-box-orient: vertical;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

.event-age {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #ffffff;
  margin: 0;
}

.event-description {
  display: -webkit-box;
  display: -moz-box;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.21em;
  color: #ffffff;
  opacity: 0.8;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  box-orient: vertical;
  -moz-box-orient: vertical;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

.event-description-dates {
  overflow: auto;
  white-space: nowrap;
  line-clamp: none;
  -webkit-line-clamp: none;
  scrollbar-width: none;
}

.event-description-dates::-webkit-scrollbar {
  display: none;
}

.event-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.event-tag {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(48, 62, 201, 0.3);
  border-radius: 20px;
  padding: 10px 14px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.21em;
  color: #ffffff;
  white-space: nowrap;
  transition: all 0.3s ease;
  cursor: pointer;
}

.event-tag:hover,
.event-tag:active {
  background: #ffffff;
  color: #303EC9;
  border-color: none;
}

.event-link {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.21em;
  color: #ffffff;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  opacity: 0.8;
  z-index: 2;
}

.event-link:hover {
  opacity: 1;
}

/* Custom Webkit Scrollbar for Carousel */
.carousel-container::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.carousel-container::-webkit-scrollbar-track {
  background: rgba(48, 62, 201, 0.15);
  border-radius: 10px;
}

.carousel-container::-webkit-scrollbar-thumb {
  background: #303EC9;
  border-radius: 20px;
  height: 10px;
  margin: 5px;
}

.carousel-container::-webkit-scrollbar-thumb:hover {
  background: #252db8;
}

/* Events */
.events {
  padding: 40px 0;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 80px;
}
/* .margin-bottom-50 {
  margin-bottom: 50px;
} */
.link-more {
  color: var(--primary);
  font-weight: 600;
}
.link-more:hover {
  color: var(--primary-600);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.card img {
  aspect-ratio: 5 / 3;
  object-fit: cover;
  width: 100%;
}
@supports not (aspect-ratio: 5 / 3) {
  .card img { width: 100%; height: auto; }
}
.card-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}
.card-title {
  font-weight: 700;
  font-size: 16px;
}
.card-meta {
  color: var(--muted);
  font-size: 14px;
}
.card-btn {
  margin-top: 4px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
}
.card-btn:hover {
  background: var(--primary-600);
}

/* Main Events */
.main-events {
  padding: 36px 0;
  background: var(--surface);
}

.filter-tags {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.filter-tags div {
  display: flex;
  gap: 5px;
}

.filter-tag {
  padding: 12px 15px;
  border-radius: 50px;
  background: rgba(48, 62, 201, 0.15);
  color: #303EC9;
  font-family: 'Inter Tight', serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.21em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tag.active {
  background: #303EC9;
  color: #ffffff;
}

.filter-tag:hover:not(.active) {
  background: rgba(48, 62, 201, 0.25);
}

.events-filter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-left {
  flex: 1;
}

.filter-tags-extended {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.filter-tag-extended {
  padding: 10px 14px;
  border-radius: 50px;
  background: rgba(48, 62, 201, 0.15);
  color: #303EC9;
  font-family: 'Inter', serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.21em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tag-extended-all {
  background: var(--var-bg);
}

.filter-tag-extended:hover {
  background: rgba(48, 62, 201, 0.25);
}

.filter-tag-extended.active, .filter-tag-extended.active:hover {
  background: #303EC9;
  color: #ffffff;
}

.filter-right {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-button {
  width: 50px;
  height: 50px;
  border-radius: 50px;
  background: var(--var-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.reset-filter {
  padding: 10px 14px;
  border-radius: 50px;
  background: var(--var-bg);
  color: #303EC9;
  font-family: 'Inter', serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.21em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sort-dropdown {
  position: relative;
}

.sort-button {
  width: 233px;
  height: 50px;
  border-radius: 40px;
  background: var(--var-bg);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  gap: 10px;
  transition: all 0.3s ease;
}

.sort-button span {
  color: #242424;
  font-family: 'Inter Tight', serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.21em;
}

.sort-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.3);
  padding: 20px;
  gap: 18px;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  margin-top: 10px;
}

.sort-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: #242424;
  font-family: 'Inter', serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.21em;
  transition: all 0.3s ease;
}

.sort-option:hover {
  color: #303EC9;
}

.events-carousel-section {
  position: relative;
  margin-top: 20px;
}

/* Grid mode для карусели изображений */
.events-grid {
  overflow: visible;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.events-carousel-section .carousel-container {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 20px;
}

.events-carousel-section .carousel-container::-webkit-scrollbar {
  height: 10px;
  width: 10px;
}

.events-carousel-section .carousel-container::-webkit-scrollbar-track {
  background: rgba(48, 62, 201, 0.15);
  border-radius: 10px;
}

.events-carousel-section .carousel-container::-webkit-scrollbar-thumb {
  background: #303EC9;
  border-radius: 20px;
}

.main-events .section-head {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.main-events .section-head h2 {
  font-family: 'TT Nooks Trial', serif;
  font-weight: 400;
  font-size: 72px;
  line-height: 1em;
  letter-spacing: -0.05em;
  text-align: center;
  color: #222222;
}

/* Date Filter Calendar */
.date-filter {
  margin-top: 20px;
}

.categories-date-filter {
  margin-top: 0;
}

.calendar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  border-radius: 20px;
  padding: 20px;
}

.categories-calendar {
  padding-top: 14px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.month-dropdown,
.year-dropdown {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.month-button,
.year-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.month-button span,
.year-button span {
  color: #222222;
  font-family: 'Inter Tight', serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.21em;
}

.month-button img,
.year-button img {
  width: 12px;
  height: 10px;
}

.calendar-grid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  overflow: hidden;
}

.calendar-weekdays {
  display: flex;
  justify-content: stretch;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.calendar-weekdays::-webkit-scrollbar {
  display: none;
}

.calendar-weekdays span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  color: #303EC9;
  font-family: 'Inter Tight', serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4em;
  text-align: center;
  flex-shrink: 0;
}

.calendar-weekdays .weekend,
.calendar-days .weekend {
    color: #B20000 !important;
}

.calendar-days {
  display: flex;
  justify-content: stretch;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.calendar-days::-webkit-scrollbar {
  display: none;
}

.day {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #ffffff;
  border: none;
  cursor: pointer;
  color: #222222;
  font-family: 'Inter Tight', serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4em;
  text-align: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.day:hover {
  background: #f0f0f0;
}

.day.weekend {
  color: #222222;
  border: 1px solid #B20000;
}

.day.active {
  background: #303EC9;
  color: #ffffff !important;
  border: none !important;
}


.day.selected {
  background: #303EC9;
  color: #ffffff;
}

/* Filter Modal */
.filter-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.filter-modal-show {
  display: flex;
}

.filter-modal-content {
  background: #ffffff;
  border-radius: 20px;
  width: 390px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 35px;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.filter-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 35px;
}

.filter-modal-header h2 {
  font-family: 'TT Nooks Trial', serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.42em;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: #222222;
  margin: 0;
}

.filter-modal-close {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-modal-close img {
  width: 24px;
  height: 24px;
}

.filter-modal-body {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.filter-modal-body::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.filter-modal-body::-webkit-scrollbar-track {
  background: rgba(48, 62, 201, 0.15);
  border-radius: 50px;
}

.filter-modal-body::-webkit-scrollbar-thumb {
  background: #303EC9;
  border-radius: 50px;
}

.filter-sections {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 311px;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(34, 34, 34, 0.15);
}

.filter-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.filter-section-header h3 {
  font-family: 'TT Nooks Trial', serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2em;
  letter-spacing: -0.05em;
  color: #222222;
  margin: 0;
}

.filter-section-header img {
  width: 12px;
  height: 10px;
}

.filter-section-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: 15px;
}

.filter-section-list::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

.filter-section-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
}

.filter-section-list::-webkit-scrollbar-thumb {
  background: #000000;
  border-radius: 2px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 5px 0;
  cursor: pointer;
  position: relative;
}

.filter-checkbox input[type="checkbox"] {
  width: 24px;
  height: 24px;
  border: 2px solid #000000;
  border-radius: 4px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  box-sizing: border-box;
}

.filter-checkbox input[type="checkbox"]:checked {
  background: #000000;
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='white' stroke-width='2' fill='none' d='M2 8l4 4 8-8'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
}

.filter-label {
  flex: 1;
  font-family: 'Inter Tight', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1em;
  color: #222222;
}

.filter-count {
  font-family: 'Inter Tight', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1em;
  color: #222222;
}

.filter-show-more {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--var-text);
  font-family: 'Inter Tight', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1em;
  text-align: left;
  padding: 0;
  margin-top: 10px;
}

.filter-show-more:hover, .filter-show-more:active {
  color: #303EC9;
}


.filter-modal-footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.filter-apply,
.filter-reset {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  font-family: 'Inter Tight', serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.21em;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.filter-apply {
  background: #303EC9;
  color: #ffffff;
}

.filter-reset {
  background: rgba(48, 62, 201, 0.15);
  color: #303EC9;
}

  .filter-apply:hover,
  .filter-reset:hover {
    opacity: 0.8;
  }

/* News Section */
.news {
  padding-left: 50px;
  padding-right: 50px;
  background: var(--var-surface);
}

.news .section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.news .section-hashtag {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1em;
  color: #222222;
}

.news .section-head h2 {
  font-family: 'TT Nooks Trial', serif;
  font-weight: 400;
  font-size: 72px;
  line-height: 1em;
  letter-spacing: -0.05em;
  color: #222222;
  margin: 0;
}

.news-filter {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.news-tags {
  display: flex;
  gap: 5px;
}

.news-tag {
  padding: 12px 15px;
  border-radius: 50px;
  background: rgba(48, 62, 201, 0.15);
  color: #303EC9;
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.21em;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.news-tag.active {
  background: #303EC9;
  color: #ffffff;
}

.news-tag:hover:not(.active) {
  background: rgba(48, 62, 201, 0.25);
}

.news-carousel {
  position: relative;
  margin-top: 20px;
  overflow: hidden;
}

.news-cards {
  display: flex;
  gap: 20px;
  transition: transform 0.3s ease;
  width: max-content;
  position: relative;
  left: -13vw;
}

.news-card {
  width: 900px;
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.news-card {
  filter: grayscale(100%);
}

.news-card.current {
  filter: none;
}


.news-image {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
    rgba(198, 201, 240, 1) 0%,
    rgba(198, 201, 240, 0) 50%,
    rgba(198, 201, 240, 0) 50%,
    rgba(198, 201, 240, 1) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-image img {
  max-height: 100%;
  object-fit: contain;
  position: relative;
  mask-image: linear-gradient(90deg,
    rgba(198, 201, 240, 0.15) 0%,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 80%,
    rgba(198, 201, 240, 0.15) 100%
  );
  -webkit-mask-image: linear-gradient(90deg,
    rgba(198, 201, 240, 0.15) 0%,
    rgba(0, 0, 0, 1) 20%,
    rgba(0, 0, 0, 1) 80%,
    rgba(198, 201, 240, 0.15) 100%
  );
}

.news-content {
  background: #303EC9;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-text {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.news-title {
  display: -webkit-box;
  display: -moz-box;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1em;
  color: #ffffff;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  box-orient: vertical;
  -moz-box-orient: vertical;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

.news-description {
  display: -webkit-box;
  display: -moz-box;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.21em;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  box-orient: vertical;
  -moz-box-orient: vertical;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

.news-link {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.21em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline !important;
  text-underline-offset: 3px;
  transition: all 0.3s ease;
}

.news-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.news-gradient, .events-gradient {
  position: absolute;
  top: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 10;
}

.news-gradient {
  width: 440px;
}

.events-gradient {
  width: 214px;
}

.news-gradient--right, .events-gradient--right {
  right: 0;
  background: linear-gradient(90deg, rgba(232, 236, 246, 0) 0%, rgba(232, 236, 246, 1) 100%);
}

.news-gradient--left {
  left: 0;
  background: linear-gradient(270deg, rgba(232, 236, 246, 0) 0%, rgba(232, 236, 246, 1) 100%);
}

.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
}

.pagination-arrow {
  flex-shrink: 0;
}

.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 0;
}

.pagination-number {
  width: 42px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.21em;
  color: #222222;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.pagination-number.active {
  background: #ffffff;
  color: #222222;
}

.pagination-number:not(.active) {
  opacity: 0.6;
}

.pagination-number:hover:not(.active) {
  opacity: 0.8;
}

.pagination-dots {
  padding: 10px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.21em;
  color: #222222;
  opacity: 0.6;
}

/* Map */
.map {
  background: var(--var-surface);
}

/* Footer */
.site-footer {
  background: #303EC9;
  border-radius: 50px 50px 0 0;
  padding: 50px;
  min-height: 200px;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 34px;
}

.footer-logo {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-logo h5 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2em;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 740px;
  text-align: left;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.footer-main {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 50px;
  width: 100%;
}

.footer-main > .footer-contacts {
  flex: 1;
}

.footer-main > .footer-social {
  margin-left: auto;
}

.footer-main .footer-social, .footer-main .footer-info {
  margin-left: 0;
}

.footer-contacts {
  display: flex;
  flex-direction: row;
  gap: 80px;
}

.footer-contact-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contacts span {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2em;
  color: rgba(255, 255, 255, 0.8);
  max-width: 320px;
}

.footer-contact-links {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.footer-contact {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2em;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.footer-contact-links .footer-contact {
  white-space: nowrap;
  flex-shrink: 0;
} 

.footer-contact:hover {
  opacity: 0.8;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.social-link {
  width: 48px;
  height: 48px;
  background: rgba(237, 240, 248, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(237, 240, 248, 0.25);
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}

.footer-link {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2em;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-link:hover {
  opacity: 0.8;
}

.footer-copyright {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2em;
  color: #ffffff;
  opacity: 0.5;
  margin: 0;
}

.footer-logo-mobile {
  display: none;
}

.footer-main-mobile-social h5 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2em;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 20px 0;
}

.section-sub {
  color: var(--muted);
  font-size: 14px;
}
.map-embed {
  position: relative;
  max-width: 95vw;
  height: 500px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50px;
  overflow: hidden;
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content-mobile {
  display: none;
  position: relative;
  z-index: 3;
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Стили для страницы учреждения */
/* Основная информация об учреждении */
.institution-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.institution-main {
  background: #ffffff;
  border-radius: 50px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
}

/* Хлебные крошки */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 5px;
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  gap: 5px;
}

.breadcrumb-link {
  color: #222222;
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.breadcrumb-link:hover {
  opacity: 0.8;
}

.breadcrumb-separator {
  width: 5px;
  height: 5px;
  background: #222222;
  border-radius: 50%;
}

.breadcrumb-current {
  color: #222222;
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
}

.institution-header {
  margin-bottom: 20px;
}

.institution-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
  color: #222222;
  margin: 0;
}

.institution-details, .institution-description-services {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.institution-contacts {
  display: flex;
  justify-content: space-between;
  gap: 39px;
}

.contact-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-text p, .contact-text a {
  text-decoration: none;
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.21;
  color: rgba(34, 34, 34, 0.6);
  margin: 0;
}

.contact-text-link {
  cursor: pointer;
  display: -webkit-box;
  display: -moz-box;
  overflow: hidden;
  text-overflow: ellipsis;
  box-orient: vertical;
  -moz-box-orient: vertical;
  -webkit-box-orient: vertical;
  line-clamp: 1;
  -webkit-line-clamp: 1;
}

.description-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.21;
  color: #222222;
  margin: 0 0 20px 0;
}

.description-text {
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.21;
  color: rgba(34, 34, 34, 0.6);
  margin: 0;
  max-height: 800px;
  overflow-y: auto;
  padding-right: 10px;
}

.description-text::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.description-text::-webkit-scrollbar-track {
  background: rgba(48, 62, 201, 0.15);
  border-radius: 10px;
}

.description-text::-webkit-scrollbar-thumb {
  background: #303EC9;
  border-radius: 10px;
}

.description-text::-webkit-scrollbar-thumb:hover {
  background: #2a35b0;
}

.services-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.21;
  color: #222222;
  margin: 0 0 20px 0;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.service-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid #EEEEEE;
  border-radius: 20px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.21;
  color: #222222;
  background: transparent;
  transition: all 0.3s ease;
}

.service-tag:hover {
  background: rgba(48, 62, 201, 0.1);
  border-color: #303EC9;
}

/* Галерея изображений */
.images-gallery {
  display: flex;
  gap: 20px;
  width: 100%;
  height: 661px;
}

.images-gallery__main {
  position: relative;
  width: 91px;
}

.images-gallery__thumbnails {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 661px;
  overflow-y: auto;
  padding-right: 6px;
}

.images-gallery__thumbnails::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.images-gallery__thumbnails::-webkit-scrollbar-track {
  background: rgba(48, 62, 201, 0.15);
  border-radius: 10px;
}

.images-gallery__thumbnails::-webkit-scrollbar-thumb {
  background: #303EC9;
  border-radius: 10px;
}

.images-gallery__thumbnails::-webkit-scrollbar-thumb:hover {
  background: #2a35b0;
}

.images-gallery__thumbnail {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 50px;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.images-gallery__thumbnail:hover {
  border-color: rgba(48, 62, 201, 0.3);
}

.images-gallery__thumbnail.active {
  border-color: #303EC9;
}

.images-gallery__current {
  position: relative;
  border-radius: 50px;
  overflow: hidden;
  display: flex;
  justify-content: space-evenly;
}

.images-gallery__current-image {
  min-width: 946px;
  max-width: 946px;
  height: 100%;
  object-fit: cover;
}

.images-gallery__controls-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}

.images-gallery__controls {
  display: flex;
  gap: 20px;
}

.images-gallery__arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(15px);
  transition: all 0.3s ease;
}

.images-gallery__arrow:hover {
  background: rgba(255, 255, 255, 0.5);
}

.images-gallery__dots {
  display: flex;
  gap: 3px;
}

.images-gallery__progress {
  display: flex;
  gap: 3px;
}

.images-gallery__progress-bar {
  width: 59px;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.images-gallery__progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #ffffff;
  border-radius: 10px;
  transition: width 0.3s ease;
  width: var(--progress-width, 0%);
}

/* Страница поиска */
/* Страница Поиска: пустая */
.search-form-section {
  max-width: 1820px;
  margin: 0 auto;
}

.search-form-section .breadcrumbs {
  margin-bottom: 20px;
}

.search-not-found h2, .categories-list-title {
  font-family: 'TT Nooks Trial', serif;
  font-weight: 400;
  font-size: 72px;
  line-height: 1em;
  letter-spacing: -0.05em;
  color: #222222;
  margin: 0;
}

/* Страница Поиска: не найдено */
.search-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
  min-height: inherit;
}

.search-not-found h2 {
  text-align: center;
  max-width: 1400px;
}

.institution-buy-ticket, .institution-buy-ticket-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.institution-buy-ticket {
  flex-wrap: wrap;
}

/* Страница поиска: Найдено */
.search-results-info {
  margin-top: 20px;
}

.search-results-heading {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
  color: #242424;
  margin-bottom: 20px;
}

.search-refine-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.search-refine-label {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
  color: #242424;
}

.search-refine-link {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
  color: #303EC9;
  text-decoration: none;
  border-bottom: 5px dotted #303EC9;
  transition: opacity 0.3s ease;
}

.search-refine-link:hover {
  opacity: 0.8;
}

/* Страница Культурные учреждения */
.institutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 0;
  justify-items: center;
}

.institutions-card {
  width: 100%;
  min-height: 650px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(180deg, rgba(48, 62, 201, 0.1) 0%, rgba(48, 62, 201, 0.9) 100%);
  display: flex;
  align-items: flex-end;
  transition: all 0.3s ease;
  cursor: pointer;
}

.institutions-card-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background-image: url('../img/institution-bg.png');
  background-size: cover;
  background-position: center;
  transition: height 0.3s ease;
  z-index: 1;
}

.office-background-image .institutions-card-background {
  background-image: url('../img/office-bg.png');
}

.news-background-image {
  background-image: url('../img/news-bg.png');
  background-size: cover;
  background-position: center;
}

.news-example-background-image {
  background-image: url('../img/news-example-bg.png');
}

.institutions-card-content {
  width: 100%;
  background: rgba(48, 62, 201, 0.95);
  backdrop-filter: blur(50px);
  padding: 20px;
  border-radius: 0 0 10px 10px;
  min-height: 20%;
  transition: height 0.3s ease;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.institutions-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.institutions-title-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.institutions-title {
  display: -webkit-box;
  display: -moz-box;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
  color: #FFFFFF;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  box-orient: vertical;
  -moz-box-orient: vertical;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

.institutions-description {
  display: -webkit-box;
  display: -moz-box;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  box-orient: vertical;
  -moz-box-orient: vertical;
  -webkit-box-orient: vertical;
  line-clamp: 3;
  -webkit-line-clamp: 3;
}

.institutions-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.institutions-card:hover .institutions-details {
  opacity: 1;
  transform: translateY(0);
}

.institutions-schedule {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.institutions-contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.institutions-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.institutions-detail-item a:hover {
  border-bottom: 1px solid #FFFFFF;
}

.institutions-detail-item-double {
  display: flex;
  align-items: center;
  gap: 20px;
}

.institutions-detail-item-double-contacts {
  flex-wrap: wrap;
}

.institutions-icon {
  flex-shrink: 0;
  margin-top: 2px;
  filter: brightness(0) invert(1);
}

.institutions-text {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
}

.institutions-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.institutions-tag {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  color: #FFFFFF;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  white-space: nowrap;
}

.institutions-tag--more {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  cursor: pointer;
}

.institutions-link {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.2;
  color: #FFFFFF;
  opacity: 0.8;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  margin-top: auto;
  transition: opacity 0.3s ease;
}

.institutions-link:hover {
  opacity: 1;
}

.institutions-link-visible {
  position: absolute;
  bottom: 20px;
  left: 20px;
}

/* Страница Фотоотчет */
.photo-report-gallery {
  margin-top: 50px;
  margin-bottom: 14px;
}

.photo-report-images-gallery {
  flex-direction: column-reverse;
  height: auto;
}

.photo-report-images-gallery__current-image {
  min-width: auto;
  max-height: 550px;
  border-radius: 40px;
}

.photo-report-images-gallery__main {
  width: 100%;
  height: auto;
}

.photo-report-images-gallery__thumbnails {
  flex-direction: row;
  overflow-x: auto;
  overflow-y: hidden;
  height: 101px;
  transform: scaleY(-1);
}

.photo-report-images-gallery__thumbnails img {
  transform: scaleY(-1)
}

.photo-report-grid {
  grid-template-columns: repeat(4, 1fr);
  justify-self: center;
}

.photo-report-card {
  flex-shrink: 0;
  width: 440px;
  height: 440px;
  border-radius: 10px;
  background-image: url('../img/photo-report.png');
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.photo-report-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
  z-index: 1;
}

/* Страница Новости */
.news-card-content {
  background: rgba(48, 62, 201, 0.15);
  min-height: auto;
}

.news-list-bg-card:hover .institutions-details {
  opacity: 0;
  transform: translateY(10px);
}

/* Новости Карточка */
.news-contact-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-card-main {
  width: 100%;
}

.news-card-article-text-container {
  max-height: 800px;
  overflow-y: hidden;
}

.news-card-article-text {
  width: 100%;
  max-height: 800px;
  field-sizing: content;
  resize: none;
  border: none;
  outline: none;
  background: transparent;
  padding-right: 10px;
}

.news-card-article-text::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.news-card-article-text::-webkit-scrollbar-track {
  background: rgba(48, 62, 201, 0.15);
  border-radius: 10px;
}

.news-card-article-text::-webkit-scrollbar-thumb {
  background: #303EC9;
  border-radius: 10px;
}

.news-card-article-text::-webkit-scrollbar-thumb:hover {
  background: #2a35b0;
}

.news-card-images-gallery__current-image {
  min-width: 780px;
  max-width: 780px;
}

.contact-item-double {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.news-share-item {
  cursor: pointer;
  width: fit-content;
  padding: 12px 20px;
  border-radius: 10px;
  background-color: rgba(48, 62, 201, 0.15);
  margin-top: -24px;
}

.news-share-item:hover {
  background-color: rgba(48, 62, 201, 0.25);
}

.news-share-item .news-share-text {
  color: #303EC9;
}

/* Страница Авторская статья */
.article-header {
  margin-bottom: 0;
}

.article-container {
  max-width: 1200px;
  max-height: none;
}

.article-text {
  max-height: none;
}

.article-contact-group {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.article-share-item {
  margin: 0;
}

/* Страница Облако тегов */
.tags-cloud-breadcrumbs {
  margin-bottom: 0 !important;
}

.tags-cloud-filter {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
  margin-bottom: 0;
}

.tags-cloud-filter-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  max-width: 1520px;
}

/* Страница Проектные офисы */
.our-mission {
  padding: 50px 0 14px 0;
  background: var(--var-surface);
}

.our-mission-content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 40px;
}

.our-mission-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 580px;
}

.our-mission-block h2 {
  font-family: 'Inter Tight', serif;
  font-size: 18px;
  color: #222222;
  font-weight: 600;
}

.our-mission-block ol {
  list-style-type: disc;
  list-style-position: inside;
  margin-left: 25px;
  display: -webkit-box;
  display: -moz-box;
  overflow: hidden;
  text-overflow: ellipsis;
  box-orient: vertical;
  -moz-box-orient: vertical;
  -webkit-box-orient: vertical;
  line-clamp: 5;
  -webkit-line-clamp: 5;
}

.our-mission-block ol.expanded {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.our-mission-block ol li {
  font-family: 'Inter Tight', serif;
  font-size: 18px;
  color: #222222;
  font-weight: 400;
  line-height: 140%;
}

.our-mission-link {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.21em;
  color: rgba(34, 34, 34, 0.6);
  text-decoration: underline !important;
  text-underline-offset: 3px;
  transition: all 0.3s ease;
}

.our-mission-link:hover {
  color: rgba(34, 34, 34, 0.8);
}

/* Куки уведомление */
.cookies {
  position: fixed;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 460px;
  bottom: 20px;
  right: 20px;
  background-color: var(--bg);
  border-radius: 10px;
  padding: 20px;
  z-index: 10000;
  box-shadow: var(--shadow-lg);
}

.cookies a {
  color: #1b1f23;
  text-decoration: underline solid #1b1f23;
  text-underline-offset: 3px;
}

.cookies__button {
  margin: 0;
  padding: 15px 30px;
  text-decoration: none !important;
  width: 100%;
  max-width: none;
  background-color: #303EC9;
  color: var(--bg) !important;
  text-align: center;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: clamp(16px, 3vw, 18px);
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
}

.cookies__button:hover {
  transform: translateY(-2px);
}

@media (max-width: 2560px) {
  .news-cards {
    left: -17vw;
  }
}

@media (max-width: 2160px) {
  .news-cards {
    left: -20vw;
  }
}

@media (max-width: 1919px) {
  .container, .search-form-section {
    padding: 0 20px;
  }

  .news-cards {
    left: -24vw;
  }
}

@media (max-width: 1840px) {
  .news-cards {
    left: -27vw;
  }
}

@media (max-width: 1740px) {
  .nav-toggle {
    font-size: 16px;
  }

  .news-cards {
    left: -32vw;
  }
}

/* Responsive Design */
/* 1600px */
@media (max-width: 1600px) {
  .nav-toggle {
    padding: 12px 20px;
    font-size: 16px;
  }

  .section-head h2,
  .main-events .section-head h2,
  .news .section-head h2,
  .search-not-found h2,
  .categories-list-title {
    font-size: 64px;
  }

  .hero-search-card {
    width: 1140px;
  }

  .site-footer {
    padding: 30px;
  }

  .footer-contacts {
    gap: 20px;
  }

  .news-cards {
    left: -26vw;
  }

  .news-card {
    width: 740px;
  }

  .event-card, .event-image {
    width: 360px;
  }

  .images-gallery__current-image {
    min-width: 666px;
    max-width: 666px;
  }

  /* Страница Культурные учреждения */
  .institutions-card-background {
    height: 73%;
  }

  .institutions-card {
    min-height: 500px;
  }

  .institutions-card-content {
    min-height: 27%;
  }

  /* Страница Фотоотчет */
  .photo-report-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-report-card {
    width: 360px;
  }
}

@media (max-width: 1570px) {
  .search-input {
    display: none;
  }
  .search-input-wrapper, .nav-search {
    background: transparent;
  }
  .search-input-wrapper {
    padding: 0;
  }
  .search-icon {
    padding-right: 0;
    min-width: 24px;
    min-height: 24px;
  }
}

@media (max-width: 1480px) {
  .news-cards {
    left: -31vw;
  }
}

@media (max-width: 1420px) {
  .nav-toggle {
    font-size: 15px;
  }

  .news-cards {
    left: -36vw;
  }
}

@media (max-width: 1350px) {
  .nav-toggle {
    padding: 12px 10px;
    font-size: 14px;
  }

  .news-cards {
    left: -40vw;
  }
}

@media (max-width: 1300px) {
  .news-card-images-gallery__current-image {
    min-width: 560px;
    max-width: 560px;
  }

  .news-cards {
    left: -43vw;
  }
}

@media (max-width: 1250px) {
  .news-cards {
    left: -47vw;
  }
}

/* 1200px */
@media (max-width: 1200px) {
  .hero {
    padding: 20px 30px 80px;
  }
  
  .section-head h2,
  .main-events .section-head h2,
  .news .section-head h2,
  .search-not-found h2,
  .categories-list-title {
    font-size: 56px;
  }
  
  .nav-links {
    gap: 10px;
  }
  
  .search-input {
    width: 150px;
    font-size: 18px;
  }

  .event-card {
    width: 320px;
  }

  .event-location {
    left: 25%;
    transform: translateX(-25%);
  }

  .news-cards {
    left: -50vw;
  }

  /* Страница учреждения */
  .institution-content {
    flex-direction: column;
    gap: 20px;
  }

  .institution-description-services {
    flex-direction: row;
  }

  .institution-description {
    max-width: 50%;
  }

  .institution-details p, .service-tag {
    font-size: 14px;
  }

  .contact-group {
    flex-direction: row;
  }

  .images-gallery__thumbnails {
    max-height: 450px;
  }

  .images-gallery {
    height: 450px;
  }

  .images-gallery__current-image {
    min-width: calc(100vw - 91px - 20px);
    max-width: calc(100vw - 91px - 20px);
  }

  /* Страница Культурные учреждения */
  .institutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Страница Фотоотчет */
  .photo-report-card {
    width: 280px;
    height: 385px;
  }
}

@media (min-width: 1125px) {
  .hero .hero-content {
    display: flex;
  }
  
  .hero-content-mobile {
    display: none;
  }
}

@media (max-width: 1124px) {
  .mobile-menu-toggle {
    display: block;
  }

  .hero {
    padding-bottom: 20px;
  }

  .hero .hero-content {
    margin-top: 20px;
  }

  .hero-slider .slider-arrow {
    width: 24px;
    height: 24px;
    border-radius: 6px;
  }

  .hero-slider .slider-arrow img {
    width: 12px;
    height: 10px;
  }
  
  .hero .hero-content .hero-search-card {
    display: none;
  }
  
  .hero-content-mobile {
    display: block;
    margin-top: 20px;
    gap: 15px;
  }
  
  .hero-content-mobile .hero-search-card {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }
  
  .hero-content-mobile .hero-tags {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    justify-content: flex-start;
    margin-bottom: 20px;
  }

  .hero-content-mobile .hero-tags::-webkit-scrollbar {
    display: none;
  }
  
  .hero-content-mobile .hero-tags .tag {
    padding: 8px 12px;
    font-size: 14px;
    flex-shrink: 0;
  }
  
  .hero-content-mobile .hero-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
  }
  
  .hero-content-mobile .hero-hashtags .hashtag {
    color: var(--var-text);
    font-size: 14px;
    flex-shrink: 0;
  }
  
  .hero-content-mobile .hashtag-all-tags {
    flex-shrink: 0;
  }
  
  .site-header {
    position: fixed;
    width: calc(100% - 20px);
    top: 10px;
  }
  
  .header-inner {
    justify-content: space-between;
    padding: 15px 20px;
  }
  
  .header-nav {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(34, 34, 34, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin: 10px 20px;
    padding: 20px;
    z-index: 1000;
    width: auto;
    min-width: 200px;
  }
  
  .header-nav .nav-links {
    flex-direction: column;
    gap: 15px;
  }
  
  .header-nav .nav-item {
    width: 100%;
  }
  
  .header-nav .nav-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    min-width: 200px;
  }
  
  .header-nav .nav-dropdown {
    position: static;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    margin-top: 10px;
  }
  
  .header-nav .dropdown-list {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
  }
  
  .header-nav .dropdown-link {
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 8px;
    transition: background 0.3s ease;
  }
  
  .header-nav .dropdown-link:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .header-nav .nav-link--no-dropdown {
    width: 100%;
    justify-content: flex-start;
    padding: 15px 20px;
    min-width: 200px;
  }

  .header-inner > div[x-data] {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
  }

  .btn-blind-icon {
    display: none;
  }

  .news-cards {
    left: -60vw;
  }
}

@media (max-width: 1024px) {
  .container {
    max-width: 920px;
  }
  .hero-title {
    font-size: clamp(26px, 4vw, 40px);
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .hero-pill {
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-footer {
    padding: 30px;
  }

  .footer-logo h5 {
    font-size: 16px;
    max-width: 451px;
  }

  .footer-contacts {
    gap: 10px;
  }

  .footer-contacts span {
    font-size: 14px;
    max-width: 274px;
  }

  .footer-contact {
    font-size: 16px;
  }

  .footer-link {
    font-size: 16px;
  }

  .footer-copyright {
    font-size: 16px;
  }

  .footer-main-mobile-social h5 {
    font-size: 16px;
  }

  .news-gradient {
    display: none;
  }

  .news-cards {
    left: -30vw;
  }

  .news-card {
    left: -40vw;
  }

  .events-gradient {
    width: 200px;
  }

  .images-gallery__current-image {
    min-width: calc(100vw - 91px - 20px - 100px);
    max-width: calc(100vw - 91px - 20px - 100px);
  }

  /* Страница учреждения */
  .institution-content {
    flex-direction: column-reverse;
  }

  .institution-main, .images-gallery__current {
    border-radius: 20px;
  }

  .contact-group {
    flex-direction: column;
  }
}

@media (max-width: 980px) {
  .news-cards {
    left: -37vw;
  }
}

@media (max-width: 940px) {
  .news-cards {
    left: -40vw;
  }
}

@media (min-width: 901px) {
  .footer-main-mobile, .footer-logo-mobile {
    display: none;
  }
}

@media (max-width: 900px) {
  .news-cards {
    left: -25vw;
  }

  .news-card {
    width: 560px;
  }

  /* Footer */
  .footer-logo {
    display: none;
  }

  .site-footer {
    padding: 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
  }

  .footer-main {
    display: none;
  }

  .footer-logo-mobile {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .footer-main-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
  }

  .footer-main-mobile-social {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
  }

  .footer-main-mobile-social .footer-contacts {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .footer-main-mobile-social .footer-contacts > span {
    display: block;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    max-width: 100%;
  }

  .footer-main-mobile-social .footer-contacts > a.footer-contact {
    margin-top: 0;
    font-size: 14px;
  }

  .footer-main-mobile-social .footer-contact-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .footer-main-mobile-social .footer-contact-links {
    flex-direction: row;
    gap: 12px;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .footer-info {
    margin-top: 20px;
    align-items: flex-start;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 800px) {
  .news-cards {
    left: -32vw;
  }
}

@media (min-width: 769px) {
  .filter-right-mobile {
    display: none;
  }

  .filter-tag-extended-mobile {
    display: none;
  }
}

@media (max-width: 768px) {
  .site-header {
    top: 10px;
    width: calc(100% - 30px);
    border-radius: 30px;
  }
  .header-inner {
    gap: 20px;
  }
  .header-nav {
    gap: 20px;
  }
  .nav-links {
    gap: 10px;
    flex-wrap: wrap;
  }
  .nav-toggle, .nav-link--no-dropdown {
    padding: 8px 15px;
    font-size: 16px;
  }
  .nav-search {
    gap: 10px;
    padding: 3px 10px 3px 3px;
  }
  .search-text {
    font-size: 16px;
  }
  .brand-name {
    font-size: 8px;
  }
  .nav-dropdown {
    width: 200px;
  }

  .footer-logo h5 {
    font-size: 16px;
  }

  .footer-contacts span {
    font-size: 16px;
  }

  .footer-contact {
    font-size: 16px;
  }

  .footer-link {
    font-size: 16px;
  }

  .footer-copyright {
    font-size: 16px;
  }

  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .main-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .main-nav.open {
    display: block;
  }
  .nav-list {
    padding: 10px 20px;
    flex-direction: column;
    align-items: flex-start;
  }
  .container {
    max-width: 680px;
  }
  .hero-title {
    font-size: clamp(24px, 5vw, 34px);
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .map-embed {
    height: 320px;
  }
  .hero-pill {
    display: none;
  }
  .search-pill input {
    height: 48px;
  }

  .events-gradient {
    display: none;
  }

  .event-card {
    width: 280px;
  }

  .event-location {
    left: 40%;
    transform: translateX(-50%);
  }

  .filter-right {
    display: none;
  }

  .filter-tag-extended-desktop {
    display: none;
  }

  .filter-tags-extended {
    justify-content: center;
  }

  .filter-tags-extended-mobile {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
  }
  
  .filter-tag-center {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 5px;
  }

  .filter-right-mobile {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .filter-right-mobile-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }

  /* Страница учреждения */  
  .images-gallery__thumbnails {
    max-height: 300px;
  }

  .images-gallery {
    height: 300px;
  }

  /* Страница Культурные учреждения */
  .institutions-card {
    width: 100%;
    min-height: 500px;
  }
  
  .institutions-card-content {
    min-height: 27%;
  }
  
  .institutions-title {
    font-size: 20px;
  }
  
  .institutions-description {
    font-size: 14px;
  }
  
  .institutions-text {
    font-size: 16px;
  }

  .institutions-grid {
    grid-template-columns: 1fr;
  }

  /* Страница поиска: Найдено */
  .search-results-info {
    padding: 30px 0 15px;
  }

  .search-results-heading {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .search-refine-label,
  .search-refine-link {
    font-size: 16px;
  }

  .cookies {
    max-width: 375px;
    bottom: 10px;
    right: 10px;
    left: 10px;
    gap: 20px;
  }
}

@media (max-width: 750px) {
  .news-cards {
    left: -14vw;
  }

  .news-card {
    width: 400px;
    height: 280px;
  }

  .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .news-slider-tags {
    display: none;
  }
}

@media (min-width: 601px) {
  .filter-right-mobile2 {
    display: none;
  }
}

/* 600px */
@media (max-width: 600px) {
  .filter-right-mobile {
    display: none;
  }

  .filter-right-mobile2 {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
  }

  .filter-right-mobile2 .sort-dropdown, .filter-right-mobile2 .filter-right-mobile-buttons {
    width: 100%;
  }
  
  .filter-right-mobile2 .sort-button {
    width: 100%;
  }
}

@media (min-width: 641px) {
  /* Страница Культурные учреждения */
  .institutions-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }

  .institutions-card .institutions-details {
    height: 0;
  }

  .institutions-card:hover .institutions-details {
    height: auto;
  }

  .institutions-card:hover .institutions-card-content {
    height: auto;
    min-height: 27%;
    max-height: 100%;
  }

  .institutions-card:hover .institutions-card-background {
    height: 55%;
  }

  /* Страница Новости */
  .news-list-bg-card:hover .institutions-card-content {
    height: auto;
    min-height: auto;
    max-height: none;
  }

  .news-list-bg-card:hover .institutions-card-background {
    height: 73%;
  }
}

/* 640px */
@media (max-width: 640px) {
  .search-input {
    display: none;
  }
  
  .hero {
    padding: 15px 20px 20px;
  }
  
  .hero-content .hero-search-card {
    display: none;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .margin-bottom-50 {
    margin-bottom: 40px;
  }
  
  .section-head h2,
  .main-events .section-head h2,
  .news .section-head h2,
  .search-not-found h2,
  .categories-list-title {
    font-size: 48px;
  }
  
  .search-input {
    width: 120px;
    font-size: 16px;
  }

  .news {
    padding-left: 20px;
    padding-right: 0;
  }

  .news-card {
    width: 230px;
    height: 280px;
    left: -18vw;
  }
  
  .hero-content-mobile {
    margin-top: 20px;
    gap: 12px;
  }
  
  .hero-content-mobile .hero-search-card {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
  }
  
  .hero-content-mobile .hero-tags .tag {
    padding: 6px 10px;
    font-size: 12px;
  }
  
  .hero-content-mobile .hero-hashtags .hashtag {
    font-size: 12px;
  }
  
  .hero-content-mobile .hashtag-all-tags {
    font-size: 12px;
    padding: 8px 12px;
  }

  /* Страница учреждения */
  .breadcrumb-link, .breadcrumb-current, .service-tag {
    font-size: 12px;
  }

  .institution-description-services {
    flex-direction: column;
  }

  .institution-description {
    max-width: 100%;
  }

  /* Страница Культурные учреждения */
  .institutions-details, .institutions-tags {
    display: none;
  }
  
   /* Страница Проектные офисы */
  .our-mission-content {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    max-width: 480px;
    padding: 0 16px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-inner {
    padding: 36px 0 24px;
  }
  .nav-link {
    padding: 8px 6px;
  }
  .chip {
    height: 30px;
    padding: 0 12px;
  }

  .news-cards {
    left: -25vw;
  }

  .news-tags {
    overflow-x: auto;
    text-wrap: nowrap;
    scrollbar-width: none;
  }

  .news-tags::-webkit-scrollbar {
    display: none;
  }

  /* Страница учреждения */
  .breadcrumbs-list {
    flex-wrap: wrap;
  }

  .images-gallery__progress-bar {
    width: 45.6px;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 15px 30px;
  }
  .header-brand {
    width: 100px;
    height: 40px;
  }
  .nav-toggle {
    padding: 6px 12px;
    font-size: 14px;
  }
  .hero-logo {
    margin-top: 140px;
  }
  .hero-content .hero-search-card {
    display: none;
  }
  .hero-search-card {
    background: transparent;
  }
  .search-title {
  font-size: 16px;
  }
  .search-chip {
    padding: 6px 10px;
  }
  .chip-text {
    font-size: 14px;
  }
  .search-button {
    font-size: 16px;
    padding: 12px 20px;
  }
  .tag {
    padding: 12px 18px;
    font-size: 16px;
  }
  .hashtag {
    font-size: 16px;
  }
  
  .nav-dropdown {
    width: 180px;
  }

  .hero-search-input-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .news-cards {
    left: -30vw;
  }

  /* Страница учреждения */
  .institution-contacts {
    flex-direction: column;
    gap: 10px;
  }
  
  /* Страница Культурные учреждения */
  .institutions-card {
    min-height: 415px;
  }

  .institutions-title {
    font-size: 18px;
  }
  
  .institutions-description {
    font-size: 13px;
  }
}

@media (min-width: 421px) {
  /* Страница Карточка Новости */
  .news-share-item-mobile {
    display: none;
  }

  .news-share-item-desktop {
    display: flex;
  }
}

@media (max-width: 420px) {
  /* Страница учреждения */
  .images-gallery {
    flex-direction: column-reverse;
    height: auto;
  }

  .images-gallery__main {
    width: 100%;
    height: auto;
  }

  .images-gallery__thumbnails {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    height: 101px;
  }

  .images-gallery__current {
    height: 300px;
    width: 100%;
  }

  .photo-report-images-gallery .images-gallery__current {
    height: auto;
  }

  .images-gallery__current-image {
    width: 100%;
    height: 100%;
    min-width: auto;
    max-width: none;
  }

  /* Страница Карточка Новости */
  .news-share-item-mobile {
    display: flex;
  }

  .news-share-item-desktop {
    display: none;
  }

  .news-cards {
    left: -39vw;
  }
}

@media (max-width: 370px) {
  .news-cards {
    left: -45vw;
  }
}

@media (max-width: 350px) {
  .news-cards {
    left: -54vw;
  }
}

/* 320px */
@media (max-width: 320px) {
  .mobile-menu-toggle {
    flex-shrink: 0;
  }
  
  .hero {
    padding: 10px 15px 20px;
  }
  
  .section-head h2,
  .main-events .section-head h2,
  .news .section-head h2,
  .search-not-found h2,
  .categories-list-title {
    font-size: 32px;
  }

  .footer-logo h5,
  .footer-main-mobile-social h5 {
    font-size: 14px;
  }

  .footer-contacts span {
    font-size: 14px;
  }

  .footer-contact {
    font-size: 14px;
  }

  .footer-link {
    font-size: 14px;
  }

  .footer-copyright {
    font-size: 14px;
  }

  .search-input {
    font-size: 14px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .event-image {
    width: 280px !important;
    height: 220px !important;
  }
  
  .event-content {
    width: 280px !important;
  }

 .event-location {
    left: 40%;
    transform: translateX(-30%);
  }

  .news-cards {
    left: -60vw;
  }
  
  .news-card {
    width: 230px;
    height: 280px;
  }
  
  /* Карусели становятся колонками */
  .carousel-container {
    overflow: visible !important;
    flex-direction: column !important;
    gap: 20px;
  }
  
  .carousel-track {
    flex-direction: column !important;
    gap: 20px;
  }

  .hero-content .hero-search-card {
    display: none;
  }

  .hero-content-mobile .hero-tags {
    margin-bottom: 0;
  }
  
  .hero-content-mobile {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
    border-radius: 20px;
    box-sizing: border-box;
  }
  
  .hero-content-mobile .hero-search-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .hero-content-mobile .search-form, .search-form-section .search-form {
    flex-direction: column;
    gap: 20px;
  }

  .search-form {
    background-color: var(--var-surface);
    padding: 0;
  }

  .hero-search-input-wrapper {
    background-color: var(--var-bg);
    width: 100%;
  }

  .search-button {
    width: 100%;
  }

  /* Страница учреждения */
  .institution-title {
    font-size: 18px;
  }

  /* Страница поиска: Найдено */
  .events-grid-section .event-card:nth-child(n+3),
  .events-carousel-section .carousel-track .event-card:nth-child(n+3) {
    display: none !important;
  }
  .btn-show-more {
    display: block !important;
    margin-bottom: 30px;
    margin-top: -16px;
  }

  /* Страница Культурные учреждения */  
  .institutions-title {
    font-size: 16px;
  }
  
  .institutions-description {
    font-size: 12px;
  }

  /* Страница Карточка Новости */
  .news-share-item {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 300px) {
  .news-cards {
    left: -65vw;
  }
}

/* Дополнительное правило для header-inner на малых экранах */@media (max-width: 768px) {
  .header-inner {
    padding: 15px 30px;
  }
}

/* Стили для попапа Яндекс карт */
.ymaps-popup {
  background: #FFFFFF;
  border: 1px solid #E9E8E9;
  border-radius: 20px;
  padding: 20px;
  max-width: 450px;
  font-family: 'Inter Tight', sans-serif;
}

.ymaps-popup-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.21;
  color: #141212;
  margin-bottom: 20px;
}

.ymaps-popup-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 440px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #303EC9 rgba(48, 62, 201, 0.15);
}

.ymaps-popup-content::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.ymaps-popup-content::-webkit-scrollbar-track {
  background: rgba(48, 62, 201, 0.15);
  border-radius: 10px;
}

.ymaps-popup-content::-webkit-scrollbar-thumb {
  background: #303EC9;
  border-radius: 10px;
}

.ymaps-popup-content::-webkit-scrollbar-thumb:hover {
  background: #2a35b0;
}

.ymaps-event-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.ymaps-event-image {
  flex: 0 0 110px;
  width: 110px;
  height: 110px;
}

.ymaps-event-image a {
  display: block;
  text-decoration: none;
}

.ymaps-event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.ymaps-event-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ymaps-event-title {
  margin: 0;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.21;
  color: #141212;
}

.ymaps-event-title a {
  color: inherit;
  text-decoration: none;
}

.ymaps-event-title a:hover {
  text-decoration: underline;
}

.ymaps-event-date {
  margin: 0;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.21;
  color: rgba(20, 18, 18, 0.6);
}

.ymaps-event-divider {
  height: 1px;
  background: rgba(48, 62, 201, 0.15);
  width: 100%;
}

/* Адаптивные стили */
@media (max-width: 768px) {
  .ymaps-popup {
    max-width: 350px;
    padding: 16px;
  }
  
  .ymaps-popup-title {
    font-size: 18px;
    margin-bottom: 16px;
  }
  
  .ymaps-popup-content {
    gap: 16px;
    max-height: 380px;
  }
  
  .ymaps-event-item {
    gap: 16px;
  }
  
  .ymaps-event-image {
    flex: 0 0 90px;
    width: 90px;
    height: 90px;
  }
  
  .ymaps-event-title {
    font-size: 18px;
  }
  
  .ymaps-event-info {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .ymaps-popup {
    max-width: 300px;
    padding: 12px;
  }
  
  .ymaps-popup-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .ymaps-popup-content {
    gap: 12px;
    max-height: 320px;
  }
  
  .ymaps-event-item {
    gap: 12px;
  }
  
  .ymaps-event-image {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
  }
  
  .ymaps-event-title {
    font-size: 16px;
  }
  
  .ymaps-event-info {
    gap: 12px;
  }
  
  .ymaps-event-date {
    font-size: 12px;
  }
}


.images-gallery__current {
  position: relative;
}

.images-gallery__info-icon {
  position: absolute;
  top: 20px;
  right: 26px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #303EC9;
  background: transparent;
  color: #303EC9;
  box-sizing: border-box;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.images-gallery__info-icon:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.images-gallery__info-tooltip {
  position: absolute;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, transparent 60%);
  color: white;
  padding: 30px 12px 30px 12px;
  font-size: 15px;
  text-align: center;
  z-index: 9;
  animation: fadeIn 0.25s ease;
  white-space: nowrap;
  overflow: hidden;
  min-height: 200px;
  font-family: 'Inter Tight', sans-serif;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(-5px); 
    filter: blur(2px);
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
    filter: blur(0);
  }
}
.no-events-found{
  text-align: center; 
  padding: 40px; 
  font-size: 18px; 
  color: rgb(102, 102, 102); 
  width: 100%;
}