@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap');

body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #282c34;
  overflow: hidden;
  position: relative;
}

.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.header {
  display: flex;
  align-items: center;
  height: 80px;
  background: rgba(51, 51, 51, 0.8);
  position: relative;
  padding: 0 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  box-sizing: border-box; /* Учитывает padding и border в общей высоте */
}

.header-nav-left, .header-nav-right {
  display: flex;
  align-items: center;
}

.header-nav-left {
  position: absolute;
  left: 20px;
}

.header-nav-right {
  display: flex;
  align-items: center;
  position: absolute;
  right: 20px;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 4px;
  background: #444;
  border: 2px solid transparent;
  transition: background-color 0.3s, color 0.3s, transform 0.3s;
  margin-left: 10px; /* Отступ между кнопками */
  user-select: none; /* Запрещает выделение текста */
}

.nav-link:hover {
  background-color: #555;
  border-color: orange;
  transform: scale(1.05);
}

.nav-link:active {
  background-color: #666;
  transform: scale(0.95); /* Анимация при нажатии */
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05rem;
  color: white;
  text-align: center;
  text-transform: uppercase;
  user-select: none; /* Запрещает выделение текста */
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.glebov {
  color: white;
}

.real-estate {
  color: orange;
}

.language-selector {
  display: flex;
  align-items: center;
  position: relative;
}

.language-button {
  background: #333;
  border: 2px solid #555;
  color: white;
  font-size: 1rem;
  display: flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s, border-color 0.3s;
  margin-left: 10px; /* Отступ между кнопками */
  user-select: none; /* Запрещает выделение текста */
}

.language-button:hover {
  background: #555;
  border-color: #777;
}

.language-button:active {
  background: #666;
  transform: scale(0.95); /* Анимация при нажатии */
}

.dropdown-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid white;
  margin-left: 5px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  width: 200px; /* Ширина увеличена */
  max-height: 200px; /* Ограничиваем максимальную высоту */
  overflow-y: auto; /* Добавляем скролл, если контента больше, чем высота */
}

.dropdown-menu.show {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s;
  user-select: none; /* Запрещает выделение текста */
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown-item img {
  width: 24px;
  height: 16px;
  margin-right: 8px;
}

.header::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #888, #333);
}

.content-block {
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid black;
  border-radius: 10px;
  margin: 40px auto; /* Увеличен верхний отступ для размещения выше */
  padding: 20px;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  width: 85%; /* Ширина блока увеличена */
  max-width: 1400px; /* Максимальная ширина увеличена */
}

.content-inner {
  background: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
}

.content-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.profile-image {
  height: 100%; /* Растягиваем на всю высоту контейнера */
  width: auto; /* Автоматическая ширина для сохранения пропорций */
  max-width: 200px; /* Максимальная ширина */
  object-fit: cover; /* Обеспечивает заполнение контейнера */
  margin-right: 20px;
  border-radius: 8px;
  user-select: none; /* Запрещает выделение изображения */
}
