/* ===== 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, #a66b00 0%, #ffd700 24%, #ffffff 50%, #ffec8b 74%, #c78f0a 100%);
  color: #1a1206;
  padding: 21px 52px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 40px;
  border: 1px solid rgba(255, 239, 170, 0.65);
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(234, 179, 8, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25);
  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.05);
  box-shadow: 0 18px 44px rgba(255, 215, 0, 0.48), 0 6px 16px rgba(0, 0, 0, 0.24);
}

.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, 236, 139, 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: clamp(130px, 22vh, 300px);
}

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

.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(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%;
  -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%, #ffffff 24%, #ffec8b 48%, #ffffff 70%, #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.22rem;
  line-height: 1.46;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.98);
  margin-top: 48px;
  margin-bottom: 0;
  max-width: 640px;
}

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

.hero-wrapper .btn-primary {
  margin-left: clamp(48px, 14vw, 200px);
}

.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-legal {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

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

/* ===== Thanks page ===== */
.thanks-main {
  display: flex;
  align-items: center;
  justify-content: center;
}

.thanks-page {
  width: 100%;
  padding: 48px 24px;
}

.thanks-container {
  display: flex;
  justify-content: center;
}

.thanks-card {
  width: 100%;
  max-width: 560px;
  padding: 38px 28px;
  border-radius: 22px;
  border: 1px solid rgba(150, 218, 255, 0.35);
  background: rgba(8, 7, 6, 0.6);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.thanks-title {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 2.6rem);
  line-height: 1.1;
}

.thanks-subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
  line-height: 1.45;
  font-size: 1rem;
  font-weight: 600;
}

.thanks-intro {
  margin-bottom: 20px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.lead-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.lead-input {
  border: 1px solid rgba(150, 218, 255, 0.42);
  border-radius: 12px;
  background: rgba(18, 14, 10, 0.85);
  color: #fff;
  width: 100%;
  max-width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.3;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.lead-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.lead-input:focus {
  border-color: rgba(126, 205, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(126, 205, 255, 0.2);
}

.lead-submit {
  margin-top: 14px;
  width: 100%;
  max-width: 100%;
  min-height: 58px;
  padding-left: 20px;
  padding-right: 20px;
  white-space: normal;
  text-align: center;
}

.lead-submit:disabled {
  opacity: 0.75;
  cursor: wait;
}

.is-hidden {
  display: none;
}

.success-state {
  display: none;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  text-align: center;
  margin-top: 12px;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 236, 139, 0.32);
  background: rgba(20, 15, 8, 0.6);
  width: 100%;
  max-width: 100%;
}

.success-state.is-visible {
  display: block;
  animation: revealSuccess 0.55s ease forwards;
}

.success-state p {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.98);
}

.success-state .success-title {
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 1.45rem;
  font-weight: 800;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid rgba(253, 224, 71, 0.95);
  position: relative;
  box-shadow: 0 0 0 0 rgba(253, 224, 71, 0.45);
  animation: pulseRing 1.8s ease-out infinite;
}

.success-icon::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 11px;
  width: 14px;
  height: 26px;
  border-right: 4px solid #fde047;
  border-bottom: 4px solid #fde047;
  transform: rotate(40deg);
}

@keyframes revealSuccess {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(253, 224, 71, 0.45);
  }
  80% {
    box-shadow: 0 0 0 16px rgba(253, 224, 71, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(253, 224, 71, 0);
  }
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  body {
    background: linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.36)), url(mob1.jpg) 52% 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: 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 0 clamp(22px, 6.5vw, 36px);
    align-items: stretch;
    text-align: left;
  }

  .hero-container {
    padding-left: clamp(22px, 6.5vw, 36px);
  }

  .hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
    min-height: 0;
    gap: clamp(14px, 3.6vh, 28px);
    padding-top: clamp(22px, 8vh, 90px);
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .topzag {
    margin-bottom: 12px;
  }

  .hero h1,
  .hero-title {
    font-size: 36px;
    line-height: 1.06;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 0;
    transform: translateY(-12px);
    text-align: left;
    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;
    text-shadow: none;
    animation: titleShine 5.2s linear infinite, titleGlow 3.6s ease-in-out infinite;
  }

  /* Золото у заголовка: перебивает .hero h1 по специфичности */
  .hero h1.hero-title.hero-accent {
    background: linear-gradient(105deg, #ffd700 0%, #ffffff 26%, #ffec8b 54%, #ffffff 78%, #ffd700 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.38));
  }

  .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%, #ffffff 26%, #ffec8b 54%, #ffffff 78%, #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: 0.9375rem;
    line-height: 1.48;
    margin-top: 0;
    margin-bottom: 0;
  }

  .hero-wrapper {
    width: 100%;
    margin-top: 38px;
    margin-bottom: 0;
    justify-content: center;
    position: static;
  }

  .hero-wrapper .btn-primary {
    margin-left: clamp(32px, 12vw, 88px);
  }

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

  .thanks-page {
    padding: 24px 16px;
  }

  .thanks-card {
    padding: 26px 18px;
    border-radius: 16px;
  }

  .thanks-title {
    font-size: 1.8rem;
  }

}
