:root {
  --orange: #ff6b2c;
  --orange-2: #ff8533;
  --orange-dark: #e04e10;
  --orange-bg: #fff4ee;
  --white: #fff;
  --black: #111;
  --muted: #555;
  --shadow: 0 16px 48px rgba(255, 107, 44, 0.25);
  --font: "Manrope", system-ui, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --sticky-h: calc(76px + var(--safe-bottom));
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  padding-bottom: var(--sticky-h);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; height: auto; display: block; }

/* Ambient background */
.bg-glow {
  position: fixed;
  inset: 0 0 50%;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(255, 107, 44, 0.22), transparent);
  pointer-events: none;
  z-index: 0;
}

.bg-sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(255, 107, 44, 0.08) 0 2px, transparent 3px),
    radial-gradient(circle at 85% 15%, rgba(255, 107, 44, 0.06) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 80%, rgba(255, 107, 44, 0.05) 0 2px, transparent 3px);
  animation: sparkle-drift 12s ease-in-out infinite alternate;
}

@keyframes sparkle-drift {
  from { opacity: 0.5; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-12px); }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: calc(0.55rem + var(--safe-top)) max(1rem, env(safe-area-inset-right)) 0.55rem max(1rem, env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 107, 44, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  color: var(--black);
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(0.95rem, 4vw, 1.1rem);
}

.brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__logo {
  flex-shrink: 0;
  width: 44px;
  height: auto;
  object-fit: contain;
}

.header-btn {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.6rem 1.1rem;
  min-height: 44px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
  box-shadow: 0 4px 16px rgba(255, 107, 44, 0.4);
  display: inline-flex;
  align-items: center;
}

.pulse-attention {
  animation: header-pulse 2s ease-in-out infinite;
}

@keyframes header-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 16px rgba(255, 107, 44, 0.4); }
  50% { transform: scale(1.05); box-shadow: 0 6px 24px rgba(255, 107, 44, 0.55); }
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 1rem max(1rem, env(safe-area-inset-right)) 1.75rem max(1rem, env(safe-area-inset-left));
  text-align: center;
}

/* Logo PNG with text */
.logo-showcase {
  position: relative;
  width: min(100%, 440px);
  margin: 0 auto 1.25rem;
}

.logo-showcase__ring {
  position: absolute;
  inset: -10px;
  border-radius: 24px;
  border: 2px solid rgba(255, 107, 44, 0.3);
  animation: ring-pulse 3s ease-in-out infinite;
}

.logo-showcase__ring--outer {
  inset: -20px;
  border-radius: 32px;
  border-width: 1px;
  opacity: 0.4;
  animation: ring-pulse 3s ease-in-out infinite reverse;
}

.logo-showcase__frame {
  position: relative;
  background: transparent;
  border-radius: 20px;
  padding: 0.5rem 0.25rem 0.25rem;
  border: none;
  box-shadow: none;
  animation: float 4s ease-in-out infinite;
  overflow: visible;
}

.logo-showcase__mark {
  display: block;
  width: 100%;
  max-width: min(332px, 92vw);
  height: auto;
  margin: 0 auto;
  aspect-ratio: 332 / 160;
  border: none;
  pointer-events: none;
}

.logo-showcase__road {
  width: min(280px, 78%);
  height: 3px;
  margin: 0.35rem auto 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 107, 44, 0.15) 20%,
    rgba(255, 107, 44, 0.45) 50%,
    rgba(255, 107, 44, 0.15) 80%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: road-dash 1.4s linear infinite;
}

@keyframes road-dash {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@keyframes ring-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.03); opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
  background: var(--orange-bg);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin: 0 0 0.65rem;
}

.hero__title {
  font-size: clamp(1.55rem, 6.5vw, 2.35rem);
  font-weight: 900;
  line-height: 1.12;
  margin: 0 0 0.65rem;
}

.accent {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: clamp(0.95rem, 3.8vw, 1.05rem);
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 1.5rem;
}

/* Mega CTA */
.mega-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.mega-cta__label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: clamp(0.78rem, 3.2vw, 0.9rem);
  font-weight: 700;
  color: var(--black);
  margin: 0 0 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mega-cta__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  animation: live-pulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(255, 107, 44, 0.6);
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 44, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(255, 107, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 44, 0); }
}

/* Animated buttons */
.mega-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 64px;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  text-decoration: none;
  color: var(--white);
  font-family: var(--font);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.2s ease;
  touch-action: manipulation;
}

.mega-btn__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: shine-sweep 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.mega-btn__ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  pointer-events: none;
  z-index: 2;
}

.mega-btn__ripple.is-active {
  animation: ripple-pop 0.55s ease-out forwards;
}

@keyframes ripple-pop {
  to { transform: scale(2.5); opacity: 0; }
}

@keyframes shine-sweep {
  0%, 40% { transform: translateX(-120%); }
  55% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

.cta-animated {
  animation: btn-breathe 2.8s ease-in-out infinite;
}

.cta-animated--delay {
  animation-delay: 0.5s;
}

.cta-animated .mega-btn__shine {
  animation-delay: 0.8s;
}

.mega-btn--bot.cta-animated {
  background: linear-gradient(135deg, #e04e10 0%, #ff6b2c 50%, #ff9347 100%);
  box-shadow: 0 12px 40px rgba(224, 78, 16, 0.45);
}

.mega-btn--group.cta-animated {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

@keyframes btn-breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 12px 36px rgba(224, 78, 16, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 18px 52px rgba(255, 107, 44, 0.55);
  }
}

.mega-btn--group.cta-animated {
  animation-name: btn-breathe-dark;
}

@keyframes btn-breathe-dark {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
  }
}

.mega-btn:hover,
.mega-btn:focus-visible {
  transform: scale(1.03);
  animation-play-state: paused;
}

.mega-btn:active {
  transform: scale(0.97);
}

.mega-btn__icon,
.mega-btn__text,
.mega-btn__arrow {
  position: relative;
  z-index: 3;
}

.mega-btn__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

.mega-btn__icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.mega-btn__text {
  flex: 1;
  min-width: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.mega-btn__text strong {
  font-size: clamp(0.98rem, 4.2vw, 1.22rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.mega-btn__text small {
  font-size: clamp(0.78rem, 3.2vw, 0.85rem);
  font-weight: 600;
  opacity: 0.92;
}

.mega-btn__arrow {
  font-size: 1.6rem;
  font-weight: 900;
  opacity: 0.95;
  animation: arrow-nudge 1.2s ease-in-out infinite;
}

@keyframes arrow-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

.mega-btn--compact {
  padding: 0.95rem 1.1rem;
  min-height: 56px;
}

.mega-btn--compact .mega-btn__text strong {
  font-size: clamp(0.88rem, 3.8vw, 0.95rem);
}

.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  font-size: clamp(0.72rem, 3vw, 0.85rem);
  color: var(--muted);
}

.stats li {
  padding: 0.5rem 0.25rem;
  background: var(--orange-bg);
  border-radius: 12px;
}

.stats b {
  display: block;
  font-size: clamp(1.1rem, 4.5vw, 1.35rem);
  color: var(--orange-dark);
  font-weight: 900;
}

/* Mid strip */
.cta-strip {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 max(1rem, env(safe-area-inset-right)) 1.75rem max(1rem, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Features */
.section {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.75rem max(1rem, env(safe-area-inset-right)) 2rem max(1rem, env(safe-area-inset-left));
  background: var(--orange-bg);
  border-radius: 24px 24px 0 0;
}

.section__title {
  text-align: center;
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  font-weight: 900;
  margin: 0 0 1.25rem;
}

.grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 1rem;
  border: 1px solid rgba(255, 107, 44, 0.1);
}

.card__ico {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.3rem;
}

.card h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  font-weight: 800;
}

.card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Final CTA */
.final-cta {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem max(1rem, env(safe-area-inset-right)) 2.5rem max(1rem, env(safe-area-inset-left));
  background: linear-gradient(160deg, var(--orange-dark), var(--orange));
  color: var(--white);
}

.final-cta__logo {
  display: block;
  width: min(200px, 52vw);
  height: auto;
  margin: 0 auto 1rem;
  aspect-ratio: 332 / 160;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.18));
}

.final-cta h2 {
  font-size: clamp(1.35rem, 5.5vw, 1.6rem);
  font-weight: 900;
  margin: 0 0 0.35rem;
}

.final-cta > p {
  margin: 0 0 1.15rem;
  opacity: 0.95;
  font-size: clamp(0.9rem, 3.5vw, 1rem);
}

.mega-cta--final .mega-btn--bot {
  background: var(--white);
  color: var(--orange-dark);
  animation: btn-breathe-light 2.8s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.mega-cta--final .mega-btn--group {
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: btn-breathe-dark 2.8s ease-in-out infinite;
  animation-delay: 0.4s;
}

@keyframes btn-breathe-light {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.mega-cta--final .mega-btn__text strong {
  color: inherit;
}

.mega-cta--final .mega-btn--bot .mega-btn__arrow {
  color: var(--orange-dark);
}

/* Sticky bottom bar — mobile */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: var(--safe-bottom);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.14);
}

.sticky-bar__btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  padding: 0.55rem 0.4rem;
  text-decoration: none;
  color: var(--white);
  min-height: calc(68px + var(--safe-bottom) * 0.3);
  overflow: hidden;
  touch-action: manipulation;
}

.sticky-bar__icon {
  font-size: 1.1rem;
  line-height: 1;
  margin-bottom: 0.1rem;
}

.sticky-bar__icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.sticky-bar__btn strong {
  font-size: clamp(0.9rem, 3.8vw, 1rem);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.sticky-bar__btn span:last-child {
  font-size: clamp(0.58rem, 2.5vw, 0.65rem);
  font-weight: 600;
  opacity: 0.92;
}

.sticky-bar__btn--bot {
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
}

.sticky-bar__btn--group {
  background: linear-gradient(135deg, #222, #444);
}

.sticky-bar__btn--pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 60%
  );
  animation: shine-sweep 2.8s ease-in-out infinite;
}

.sticky-bar__btn--pulse {
  animation: sticky-pulse 2s ease-in-out infinite;
}

@keyframes sticky-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

.footer {
  text-align: center;
  padding: 1rem max(1rem, env(safe-area-inset-right)) calc(1rem + var(--safe-bottom)) max(1rem, env(safe-area-inset-left));
  font-size: 0.8rem;
  color: var(--muted);
}

.footer p { margin: 0; }

/* Reveal — контент виден без JS; анимация только с классом .js */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}

.js .reveal {
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Tablet+ */
@media (min-width: 640px) {
  body { padding-bottom: 0; }

  .sticky-bar { display: none; }

  .hero {
    max-width: 560px;
    padding-top: 1.5rem;
  }

  .logo-showcase {
    width: min(420px, 90%);
  }

  .grid { grid-template-columns: repeat(2, 1fr); }

  .header {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .footer {
    padding-bottom: 1rem;
  }
}

@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* Very small phones */
@media (max-width: 360px) {
  .mega-btn {
    gap: 0.55rem;
    padding: 0.9rem 0.85rem;
  }

  .mega-btn__icon {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1.2rem;
  }

  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .logo-showcase__frame,
  .logo-showcase__road,
  .logo-showcase__ring,
  .mega-btn,
  .cta-animated,
  .mega-btn__shine,
  .mega-btn__arrow,
  .mega-cta__pulse,
  .sticky-bar__btn--pulse,
  .pulse-attention,
  .bg-sparkles {
    animation: none !important;
  }
}
