﻿:root {
  --bg: #f4f5f7;
  --bg-soft: #eef1f5;
  --surface: #ffffff;
  --surface-alt: #fbfcfe;
  --text: #18212f;
  --muted: #5f6b7a;
  --line: #dfe5ec;
  --brand: #57bfc7;
  --brand-deep: #1ea7b3;
  --brand-ink: #102126;
  --accent: #ff4fa3;
  --accent-soft: #fff0f7;
  --dark: #243443;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(24, 33, 47, .06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.5 "Segoe UI", Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(860px, calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid #edf1f5; }
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: #243443; }
.brand strong { color: var(--brand-deep); }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--brand), #8fdce2); display: grid; place-items: center; color: #fff; font-size: 22px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.05); }
.main-nav { display: flex; align-items: center; gap: 16px; }
.main-nav a, .linkish { color: #415466; text-decoration: none; font-weight: 600; font-size: .98rem; }
.main-nav a:hover, .linkish:hover { color: var(--brand-deep); }
.main-nav a[aria-current="page"] { color: var(--brand-deep); box-shadow: inset 0 -2px 0 var(--brand-deep); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-pill { padding: 10px 16px; border-radius: 999px; background: var(--bg-soft); }
.linkish { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }

/* Hero */
.hero { padding: 56px 0 40px; background: radial-gradient(900px 420px at 85% -10%, rgba(87,191,199,.2), transparent 60%), radial-gradient(600px 320px at 0% 110%, rgba(255,79,163,.07), transparent 60%), linear-gradient(180deg, #f8fbfc 0%, #f1f4f8 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--brand-deep); font-size: .9rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.02; letter-spacing: -.04em; color: #243443; }
.hero h1 .accent { color: var(--brand-deep); display: block; }
.lead { max-width: 62ch; margin: 18px 0 0; font-size: 1.12rem; color: #526273; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-actions .btn { min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: 1.02rem; }
.hero-actions .btn:not(.secondary) { box-shadow: 0 10px 24px rgba(30,167,179,.28); }
.hero-stats { display: flex; gap: 32px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats dt { order: 2; color: var(--muted); font-size: .86rem; }
.hero-stats dd { margin: 0; font-size: 1.6rem; font-weight: 800; color: var(--dark); letter-spacing: -.02em; }
.hero-visual { position: relative; min-height: 380px; border-radius: 32px; padding: 32px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 88% 10%, rgba(255,79,163,.5), transparent 36%), linear-gradient(150deg, #1ea7b3 0%, #57bfc7 100%); box-shadow: 0 24px 50px rgba(30,167,179,.25); }
.hero-visual::before, .hero-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; }
.hero-visual::before { width: 420px; height: 420px; left: -150px; bottom: -190px; }
.hero-visual::after { width: 260px; height: 260px; left: -70px; bottom: -110px; }
.hero-offer { position: relative; z-index: 1; width: min(100%, 340px); display: grid; gap: 10px; padding: 22px; border-radius: 24px; background: #fff; color: var(--text); text-decoration: none; box-shadow: 0 24px 50px rgba(16,33,38,.25); transform: rotate(-2deg); transition: transform .2s; }
.hero-offer:hover, .hero-offer:focus-visible { transform: rotate(0) translateY(-3px); }
.hero-offer-tag { justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: #b8156a; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hero-offer-provider { color: var(--muted); font-size: .88rem; font-weight: 600; }
.hero-offer-title { font-size: 1.15rem; line-height: 1.25; color: var(--dark); }
.hero-offer-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.hero-offer-facts span { padding: 3px 9px; border-radius: 8px; background: var(--bg-soft); color: #415466; font-size: .8rem; font-weight: 600; }
.hero-offer-price { display: flex; align-items: baseline; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.hero-offer-price b { font-size: 1.9rem; color: var(--dark); letter-spacing: -.02em; }
.hero-offer-cta { display: flex; justify-content: center; padding: 11px; border-radius: 999px; background: var(--brand-deep); color: #fff; font-weight: 700; }

/* Sections */
.section { padding: 52px 0; }
.section.alt { background: #fff; border-top: 1px solid #ebeff4; border-bottom: 1px solid #ebeff4; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.1; letter-spacing: -.03em; color: #243443; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 70ch; }
.section-kicker { color: var(--brand-deep); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; margin-bottom: 10px; }

/* Offer cards */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid #e5ebf1; border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 1px 0 rgba(24,33,47,.02); }
.card:hover { box-shadow: var(--shadow); border-color: #d3e3e8; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.provider { font-weight: 700; color: #30465a; font-size: .95rem; }
.badge { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: #eef8f9; color: #1a8791; font-size: .76rem; font-weight: 700; }
.card h3 { margin: 0; font-size: 1.2rem; line-height: 1.3; color: #223445; min-height: 3.2em; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price strong { font-size: 2.2rem; line-height: 1; letter-spacing: -.03em; color: #243443; }
.price span { color: var(--muted); font-weight: 600; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 10px; border-radius: 999px; background: #f3f6f9; color: #415466; font-size: .82rem; font-weight: 600; }
.features { margin: 0; padding-left: 18px; color: #526273; }
.features li + li { margin-top: 4px; }
.cta, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; border: 0; background: var(--brand-deep); color: #fff; text-decoration: none; font-weight: 700; cursor: pointer; }
.cta:hover, .btn:hover { filter: brightness(.96); }
.cta { margin-top: auto; }
.btn.secondary { background: #fff; color: #243443; border: 1px solid var(--line); }
.more { margin-top: 28px; text-align: center; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.news-card { background: #fff; border: 1px solid #e5ebf1; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; }
.news-media { aspect-ratio: 16/9; background: linear-gradient(135deg, #dff4f6, #f8fbfd); display: grid; place-items: center; color: var(--brand-deep); font-weight: 800; font-size: 1.2rem; }
.news-body { padding: 20px; }
.news-body time { color: var(--muted); font-size: .85rem; }
.news-body h3 { margin: 8px 0 10px; font-size: 1.15rem; line-height: 1.35; }
.news-body p { margin: 0; color: #556575; }

/* Filters / pages */
.page-hero { padding: 42px 0 28px; background: linear-gradient(180deg, #fbfcfe, #f1f5f8); border-bottom: 1px solid #e7edf3; }
.page-hero h1 { margin: 0; font-size: clamp(2rem,5vw,3.4rem); line-height: 1.05; letter-spacing: -.03em; }
.page-hero .lead { margin-top: 12px; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 14px; margin-bottom: 24px; padding: 18px; background: #fff; border: 1px solid #e5ebf1; border-radius: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .84rem; color: #5f6b7a; font-weight: 700; }
.field input, .field select, textarea, input[type="file"], input[type="datetime-local"], input[type="number"], input[type="url"] { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid #d7e0ea; background: #fff; color: var(--text); font: inherit; }
.field input:focus, .field select:focus, textarea:focus { outline: 2px solid rgba(87,191,199,.25); border-color: var(--brand); }
.filters .btn { align-self: end; }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 28px; color: var(--muted); }
.pager a { color: var(--brand-deep); text-decoration: none; font-weight: 700; }
.empty { padding: 40px 20px; text-align: center; background: #fff; border: 1px dashed #ccd8e3; border-radius: 12px; color: var(--muted); }

/* Footer */
.site-footer { margin-top: 0; padding: 46px 0 28px; background: #fff; border-top: 1px solid #e7edf3; color: #556575; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-grid h4 { margin: 0 0 12px; color: #243443; font-size: 1rem; }
.footer-grid a { display: block; color: #556575; text-decoration: none; padding: 4px 0; }
.footer-grid a:hover { color: var(--brand-deep); }
.footer-brand p { margin: 12px 0 0; max-width: 34ch; }
.footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid #e7edf3; display: flex; justify-content: space-between; gap: 16px; font-size: .92rem; }

/* Utility / legacy */
.inline { display: inline; }
.panel { background: #fff; border: 1px solid #e5ebf1; border-radius: 12px; padding: 20px; }
.alert { padding: 12px 14px; border-radius: 10px; background: #fff3f3; color: #9b2c2c; }
.ok { padding: 12px 14px; border-radius: 10px; background: #effaf3; color: #1f7a45; }

@media (max-width: 980px) {
  .hero-grid, .grid, .news-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap, .narrow { width: min(100% - 28px, 1200px); }
  .nav { min-height: 68px; flex-wrap: wrap; padding: 12px 0; }
  .main-nav { order: 3; width: 100%; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  /* One swipeable row instead of two wrapped rows. */
  .main-nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 18px; scrollbar-width: none; padding-bottom: 2px; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 24px; }
  .main-nav > a, .main-nav .nav-actions { flex: none; white-space: nowrap; }
  .hero { padding-top: 34px; }
  .hero-grid, .grid, .news-grid, .footer-grid, .filters { grid-template-columns: 1fr; }
  .hero-visual { min-height: 240px; }
  .section-head { flex-direction: column; align-items: stretch; }
  .footer-bottom { flex-direction: column; }
}

/* Home categories/networks */
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:1rem}
.cat-card,.net-card{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;background:var(--paper,#fff);border:1px solid var(--line,#e3d8ca);border-radius:14px;padding:1rem 1.1rem;color:inherit;text-decoration:none;transition:transform .12s,border-color .12s}
.cat-card:hover,.net-card:hover{transform:translateY(-2px);border-color:var(--accent,#1f5fa8)}
.cat-card h3,.net-name{margin:0 0 .25rem;font-size:1rem}
.cat-card p{margin:0;color:var(--muted,#5f5a55);font-size:.92rem}
.cat-count{flex:0 0 auto;background:var(--bg,#f7f4ef);border:1px solid var(--line,#e3d8ca);border-radius:999px;padding:.2rem .55rem;font-size:.8rem;font-weight:700;color:var(--ink,#1e1b18)}
.net-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.75rem}
.net-card{align-items:center}
.net-name{margin:0;font-weight:700}

/* Compare */
.card-top-right{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.compare-pick{display:inline-flex;gap:.35rem;align-items:center;color:var(--muted,#5f5a55);cursor:pointer;user-select:none}
.compare-pick input{width:16px;height:16px}
.compare-bar{position:sticky;bottom:1rem;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:1rem;margin:1rem 0;padding:.85rem 1rem;background:var(--ink,#1e1b18);color:#fff;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.compare-bar[hidden]{display:none!important}
.compare-bar .btn{background:#fff;color:var(--ink,#1e1b18)}
.compare-bar .btn.secondary{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.35)}
.compare-table-wrap{overflow:auto;border:1px solid var(--line,#e3d8ca);border-radius:14px;background:var(--paper,#fff)}
.compare-table{width:100%;border-collapse:separate;border-spacing:0;min-width:720px}
.compare-table th,.compare-table td{padding:.85rem .9rem;border-bottom:1px solid var(--line,#e3d8ca);vertical-align:top;text-align:left}
.compare-table th{background:var(--bg,#f7f4ef);font-size:.9rem}
.compare-table thead th{position:sticky;top:0;z-index:1}
.compare-table tbody tr:last-child td{border-bottom:0}
.compare-table td:first-child,.compare-table th:first-child{font-weight:600;color:var(--muted,#5f5a55);width:170px}
.compare-head{display:flex;flex-direction:column;gap:.35rem}
.compare-head .provider{font-size:.8rem;color:var(--muted,#5f5a55);font-weight:600}
.compare-head strong{font-size:.95rem;color:var(--ink,#1e1b18)}
@media (max-width:700px){.compare-bar{flex-direction:column;align-items:stretch}.compare-bar .actions{display:flex;gap:.5rem}}

/* Home offer groups */
.offer-group{margin-top:2rem}
.offer-group:first-of-type{margin-top:0}
.offer-group-head{display:flex;justify-content:space-between;gap:1rem;align-items:end;margin-bottom:1rem}
.offer-group-head h3{margin:0;font-size:1.35rem}
.offer-group-head p{margin:.2rem 0 0}
@media (max-width:700px){.offer-group-head{flex-direction:column;align-items:stretch}}

/* Catalog sidebar layout */
.catalog-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:1.5rem;align-items:start}
.filter-sidebar{position:sticky;top:1rem}
.filter-panel{background:var(--paper,#fff);border:1px solid var(--line,#e3d8ca);border-radius:16px;padding:1rem;display:flex;flex-direction:column;gap:1rem}
.filter-panel-head{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding-bottom:.5rem;border-bottom:1px solid var(--line,#e3d8ca)}
.filter-panel-head h2{margin:0;font-size:1.05rem}
.filter-reset{font-size:.85rem;color:var(--accent,#1f5fa8);text-decoration:none}
.filter-group{display:flex;flex-direction:column;gap:.45rem;margin:0}
.filter-label{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--muted,#5f5a55)}
.filter-group input[type=search],.filter-group select{width:100%;padding:.55rem .65rem;border:1px solid var(--line,#e3d8ca);border-radius:10px;background:#fff}
.filter-option{display:flex;gap:.5rem;align-items:flex-start;font-size:.92rem;color:var(--ink,#1e1b18);cursor:pointer}
.filter-option input{margin-top:.15rem}
.filter-apply{width:100%}
.catalog-toolbar{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin-bottom:1rem;flex-wrap:wrap}
.catalog-active-filters{display:flex;gap:.4rem;flex-wrap:wrap}
.filter-chip{display:inline-flex;padding:.2rem .55rem;border-radius:999px;background:var(--bg,#f7f4ef);border:1px solid var(--line,#e3d8ca);font-size:.78rem;color:var(--muted,#5f5a55)}
@media (max-width: 980px){.catalog-layout{grid-template-columns:1fr}.filter-sidebar{position:static}}

/* Home section backgrounds */
.home-section{position:relative}
.home-section--contract{background:linear-gradient(180deg,#eef5ff 0%,#f8fbff 100%);border-top:1px solid #dbe8f7;border-bottom:1px solid #dbe8f7}
.home-section--prepaid{background:linear-gradient(180deg,#fff7ec 0%,#fffaf3 100%);border-top:1px solid #f1dfc7;border-bottom:1px solid #f1dfc7}
.home-section--networks{background:linear-gradient(180deg,#eefaf4 0%,#f7fdf9 100%);border-top:1px solid #d5eadf;border-bottom:1px solid #d5eadf}
.home-section .section-kicker{opacity:.95}
.home-section .offer-group{background:rgba(255,255,255,.55);border:1px solid rgba(255,255,255,.7);backdrop-filter:saturate(120%);border-radius:18px;padding:1.25rem;margin-top:1.5rem}
.home-section .offer-group:first-of-type{margin-top:0}
.home-section .net-card{background:rgba(255,255,255,.82)}
/* Home page network cards: the operator's logo large, name and offer count underneath. */
.home-section .net-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.net-card--logo{flex-direction:column;align-items:stretch;gap:14px;padding:22px;border-radius:20px;border-color:#d5eadf;box-shadow:var(--shadow)}
.net-logo{display:block;width:100%;height:88px;object-fit:contain;padding:10px;background:#fff;border-radius:14px}
.net-logo-text{display:grid;place-items:center;font-size:1.6rem;font-weight:800;color:var(--dark)}
.net-foot{display:flex;justify-content:space-between;align-items:center;gap:.5rem}
.net-card--logo .net-name{font-size:1.05rem}
.net-card--logo.is-empty{cursor:default}
.net-card--logo.is-empty:hover{transform:none;border-color:#d5eadf}
.net-card--logo.is-empty .cat-count{background:transparent;color:var(--muted);font-weight:600}
@media (max-width:700px){.home-section .offer-group{padding:1rem}}

/* Visual sidebar filters */
.visual-filters{gap:1.1rem;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);border:1px solid #dbe7f3;box-shadow:0 8px 24px rgba(24,51,84,.04)}
.visual-filters .filter-panel-head p{margin:.15rem 0 0}
.filter-search input{padding-left:.85rem}
.choice-grid{display:grid;grid-template-columns:1fr;gap:.55rem}
.choice-card,.choice-row{position:relative;display:flex;align-items:center;gap:.7rem;border:1px solid #dbe5ef;background:#fff;border-radius:12px;padding:.7rem .75rem;cursor:pointer;transition:all .15s ease}
.choice-card:hover,.choice-row:hover{border-color:#8eb8dc;transform:translateY(-1px)}
.choice-card input,.choice-row input{position:absolute;opacity:0;pointer-events:none}
.choice-card.is-selected,.choice-row.is-selected{border-color:#2f7fbe;background:linear-gradient(180deg,#eff7ff 0%,#ffffff 100%);box-shadow:inset 0 0 0 1px rgba(47,127,190,.15)}
.choice-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#f3f7fb;font-size:1rem;flex:0 0 auto}
.is-selected .choice-icon{background:#dcebfa}
.choice-body{display:flex;justify-content:space-between;gap:.5rem;align-items:center;width:100%}
.choice-title{font-size:.92rem;font-weight:600;color:#243443;line-height:1.2}
.choice-count{margin-left:auto;font-size:.74rem;font-weight:700;color:#4f657a;background:#eef4f9;border:1px solid #dde8f1;border-radius:999px;padding:.15rem .45rem;min-width:2rem;text-align:center}
.is-selected .choice-count{background:#dcebfa;border-color:#bfd8ef;color:#205f93}
.choice-list{display:flex;flex-direction:column;gap:.5rem;max-height:320px;overflow:auto;padding-right:.15rem}
.choice-row .choice-title{flex:1}
.visual-filters .filter-apply{background:linear-gradient(180deg,#2f88c7,#2472ac);border:none}
.visual-filters .filter-apply:hover{filter:brightness(.98)}
@media (max-width:980px){.choice-list{max-height:none}}

/* Login / auth */
.auth-page{padding:56px 0 72px;background:linear-gradient(180deg,#f3f8fd 0%,#eef4fa 45%,#f8fbfe 100%);min-height:calc(100vh - 180px)}
.auth-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,440px);gap:2rem;align-items:center}
.auth-copy h1{margin:.25rem 0 .75rem;font-size:clamp(2rem,4vw,3.3rem);line-height:1.05;color:#1f3448;letter-spacing:-.03em}
.auth-copy .lead{max-width:38rem;margin:0 0 1.5rem;color:#556879}
.auth-points{display:grid;gap:.85rem;max-width:34rem}
.auth-point{display:flex;gap:.85rem;align-items:flex-start;padding:.9rem 1rem;background:rgba(255,255,255,.72);border:1px solid #dce8f2;border-radius:14px;box-shadow:0 1px 2px rgba(16,24,40,.02)}
.auth-point-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#e8f2fc;font-size:1.2rem;flex:0 0 auto}
.auth-point strong{display:block;color:#243b50;font-size:.95rem}
.auth-point span{display:block;color:#607487;font-size:.88rem;margin-top:.1rem}
.auth-card{padding:1.5rem;border-radius:20px;border:1px solid #dce7f1;box-shadow:0 18px 40px rgba(29,58,90,.08);background:rgba(255,255,255,.96)}
.auth-card-head{display:flex;gap:.9rem;align-items:center;margin-bottom:1.25rem;padding-bottom:1rem;border-bottom:1px solid #e8eef4}
.auth-brand-mark{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(180deg,#2e84c5,#236eaa);color:#fff;font-size:1.45rem;box-shadow:0 8px 20px rgba(35,110,170,.25)}
.auth-card-head h2{margin:0;font-size:1.55rem;color:#22384d}
.auth-card-head p{margin:.15rem 0 0;font-size:.92rem}
.auth-alert{margin:0 0 1rem;padding:.8rem .9rem;border-radius:12px;background:#fff1f1;border:1px solid #f1cccc;color:#9f2d2d;font-size:.9rem}
.auth-form{display:grid;gap:1rem}
.auth-form .field span{font-size:.84rem;font-weight:700;color:#425a6d}
.auth-form .field input{min-height:48px;border-radius:12px;border:1px solid #cedce8;background:#fbfdff;padding:.7rem .85rem}
.auth-form .field input:focus{outline:none;border-color:#6aa8d6;box-shadow:0 0 0 4px rgba(82,155,208,.14)}
.auth-row{display:flex;justify-content:space-between;align-items:center;gap:.75rem}
.auth-check{margin:0;font-size:.9rem;color:#51687b}
.auth-submit{width:100%;min-height:48px;border-radius:12px;font-size:1rem;font-weight:700;background:linear-gradient(180deg,#3290d0,#2474ae);border:none;box-shadow:0 10px 24px rgba(36,116,174,.24)}
.auth-submit:hover{filter:brightness(.985)}
.auth-foot{margin:1rem 0 0;text-align:center}
@media (max-width:900px){.auth-layout{grid-template-columns:1fr;gap:1.25rem}.auth-page{padding:40px 0 56px}.auth-copy .lead{margin-bottom:1rem}}


/* ===== Tariff list: filter sidebar (tf-) and offer rows (oc-) ===== */
.tf-page { padding: 28px 0 56px; }
.tf-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; }
.tf-side { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px 16px 20px; box-shadow: var(--shadow); max-height: calc(100vh - 110px); overflow: auto; }
.tf-side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 4px 6px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.tf-side-head h2 { margin: 0; font-size: 1.35rem; color: var(--dark); letter-spacing: -.01em; }
.tf-side-head a { font-size: .85rem; color: var(--brand-deep); text-decoration: none; font-weight: 600; }
.tf-group { padding: 12px 2px 4px; }
.tf-label { font-weight: 700; font-size: .92rem; color: var(--dark); margin: 0 4px 8px; }

.tf-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.tf-tile { display: grid; justify-items: center; gap: 3px; padding: 9px 4px 7px; text-decoration: none; color: var(--muted); border-right: 1px solid var(--line); transition: background .15s; }
.tf-tile:nth-child(4n) { border-right: 0; }
.tf-tile:nth-child(n+5) { border-top: 1px solid var(--line); }
.tf-tile:hover { background: var(--bg-soft); }
.tf-tile-mark { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: var(--bg-soft); color: var(--dark); }
.tf-tile-name { font-size: .68rem; line-height: 1.1; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tf-tile.is-on { background: #e6f7f8; color: var(--brand-ink); }
.tf-tile.is-on .tf-tile-mark { background: var(--brand-deep); color: #fff; }

.tf-slider { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 8px; text-align: center; }
.tf-slider-value { display: block; font-weight: 700; font-size: 1.05rem; color: var(--dark); margin-bottom: 4px; }
.tf-slider input[type=range] { width: 100%; accent-color: var(--brand-deep); cursor: pointer; }
.tf-slider-scale { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }

.tf-seg { display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.tf-seg-row { grid-auto-flow: column; grid-auto-columns: 1fr; }
.tf-seg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tf-seg a { display: grid; place-items: center; text-align: center; min-height: 44px; padding: 6px; font-size: .82rem; line-height: 1.2; color: var(--muted); text-decoration: none; border-right: 1px solid var(--line); transition: background .15s, color .15s; }
.tf-seg-row a:last-child { border-right: 0; }
.tf-seg-grid a:nth-child(3n) { border-right: 0; }
.tf-seg-grid a:nth-child(n+4) { border-top: 1px solid var(--line); }
.tf-seg a:hover { background: var(--bg-soft); color: var(--dark); }
.tf-seg a.is-on { background: #e6f7f8; color: var(--brand-ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--brand-deep); }

.tf-switch { display: flex; align-items: center; gap: 10px; margin: 16px 6px 2px; color: var(--dark); text-decoration: none; font-size: .9rem; }
.tf-switch-track { width: 42px; height: 24px; border-radius: 999px; background: #cfd8e1; position: relative; transition: background .15s; flex: none; }
.tf-switch-knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: left .15s; }
.tf-switch.is-on .tf-switch-track { background: var(--brand-deep); }
.tf-switch.is-on .tf-switch-knob { left: 21px; }

.tf-title { font-size: 1.5rem; line-height: 1.2; margin: 0 0 12px; }
.tf-guide { margin-top: 32px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; line-height: 1.6; max-width: 78ch; }
.tf-guide h2 { font-size: 1.25rem; margin: 0 0 8px; }
.tf-guide h3 { font-size: 1rem; margin: 18px 0 4px; }
.tf-guide p { margin: 0 0 8px; }
.tf-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: var(--shadow); }
.tf-search:focus-within { border-color: var(--brand-deep); }
.tf-search-icon { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.tf-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.02rem; padding: 10px 0; background: transparent; color: var(--text); }
.tf-search button { border: 0; border-radius: 999px; padding: 11px 22px; background: var(--brand-deep); color: #fff; font-weight: 700; cursor: pointer; }
.tf-search button:hover { background: #178f99; }

.tf-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 4px 12px; }
.tf-sort { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tf-sort a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-size: .85rem; color: var(--muted); }
.tf-sort a.is-on { border-color: var(--brand-deep); color: var(--brand-ink); background: #e6f7f8; font-weight: 700; }

.oc-list { display: grid; gap: 16px; }
.oc { display: grid; grid-template-columns: 150px minmax(0, 1fr) 270px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.oc svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.oc-brand { background: var(--bg-soft); padding: 18px 12px; display: grid; align-content: start; justify-items: center; gap: 12px; text-align: center; }
.oc-logo { width: 110px; height: 56px; object-fit: contain; }
.oc-logo-text { display: grid; place-items: center; font-weight: 800; color: var(--dark); font-size: .95rem; line-height: 1.15; background: var(--surface); border-radius: 12px; padding: 6px; }
.oc-meta { display: grid; gap: 6px; font-size: .78rem; color: var(--muted); }
.oc-meta span { display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.oc-compare { font-size: .76rem; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.oc-body { padding: 18px 22px; border-right: 1px solid var(--line); }
.oc-body h3 { margin: 0 0 12px; font-size: 1.15rem; color: var(--dark); }
.oc-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.oc-specs > div { display: grid; gap: 2px; font-size: .88rem; }
.oc-big { font-size: 1.15rem; color: var(--dark); display: inline-flex; align-items: center; gap: 6px; }
.oc-5g { font-size: .68rem; font-weight: 800; color: #fff; background: var(--brand-deep); border-radius: 5px; padding: 1px 5px; }
.oc-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .86rem; color: #2a6b74; }
.oc-points li { display: flex; gap: 8px; align-items: flex-start; }
.oc-points svg { color: var(--brand-deep); margin-top: 2px; }
.oc-price { padding: 18px 20px; display: grid; gap: 12px; align-content: start; }
.oc-price dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .9rem; }
.oc-price dt { color: var(--muted); }
.oc-price dd { margin: 0; text-align: right; font-weight: 700; color: var(--dark); }
.oc-bonus { background: var(--accent); color: #fff; padding: 1px 7px; border-radius: 6px; }
.oc-avg { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; font-size: .84rem; color: var(--muted); line-height: 1.25; }
.oc-avg strong { font-size: 1.55rem; color: var(--dark); }
.oc-cta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 999px; background: var(--brand-deep); color: #fff; text-decoration: none; font-weight: 700; font-size: 1.02rem; transition: background .15s; }
.oc-cta:hover { background: #178f99; }
.oc-cta svg { stroke-width: 2.4; }

@media (max-width: 1100px) { .oc { grid-template-columns: 130px minmax(0, 1fr); } .oc-price { grid-column: 1 / -1; border-top: 1px solid var(--line); } .oc-body { border-right: 0; } }
/* Home page: a category's offers as small cards in one row; the row scrolls sideways when it does not fit. */
.oc-list--row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.oc-list--row .oc { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; border-radius: 16px; scroll-snap-align: start; box-shadow: none; }
.oc-list--row .oc-brand { grid-template-columns: none; justify-items: center; padding: 12px; }
.oc-list--row .oc-logo { width: 90px; height: 36px; }
.oc-list--row .oc-meta, .oc-list--row .oc-compare, .oc-list--row .oc-points, .oc-list--row .oc-price dl { display: none; }
.oc-list--row .oc-body { padding: 12px 14px; border-right: 0; }
.oc-list--row .oc-body h3 { font-size: .95rem; line-height: 1.3; margin-bottom: 8px; }
.oc-list--row .oc-specs { grid-template-columns: 1fr; gap: 2px; margin: 0; }
.oc-list--row .oc-specs > div { font-size: .78rem; }
.oc-list--row .oc-big { font-size: .92rem; }
.oc-list--row .oc-price { grid-column: auto; border-top: 1px solid var(--line); padding: 12px 14px; gap: 8px; }
.oc-list--row .oc-avg { border-top: 0; padding-top: 0; font-size: .72rem; }
.oc-list--row .oc-avg strong { font-size: 1.3rem; }
.oc-list--row .oc-cta { padding: 8px 12px; font-size: .9rem; }
.oc-list--row .oc-details { font-size: .8rem; }
@media (max-width: 900px) { .tf-layout { grid-template-columns: 1fr; } .tf-side { position: static; max-height: none; } }
.tf-filter > summary { list-style: none; }
.tf-filter > summary::-webkit-details-marker { display: none; }
.tf-chevron { display: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; transition: transform .15s; }
.tf-tile-logo { width: 44px; height: 26px; object-fit: contain; }
@media (max-width: 900px) {
  .tf-side { padding: 10px 14px; }
  .tf-filter > summary { cursor: pointer; align-items: center; border-bottom: 0; margin-bottom: 0; padding: 6px; }
  .tf-filter > summary h2 { font-size: 1.1rem; margin-right: auto; }
  .tf-filter[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 6px; padding-bottom: 12px; }
  .tf-chevron { display: block; }
  .tf-filter[open] .tf-chevron { transform: rotate(180deg); }
}
/* The wrapped two-row header would take a fifth of a phone screen if it stayed on top. */
@media (max-width: 720px) { .site-header { position: static; } }
@media (max-width: 560px) {
  .oc { grid-template-columns: 1fr; }
  .oc-brand { grid-template-columns: auto 1fr; justify-items: start; text-align: left; }
  .oc-specs { grid-template-columns: 1fr; }
  .tf-search button { padding: 10px 14px; }
}
.tf-seg-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tf-seg-g2 a:nth-child(2n) { border-right: 0; }
.tf-seg-g2 a:nth-child(n+3) { border-top: 1px solid var(--line); }

/* ===== Offer row: links to the detail page ===== */
.oc-body h3 a { text-decoration: none; }
.oc-body h3 a:hover { color: var(--brand-deep); text-decoration: underline; }
.oc-details { text-align: center; font-size: .88rem; font-weight: 600; color: var(--brand-deep); text-decoration: none; }
.oc-details:hover { text-decoration: underline; }

/* ===== Offer detail page (od-) ===== */
.od-page { padding: 18px 0 64px; }
.od-page svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.od-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .86rem; color: var(--muted); margin-bottom: 16px; }
.od-crumbs a { color: var(--muted); text-decoration: none; }
.od-crumbs a:hover { color: var(--brand-deep); text-decoration: underline; }
.od-crumbs [aria-current] { color: var(--text); font-weight: 600; }

.od-hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.od-brand { display: flex; align-items: center; gap: 14px; }
.od-logo { width: 120px; height: 60px; object-fit: contain; background: var(--bg-soft); border-radius: 14px; padding: 8px; }
.od-logo-text { display: grid; place-items: center; font-weight: 800; color: var(--dark); text-align: center; }
.od-provider { display: block; font-weight: 800; color: var(--dark); font-size: 1.05rem; }
.od-type { display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 700; color: var(--brand-deep); background: #e8f7f8; border-radius: 999px; padding: 2px 10px; }
.od-hero h1 { margin: 18px 0 12px; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -.02em; color: var(--dark); overflow-wrap: anywhere; }
.od-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; }
.od-badges li { font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--bg-soft); color: #33485b; }
.od-badges .is-hot { background: var(--brand-deep); color: #fff; }
.od-badges .is-bonus { background: var(--accent-soft); color: #c2267a; }
.od-summary { margin: 0 0 10px; font-size: 1.02rem; color: #33485b; max-width: 68ch; }
.od-updated { margin: 0; }

.od-pricebox { align-self: start; background: linear-gradient(180deg, #f3fbfc, #fff); border: 1px solid #cdebee; border-radius: 20px; padding: 20px; display: grid; gap: 14px; }
.od-price-main { display: grid; }
.od-price-main strong { font-size: 2.4rem; line-height: 1.1; color: var(--dark); letter-spacing: -.02em; }
.od-pricebox dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-size: .94rem; }
.od-pricebox dt { color: var(--muted); }
.od-pricebox dd { margin: 0; font-weight: 700; text-align: right; }
.od-bonus { color: #c2267a; font-weight: 700; }
.od-avg { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--dark); color: #fff; font-size: .9rem; }
.od-avg small { opacity: .75; }
.od-avg strong { font-size: 1.35rem; white-space: nowrap; }
.od-cta { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 18px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 800; font-size: 1.02rem; text-align: center; transition: filter .15s; }
.od-cta:hover { filter: brightness(.93); }
.od-cta svg { stroke-width: 2.6; width: 18px; height: 18px; }
.od-note { margin: -6px 0 0; text-align: center; }
.od-side-cta { margin-bottom: 12px; }
.od-provider-card .od-note { margin: -4px 0 14px; }
.od-compare { font-size: .86rem; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; justify-content: center; cursor: pointer; }

.od-specs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.od-specs > div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 4px; align-content: start; }
.od-specs svg { color: var(--brand-deep); width: 24px; height: 24px; margin-bottom: 4px; }
.od-specs span { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.od-specs strong { font-size: 1.02rem; color: var(--dark); overflow-wrap: anywhere; }

.od-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.od-main { display: grid; gap: 18px; min-width: 0; }
.od-side { position: sticky; top: 96px; }
.od-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.od-card h2 { margin: 0 0 14px; font-size: 1.2rem; color: var(--dark); }
.od-costs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.od-costs th, .od-costs td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.od-costs td { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 12px; }
.od-costs .od-total th, .od-costs .od-total td { font-weight: 800; color: var(--dark); }
.od-costs tr:last-child th, .od-costs tr:last-child td { border-bottom: 0; }
.od-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.od-points li { display: flex; gap: 10px; align-items: flex-start; color: #2a4a5a; }
.od-points svg { color: var(--brand-deep); margin-top: 1px; }
.od-proscons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 14px; }
.od-proscons .od-points { grid-template-columns: 1fr; }
.od-points.is-cons svg { color: var(--muted); }
.od-device h3 { font-size: 1rem; margin: 14px 0 8px; }
.od-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.od-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.od-facts dt { color: var(--muted); }
.od-facts dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.od-text { margin: 0; white-space: pre-line; color: #33485b; overflow-wrap: anywhere; }
.od-article { color: #33485b; line-height: 1.65; overflow-wrap: anywhere; }
.od-article h2 { margin: 26px 0 10px; }
.od-article h2:first-child { margin-top: 0; }
.od-article h3 { margin: 18px 0 6px; font-size: 1.02rem; color: var(--dark); }
.od-article p { margin: 0 0 12px; }
.od-article ul { margin: 0 0 12px; padding-left: 20px; }
.od-faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.od-faq details:last-child { border-bottom: 0; }
.od-faq summary { cursor: pointer; font-weight: 700; color: var(--dark); }
.od-faq p { margin: 8px 0 0; color: #33485b; }

.od-provider-card .od-brand { margin-bottom: 14px; }
.od-provider-card .od-logo { width: 96px; height: 48px; }
.od-provider-card dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0 0 16px; font-size: .93rem; }
.od-provider-card dt { color: var(--muted); }
.od-provider-card dd { margin: 0; font-weight: 700; text-align: right; }
.od-provider-card .btn { display: flex; width: 100%; text-align: center; }

.od-related { margin-top: 34px; }
.od-related h2 { font-size: 1.35rem; color: var(--dark); margin: 0 0 14px; }
.od-mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.od-mini { display: grid; gap: 8px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.od-mini:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.od-mini-head { display: flex; align-items: center; gap: 10px; }
.od-mini-head img { width: 64px; height: 32px; object-fit: contain; }
.od-mini-title { color: var(--dark); line-height: 1.3; }
.od-mini-specs { font-size: .86rem; color: #2a6b74; }
.od-mini-price strong { font-size: 1.15rem; color: var(--dark); }

.od-stickybar { display: none; }

/* The researched phone in an offer row */
.oc-phone { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 6px 0; font-size: .9rem; }
.oc-phone svg { width: 18px; height: 18px; color: var(--brand-deep); fill: none; stroke: currentColor; stroke-width: 2; }
.oc-phone a { font-weight: 700; color: var(--dark); }
.oc-phone-plus { color: #2a6b74; }

/* Phone catalog (/handys) */
.ph-filters { display: grid; gap: 8px; margin-bottom: 20px; }
.ph-filters > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ph-filters a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--dark); font-size: .88rem; }
.ph-filters a.is-on { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.ph-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ph-card { display: grid; gap: 10px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.ph-card h2, .ph-card h3 { margin: 0; font-size: 1.1rem; }
.ph-card h2 a, .ph-card h3 a { color: var(--dark); text-decoration: none; }
.ph-card > .btn { justify-self: start; }
.ph-card > p { margin: 0; }
.ph-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; color: #33485b; }
.ph-keys span { display: inline-block; min-width: 72px; color: var(--muted); }
.ph-strength { font-size: .9rem; color: #2a6b74; }
.ph-price strong { font-size: 1.25rem; color: var(--dark); }
.ph-price .muted:last-child { display: block; }
.ph-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ph-compare { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ph-related { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ph-related li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.ph-sources { margin: 0; padding-left: 18px; font-size: .9rem; }
@media (max-width: 1100px) { .ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ph-grid { grid-template-columns: 1fr; } }

@media (max-width: 1100px) {
  .od-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .od-mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .od-hero, .od-grid { grid-template-columns: 1fr; }
  .od-side { position: static; }
}
@media (max-width: 720px) {
  .od-page { padding-bottom: 96px; }
  .od-hero { padding: 18px; border-radius: 20px; }
  .od-logo { width: 96px; height: 48px; }
  .od-specs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .od-card { padding: 18px; }
  .od-points, .od-facts, .od-proscons { grid-template-columns: 1fr; }
  .od-stickybar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(24,33,47,.08); }
  .od-stickybar strong { font-size: 1.25rem; color: var(--dark); }
  .od-stickybar .od-cta { padding: 11px 20px; }
}
@media (max-width: 480px) { .od-mini-grid { grid-template-columns: 1fr; } }

/* Legal pages (Impressum, Datenschutz, Nutzungsbedingungen, Cookies), as on Rate Offer. */
.legal-page { padding: 32px 0 56px; line-height: 1.65; }
.legal-page h1 { margin-bottom: 4px; }
.legal-page h2 { margin: 1.8rem 0 .5rem; font-size: 1.15rem; }
.legal-page ul { padding-left: 1.2rem; }
.legal-page li { margin: .35rem 0; }
.legal-page .lead { max-width: none; }
.legal-page .table-wrap { overflow-x: auto; margin: 1rem 0; }
.legal-page table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal-page th, .legal-page td { padding: .55rem .6rem; border-bottom: 1px solid #e3e8ee; text-align: left; vertical-align: top; }
.legal-page th { background: #f5f7fa; font-weight: 600; }
.legal-page code { font-size: .85em; word-break: break-all; }

/* ---- Blog list and post (cards, kind badges, post header, offers and more to read) ---- */
.blog-hero .lead { max-width: 60ch; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.blog-filters a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--dark); font-weight: 600; font-size: .9rem; text-decoration: none; }
.blog-filters a span { color: var(--muted); font-weight: 500; font-size: .8rem; }
.blog-filters a:hover { border-color: var(--brand); }
.blog-filters a[aria-current=page] { background: var(--dark); border-color: var(--dark); color: #fff; }
.blog-filters a[aria-current=page] span { color: #cfd8e1; }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.blog-card { display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.blog-card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.blog-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-soft); }
.blog-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px; flex: 1; }
.blog-card-title { font-size: 1.12rem; line-height: 1.35; color: var(--dark); }
.blog-card-excerpt { color: var(--muted); font-size: .95rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-meta { margin-top: auto; color: var(--muted); font-size: .82rem; }
.blog-card-featured { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); margin-bottom: 22px; }
.blog-card-featured:not(:has(img)) { grid-template-columns: 1fr; background: linear-gradient(135deg, #f2fbfc, #fff 60%); }
.blog-card-featured img { height: 100%; aspect-ratio: auto; min-height: 240px; }
.blog-card-featured .blog-card-body { padding: 30px; justify-content: center; }
.blog-card-featured .blog-card-title { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.02em; }
.blog-card-featured .blog-card-excerpt { -webkit-line-clamp: 4; font-size: 1.02rem; }

/* Normal case: in capitals the kind read like a code value ("BESTENLISTE"). */
.blog-kind { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--bg-soft); color: var(--dark); }
.blog-kind::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.blog-kind.kind-bestenliste { background: #e6f7f8; color: #0f7c86; }
.blog-kind.kind-ratgeber { background: #eef2ff; color: #3b4cc0; }
.blog-kind.kind-vergleich { background: var(--accent-soft); color: #c2186f; }
.blog-kind.kind-news { background: #fff4e0; color: #a35b00; }
.blog-kind.kind-marktbericht { background: #edf7ee; color: #2e7a3c; }

.post-hero .lead { margin-top: 14px; font-size: 1.15rem; }
.post-hero h1 { margin-top: 12px; }
.post-crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.post-crumbs a { color: var(--muted); }
.post-meta { margin: 16px 0 0; color: var(--muted); font-size: .9rem; }
.post-hero .preview-note { background: #fff4d6; border: 1px solid #e8cf8a; border-radius: 10px; padding: .6rem .9rem; }
.post-cover { width: 100%; border-radius: var(--radius); margin-bottom: 24px; }
/* The article sits on a white card; text keeps a readable line length. */
.blog-post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 48px); font-size: 1.07rem; line-height: 1.8; color: var(--text); }
.blog-post > p:first-of-type { font-size: 1.16rem; color: var(--dark); }
.blog-post h2 { position: relative; margin: 2.6rem 0 .8rem; padding-left: 16px; font-size: clamp(1.35rem, 2.4vw, 1.6rem); line-height: 1.3; letter-spacing: -.015em; color: var(--dark); scroll-margin-top: 96px; }
.blog-post h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 3px; background: linear-gradient(var(--brand), var(--brand-deep)); }
.blog-post h2:first-child { margin-top: 0; }
.blog-post h3 { margin: 1.8rem 0 .5rem; font-size: 1.18rem; color: var(--dark); }
.blog-post p { margin: 0 0 1.15rem; }
.blog-post strong { color: var(--dark); font-weight: 700; }
.blog-post ul, .blog-post ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.blog-post li { margin: .35rem 0; }
.blog-post li::marker { color: var(--brand-deep); }
.blog-post p a, .blog-post li a { color: var(--brand-deep); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: rgba(30,167,179,.3); text-underline-offset: 3px; }
.blog-post p a:hover, .blog-post li a:hover { text-decoration-color: var(--brand-deep); }
.blog-post a.offer-ref { background: #e9f8f9; border-radius: 6px; padding: 1px 6px; text-decoration: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.blog-post td a.offer-name { color: var(--dark); font-weight: 600; text-decoration: none; border-bottom: 2px solid rgba(30,167,179,.35); }
.blog-post td a.offer-name:hover { color: var(--brand-deep); border-bottom-color: var(--brand-deep); }
.blog-post a.offer-ref::after { content: " →"; font-weight: 700; }
.blog-post a.offer-ref:hover { background: #d4f1f3; }
.blog-post .table-wrap { overflow: auto; margin: 1.6rem 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.blog-post table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.blog-post th, .blog-post td { padding: .7rem .85rem; border-bottom: 1px solid var(--line); text-align: left; }
.blog-post th { background: var(--dark); color: #fff; font-weight: 600; white-space: nowrap; }
.blog-post tbody tr:nth-child(even) { background: var(--surface-alt); }
.blog-post tbody tr:last-child td { border-bottom: 0; }
.blog-post tbody tr:hover { background: #f0fafb; }
.blog-post td:first-child { font-weight: 600; color: var(--dark); }
.blog-post .cell-cta { text-align: right; }
/* The best value of a row (comparison) or column (top list). */
.blog-post td.best { color: #17663a; font-weight: 700; background: #e8f7ee !important; }
.blog-post td.best::after { content: " ✓"; }
.blog-post .row-cta, .blog-post .row-cta:hover { background: var(--surface); }
.blog-post a.btn-tarif { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: .88rem; white-space: nowrap; text-decoration: none; transition: filter .15s, transform .15s; }
.blog-post a.btn-tarif::after { content: "›"; font-size: 1.1em; line-height: 1; }
.blog-post a.btn-tarif:hover { filter: brightness(.92); transform: translateY(-1px); }
/* font-size 0 hides the " · " text between the pills of older posts; the gap spaces them. */
.blog-post .offer-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.4rem 0; font-size: 0; }
.blog-post .offer-links a { font-size: .92rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-alt); color: var(--dark); font-weight: 600; text-decoration: none; }
.blog-post .offer-links a:hover { border-color: var(--brand); color: var(--brand-deep); }
.blog-post .post-cta { margin: 2rem 0 0; }
.blog-post .post-cta a.btn { color: #fff; text-decoration: none; }
.blog-post .source { font-size: .9rem; color: var(--muted); }
.blog-post .post-ai-note { margin: 2.2rem 0 0; padding: 12px 16px; border-radius: 12px; background: var(--surface-alt); border: 1px solid var(--line); color: var(--muted); font-size: .88rem; line-height: 1.6; }
/* "Das Wichtigste in Kürze": the key points first, for readers who only skim and for AI answers. */
.blog-post .post-summary { margin: 0 0 2rem; padding: 18px 22px; border-radius: 14px; background: var(--accent-soft); border: 1px solid #ffd3e8; font-size: 1rem; line-height: 1.6; }
.blog-post .post-summary > strong { display: block; margin-bottom: 8px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #c2186f; }
.blog-post .post-summary ul { margin: 0; padding-left: 1.2rem; }
.blog-post .post-summary li { margin: .35rem 0; }
.blog-post .post-summary li::marker { color: var(--accent); }
/* "Häufige Fragen": question and answer pairs, separated by thin lines. */
.blog-post .post-faq { margin-top: 2.6rem; }
.blog-post .post-faq h3 { margin: 0; padding: 1rem 0 .35rem; border-top: 1px solid var(--line); font-size: 1.08rem; }
.blog-post .post-faq h3 { display: flex; gap: 10px; align-items: baseline; }
.blog-post .post-faq h3::before { content: "?"; flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e6f7f8; color: var(--brand-deep); font-size: .85rem; font-weight: 800; transform: translateY(2px); }
.blog-post .post-faq p { margin: 0 0 .6rem; color: var(--text); }
/* Daily news pack: each item a numbered card with what it means for the reader and its source. */
.blog-post .news-pack { counter-reset: news; display: grid; gap: 18px; margin-top: 1.6rem; }
.blog-post .news-item { counter-increment: news; position: relative; padding: 20px 22px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-alt); }
.blog-post .news-item h2 { margin: 0 0 .6rem; padding-left: 40px; font-size: 1.22rem; }
.blog-post .news-item h2::before { content: counter(news); top: 0; bottom: auto; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: .9rem; }
.blog-post .news-item p { margin-bottom: .7rem; }
.blog-post .news-why { padding: 10px 14px; border-radius: 10px; background: #e9f8f9; font-size: .97rem; }
.blog-post .news-item .source { margin: 0; font-size: .85rem; }
.blog-post .news-item .source a { color: var(--muted); font-weight: 600; }
.post-toc { margin: 0 0 2rem; padding: 18px 22px; border-radius: 14px; background: linear-gradient(135deg, #f2fbfc, var(--surface-alt)); border: 1px solid #cfeef1; font-size: .97rem; line-height: 1.5; }
.post-toc strong { display: block; margin-bottom: 8px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-deep); }
.post-toc ol { margin: 0; padding-left: 1.2rem; }
.post-toc li { margin: .3rem 0; }
.post-toc a { color: var(--dark); text-decoration: none; font-weight: 600; }
.post-toc a:hover { color: var(--brand-deep); text-decoration: underline; }
.post-hero { background: linear-gradient(180deg, #eaf8f9, var(--bg)); }
.post-hero h1 { letter-spacing: -.025em; line-height: 1.15; }
.post-offers { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-offers .section-head h2, .post-more .section-head h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-card-featured { grid-template-columns: 1fr; }
  .blog-card-featured img { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .blog-post { padding: 20px 16px; border-radius: 14px; font-size: 1.02rem; }
  .blog-post h2 { padding-left: 12px; }
  /* Tables become one card per row: the cell's column name on the left, its value on the right. */
  /* (A two-offer comparison, .table-compare, stays a table: three columns fit.) */
  .blog-post .table-wrap:has(> table:not(.table-compare)) { overflow: visible; border: 0; background: none; }
  .blog-post table:not(.table-compare), .blog-post table:not(.table-compare) :is(tbody, tr, td) { display: block; width: 100%; }
  .blog-post table:not(.table-compare) thead { display: none; }
  .blog-post table:not(.table-compare) tbody tr { margin: 0 0 12px; padding: 8px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
  .blog-post table:not(.table-compare) td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 14px; border: 0; text-align: right; }
  .blog-post table:not(.table-compare) td[data-label]::before { content: attr(data-label); color: var(--muted); font-weight: 600; font-size: .85rem; text-align: left; }
  .blog-post table:not(.table-compare) td[data-label=""]::before { content: none; }
  .blog-post table:not(.table-compare) td[data-label="#"] { justify-content: flex-start; font-weight: 800; color: var(--brand-deep); }
  .blog-post table:not(.table-compare) td[data-label="#"]::before { content: "Platz"; color: var(--brand-deep); font-size: inherit; }
  .blog-post table:not(.table-compare) td.cell-cta a.btn-tarif { width: 100%; justify-content: center; padding: 10px 14px; }
  .blog-post .table-compare th, .blog-post .table-compare td { padding: .55rem .6rem; font-size: .88rem; white-space: normal; }
  .blog-post .table-compare a.btn-tarif { padding: 7px 10px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-featured .blog-card-body { padding: 22px; }
}
/* Partner banners and "compare at CHECK24" (Helpers/DisplayAds.cs, Pages/Shared/_DisplayAd*, _Elsewhere,
   _PartnerBanners), ported from TopListFinder. */
.ad-mark { margin-left: .1em; font-weight: 700; opacity: .85; }
.elsewhere-card { display: flex; align-items: flex-start; gap: .8rem 1rem; margin: 1.25rem 0; padding: .9rem 1rem; border: 1px solid color-mix(in srgb, var(--brand-deep) 35%, var(--line)); border-radius: 14px; background: #f7fbfc; }
.elsewhere-card img.elsewhere-logo { flex: none; width: auto; height: 40px; max-width: 110px; object-fit: contain; border-radius: 8px; background: #fff; }
.elsewhere-text { display: flex; flex-direction: column; gap: .35rem; flex: 1 1 14rem; font-size: .92rem; }
.elsewhere-go { flex: none; align-self: center; display: inline-flex; align-items: center; gap: .3rem; padding: .5rem 1rem; border-radius: 999px; background: var(--brand-deep); color: #fff !important; font-size: .85rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.elsewhere-go:hover { background: #178f99; }
@media (max-width: 640px) { .elsewhere-card { flex-wrap: wrap; } .elsewhere-go { align-self: stretch; justify-content: center; width: 100%; } }

.display-ad a { position: relative; display: block; }
.display-ad img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
.display-ad .ad-mark { position: absolute; top: 2px; right: 4px; z-index: 1; font-size: .75rem; color: #fff; text-shadow: 0 0 3px rgba(0, 0, 0, .6); }
.display-ad-frame { position: relative; }
.display-ad-horizontal, .display-ad-vertical { display: grid; justify-items: center; gap: .3rem; }
.display-ad-horizontal { margin: 1.75rem auto; }
.display-ad-info { position: absolute; top: 6px; left: 6px; z-index: 2; width: 1.5rem; height: 1.5rem; padding: 0; border: 0; border-radius: 50%; background: rgba(15, 23, 42, .6); color: #fff; font: 700 .8rem/1 Georgia, serif; cursor: pointer; }
.display-ad-info:hover, .display-ad-info:focus-visible { background: rgba(15, 23, 42, .85); }
/* On the skyscrapers and the flat banners between content the button would cover the partner's logo: it sits under the banner instead. */
.display-ad-wide .display-ad-info, .display-ad-slim .display-ad-info, .display-ad-horizontal .display-ad-info { position: static; display: block; margin: 4px auto 0; }
.display-ad-popover { margin: auto; max-width: min(24rem, calc(100vw - 2rem)); padding: 1.1rem 1.25rem; border: 0; border-radius: 14px; background: #fff; color: #111827; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.display-ad-popover::backdrop { background: rgba(15, 23, 42, .45); }
.display-ad-popover p { margin: .5rem 0 0; font-size: .95rem; line-height: 1.5; }

/* The tall banner beside the 1200px column: 120x600 from 1500px, 160x600 from 1580px. Below that the 300x250,
   shrunk to 200px, in the bottom corner, closable. */
.display-ad-vertical { display: none; }
.display-ad-close { display: none; }
@media (max-width: 1499.98px) {
  .display-ad-vertical { display: grid; position: fixed; bottom: 1rem; right: 1rem; z-index: 5; }
  .display-ad-vertical .display-ad-wide, .display-ad-vertical .display-ad-slim { display: none; }
  .display-ad-corner { width: 200px; box-shadow: 0 8px 24px rgba(15, 23, 42, .25); border-radius: 8px; }
  .display-ad-corner img { width: 200px; }
  .display-ad-close { display: block; position: absolute; top: -10px; right: -10px; z-index: 3; width: 1.6rem; height: 1.6rem; padding: 0; border: 0; border-radius: 50%; background: #0f172a; color: #fff; font: 700 1rem/1 system-ui, sans-serif; cursor: pointer; }
  .display-ad-close:hover, .display-ad-close:focus-visible { background: #334155; }
  /* The tariff list already shows the 300x250 under its filter; the phone's sticky offer bar owns the bottom. */
  body:has(.display-ad-side) .display-ad-corner, body:has(.od-stickybar) .display-ad-corner { display: none; }
}
@media (min-width: 1500px) {
  .display-ad-vertical .display-ad-corner { display: none; }
  .display-ad-vertical { display: grid; position: fixed; top: 7rem; right: 1.25rem; z-index: 5; }
  .display-ad-vertical .display-ad-wide { display: none; }
}
@media (min-width: 1580px) {
  .display-ad-vertical .display-ad-wide { display: block; }
  .display-ad-vertical .display-ad-slim { display: none; }
}

/* The small banner under the tariff filter (desktop). The filter scrolls with the page; the banner below it stays
   in view -- inside the sticky, scrolling filter panel it would be cut off. */
.display-ad-side { display: none; }
@media (min-width: 901px) {
  .tf-sidecol { align-self: stretch; }
  .tf-sidecol .tf-side { position: static; max-height: none; overflow: visible; }
  .display-ad-side { display: grid; justify-items: center; margin-top: 1rem; position: sticky; top: 90px; }
  .display-ad-phone-only .display-ad-horizontal { display: none; }
}

.partner-banners { margin: 2rem 0 1rem; }
.partner-banners-title { margin: 0 0 .75rem; font-weight: 800; color: var(--dark); }
.partner-banners-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.partner-banner { width: 300px; max-width: 100%; }
