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

:root {
  --green: #00C37A;
  --green-dark: #00A366;
  --green-light: #E6FBF3;
  --text: #0D1117;
  --text-secondary: #5A6475;
  --border: #E8ECF2;
  --bg: #F5F7FA;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 2px 16px rgba(0,0,0,0.07);
}

body {
  font-family: 'Onest', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-dark); }

header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg { width: 20px; height: 20px; }
.logo-text { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.logo-text span { color: var(--green); }
.header-nav { display: flex; gap: 18px; align-items: center; }
.header-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}
.header-nav a:hover { color: var(--green-dark); }
@media(max-width:680px){ .header-nav { display: none; } }
.header-badge {
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #B3F0D8;
  white-space: nowrap;
}

.breadcrumbs {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px 0;
  font-size: 12px;
  color: var(--text-secondary);
}
.breadcrumbs a { color: var(--text-secondary); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green-dark); }
.breadcrumbs span { margin: 0 6px; }

.hero {
  background: linear-gradient(135deg, #0D1117 0%, #1A2333 100%);
  padding: 52px 20px 48px;
  position: relative;
  overflow: hidden;
}
.hero.compact { padding: 36px 20px 32px; }
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,195,122,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,195,122,0.15);
  border: 1px solid rgba(0,195,122,0.3);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-tag::before { content: '●'; font-size: 8px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  max-width: 620px;
  margin-bottom: 32px;
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.stat-pill {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
}
.stat-pill strong { color: var(--green); font-weight: 700; }

.calc-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 0;
}
.calc-card {
  background: var(--white);
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.calc-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}
@media(max-width:680px){ .calc-row { grid-template-columns: 1fr; } }
.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}
.field-label span { color: var(--green); font-weight: 700; font-size: 15px; }
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--green) var(--pct,50%), var(--border) var(--pct,50%));
  outline: none;
  cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--green);
  box-shadow: 0 2px 8px rgba(0,195,122,0.3);
  cursor: pointer;
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 5px;
}
.btn-calc {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
  height: 48px;
}
.btn-calc:hover { background: var(--green-dark); }
.btn-calc:active { transform: scale(0.98); }

.calc-result {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--green-light);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text);
}
.calc-result strong { color: var(--green-dark); }

.main-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-title { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.count-badge {
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-btn {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 7px 16px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-btn:hover { border-color: var(--green); color: var(--green); }
.filter-btn.active { background: var(--green); border-color: var(--green); color: #fff; }

.offers-list { display: flex; flex-direction: column; gap: 12px; }
.offer-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 20px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.offer-card:hover {
  border-color: var(--green);
  box-shadow: 0 4px 20px rgba(0,195,122,0.12);
}
.offer-card.featured {
  border-color: var(--green);
  position: relative;
  overflow: visible;
}
.offer-card.featured::before {
  content: '🔥 Топ предложение';
  position: absolute;
  top: -11px; left: 20px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.offer-card.hidden { display: none; }

@media(max-width:680px){
  .offer-card {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
  }
  .offer-action { grid-column: 1/-1; }
}

.offer-logo {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.offer-logo-text { font-size: 16px; font-weight: 800; letter-spacing: -0.5px; }
.offer-logo-img { max-width: 120px; max-height: 40px; width: auto; height: auto; display: block; }
.mfo-summary .offer-logo-img { max-height: 48px; max-width: 140px; }

.offer-info { display: flex; flex-direction: column; gap: 10px; }
.offer-name { font-size: 16px; font-weight: 700; }
.offer-name a { color: inherit; text-decoration: none; }
.offer-name a:hover { color: var(--green-dark); }
.offer-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px; }
.tag-green { background: var(--green-light); color: var(--green-dark); border: 1px solid #B3F0D8; }
.tag-gray { background: #F0F2F5; color: #666; }
.tag-yellow { background: #FFF8E6; color: #996A00; border: 1px solid #FFE4A0; }

.offer-params { display: flex; gap: 20px; flex-wrap: wrap; }
.param { display: flex; flex-direction: column; gap: 2px; }
.param-val { font-size: 18px; font-weight: 700; color: var(--text); }
.param-val.green { color: var(--green); }
.param-label { font-size: 11px; color: var(--text-secondary); font-weight: 500; }

.offer-action { text-align: right; }

.btn-get {
  display: inline-block;
  background: var(--green);
  color: #fff;
  border-radius: 10px;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn-get:hover { background: var(--green-dark); }
.btn-get:active { transform: scale(0.97); }

.offer-approval {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 8px;
  justify-content: flex-end;
}
.approval-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }

.offer-disclaimer {
  font-size: 10px;
  color: var(--text-secondary);
  text-align: right;
  margin-top: 4px;
  opacity: 0.75;
}

.content-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-top: 16px;
  border: 1px solid var(--border);
}
@media(max-width:680px){ .content-section { padding: 22px 20px; } }
.content-section h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}
.content-section h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 8px;
}
.content-section p {
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 12px;
  font-size: 15px;
}
.content-section ul, .content-section ol { margin: 8px 0 14px 20px; }
.content-section li {
  margin-bottom: 6px;
  line-height: 1.6;
}
.content-section .lead {
  font-size: 16px;
  color: var(--text);
}
.callout {
  background: var(--green-light);
  border-left: 3px solid var(--green);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 14px 0;
  font-size: 14px;
}
.callout-warn {
  background: #FFF8E6;
  border-left: 3px solid #E6B800;
}
.callout-warn-strong {
  background: #FFEBE6;
  border-left: 3px solid #E63100;
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}
.calc-table th, .calc-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.calc-table th {
  background: var(--bg);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
}
.calc-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 680px) {
  .calc-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    font-size: 13px;
  }
  .calc-table th, .calc-table td {
    padding: 8px 10px;
    white-space: nowrap;
  }
  .btn-get { width: 100%; text-align: center; }
  .offer-disclaimer, .offer-approval { text-align: center; justify-content: center; }
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 0;
  font-size: 22px;
  color: var(--green);
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.related-card {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.related-card:hover { background: var(--green-light); }
.related-card span { font-size: 12px; color: var(--text-secondary); font-weight: 400; }

.mfo-summary {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 18px;
}
.mfo-summary .offer-logo { height: 56px; }
.mfo-summary .offer-logo-text { font-size: 18px; }
.mfo-summary .offer-tags { margin-top: 6px; }
.mfo-summary .btn-get { margin-top: 12px; }

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin: 14px 0 6px;
}
.spec {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px 16px;
}
.spec-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.4px;
  font-weight: 600;
  margin-bottom: 4px;
}
.spec-val { font-size: 18px; font-weight: 700; }
.spec-val.green { color: var(--green); }

footer {
  background: #0D1117;
  color: rgba(255,255,255,0.5);
  padding: 32px 20px;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}
footer a { color: rgba(255,255,255,0.5); text-decoration: underline; }
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-disclaimer { max-width: 820px; margin: 0 auto; font-size: 11px; opacity: 0.7; }
