/* ============================================
   Х5 Клуб — Заглушка «Платформа работает в личном кабинете»
   Адаптивные стили
   ============================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #ffffff;
  background-image:
    radial-gradient(circle at 10% 85%, #f2faee 0%, rgba(255, 255, 255, 0) 45%),
    radial-gradient(circle at 85% 15%, #f6fcf3 0%, rgba(255, 255, 255, 0) 40%);
  color: #111111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 48px) clamp(16px, 4vw, 20px);
  text-align: center;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Signature X5 Green Wave (Framing Right / Top) ---- */
.wave-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 45vw;
  min-width: 480px;
  max-width: 780px;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.wave-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- Main Centered Content Container ---- */
.container {
  width: 100%;
  max-width: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ---- Logo ---- */
.logo-box {
  margin-bottom: clamp(26px, 5vw, 38px);
  display: inline-block;
}

.logo {
  width: clamp(190px, 46vw, 250px);
  height: auto;
  display: block;
  user-select: none;
  image-rendering: -webkit-optimize-contrast;
}

/* ---- Typography ---- */
h1 {
  font-size: clamp(26px, 6vw, 42px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.6px;
  color: #111111;
  margin-bottom: clamp(14px, 3vw, 18px);
}

h1 span.highlight {
  color: #5faf2d;
  display: inline;
}

p {
  font-size: clamp(15px, 3.2vw, 18px);
  line-height: 1.5;
  color: #4b5563;
  margin-bottom: clamp(28px, 6vw, 36px);
  max-width: 480px;
}

/* ---- Sole CTA Button ---- */
.btn-lk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #5faf2d;
  color: #ffffff;
  font-size: clamp(15px, 2.8vw, 17px);
  font-weight: 500;
  text-decoration: none;
  padding: 15px 44px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(95, 175, 45, 0.32);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
  min-height: 48px;
  width: auto;
  -webkit-tap-highlight-color: transparent;
}

.btn-lk:hover {
  background-color: #509e25;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(95, 175, 45, 0.42);
}

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

.btn-lk:focus-visible {
  outline: 3px solid #88db4e;
  outline-offset: 2px;
}

/* ============================================
   Mobile Adaptivity
   ============================================ */
@media (max-width: 600px) {
  .wave-bg {
    width: 260px;
    min-width: 260px;
    height: 260px;
    top: -30px;
    right: -40px;
    opacity: 0.4;
  }

  .btn-lk {
    width: 100%;
    padding: 15px 20px;
  }
}

/* ============================================
   Small Mobile (<380px): extra compact spacing
   ============================================ */
@media (max-width: 380px) {
  body {
    padding: 20px 14px;
  }

  h1 {
    font-size: 24px;
  }

  p {
    font-size: 15px;
  }

  .logo {
    width: 180px;
  }
}

/* ============================================
   Landscape phones: reduce vertical padding
   ============================================ */
@media (max-height: 480px) and (orientation: landscape) {
  body {
    padding: 16px 20px;
  }

  .logo-box {
    margin-bottom: 14px;
  }

  .logo {
    width: 160px;
  }

  h1 {
    margin-bottom: 8px;
  }

  p {
    margin-bottom: 18px;
  }
}

/* ============================================
   Reduced Motion: respect user preference
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .btn-lk {
    transition: none;
  }

  .btn-lk:hover {
    transform: none;
  }
}
