/* ФинГид — Custom Styles */
:root {
  --primary:   #1e3a5f;
  --accent:    #2563eb;
  --accent2:   #10b981;
  --card-bg:   #ffffff;
  --bg:        #f0f4f8;
  --border:    #d1dce8;
  --text:      #1e293b;
  --muted:     #64748b;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ─── Navbar ─── */
.site-navbar {
  background: var(--primary) !important;
  border-bottom: 3px solid var(--accent);
  padding: 10px 0;
}
.site-navbar .navbar-brand {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff !important;
  letter-spacing: -1px;
}
.site-navbar .navbar-brand span { color: #60a5fa; }
.site-navbar .nav-link {
  color: #cbd5e1 !important;
  font-weight: 500;
  transition: color .15s;
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active { color: #60a5fa !important; }

/* ─── Hero ─── */
.hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 60%, #0f172a 100%);
  color: #fff;
  padding: 56px 0 48px;
}
.hero h1 { font-size: 2.2rem; font-weight: 800; }
.hero p  { font-size: 1.1rem; color: #bfdbfe; max-width: 600px; }
.hero-btns .btn-hero {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: all .2s;
  margin: 4px;
}
.btn-hero-primary { background: var(--accent); color: #fff; }
.btn-hero-primary:hover { background: #1d4ed8; color: #fff; }
.btn-hero-outline { border: 2px solid #60a5fa; color: #60a5fa; }
.btn-hero-outline:hover { background: #60a5fa; color: #1e3a5f; }

/* ─── Stats row ─── */
.stats-row {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.stat-item { text-align: center; }
.stat-item .val { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.stat-item .lbl { font-size: .78rem; color: var(--muted); }

/* ─── Section headings ─── */
.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.section-sub {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.btn-see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: 1.5px solid var(--accent);
  border-radius: 20px;
  padding: 5px 16px;
  transition: all .2s;
}
.btn-see-all:hover { background: var(--accent); color: #fff; }

/* ─── Calculator ─── */
.calc-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(30,58,95,.08);
  padding: 32px;
  margin-bottom: 12px;
}
.calc-section h2 { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.calc-section p { font-size: .88rem; color: var(--muted); }
.calc-label {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.calc-label span { font-weight: 700; color: var(--primary); font-size: .95rem; }
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: #dbeafe;
  outline: none;
  margin: 6px 0 14px;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(37,99,235,.4);
}
.calc-result {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 16px;
}
.calc-result .row > div {
  text-align: center;
  padding: 10px;
}
.calc-result .r-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}
.calc-result .r-lbl { font-size: .75rem; color: var(--muted); }
.btn-calc-action {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 16px;
  text-align: center;
  text-decoration: none;
  transition: background .2s;
}
.btn-calc-action:hover { background: #1d4ed8; color: #fff; }

/* ─── Offer cards ─── */
.offer-card {
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  padding: 22px 20px 18px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.offer-card:hover {
  box-shadow: 0 8px 32px rgba(37,99,235,.12);
  border-color: var(--accent);
}
.offer-logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 12px;
  flex-shrink: 0;
}
.offer-logo-img {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.offer-logo-img img {
  max-height: 48px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
}
.offer-name { font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.offer-org  { font-size: .78rem; color: var(--muted); margin-bottom: 10px; }
.offer-features { flex: 1; }
.offer-feature {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: .82rem;
  color: var(--text);
  margin-bottom: 5px;
}
.offer-feature .ico { color: var(--accent2); font-size: .9rem; flex-shrink: 0; }
.offer-highlight {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--accent);
  margin: 10px 0 4px;
  line-height: 1;
}
.offer-highlight small { font-size: .7rem; font-weight: 500; color: var(--muted); }
.badge-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  margin-right: 4px;
  margin-bottom: 4px;
}
.tag-green { background: #d1fae5; color: #065f46; }
.tag-blue  { background: #dbeafe; color: #1e40af; }
.tag-orange{ background: #fef3c7; color: #92400e; }
.tag-purple{ background: #ede9fe; color: #4c1d95; }
.btn-offer {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff !important;
  border-radius: 8px;
  padding: 9px 0;
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  margin-top: 14px;
  transition: background .2s;
}
.btn-offer:hover { background: #1d4ed8; }
.card-badge-top {
  position: absolute;
  top: 14px; right: 14px;
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}
.badge-top-green { background: #10b981; color: #fff; }
.badge-top-blue  { background: #2563eb; color: #fff; }
.badge-top-red   { background: #ef4444; color: #fff; }

/* ─── Category page header ─── */
.cat-header {
  background: linear-gradient(135deg, #1e3a5f 0%, #1e40af 100%);
  color: #fff;
  padding: 36px 0 28px;
}
.cat-header h1 { font-size: 1.8rem; font-weight: 800; }
.cat-header p  { color: #bfdbfe; font-size: .95rem; }

/* ─── Filter bar ─── */
.filter-bar { background: #fff; border-radius: 10px; padding: 14px 20px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.filter-bar .form-select { border-radius: 8px; border-color: var(--border); font-size: .85rem; }

/* ─── FAQ ─── */
.faq-section { background: #fff; }
.accordion-button {
  font-weight: 600;
  color: var(--primary);
  background: #fff;
}
.accordion-button:not(.collapsed) {
  color: var(--accent);
  background: #eff6ff;
  box-shadow: none;
}
.accordion-button::after {
  filter: none;
}
.accordion-item { border-color: var(--border); }
.accordion-body { font-size: .9rem; color: var(--muted); }

/* ─── Ad banners ─── */
.ad-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}
.ad-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8eef5;
  border: 1px dashed #b0c0d0;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.ad-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ad-leaderboard { width: 728px; height: 90px; max-width: 100%; }
.ad-rectangle   { width: 300px; height: 250px; }
.ad-halfpage    { width: 300px; height: 600px; }
.ad-label {
  position: absolute;
  top: 2px; left: 6px;
  font-size: 9px;
  color: #94a3b8;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ─── Footer ─── */
footer {
  background: var(--primary);
  color: #94a3b8;
  padding: 28px 0 20px;
  font-size: .85rem;
}
footer a { color: #93c5fd; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .footer-logo { font-size: 1.3rem; font-weight: 800; color: #fff; }
footer .footer-logo span { color: #60a5fa; }
footer .footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin: 10px 0; }

/* ─── Utilities ─── */
.section-divider { border-color: var(--border); margin: 0; }
.text-accent { color: var(--accent); }
.bg-accent   { background: var(--accent); }

@media (max-width: 768px) {
  .hero h1 { font-size: 1.5rem; }
  .calc-section { padding: 20px 16px; }
  .offer-card { padding: 16px 14px; }
}
