:root {
  --accent: #e02344;
  --sec-font: 'Roboto Condensed', sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: #ffffff;
  font-family: 'Roboto Condensed', sans-serif;
  overflow-x: clip;
}

body.menu-open {
  overflow: hidden;
}

.site-header {
  position: absolute;
  width: 100%;
  z-index: 20;
  height: 60px;
  background: #00000026;
}

@media (min-width: 1205px) {
  .site-header {
    height: 64px;
  }
}

.header-inner {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;

  display: flex;
  align-items: center;
  justify-content: end;
  gap: 20px;
}

.container {
  max-width: 1242px;
  margin: 0 auto;
}

@media (min-width: 1205px) {
  .header-inner {
    width: min(1242px, calc(100% - 60px));
    padding: 0;
    gap: 34px;

    justify-content: space-between;
  }
}

.brand {
  display: none;
}

@media (min-width: 1205px) {
  .brand {
    display: block;
    position: static;
    z-index: auto;
    gap: 7px;
  }
}

@media (min-width: 1205px) {
  .brand-mark {
    width: 156px;
  }
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: var(--sec-font);
  font-size: 18px;
  font-weight: 900;
  line-height: 28px;
  font-style: italic;
}

@media (min-width: 1205px) {
  .brand-copy strong {
    font-size: 17px;
  }
}

.brand-copy small {
  font-size: 10px;
  line-height: 12px;
  font-weight: 400;
}

@media (min-width: 1205px) {
  .brand-copy small {
    font-size: 8px;
  }
}

.menu-toggle {
  position: relative;
  z-index: 32;

  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;

  border: 0;
  background: transparent;
  cursor: pointer;
}

@media (min-width: 1205px) {
  .menu-toggle {
    display: none;
  }
}

.menu-icon {
  position: absolute;
  inset: 0px;

  display: block;
  width: 100%;
  height: 100%;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.menu-icon-open {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.menu-icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.7);
}

.menu-toggle[aria-expanded='true'] .menu-icon-open {
  opacity: 0;
  transform: rotate(90deg) scale(0.7);
}

.menu-toggle[aria-expanded='true'] .menu-icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.main-nav {
  position: absolute;
  z-index: 2;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 20px;

  width: 100vw;
  height: max-content;
  padding: 90px 60px 180px;

  overflow-x: hidden;
  overflow-y: auto;

  background: #101010e5;

  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);

  transition:
    visibility 0.22s ease,
    opacity 0.22s ease,
    transform 0.22s ease;
}

@media (min-width: 1205px) {
  .main-nav {
    position: static;
    z-index: auto;
    inset: auto;

    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 82px;

    width: auto;
    min-height: auto;
    padding: 0;

    overflow: visible;
    background: transparent;

    visibility: visible;
    opacity: 1;
    transform: none;

    transition: none;
  }
}

.main-nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.main-nav a {
  width: 100%;
  padding: 14px 0;

  color: #ffffff;
  font-family: var(--sec-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  text-transform: capitalize;

  transition: color 0.2s ease;
}

@media (min-width: 1205px) {
  .main-nav a {
    width: auto;
    padding: 0;
  }
}

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

.mobile-only {
  display: block;
}

@media (min-width: 1205px) {
  .mobile-only {
    display: none;
  }
}

.cherry-burg {
  position: absolute;
  z-index: -1;
  right: -50px;
  bottom: 0;

  display: block;
  max-width: 60%;

  pointer-events: none;
}

@media (min-width: 1205px) {
  .cherry-burg {
    display: none;
  }
}

.text {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

#home {
  background-image: url('pictures/home-bg.webp');
  background-position: center;
  background-size: cover;
  padding-top: 92px;
  padding-inline: 16px;
  position: relative;

  .text-wrap {
    text-align: start;
    margin: 0 auto;
    margin-bottom: 18px;
    max-width: 620px;
  }

  .gradient {
    position: absolute;
    z-index: 1;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleY(-1);
    height: 197px;
    width: 100%;
    background: linear-gradient(180deg, #000000 2.03%, rgba(0, 0, 0, 0) 100%);
  }
}

.pilot-img {
  min-width: 566px;
  max-width: 566px;
  margin: 0 auto;
  display: block;
}

h1 {
  font-size: 46px;
  line-height: 54px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 22px;

  text-shadow: 0 2px 4px #000000;
}

@media (min-width: 1205px) {
  #home {
    padding-block: 240px;
    .text-wrap {
      margin-left: 0;
    }
  }

  h1 {
    font-size: 88px;
    line-height: 96px;
    margin-bottom: 32px;
  }

  .pilot-img {
    max-width: 700px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(0%);
  }
}

.section {
  padding: 65px 15px;
}
@media (min-width: 1205px) {
  .section {
    padding-block: 89px;
  }
}

.text-wrap {
  text-align: center;

  h2 {
    font-family: var(--sec-font);
    font-size: 36px;
    font-weight: 900;
    line-height: 44px;
    text-transform: uppercase;
    margin-bottom: 32px;
  }
}
.colored {
  color: var(--accent);
}

@media (min-width: 1205px) {
  .text-wrap {
    h2 {
      font-size: 40px;
      line-height: 48px;
    }
  }
}

.bg-wrapper {
  position: relative;
  overflow: hidden;
}

.bg-wrapper::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;

  background-image: url('pictures/clouds.webp');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;

  opacity: 0.35;
  pointer-events: none;

  animation: clouds-float 15s ease-in-out infinite;
}

@keyframes clouds-float {
  0%,
  100% {
    background-position: 47% center;
  }

  50% {
    background-position: 53% center;
  }
}

@media (min-width: 1205px) {
  .bg-wrapper::before {
    animation: none;
  }
}

.bg-wrapper > section > .container {
  position: relative;
  z-index: 3;
}

#history {
  background: #101010;
}

.history-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-block: 32px;
}
.history-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 394px;
  width: 100%;
  height: 106px;
  text-align: center;

  background:
    linear-gradient(#050505, #050505) padding-box,
    linear-gradient(90deg, #e0093d 0%, #262623 100%) border-box;
  border: 1px solid transparent;
  border-radius: 12px;
  padding-inline: 16px;
}

@media (min-width: 1205px) {
  .history-list {
    flex-direction: row;
    align-items: start;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

#timeline {
  background: #262623;
}

.timeline-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.timeline-list li {
  position: relative;

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

  max-width: 343px;
  width: 100%;
  height: 140px;
  text-align: center;

  background: transparent;
  border-radius: 12px;
  padding-inline: 16px;
}

.timeline-list li::before {
  content: '';
  position: absolute;
  inset: 0;

  padding: 1px; /* товщина рамки */
  border-radius: 12px;

  background: linear-gradient(90deg, #ffffff 0%, #262623 100%);

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;
  mask-composite: exclude;

  pointer-events: none;
}

@media (min-width: 1205px) {
  .timeline-list {
    flex-direction: row;
    align-items: start;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .timeline-list li {
    max-width: 286px;
  }
}

#physics {
  background: #000;
}

.physics-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.physics-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 394px;
  width: 100%;
}

@media (min-width: 1205px) {
  .physics-list {
    flex-direction: row;
    align-items: start;
  }
}

#achievements {
  background: #262623;
  padding-bottom: 175px;
  padding-top: 0;
  position: relative;

  ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    margin-left: 16px;
    text-align: center;
    list-style: disc;
  }
  li {
    color: var(--accent);
    font-style: italic;
    max-width: 384px;
    width: 100%;
    text-align: start;
  }
}
.achiev-pic {
  margin: 0 auto;
  display: block;
}

.wing-wrap {
  position: absolute;
  bottom: 0;
  width: 270px;
}

.wing-wrap img {
  display: block;
  width: 100%;
}

.wing-wrap-l {
  left: 45%;
  transform: translateX(-80%);
  transform-origin: right bottom;

  animation: wing-left 2.5s ease-in-out infinite;
}

.wing-wrap-r {
  left: 55%;
  transform: translateX(-20%);
  transform-origin: left bottom;

  animation: wing-right 2.5s ease-in-out infinite;
}

.wing-r {
  transform: scaleX(-1);
}

@keyframes wing-left {
  0%,
  100% {
    transform: translateX(-80%) rotate(0deg);
  }

  50% {
    transform: translateX(-80%) rotate(4deg);
  }
}

@keyframes wing-right {
  0%,
  100% {
    transform: translateX(-20%) rotate(0deg);
  }

  50% {
    transform: translateX(-20%) rotate(-4deg);
  }
}

@media (min-width: 1205px) {
  #achievements {
    padding-bottom: 89px;

    ul {
      flex-direction: row;
      align-items: center;
      justify-content: center;
      gap: 44px;
    }
  }

  .wing-wrap {
    position: absolute;
    bottom: unset;
    top: 0;
    width: auto;
    z-index: 3;
  }

  .wing-wrap-l {
    left: 50%;
    transform: translateX(-140%);
    transform-origin: right bottom;
    animation: wing-left-desktop 2.5s ease-in-out infinite;
  }

  .wing-wrap-r {
    left: 50%;
    transform: translateX(40%);
    transform-origin: left bottom;
    animation: wing-right-desktop 2.5s ease-in-out infinite;
  }

  @keyframes wing-left-desktop {
    0%,
    100% {
      transform: translateX(-140%) rotate(0deg);
    }

    50% {
      transform: translateX(-140%) rotate(4deg);
    }
  }

  @keyframes wing-right-desktop {
    0%,
    100% {
      transform: translateX(40%) rotate(0deg);
    }

    50% {
      transform: translateX(40%) rotate(-4deg);
    }
  }
}

#how-works {
  background: #000;
  padding-bottom: 250px;
  position: relative;

  .container {
    position: relative;
    z-index: 3;
  }
}

.plane-pic {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.4;
  mix-blend-mode: hard-light;
  width: 445px;

  animation: plane-float 4s ease-in-out infinite;
}

@keyframes plane-float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(0deg);
  }

  50% {
    transform: translateX(-50%) translateY(-12px) rotate(1deg);
  }
}

.how-works-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-block: 32px;
}
.how-works-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 394px;
  width: 100%;
  height: 82px;
  text-align: center;

  background:
    linear-gradient(#050505, #050505) padding-box,
    linear-gradient(90deg, #e0093d 0%, #262623 100%) border-box;
  border: 1px solid transparent;
  border-radius: 12px;
  padding-inline: 16px;
}

@media (min-width: 1205px) {
  #how-works {
    padding-bottom: 230px;
    overflow: hidden;
  }
  .plane-pic {
    position: absolute;
    bottom: -112px;
    width: auto;
  }

  .how-works-list {
    flex-direction: row;
    align-items: start;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

footer {
  padding: 22px 16px;
  margin-top: -1px;
  background: #101010;
}
.foot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;

  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}
.policy-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;

  a {
    font-family: var(--sec-font);
    color: #fff;
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    text-transform: uppercase;
  }
}
.copyr {
  font-family: var(--sec-font);
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  text-align: center;
  margin-top: 12px;
}

@media (min-width: 1205px) {
  footer {
    padding-block: 38px;
  }
  .foot-wrap {
    padding-bottom: 24px;
  }
  .policy-list {
    flex-direction: row;
    gap: 42px;
  }
  .copyr {
    padding-top: 24px;
  }
}

.popup {
  position: fixed;
  z-index: 4;
  bottom: 0;
  left: 50%;
  transform: translate(-50%);
  max-width: 380px;
  width: calc(100% - 20px);
  overflow: hidden;

  padding: 27px 16px;
  background: #fff;
  color: #0a0908;

  box-shadow: 0px 2px 8px 0px #00000033;
}

.popup-title {
  font-family: var(--sec-font);
  font-size: 14px;
  line-height: 20px;
  font-weight: 900;
  margin-bottom: 20px;
  text-align: center;
}

.popup-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.popup-link {
  color: #0a0908;
  text-decoration: underline;
}

.button-wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;

  button {
    border: none;
    border-radius: 6px;
    height: 51px;
    font-weight: bold;
  }
}
#acceptCookiesBtn {
  background-color: var(--accent);
  color: #fff;
}
#declineCookiesBtn {
  border: 1px solid var(--accent);
  color: var(--accent);
}

@media (min-width: 1205px) {
  .popup {
    max-width: 1280px;
    padding: 27px 65px;
  }

  .popup-title {
    text-align: start;
  }

  .popup-text {
    text-align: start;
  }

  .button-wrap {
    flex-direction: row;
    gap: 34px;

    button {
      width: 200px;
    }
  }
}

.policies-body {
  background: #101010;
}

.policies-main {
  position: relative;
  overflow: hidden;
  padding: 100px 16px 32px 16px;

  .container {
    position: relative;
    z-index: 3;
  }

  a {
    color: #fff;
    text-decoration: underline;
  }

  p {
    font-size: 16px;
    line-height: 24px;
  }

  h2 {
    font-size: 20px;
    line-height: 110%;
    margin-block: 15px;
  }
  h3 {
    margin-block: 10px;
  }

  ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
}

.policies-main::before {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;

  background-image: url('pictures/clouds.webp');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;

  opacity: 0.35;
  pointer-events: none;
}
