/* =====================================================================
   Motyw „Telesat” — jasny, lokalny.
   Nadpisuje assets/css/front.css. Kolor przewodni z ustawień:
   var(--accent), var(--accent-dark), var(--accent-soft).
   ===================================================================== */

:root {
  --ts-ink:        #0a2540;   /* nagłówki, ciemne tła */
  --ts-ink-2:      #0a3a66;   /* pasek górny */
  --ts-text:       #1c2b3a;
  --ts-muted:      #4a5d71;   /* AA na białym i na --ts-sky */
  --ts-line:       #e3eaf2;
  --ts-sky:        #eef5fc;   /* tło hero */
  --ts-soft:       #f6f9fc;   /* tło sekcji */
  --ts-radius:     16px;
  --ts-display:    'Barlow Semi Condensed', 'Arial Narrow', sans-serif;

  --bg:            #ffffff;
  --text:          var(--ts-text);
  --text-muted:    var(--ts-muted);
  --border:        var(--ts-line);
  --font:          'Source Sans 3', -apple-system, 'Segoe UI', sans-serif;
  --container:     1280px;
}

body.theme-telesat {
  font-weight: 400;
  font-size: 1.0625rem;
  letter-spacing: 0;
  background: #fff;
}
.theme-telesat main h1, .theme-telesat main h2, .theme-telesat main h3, .theme-telesat main h4 {
  font-family: var(--ts-display);
  color: var(--ts-ink);
  font-weight: 700;
  letter-spacing: 0;
}

/* ---------- Przyciski ---------- */
.ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ts-display);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.ts-btn--lg { font-size: 1rem; padding: 15px 26px; }
.ts-btn--primary { background: var(--accent); color: #fff; }
.ts-btn--primary:hover { background: var(--accent-dark); color: #fff; }
.ts-btn--outline { border-color: var(--accent); color: var(--accent-dark); background: #fff; }
.ts-btn--outline:hover { background: var(--accent-soft); color: var(--accent-dark); }
.ts-btn--ghost { background: #fff; border-color: #c9d8e8; color: var(--ts-ink); }
.ts-btn--ghost:hover { border-color: var(--accent); color: var(--accent-dark); }

.ts-eyebrow {
  display: block;
  font-family: var(--ts-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.ts-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ts-muted);
  margin-bottom: 4px;
}
.ts-link-arrow { font-weight: 600; font-size: .95rem; color: var(--accent-dark); }

/* ---------- Pasek górny ---------- */
.ts-topbar { background: var(--ts-ink-2); color: #e6f0fa; font-size: .9rem; }
.ts-topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 40px; }
.ts-topbar__item { display: inline-flex; align-items: center; gap: 8px; color: #e6f0fa; }
a.ts-topbar__item:hover { color: #fff; }
.ts-topbar__spacer { flex: 1; }
.ts-topbar__link { color: #e6f0fa; font-weight: 600; }
.ts-topbar__link:hover { color: #fff; text-decoration: underline; }

/* ---------- Nagłówek ---------- */
.theme-telesat .site-header { box-shadow: none; border-bottom: 1px solid var(--ts-line); }
.theme-telesat .header-inner { min-height: 84px; gap: 24px; }
.theme-telesat .brand { flex-shrink: 0; }
.theme-telesat .brand img { height: 56px; width: auto; max-width: none; }
.theme-telesat .brand__text { font-family: var(--ts-display); font-weight: 700; font-size: 1.4rem; color: var(--ts-ink); }
.theme-telesat .nav { font-family: var(--ts-display); }
.theme-telesat .nav a { color: var(--ts-text); font-weight: 500; font-size: 1.05rem; }

@media (min-width: 1201px) {
  .theme-telesat .header-inner { justify-content: space-between; align-items: center; gap: 24px; }
  .theme-telesat .nav { align-items: center; flex: 1; justify-content: center; }
  .theme-telesat .nav > ul { gap: 2px; flex-wrap: nowrap; align-items: center; }
  .theme-telesat .nav > ul > li { border-left: none; display: block; }
  .theme-telesat .nav > ul > li > a {
    height: auto;
    padding: 10px 12px;
    border-radius: 8px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--ts-text);
  }
  .theme-telesat .nav > ul > li > a::before { display: none; }
  .theme-telesat .nav > ul > li > a .nav-ico { display: none; }
  /* Najechanie / aktywna pozycja: bez tła — kolor akcentu + linia pod tekstem
     (wysuwana od środka). */
  .theme-telesat .nav > ul > li > a { position: relative; background: none; }
  .theme-telesat .nav > ul > li > a::after {
    content: '';
    position: absolute;
    left: 12px; right: 12px; bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .2s var(--ease);
  }
  .theme-telesat .nav > ul > li > a:hover,
  .theme-telesat .nav > ul > li.has-children:hover > a,
  .theme-telesat .nav > ul > li > a.is-active {
    color: var(--accent-dark);
    background: none;
  }
  .theme-telesat .nav > ul > li > a:hover::after,
  .theme-telesat .nav > ul > li.has-children:hover > a::after,
  .theme-telesat .nav > ul > li > a.is-active::after { transform: scaleX(1); }

  /* Podmenu: bez tła przy najechaniu — kolor akcentu i pionowy pasek z lewej. */
  .theme-telesat .nav .submenu { border-radius: 12px; border-color: var(--ts-line); padding: 8px 0; }
  .theme-telesat .nav .submenu a {
    position: relative;
    border-radius: 0;
    padding: 10px 22px;
    background: none;
    transition: color .15s var(--ease);
  }
  .theme-telesat .nav .submenu a::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--accent);
    opacity: 0;
    transition: opacity .15s var(--ease);
  }
  .theme-telesat .nav .submenu a:hover,
  .theme-telesat .nav .submenu a.is-active { color: var(--accent-dark); background: none; }
  .theme-telesat .nav .submenu a:hover::before,
  .theme-telesat .nav .submenu a.is-active::before { opacity: 1; }
}
@media (max-width: 1500px) and (min-width: 1201px) {
  .theme-telesat .ts-header-cta { display: none; }
}
@media (max-width: 1320px) and (min-width: 1201px) {
  .theme-telesat .nav > ul > li > a { padding: 10px 8px; font-size: .9rem; }
}
@media (max-width: 1200px) {
  .theme-telesat .header-inner { min-height: 68px; }
  .theme-telesat .brand img { height: 44px; }
  .ts-topbar__address { display: none; }
}
@media (max-width: 560px) {
  .ts-header-cta { display: none; }
  .ts-topbar__inner { gap: 14px; font-size: .85rem; }
}

/* ---------- Nagłówek podstrony ---------- */
.theme-telesat .page-hero { background: var(--ts-sky); border-bottom: none; padding: 40px 0 36px; }
.theme-telesat .page-hero h1 {
  font-family: var(--ts-display);
  font-weight: 700;
  color: var(--ts-ink);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
}
.theme-telesat .breadcrumb li:last-child { color: var(--ts-muted); }

/* ---------- Strona główna: hero ---------- */
.ts-hero { background: var(--ts-sky); padding: 72px 0 80px; }
.ts-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.ts-hero__grid--single { grid-template-columns: minmax(0, 1fr); max-width: 820px; }
.ts-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); line-height: 1.08; margin: 0 0 20px; }
.ts-hero__lead { font-size: 1.2rem; line-height: 1.55; color: var(--ts-muted); max-width: 36em; margin: 0 0 28px; }
.ts-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ts-hero__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.ts-hero-card {
  background: #fff;
  border-radius: 18px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ts-text);
  box-shadow: 0 10px 30px rgba(10, 37, 64, .08);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.ts-hero-card:hover { color: var(--ts-text); transform: translateY(-3px); box-shadow: 0 16px 36px rgba(10, 37, 64, .12); }
.ts-hero-card__title { font-family: var(--ts-display); font-weight: 700; font-size: 1.45rem; color: var(--ts-ink); }
.ts-hero-card__price { color: var(--ts-muted); }
.ts-hero-card__price { line-height: 1.35; white-space: nowrap; }
.ts-hero-card__price strong { color: var(--ts-ink); font-family: var(--ts-display); font-weight: 700; font-size: 1.4rem; }
.ts-icon-tile {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

/* ---------- Sekcje ---------- */
.ts-section { padding: 88px 0; }
.ts-section--soft { background: var(--ts-soft); }
.ts-section__head { margin-bottom: 36px; }
.ts-section__head--center { text-align: center; }
.ts-section__head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }

.ts-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ts-service {
  border: 1px solid var(--ts-line);
  border-radius: var(--ts-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ts-text);
  background: #fff;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
a.ts-service:hover { color: var(--ts-text); border-color: var(--accent); box-shadow: 0 8px 24px rgba(10, 37, 64, .06); }
.ts-service__icon { font-size: 1.6rem; color: var(--accent-dark); }
.ts-service__title { font-family: var(--ts-display); font-weight: 700; font-size: 1.15rem; color: var(--ts-ink); }
.ts-service__text { font-size: .97rem; line-height: 1.5; color: var(--ts-muted); }

@media (max-width: 1100px) { .ts-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .ts-hero { padding: 48px 0 56px; }
  .ts-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .ts-section { padding: 60px 0; }
}
@media (max-width: 560px) { .ts-services { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pakiety ---------- */
.ts-segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  background: #fff;
  border: 1px solid #d7e2ee;
  border-radius: 12px;
  margin: 0 0 28px;
}
.ts-segmented .pkg-period-btn {
  border: none;
  border-radius: 9px;
  background: none;
  padding: 10px 18px;
  font-family: var(--ts-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ts-muted);
}
.ts-segmented .pkg-period-btn:hover { background: var(--ts-soft); color: var(--ts-ink); }
.ts-segmented .pkg-period-btn.is-active { background: var(--ts-ink); color: #fff; }

.ts-pkg-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.ts-pkg.pkg-card {
  border: 1px solid var(--ts-line);
  border-radius: 18px;
  padding: 30px;
  gap: 0;
  box-shadow: none;
  overflow: visible;
}
.ts-pkg.pkg-card:hover { transform: none; box-shadow: 0 10px 28px rgba(10, 37, 64, .08); }
.ts-pkg__name { font-family: var(--ts-display); font-weight: 700; font-size: 1.05rem; color: var(--ts-muted); margin-bottom: 10px; }
.ts-pkg__badge { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }
.ts-pkg__speed { font-family: var(--ts-display); font-weight: 700; font-size: 2.3rem; line-height: 1.1; color: var(--ts-ink); }
.ts-pkg__upload { font-size: .95rem; color: var(--ts-muted); margin-top: 4px; }
.ts-pkg__features { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--ts-line); display: flex; flex-direction: column; gap: 8px; }
.ts-pkg__features li { display: flex; gap: 8px; align-items: flex-start; font-size: .98rem; color: var(--ts-text); }
.ts-pkg__features svg { color: var(--accent-dark); flex-shrink: 0; margin-top: 4px; }
.ts-pkg__footer { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.ts-pkg__price { display: flex; align-items: baseline; gap: 6px; }
.ts-pkg__price .pkg-price__amount { font-family: var(--ts-display); font-weight: 700; font-size: 2rem; color: var(--ts-ink); }
.ts-pkg__suffix { font-weight: 600; color: var(--ts-muted); }
.ts-pkg__savings { font-size: .9rem; color: var(--accent-dark); font-weight: 600; }
.ts-pkg__cta { width: 100%; }

.ts-pkg--popular.pkg-card { background: var(--ts-ink); border-color: var(--ts-ink); }
.ts-pkg--popular .ts-pkg__name { color: #9fc4ea; }
.ts-pkg--popular .ts-pkg__speed,
.ts-pkg--popular .ts-pkg__price .pkg-price__amount { color: #fff; }
.ts-pkg--popular .ts-pkg__upload,
.ts-pkg--popular .ts-pkg__suffix,
.ts-pkg--popular .ts-pkg__features li { color: #d3e3f3; }
.ts-pkg--popular .ts-pkg__features { border-top-color: #24405f; }
.ts-pkg--popular .ts-pkg__features svg,
.ts-pkg--popular .ts-pkg__savings { color: #9fc4ea; }

/* ---------- Aktualności ---------- */
.ts-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.ts-news__card { display: flex; flex-direction: column; border: 1px solid var(--ts-line); border-radius: var(--ts-radius); overflow: hidden; color: var(--ts-text); background: #fff; }
.ts-news__card:hover { color: var(--ts-text); border-color: var(--accent); }
.ts-news__card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.ts-news__body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.ts-news__date { font-size: .85rem; color: var(--ts-muted); }
.ts-news__title { font-family: var(--ts-display); font-weight: 700; font-size: 1.1rem; color: var(--ts-ink); line-height: 1.3; }
.ts-news__text { font-size: .95rem; color: var(--ts-muted); line-height: 1.55; }

/* ---------- Treść podstron ---------- */
.theme-telesat .article-content { font-size: 1.06rem; line-height: 1.7; }
.theme-telesat .article-content h2,
.theme-telesat .article-content h3 { color: var(--ts-ink); }
.theme-telesat .article-content table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: 1rem; }
.theme-telesat .article-content th,
.theme-telesat .article-content td { border-bottom: 1px solid var(--ts-line); padding: 10px 12px; text-align: left; }
.theme-telesat .article-content th { font-family: var(--ts-display); font-weight: 700; color: var(--ts-ink); background: var(--ts-soft); }

/* ---------- Stopka ---------- */
.ts-footer.site-footer { padding-top: 0; background: var(--ts-ink); }
.ts-footer.site-footer::before { display: none; }
.ts-footer__contact { background: #fff; color: var(--ts-text); border-top: 1px solid var(--ts-line); padding: 56px 0; }
.ts-footer__contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.ts-footer__lead { display: flex; flex-direction: column; gap: 6px; }
.ts-footer__lead-title { font-family: var(--ts-display); font-weight: 700; font-size: 1.6rem; color: var(--ts-ink); }
.ts-footer__lead-text { color: var(--ts-muted); }
.ts-footer__col { display: flex; flex-direction: column; gap: 2px; font-size: 1.05rem; }
.ts-footer .ts-footer__contact a { color: var(--accent-dark); opacity: 1; }
.ts-footer .ts-footer__contact a.ts-footer__phone { font-family: var(--ts-display); font-weight: 700; font-size: 1.6rem; }
.ts-footer__name { display: block; font-family: var(--ts-display); font-weight: 700; font-size: 1.25rem; color: #fff; margin-bottom: 12px; }
.ts-footer .footer-bottom { color: #b8cce0; }
.ts-footer h4 { color: #fff; font-family: var(--ts-display); }
.ts-footer__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); }
.ts-footer__grid:has(> :nth-child(3)) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
.ts-footer__grid ul { display: block; column-count: 2; column-gap: 32px; }
.ts-footer__grid li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 760px) { .ts-footer__grid, .ts-footer__grid:has(> :nth-child(3)) { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .ts-footer__contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Slider: jasne banery → ciemne strzałki i kropki ---------- */
.theme-telesat .hero-slider { background: var(--ts-sky); }
.theme-telesat .hero-slider__arrow { background: rgba(10, 37, 64, .55); color: #fff; }
.theme-telesat .hero-slider__arrow:hover { background: rgba(10, 37, 64, .8); }
.theme-telesat .hero-slider__dot { background: rgba(10, 37, 64, .3); }
.theme-telesat .hero-slider__dot.is-active { background: var(--ts-ink); }

/* Przyciski i pola ze wspólnego front.css (tam „pigułki” 999px) — w tym motywie
   to samo zaokrąglenie co .ts-btn. Etykiety/chipy (daty, tagi) zostają okrągłe. */
.theme-telesat .btn,
.theme-telesat .contact-submit,
.theme-telesat .popup-btn,
.theme-telesat .cookiebar__accept,
.theme-telesat .pkg-channels__btn,
.theme-telesat .file-item__btn,
.theme-telesat .pkg-channels-modal__search,
.theme-telesat .tv-search__input,
.theme-telesat .tv-tier-tabs,
.theme-telesat .view-toggle { border-radius: 10px; }
.theme-telesat .tv-tier-tabs .tv-tab-btn,
.theme-telesat .view-toggle__btn { border-radius: 7px; }

/* Czcionka nagłówkowa (Barlow Semi Condensed) także na elementach ze wspólnego
   front.css: nazwy pakietów, ceny, zakładki, przyciski, podsumowanie konfiguratora. */
.theme-telesat .pkg-name,
.theme-telesat .pkg-price__amount,
.theme-telesat .tv-card__name,
.theme-telesat .kfg-section__title,
.theme-telesat .kfg-summary__total,
.theme-telesat .kfg-toggle__label,
.theme-telesat .tv-tab-btn,
.theme-telesat .pkg-period-btn,
.theme-telesat .pkg-group-btn,
.theme-telesat .btn,
.theme-telesat .contact-submit,
.theme-telesat .pkg-cta,
.theme-telesat .pkg-channels__btn,
.theme-telesat .kfg-summary__cta { font-family: var(--ts-display); letter-spacing: 0; }
