/* ============================================
   Рейтинг Займов — статическая версия сайта
   Синяя цветовая схема
   ============================================ */

:root {
  --background: #ffffff;
  --foreground: #1e293b;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #0ea5e9;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  --primary-gradient-dark: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --surface: #f4f8ff;
  --radius: 0.75rem;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
}

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

html {
  scroll-behavior: smooth;
  background: var(--background);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.section-subtitle {
  text-align: center;
  color: var(--muted-foreground);
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #0c4a9e 100%);
  color: #ffffff;
  padding: 10px 0 0;
  position: relative;
  overflow: hidden;
}

.hero-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .hero-left {
    flex: 1.3;
  }
  .hero-right {
    flex: 1;
  }
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
}

.shield-logo {
  flex-shrink: 0;
}

.shine {
  animation: shine 3s linear infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-30px) rotate(45deg);
  }
  100% {
    transform: translateX(90px) rotate(45deg);
  }
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.trust-badge img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}

.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid rgba(14, 165, 233, 0.45);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
}

.license-badge img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.hero-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature-item {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.feature-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.hero-right {
  display: flex;
  justify-content: center;
}

.hero-wallet {
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* ============ SUCCESS BANNER (spasibo) ============ */
.success-banner {
  background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%);
  color: #ffffff;
  padding: 3rem 0;
  text-align: center;
}

.success-banner .success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.success-banner .success-icon svg {
  width: 40px;
  height: 40px;
}

.success-banner h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .success-banner h1 {
    font-size: 2.25rem;
  }
}

.success-banner p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.btn-white {
  display: inline-block;
  background: #ffffff;
  color: var(--primary);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============ MFO CARDS ============ */
.mfo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

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

.mfo-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.mfo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.mfo-card.top {
  border-color: var(--primary);
  border-width: 2px;
}

.mfo-badge {
  position: absolute;
  top: -10px;
  left: 1.5rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mfo-badge.free {
  background: var(--success);
}

.mfo-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem;
}

.mfo-logo {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 10px;
}

.mfo-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.mfo-params {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
  flex: 1;
}

.mfo-param {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.mfo-param span:first-child {
  color: var(--muted-foreground);
}

.mfo-param span:last-child {
  font-weight: 600;
  text-align: right;
}

.mfo-stats {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mfo-stat {
  flex: 1;
  background: var(--surface);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
}

.mfo-stat .value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.mfo-stat .label {
  font-size: 0.65rem;
  color: var(--muted-foreground);
}

.btn-primary {
  display: block;
  text-align: center;
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  width: 100%;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* ============ BEST MFO ============ */
.best-mfo {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(14, 165, 233, 0.08));
}

.best-card {
  background: #fff;
  border: 2px solid var(--warning);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.best-card .crown {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--warning);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.best-card h3 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.best-card .best-params {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.best-card .best-param .value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.best-card .best-param .label {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

/* ============ INFO SECTION ============ */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.info-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-card li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}

.info-card li .bullet {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 1px;
}

.bullet.good {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.bullet.bad {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.bullet.neutral {
  background: rgba(37, 99, 235, 0.15);
  color: var(--primary);
}

/* ============ ARTICLE (полезный текст) ============ */
.article {
  background: var(--background);
}

.article-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.article-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.75rem 0 0.75rem;
}

.article-card h3:first-child {
  margin-top: 0;
}

.article-card p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.article-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.article-card ul li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.article-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.article-card ul li b {
  color: var(--foreground);
  font-weight: 600;
}

/* ============ REVIEWS ============ */
.reviews {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), #ffffff, rgba(14, 165, 233, 0.05));
}

.reviews-slider-wrap {
  position: relative;
}

.reviews-viewport {
  overflow: hidden;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s ease;
}

.review-slide {
  flex: 0 0 100%;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .review-slide {
    flex: 0 0 50%;
  }
}

@media (min-width: 1024px) {
  .review-slide {
    flex: 0 0 33.3333%;
  }
}

.review-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  height: 100%;
}

.review-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.review-name {
  font-weight: 600;
}

.review-city {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.review-stars {
  color: var(--warning);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.review-text {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.review-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.review-mfo {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.review-date {
  font-size: 0.75rem;
  color: #94a3b8;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s;
}

.slider-btn:hover {
  background: var(--surface);
}

.slider-btn.prev {
  left: -10px;
}

.slider-btn.next {
  right: -10px;
}

.slider-btn svg {
  width: 20px;
  height: 20px;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.slider-dots button {
  height: 8px;
  width: 8px;
  border-radius: 999px;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.slider-dots button.active {
  width: 24px;
  background: var(--primary);
}

.review-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .review-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.review-stat {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.review-stat .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.review-stat .lbl {
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

/* ============ PARTNERS ============ */
.partners {
  background: var(--surface);
}

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

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

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

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

.partner-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.partner-card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.partner-card p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.partner-card p b {
  color: var(--foreground);
  font-weight: 600;
}

.partner-card a {
  color: var(--primary);
}

.partner-card a:hover {
  text-decoration: underline;
}

.partners-count {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ============ FORM ============ */
.form-section {
  background: linear-gradient(135deg, #2563eb 0%, #0c4a9e 100%);
  color: #fff;
}

.form-card {
  background: #fff;
  color: var(--foreground);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.form-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.form-card .form-sub {
  text-align: center;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

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

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
}

.field label .req {
  color: var(--danger);
}

.field input,
.field textarea {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.875rem;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.field .err {
  font-size: 0.75rem;
  color: var(--danger);
}

.file-field {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.file-field:hover {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.03);
}

.file-field input {
  display: none;
}

.file-field .file-icon {
  width: 32px;
  height: 32px;
  margin: 0 auto 0.5rem;
  color: var(--primary);
}

.file-field .file-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.file-field .file-hint {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.file-field .file-name {
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 600;
  margin-top: 0.4rem;
}

.checkbox-field {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.checkbox-field input {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.checkbox-field a {
  color: var(--primary);
  text-decoration: underline;
}

.form-error {
  border: 1px solid rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
  border-radius: 10px;
  padding: 0.875rem;
  text-align: center;
  font-size: 0.875rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  opacity: 0;
}

.btn-submit {
  width: 100%;
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* ============ FOOTER ============ */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-partner-name {
  color: #94a3b8;
  font-size: 0.85rem;
}

#footerPartnerInfo .footer-partner-row {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.6rem;
}

#footerPartnerInfo .footer-partner-label {
  display: inline-block;
  color: #60a5fa;
  font-weight: 600;
  margin-right: 0.35rem;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.7;
}

/* ============ ANIMATIONS ============ */
@keyframes pop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.pop {
  animation: pop 0.4s ease-out;
}



/* Скрываем hero-features и hero-right на мобильных */
@media (max-width: 768px) {
  .hero-features,
  .hero-right {
    display: none;
  }
}
