* { margin: 0; padding: 0; box-sizing: border-box; }
html { scrollbar-gutter: stable; }

body {
  font-family: Arial, sans-serif;
  color: #fff;
  background: #021a2e url("img/bg.jfif") center / cover no-repeat fixed;
  min-height: 100vh;
}

.page {
  position: relative;
  max-width: 1920px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
}

/* видео поверх фона */
.bgvideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: .6;
  z-index: 1;
  pointer-events: none;
}

/* девушка слева */
.girl {
  position: absolute;
  left: -35px;
  top: 14vh;
  height: 86vh;
  width: auto;
  z-index: 3;
  pointer-events: none;
}

.top, .content, .bottom {
  position: relative;
  z-index: 2;
  margin-left: 32%;
  margin-right: 1.5%;
}
.top, .bottom {
  margin-left: 25%;
}

/* шапка */
.top {
  margin-left: 0;
  margin-right: 0;
  padding: 8px 1.5% 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.slogan {
  font-size: 30px;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
}
.right { justify-self: end; }

.logo { font-size: 56px; font-weight: bold; letter-spacing: 2px; color: #fff; text-decoration: none; }
.logo small { display: block; font-size: 16px; font-weight: normal; letter-spacing: 1px; }

.right {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.info {
  display: flex;
  gap: 14px;
  font-size: 15px;
  color: #bfeaf2;
  white-space: nowrap;
}
.lang {
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
}

/* середина */
.content {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  margin-left: 25%;
  align-items: stretch;
}
.card {
  flex: 0 0 260px;
  padding: 20px 22px;
  background: none;
  border: none;
  backdrop-filter: none;
  text-shadow: 0 2px 8px rgba(0,20,60,.6);
}
.card h1 { font-size: 48px; line-height: 1.2; margin-bottom: 25px; }
.card p  { font-size: 24px; line-height: 1.4; color: #9fdbe6; }

html[lang="ru"] .card h1,
html[lang="en"] .card h1 { font-size: 30px; }
html[lang="ru"] .card p,
html[lang="en"] .card p  { font-size: 17px; }

.menu {
  width: 260px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.menu a {
  display: flex;
  align-items: center;
  padding: 16px 22px;
  font-size: 15px;
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  transition: .2s;
}
.menu a:hover { background: rgba(0,200,220,.35); }

/* низ */
.bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin-top: 30px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.2);
}
.bottom a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  transition: .2s;
}
.bottom a:hover { background: rgba(0,200,220,.35); }
.bottom svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

[hidden] { display: none !important; }

/* раздел в разработке */
.wip {
  position: relative;
  z-index: 2;
  margin: 40px 1.5% 0 27%;
  padding: 90px 40px;
  text-align: center;
  border-radius: 20px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
}
.wip h2 { font-size: 40px; text-transform: uppercase; margin-bottom: 20px; }
.wip p  { font-size: 26px; color: #9fdbe6; margin-bottom: 40px; }
.back {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  text-decoration: none;
}
.back:hover { background: rgba(0,200,220,.35); }

.globe {
  flex: 1;
  position: relative;
  min-width: 0;
  margin: -30px 0;
}
.globe video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translate(-55px, 0);
  filter: hue-rotate(-30deg) saturate(1.15);
}
/* лента новостей */
/* лента новостей */
.news {
  position: absolute;
  left: 27%;
  right: calc(1.5% + 70px);
  bottom: 16px;
  z-index: 2;
}
.news-title {
  margin: 0 0 8px 6px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #fff;
}
.news-view {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.news-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: news-run 300s linear infinite;
}
.news-view:hover .news-track { animation-play-state: paused; }
.news-card {
  flex: 0 0 340px;
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(10px);
  color: #fff;
  text-decoration: none;
  transition: .2s;
}
.news-card:hover { background: rgba(0,200,220,.35); }
.news-img {
  flex: 0 0 84px;
  height: 96px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 25%, rgba(0,200,220,.55), transparent 55%),
    linear-gradient(135deg, #0a4a9a, #021a2e);
  background-size: cover;
  background-position: center;
}
.news-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.news-tag {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  background: rgba(0,200,220,.35);
  border: 1px solid rgba(255,255,255,.3);
}
.news-name {
  font-size: 14px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-date { margin-top: auto; font-size: 12px; color: #9fdbe6; }
@keyframes news-run {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* дождь */
.rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
/* счётчик посетителей */
.topbtns { display: flex; gap: 10px; align-items: stretch; }
.visits {
  display: flex;
  min-width: 120px;
justify-content: flex-start;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 10px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 13.3333px;
}
.visits svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Адаптив под смартфоны */
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  .page {
    overflow-x: hidden;
  }

  .girl {
    display: none;
  }

  .top,
  .content,
  .bottom,
  .wip {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 14px;
    padding-right: 14px;
  }

  .top {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo right"
      "slogan slogan";
    gap: 10px 12px;
    padding-top: 10px;
    padding-bottom: 12px;
  }

  .logo {
    grid-area: logo;
    font-size: 36px;
    line-height: 1;
  }

  .logo small {
    font-size: 12px;
  }

  .right {
    grid-area: right;
    align-items: flex-end;
    gap: 6px;
  }

  .topbtns {
    gap: 6px;
  }

  .visits {
    min-width: auto;
    padding: 6px 10px;
    font-size: 12px;
  }

  .lang {
    padding: 6px 10px;
    font-size: 12px;
  }

  .info {
    font-size: 12px;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .slogan {
    grid-area: slogan;
    font-size: 17px;
    line-height: 1.3;
    white-space: normal;
    text-align: center;
  }

  .content {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
  }

  .card {
    flex: none;
    width: 100%;
    padding: 8px 6px;
    text-align: center;
  }

  html[lang="ru"] .card p,
  html[lang="en"] .card p,
  .card p {
    font-size: 16px;
    line-height: 1.45;
  }

  .globe {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 260px;
    margin: 4px auto;
  }

  .globe video {
    transform: none;
    animation: globe-spin 24s linear infinite;
  }

  .menu {
    width: 100%;
    max-width: 420px;
    margin-left: 0;
    gap: 10px;
  }

  .menu a {
    padding: 14px 18px;
    font-size: 14px;
    justify-content: center;
  }

  .bottom {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding: 16px 14px;
  }

  .news {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 12px;
    padding: 0 14px 24px;
  }

  .news-card {
    flex: 0 0 280px;
  }

  .wip {
    margin-top: 20px !important;
    padding: 40px 18px;
  }

  .wip h2 {
    font-size: 26px;
  }

  .wip p {
    font-size: 18px;
  }
}
@keyframes globe-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}