/* ===================================================================
   Stronara — landing page mockup
   Palette & type tokens sampled from feesaver.com's real design system.
   Structure/composition inspired by tronxenergy.com.
   =================================================================== */

:root {
  /* --- surfaces (feesaver dark-scale) --- */
  --bg-primary: #0b0b0b;
  --bg-secondary: #161616;
  --bg-elevated: #1c1c1c;
  --stroke-primary: #232323;
  --stroke-secondary: #2e2e2e;

  /* --- text (feesaver dark/light-scale) --- */
  --text-primary: #f5f5f3;
  --text-secondary: #b6b6b6;
  --text-tertiary: #6d6d6d;

  /* --- accents (feesaver accent-default tokens) --- */
  --accent-lime: #bbff4a;
  --accent-lime-hover: #9fff00;
  --accent-lime-dim: #bbff4a1a;
  --accent-orange: #ff6d39;
  --accent-orange-dim: #ff6d391a;
  --accent-blue: #4b47ff;
  --accent-amber: #ffaf1a;
  --accent-red: #ff4343;
  --accent-green: #00aa42;

  /* --- type --- */
  --font-heading: 'Roboto Slab', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  /* --- radius scale --- */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --radius-full: 9999px;

  /* --- motion --- */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main { overflow-x: hidden; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
svg { display: block; }

.mono { font-family: var(--font-mono); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

.todo-flag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-amber);
  background: rgba(255, 175, 26, 0.12);
  border: 1px dashed rgba(255, 175, 26, 0.4);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  vertical-align: middle;
  margin-left: 0.35em;
}

/* subtle fixed grain to avoid flat dark voids */
.noise {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================== reveal-on-scroll ===================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================== buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  padding: 0.8rem 1.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--accent-lime);
  color: #0b1300;
}
.btn--primary:hover { background: var(--accent-lime-hover); }

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--stroke-secondary);
}
.btn--ghost:hover { border-color: var(--accent-lime); color: var(--accent-lime); }

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--stroke-secondary);
}
.btn--outline:hover { border-color: var(--text-primary); }

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.8rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 0.95rem; }
.btn--block { width: 100%; }

/* ===================== header ===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 11, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms var(--ease-out), background-color 300ms var(--ease-out);
}
.header.is-scrolled {
  border-bottom-color: var(--stroke-primary);
  background: rgba(11, 11, 11, 0.85);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
}
.logo__bolt { color: var(--accent-lime); flex-shrink: 0; }

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 900px) {
  .nav { display: flex; }
}
.nav__link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 200ms var(--ease-out);
  position: relative;
}
.nav__link:hover { color: var(--text-primary); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header__actions .btn--primary { display: none; }
@media (min-width: 640px) {
  .header__actions .btn--primary { display: inline-flex; }
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
@media (min-width: 900px) {
  .burger { display: none; }
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 250ms var(--ease-in-out), opacity 200ms var(--ease-out);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease-in-out);
  border-bottom: 1px solid transparent;
}
.mobile-nav.is-open {
  grid-template-rows: 1fr;
  border-bottom-color: var(--stroke-primary);
}
.mobile-nav__inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mobile-nav.is-open .mobile-nav__inner { padding-bottom: 1.25rem; }

.mobile-nav__link {
  padding: 0.9rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--stroke-primary);
}
.mobile-nav .btn { margin: 0.75rem 1.25rem 0; width: calc(100% - 2.5rem); }

/* ===================== section scaffolding ===================== */
section {
  padding: 5rem 0;
  position: relative;
}
@media (min-width: 900px) {
  section { padding: 7.5rem 0; }
}

.section-head {
  max-width: 640px;
  margin: 0 0 3rem;
}
.section-head .section-sub { margin-top: 0.9rem; }

.section-title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  line-height: 1.15;
}

.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ===================== hero ===================== */
.hero { padding-top: 3rem; }
@media (min-width: 900px) { .hero { padding-top: 4rem; } }

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 2rem; }
}

.hero__title {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
  line-height: 1.08;
  max-width: 15ch;
}

.hero__subtitle {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--stroke-primary);
}
.hero__stat-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
}
.hero__stat-value--todo { color: var(--text-tertiary); }
.hero__stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.hero__visual { display: flex; justify-content: center; }
.hero__svg { width: 100%; max-width: 420px; height: auto; }

.hero__orbit { transform-origin: 210px 190px; }
.hero__orbit--1 { animation: spin 34s linear infinite; }
.hero__orbit--2 { animation: spin 22s linear infinite reverse; }
.hero__orbit--3 { animation: spin 16s linear infinite; }
.hero__bolt { animation: pulse 3.2s var(--ease-in-out) infinite; transform-origin: 210px 190px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__orbit, .hero__bolt { animation: none; }
}

/* ===================== calculator ===================== */
.calc__panel {
  display: grid;
  gap: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--stroke-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 860px) {
  .calc__panel { grid-template-columns: 1fr 1fr; }
}

.calc__inputs {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-bottom: 1px solid var(--stroke-primary);
}
@media (min-width: 860px) {
  .calc__inputs { border-bottom: none; border-right: 1px solid var(--stroke-primary); }
}

.calc__field { border: none; padding: 0; margin: 0; }
.calc__label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.9rem;
  padding: 0;
}
legend.calc__label { width: 100%; }

.calc__range {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--stroke-secondary);
  outline: none;
}
.calc__range::-moz-range-track {
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--stroke-secondary);
}
.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-lime);
  cursor: pointer;
  border: 4px solid #0b0b0b;
  box-shadow: 0 0 0 1px var(--accent-lime);
  transition: transform 160ms var(--ease-out);
}
.calc__range::-webkit-slider-thumb:active { transform: scale(1.15); }
.calc__range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-lime);
  cursor: pointer;
  border: 4px solid #0b0b0b;
  box-shadow: 0 0 0 1px var(--accent-lime);
}

.calc__value {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-lime);
}

.calc__toggle {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.calc__toggle-btn {
  background: transparent;
  border: 1px solid var(--stroke-secondary);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
}
.calc__toggle-btn:active { transform: scale(0.97); }
.calc__toggle-btn.is-active {
  background: var(--accent-lime-dim);
  border-color: var(--accent-lime);
  color: var(--accent-lime);
}

.calc__output {
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  justify-content: center;
}
.calc__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--stroke-primary);
}
.calc__row:last-child { border-bottom: none; padding-bottom: 0; }
.calc__row span:last-child { font-size: 1rem; color: var(--text-primary); }
.calc__row--bad span:last-child { color: var(--accent-orange); }
.calc__row--result {
  margin-top: 0.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--stroke-secondary);
}
.calc__row--result span:first-child { color: var(--text-primary); font-weight: 600; }
.calc__row--result span:last-child { font-size: 1.4rem; color: var(--accent-lime); font-weight: 700; }

.calc__footnote {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  max-width: 70ch;
  line-height: 1.6;
}

/* ===================== compare ===================== */
.compare { background: var(--bg-secondary); }
.compare__grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .compare__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.compare__col {
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--stroke-primary);
}
.compare__col--bad { background: linear-gradient(180deg, rgba(255,109,57,0.06), transparent 40%); }
.compare__col--good { background: linear-gradient(180deg, rgba(187,255,74,0.07), transparent 40%); border-color: rgba(187,255,74,0.25); }

.compare__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}
.compare__tag--bad { color: var(--accent-orange); background: var(--accent-orange-dim); }
.compare__tag--good { color: var(--accent-lime); background: var(--accent-lime-dim); }

.compare__bar-wrap {
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  margin: 1.5rem 0 1.75rem;
  overflow: hidden;
}
.compare__bar {
  height: 100%;
  width: var(--bar-value);
  border-radius: var(--radius-full);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 900ms var(--ease-out);
}
.is-visible .compare__bar { transform: scaleX(1); }
.compare__bar--bad { background: var(--accent-orange); }
.compare__bar--good { background: var(--accent-lime); }

.compare__list { display: flex; flex-direction: column; gap: 0.9rem; }
.compare__list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.compare__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-tertiary);
}
.compare__col--bad .compare__list li::before { background: var(--accent-orange); }
.compare__col--good .compare__list li::before { background: var(--accent-lime); }

/* ===================== steps ===================== */
.steps__list {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}
@media (min-width: 700px) {
  .steps__list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .steps__list { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

.steps__item {
  padding: 1.75rem 1.5rem 2rem;
  border-top: 2px solid var(--stroke-primary);
  transition: border-color 300ms var(--ease-out);
}
.steps__item:hover { border-top-color: var(--accent-lime); }

.steps__num {
  display: block;
  font-size: 0.85rem;
  color: var(--accent-lime);
  margin-bottom: 1.5rem;
}
.steps__title {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}
.steps__text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================== pricing ===================== */
.pricing { background: var(--bg-secondary); }
.pricing__grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .pricing__grid { gap: 2rem; }
}

.plan {
  background: var(--bg-elevated);
  border: 1px solid var(--stroke-primary);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}
.plan--business {
  border-color: rgba(75, 71, 255, 0.35);
  background: linear-gradient(160deg, rgba(75,71,255,0.08), var(--bg-elevated) 55%);
}

.plan__name { font-size: 1.35rem; margin-bottom: 0.6rem; }
.plan__desc { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.55; }

.plan__price {
  margin: 2rem 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--stroke-primary);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.plan__price-value { font-size: 1.9rem; font-weight: 600; color: var(--text-primary); }
.plan__price-unit { font-size: 0.82rem; color: var(--text-tertiary); }

.plan__features {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2.25rem;
  flex-grow: 1;
}
.plan__features li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.plan__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-lime);
}
.plan--business .plan__features li::before { background: var(--accent-blue); }

/* ===================== trust ===================== */
.trust__grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--stroke-primary);
}
@media (min-width: 800px) {
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
}

.trust__item {
  padding: 2rem 1.75rem;
  border-bottom: 1px solid var(--stroke-primary);
}
@media (min-width: 800px) {
  .trust__item { border-right: 1px solid var(--stroke-primary); }
  .trust__item:last-child { border-right: none; }
}

.trust__icon { color: var(--accent-lime); margin-bottom: 1.25rem; }
.trust__title { font-size: 1.05rem; margin-bottom: 0.6rem; }
.trust__text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* ===================== faq ===================== */
.faq__list { border-top: 1px solid var(--stroke-primary); }

.faq__item {
  border-bottom: 1px solid var(--stroke-primary);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }

.faq__chevron {
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: transform 250ms var(--ease-in-out);
}
.faq__item[open] .faq__chevron { transform: rotate(180deg); color: var(--accent-lime); }

.faq__a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ease-in-out);
}
.faq__item[open] .faq__a-wrap { grid-template-rows: 1fr; }
.faq__a {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  padding-bottom: 1.5rem;
  max-width: 68ch;
}

/* ===================== footer ===================== */
.footer {
  border-top: 1px solid var(--stroke-primary);
  padding: 4rem 0 2rem;
}

.footer__inner {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
@media (min-width: 700px) {
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer__tagline {
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--text-tertiary);
  max-width: 32ch;
}

.footer__col { display: flex; flex-direction: column; gap: 0.85rem; }
.footer__heading {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.4rem;
}
.footer__link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 200ms var(--ease-out);
}
.footer__link:hover { color: var(--text-primary); }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--stroke-primary);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}
@media (min-width: 700px) {
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ===================== badges ===================== */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 4px;
  padding: 0.1em 0.4em;
  vertical-align: middle;
  margin-left: 0.35em;
}
.badge--soon {
  color: var(--accent-blue);
  background: rgba(75, 71, 255, 0.12);
  border: 1px dashed rgba(75, 71, 255, 0.4);
}

/* ===================== pricing: 3rd column + recommended plan ===================== */
@media (min-width: 1100px) {
  .pricing__grid { grid-template-columns: repeat(3, 1fr); }
}

.plan--recommended {
  position: relative;
  border-color: rgba(187, 255, 74, 0.35);
  background: linear-gradient(160deg, rgba(187,255,74,0.08), var(--bg-elevated) 55%);
}
.plan__badge {
  position: absolute;
  top: -0.7rem;
  right: 2rem;
  background: var(--accent-lime);
  color: #0b1300;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
}

/* ===================== referral ===================== */
.referral { background: var(--bg-secondary); }
@media (min-width: 700px) {
  .referral__list.steps__list { grid-template-columns: repeat(3, 1fr); }
}

/* ===================== blog listing ===================== */
.blog-hero { padding-bottom: 0; }
.blog__grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .blog__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .blog__grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.blog__card {
  background: var(--bg-elevated);
  border: 1px solid var(--stroke-primary);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 200ms var(--ease-out);
}
.blog__card:hover { border-color: var(--accent-lime); }
.blog__tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-lime);
  background: var(--accent-lime-dim);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}
.blog__title { font-size: 1.15rem; }
.blog__excerpt { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.blog__meta { display: flex; gap: 0.75rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-tertiary); }

/* ===================== article page ===================== */
.breadcrumbs { font-size: 0.8rem; color: var(--text-tertiary); margin-bottom: 2rem; }
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--accent-lime); }

.article { max-width: 72ch; margin: 0 auto; }
.article__meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-tertiary); margin-bottom: 1rem; }
.article__title { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); line-height: 1.15; margin-bottom: 1rem; }
.article__lead { font-size: 1.05rem; color: var(--text-secondary); }
.article__body h2 { font-family: var(--font-heading); font-size: 1.4rem; margin: 2.5rem 0 1rem; }
.article__body h3 { font-family: var(--font-heading); font-size: 1.15rem; margin: 2rem 0 0.75rem; }
.article__body p { color: var(--text-secondary); line-height: 1.75; margin-bottom: 1.25rem; }
.article__body ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 1.25rem; }
.article__body li { color: var(--text-secondary); line-height: 1.7; margin-bottom: 0.5rem; }
.article__callout {
  background: var(--bg-secondary);
  border: 1px solid var(--stroke-primary);
  border-left: 3px solid var(--accent-lime);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.article__callout a { color: var(--accent-lime); }
.article__related { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--stroke-primary); }
.article__related h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.article__related ul { display: flex; flex-direction: column; gap: 0.6rem; }
.article__related a { color: var(--text-secondary); }
.article__related a:hover { color: var(--accent-lime); }

/* --- чекер адреса в калькуляторе --- */
.calc__addr-wrap {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.calc__addr-input {
  flex: 1 1 220px;
  background: transparent;
  border: 1px solid var(--stroke-secondary);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  transition: border-color 200ms var(--ease-out);
}
.calc__addr-input:focus {
  outline: none;
  border-color: var(--accent-lime);
}
.calc__addr-note {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  min-height: 1.2em;
}
.calc__addr-note.is-ok { color: var(--accent-lime); }
.calc__addr-note.is-err { color: #ff6b6b; }
