/* Базовые стили */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: black;
}

li {
  list-style-type: none;
  margin: 0 1.5%;
}

.header {
  width: 100%;
  min-height: 30vh;
}

.image_container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 20vh;
}

.header_text_container {
  display: flex;
  height: 100%;
  min-height: 10vh;
  justify-content: center;
  align-items: center;
}

.language-switcher {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 10000;
  background-color: white;
  border-radius: 8px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-family: Raleway;
}

.flag-icon {
  width: 20px;
  height: 14px;
  margin-right: 6px;
}

.lang-label {
  font-weight: bold;
}

.lang-menu {
  position: absolute;
  top: 40px;
  right: 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  padding: 5px 0;
  min-width: 80px;
}

.lang-menu a {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  text-decoration: none;
  color: black;
  font-size: 0.9em;
}

.lang-menu a:hover {
  background-color: #f0f0f0;
}

.lang-menu img {
  width: 18px;
  height: 12px;
  margin-right: 6px;
}

.page2-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 40vh;
  width: 100%;
  padding: 40px 10%;
  box-sizing: border-box;
  font-family: Raleway;
  color: rgb(81, 81, 81);
}

.block-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.block-content h2 {
  align-self: flex-end;
  max-width: 35%;
  font-size: 3em;
  font-weight: normal;
  margin: 0 0 20px 0;
  word-wrap: break-word;
  text-align: right;
  line-height: 1.1em;
}

.block-content p, .collapsible-text {
  margin: 0;
  font-size: 1em;
  line-height: 1.6em;
  max-width: 100%;
  text-align: left;
}

.light-bg {
  background-color: rgb(241, 241, 241);
}

.white-bg {
  background-color: white;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 20vh;
  font-family: Raleway;
  font-size: 1em;
  color: black;
  padding: 20px 10px;
  text-align: center;
}

.footer li {
  margin: 5px 0;
}

/* Collapsible text */
.collapsible-text .full {
  display: none;
}

.collapsible-text.open .full {
  display: inline;
}

.collapsible-text.open .short {
  display: none;
}

.read-more-wrapper {
  margin-top: 15px;
}

.read-more {
  display: inline-block;
  font-size: 1em;
  color: black;
  cursor: pointer;
  user-select: none;
  text-decoration: underline;
}

.back-to-top {
  position: fixed;
  right: 10px;
  bottom: 10px;
  font-size: 1.5em;
  cursor: pointer;
  display: none;
  background-color: rgb(96, 121, 128);
  color: white;
  padding: 10px 12px;
  border-radius: 50%;
  text-align: center;
  z-index: 1000;
  user-select: none;
}

/* Адаптивность */
@media (max-width: 768px) {
  .page2-section {
    padding: 30px 5%;
  }

  .block-content h2 {
    max-width: 100%;
    font-size: 1.5em;
    align-self: flex-start;
    text-align: left;
    margin-bottom: 10px;
  }

  .header_text_container {
      display: flex;
  height: 100%;
  min-height: 10vh;
  justify-content: center;
  align-items: center;
    font-size: 1em;
  }

  li {
  margin-left: 1.5%;
  margin-right: 1.5%;
  }

  .image_container img {
    max-width: 90%;
    height: auto;
  }
}

/* На десктопе — показываем весь текст сразу, скрываем кнопки */
@media (min-width: 769px) {
  .collapsible-text .full {
    display: inline !important;
  }

  .collapsible-text .short {
    display: none !important;
  }

  .read-more-wrapper {
    display: none !important;
  }
}

@font-face {
  font-family: "Raleway";
  src: url("fonts/Raleway.ttf") format("truetype");
  font-style: normal; 
  font-weight: normal; 
}
