:root {
  --text: #1f2233;
  --slate: #4a4e69;
  --muted: #7a7e99;
  --section: #f8f8fb;
  --lavender: #f6f7fd;
  --cta: #306bea;          
  --cta-hover: #2e54b6;    
  --category-btn: #206280;
  --footer-bg: #1d408c;
  --footer-bg-2: #16326e;
  --footer-link: #b7b8c3;
  --campaign: #e1311b;
  --line: #e3e4ec;
  --line-soft: #edf3fb;
  --card: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(29, 34, 63, 0.05), 0 2px 8px rgba(29, 34, 63, 0.05);
  --shadow-md: 0 2px 4px rgba(29, 34, 63, 0.05), 0 10px 24px rgba(29, 34, 63, 0.08);
  --shadow-lg: 0 4px 8px rgba(29, 34, 63, 0.06), 0 18px 40px rgba(29, 34, 63, 0.12);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  background: #ffffff;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: var(--category-btn); }
::selection { background: rgba(48, 107, 234, 0.2); }
:focus-visible { outline: 3px solid rgba(32, 98, 128, 0.45); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; color: var(--text); }

.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 12px rgba(29, 34, 63, 0.05);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.25rem;
  max-width: 1170px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.logo img { height: 44px; width: auto; display: block; }
.site-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--slate);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover { background: var(--line-soft); color: var(--category-btn); }
.site-nav a.active {
  color: #fff;
  background: var(--category-btn);
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--lavender) 0%, #fdfdff 100%);
  color: var(--text);
  padding: 4rem 1rem 4.2rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}
.hero::before {
  width: 480px; height: 480px;
  left: -140px; top: -220px;
  background: rgba(244, 100, 111, 0.16);
}
.hero::after {
  width: 560px; height: 560px;
  right: -180px; bottom: -300px;
  background: rgba(32, 98, 128, 0.14);
}
.hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.1;
  margin: 0 0 0.8rem;
  letter-spacing: -0.03em;
}
.hero p.tagline {
  position: relative;
  z-index: 1;
  font-size: 1.15rem;
  color: var(--slate);
  margin: 0 auto 1.9rem;
  max-width: 44rem;
}
.hero .cta-main {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.95rem 2.6rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(48, 107, 234, 0.25);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.hero .cta-main::after { content: "↓"; font-size: 1em; transition: transform 0.15s; }
.hero .cta-main:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(48, 107, 234, 0.3);
}
.hero .cta-main:hover::after { transform: translateY(2px); }

.hero-small { padding: 2.6rem 1rem 2.8rem; }
.hero-small h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); max-width: 52rem; margin-left: auto; margin-right: auto; }
.post-meta {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--category-btn);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  margin: 0 0 1rem;
}
.article-layout.post-layout { margin-top: 0.5rem; padding-top: 0; border-top: 0; }
.post-image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  margin: 0 0 1.4rem;
  display: block;
}
.post-cta {
  background: var(--lavender);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.3rem 1.5rem;
  margin: 2rem 0 0.5rem;
  max-width: 46rem;
}
.post-cta p { margin: 0 0 0.9rem; font-weight: 600; color: var(--text); }
.post-cta .lf-cta { font-size: 1rem; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.3rem;
  margin-top: 1.6rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cdd6e6; }
.blog-card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--lavender);
}
.blog-card-image-placeholder {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--lavender) 0%, var(--line-soft) 100%);
}
.blog-card-body { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.blog-card h3 { margin: 0; font-size: 1.05rem; line-height: 1.35; font-weight: 700; letter-spacing: -0.01em; }
.blog-card p { margin: 0; font-size: 0.88rem; color: var(--slate); line-height: 1.55; }
.blog-card .blog-card-more {
  margin-top: auto;
  padding-top: 0.6rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--category-btn);
}

main.wrap, .content {
  max-width: 1170px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 3.5rem;
}
.content h2 { font-size: 1.75rem; line-height: 1.2; margin-top: 2.6rem; }
.content h2:first-child, .content h2#vertailu { margin-top: 0.5rem; }
.content h3 { font-size: 1.25rem; line-height: 1.4; font-weight: 700; }
.lead { font-size: 1.08rem; color: var(--slate); max-width: 46rem; }

.compare-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
  margin-top: 1.4rem;
}
.lf-side {
  order: 1;
  position: sticky;
  top: 82px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.15rem 1.2rem 1.35rem;
}
.lf-main { order: 2; min-width: 0; }
.lf-side h2 {
  font-size: 1.02rem;
  margin: 0 0 0.35rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.lf-side h2::before { content: "⚙"; font-size: 0.95rem; color: var(--category-btn); }
.lf-group { margin-top: 1.1rem; }
.lf-group-title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--category-btn);
  margin: 0 0 0.35rem;
}
.lf-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 0.3rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.12s;
}
.lf-option:hover { background: var(--line-soft); }
.lf-option input { accent-color: var(--category-btn); width: 1.05rem; height: 1.05rem; margin: 0; flex: 0 0 auto; }
.lf-option .lf-option-count {
  margin-left: auto;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--section);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 0.5rem;
  line-height: 1.5;
}
.lf-slider { padding: 0.15rem 0.1rem 0; }
.lf-slider-value {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--category-btn);
}
.lf-slider input[type="range"] {
  width: 100%;
  margin: 0;
  accent-color: var(--category-btn);
  cursor: pointer;
}
.lf-slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.15rem;
}
.lf-reset {
  margin-top: 1.25rem;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--slate);
  font-family: var(--font);
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.lf-reset:hover { background: var(--line-soft); border-color: var(--category-btn); color: var(--category-btn); }

.lf-count {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate);
  background: var(--lavender);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  margin: 0 0 1rem;
}

.lf-list { display: flex; flex-direction: column; gap: 1rem; }
.lf-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.4rem;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 205px;
  gap: 0.9rem 1.4rem;
  align-items: center;
  min-height: 108px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.lf-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cdd6e6;
}
.lf-card-best {
  border: 2px solid var(--category-btn);
  box-shadow: 0 8px 26px rgba(32, 98, 128, 0.16);
  background: linear-gradient(180deg, #fdfeff 0%, #ffffff 100%);
}
.lf-card-best:hover { box-shadow: 0 12px 32px rgba(32, 98, 128, 0.2); }
.lf-ribbon {
  position: absolute;
  top: -0.85rem;
  left: 1.1rem;
  background: linear-gradient(90deg, var(--category-btn) 0%, #2b7a9e 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.24rem 0.85rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 10px rgba(32, 98, 128, 0.3);
}
.lf-ribbon::before { content: "★ "; }
.lf-card-head { display: flex; align-items: center; gap: 0.85rem; }
.lf-badge {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: var(--slate);
  font-size: 1rem;
  letter-spacing: 0.02em;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12), 0 2px 6px rgba(29, 34, 63, 0.15);
}
.lf-badge-dna { background: #e6007e; }
.lf-badge-elisa { background: #003580; }
.lf-badge-telia { background: #990ae3; }
.lf-badge-moi-mobiili { background: #00b1aa; }
.lf-badge-oomi-mobiili { background: #6cb52d; }
.lf-badge-valoo { background: #f5a300; }
.lf-badge-img {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 0.28rem;
  overflow: hidden;
}
.lf-badge-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.lf-card-name { margin: 0; font-size: 1.08rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.lf-card-op { margin: 0; font-size: 0.84rem; font-weight: 500; color: var(--muted); }
.lf-specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0;
}
.lf-spec {
  display: flex;
  flex-direction: column;
  padding: 0 1.2rem;
  border-left: 1px solid var(--line);
}
.lf-spec:first-child { border-left: 0; padding-left: 0; }
.lf-spec-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.lf-spec-value { font-size: 0.97rem; font-weight: 700; }
.lf-card-foot { display: flex; flex-direction: column; align-items: flex-end; gap: 0.55rem; justify-self: end; }
.lf-actions { display: flex; align-items: center; gap: 0.5rem; }
.lf-more {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--category-btn);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.lf-more:hover { background: var(--line-soft); border-color: var(--category-btn); }
.lf-price { text-align: right; display: flex; flex-direction: column; }
.lf-price-now { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text); white-space: nowrap; line-height: 1.2; }
.lf-price-campaign { color: var(--campaign); }
.lf-price-was { font-size: 0.8rem; color: var(--muted); text-decoration: line-through; }
.lf-unverified { font-size: 0.72rem; color: var(--campaign); font-weight: 700; }
.lf-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  padding: 0.65rem 1.7rem;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(48, 107, 234, 0.22);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.lf-cta::after { content: "→"; transition: transform 0.15s; }
.lf-cta:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(48, 107, 234, 0.28);
}
.lf-cta:hover::after { transform: translateX(3px); }
.lf-cta-big { font-size: 1.05rem; padding: 0.8rem 2.1rem; }

body.lf-modal-open { overflow: hidden; }
.lf-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(23, 28, 52, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  animation: lf-fade 0.15s ease-out;
}
.lf-modal {
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: lf-pop 0.18s ease-out;
}
@keyframes lf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lf-pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.lf-modal-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.3rem 1.5rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--lavender);
}
.lf-modal-head .lf-badge { width: 3.2rem; height: 3.2rem; }
.lf-modal-titles { min-width: 0; }
.lf-modal-name { margin: 0; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.01em; }
.lf-modal-op { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.lf-modal-close {
  margin-left: auto;
  flex: 0 0 auto;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--slate);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lf-modal-close:hover { background: var(--line-soft); color: var(--category-btn); border-color: var(--category-btn); }
.lf-modal-body { padding: 1.2rem 1.5rem; overflow-y: auto; }
.lf-modal-rows { margin: 0; }
.lf-modal-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.lf-modal-row:last-child { border-bottom: 0; }
.lf-modal-row dt { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.lf-modal-row dd { margin: 0; font-size: 0.95rem; font-weight: 700; text-align: right; }
.lf-modal-notes {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: var(--slate);
  background: var(--lavender);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}
.lf-modal-warning {
  margin: 0.8rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--campaign);
}
.lf-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.lf-modal-foot .lf-price { text-align: left; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.6rem 2.6rem;
  align-items: start;
  margin-top: 3rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}
.article-body { min-width: 0; }
.article-body > h2:first-child { margin-top: 0; }
.article-body p, .article-body li { max-width: 46rem; }
.article-body li { margin: 0.35rem 0; }
.article-body li::marker { color: var(--cta); }
.toc {
  position: sticky;
  top: 82px;
  background: var(--lavender);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.3rem 1.2rem;
}
.toc-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--category-btn);
  margin: 0 0 0.6rem;
}
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc ol ol { padding-left: 1rem; margin-top: 0.15rem; }
.toc li { font-size: 0.92rem; margin: 0.35rem 0; }
.toc li::marker { color: var(--muted); font-weight: 600; font-size: 0.85em; }
.toc a { color: var(--slate); font-weight: 500; text-decoration: none; transition: color 0.12s; }
.toc a:hover { color: var(--category-btn); text-decoration: underline; }

details.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 0.95rem 1.2rem;
  margin: 0.65rem 0;
  max-width: 46rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}
details.faq:hover { border-color: #cdd6e6; }
details.faq[open] { box-shadow: var(--shadow-md); }
details.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--line-soft);
  color: var(--category-btn);
  font-weight: 700;
  transition: transform 0.15s;
}
details.faq[open] summary { margin-bottom: 0.5rem; }
details.faq[open] summary::after { content: "–"; transform: rotate(180deg); }
details.faq p { margin-top: 0; }

.site-footer {
  background: linear-gradient(180deg, var(--footer-bg) 0%, var(--footer-bg-2) 100%);
  color: var(--footer-link);
  margin-top: 4rem;
  padding: 3.2rem 1.25rem 2.4rem;
  font-size: 0.88rem;
}
.site-footer .wrap { max-width: 1170px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 2.2rem;
}
.footer-brand .logo img { height: 38px; }
.footer-brand p {
  margin: 1rem 0 0;
  max-width: 24rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}
.footer-brand .footer-note {
  font-size: 0.82rem;
  color: var(--footer-link);
  border-left: 3px solid rgba(255, 255, 255, 0.25);
  padding-left: 0.85rem;
}
.footer-title {
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
}
.footer-col a {
  display: block;
  color: var(--footer-link);
  text-decoration: none;
  font-weight: 500;
  padding: 0.22rem 0;
  transition: color 0.15s, transform 0.15s;
}
.footer-col a:hover { color: #fff; transform: translateX(2px); }
.aff-disclosure {
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.3rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  line-height: 1.6;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.lf-filters-toggle { display: none; }

@media (max-width: 860px) {
  .compare-layout, .article-layout { grid-template-columns: 1fr; }
  .lf-filters-toggle {
    order: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    color: var(--category-btn);
    font-family: var(--font);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.1rem;
    cursor: pointer;
  }
  .lf-filters-toggle::before { content: "⚙"; }
  .lf-filters-toggle::after { content: "▾"; margin-left: auto; transition: transform 0.15s; }
  .lf-filters-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
  .lf-side { display: none; order: 1; position: static; }
  .lf-side.lf-side-open { display: block; }
  .lf-main { order: 2; }
  .toc { position: static; }
  .hero { padding: 3rem 1rem 3.4rem; }
}
@media (max-width: 980px) {
  .lf-card { grid-template-columns: 1fr; padding: 1.1rem 1.15rem; min-height: 0; }
  .lf-card-foot {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    justify-self: stretch;
    flex-wrap: wrap;
  }
  .lf-price { text-align: left; }
  .lf-spec { padding: 0 0.9rem; }
}
@media (max-width: 480px) {
  .lf-modal-foot { flex-direction: column; align-items: stretch; text-align: center; }
  .lf-modal-foot .lf-cta { justify-content: center; }
}

.howto-section { margin: 0 0 2.6rem; }
.howto-section > h2 { margin-bottom: 1.2rem; }
.howto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  padding-top: 12px; 
}
.howto-step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.25rem 1.35rem;
}
.howto-num {
  position: absolute;
  top: -13px;
  left: 1.1rem;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.howto-pic {
  background: var(--lavender);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  margin: 0.35rem 0 1rem;
  overflow: hidden;
}
.howto-pic svg { display: block; width: 100%; height: auto; }
.howto-pic svg text { font-family: var(--font); }
.howto-step h3 { margin: 0 0 0.4rem; font-size: 1.03rem; }
.howto-step p { margin: 0; color: var(--slate); font-size: 0.93rem; line-height: 1.55; }
.howto-toggle { display: none; }
@media (max-width: 860px) {
  
  .howto-section { margin-bottom: 1.8rem; }
  .howto-title { display: none; }
  .howto-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--card);
    color: var(--cta);
    border: 1.5px solid var(--cta);
    border-radius: 999px;
    padding: 0.55rem 1.1rem;
    font: 600 0.95rem var(--font);
    cursor: pointer;
  }
  .howto-toggle:hover { background: var(--line-soft); }
  .howto { display: none; }
  .howto-section.open .howto {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.3rem;
  }
}

.nav-toggle { display: none; }
@media (max-width: 700px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--slate);
    cursor: pointer;
  }
  .nav-toggle .nav-icon-close { display: none; }
  .site-header.nav-open .nav-toggle .nav-icon-open { display: none; }
  .site-header.nav-open .nav-toggle .nav-icon-close { display: block; }
  .site-header.nav-open .nav-toggle { color: var(--cta); border-color: var(--cta); }

  .site-header.js-nav .wrap { flex-wrap: wrap; }
  .site-header.js-nav .site-nav {
    display: none;
    flex-direction: column;
    gap: 0.15rem;
    width: 100%;
    padding: 0.5rem 0 0.75rem;
    border-top: 1px solid var(--line);
    margin-top: 0.55rem;
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-header.js-nav .site-nav a {
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }
}
