:root {
  --bg: #fbf8f6;
  --surface: #ffffff;
  --surface-alt: #fff7ed;
  --navy: #111827;
  --navy-light: #1f2937;
  --emerald: #ea580c;
  --emerald-hover: #c2410c;
  --emerald-soft: #fff7ed;
  --gold: #d97706;
  --text: #111827;
  --text-muted: #475569;
  --text-light: #64748b;
  --border: #fed7aa;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 24px -4px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 16px 40px -8px rgba(15, 23, 42, 0.12);
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--emerald) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: var(--navy);
}

.brand-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--gold);
  font-size: 14px;
}

.stars .empty {
  color: #cbd5e1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--emerald);
}

.header-stats {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-pill {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.stat-pill strong {
  color: var(--navy);
  font-weight: 700;
  margin-right: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn-primary {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 2px 10px rgba(5, 150, 105, 0.25);
}

.btn-primary:hover {
  background: var(--emerald-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--navy);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-alt);
  border-color: #cbd5e1;
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
}

.mobile-menu-btn {
  display: none;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

/* Hero Section */
.hero-section {
  padding: 28px 0 20px;
}

.hero-card {
  background: linear-gradient(135deg, #111827 0%, #292524 58%, #9a3412 100%);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(234, 88, 12, 0.2);
  border: 1px solid rgba(251, 146, 60, 0.45);
  color: #fdba74;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 16px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.expert-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.expert-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(16, 185, 129, 0.6);
  flex-shrink: 0;
}

.expert-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fdba74;
  font-weight: 700;
  margin-bottom: 4px;
}

.expert-name {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
}

.expert-role {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
}

/* Disclaimer */
.disclaimer-banner {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  font-size: 13px;
  color: #78350f;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* Intro Card */
.intro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
}

.upd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.intro-text p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 15px;
}

.intro-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-alt);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}

.feature-chip span {
  color: var(--emerald);
  font-weight: 700;
}

.intro-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.intro-visual img {
  width: 100%;
  height: 185px;
  object-fit: cover;
}

/* Section Headers */
.section {
  margin-bottom: 48px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.section-title {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-light);
}

/* Filter Toolbar */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}

.search-input-wrap {
  flex: 1 1 240px;
  position: relative;
}

.search-input-wrap input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  outline: none;
  transition: border-color var(--transition);
}

.search-input-wrap input:focus {
  border-color: var(--emerald);
  background: #fff;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-group select {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--navy);
  outline: none;
  cursor: pointer;
}

.results-count {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
}

/* Broker Cards */
.broker-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.broker-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.broker-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.broker-legal {
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 500;
}

.broker-grid {
  display: grid;
  grid-template-columns: 200px 1fr 270px;
  gap: 24px;
  align-items: start;
}

.broker-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.broker-gallery .thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}

.broker-gallery .thumb:first-child {
  grid-column: span 2;
  aspect-ratio: 4 / 3;
}

.broker-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.broker-gallery .thumb:hover img {
  transform: scale(1.04);
}

.broker-avatar-card {
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 65%, #065f46 100%);
  color: #fff;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border);
}

.broker-avatar-initials {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.22);
  border: 2px solid rgba(16, 185, 129, 0.6);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
  color: #fdba74;
  letter-spacing: 0.02em;
}

.broker-avatar-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
}

.table-avatar-badge {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--emerald) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.ad-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--emerald-soft);
  color: var(--emerald);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
  border: 1px solid #a7f3d0;
}

.broker-gallery .thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}

.broker-gallery .thumb:first-child {
  grid-column: span 2;
  aspect-ratio: 4 / 3;
}

.broker-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.broker-gallery .thumb:hover img {
  transform: scale(1.04);
}

.broker-name {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.broker-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.meta-pill {
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--text-muted);
}

.meta-pill.score {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.broker-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.6;
}

.broker-terms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.term-box span {
  display: block;
  font-size: 11.5px;
  color: var(--text-light);
  margin-bottom: 2px;
}

.term-box strong {
  font-size: 14px;
  color: var(--navy);
  font-weight: 700;
}

.broker-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--emerald);
  font-weight: 500;
}

.doc-link:hover {
  text-decoration: underline;
}

.broker-aside {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aside-row {
  font-size: 13px;
  color: var(--text-muted);
}

.aside-row strong {
  display: block;
  color: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.broker-cta {
  width: 100%;
  margin-top: 4px;
}

.show-more-wrap {
  text-align: center;
  margin-top: 24px;
}

/* Rating Table */
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-scroll {
  overflow-x: auto;
}

.rating-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.rating-table th {
  background: var(--surface-alt);
  padding: 14px 16px;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.rating-table th:hover {
  color: var(--emerald);
}

.rating-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.rating-table tr:last-child td {
  border-bottom: none;
}

.rating-table tr:hover td {
  background: #f8fafc;
}

.table-broker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--navy);
}

.table-broker img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.val-good {
  color: var(--emerald);
  font-weight: 700;
}

.val-bad {
  color: var(--danger);
  font-weight: 700;
}

/* Quiz Section */
.quiz-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.quiz-visual {
  text-align: center;
}

.quiz-visual img {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 14px;
  border-radius: var(--radius-md);
}

.quiz-progress {
  height: 6px;
  background: var(--surface-alt);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--emerald);
  transition: width 0.3s ease;
}

.quiz-step {
  display: none;
}

.quiz-step.active {
  display: block;
}

.quiz-step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 14px;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.quiz-option {
  position: relative;
}

.quiz-option input {
  position: absolute;
  opacity: 0;
}

.quiz-option label {
  display: block;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  transition: all var(--transition);
}

.quiz-option input:checked + label {
  border-color: var(--emerald);
  background: var(--emerald-soft);
  color: var(--emerald-hover);
  font-weight: 600;
}

.quiz-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--navy);
  outline: none;
  transition: border-color var(--transition), background var(--transition);
}

.form-control:focus {
  border-color: var(--emerald);
  background: #fff;
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-btn {
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--navy);
  cursor: pointer;
}

.faq-icon {
  font-size: 18px;
  color: var(--emerald);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-body {
  display: none;
  padding: 0 22px 18px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
}

.faq-item.open .faq-body {
  display: block;
}

/* Coupons Grid */
.coupons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.coupon-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

.coupon-percent {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: var(--emerald-soft);
  color: var(--emerald);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
}

.coupon-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
  line-height: 1.35;
}

.coupon-used {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}

/* Map */
.map-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

#map {
  width: 100%;
  height: 420px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-alt);
}

/* Ads Grid (Похожие объявления) */
.ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 18px;
}

.ad-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.ad-header {
  display: flex;
  gap: 14px;
  align-items: center;
}

.ad-thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.ad-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.ad-text {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ad-card.expanded .ad-text {
  -webkit-line-clamp: unset;
}

.ad-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--emerald);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.review-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.review-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}

.review-text {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.feedback-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.feedback-form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.star-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.star-picker label {
  cursor: pointer;
  font-size: 14px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.star-picker input {
  display: none;
}

.star-picker input:checked + span {
  color: var(--gold);
  font-weight: 700;
}

/* Recent Orders */
.orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.order-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--emerald);
}

.order-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  font-size: 13px;
}

.order-meta-item span {
  display: block;
  font-size: 11px;
  color: var(--text-light);
}

.order-meta-item strong {
  color: var(--navy);
  font-weight: 600;
}

.order-date {
  font-size: 12px;
  color: var(--text-light);
}

.order-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 14.5px;
}

.order-broker {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--emerald);
}

/* Application Page */
.zayavka-wrapper {
  max-width: 780px;
  margin: 36px auto 60px;
}

.zayavka-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.selected-offer-pill {
  background: var(--emerald-soft);
  border: 1px solid #a7f3d0;
  color: var(--emerald-hover);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 22px;
  display: none;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin: 18px 0;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: none;
}

.form-status.success {
  display: block;
  background: var(--emerald-soft);
  color: var(--emerald-hover);
  border: 1px solid #a7f3d0;
}

.form-status.error {
  display: block;
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #fecaca;
}

/* Subcategories Bar */
.subcat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.subcat-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.subcat-pill:hover,
.subcat-pill.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fff;
}

/* Credit Calculator */
.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  box-shadow: var(--shadow-md);
}

.calc-field {
  margin-bottom: 20px;
}

.calc-field-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.calc-field-top label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.calc-val-input {
  width: 140px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-align: right;
  color: var(--navy);
  background: var(--bg);
}

.calc-range {
  width: 100%;
  accent-color: var(--emerald);
  cursor: pointer;
}

.calc-bounds {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

.calc-result-box {
  background: linear-gradient(135deg, #111827 0%, #431407 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.calc-monthly-label {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 4px;
}

.calc-monthly-val {
  font-size: 34px;
  font-weight: 800;
  color: #fdba74;
  line-height: 1.1;
}

.calc-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.calc-breakdown span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
}

.calc-breakdown strong {
  font-size: 16px;
  color: #fff;
}

.calc-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  display: flex;
}

.calc-bar-principal {
  background: #ea580c;
  height: 100%;
  transition: width 0.25s ease;
}

.calc-bar-interest {
  background: #f59e0b;
  height: 100%;
  transition: width 0.25s ease;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
  margin: 18px 0 4px;
}

.breadcrumbs a:hover {
  color: var(--emerald);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #cbd5e1;
  padding: 44px 0 36px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 32px;
  align-items: start;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

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

.footer-disclaimer {
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
}

.footer-disclaimer a {
  color: #fdba74;
  text-decoration: underline;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .header-stats {
    display: none;
  }
  .hero-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .intro-card {
    grid-template-columns: 1fr;
  }
  .broker-grid {
    grid-template-columns: 160px 1fr;
  }
  .broker-aside {
    grid-column: span 2;
  }
  .quiz-card,
  .calc-card {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 20px;
    gap: 14px;
    align-items: flex-start;
  }
  .main-nav.open {
    display: flex;
  }
  .mobile-menu-btn {
    display: flex;
  }

  /* Show broker cards immediately on mobile, other intro blocks below */
  main.container {
    display: flex;
    flex-direction: column;
  }
  main.container > #rating {
    order: 1;
    margin-top: 16px;
  }
  main.container > .subcat-bar {
    order: 2;
  }
  main.container > .hero-section {
    order: 3;
    padding-top: 8px;
  }
  main.container > .disclaimer-banner {
    order: 4;
  }
  main.container > .intro-card {
    order: 5;
  }
  main.container > .section:not(#rating) {
    order: 6;
  }

  /* Fix filter & sort controls overflowing on mobile */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 10px;
  }
  .search-input-wrap {
    flex: none;
    width: 100%;
  }
  .filter-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .filter-group select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .broker-card,
  .calc-card,
  .quiz-card,
  .feedback-form-card {
    padding: 18px;
  }
  .star-picker {
    flex-wrap: wrap;
  }
  .broker-grid {
    grid-template-columns: 1fr;
  }
  .broker-aside {
    grid-column: auto;
  }
  .broker-terms,
  .quiz-options,
  .quiz-inputs,
  .feedback-form-grid,
  .form-grid-2,
  .coupons-grid,
  .ads-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .zayavka-card {
    padding: 22px;
  }
}
