/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  /* Фото на весь экран: сверху, внизу (trust + footer) — одно и то же, по бокам без отступов */
  background: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)), url(hero-bg.jpg) center center / cover no-repeat;
  background-attachment: scroll;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  position: relative;
  background: linear-gradient(135deg, #1d9bf0 0%, #2496ff 45%, #36b0ff 100%);
  color: #fff;
  padding: 21px 52px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 40px;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(29, 155, 240, 0.45), 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 18px 44px rgba(29, 155, 240, 0.55), 0 6px 16px rgba(0, 0, 0, 0.22);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: skewX(-20deg);
  animation: shine 3.5s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  60% { left: 120%; }
  100% { left: 120%; }
}

/* Мягкое переливание без резкой «линии» при сдвиге фона */
@keyframes titleShine {
  0% { background-position: 68% 50%; }
  100% { background-position: 32% 50%; }
}

@keyframes titleGlow {
  0% {
    filter: drop-shadow(0 10px 28px rgba(8, 47, 73, 0.45));
  }
  50% {
    filter: drop-shadow(0 12px 32px rgba(56, 189, 248, 0.28));
  }
  100% {
    filter: drop-shadow(0 10px 28px rgba(8, 47, 73, 0.45));
  }
}

@keyframes accentPulse {
  0% {
    filter:
      drop-shadow(0 0 12px rgba(34, 211, 238, 0.28))
      drop-shadow(0 0 18px rgba(201, 162, 72, 0.22));
  }
  50% {
    filter:
      drop-shadow(0 0 20px rgba(224, 192, 118, 0.42))
      drop-shadow(0 0 26px rgba(125, 211, 252, 0.28));
  }
  100% {
    filter:
      drop-shadow(0 0 12px rgba(34, 211, 238, 0.28))
      drop-shadow(0 0 18px rgba(201, 162, 72, 0.22));
  }
}

/* ===== Main & Hero (Desktop) ===== */
.main {
  min-height: 100vh;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-bottom: 0;
  padding-top: 180px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-container {
  margin-left: 0;
  padding-left: 24px;
  padding-right: clamp(40px, 6vw, 100px);
  padding-top: 0;
}

.hero-content {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-left: auto;
  margin-right: 0;
}

.topzag {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(3rem, 5.4vw, 5.1rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 22px;
  background: linear-gradient(
    108deg,
    #dff6fb 0%,
    #e8fafd 22%,
    #f2fdff 42%,
    #e6f7fb 58%,
    #eef9fc 78%,
    #e2f5fa 100%
  );
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShine 12s ease-in-out infinite alternate, titleGlow 5s ease-in-out infinite;
}

.hero-accent {
  background: linear-gradient(
    108deg,
    #7abdd4 0%,
    #9ccfe3 14%,
    #bddfea 28%,
    #e2e5d8 40%,
    #f0e4bc 50%,
    #e8d9a8 60%,
    #d4c089 72%,
    #b8e0ed 86%,
    #7ec8dc 100%
  );
  background-size: 420% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShine 10s ease-in-out infinite alternate, accentPulse 4.5s ease-in-out infinite;
}

.hero-line {
  display: block;
}

/* Десктоп: «Под ключ», с новой строки «Из Европы» */
.hero-accent-line,
.hero-accent-europe {
  display: block;
}

.hero-sub {
  font-size: 1.22rem;
  line-height: 1.46;
  font-weight: 800;
  color: rgba(224, 242, 254, 0.97);
  text-shadow:
    0 2px 18px rgba(8, 47, 73, 0.5),
    0 0 20px rgba(34, 211, 238, 0.12);
  margin-top: 48px;
  margin-bottom: 0;
  max-width: 640px;
}

.hero-wrapper {
  margin-top: 130px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.hero-wrapper .btn-primary {
  margin-left: 0;
}

.hero-hint {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

/* ===== Trust block (прозрачно, пространство сохранено) ===== */
.trust {
  padding: 48px 24px 56px;
  background: transparent;
}

.trust-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* ===== Footer ===== */
.footer {
  padding: 24px clamp(24px, 5vw, 48px) 36px;
  padding-right: clamp(40px, 6vw, 100px);
  border-top: none;
  background: transparent;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
}

.footer-panel {
  text-align: right;
  background: rgba(6, 20, 32, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.28);
  max-width: min(100%, 400px);
}

.footer-legal {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  text-align: right;
}

.footer-legal + .footer-legal {
  margin-top: 6px;
}

.footer-panel .footer-legal.footer-domain {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(224, 242, 254, 0.9);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  body {
    background: linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.36)), url(mob1.jpg) right top / cover no-repeat;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }

  .main {
    min-height: 100svh;
  }

  .hero {
    min-height: 100svh;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    padding: 0 10px;
    align-items: stretch;
    text-align: left;
  }

  .hero-container {
    padding-left: 16px;
    padding-right: clamp(16px, 5vw, 32px);
  }

  .hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    text-align: left;
    max-width: 100%;
    min-height: 0;
    gap: 0;
    padding-top: calc(25vh + env(safe-area-inset-top, 0px));
    padding-bottom: max(20px, env(safe-area-inset-bottom) + 8px);
    margin-left: auto;
    margin-right: 0;
  }

  .topzag {
    margin-bottom: 12px;
  }

  .hero h1,
  .hero-title {
    font-size: 36px;
    line-height: 1.06;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: clamp(14px, 3.6vh, 28px);
    transform: none;
    text-align: left;
    width: fit-content;
    max-width: 100%;
    align-self: flex-end;
    background: linear-gradient(
      108deg,
      #dff6fb 0%,
      #e8fafd 22%,
      #f2fdff 42%,
      #e6f7fb 58%,
      #eef9fc 78%,
      #e2f5fa 100%
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    animation: titleShine 12s ease-in-out infinite alternate, titleGlow 5s ease-in-out infinite;
  }

  .hero h1.hero-title.hero-accent {
    background: linear-gradient(
      108deg,
      #7abdd4 0%,
      #9ccfe3 14%,
      #bddfea 28%,
      #e2e5d8 40%,
      #f0e4bc 50%,
      #e8d9a8 60%,
      #d4c089 72%,
      #b8e0ed 86%,
      #7ec8dc 100%
    );
    background-size: 420% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter:
      drop-shadow(0 0 14px rgba(100, 200, 230, 0.28))
      drop-shadow(0 0 20px rgba(201, 162, 72, 0.28));
  }

  .hero-line {
    display: block;
    margin: 0 0 2px 0;
  }

  .hero-accent-line,
  .hero-accent-europe {
    display: block;
  }

  .hero-accent {
    background: linear-gradient(
      108deg,
      #7abdd4 0%,
      #9ccfe3 14%,
      #bddfea 28%,
      #e2e5d8 40%,
      #f0e4bc 50%,
      #e8d9a8 60%,
      #d4c089 72%,
      #b8e0ed 86%,
      #7ec8dc 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShine 10s ease-in-out infinite alternate, accentPulse 4.5s ease-in-out infinite;
    filter:
      drop-shadow(0 0 14px rgba(100, 200, 230, 0.28))
      drop-shadow(0 0 20px rgba(201, 162, 72, 0.28));
  }

  .hero-sub {
    display: block;
    font-size: 0.9375rem;
    line-height: 1.48;
    margin-top: 0;
    margin-bottom: 0;
    width: fit-content;
    max-width: 100%;
    align-self: flex-end;
    color: rgba(207, 250, 254, 0.96);
    text-shadow:
      0 2px 14px rgba(8, 47, 73, 0.45),
      0 0 16px rgba(34, 211, 238, 0.14);
  }

  .hero-wrapper {
    width: 100%;
    margin-top: auto;
    margin-bottom: 0;
    justify-content: flex-end;
    position: static;
  }

  .hero-wrapper .btn-primary {
    margin-left: 0;
  }

  .btn-primary {
    width: 100%;
    max-width: 320px;
    font-size: 17px;
    padding: 19px 30px;
  }

  /* Упрощаем анимации на мобильных, чтобы убрать рывки при скролле */
  .hero-title,
  .hero h1 {
    animation: none;
  }

  .hero-accent:not(.hero-title) {
    animation: none;
    filter: none;
  }

  .btn-primary::before {
    animation: none;
    opacity: 0.35;
  }

  .trust-inner {
    padding: 0 16px;
  }

  .footer {
    padding: 20px 16px 28px;
    padding-right: 16px;
  }

  .footer-inner {
    justify-content: center;
  }

  .footer-panel {
    text-align: center;
    max-width: 100%;
  }

  .footer-legal {
    text-align: center;
  }

}
