* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f7fb;
  color: #1f2937;
  direction: rtl;
  overflow-x: hidden; /* фикс белой полосы */
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.result-page {
  min-height: 100vh;
}

/* HEADER */

.top-header {
  background: linear-gradient(180deg, #103c75 0%, #0f3a72 100%);
  color: #ffffff;
  text-align: center;
  padding: 28px 20px 34px;
}

.top-header-inner {
  max-width: 980px;
  margin: 0 auto;
}

.top-header-title {
  font-size: 52px;
  font-weight: 700;
}

.top-header-subtitle {
  font-size: 22px;
  opacity: 0.95;
}

/* NAVIGATION */

.top-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 14px;
  background: #ffffff;
}

.nav-btn {
  background: #2563eb;
  color: white;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
}

/* MAIN */

.result-container {
  max-width: 980px;
  margin: 30px auto;
  padding: 0 16px 40px;
}

.result-card,
.situation-card,
.response-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.result-item {
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px;
}

.label {
  font-size: 13px;
  color: #64748b;
}

.value {
  font-size: 16px;
  font-weight: 700;
}

/* TEXTAREA */

textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  margin-bottom: 16px;
}

/* BUTTON */

.main-btn {
  width: 100%;
  background: #2563eb;
  color: white;
  border-radius: 12px;
  padding: 14px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

/* PAYWALL */

.paywall-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.paywall-overlay.hidden {
  display: none;
}

.paywall-box {
  background: white;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
}

.paywall-btn {
  width: 100%;
  background: #16a34a;
  color: white;
  border-radius: 10px;
  padding: 12px;
  border: none;
  margin-top: 10px;
  cursor: pointer;
}