

/* Общие настройки */

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

html,
body {
  height: 100%;
  overflow: hidden;
  width: 100%;
}

body {
  background: #f0ecec;
  color: #000;
  font-family: "Montserrat", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}


/* Весь экран */

.screen {
  background-color: #f0ecec;
  height: 100vh;
  min-height: 650px;
  overflow: hidden;
  position: relative;
  width: 100%;
}


/* Линии фоновой сетки */

.screen::before {
  background:
    linear-gradient(
      to right,
      transparent calc(48.4% - 1px),
      #111 calc(48.4% - 1px),
      #111 calc(48.4% + 1px),
      transparent calc(48.4% + 1px)
    ),
    linear-gradient(
      to right,
      transparent calc(61.5% - 1px),
      #111 calc(61.5% - 1px),
      #111 calc(61.5% + 1px),
      transparent calc(61.5% + 1px)
    ),
    linear-gradient(
      to right,
      transparent calc(74.6% - 1px),
      #111 calc(74.6% - 1px),
      #111 calc(74.6% + 1px),
      transparent calc(74.6% + 1px)
    ),
    linear-gradient(
      to right,
      transparent calc(87.5% - 1px),
      #111 calc(87.5% - 1px),
      #111 calc(87.5% + 1px),
      transparent calc(87.5% + 1px)
    ),
    linear-gradient(
      to bottom,
      transparent calc(7.6% - 1px),
      #111 calc(7.6% - 1px),
      #111 calc(7.6% + 1px),
      transparent calc(7.6% + 1px)
    ),
    linear-gradient(
      to bottom,
      transparent calc(33.5% - 1px),
      #111 calc(33.5% - 1px),
      #111 calc(33.5% + 1px),
      transparent calc(33.5% + 1px)
    ),
    linear-gradient(
      to bottom,
      transparent calc(59.5% - 1px),
      #111 calc(59.5% - 1px),
      #111 calc(59.5% + 1px),
      transparent calc(59.5% + 1px)
    ),
    linear-gradient(
      to bottom,
      transparent calc(85.4% - 1px),
      #111 calc(85.4% - 1px),
      #111 calc(85.4% + 1px),
      transparent calc(85.4% + 1px)
    );

  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}


/* Верхняя панель */

.top-panel {
  border-bottom: 2px solid #111;
  height: 7.7%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 4;
}

.languages {
  display: flex;
  height: 100%;
  margin-left: auto;
  width: 25.4%;
}

.languages a {
  align-items: center;
  display: flex;
  font-size: clamp(15px, 1.15vw, 23px);
  justify-content: center;
  width: 33.333%;
}

.languages a.active {
  background-color: #ffbf00;
}


/* Приветственный текст */

.welcome {
  left: 0;
  position: absolute;
  top: 7.7%;
  width: 48.4%;
  z-index: 3;
}

.welcome-line {
  align-items: center;
  border-bottom: 1px solid #111;
  display: flex;
  height: 26vh;
  padding-left: 1.2vw;
}

.welcome-line span {
  font-size: clamp(62px, 6vw, 118px);
  font-weight: 300;
  letter-spacing: -5px;
}

.second-line span {
  font-size: clamp(58px, 5.5vw, 105px);
}


/* Навигационные карточки */

.navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 52%;
  left: 48.4%;
  position: absolute;
  top: 7.7%;
  width: 26.2%;
  z-index: 5;
}

.navigation-card {
  background-color: #ffbf00;
  border: 1px solid #111;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 16px;
  transition:
    background-color 0.25s,
    color 0.25s;
}

.overview-card {
  border-radius: 0 0 25px 0;
}

.rectors-card {
  border-radius: 0 0 0 25px;
}

.history-card {
  border-radius: 0 25px 0 0;
}

.professor-card {
  border-radius: 25px 0 0 0;
}

.navigation-card:hover {
  background-color: #111;
  color: #ffbf00;
}

.navigation-card h2 {
  font-size: clamp(20px, 1.65vw, 34px);
  font-weight: 300;
  line-height: 1.45;
}

.card-button {
  align-items: center;
  border: 1px solid currentColor;
  display: flex;
  font-size: clamp(12px, 0.95vw, 19px);
  justify-content: space-between;
  min-height: 42px;
  padding: 6px 14px;
  width: 100%;
}

.arrow {
  font-size: 25px;
  line-height: 1;
}


/* Значок воспроизведения */

.play-button {
  justify-content: center;
}

.play-icon {
  border-bottom: 15px solid transparent;
  border-left: 27px solid currentColor;
  border-top: 15px solid transparent;
  display: block;
  height: 0;
  width: 0;
}


/* Название университета снизу */

.university-name {
  left: 0;
  position: absolute;
  top: 64%;
  white-space: nowrap;
  z-index: 2;
}

.university-name p {
  font-size: clamp(85px, 9.4vw, 180px);
  font-weight: 300;
  letter-spacing: -8px;
  line-height: 1.15;
  padding-left: 1.2vw;
}


/* Здание университета */

.building {
  bottom: -1px;
  height: auto;
  max-height: 54%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
  position: absolute;
  right: -1px;
  width: 62%;
  z-index: 6;
}


/* Для небольших экранов */

@media (max-width: 900px) {

  .welcome {
    width: 47%;
  }

  .welcome-line span {
    font-size: 48px;
    letter-spacing: -3px;
  }

  .navigation {
    left: 47%;
    width: 40%;
  }

  .languages {
    width: 40%;
  }

  .navigation-card {
    padding: 12px;
  }

  .navigation-card h2 {
    font-size: 18px;
  }

  .card-button {
    font-size: 11px;
    padding: 5px 8px;
  }

  .university-name p {
    font-size: 90px;
  }

  .building {
    width: 65%;
  }

}/* Современное оформление элементов */

.navigation-card {
  border-radius: 20px;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.navigation-card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  transform: translateY(-3px);
}

/* Убираем старые отдельные настройки углов */

.overview-card,
.rectors-card,
.history-card,
.professor-card {
  border-radius: 20px;
}

/* Кнопки внутри карточек */

.card-button {
  border-radius: 12px;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.navigation-card:hover .card-button {
  background-color: #ffbf00;
  color: #111;
}

.card-button:hover {
  transform: scale(1.02);
}

/* Плавное движение стрелки */

.arrow {
  transition: transform 0.25s ease;
}

.navigation-card:hover .arrow {
  transform: translateX(5px);
}

/* Переключатель языков */

.languages a {
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.languages a.active {
  border-radius: 0 0 14px 14px;
}

/* Кнопка воспроизведения */

.play-button {
  border-radius: 12px;
}

.play-icon {
  transition: transform 0.25s ease;
}

.overview-card:hover .play-icon {
  transform: scale(1.12);
}