/* stp:base */
:root {
  --blue: #1c398e;
  --bg: #fafaf7;
  --white: #fff;
  --panel: #b5d5ff;
  --accent: #2b7fff;
  --accent-2: #00b8db;
  --btn-grad: linear-gradient(to right, #2b7fff, #00b8db);
  --grad-green: linear-gradient(172.5deg, #05df72 0%, #00bc7d 100%);
  --grad-purple: linear-gradient(172.5deg, #c27aff 0%, #f6339a 100%);
  --grad-orange: linear-gradient(172.5deg, #ff8904 0%, #fb2c36 100%);
  --grad-yellow: linear-gradient(172.5deg, #fdc700 0%, #fe9a00 100%);
  --grad-green-2: linear-gradient(170.8deg, #05df72 0%, #00bc7d 100%);
  --grad-orange-2: linear-gradient(172.6deg, #ff8904 0%, #fb2c36 100%);
  --font: 'Poppins', sans-serif;
  --shadow-card: drop-shadow(0 1rem 0.8rem rgba(0, 0, 0, 0.1)) drop-shadow(0 0.4rem 0.3rem rgba(0, 0, 0, 0.1));
}

html { font-size: calc(100vw / 1440 * 10); overflow-x: hidden; overflow-y: scroll; font-family: var(--font); color: var(--blue); font-weight: 500; }
@media (max-width: 1024px) { html { font-size: calc(100vw / 1024 * 10); } }
@media (max-width: 640px) { html { font-size: calc(100vw / 375 * 10); } }

html.menu-lock, html.menu-lock body { overflow: hidden; }

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

body {
  background: var(--bg);
  font-size: clamp(14px, 1.6rem, 1.6rem);
  line-height: 2.8rem;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color 0.3s ease-in-out, opacity 0.3s ease-in-out; }
ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--white);
  transition: box-shadow 0.3s ease-in-out;
}
.header.scrolled { box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.15); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 3.2rem;
  border-radius: 2.2rem;
  background: var(--btn-grad);
  color: var(--white);
  font-size: 2rem;
  line-height: 2.8rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
a.btn:hover {
  text-decoration: none;
  transform: scale(1.05);
  box-shadow: 0 0.6rem 1.6rem rgba(43, 127, 255, 0.45);
}

.burger-btn {
  display: none;
  position: relative;
  z-index: 101;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 2.8rem;
  height: 2.8rem;
  background: transparent;
  border: 0;
}
.burger-btn span {
  display: block;
  width: 2.2rem;
  height: 0.3rem;
  border-radius: 0.2rem;
  background: var(--blue);
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.burger-btn.act span:nth-child(1) { transform: translateY(0.9rem) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-0.9rem) rotate(-45deg); }

#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}
#mobile-menu.opened { opacity: 1; pointer-events: auto; }
#mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 2.6rem; }
#mobile-menu .nav-link { font-size: 2.4rem; line-height: 3.2rem; font-weight: 600; }

h2 { font-size: 3.2rem; line-height: 4rem; font-weight: 800; text-align: center; }
h3 { font-size: 2rem; line-height: 2.8rem; font-weight: 600; text-align: center; }

.card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem 2.2rem;
  border-radius: 1.6rem;
  color: var(--white);
  filter: var(--shadow-card);
}
.card img { flex: 0 0 auto; width: 3.2rem; height: 3.2rem; }
.card--green { background: var(--grad-green); }
.card--purple { background: var(--grad-purple); }
.card--orange { background: var(--grad-orange); }
.card--yellow { background: var(--grad-yellow); }

.panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  padding: 3.2rem;
  border-radius: 1.6rem;
  background: var(--panel);
  text-align: center;
}
.panel ul { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.panel li { margin-left: 2.4rem; list-style: disc; white-space: nowrap; }

@media (max-width: 1024px) {
  .panel li { white-space: normal; }
}

@media (max-width: 640px) {
  h2 { font-size: 2.6rem; line-height: 3.4rem; }
  .card { padding: 1.6rem 2.2rem; }
  .panel { padding: 2.2rem 1.2rem; }
  .panel li { white-space: normal; }
  #mobile-menu .nav-link { font-size: 2.4rem; }
}
/* /stp:base */
/* stp:header */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 10rem;
}
.logo { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 2.8rem; white-space: nowrap; }
.logo:hover { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 6.6rem; font-size: clamp(14px, 1.8rem, 1.8rem); font-weight: 400; white-space: nowrap; }

@media (max-width: 1024px) {
  .header__inner { padding: 1.2rem 3rem; }
  .nav { gap: 3rem; }
}

@media (max-width: 640px) {
  .header__inner { padding: 1.6rem; }
  .logo, .nav, .header__btn { display: none; }
  .burger-btn { display: flex; margin-left: auto; }
}
/* /stp:header */
/* stp:hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 18rem 0;
  background: var(--white) url(../img/bg.webp) center -7rem / 144rem 216rem no-repeat;
}
.hero__glow {
  position: absolute;
  top: -11.8rem;
  left: calc(50% - 76.3rem);
  width: 153.7rem;
  max-width: none;
  height: 100.5rem;
  pointer-events: none;
}
.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3.2rem;
  padding: 0 1.6rem;
  text-align: center;
}
.hero__icon { width: 8rem; height: 8rem; }
.hero h1 { font-size: 4.2rem; line-height: 5rem; font-weight: 800; white-space: nowrap; }
.hero__text { display: flex; flex-direction: column; gap: 2.2rem; max-width: 78rem; }
.hero__lead { font-size: 2rem; font-weight: 800; }

@media (max-width: 1024px) {
  .hero h1 { font-size: 3.6rem; }
}

@media (max-width: 640px) {
  .hero {
    padding: 9.2rem 0 4.6rem;
    background-image: url(../img/bg-m.webp);
    background-position: -48.8rem 0;
    background-size: 169.2rem 170.7rem;
  }
  .hero__glow {
    top: -19.9rem;
    left: -5.4rem;
    width: 48.2rem;
    height: 119.8rem;
  }
  .hero__content { gap: 3.2rem; padding: 0 1.6rem; }
  .hero h1 { font-size: 3rem; line-height: 3.8rem; white-space: normal; }
  .hero__text { max-width: none; }
}
/* /stp:hero */
/* stp:about */
.about {
  position: relative;
  overflow: hidden;
  padding: 10rem 0 14.8rem;
  background: var(--white);
}
.about::before {
  content: "";
  position: absolute;
  top: -87rem;
  left: 50%;
  width: 144rem;
  height: 216rem;
  margin-left: -72rem;
  background: url(../img/bg.webp) center top / 100% 100% no-repeat;
  opacity: 0.65;
  filter: blur(0.2rem);
}
.about__glow {
  position: absolute;
  top: -15.1rem;
  left: calc(50% - 34.1rem);
  width: 119.2rem;
  max-width: none;
  height: 104.9rem;
  pointer-events: none;
}
.about__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6rem;
  width: 62.9rem;
  margin-left: 12rem;
}
.about__content h2 { text-align: left; }
.about__ship {
  position: absolute;
  top: -1.2rem;
  left: calc(50% - 17rem);
  width: 91.5rem;
  max-width: none;
  height: 68.8rem;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .about__content { width: 48rem; margin-left: 4rem; }
  .about__glow { left: calc(50% - 20rem); }
  .about__ship { top: auto; bottom: 0; left: auto; right: -5rem; width: 56rem; height: 42.1rem; }
}

@media (max-width: 640px) {
  .about { padding: 6rem 0 38.3rem; }
  .about::before {
    top: -80rem;
    left: -48.8rem;
    width: 169.2rem;
    height: 170.7rem;
    margin-left: 0;
    background-image: url(../img/bg-m.webp);
  }
  .about__glow { top: 46.1rem; left: -16rem; width: 66rem; height: 58.1rem; }
  .about__content { gap: 3.2rem; width: auto; margin: 0 1.6rem; }
  .about__ship { top: 53.8rem; bottom: auto; left: -6.5rem; right: auto; width: 50.6rem; height: 38.1rem; }
}
/* /stp:about */
/* stp:route */
.route { padding: 10rem 0; background: var(--bg); }
.route__inner {
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  width: 100%;
  max-width: 99.2rem;
  margin: 0 auto;
  text-align: center;
}
.route__head { display: flex; flex-direction: column; align-items: center; gap: 6rem; }
.route__lines { display: flex; flex-direction: column; gap: 2.2rem; }
.route__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  gap: 2.2rem;
}
.route__cards .card { min-height: 6.4rem; text-align: left; white-space: nowrap; }

@media (max-width: 1024px) {
  .route__inner { padding: 0 3rem; }
  .route__cards .card { white-space: normal; }
}

@media (max-width: 640px) {
  .route { padding: 6rem 0; }
  .route__inner { padding: 0 1.6rem; }
  .route__head { align-items: stretch; gap: 3.2rem; text-align: left; }
  .route__head h2 { text-align: left; }
  .route__cards { display: flex; flex-direction: column; gap: 2.2rem; }
  .route__note { text-align: center; }
  .route .panel ul { align-items: stretch; }
  .route .panel li { text-align: left; }
}
/* /stp:route */
/* stp:weather */
.weather {
  position: relative;
  overflow: hidden;
  padding: 15.9rem 0;
  background: linear-gradient(-21.9deg, #314158 0%, #193cb8 50%, #312c85 100%);
  color: var(--white);
}
.weather__content {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  width: 91.4rem;
  margin-left: 12rem;
}
.weather__content h2 { text-align: left; }
.weather__text { display: flex; flex-direction: column; gap: 2.2rem; }
.weather__cols { display: flex; gap: 6rem; }
.weather__cols > * { flex: 0 0 44rem; }
.weather__anchor {
  position: absolute;
  top: 7rem;
  left: 84rem;
  width: 78.3rem;
  max-width: none;
  height: 58.9rem;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .weather__content { width: 50rem; margin-left: 4rem; }
  .weather__cols { flex-direction: column; gap: 1.2rem; }
  .weather__cols > * { flex: 0 0 auto; }
  .weather__anchor { top: auto; bottom: 0; left: auto; right: -6rem; width: 46rem; height: 34.6rem; }
}

@media (max-width: 640px) {
  .weather { padding: 6rem 0 30.5rem; }
  .weather__content { gap: 3.2rem; width: auto; margin: 0 1.6rem; }
  .weather__cols { gap: 1.2rem; }
  .weather__anchor { top: 57.8rem; bottom: auto; left: -7.6rem; right: auto; width: 52.7rem; height: 39.7rem; }
}
/* /stp:weather */
/* stp:harbors */
.harbors { padding: 10rem 0 5rem; background: var(--bg); }
.harbors__inner {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  width: 100%;
  max-width: 91.4rem;
  margin: 0 auto;
  text-align: center;
}
.harbors__body { display: flex; flex-direction: column; gap: 1.2rem; }

@media (max-width: 1024px) {
  .harbors__inner { padding: 0 3rem; }
}

@media (max-width: 640px) {
  .harbors { padding: 6rem 0; }
  .harbors__inner { gap: 3.2rem; padding: 0 1.6rem; }
}
/* /stp:harbors */
/* stp:cta */
.cta {
  position: relative;
  overflow: hidden;
  padding: 10rem 0;
  background: linear-gradient(152.9deg, #314158 0%, #193cb8 50%, #312c85 100%);
  color: var(--white);
}
.cta::before {
  content: "";
  position: absolute;
  top: -108rem;
  left: 50%;
  width: 144rem;
  height: 216rem;
  margin-left: -72rem;
  background: url(../img/bg.webp) center top / 100% 100% no-repeat;
  opacity: 0.2;
}
.cta__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6rem;
  width: 100%;
  max-width: 113.4rem;
  margin: 0 auto;
  text-align: center;
}
.cta__body { display: flex; flex-direction: column; align-items: center; gap: 2.2rem; width: 100%; }
.cta__cards { display: flex; flex-direction: column; gap: 3.2rem; width: 100%; }
.cta__row { display: flex; gap: 1.2rem; }
.cta__row--green .card { flex: 1 1 0; justify-content: center; padding: 1.6rem 1.2rem; background: var(--grad-green-2); }
.cta__row--orange { justify-content: center; width: 100%; }
.cta__row--orange .card { flex: 0 1 46.4rem; justify-content: center; padding: 1.6rem 1.2rem; background: var(--grad-orange-2); }
.cta__group { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }

@media (max-width: 1024px) {
  .cta__inner { padding: 0 3rem; }
}

@media (max-width: 640px) {
  .cta { padding: 6rem 0; background: linear-gradient(to bottom right, #314158 0%, #193cb8 50%, #312c85 100%); }
  .cta::before { top: -22.6rem; left: -3.8rem; width: 79.3rem; height: 119rem; margin-left: 0; }
  .cta__inner { gap: 3.2rem; padding: 0 1.6rem; }
  .cta__body { gap: 2.2rem; }
  .cta__cards { gap: 3.2rem; }
  .cta__row { flex-direction: column; }
  .cta__row .card { flex: 0 0 auto; }
  .cta__group { width: 100%; }
  .cta__row--orange { align-self: stretch; }
}
/* /stp:cta */
/* stp:footer */
.footer {
  background: url(../img/footer-bg.webp) center / 100% 100% no-repeat, #000;
  color: var(--white);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 12rem;
  padding: 0 12rem;
}
.footer__brand { display: flex; align-items: center; gap: 1.2rem; }
.footer__brand img { width: 2.4rem; height: 2.4rem; }
.footer__copy { display: contents; }
.footer__copy p { grid-column: 2; grid-row: 1; text-align: center; }
.footer__links { grid-column: 3; grid-row: 1; justify-self: end; display: flex; gap: 2.2rem; }
.footer__links a:hover { color: var(--panel); }

@media (max-width: 1024px) {
  .footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3.2rem;
    height: auto;
    padding: 5.6rem 3rem 4.4rem;
  }
  .footer__copy { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
  .footer__brand span { white-space: nowrap; }
}

@media (max-width: 640px) {
  .footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3.2rem;
    height: auto;
    padding: 5.6rem 1.4rem 4.4rem;
  }
  .footer__brand span { white-space: nowrap; }
  .footer__copy { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
  .footer__links { justify-self: auto; gap: 2.2rem; }
}
/* /stp:footer */
/* stp:legal */
.legal-body { min-height: 100vh; display: flex; flex-direction: column; }
.legal-main { flex: 1 0 auto; padding-top: 7.6rem; }
.legal-page { padding: 3.4rem 12rem 4.2rem; }
.legal-content { max-width: 120rem; margin: 0 auto; font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 2.4rem; font-weight: 400; }
.legal-content h1 { margin-bottom: 2.4rem; font-size: 3.2rem; line-height: 4rem; font-weight: 800; text-align: left; }
.legal-content h2, .legal-content h3, .legal-content h4 { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 2.4rem; font-weight: 400; text-align: left; }
.legal-content p { font-size: clamp(14px, 1.6rem, 1.6rem); line-height: 2.4rem; }
.legal-content ul { padding-left: 2.4rem; list-style: disc; }
.legal-content ol { padding-left: 2.4rem; list-style: decimal; }
.legal-content li { line-height: 2.4rem; }
.legal-content a { text-decoration: underline; }
.legal-content a:hover { color: var(--accent); }
.legal-content strong { font-weight: 600; }
.legal-content em { font-style: italic; }
.legal-content u { text-decoration: underline; }

@media (max-width: 1024px) {
  .legal-page { padding: 3.4rem 3rem 4.2rem; }
}

@media (max-width: 640px) {
  .legal-main { padding-top: 6rem; }
  .legal-page { padding: 2rem 1.6rem 3.2rem; }
}
/* /stp:legal */
/* stp:title-anim */
.anim-on .hero h1 { position: relative; }
.anim-on .hero h1 .ta-w,
.anim-on main h2 .ta-w { display: inline-block; white-space: nowrap; }
.anim-on .hero h1 .ta-l {
  --ta-dx: 1.8rem;
  display: inline-block;
  opacity: 0;
  transform-origin: 50% 100%;
}
.anim-on .hero h1.ta-go .ta-l { animation: ta-tow 0.8s cubic-bezier(0.22, 0.9, 0.3, 1) calc(0.85s + var(--x) * 1.4s) both; }
.anim-on .hero h1.ta-go::before,
.anim-on .hero h1.ta-go::after {
  content: "";
  position: absolute;
  width: 100%;
  pointer-events: none;
}
.anim-on .hero h1.ta-go::after {
  left: 0;
  bottom: -1.2rem;
  height: 0.3rem;
  border-radius: 0.2rem;
  background: var(--btn-grad);
  animation: ta-route-draw 1.4s linear 0.9s both, ta-route-fade 0.7s ease-in 2.7s forwards;
}
.anim-on .hero h1.ta-go::before {
  left: 0.6rem;
  bottom: -1.65rem;
  height: 1.2rem;
  background: radial-gradient(circle at calc(100% - 0.6rem) 50%, var(--white) 0 0.22rem, var(--accent-2) 0.26rem 0.45rem, transparent 0.5rem);
  filter: drop-shadow(0 0 0.5rem var(--accent-2));
  animation: ta-route-head 1.4s linear 0.9s both, ta-route-fade 0.7s ease-in 2.7s forwards;
}

.anim-on main h2 .ta-w {
  --ta-tint: var(--accent);
  --ta-a: 14deg;
  opacity: 0;
  transform-origin: 50% 100%;
}
.anim-on .weather h2 .ta-w,
.anim-on .cta h2 .ta-w { --ta-tint: var(--accent-2); }
.anim-on main h2.is-in .ta-w { animation: ta-helm 1.1s cubic-bezier(0.25, 0.8, 0.35, 1) calc(var(--i) * 0.09s) both; }

@keyframes ta-tow {
  0% { opacity: 0; transform: translateX(calc(var(--ta-dx) * -1)) skewX(-20deg) scaleX(0.55); color: var(--accent-2); filter: blur(0.3rem); }
  45% { opacity: 1; transform: translateX(0.3rem) skewX(9deg) scaleX(1.08); color: var(--accent); filter: blur(0); }
  70% { transform: translateX(-0.1rem) skewX(-3deg) scaleX(0.98); }
  100% { opacity: 1; transform: translateX(0) skewX(0deg) scaleX(1); filter: blur(0); }
}
@keyframes ta-route-draw {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes ta-route-head {
  0% { opacity: 0; transform: translateX(-100%); }
  4% { opacity: 1; }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes ta-route-fade {
  to { opacity: 0; }
}
@keyframes ta-helm {
  0% { opacity: 0; transform: translate(calc(var(--s) * 0.8rem), 0.6rem) rotate(calc(var(--s) * var(--ta-a))); color: var(--ta-tint); }
  35% { opacity: 1; transform: translate(0, 0) rotate(calc(var(--s) * var(--ta-a) * -0.43)); color: var(--ta-tint); }
  58% { transform: translate(0, 0) rotate(calc(var(--s) * var(--ta-a) * 0.21)); }
  78% { transform: translate(0, 0) rotate(calc(var(--s) * var(--ta-a) * -0.07)); }
  100% { opacity: 1; transform: translate(0, 0) rotate(0deg); }
}

@media (max-width: 640px) {
  .anim-on .hero h1 .ta-l { --ta-dx: 1rem; }
  .anim-on .hero h1.ta-go .ta-l { animation-duration: 0.65s; }
  .anim-on main h2 .ta-w { --ta-a: 9deg; }
  .anim-on main h2.is-in .ta-w { animation-duration: 0.9s; }
}
/* /stp:title-anim */
