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

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: Arial, sans-serif;
}

body {
  background: #575757;
  overflow-y: auto;
}

/* Общие стили для всех ссылок */
a {
  color: #444444;          /* тёмно-серый цвет */
  text-decoration: none;   /* убираем подчёркивание */
  transition: color 0.2s ease;
}

a:hover {
  color: #000000;          /* при наведении можно сделать чёрным или другим оттенком */
  text-decoration: none;   /* чтобы подчёркивание не появлялось */
}

/* Если нужно, чтобы активные/посещённые ссылки тоже были без подчёркивания */
a:active, a:visited {
  text-decoration: none;
}

.container {
  width: 100%;
  position: relative;
  background: #575757;
  min-height: auto;
  overflow: hidden;

  padding-top: calc(135.01 / 257 * 100vw + 77.33 / 257 * 100vw); /* отступ под шапку */

}

@font-face {
  font-family: 'VetiverSerif';
  src: url('index_files/VetiverSerif.otf') format('opentype'),
       url('index_files/VetiverSerif.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Вспомогательные переменные для преобразования */
/* Базовая ширина макета: 257px */
/* Преобразование: (px / 257) * 100vw */

/* Hero Section */
.hero-image {
  position: absolute;
  width: 100vw;
  height: calc(135.01 / 257 * 100vw);
  left: 0;
  top: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), #ccc;
}

.blur-overlay {
  position: absolute;
  width: 100vw;
  height: calc(25 / 257 * 100vw);
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.2);
  filter: blur(10px);
  z-index: 1;
}

/* Navigation */
.nav-item {
  position: absolute;
  font-size: calc(4 / 257 * 100vw);
  font-weight: 300;
  color: #FFFFFF;
  letter-spacing: 0.06em;
  top: calc(8.37 / 257 * 100vw);
}
.nav-0 { left: calc(10 / 257 * 100vw); top:calc(4/20*10vw); }
.nav-1 { left: calc(85 / 257 * 100vw); }
.nav-2 { left: calc(116 / 257 * 100vw); }
.nav-3 { left: calc(152 / 257 * 100vw); }
.nav-4 { left: calc(183 / 257 * 100vw); }
.nav-5 { left: calc(220 / 257 * 100vw); }

/* Logo Group */
.logo-group {
  position: absolute;
  width: calc(55.02 / 257 * 100vw);
  height: calc(12.88 / 257 * 100vw);
  left: calc(11.25 / 257 * 100vw);
  top: calc(80.58 / 257 * 100vw);
}

/* Black title box */
.title-box {
  position: absolute;
  width: 100vw;
  height: calc(77.33 / 257 * 100vw);
  left: 0;
  top: calc(131.57 / 257 * 100vw);
  background: #000000;
}

.title-text {
  position: absolute;
  width: calc(120 / 257 * 100vw);
  left: calc(10.09 / 257 * 100vw);
  top: calc(37 / 257 * 100vw);
  font-size: calc(21.717 / 257 * 100vw);
  font-family: 'VetiverSerif', serif;
  font-weight: 400;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 90%;
  z-index: 2;
}

/* Button */
.button {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: none;
  color: #000000;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 240;
  letter-spacing: 0.06em;
  font-family: Arial, sans-serif;
  transition: all 0.3s ease;
  font-size: calc(3.48546 / 257 * 100vw);
}

.button:hover {
  background: #000000;
text-decoration-color: white;
  color: #FFFFFF;
}

.button-top {
  width: calc(50.71 / 257 * 100vw);
  height: calc(8.14 / 257 * 100vw);
  left: calc(10.09 / 257 * 100vw);
  top: calc(80.97 / 257 * 100vw);
  border-radius: calc(17.6452 / 257 * 100vw);
  padding: calc(5.06949 / 257 * 100vw) calc(4.35683 / 257 * 100vw);
  z-index: 2;
}

.description-text {
  position: relative;   /* оставляем relative, но убираем left и top */
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  left: auto;
  top: auto;
  font-size: calc(4.28336 / 257 * 100vw);
  font-weight: 320;
  color: #FFFFFF;
  text-align: center;
  line-height: 1.4;
  z-index: 2;
  padding: 20px 0;
}

/* Gallery Image */
.gallery-image {
  position: absolute;
  max-width: 1000px;
  max-height: 1000px;
  left: 0;
  top: calc(182 / 257 * 100vw);
  background: #e0e0e0;

}

/* Mission cards */
.mission-card {
  z-index: 400;
  position: relative;
  width: calc(77.51 / 257 * 100vw);
  height: calc(52.79 / 257 * 100vw);
  background: #FFFFFF;
  box-shadow: 0 calc(0.53542 / 257 * 100vw) calc(0.936984 / 257 * 100vw) rgba(0, 0, 0, 0.25);
  border-radius: calc(4.01565 / 257 * 100vw);
  padding: calc(3 / 257 * 100vw);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  top: calc(277 / 257 * 100vw);
}

.mission-1 { left: calc(10.09 / 257 * 100vw); z-index: 400; }
.mission-2 { left: calc(90.72 / 257 * 100vw); z-index: 400; }
.mission-3 { left: calc(171.37 / 257 * 100vw); z-index: 400; }

.card-title {
  font-size: calc(12.8501 / 257 * 100vw);
  font-weight: 400;
  color: #000000;
  text-transform: uppercase;
  font-family: 'VetiverSerif', serif;
  letter-spacing: 0.06em;
  margin-bottom: calc(2 / 257 * 100vw);
  text-align: center;
}

.card-text {
  font-size: calc(3.21252 / 257 * 100vw);
  font-weight: 320;
  color: #000000;
  text-align: center;
  line-height: calc(4 / 257 * 100vw);
}

/* Divider */
.divider {
  position: relative;
  height: 1.5px;
  left: 0;
  border-bottom: 1.5px solid #949494;
}

.divider-1 {
  width: 100vw;
  top: calc(582 / 257 * 100vw);
}

.divider-1-dark {
  width: calc(25 / 257 * 100vw);
  border-bottom-color: #000000;
  top: calc(582 / 257 * 100vw);
}

.divider-2 {
  width: 100vw;
  top: calc(815 / 257 * 100vw);
  border-bottom-color: #FFFFFF;
}

/* Section title */
.section-title {
  position: relative;
  font-size: calc(12.8501 / 257 * 100vw);
  font-weight: 400;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 90%;
  font-family: 'VetiverSerif', serif;
}

.geo-block {
  position: relative;
  /* Подбираем отступ, чтобы встать на место старого блока */
  top: calc(370 / 257 * 100vw);
  left: 0;
  width: 100%;
  z-index: 350;

  box-sizing: border-box;
}

.geo-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  flex-wrap: wrap;
  margin-bottom: 3vw;
}

.geo-map {
  max-width: 70vw;
  width: auto;
  height: auto;
  display: block;
  /* Убираем абсолютное позиционирование */
  position: static !important;
}

.geo-title {
  font-size: calc(12.85 / 257 * 100vw);
  font-family: 'VetiverSerif', serif;
  font-weight: 400;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  margin: 0;
}

.cities-container {
  padding-top: 2vw;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;           /* карточки в одну строку */
  overflow-x: auto;            /* горизонтальная прокрутка */
  justify-content: flex-start; /* прижимаем к левому краю */
  gap: 4vw;
  margin-top: 2vw;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 1vw;
      -ms-overflow-style: none; /* IE/Edge */
}

/* Карточка города — возвращаем исходные размеры */
.city-card {
  flex: 0 0 auto;              /* не растягиваться и не сжиматься */
  width: calc(73.39 / 257 * 100vw); /* исходная ширина из макета (как у .location-img) */
  /* Если нужна именно 35% — замените на width: 35%;, но тогда карточки будут разной ширины */
  background: transparent;
  text-align: center;

  transition: transform 0.2s ease;
  /* Убираем margin-top: -10vw, который поднимал карточки; если нужен — верните */
  margin-top: 0;
}

.city-card:hover {
  transform: translateY(-0.5vw);
}
.carousel-prev, .carousel-next {
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 1vw;
  width: 4vw;
  height: 4vw;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}
.carousel-controls {
  display: flex;
  justify-content: flex-end;  /* кнопки справа */
  gap: 10px;
  margin-bottom: 0.3vw;
  padding-right: 2vw;
}
/* Кнопки */
.carousel-btn {
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 3vw;
  height: 3vw;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
}

.city-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 1.5vw;
  margin-bottom: 1.5vw;
background-repeat: no-repeat;
  background-size: calc(73.39 / 257 * 100vw) calc(40 / 257 * 100vw);
  background-position: center;
}

.city-name {
  font-size: calc(4.8 / 257 * 100vw);
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.5vw;
}

.city-region {
  font-size: calc(3.2 / 257 * 100vw);
  font-weight: 400;
  color: #333333;
}

/* Black boxes */
.black-box {
  position: relative;
  background: #000000;
  box-shadow: 0 calc(0.53542 / 257 * 100vw) calc(0.936984 / 257 * 100vw) rgba(0, 0, 0, 0.25);
  border-radius: calc(4.01565 / 257 * 100vw);
}

.black-1 {
  position: relative;
  width: calc(212.02 / 257 * 100vw);
  height: calc(102.53 / 257 * 100vw);
  left: calc(6.3 / 257 * 100vw);
  top: calc(704 / 257 * 100vw);     /* ваш текущий top */
  background: #000000;
  box-shadow: 0 calc(0.53542 / 257 * 100vw) calc(0.936984 / 257 * 100vw) rgba(0,0,0,0.25);
  border-radius: calc(4.01565 / 257 * 100vw);  /* скругление углов блока */
  overflow: hidden;                            /* чтобы картинка не вылезала за скруглённые углы */
  position: relative;
  z-index: 140;
}

.black-1-image {
  position: relative;
  top: 1vw;            /* отступ сверху */
  bottom: 1vw;         /* отступ снизу */
  left: 1vw;           /* прижато к левому краю + отступ */
  width: 65%;          /* ширина 65% от родительского блока */
  height: auto;        /* высота автоматически, сохраняем пропорции */
  object-fit: contain; /* картинка вписывается в область без искажений */
  z-index: 400;         /* выше фона */
}

.black-2 {
  width: calc(229.74 / 257 * 100vw);
  height: calc(102.53 / 257 * 100vw);
  left: calc(227.8 / 257 * 100vw);
  top: calc(705.26 / 257 * 100vw);
    z-index:100;
}

.gray-box {
  position: relative;
  width: 100%;
  min-height: 40vw;   /* дайте ему высоту, чтобы создать пространство */
  background: #575757;
  margin-top: 20px;
    top: calc(-1000 / 257 * 100vw);
   height: auto;
    z-index:-1;
}

.black-box-bottom {
  position: relative;
  width: calc(273 / 257 * 100vw);
  height: auto;
    min-height: calc(70 / 257 * 100vw);
  left: calc(-6 / 257 * 100vw);
  top: auto;
  background: #000000;
}

/* Text in white */
.white-title {
  position: relative;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 90%;
  font-family: 'VetiverSerif', serif;
    
}

.text-block {
  text-align: left;          /* выравнивание как в Word */
  font-size: clamp(12px, 3vw, 22px);   /* адаптивный размер: минимум 12px, максимум 18px */
  line-height: 1.5;          /* межстрочный интервал для лёгкого чтения */
  max-width: 90ch;           /* оптимальная ширина строки (~65 символов) */
  margin: 0 auto 0 0;        /* прижимаем к левому краю (если нужно) */
  color: white;               /* тёмно-серый, не чёрный — меньше устают глаза */
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: normal;
white-space: pre-wrap;

}

.white-1 {
  width: calc(93 / 257 * 100vw);
  left: calc(9.46 / 257 * 100vw);
  top: calc(945 / 257 * 100vw);
  font-size: calc(17.1334 / 257 * 100vw);
  font-weight: 400;
}

.white-2 {
  width: calc(29 / 257 * 100vw);
  left: calc(162 / 257 * 100vw);
  top: calc(720 / 257 * 100vw);
  font-size: calc(17.1334 / 257 * 100vw);
  font-weight: 400;
        z-index:150;
}

/* Image placeholders */
.image-mask {
  position: relative;
  width: calc(137.29 / 257 * 100vw);
  height: calc(97.16 / 257 * 100vw);
  left: calc(9.99 / 257 * 100vw);
  top: calc(700.95 / 257 * 100vw);
  background: #e0e0e0;
  border-radius: calc(4.01565 / 257 * 100vw);
}

/* Button bottom */
.button-bottom {
  width: calc(29.71 / 257 * 100vw);
  height: calc(10.14 / 257 * 100vw);
  left: calc(218.48 / 257 * 100vw);
  top: calc(830 / 257 * 100vw);
  border-radius: calc(17.6452 / 257 * 100vw);
  padding: calc(2.06949 / 257 * 100vw) calc(4.35683 / 257 * 100vw);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.button-middle {
  width: calc(48.47 / 257 * 100vw);
  height: calc(10.02 / 257 * 100vw);
  left: calc(158 / 257 * 100vw);
  top: calc(775 / 257 * 100vw);
  border-radius: calc(17.1538 / 257 * 100vw);
  padding: calc(2.01187 / 257 * 100vw) calc(4.23552 / 257 * 100vw);
        z-index:150;
}
.button-middle-1 {
  width: calc(48.47 / 257 * 100vw);
  height: calc(10.02 / 257 * 100vw);
  left: calc(158 / 257 * 100vw);
  top: calc(790 / 257 * 100vw);
  border-radius: calc(17.1538 / 257 * 100vw);
  padding: calc(2.01187 / 257 * 100vw) calc(4.23552 / 257 * 100vw);
        z-index:150;
    background:#dd7900;
    color:black;

}

/* Footer contacts */
.footer {
  background: #000;
  padding: 40px 20px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  color: white;
}

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

.footer-title {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 15px;
  color: #fff;
  position: static;  /* убираем absolute */
}

.footer-text {
  font-size: 12px;
  line-height: 1.5;
  color: #ccc;
}

.footer-text a {
  color: #ccc;
}

.footer-text a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social img {
  width: 30px;
  height: 30px;
}

/* Partner logos */
.partner-logo {
  position: relative;
  object-fit: contain;
  width: calc(74.5 / 257 * 100vw);
  height: calc(18.9 / 257 * 100vw);
  max-height: calc(18.9 / 257 * 100vw);
  background: transparent;
  border-radius: calc(2 / 257 * 100vw);
  align-content: center;
}
.partner-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
/* масштабирует, сохраняя пропорции, и никогда не вылезает */
}

/* ===== БЛОК СОБЫТИЙ (фиксированный размер, как в оригинале) ===== */

.events-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2vw;
  flex-wrap: wrap;
  margin-bottom: 2vw;
}

.events-title {
  font-size: calc(12.85 / 257 * 100vw);
  font-family: 'VetiverSerif', serif;
  font-weight: 400;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  margin: 0;
}

.events-wrapper {
  position: relative;
  top: calc(592 / 257 * 100vw);   /* подгоните отступ */
  left: 0;
  width: 100%;
  z-index: 250;
}

.events-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* скрыть полосу в Firefox */
  -ms-overflow-style: none;       /* скрыть в IE/Edge */
  padding-bottom: calc(20 / 257 * 100vw);
  padding-top: calc(5 / 257 * 100vw); 
}


/* Скрыть полосу прокрутки в Chrome, Safari */
.events-container::-webkit-scrollbar {
  display: none;
}

.events-list {
  display: flex;
  flex-direction: row;
  gap: calc(11 / 257 * 100vw);
  padding-left: calc(7.53 / 257 * 100vw);
  padding-right: calc(7.53 / 257 * 100vw);
  padding-bottom: calc(10 / 257 * 100vw); /* чтобы тени были видны */
}

/* Карточка события — ширина из макета, высота фиксированная */
.event-item {
  flex: 0 0 auto;
  width: calc(100 / 257 * 100vw);
  height: calc(80 / 257 * 100vw);        /* общая высота (подберите) */
  background: #FFFFFF;
  border-radius: calc(1.87397 / 257 * 100vw);
  box-shadow: 0 calc(0.53542 / 257 * 100vw) calc(0.936984 / 257 * 100vw) rgba(0,0,0,0.25);
  overflow: auto;
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  overflow: hidden;          /* скрываем только содержимое, выходящее за углы, тень не обрезается */
}

.event-item:hover {
  transform: translateY(calc(-2 / 257 * 100vw));
}

/* Верхняя часть с картинкой */
.event-header {
  height: calc(52 / 257 * 100vw);
  background-color: #D9D9D9;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

/* Нижняя часть с текстом — прокрутка при переполнении */
.event-body {
  padding: calc(4 / 257 * 100vw);
  flex: 1;
  overflow-y: hidden;
  min-height: 0;   /* важно для работы flex + overflow */
}

.event-title {
  font-size: calc(4.5 / 257 * 100vw);
  font-weight: 600;
  color: #000000;
  line-height: 1.2;
  margin-bottom: calc(2.5 / 257 * 100vw);
}

.event-date {
  font-size: calc(4 / 257 * 100vw);
  font-weight: 350;
  color: #000000;
  line-height: 1.2;
}

/* Стилизация скроллбаров */
.event-body::-webkit-scrollbar {
  width: calc(3 / 257 * 100vw);
  background: #e0e0e0;
  border-radius: calc(2 / 257 * 100vw);
}
.event-body::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: calc(2 / 257 * 100vw);
}

.events-container::-webkit-scrollbar {
  height: calc(5 / 257 * 100vw);
  background: #e0e0e0;
  border-radius: calc(4 / 257 * 100vw);
}
.events-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: calc(4 / 257 * 100vw);
}

.logo-1 { left: calc(7.53 / 257 * 100vw); top: calc(848 / 257 * 100vw); }
.logo-2 { left: calc(90.2 / 257 * 100vw); top: calc(848 / 257 * 100vw); }
.logo-3 { left: calc(173.7 / 257 * 100vw); top: calc(848 / 257 * 100vw); }
.logo-4 { left: calc(7.53 / 257 * 100vw); top: calc(873 / 257 * 100vw); }
.logo-5 { left: calc(90.2 / 257 * 100vw); top: calc(873 / 257 * 100vw); }
.logo-6 { left: calc(173.7 / 257 * 100vw); top: calc(873 / 257 * 100vw); }
.logo-7 { left: calc(7.53 / 257 * 100vw); top: calc(898 / 257 * 100vw); }
.logo-8 { left: calc(90.2 / 257 * 100vw); top: calc(898 / 257 * 100vw); }
.logo-9 { left: calc(173.7 / 257 * 100vw); top: calc(898 / 257 * 100vw); }

.bottom-sticky-content {
  position: relative;
  bottom: 5%;            /* отступ от нижнего края блока (можно подобрать) */
  left: 50%;
  transform: translateX(-50%);
  width: 40%;            /* ширина относительно родителя */
  text-align: center;
}

.bottom-sticky-content img {
  width: 100%;
  max-width: 47%;        /* или любой другой размер */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ПОТОКОВЫЕ ПРАВКИ ДЛЯ СТРАНИЦЫ ПОЛИТИКИ */
.description-text {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 90% !important;
  margin-top: 20px !important;
  margin-left: 20px !important;
  margin-right: 20px !important;

  background: rgba(0,0,0,0.5);
  border-radius: 20px;

  padding: 30px 20px !important;

}

.gray-box {
  position: relative !important;
  width: 100% !important;
  min-height: 30vw !important;
  margin: 40px 0 0 0 !important;
}

.container {
  padding-top: 30vw !important; /* грубо, но сработает */
  overflow-x: hidden;
  overflow-y: visible;
}

/* Убираем лишние сдвиги */
.nav-item, .logo-group, .title-box, .title-text, .button-top {
  /* оставляем как есть (absolute) */
}

/* Отключаем ненужные absolute-сдвиги */
.geo-block, .events-wrapper, .black-1, .black-2, .white-title, .button-bottom, .button-middle, .button-middle-1 {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  margin: 10px 0;
  width: auto;
}
/* Адаптивный контейнер для видео 16:9 */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000; /* черный фон вместо белого */
    border-radius: 12px; /* скругление уголков (можно убрать или изменить) */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

