#hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 1rem 0 1.25rem;
  background: linear-gradient(
    180deg,
    #155f6d 0%,
    #14606a 25%,
    #176953 60%,
    #0d6b4a 100%
  );
  isolation: isolate;
}

#hero .container {
  position: relative;
  z-index: 5;
  width: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.rhomb-wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: lighten;
}

.hero-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.hero-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.hero-logo-link:hover {
  opacity: 0.8;
}

.hero-logo {
  height: 80px;
  width: auto;
  animation: draw 1.5s ease-in-out forwards;
}

.hero-logo-text {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.hero-divider {
  display: block;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  margin: 0.85rem 0;
  width: 100%;
}

.hero-intro {
  display: block;
  text-align: left;
}

.hero-conference-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
}

.hero-conference-meta {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--white);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  animation: glitch-appear 1.5s ease-out forwards;
}

.hexagon {
  position: absolute;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  animation: hexPulse 8s ease-in-out infinite;
  will-change: opacity, background-color;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  opacity: 0.35;
  animation-name: float;
  /* filter: blur(0.5px); */
}

.hexagon:nth-child(3n) {
  animation-name: float-rotate;
}

.hexagon:nth-child(5n) {
  animation-name: float-scale;
}

@keyframes hexPulse {
  0% {
    opacity: 0.18;
  }

  50% {
    opacity: 0.42;
  }

  100% {
    opacity: 0.18;
  }
}

@keyframes float-rotate {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-25px) rotate(60deg);
    opacity: 0.5;
  }
}

@keyframes float-scale {
  0%,
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-35px) scale(1.1);
    opacity: 0.6;
  }
}

/* Переключатель языка */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lang-pill {
  border: 1px solid #fff;
  border-radius: 0.74rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
  padding: 0.65rem 1.2rem;
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  background: transparent;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border 0.25s ease;
}
.lang-pill:hover {
  background: var(--white);
  color: var(--green-dark);
}

.lang-pill svg {
  fill: currentColor; /* для одноцветных иконок */
  stroke: currentColor; /* если в SVG линии вместо заливки */
  transition: inherit;
  width: 21px;
  height: 21px;
}

.lang-pill .lang-icon {
  width: 21px;
  height: 21px;
  margin-right: 8px;
  background-color: currentColor;
  -webkit-mask: url("/2026/assets/globe-alt-o-svgrepo-white.svg") no-repeat
    center;
  mask: url("/2026/assets/globe-alt-o-svgrepo-white.svg") no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.hero-top a p {
  font-size: 1.5rem;
  margin: 0;
}

.hero-logo,
.hero-title,
.lang-switcher {
  opacity: 0;
  transform: translateY(-20px);
  animation: fade-in-down 0.8s ease-out forwards;
}
.hero-title {
  animation-delay: 0.2s;
}
.lang-switcher {
  animation-delay: 0.4s;
}

@keyframes fade-in-down {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-nav {
  background: rgba(var(--white-rgb), 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  width: 100%;
  padding: 0.75rem 0;
  top: 0;
  z-index: 100;
}

@media (min-width: 769px) {
  .main-nav {
    position: sticky;
  }
}

#sectionNav {
  padding-left: 0;
  padding-right: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
  list-style: none;
}

.nav-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green-dark);
  text-decoration: none;
  padding: 0.85rem 0.85rem 0 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--green-mint);
  transition: width 0.2s ease;
}

.nav-link:hover {
  color: var(--green-mint);
}

.nav-link:hover::after {
  width: 100%;
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  #hero {
    padding: 1rem 0 1.25rem;
  }

  .hero-logo-text {
    font-size: 1.35rem;
    white-space: normal;
  }

  .hero-conference-title,
  .hero-conference-meta {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .hero-divider {
    margin: 1rem 0;
  }

  .hero-conference-title {
    font-size: 1.1rem;
  }

  .hero-conference-meta {
    font-size: 0.95rem;
  }

  .lang-pill {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }

  .lang-pill .lang-icon {
    width: 18px;
    height: 18px;
    margin-right: 6px;
    background-color: currentColor;
    -webkit-mask: url("/2026/assets/globe-alt-o-svgrepo-white.svg") no-repeat
      center;
    mask: url("/2026/assets/globe-alt-o-svgrepo-white.svg") no-repeat center;
    -webkit-mask-size: contain;
    mask-size: contain;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  #sectionNav {
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }

  #sectionNav .nav-link {
    padding: 0.8rem 0;
    width: 100%;
    max-width: 100%;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
  }

  #sectionNav .nav-link:last-of-type {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    height: 45px;
  }

}