/* =========================
   Base reset
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Ubuntu, Cantarell, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background: #f7f7f9;
  color: #1a1a1a;
}

body {
  min-height: 100vh;
}

/* =========================
   Layout
========================= */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  text-align: center;
  margin-bottom: 0.8rem;
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
}

footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #666;
}

/* =========================
   Typography
========================= */
h1 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

.subtitle {
  color: #555;
  font-size: 1rem;
}

.small-note {
  font-size: 0.85rem;
  color: #666;
}

/* =========================
   Buttons
========================= */
.btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

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

.primary {
  background: #4f46e5;
  color: #fff;
}

.primary:hover {
  background: #4338ca;
}

.secondary {
  background: #111827;
  color: #fff;
}

.secondary:hover {
  background: #000;
}

/* =========================
   Navigation / links
========================= */
a {
  color: #4f46e5;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   Cards / boxes
========================= */
.card {
  background: #fff;
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.prediction-box {
  background: #fff;
  border-radius: 8px;
  padding: 1.2rem;
  min-height: 80px;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  white-space: pre-line;
}

/* =========================
   Ads
========================= */
.ad-container {
  margin: 1.5rem auto;
  text-align: center;
}

.ad-box {
  background: #e5e7eb;
  color: #555;
  padding: 1rem;
  font-size: 0.85rem;
  border-radius: 6px;
}

/* =========================
   Premium
========================= */
.premium-info ul {
  margin-left: 1.2rem;
  margin-bottom: 1rem;
}

.premium-info li {
  margin-bottom: 0.4rem;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* =========================
   Language switch
========================= */
.lang-switch {
  margin-top: 0.8rem;
}

.lang-switch button {
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  margin: 0 0.2rem;
  cursor: pointer;
  font-size: 0.8rem;
}

.lang-switch button:hover {
  background: #f1f1f1;
}

/* =========================
   Timer
========================= */
#timer {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #888;
}

/* =========================
   Responsive
========================= */
@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }

  .container {
    padding: 1.2rem 0.8rem;
  }
}

/* =========================
   Natural page flow
========================= */

header {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

main {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

footer {
  margin-top: 3rem;
  padding-bottom: 2rem;
}

/* Main content block */
.content {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin: 0 auto;
  max-width: 720px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

/* Buttons spacing */
.content .btn {
  margin: 0.5rem 0.25rem;
}

/* Ad placement feels natural */
.ad-container {
  max-width: 720px;
  margin: 1.5rem auto;
}

.main-card {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

/* =========================
   Category buttons
========================= */
.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.category-links a {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #f1f3f5;
  color: #111;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.category-links a:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

/* =========================
   Premium CTA
========================= */
.premium-cta {
  text-align: center;
  margin-top: 1.5rem;
}

.premium-cta .btn {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

/* =========================
   Centered action stack
========================= */
.action-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
}

/* Кнопки одинаковой ширины */
.action-stack .btn {
  min-width: 240px;
}

/* Текст под кнопками */
.action-stack .small-note {
  margin-top: 0.5rem;
  max-width: 420px;
}

.seo-text {
  margin-top: 0.6rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* =========================
   Button hover / active
========================= */
.btn {
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

/* Hover — лёгкий подъём */
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Active — эффект нажатия */
.btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

/* =========================
   Category grid layout
========================= */
.category-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.2rem;
}

/* =========================
   Category cards
========================= */
.category-card {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0.9rem 0.8rem;
  min-height: 52px;

  background: #f3f4f6;
  border-radius: 10px;

  font-size: 0.95rem;
  font-weight: 500;
  color: #111;

  text-decoration: none;
  text-align: center;

  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* Hover */
.category-card:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

/* Active */
.category-card:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* =========================
   Premium highlight block
========================= */
.premium-highlight {
  margin-top: 1.2rem;
  padding: 1.4rem 1.2rem;

  border: 1px solid #e5e7eb;
  border-radius: 14px;

  background: #fafafa;
  text-align: center;
}

/* Текст внутри блока */
.premium-text {
  margin-bottom: 0.9rem;
  font-weight: 500;
  color: #111;
}

/* =========================
   Free prediction page scale
========================= */

/* Увеличиваем карточку */
.content {
  padding: 2.2rem 2rem;
}

/* Кнопка получения */
#getPredictionBtn {
  font-size: 1.05rem;
  padding: 0.9rem 1.8rem;
  margin-bottom: 1.2rem;
}

/* Текст предсказания */
.prediction {
  margin-top: 1.2rem;
  margin-bottom: 1.4rem;

  font-size: 1.05rem;
  line-height: 1.7;

  background: #f9fafb;
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
}

/* Таймер */
.timer {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: #6b7280;
}

/* =========================
   Prediction fade-in
========================= */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.35s ease-out;
}

/* =========================
   Premium prediction cards
========================= */
.premium-result .prediction {
  margin: 0.8rem 0 1.6rem;
  padding: 1.3rem 1.6rem;

  background: linear-gradient(
    180deg,
    #4b4343 0%,
    #f8fafc 100%
  );

  border: 1px solid #e5e7eb;
  border-radius: 14px;

  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);

  font-size: 1.05rem;
  line-height: 1.7;
}

/* =========================
   Prediction typography (global)
========================= */
.prediction {
  font-size: 1.1rem;
  line-height: 1.75;

  font-weight: 400;
  color: #111827;

  letter-spacing: 0.01em;
}

/* =========================
   Legal pages (centered)
========================= */
.legal-page {
  text-align: center;
}

.legal-page h1,
.legal-page h2 {
  margin-bottom: 1rem;
}

.legal-page p {
  max-width: 720px;
  margin: 0 auto 1rem;
}