/* ===== 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, #0ea5e9, #06b6d4);
  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 30px rgba(14, 165, 233, 0.4);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(14, 165, 233, 0.5);
}

.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: 120% 50%; }
  100% { background-position: -140% 50%; }
}

@keyframes titleGlow {
  0% {
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
  }
  50% {
    filter: drop-shadow(0 12px 30px rgba(255, 255, 255, 0.14));
  }
  100% {
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
  }
}

@keyframes accentPulse {
  0% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4)); }
  50% { filter: drop-shadow(0 0 18px rgba(255, 223, 0, 0.55)); }
  100% { filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4)); }
}

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

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

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

.hero-container {
  margin-left: 0;
  padding-left: 56px;
  padding-top: 0;
}

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

.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;
}

/* Обёртка — на всю ширину колонки (flex + align-items: flex-start сжимает без stretch) */
.hero-heading {
  align-self: stretch;
  width: 100%;
  margin-bottom: 26px;
}

.hero-title {
  font-size: clamp(3.4rem, 6vw, 5.8rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: left;
  color: transparent;
}

.hero-title-row {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  margin-right: auto;
  padding: 0;
  text-align: left;
  box-sizing: border-box;
  background: linear-gradient(110deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,1) 34%, rgba(255,255,255,0.86) 50%, rgba(255,255,255,1) 66%, rgba(255,255,255,0.85) 100%);
  background-size: 240% 100%;
  background-position: left center;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShine 6.5s linear infinite, titleGlow 4.2s ease-in-out infinite;
}

.hero-accent {
  background: linear-gradient(105deg, #ffd700 0%, #ffec8b 28%, #ffdf00 50%, #ffec8b 72%, #ffd700 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShine 5.6s linear infinite, accentPulse 3.2s ease-in-out infinite;
}

.hero-line {
  display: block;
}

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

.hero-sub {
  font-size: 1.36rem;
  line-height: 1.48;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.98);
  margin-bottom: 0;
  max-width: 640px;
}

.hero-wrapper {
  margin-top: 30px;
  display: flex;
  justify-content: flex-start;
}

.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;
  border-top: none;
  background: transparent;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.footer-inn,
.footer-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0;
}

.footer-inn {
  margin-bottom: 0;
}

.footer-name {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

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

  .main {
    min-height: 100svh;
  }

  .hero {
    min-height: 100svh;
    padding-top: 14px;
    padding-bottom: 4px;
    align-items: flex-start;
  }

  .hero .container {
    max-width: 100%;
    margin-left: 0;
    padding: 0 10px;
    align-items: flex-start;
    text-align: left;
  }

  .hero-container {
    padding-left: 10px;
  }

  .hero-content {
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
    min-height: auto;
  }

  .topzag {
    margin-bottom: 12px;
  }

  .hero-heading {
    align-self: stretch;
    width: 100%;
    margin-bottom: 0;
  }

  .hero h1,
  .hero-title {
    font-size: 42px;
    line-height: 1.05;
    font-weight: 900;
    margin-top: clamp(110px, 18vh, 190px);
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    text-align: left;
    color: transparent;
    background: none;
    animation: none;
  }

  .hero-title-row {
    width: fit-content;
    max-width: 100%;
    margin-right: auto;
    padding: 0;
    background: linear-gradient(110deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,1) 36%, rgba(255,255,255,0.9) 52%, rgba(255,255,255,1) 68%, rgba(255,255,255,0.88) 100%);
    background-size: 230% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: none;
  }

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

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

  .hero-accent {
    background: linear-gradient(105deg, #ffd700 0%, #ffec8b 30%, #ffdf00 55%, #ffec8b 80%, #ffd700 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleShine 5.2s linear infinite, accentPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.45));
  }

  .hero-sub {
    display: block;
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .hero-wrapper {
    width: 100%;
    margin-top: 110px;
    margin-bottom: max(34px, env(safe-area-inset-bottom));
    justify-content: flex-start;
    position: static;
  }

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

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

  .hero-accent {
    animation: none;
    filter: none;
  }

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

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

}
