/* TeleRanking – Ranking. Te same tokeny co wyszukiwarka, operatorzy i karta oferty. */

.trr {
  --ink: #0F1010;
  --muted: #526273;
  --line: #d8e4e9;
  --soft: #F0F4F8;
  --primary: #136B5D;
  --primary-2: #2ECC71;
  --navy: #0D2B4E;
  --psoft: #e8f8ef;
  --accent: #F7B900;
  --grad: linear-gradient(135deg, #136B5D 0%, #2ECC71 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.trr *, .trr *::before, .trr *::after { box-sizing: border-box; }
.trr h1, .trr h2, .trr h3, .trr h4 { font-family: inherit; letter-spacing: 0; color: var(--ink); }
.trr a { text-decoration: none; }

/* Hero */
.trr-hero { position: relative; padding: 34px clamp(20px, 4vw, 48px); border: 1px solid rgba(13,43,78,.12); border-radius: 18px; background: linear-gradient(135deg, #fff 0%, #eef6f3 100%); box-shadow: 0 28px 70px rgba(13,43,78,.12); overflow: hidden; }
.trr-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, #136B5D, #2ECC71, #F7B900); }
.trr-kicker { margin: 0 0 8px; color: var(--primary); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.trr-hero h1 { margin: 0; max-width: 820px; font-size: clamp(26px, 3.2vw, 40px); font-weight: 850; line-height: 1.12; }
.trr-lead { max-width: 760px; margin: 14px 0 0; color: var(--muted); font-size: 17px; }
.trr-hero__row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 22px; }
.trr-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.trr-meta li { display: flex; align-items: center; gap: 7px; }
.trr-meta li::before, .trr-pc__col--pros li::before { content: ""; flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; background: var(--psoft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23136B5D' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3.2 3.2L15 7'/%3E%3C/svg%3E") center / 12px no-repeat; }

.trr-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; border: 0; border-radius: 999px; background: var(--grad); color: #fff !important; font-size: 15px; font-weight: 750; text-align: center; box-shadow: 0 16px 30px rgba(19,107,93,.24); transition: transform .14s, background .14s; }
.trr-btn:hover { background: linear-gradient(135deg, #0D2B4E, #136B5D); transform: translateY(-1px); }

.trr-section { margin-top: 38px; }
.trr-h2 { margin: 0 0 16px; font-size: clamp(21px, 2.2vw, 28px); font-weight: 850; line-height: 1.2; }
.trr-badge { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--accent); color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1.2; white-space: nowrap; }

/* Ranking w skrocie */
.trr-top { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.trr-top a { display: grid; grid-template-columns: 42px 110px minmax(0, 1fr) 110px 110px auto; gap: 14px; align-items: center; padding: 12px 16px; border: 1px solid rgba(13,43,78,.1); border-radius: 14px; background: #fff; color: var(--ink); transition: border-color .14s, box-shadow .14s, transform .14s; }
.trr-top a:hover { border-color: rgba(19,107,93,.3); box-shadow: 0 12px 26px rgba(13,43,78,.08); transform: translateY(-1px); }
.trr-top li:first-child a { border-color: rgba(247,185,0,.55); box-shadow: 0 0 0 3px rgba(247,185,0,.12); }
.trr-top__pos, .trr-op__pos { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; font-size: 17px; font-weight: 850; }
.trr-top__logo { display: flex; align-items: center; height: 36px; font-weight: 850; color: var(--navy); }
.trr .trr-top__logo img { height: 32px !important; width: auto !important; max-width: 110px !important; object-fit: contain; object-position: left center; margin: 0; }
.trr-top__name { min-width: 0; }
.trr-top__name strong { display: block; font-size: 16px; }
.trr-top__name small { display: block; color: var(--muted); font-size: 13px; }
.trr-top__stat small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.trr-top__stat strong { display: block; font-size: 15px; font-weight: 850; white-space: nowrap; }
.trr-top a .trr-badge { justify-self: end; }

/* Metodologia */
.trr-method { margin-top: 18px; border: 1px solid rgba(13,43,78,.1); border-left: 4px solid var(--primary); border-radius: 14px; background: #f8fbfc; }
.trr-method summary { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 14px 50px 14px 18px; position: relative; cursor: pointer; list-style: none; }
.trr-method summary::-webkit-details-marker { display: none; }
.trr-method summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 22px; font-weight: 700; }
.trr-method[open] summary::after { content: "−"; }
.trr-method summary span { color: var(--muted); font-size: 13px; }
.trr-method__body { padding: 0 18px 16px; color: #35404b; font-size: 14.5px; }
.trr-method__body ul { margin: 0 0 12px; padding-left: 18px; }
.trr-method__body li { margin: 4px 0; }
.trr-method__body p { margin: 8px 0 0; }
.trr-method__disclosure { color: var(--muted); font-size: 13px; }

/* Sekcja operatora */
.trr-op { position: relative; margin-top: 30px; padding: 26px clamp(18px, 3vw, 32px) 24px; border: 1px solid rgba(13,43,78,.1); border-radius: 18px; background: #fff; box-shadow: 0 14px 34px rgba(13,43,78,.07); scroll-margin-top: 120px; }
.trr-op:first-of-type { border-color: rgba(247,185,0,.5); }
.trr-op__head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.trr-op__pos { width: 46px; height: 46px; font-size: 21px; border-radius: 14px; }
.trr-op__logo { display: grid; place-items: center; width: 110px; height: 64px; padding: 8px; border: 1px solid rgba(13,43,78,.1); border-radius: 14px; background: #fff; }
.trr .trr-op__logo img { max-width: 100% !important; max-height: 46px !important; width: auto !important; height: auto !important; object-fit: contain; margin: 0; }
.trr-op__logo b { color: var(--navy); font-weight: 900; }
.trr-op__title { min-width: 0; flex: 1 1 260px; }
.trr-op__title h2 { margin: 4px 0 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 850; line-height: 1.15; }
.trr-op__title p { margin: 2px 0 0; color: var(--primary); font-weight: 700; }
.trr-op__desc { max-width: 900px; margin: 16px 0 0; color: #35404b; font-size: 16px; }

.trr-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 18px 0 0; padding: 0; }
.trr-facts div { padding: 12px 14px; border: 1px solid rgba(13,43,78,.08); border-radius: 12px; background: var(--soft); }
.trr-facts dt { margin: 0; color: var(--muted); font-size: 11.5px; font-weight: 750; text-transform: uppercase; }
.trr-facts dd { margin: 3px 0 0; font-size: 15px; font-weight: 850; line-height: 1.3; }

.trr-pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.trr-pc__col { padding: 14px 16px; border-radius: 12px; }
.trr-pc__col > strong { display: block; margin-bottom: 6px; font-size: 14px; }
.trr-pc__col ul { margin: 0; padding: 0; list-style: none; }
.trr-pc__col li { display: flex; gap: 9px; align-items: flex-start; padding: 4px 0; font-size: 14.5px; }
.trr-pc__col li::before { margin-top: 3px; }
.trr-pc__col--pros { background: #f3fbf6; border: 1px solid #cfeedd; }
.trr-pc__col--cons { background: #fffaf0; border: 1px solid #f1dfae; }
.trr-pc__col--cons li::before { content: ""; flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%; background: #fdf0c8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23996800' stroke-width='2.6' stroke-linecap='round' d='M6 10h8'/%3E%3C/svg%3E") center / 12px no-repeat; }

.trr-op__offers-title { margin: 24px 0 12px; font-size: 18px; font-weight: 850; }
.trr-offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.trr-op__links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.trr-link { color: var(--primary) !important; font-weight: 750; }
.trr-link:hover { text-decoration: underline; }

/* Karta oferty (wzor: widget "Karta Oferty", wlasny prefiks trr-) */
.trr-offer { position: relative !important; display: flex !important; flex-direction: column !important; width: 100% !important; overflow: hidden !important; margin: 0 !important; padding: 0 !important; border: 1px solid rgba(13,43,78,.11) !important; border-radius: 14px !important; background: linear-gradient(180deg, #fff 0%, #fbfdfc 100%), #fff !important; box-shadow: 0 18px 42px rgba(13,43,78,.11) !important; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.trr-offer::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--primary), var(--primary-2)); }
.trr-offer:hover { border-color: rgba(19,107,93,.26) !important; box-shadow: 0 24px 58px rgba(13,43,78,.15) !important; transform: translateY(-2px); }
.trr-offer__body { flex: 1 1 auto; padding: 18px !important; }
.trr-offer__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.trr-offer__meta { display: flex; align-items: center; min-height: 30px; }
.trr .trr-offer__logo { display: block !important; height: 28px !important; width: auto !important; max-width: 120px !important; max-height: 28px !important; margin: 0 !important; object-fit: contain !important; object-position: left center; }
.trr-offer__price { flex: 0 0 auto; text-align: right; }
.trr-offer__price strong { display: block; color: var(--primary); font-size: 26px; font-weight: 850; line-height: 1.05; white-space: nowrap; }
.trr-offer__price span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 650; }
.trr-offer h4 { margin: 12px 0 0 !important; font-size: 17px !important; font-weight: 800 !important; line-height: 1.2 !important; }
.trr-offer__schedule { margin: 6px 0 0 !important; color: var(--muted); font-size: 12.5px; font-weight: 650; line-height: 1.35; }
.trr-offer__specs { margin: 14px 0 0 !important; padding: 0 !important; border-top: 1px solid rgba(13,43,78,.1); }
.trr-offer__specs > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(13,43,78,.07); font-size: 14px; line-height: 1.3; }
.trr-offer__specs dt { margin: 0; color: #435467; font-weight: 600; }
.trr-offer__specs dd { margin: 0; font-weight: 750; text-align: right; }
.trr-offer__specs .is-key dt, .trr-offer__specs .is-key dd { color: var(--navy); font-weight: 850; }
.trr-offer__specs .is-included dt, .trr-offer__specs .is-included dd { color: #1d7a45; }
.trr-offer__promo { margin: 12px 0 0; padding: 9px 12px; border: 1px solid rgba(46,204,113,.4); border-radius: 10px; background: rgba(232,248,239,.9); color: #1d7a45; font-size: 13px; font-weight: 700; }
.trr-offer__note { margin: 10px 0 0; padding: 9px 12px; border: 1px solid rgba(247,185,0,.45); border-radius: 10px; background: #fff8e1; color: #7a5200; font-size: 13px; font-weight: 600; line-height: 1.35; }
.trr-offer__actions { display: grid; gap: 8px; margin-top: auto; padding: 14px 18px 16px; border-top: 1px solid rgba(13,43,78,.08); background: #f8fbfc; }
.trr-offer__button { display: inline-flex !important; width: 100%; min-height: 46px; align-items: center; justify-content: center; border-radius: 999px; padding: 11px 18px; background: var(--grad) !important; color: #fff !important; font-size: 13.5px; font-weight: 750; text-align: center; transition: background 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
.trr-offer__button:hover { background: linear-gradient(135deg, var(--navy), var(--primary)) !important; box-shadow: 0 10px 22px rgba(19,107,93,.22); transform: translateY(-1px); }
.trr-offer__phone { margin: 0; color: #5f6b7a; font-size: 13px; text-align: center; }
.trr-offer__phone a { color: var(--primary) !important; font-weight: 700; text-decoration: underline !important; text-underline-offset: 2px; }

/* Tabela */
.trr-table-wrap { overflow-x: auto; border: 1px solid rgba(13,43,78,.1); border-radius: 16px; background: #fff; box-shadow: 0 12px 30px rgba(13,43,78,.07); }
.trr-table { width: 100%; min-width: 760px; margin: 0; border-collapse: collapse; font-size: 14px; }
.trr-table th, .trr-table td { padding: 12px 14px; border: 0; border-bottom: 1px solid #e7ebf0; text-align: center; background: transparent; }
.trr-table thead th { background: var(--soft); color: var(--navy); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.trr-table .trr-left { text-align: left; }
.trr-table tbody th a { color: var(--ink); font-weight: 800; }
.trr-table tbody th a:hover { color: var(--primary); }
.trr-table tbody tr:first-child { background: #fffcf0; }
.trr-table tbody tr:last-child th, .trr-table tbody tr:last-child td { border-bottom: 0; }
.trr-note { margin: 10px 2px 0; color: #7b8794; font-size: 12px; }

/* FAQ */
.trr-faq { display: grid; gap: 10px; }
.trr-faq details { border: 1px solid rgba(13,43,78,.1); border-radius: 14px; background: #fff; }
.trr-faq summary { position: relative; padding: 16px 50px 16px 18px; font-weight: 750; cursor: pointer; list-style: none; }
.trr-faq summary::-webkit-details-marker { display: none; }
.trr-faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--primary); font-size: 22px; font-weight: 700; }
.trr-faq details[open] summary::after { content: "−"; }
.trr-faq details p { margin: 0; padding: 0 18px 16px; color: #35404b; font-size: 15px; }

/* CTA */
.trr-cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: 38px; padding: 28px clamp(20px, 4vw, 40px); border-radius: 18px; background: var(--navy); color: #fff; box-shadow: 0 18px 42px rgba(13,43,78,.22); }
.trr-cta h2 { margin: 0; color: #fff; font-size: clamp(20px, 2.2vw, 26px); font-weight: 850; }
.trr-cta p { margin: 6px 0 0; color: rgba(255,255,255,.82); }

@media (max-width: 980px) {
  .trr-offers { grid-template-columns: 1fr; max-width: 520px; }
  .trr-top a { grid-template-columns: 38px 90px minmax(0, 1fr) auto; }
  .trr-top__stat--max, .trr-top a .trr-badge { display: none; }
}
@media (max-width: 560px) {
  .trr-hero { padding: 24px 18px; }
  .trr-hero__row .trr-btn, .trr-cta .trr-btn { width: 100%; }
  .trr-top a { grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px; }
  .trr-top__logo { display: none; }
  .trr-top__pos { width: 32px; height: 32px; font-size: 15px; border-radius: 10px; }
  .trr-pc { grid-template-columns: 1fr; }
  .trr-op { padding: 20px 14px; }
  .trr-op__logo { width: 88px; height: 52px; }
  .trr-offer__price strong { font-size: 23px; }
}

/* =====================================================================
   DESIGN 2026-11, krok 5: rankingi w stylu serwisu (jak operatorzy):
   zielone hero, żółte przyciski, karty z ramką #DFE7E5 i miękkim cieniem, Archivo.
   ===================================================================== */
.trr {
  --ink: #041B16;
  --muted: #4B5A57;
  --line: #DFE7E5;
  --soft: #EDF5F4;
  --navy: #0E5348;
  --psoft: #E3F2EE;
  --grad: linear-gradient(135deg, #1A7A6A 0%, #136B5D 55%, #0E5348 100%);
}
.trr h1, .trr h2, .trr h3, .trr h4 { font-family: "Archivo", sans-serif; letter-spacing: -.01em; }
.trr h2 { font-weight: 900; }
.trr-hero { overflow: hidden; padding: 40px clamp(22px, 4vw, 52px); border: 0; border-radius: 24px; background: linear-gradient(160deg, #1A7A6A 0%, #136B5D 50%, #0E5348 100%); box-shadow: 0 22px 50px rgba(14,83,72,.28); color: #fff; }
.trr-hero::before { inset: auto; right: -160px; top: -200px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.12), rgba(255,255,255,0) 70%); pointer-events: none; }
.trr-hero > * { position: relative; }
.trr-hero h1 { color: #fff; font-weight: 900; }
.trr-hero .trr-kicker { color: #F7B900; letter-spacing: .08em; }
.trr-hero .trr-lead { color: rgba(255,255,255,.9); }
.trr-hero .trr-lead a { color: #fff; text-decoration: underline; }
.trr-hero .trr-meta { color: #fff; }
.trr-hero .trr-meta li::before { background: #F7B900 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23041B16' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round' d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center/70% no-repeat; }
.trr-btn { background: #F7B900; color: #041B16 !important; font-family: "Archivo", sans-serif; font-weight: 800; box-shadow: 0 10px 24px rgba(247,185,0,.3); }
.trr-btn:hover { background: #FFB000; }
.trr-top a, .trr-method, .trr-op, .trr-faq details, .trr-cta, .trr-box { border-color: #DFE7E5 !important; border-radius: 20px; box-shadow: 0 6px 18px rgba(4,27,22,.06); }
.trr-top { gap: 12px; }
.trr-method { border-left-width: 1px; }
.trr-badge { color: #041B16; }
.trr-section { margin-top: 64px; }
.trr-op { margin-top: 32px; }
.trr-cta { margin-top: 64px; border-radius: 24px; background: var(--grad); }
.trr-faq summary { font-family: "Archivo", sans-serif; font-size: 17px; font-weight: 700; padding: 18px 54px 18px 22px; }
.trr-faq details[open] summary { color: #136B5D; }
.trr-faq details p { color: var(--muted); padding: 0 22px 18px; }
@media (max-width: 767px) { .trr-section, .trr-cta { margin-top: 48px; } }
