/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-hover);
}

.btn--primary:active {
  background: var(--blue-pressed);
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
}

.btn--secondary:hover {
  background: var(--border);
}

.btn--outline {
  background: var(--white);
  color: var(--blue);
  border-color: var(--blue);
}

.btn--outline:hover {
  background: var(--blue-soft);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--surface);
}

.btn--disabled,
.btn:disabled {
  background: var(--blue-disabled);
  color: var(--white);
  cursor: not-allowed;
  pointer-events: none;
}

.btn--block {
  width: 100%;
}

.btn--sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.btn--lg {
  height: 52px;
  padding: 0 28px;
  font-size: 16px;
}

.btn-row {
  display: flex;
  gap: 10px;
}

.btn-row .btn {
  flex: 1;
}

/* ========== Fields ========== */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.field__hint {
  font-size: 12px;
  color: var(--ink-faint);
}

.field__error {
  font-size: 12px;
  color: var(--red);
}

.input {
  height: 48px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  outline: none;
}

.input::placeholder {
  color: var(--ink-faint);
  font-weight: 400;
}

.input:focus {
  border-color: var(--blue);
}

.input--error {
  border-color: var(--red);
}

.input-wrap {
  position: relative;
}

.input-wrap .input {
  padding-right: 40px;
}

.input-wrap__affix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  font-weight: 600;
  pointer-events: none;
}

/* range */
.range {
  width: 100%;
  accent-color: var(--blue);
  height: 4px;
}

.range-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.range-head__label {
  font-size: 13px;
  color: var(--ink-muted);
}

.range-head__value {
  font-size: 18px;
  font-weight: 700;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.chip:hover,
.chip.is-active {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

/* ========== Badges ========== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.badge--blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.badge--orange {
  background: #fff1e4;
  color: var(--orange);
}

.badge--red {
  background: #fde7ee;
  color: var(--red);
}

.badge--muted {
  background: var(--surface);
  color: var(--ink-muted);
}

.badge--outline {
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--ink-muted);
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--orange);
  font-size: 13px;
}

.stars__count {
  color: var(--ink);
  font-weight: 600;
}

.stars__meta {
  color: var(--ink-faint);
  font-weight: 400;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

/* ========== Cards ========== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.card--muted {
  background: var(--surface);
  border-color: transparent;
}

.card--pad {
  padding: 20px;
}

.offer {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.offer__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.offer__logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--blue);
  flex-shrink: 0;
}

.offer__name {
  font-size: 16px;
  font-weight: 700;
}

.offer__rate {
  font-size: 13px;
  color: var(--ink-muted);
}

.offer__right {
  margin-left: auto;
  text-align: right;
}

.offer__desc {
  font-size: 14px;
  color: var(--ink-muted);
}

.offer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.offer__k {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.offer__v {
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.partner-logo {
  height: 88px;
  display: grid;
  place-items: center;
  padding: 16px;
}

.partner-logo span {
  font-weight: 700;
  color: var(--ink-muted);
  font-size: 14px;
}

.partner-detail__head {
  background: var(--surface);
  padding: 12px 16px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.partner-detail__rows {
  padding: 8px 16px 16px;
}

.partner-detail__row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.partner-detail__row:last-child {
  border-bottom: 0;
}

.partner-detail__k {
  color: var(--ink-faint);
}

.partner-detail__v {
  color: var(--ink);
  word-break: break-word;
}

.benefit {
  padding: 24px;
}

.benefit__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}

.benefit__text {
  font-size: 14px;
  color: var(--ink-muted);
}

.review {
  padding: 20px;
}

.review__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.review__name {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}

.review__date {
  font-size: 12px;
  color: var(--ink-faint);
}

.review__text {
  font-size: 14px;
  color: var(--ink-muted);
  font-style: italic;
}

.stat {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.stat__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.stat__n {
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.1;
}

.stat__l {
  font-size: 13px;
  color: var(--ink-muted);
}

.tile {
  padding: 28px 16px;
  text-align: center;
}

.tile__icon {
  color: var(--blue);
  margin-bottom: 10px;
}

.tile__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========== Header / Footer ========== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: 8px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}

.logo:hover {
  text-decoration: none;
}

.logo span {
  color: var(--blue);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.nav a:hover,
.nav a.is-active {
  background: var(--blue-soft);
  color: var(--blue);
}

.hero {
  text-align: center;
  padding: 56px 0 48px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto 12px;
}

.hero p {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0 auto 24px;
}

.hero .btn {
  min-width: 200px;
}

.site-footer {
  background: var(--footer);
  color: var(--white);
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 32px 24px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer .logo {
  color: var(--white);
}

.site-footer h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--white);
}

.site-footer a,
.site-footer p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer a:hover {
  color: var(--white);
}

.legal {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.legal-meta {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* ========== Steps ========== */
.steps {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.step {
  padding: 0 24px;
  text-align: center;
}

.step + .step {
  border-left: 1px dashed var(--border);
}

.step__n {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin: 0 auto 12px;
}

.step__title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step__text {
  font-size: 14px;
  color: var(--ink-muted);
}

/* ========== Calculator ========== */
.calc {
  padding: 24px;
  max-width: 400px;
}

.calc__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 20px;
}

.calc .field,
.calc .range-block {
  margin-bottom: 18px;
}

.calc__result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}

.calc__result .card {
  padding: 12px;
}

.calc__result .offer__k {
  display: block;
}

/* ========== FAQ ========== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.faq-item__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.faq-item__icon {
  color: var(--blue);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  flex-shrink: 0;
}

.faq-item__a {
  display: none;
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin: 0 18px 16px;
}

.faq-item.is-open .faq-item__a {
  display: block;
}

/* ========== Disclaimer ========== */
.callout {
  background: var(--warning-bg);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--ink-muted);
}

.callout strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.callout ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.disclaimer-block {
  font-size: 12px;
  line-height: 1.65;
  color: var(--ink-muted);
}

/* ========== Section helpers ========== */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

.section-head h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.section-head p {
  font-size: 15px;
  color: var(--ink-muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .grid-3,
  .grid-2,
  .grid-6,
  .offer__grid,
  .steps__grid,
  .site-footer__grid,
  .calc__result {
    grid-template-columns: 1fr;
  }

  .step + .step {
    border-left: 0;
    border-top: 1px dashed var(--border);
    padding-top: 24px;
    margin-top: 24px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px 24px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 20;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 0;
  }

  .btn-row {
    flex-direction: column;
  }

  .hero {
    padding: 40px 0 36px;
  }

  .hero h1 {
    font-size: 28px;
  }
}
