.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;

  padding:
    112px
    max(var(--side-padding), calc((100vw - var(--container)) / 2))
    34px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  background-color: var(--bg-main);
  background-image: url('/static/assets/first.webp');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      90deg,
      var(--bg-main) 0%,
      var(--bg-blue) 18%,
      rgba(var(--bg-blue-rgb), .96) 32%,
      rgba(var(--bg-blue-rgb), .82) 44%,
      rgba(var(--bg-blue-rgb), .45) 58%,
      rgba(var(--bg-blue-rgb), .18) 70%,
      rgba(var(--bg-blue-rgb), .72) 100%
    ),
    linear-gradient(
      180deg,
      rgba(var(--bg-main-rgb), .92) 0%,
      transparent 18%,
      transparent 78%,
      rgba(var(--bg-main-rgb), .92) 100%
    );
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 14% 42%,
      rgba(var(--bg-blue-rgb), .98) 0%,
      rgba(var(--bg-blue-rgb), .88) 18%,
      rgba(var(--bg-blue-rgb), .55) 34%,
      transparent 58%
    ),
    linear-gradient(
      90deg,
      rgba(var(--bg-main-rgb), .95) 0%,
      transparent 22%,
      transparent 82%,
      rgba(var(--bg-main-rgb), .82) 100%
    );
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;

  background:
    radial-gradient(
      circle at 78% 44%,
      rgba(255,169,60,.14),
      transparent 24%
    ),
    radial-gradient(
      circle at 24% 16%,
      rgba(34,85,115,.34),
      transparent 34%
    );

  mix-blend-mode: screen;
  opacity: .72;
}

.header,
.hero-content,
.features {
  position: relative;
  z-index: 5;
}

/* HEADER */

.header {
  position: fixed;
  top: 16px;
  left: max(var(--side-padding), calc((100vw - var(--container)) / 2));
  right: max(var(--side-padding), calc((100vw - var(--container)) / 2));
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  padding: 14px 18px;

  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;

  background: rgba(var(--bg-blue-rgb), .72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow: 0 12px 38px rgba(0,0,0,.18);

  transition:
    gap .35s ease,
    row-gap .35s ease,
    background .35s ease,
    border-color .35s ease,
    box-shadow .35s ease,
    transform .35s ease;
}

body.scrolled .header {
  background: rgba(var(--bg-blue-rgb), .94);
  border-color: rgba(var(--accent-rgb), .18);
  box-shadow:
    0 16px 48px rgba(0,0,0,.32),
    0 0 28px rgba(var(--accent-rgb), .06);
}

.logo,
.mobile-menu,
.nav,
.header-info {
  transition:
    transform .35s ease,
    opacity .35s ease,
    margin .35s ease,
    gap .35s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 46px;
  display: block;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text strong {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .08em;
}

.logo-text small {
  margin-top: 2px;
  font-size: 11px;
  letter-spacing: .35em;
  opacity: .8;
}

.mobile-menu {
  display: contents;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;

  font-size: 14px;
  font-weight: 600;
}

.nav a {
  position: relative;
  opacity: .85;
  transition: .3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;

  width: 0;
  height: 2px;

  background: var(--accent);
  transition: .3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
  opacity: 1;
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.header-info {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-info div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}

.header-info strong {
  font-size: 16px;
}

.header-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.phone-link {
  color: inherit;
  text-decoration: none;
  transition: .3s ease;
}

.phone-link:hover {
  color: var(--accent);
}

.burger {
  display: none;
}

.lang-dropdown {
  position: relative;

  flex: 0 0 auto;
}

.lang-current {
  height: 42px;
  padding: 0 14px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border: 1px solid rgba(var(--accent-rgb), .35);
  border-radius: 8px;

  background: rgba(5,13,20,.45);

  color: var(--text-main);

  cursor: pointer;

  backdrop-filter: blur(10px);

  transition:
    border-color .3s ease,
    background .3s ease,
    box-shadow .3s ease,
    transform .2s ease;
}

.lang-current:hover {
  border-color: rgba(var(--accent-rgb), .6);

  box-shadow:
    0 0 20px rgba(var(--accent-rgb), .15);
}

.lang-current:active {
  transform: scale(.96);
}

.lang-text {
  display: block;
  line-height: 1;
  font-size: 13px;
  font-weight: 800;
}

.lang-arrow {
  width: 15px;
  height: 15px;

  flex: 0 0 15px;

  display: block;

  color: var(--accent);

  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;

  transform-origin: center center;

  transition:
    transform .3s cubic-bezier(.4,0,.2,1);
}

.lang-arrow path {
  fill: none !important;
  stroke: currentColor !important;
}

.lang-dropdown.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;

  min-width: 92px;
  padding: 8px;

  border: 1px solid rgba(var(--accent-rgb), .28);
  border-radius: var(--radius);

  background: rgba(3,17,28,.96);
  backdrop-filter: blur(16px);

  box-shadow: 0 18px 45px rgba(0,0,0,.28);

  opacity: 0;
  pointer-events: none;

  transform: translateY(-10px) scale(.92);

  transition:
    opacity .25s ease,
    transform .25s cubic-bezier(.4,0,.2,1);

  will-change: transform, opacity;
}

.lang-dropdown.open .lang-menu {
  opacity: 1;
  pointer-events: auto;

  transform: translateY(0) scale(1);
}

.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 9px 10px;

  border-radius: 6px;

  color: rgba(255,255,255,.76);

  font-size: 13px;
  font-weight: 800;

  transition:
    color .25s ease,
    background .25s ease,
    transform .25s ease;
}

.lang-menu a:hover {
  color: var(--accent);
  background: rgba(var(--accent-rgb), .1);
  transform: translateX(3px);
}

.lang-menu a.active {
  color: var(--accent);
  background: rgba(var(--accent-rgb), .12);
}

/* CONTENT */

.hero-content {
  flex: 1;

  display: flex;
  align-items: center;

  position: relative;
  z-index: 5;

  padding-block: clamp(40px, 6vh, 80px);
}

.hero-left {
  max-width: 560px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  margin-top: 0;
}

.eyebrow {
  margin-bottom: 16px;

  color: var(--accent);

  font-size: clamp(12px, 1vw, 14px);
  font-weight: 800;
}

h1 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.04em;
  text-shadow: 0 10px 40px rgba(0,0,0,.5);
}

h1 span {
  color: var(--accent-light);
}

.hero-text {
  max-width: 470px;
  margin-top: 16px;

  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;

  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;

  margin-top: 30px;
  margin-bottom: 55px;
}

/* BUTTONS */

.btn {
  min-height: 60px;
  border-radius: var(--radius);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;
}

.btn:hover {
  transform: translateY(-4px);
}

.btn-main {
  width: 320px;
  padding: 0 24px;

  background: var(--accent-gradient);
  color: var(--text-dark);

  font-size: 15px;
  font-weight: 800;

  box-shadow: 0 18px 40px var(--shadow-accent);
}

.btn-main:hover {
  box-shadow: 0 24px 50px rgba(243,161,60,.28);
}

.wa-icon {
  width: 24px;
  height: 24px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;
}

.wa-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.btn-main .wa-icon svg,
.btn-main .wa-icon svg path,
.btn-main .wa-icon svg circle,
.btn-main .wa-icon svg g {
  fill: var(--text-dark) !important;
  stroke: var(--text-dark) !important;
}

.btn-outline {
  width: 210px;

  border: 1px solid rgba(var(--accent-rgb), .5);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);

  font-size: 15px;
  font-weight: 700;
}

.btn-outline:hover {
  border-color: var(--accent);
}

.btn-outline span {
  color: var(--accent);
  font-size: 28px;
}

/* FEATURES */

.features {
  position: relative;
  z-index: 5;

  display: grid;
  grid-template-columns: repeat(4, 1fr);

  gap: 18px;

  margin-top: 0;

  padding-top: clamp(40px, 6vh, 80px);
}

.feature {
  display: flex;
  align-items: center;
  gap: 16px;

  padding-right: 18px;

  border-right: 1px solid rgba(255,255,255,.14);
}

.feature:last-child {
  border-right: none;
}

.feature-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;

  border-radius: var(--radius-icon);

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid var(--accent);

  box-shadow: 0 0 24px var(--shadow-orange);
  overflow: hidden;
}

.feature-icon img,
.feature-icon svg {
  width: 20px;
  height: 20px;

  object-fit: contain;
  display: block;
}

.feature-icon svg,
.feature-icon svg path,
.feature-icon svg circle,
.feature-icon svg rect,
.feature-icon svg g {
  fill: var(--accent) !important;
  stroke: var(--accent) !important;
}

.feature p {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,.86);
}

/* REVEAL */

.reveal {
  opacity: 0;
  transform: translateY(30px);

  transition:
    opacity .8s ease,
    transform .8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* DESKTOP WRAP */

@media (max-width: 1342px) {
  .hero {
    padding-top: 158px;
  }

  .header {
    flex-wrap: wrap;
    row-gap: 22px;
  }

  .logo {
    order: 1;
  }

  .header-info {
    order: 2;
    margin-left: auto;
  }

  .lang-dropdown {
    order: 3;
    margin-left: 0;
  }

  .mobile-menu {
    order: 4;
    width: 100%;
  }

  .nav {
    order: 4;
    width: 100%;
    justify-content: flex-start;
    gap: 34px;

    animation: navDrop .35s ease both;
  }
}

@keyframes navDrop {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE */

@media (max-width: 894px) {
  .hero {
    min-height: auto;

    padding:
      94px
      var(--side-padding)
      34px;

    background-position: center;
  }

  .header {
    top: 12px;
    left: var(--side-padding);
    right: var(--side-padding);

    flex-wrap: wrap;
    align-items: center;
    gap: 0;

    padding: 12px;
  }

  .header.menu-open {
    background: rgba(var(--bg-blue-rgb), .97);
    border-color: rgba(var(--accent-rgb), .28);
  }

  .logo {
    order: 1;
  }

  .logo img {
    width: 42px;
  }

  .logo-text strong {
    font-size: 20px;
  }

  .logo-text small {
    font-size: 10px;
    letter-spacing: .28em;
  }

  .burger {
    order: 2;

    margin-left: auto;

    width: 44px;
    height: 44px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;

    border: 1px solid var(--border-accent);
    border-radius: var(--radius);

    background: var(--glass-bg-strong);

    cursor: pointer;
    backdrop-filter: blur(10px);

    transition: .3s ease;
  }

  .burger span {
    width: 20px;
    height: 2px;

    background: var(--accent);

    border-radius: 999px;

    transition: .3s ease;
  }

  .burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .burger.active span:nth-child(2) {
    opacity: 0;
  }

  .burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-menu {
    order: 3;

    width: 100%;

    margin-top: 18px;

    max-height: 0;

    padding: 0 22px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    overflow: hidden;

    border: 1px solid transparent;
    border-radius: var(--radius);

    background: var(--menu-bg);

    backdrop-filter: blur(18px);

    box-shadow: 0 24px 80px var(--shadow-dark);

    opacity: 0;

    pointer-events: none;

    transform: translateY(-10px);

    transition:
      max-height .42s ease,
      padding .42s ease,
      opacity .32s ease,
      transform .32s ease,
      border-color .32s ease;
  }

  .header.menu-open .mobile-menu {
    max-height: calc(100vh - 120px);

    padding: 22px;

    opacity: 1;

    pointer-events: auto;

    transform: translateY(0);

    border-color: var(--border-accent-soft);

    overflow-y: auto;
  }

  .nav {
    order: initial;

    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 18px;

    padding: 0;
  }

  .nav a {
    opacity: 0;

    transform: translateX(-8px);

    transition: .28s ease;
  }

  .header.menu-open .nav a {
    opacity: 1;
    transform: translateX(0);
  }

  .header.menu-open .nav a:nth-child(1) { transition-delay: .05s; }
  .header.menu-open .nav a:nth-child(2) { transition-delay: .09s; }
  .header.menu-open .nav a:nth-child(3) { transition-delay: .13s; }
  .header.menu-open .nav a:nth-child(4) { transition-delay: .17s; }
  .header.menu-open .nav a:nth-child(5) { transition-delay: .21s; }
  .header.menu-open .nav a:nth-child(6) { transition-delay: .25s; }

  .header-info {
    order: initial;

    width: 100%;

    margin-top: 28px;
    padding-top: 20px;

    border-top: 1px solid var(--border-light);

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .header-info div {
    text-align: left;
  }

  .header-info .btn-main {
    width: 100%;
  }

  .hero-content {
    flex: none;
    min-height: auto;

    padding-top: 42px;
    padding-bottom: 50px;
  }

  .hero-left {
    max-width: 100%;
    margin-top: 0;
  }

  h1 {
    font-size: clamp(34px, 10vw, 40px);
  }

  .hero-text {
    max-width: 100%;
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;

    margin-bottom: 42px;
  }

  .btn-main,
  .btn-outline {
    width: 100%;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 0;

    animation: featuresFade .5s ease both;
  }

  .feature {
    border-right: none;
    border-bottom: 1px solid var(--border-light);

    padding: 18px 0;

    opacity: 0;

    transform: translateY(18px);

    animation: featureItem .45s ease forwards;

    transition:
      transform .3s ease,
      background .3s ease,
      padding-left .3s ease;
  }

  .feature:nth-child(1) { animation-delay: .05s; }
  .feature:nth-child(2) { animation-delay: .12s; }
  .feature:nth-child(3) { animation-delay: .19s; }
  .feature:nth-child(4) { animation-delay: .26s; }

  .feature:last-child {
    border-bottom: none;
  }

  .feature:hover {
    transform: translateX(4px);
    background: rgba(255,255,255,.02);
  }

  .feature-icon {
    transition:
      transform .3s ease,
      box-shadow .3s ease;
  }

  .feature:hover .feature-icon {
    transform: scale(1.06);
    box-shadow: 0 0 30px rgba(var(--accent-rgb), .22);
  }

  .lang-dropdown {
    width: 100%;

    margin-top: 18px;
    padding-top: 18px;

    border-top: 1px solid var(--border-light);

    position: relative;
  }

  .lang-current {
    width: 100%;
    justify-content: space-between;
  }

  .lang-menu {
    position: static;
    width: 100%;
    margin-top: 10px;

    max-height: 0;

    padding-top: 0;
    padding-bottom: 0;

    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-6px) scale(.98);

    transition:
      max-height .3s ease,
      padding .3s ease,
      opacity .25s ease,
      transform .25s ease,
      visibility .25s ease;
  }

  .lang-dropdown.open .lang-menu {
    max-height: 150px;

    padding-top: 8px;
    padding-bottom: 8px;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0) scale(1);
  }
}

@media (max-width: 420px) {
  .hero {
    padding:
      90px
      14px
      28px;
  }

  .header {
    left: 14px;
    right: 14px;
  }

  .hero-content {
    padding-top: 34px;
    padding-bottom: 42px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .btn-main,
  .btn-outline {
    font-size: 14px;
  }

  .feature {
    gap: 14px;
  }
}

/* ANIMATIONS */

@keyframes featureItem {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes featuresFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
