/* ===== 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;
  /* Фото + холодный сине-индиго оверлей для новой гаммы */
  background:
    linear-gradient(165deg, rgba(10, 22, 42, 0.58) 0%, rgba(12, 28, 48, 0.48) 45%, rgba(8, 20, 38, 0.55) 100%),
    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, #1e3a5f 0%, #1d4ed8 32%, #0369a1 68%, #0e7490 88%, #22d3ee 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 36px rgba(29, 78, 216, 0.42),
    0 6px 20px rgba(8, 145, 178, 0.22),
    0 2px 8px 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.07);
  box-shadow:
    0 18px 48px rgba(37, 99, 235, 0.5),
    0 8px 24px rgba(6, 182, 212, 0.28),
    0 4px 12px 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(15, 30, 55, 0.55));
  }
  50% {
    filter:
      drop-shadow(0 12px 34px rgba(56, 189, 248, 0.32))
      drop-shadow(0 0 28px rgba(251, 191, 36, 0.12));
  }
  100% {
    filter: drop-shadow(0 10px 28px rgba(15, 30, 55, 0.55));
  }
}

@keyframes accentPulse {
  0% {
    filter:
      drop-shadow(0 0 14px rgba(125, 211, 252, 0.22))
      drop-shadow(0 0 22px rgba(251, 191, 36, 0.18));
  }
  50% {
    filter:
      drop-shadow(0 0 24px rgba(167, 139, 250, 0.28))
      drop-shadow(0 0 30px rgba(45, 212, 191, 0.2));
  }
  100% {
    filter:
      drop-shadow(0 0 14px rgba(125, 211, 252, 0.22))
      drop-shadow(0 0 22px rgba(251, 191, 36, 0.18));
  }
}

@keyframes footerPearl {
  0% {
    background-position: 8% 42%;
  }
  100% {
    background-position: 92% 58%;
  }
}

@keyframes footerSheen {
  0% {
    transform: translateX(-35%) skewX(-12deg);
    opacity: 0.35;
  }
  45% {
    opacity: 0.85;
  }
  100% {
    transform: translateX(135%) skewX(-12deg);
    opacity: 0.35;
  }
}

@keyframes heroDotBob {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.88;
  }
  50% {
    transform: scale(1.14);
    opacity: 1;
  }
}

@keyframes heroDotOrbit {
  0%,
  100% {
    transform: scale(1) translateX(0);
  }
  50% {
    transform: scale(1.1) translateX(2px);
  }
}

@keyframes heroDotGlowWhite {
  0%,
  100% {
    box-shadow:
      0 0 8px rgba(255, 252, 245, 0.5),
      0 0 16px rgba(254, 243, 199, 0.2);
  }
  50% {
    box-shadow:
      0 0 16px rgba(255, 255, 255, 0.78),
      0 0 28px rgba(253, 230, 138, 0.35);
  }
}

@keyframes heroDotGlowBlue {
  0%,
  100% {
    box-shadow:
      0 0 10px rgba(34, 211, 238, 0.45),
      0 0 18px rgba(37, 99, 235, 0.32);
  }
  50% {
    box-shadow:
      0 0 20px rgba(56, 189, 248, 0.72),
      0 0 30px rgba(79, 70, 229, 0.38);
  }
}

@keyframes heroDotGlowRed {
  0%,
  100% {
    box-shadow:
      0 0 10px rgba(251, 113, 133, 0.48),
      0 0 18px rgba(190, 18, 60, 0.32);
  }
  50% {
    box-shadow:
      0 0 20px rgba(251, 113, 133, 0.82),
      0 0 28px rgba(225, 29, 72, 0.5);
  }
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-bottom: 0;
  padding-top: max(380px, calc(260px + env(safe-area-inset-top, 0px)));
}

.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;
  padding-bottom: max(32px, calc(20px + env(safe-area-inset-bottom, 0px)));
}

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

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

.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(2.7rem, 4.86vw, 4.59rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 22px;
  background: linear-gradient(
    110deg,
    #f8fafc 0%,
    #e0f2fe 22%,
    #ecfeff 44%,
    #f0f9ff 66%,
    #eef2ff 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(
    110deg,
    #f0f9ff 0%,
    #7eb6e0 12%,
    #bfdbfe 26%,
    #e8e4bc 40%,
    #f5d565 50%,
    #93c5fd 64%,
    #6366f1 78%,
    #a5f3fc 92%,
    #f8fafc 100%
  );
  background-size: 440% 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-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(14px, 2vh, 22px);
  width: 100%;
  max-width: min(100%, 640px);
}

.hero-point {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65em;
}

.hero-point-text {
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  font-weight: 800;
  line-height: 1.4;
  color: rgba(240, 249, 255, 0.97);
  text-shadow:
    0 2px 16px rgba(15, 40, 65, 0.55),
    0 0 22px rgba(94, 234, 212, 0.12),
    0 0 32px rgba(251, 191, 36, 0.07);
}

.hero-point-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  align-self: center;
  animation: heroDotBob 2.7s ease-in-out infinite;
}

.hero-point:nth-child(1) .hero-point-dot {
  background: radial-gradient(circle at 28% 22%, #ffffff 0%, #fefce8 42%, #e2e8f0 100%);
  border: 1px solid rgba(255, 250, 240, 0.42);
  animation:
    heroDotBob 2.7s ease-in-out infinite,
    heroDotGlowWhite 3.5s ease-in-out infinite;
}

.hero-point:nth-child(2) .hero-point-dot {
  background: radial-gradient(circle at 28% 22%, #67e8f9 0%, #2563eb 48%, #1e1b4b 100%);
  border: 1px solid rgba(125, 211, 252, 0.35);
  animation:
    heroDotOrbit 3.1s ease-in-out infinite,
    heroDotGlowBlue 3.8s ease-in-out infinite;
  animation-delay: 0.08s, 0.05s;
}

.hero-point:nth-child(3) .hero-point-dot {
  background: radial-gradient(circle at 28% 22%, #fda4af 0%, #e11d48 50%, #4c0519 100%);
  border: 1px solid rgba(251, 113, 133, 0.4);
  animation:
    heroDotBob 2.75s ease-in-out infinite,
    heroDotGlowRed 3.6s ease-in-out infinite;
  animation-delay: 0.15s, 0.1s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-point-dot {
    animation: none;
    opacity: 0.95;
  }
}

.hero-wrapper {
  margin-top: clamp(56px, 10vh, 120px);
  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;
}

/* ===== Footer ===== */
.footer {
  padding: 24px clamp(20px, 4vw, 40px) 36px 0;
  border-top: none;
  background: transparent;
}

.footer-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  justify-content: flex-start;
}

.footer-panel {
  position: relative;
  overflow: hidden;
  text-align: left;
  isolation: isolate;
  border-radius: 0 14px 14px 0;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0.32) 22%,
      rgba(248, 252, 255, 0.2) 42%,
      rgba(255, 255, 255, 0.36) 58%,
      rgba(236, 244, 252, 0.18) 78%,
      rgba(255, 255, 255, 0.28) 100%
    );
  background-size: 240% 240%;
  animation: footerPearl 16s ease-in-out infinite alternate;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 18px 22px 18px max(18px, calc(14px + env(safe-area-inset-left, 0px)));
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow:
    0 4px 24px rgba(255, 255, 255, 0.14),
    0 12px 40px rgba(0, 20, 40, 0.12);
  max-width: min(100%, 400px);
}

.footer-panel::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 55%;
  height: 180%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 45%,
    rgba(255, 255, 255, 0.08) 72%,
    transparent 100%
  );
  animation: footerSheen 11s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.footer-panel > * {
  position: relative;
  z-index: 1;
}

.footer-legal {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(16, 38, 54, 0.88);
  font-weight: 500;
  text-align: left;
}

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

.footer-panel .footer-legal.footer-domain {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(18, 55, 78, 0.14);
  color: rgba(10, 88, 128, 0.95);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===== Mobile ===== */
@media (max-width: 768px) {
  body {
    background:
      linear-gradient(165deg, rgba(10, 22, 42, 0.5) 0%, rgba(12, 28, 48, 0.42) 50%, rgba(8, 20, 38, 0.52) 100%),
      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: 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;
    align-items: stretch;
    text-align: left;
  }

  .hero-container {
    padding-left: 16px;
    padding-right: clamp(16px, 5vw, 32px);
    padding-bottom: max(6px, calc(4px + env(safe-area-inset-bottom, 0px)));
  }

  .hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    text-align: left;
    max-width: 100%;
    min-height: 0;
    gap: clamp(22px, 5vh, 36px);
    padding-bottom: max(16px, calc(10px + env(safe-area-inset-bottom, 0px)));
    margin-left: auto;
    margin-right: 0;
  }

  .topzag {
    margin-bottom: 12px;
  }

  .hero-copy {
    align-items: flex-end;
    width: 100%;
    max-width: 100%;
  }

  .hero-points {
    align-self: flex-end;
    width: fit-content;
    max-width: 100%;
    gap: 16px;
  }

  .hero-point {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.55em;
  }

  .hero-point-text {
    font-size: 0.9375rem;
    text-align: left;
  }

  .hero-point-dot {
    width: 14px;
    height: 14px;
    align-self: center;
    animation: none;
    opacity: 0.95;
  }

  .hero h1,
  .hero-title {
    font-size: calc(36px * 0.9);
    line-height: 1.06;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 0;
    transform: none;
    text-align: left;
    width: fit-content;
    max-width: 100%;
    align-self: flex-end;
    background: linear-gradient(
      110deg,
      #f8fafc 0%,
      #e0f2fe 22%,
      #ecfeff 44%,
      #f0f9ff 66%,
      #eef2ff 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(
      110deg,
      #f0f9ff 0%,
      #7eb6e0 12%,
      #bfdbfe 26%,
      #e8e4bc 40%,
      #f5d565 50%,
      #93c5fd 64%,
      #6366f1 78%,
      #a5f3fc 92%,
      #f8fafc 100%
    );
    background-size: 440% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter:
      drop-shadow(0 0 14px rgba(56, 189, 248, 0.26))
      drop-shadow(0 0 22px rgba(251, 191, 36, 0.18));
  }

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

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

  .hero-accent {
    background: linear-gradient(
      110deg,
      #f0f9ff 0%,
      #7eb6e0 12%,
      #bfdbfe 26%,
      #e8e4bc 40%,
      #f5d565 50%,
      #93c5fd 64%,
      #6366f1 78%,
      #a5f3fc 92%,
      #f8fafc 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(56, 189, 248, 0.26))
      drop-shadow(0 0 22px rgba(251, 191, 36, 0.18));
  }

  .hero-wrapper {
    width: 100%;
    margin-top: 0;
    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;
  }

  .footer {
    padding: 20px 12px 28px 0;
  }

  .footer-inner {
    justify-content: flex-start;
  }

  .footer-panel {
    text-align: left;
    max-width: 100%;
    animation: none;
    padding-left: max(16px, calc(12px + env(safe-area-inset-left, 0px)));
    background:
      linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.34) 50%,
        rgba(248, 252, 255, 0.22) 100%
      );
  }

  .footer-panel::before {
    animation: none;
    opacity: 0.45;
    transform: translateX(20%);
  }

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

}
