@font-face {
  font-family: "Days One";
  src: url("Days One/DaysOne-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Unbounded";
  src: url("Unbounded/Unbounded-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  zoom: 1.25;
}

:root {
  --page-bg: #A9C4DB;
  --nav-active: #415675;
  --radius: 20px;
}

body {
  font-family: "Unbounded", sans-serif;
  background: #8FA9BF;
  min-height: 100vh;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

h1, h2, h3, h4,
.about-project-title,
.heroes-title,
.news-block-title,
.gallery-title,
.conference-archive-title,
.conference-stream-text,
.contacts-title,
.contacts-details-title,
.about-us-title,
.section-title,
.project-face-title,
.leader-title,
.event-card-title,
.footer-col-title,
.conference-item-overlay-title,
.hero-bio-name,
.dashboard h2,
.content-box h2,
.admin-header h1 {
  font-family: "Days One", sans-serif;
}

h1 {
  font-weight: normal;
}

.page-gradient {
  background: linear-gradient(to bottom, #8FA9BF, #446B8D);
}

/* Header */
.header {
  padding: 0;
}

.header-banner {
  display: block;
  width: 100%;
  height: auto;
}

.header-divider {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  height: 3px;
  background: #fff;
  background-clip: content-box;
  box-sizing: border-box;
  margin-top: 25px;
  margin-bottom: 25px;
}

/* Navigation */
.nav {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 25px;
  margin: 1rem auto 0;
  padding: 0;
  max-width: 1000px;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
}

.nav-btn {
  display: block;
  padding: 0.8rem 0.2rem;
  border-radius: var(--radius);
  font-size: 12px;
  text-decoration: none;
  color: #fff;
  background: transparent;
  border: 2px solid #fff;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.nav-btn:hover {
  border-color: rgba(255, 255, 255, 0.9);
}

.nav-btn.active {
  background: var(--nav-active);
  color: #fff;
  border-color: var(--nav-active);
}

/* Main content */
.main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* About project page */

.about-project {
  background: transparent;
  padding: 0;
  width: 100%;
}

.about-project-title {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  text-align: left;
}

.about-project-text {
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 2rem;
  max-width: 100%;
}

.about-project-image {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-project-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Heroes page */
.main-heroes {
  padding: 2rem 1.5rem;
}

.heroes-title {
  font-size: 2.5rem;
  font-weight: normal;
  color: #fff;
  margin-bottom: 2rem;
  text-align: left;
}

.hero-bio {
  background: transparent;
  padding: 0 0 2rem;
  margin-bottom: 0;
}

.hero-bio-inner {
  overflow: hidden;
}

.hero-bio-image {
  width: 320px;
  max-width: 40%;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1rem;
}

.hero-bio-left .hero-bio-image {
  float: left !important;
  margin-right: 28px;
  margin-bottom: 1rem;
  margin-top: 0;
}

.hero-bio-right .hero-bio-image {
  float: right !important;
  margin-left: 28px;
  margin-bottom: 1rem;
  margin-top: 0;
}

.hero-bio-image img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-bio-content {
  overflow: visible;
}

.hero-bio-name {
  font-size: 1.8rem;
  font-weight: normal;
  color: #fff;
  margin-top: 0;
  margin-bottom: 1rem;
  clear: none;
}

.hero-bio-text {
  font-size: 1rem;
  color: #fff;
  line-height: 1.6;
  clear: none;
}

.hero-link {
  color: #b8d4ff;
  text-decoration: underline;
}

.hero-link:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .hero-bio-image {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* News page */
.main-news {
  padding: 2rem 1.5rem;
}

.news-block {
  background: transparent;
  margin-bottom: 2rem;
}

.news-block-title {
  font-size: 2.5rem;
  font-weight: normal;
  color: #fff;
  margin-bottom: 1rem;
}

.news-block-left .news-block-title {
  text-align: left;
}

.news-block-right .news-block-title {
  text-align: right;
}

.news-block-text {
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.6;
  text-align: left;
}

/* Gallery page */
.main-gallery {
  padding: 2rem 1.5rem;
}

.gallery-title {
  font-size: 2.5rem;
  font-weight: normal;
  color: #fff;
  margin-bottom: 1.5rem;
  text-align: left;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gallery-grid.collapsed .gallery-item:nth-child(n+16) {
  display: none !important;
}

.gallery-item {
  background: #fff;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  line-height: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item-hidden {
  display: none !important;
}

.gallery-show-more {
  font-family: 'Days One', sans-serif;
  font-size: 1rem;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.gallery-show-more:hover {
  text-decoration: underline;
}

/* Gallery lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.gallery-lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.gallery-lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  padding: 0;
}

.gallery-lightbox-prev img,
.gallery-lightbox-next img {
  width: 44px;
  height: 44px;
  display: block;
  pointer-events: none;
  filter: brightness(0) invert(1);
}

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  opacity: 0.85;
}

.gallery-lightbox-prev {
  left: calc(5vw + 16px);
}

.gallery-lightbox-next {
  right: calc(5vw + 16px);
}

.gallery-item {
  cursor: pointer;
}

/* Conferences page */
.main-conferences {
  padding: 2rem 1.5rem;
}

.conference-stream {
  background: #000;
  border-radius: 20px;
  aspect-ratio: 21 / 9;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  overflow: hidden;
  position: relative;
}

.conference-stream-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 20px;
}

.conference-stream-text {
  font-family: 'Days One', sans-serif;
  font-size: 1.5rem;
  color: #333;
}

.conference-archive-title {
  font-size: 2rem;
  font-weight: normal;
  color: #fff;
  margin-bottom: 1.5rem;
  text-align: center;
}

.conference-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.conference-grid.collapsed .conference-item:nth-child(n+16) {
  display: none !important;
}

.conference-item {
  position: relative;
  background: #8FA9BF;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
}

a.conference-item {
  cursor: pointer;
}

a.conference-item:hover .conference-item-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5) 50%, transparent);
}

.conference-item-image {
  position: absolute;
  inset: 0;
}

.conference-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.conference-item-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4) 60%, transparent);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.conference-item-overlay-title {
  font-family: 'Days One', sans-serif;
  font-size: 1rem;
  line-height: 1.25;
}

.conference-item-overlay-date {
  font-size: 0.8rem;
  opacity: 0.9;
}

.conference-item-hidden {
  display: none !important;
}

.conference-show-more {
  font-family: 'Days One', sans-serif;
  font-size: 1rem;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.conference-show-more:hover {
  text-decoration: underline;
}

/* Conferences lightbox (archive videos) */
.conference-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.conference-lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.conference-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.conference-lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  background: #000;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.conference-lightbox-frame-wrap {
  position: relative;
  width: 80vw;
  max-width: 960px;
  aspect-ratio: 16 / 9;
}

.conference-lightbox-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.conference-lightbox-close {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.conference-item-has-video {
  cursor: pointer;
}

.conference-lightbox-prev,
.conference-lightbox-next {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.conference-lightbox-prev img,
.conference-lightbox-next img {
  width: 44px;
  height: 44px;
  display: block;
  filter: brightness(0) invert(1);
}

.conference-lightbox-prev {
  left: 10px;
}

.conference-lightbox-next {
  right: 10px;
}

@media (max-width: 768px) {
  .conference-lightbox-content {
    padding: 8px;
    border-radius: 12px;
  }
  .conference-lightbox-frame-wrap {
    width: 100vw;
    max-width: none;
  }
}

/* Contacts page */
.main-contacts {
  padding: 2rem 1.5rem 1rem;
}

.contacts-title {
  font-size: 2rem;
  font-weight: normal;
  color: #fff;
  margin-bottom: 1.5rem;
  text-align: center;
}

.contacts-intro {
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 2rem;
}

.contacts-block {
  background: #f5f5f5;
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.contacts-map {
  flex: 0 0 350px;
  width: 350px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.contacts-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

.contacts-map-text {
  font-size: 1.25rem;
  font-weight: bold;
  color: #fff;
}

.contacts-details {
  flex: 1;
  min-width: 280px;
}

.contacts-details-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1rem;
}

.contacts-details-text {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  text-align: left;
}

/* About us block */
.about-us {
  background: transparent;
  padding: 0 0 2rem;
}

.about-us-title {
  font-size: 2.5rem;
  font-weight: normal;
  color: #fff;
  margin-bottom: 1rem;
}

.about-us-text {
  font-size: 1.1rem;
  color: #fff;
  line-height: 1.6;
  text-align: left;
}

/* Project face block */
.section {
  margin-bottom: 2.5rem;
}

/* News block */
.news-block-inner {
  overflow: hidden;
}

.news-block-image {
  float: right;
  width: 420px;
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
  border-radius: 16px;
  overflow: hidden;
}

.news-block-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.project-face {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.project-face-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  min-height: 260px;
}

.project-face-image {
  flex: 0 0 auto;
  width: 380px;
  height: 535px;
  border-radius: var(--radius);
  overflow: hidden;
}

.project-face-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 5%;
  display: block;
}

.project-face-content {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0.25rem 0;
}

.project-face-title {
  font-size: 2.5rem;
  font-weight: normal;
  margin-bottom: 1rem;
  color: #336699;
  line-height: 1.2;
}

.project-face-name {
  font-size: 20px;
  margin-bottom: 1rem;
  line-height: 1.4;
  width: 100%;
}

.project-face-desc {
  font-size: 20px;
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
}

/* Events section */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-weight: normal;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Leaders cards on main page (two blocks under header) */
.leaders {
  margin-top: 1.5rem;
}

.leaders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.leader-card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.leader-photo {
  border-radius: 18px;
  background: #d5d7da;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.25rem;
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.leader-photo-placeholder {
  width: 100%;
  height: 100%;
  background: #d5d7da;
}

.leader-title {
  font-family: 'Days One', sans-serif;
  font-size: 0.95rem;
  text-align: center;
  color: #2d4764;
}

.events-empty {
  grid-column: 1 / -1;
  color: #fff;
  text-align: center;
  padding: 2rem;
  margin: 0;
}

.event-card {
  position: relative;
  background: #263346;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  min-height: 140px;
  overflow: hidden;
  cursor: pointer;
}

.event-card-image {
  position: absolute;
  inset: 0;
}

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

.event-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4) 60%, transparent);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.event-card-title {
  font-family: 'Days One', sans-serif;
  font-size: 1rem;
  font-weight: normal;
  margin: 0;
  line-height: 1.25;
}

.event-card-desc {
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.3;
  opacity: 0.95;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card-date {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* Event full-screen modal (news page) */
.event-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.event-modal.is-open {
  display: flex;
}

.event-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 0;
}

.event-modal-content {
  position: relative;
  z-index: 2;
  max-width: 768px;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #5b6a7f;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  color: #fff;
}

.event-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 32px;
  line-height: 32px;
  text-align: center;
  padding: 0;
}

.event-modal-image-wrap {
  position: relative;
  background: #5b6a7f;
  border-radius: 25px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 24px 20px;
}

.event-modal-image-inner {
  position: relative;
  display: inline-block;
  border-radius: 25px;
  overflow: hidden;
}

.event-modal-image-inner::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.35), transparent);
  z-index: 1;
  pointer-events: none;
}

.event-modal-image-inner img {
  display: block;
  width: 100%;
  height: clamp(220px, 50vh, 360px);
  object-fit: cover;
  object-position: center;
}

.event-modal-date {
  position: absolute;
  right: 18px;
  bottom: 16px;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  z-index: 2;
}

.event-modal-prev,
.event-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.event-modal-prev::before,
.event-modal-next::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
}

.event-modal-prev {
  left: 18px;
}

.event-modal-prev::before {
  transform: translateX(3px) rotate(135deg);
}

.event-modal-next {
  right: 18px;
}

.event-modal-next::before {
  transform: translateX(-3px) rotate(-45deg);
}

/* Навигация между мероприятиями (стрелки как в галерее) */
.event-modal-event-prev,
.event-modal-event-next {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.event-modal-event-prev::before,
.event-modal-event-next::before {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
}

.event-modal-event-prev {
  left: calc(5vw + 16px);
}

.event-modal-event-prev::before {
  transform: rotate(135deg);
}

.event-modal-event-next {
  right: calc(5vw + 16px);
}

.event-modal-event-next::before {
  transform: rotate(-45deg);
}

.event-modal-body {
  padding: 0 20px 26px 26px;
}

.event-modal-title {
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
  font-family: 'Days One', sans-serif;
  font-weight: 400;
}

.event-modal-desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: #263346;
  width: 100%;
  padding: 2.5rem 0;
  color: #fff;
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-col {
  flex: 1 1 0;
  min-width: 220px;
}

.footer-col-title {
  font-weight: bold;
  margin: 0 0 0.5rem;
  font-weight: 400;
}

.footer-col-text {
  margin: 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  /* Navigation */
  .nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 1rem;
  }

  .nav-btn {
    font-size: 11px;
    padding: 0.7rem 0.4rem;
  }

  /* Header divider */
  .header-divider {
    margin-top: 15px;
    margin-bottom: 15px;
  }

  /* Main content */
  .main {
    padding: 1.5rem 1rem;
  }

  .main-gallery,
  .main-conferences,
  .main-contacts,
  .main-news {
    padding: 1.5rem 1rem;
  }

  /* About us */
  .about-us-title {
    font-size: 1.8rem;
  }

  .about-us-text {
    font-size: 1rem;
  }

  /* Project face */
  .project-face {
    padding: 1rem;
  }

  .project-face-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .project-face-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 260px;
    height: 0;
    padding-bottom: 100%;
    position: relative;
  }

  .project-face-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
  }

  .project-face-content {
    min-width: 100%;
  }

  .project-face-title {
    font-size: 1.8rem;
  }

  .project-face-name,
  .project-face-desc {
    font-size: 0.9rem;
  }

  /* Events grid */
  .events-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .event-card {
    min-height: 150px;
  }

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

  .event-card-overlay {
    padding: 0.75rem 1rem 1rem;
  }

  .event-card-title {
    font-size: 0.95rem;
  }

  .event-card-desc {
    font-size: 0.75rem;
  }

  /* About project page */
  .about-project-title {
    font-size: 1.8rem;
  }

  .about-project-text {
    font-size: 1rem;
  }

  .about-project-image {
    margin-top: 1.5rem;
  }

  /* Heroes page */
  .heroes-title {
    font-size: 1.8rem;
  }


  .hero-bio-name {
    font-size: 1.3rem;
  }

  .hero-bio-text {
    font-size: 0.95rem;
  }

  /* News page */
  .news-block-title {
    font-size: 1.8rem;
  }

  .news-block-text {
    font-size: 1rem;
  }

  /* Gallery page */
  .gallery-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Conferences page */
  .conference-stream {
    aspect-ratio: 16 / 9;
    margin-bottom: 1.5rem;
  }

  .conference-stream-text {
    font-size: 1.1rem;
  }

  .conference-archive-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .conference-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Contacts page */
  .contacts-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .contacts-intro {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .contacts-block {
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .contacts-map {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .contacts-details {
    min-width: 100%;
  }

  .contacts-details-title {
    font-size: 1.3rem;
  }

  .contacts-details-text {
    font-size: 0.95rem;
  }

  /* Footer */
  .footer {
    padding: 1.5rem 1rem;
  }

  .footer-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  /* Navigation for very small screens */
  .nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nav-btn {
    font-size: 12px;
    padding: 0.75rem 0.5rem;
  }

  /* Typography adjustments */
  .about-us-title,
  .project-face-title,
  .heroes-title,
  .news-block-title,
  .gallery-title,
  .conference-archive-title,
  .contacts-title {
    font-size: 1.5rem;
  }

  .about-project-title {
    font-size: 1.5rem;
  }

  /* Smaller padding */
  .main,
  .main-gallery,
  .main-conferences,
  .main-contacts,
  .main-news {
    padding: 1rem 0.75rem;
  }

  .project-face,
  .contacts-block {
    padding: 0.75rem;
  }

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

