/* ============================================================
   JetNet ТЗ — кастомні стилі (dev)
   Акцент: #ef1a00
   ============================================================ */

/* ============================================================
   Багатокроковий поп-ап вибору адреси (image9/11)
   ============================================================ */
.jn-popup {
  position: relative; width: 100%; max-width: 680px; background: #fff;
  border-radius: 22px; padding: 32px 34px 26px;
}
.jn-popup-close {
  position: absolute; top: 22px; right: 24px; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: #f0f0f0; cursor: pointer;
}
.jn-popup-close::before, .jn-popup-close::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px;
  background: #555; border-radius: 2px;
}
.jn-popup-close::before { transform: translate(-50%,-50%) rotate(45deg); }
.jn-popup-close::after  { transform: translate(-50%,-50%) rotate(-45deg); }

.jn-popup-title { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; letter-spacing: -0.02em; padding-right: 40px; }
.jn-popup-sub { margin-top: 8px; color: #6f6f6f; font-size: 14px; line-height: 1.45; }

/* Таби кроків */
.jn-tabs { display: flex; gap: 4px; margin: 20px 0 18px; background: #f4f4f4; border-radius: 12px; padding: 5px; overflow: hidden; }
.jn-tab {
  flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: #9a9a9a;
  padding: 9px 6px; border-radius: 9px; white-space: nowrap; cursor: default; transition: all .2s ease;
}
.jn-tab.is-active { background: #ef1a00; color: #fff; }
.jn-tab:not(.is-active):not(.is-disabled) { cursor: pointer; color: #555; }
.jn-tab.is-disabled { color: #c4c4c4; }

/* Крок 1 — тип забудови */
.jn-type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.jn-type-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  text-align: left; background: #fff; border: 1.5px solid #e8e8e8; border-radius: 16px;
  padding: 22px 22px 24px; cursor: pointer; transition: all .2s ease; min-height: 100%;
}
.jn-type-card:hover { border-color: #ef1a00; }
.jn-type-card.is-selected { border-color: #ef1a00; background: #fdece9; }
.jn-type-ico { width: 34px; height: 34px; background: no-repeat center/contain; margin-bottom: 6px; }
.jn-ico-apartment { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='18'/%3E%3Crect x='14' y='8' width='7' height='13'/%3E%3Cline x1='6' y1='7' x2='6' y2='7'/%3E%3Cline x1='6' y1='11' x2='6' y2='11'/%3E%3Cline x1='6' y1='15' x2='6' y2='15'/%3E%3C/svg%3E"); }
.jn-type-card.is-selected .jn-ico-apartment { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef1a00' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='18'/%3E%3Crect x='14' y='8' width='7' height='13'/%3E%3C/svg%3E"); }
.jn-ico-private { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23444' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E"); }
.jn-type-card.is-selected .jn-ico-private { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef1a00' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E"); }
.jn-type-name { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.jn-type-sub { color: #8a8a8a; font-size: 13px; }

/* Пошук */
.jn-search { position: relative; margin-bottom: 12px; }
.jn-search-input {
  width: 100%; border: 1.5px solid #e6e6e6; border-radius: 12px; padding: 13px 16px 13px 42px;
  font-size: 15px; outline: none; transition: border-color .2s ease;
}
.jn-search-input:focus { border-color: #ef1a00; }
.jn-search::before {
  content: ""; position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; background: no-repeat center/contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E");
}

/* Список */
.jn-list { max-height: 300px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.jn-list-item {
  display: block; width: 100%; text-align: left; background: transparent; border: 0;
  border-bottom: 1px solid #efefef; padding: 14px 14px; cursor: pointer; border-radius: 10px;
  transition: background .15s ease;
}
.jn-list-item:hover { background: #f8f8f8; }
.jn-list-item.is-selected { background: #fdece9; }
.jn-list-main { display: block; font-size: 15px; font-weight: 600; color: #1a1a1a; }
.jn-list-sub { display: block; margin-top: 2px; font-size: 12px; color: #9a9a9a; }
.jn-group-head { position: sticky; top: 0; background: #fff; z-index: 1; font-size: 12px; font-weight: 700; color: #ef1a00; text-transform: uppercase; letter-spacing: .02em; padding: 12px 14px 6px; }
.jn-empty { padding: 26px 10px; text-align: center; color: #9a9a9a; }

/* Футер */
.jn-popup-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.jn-foot-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.jn-btn { border: 0; cursor: pointer; font-size: 15px; font-weight: 700; border-radius: 40px; transition: all .2s ease; }
.jn-btn-ghost { background: #fff; border: 1.5px solid #e2e2e2; color: #333; padding: 11px 20px; }
.jn-btn-ghost:hover { border-color: #bbb; }
.jn-btn-link { background: transparent; color: #333; text-decoration: underline; padding: 6px 4px; }
.jn-btn-link:hover { color: #ef1a00; }
.jn-btn-primary { background: #ef1a00; color: #fff; padding: 13px 26px; }
.jn-btn-primary:hover { background: #d11700; }
.jn-btn-primary[disabled] { background: #f3b3aa; cursor: not-allowed; }

@media (max-width: 560px) {
  .jn-popup { padding: 26px 18px 20px; border-radius: 18px; }
  .jn-type-grid { grid-template-columns: 1fr; }
  .jn-tab { font-size: 11px; padding: 8px 4px; }
  .jn-popup-foot { flex-wrap: wrap; }
  .jn-foot-right { width: 100%; justify-content: space-between; }
}

/* ============================================================
   Сторінка покриття (Task 2)
   ============================================================ */
.coverage-tools { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 24px 0 20px; }
.coverage-tech { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.coverage-tech-label { font-weight: 700; color: #333; font-size: 15px; }
.coverage-tech-badge { font-size: 13px; font-weight: 700; color: #fff; padding: 6px 14px; border-radius: 40px; }
.tech-gpon { background: #ef1a00; }
.tech-xgs { background: #1466c7; }
.tech-xpon { background: #e08600; }
.tech-backup { background: #2e9e4b; }
.coverage-check-btn { background: #ef1a00; color: #fff; border: 0; font-weight: 700; font-size: 15px; border-radius: 40px; padding: 13px 26px; cursor: pointer; transition: background .2s ease; }
.coverage-check-btn:hover { background: #d11700; }

.coverage-list { margin-top: 40px; }
.coverage-list-title { font-family: "HelveticaNeueCyr-Black","Montserrat",sans-serif; font-size: clamp(24px,3vw,34px); letter-spacing: -0.02em; margin: 0 0 8px; }
.coverage-list-intro { color: #6f6f6f; margin: 0 0 26px; font-size: 16px; }
.coverage-group { margin-bottom: 28px; }
.coverage-group-title { font-size: 20px; font-weight: 800; color: #ef1a00; margin: 0 0 14px; letter-spacing: -0.01em; }
.coverage-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 24px; }
.coverage-links li { margin: 0; }
.coverage-links a { color: #1a1a1a; font-size: 15px; line-height: 1.5; text-decoration: none; border-bottom: 1px solid transparent; transition: color .15s ease, border-color .15s ease; }
.coverage-links a:hover { color: #ef1a00; border-color: #ef1a00; }

@media (max-width: 991px) { .coverage-links { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .coverage-links { grid-template-columns: repeat(2, 1fr); } .coverage-tools { flex-direction: column; align-items: flex-start; } }
@media (max-width: 420px) { .coverage-links { grid-template-columns: 1fr; } }

/* ---------- SEO-текст на сторінці нас. пункту ---------- */
.location-seo {
  margin-top: 40px; padding-top: 30px; border-top: 1px solid #ececec;
  color: #4a4a4a; font-size: 16px; line-height: 1.7;
}
.location-seo h2, .location-seo h3, .location-seo .h2, .location-seo .h3 {
  font-family: "HelveticaNeueCyr-Black", "Montserrat", sans-serif;
  letter-spacing: -0.02em; margin: 26px 0 14px; line-height: 1.15;
}
.location-seo h2, .location-seo .h2 { font-size: clamp(22px, 2.4vw, 30px); }
.location-seo h3, .location-seo .h3 { font-size: clamp(18px, 1.8vw, 22px); }
.location-seo p { margin: 0 0 14px; }
.location-seo a { color: #ef1a00; text-decoration: underline; }
.location-seo ul, .location-seo ol { margin: 0 0 16px; padding-left: 22px; }
.location-seo ul li { list-style: disc; margin-bottom: 8px; }
.location-seo ol li { list-style: decimal; margin-bottom: 8px; }

/* ---------- Sweet.TV блок ---------- */
.sttv { padding: 40px 0 60px; }
.sttv-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
}
.sttv-title {
  font-family: "HelveticaNeueCyr-Black", "Montserrat", sans-serif;
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.03em; line-height: 1.05; margin: 0;
}
.sttv-subtitle { margin-top: 8px; color: #6b6b6b; font-size: clamp(14px, 1.4vw, 17px); }
.sttv-accent { color: #ef1a00; font-weight: 700; }
.sttv-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #ececec; border-radius: 40px;
  padding: 10px 18px; font-size: 13px; font-weight: 600; color: #333;
  box-shadow: 0 4px 20px rgba(0,0,0,.06); white-space: nowrap;
}

.sttv-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.sttv-card {
  position: relative; background: #fff; border: 1px solid #ececec;
  border-radius: 16px; padding: 26px 24px; display: flex; flex-direction: column;
  min-height: 100%;
  box-shadow: 0 4px 30px rgba(0,0,0,.06);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.sttv-card:hover { border-color: #ef1a00; }
.sttv-card.is-popular { border-color: #ef1a00; box-shadow: 0 8px 34px rgba(239,26,0,.14); }
.sttv-card-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: #ef1a00; color: #fff; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em;
  padding: 5px 16px; border-radius: 40px; white-space: nowrap;
}
.sttv-card-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.sttv-card-desc { margin-top: 6px; color: #8a8a8a; font-size: 13px; line-height: 1.35; min-height: 34px; }
.sttv-card-price { margin: 16px 0 14px; }
.sttv-price-old { display: inline-block; color: #b3b3b3; text-decoration: line-through; font-size: 15px; }
.sttv-price-new { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.sttv-price-num {
  font-family: "HelveticaNeueCyr-Black", sans-serif; color: #ef1a00;
  font-size: 40px; line-height: 1; font-weight: 900;
}
.sttv-price-unit { color: #333; font-size: 13px; font-weight: 600; }
.sttv-card-feats { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.sttv-card-feats li { position: relative; padding-left: 24px; font-size: 14px; color: #333; }
.sttv-card-feats li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 15px; height: 15px;
  background: no-repeat center/contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ef1a00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.sttv-connect {
  margin-top: auto; display: block; width: 100%; text-align: center;
  background: #ef1a00; color: #fff; font-weight: 700; font-size: 15px;
  border-radius: 40px; padding: 14px 20px; cursor: pointer; border: 0;
  transition: background .2s ease;
}
.sttv-connect:hover { background: #d11700; }

@media (max-width: 991px) { .sttv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .sttv-grid { grid-template-columns: 1fr; }
  .sttv-head { flex-direction: column; }
}

/* ---------- Sweet.TV модалка ---------- */
.sttv-popup {
  max-width: 460px; width: 100%; background: #fff;
  border-radius: 20px; padding: 34px 34px 30px;
}
.sttv-popup-title { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.sttv-popup-intro { margin-top: 12px; color: #6b6b6b; font-size: 15px; line-height: 1.5; }
.sttv-popup-contact {
  margin: 22px 0; background: #f6f6f6; border-radius: 14px; padding: 18px 20px;
}
.sttv-popup-contact-label {
  text-transform: uppercase; letter-spacing: .03em; font-size: 11px;
  font-weight: 700; color: #9a9a9a;
}
.sttv-popup-phone {
  display: inline-block; margin: 6px 0 4px; font-size: 30px; font-weight: 900;
  color: #111; letter-spacing: -0.02em; font-family: "HelveticaNeueCyr-Black", sans-serif;
}
.sttv-popup-note { color: #9a9a9a; font-size: 13px; }
.sttv-popup-order {
  display: block; width: 100%; text-align: center; background: #ef1a00; color: #fff;
  font-weight: 700; font-size: 16px; border-radius: 40px; padding: 15px 20px;
  cursor: pointer; border: 0; transition: background .2s ease;
}
.sttv-popup-order:hover { background: #d11700; }

@media (max-width: 560px) { .sttv-popup { padding: 26px 20px 22px; } .sttv-popup-title { font-size: 20px; } }

/* ==================== Sweet.TV: доплата до інтернет-тарифу (ТЗ п.4) ==================== */
.sttv-legal {
  margin-top: 26px; padding: 14px 18px; max-width: 900px;
  background: #fff7f5; border-left: 3px solid #ef1a00; border-radius: 8px;
  color: #6b6b6b; font-size: 13px; line-height: 1.5;
}
.sttv-channels-link {
  display: block; margin: 0 0 10px; padding: 0; background: none; border: 0;
  color: #ef1a00; font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer;
}
.sttv-channels-link:hover { text-decoration: none; }

.sttv-popup-add {
  margin-top: 10px; font-size: 15px; color: #333;
}
.sttv-popup-add b { color: #ef1a00; }
.sttv-popup-contract { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.sttv-popup-contract-label { font-size: 13px; color: #6b6b6b; }
.sttv-popup-contract-input {
  min-height: 44px; padding: 0 14px; border: 1px solid #ddd; border-radius: 10px;
  font-size: 15px; outline: none; transition: border-color .2s ease;
}
.sttv-popup-contract-input:focus { border-color: #ef1a00; }

/* Модалка «Список каналів» */
.sttv-channels-popup {
  max-width: 560px; margin: 0 auto; padding: 32px 28px 26px;
  background: #fff; border-radius: 18px;
}
.sttv-ch-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sttv-ch-tab {
  display: flex; align-items: center; gap: 6px; padding: 9px 14px; min-height: 38px;
  background: #f5f5f5; border: 1px solid transparent; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #333; cursor: pointer; transition: all .2s ease;
}
.sttv-ch-tab:hover { border-color: #ef1a00; }
.sttv-ch-tab.is-active { background: #ef1a00; color: #fff; }
.sttv-ch-tab-count { font-size: 12px; opacity: .7; }
.sttv-ch-tab-count:not(:empty)::after { content: ' кан.'; }
.sttv-ch-body { margin-top: 16px; max-height: 46vh; overflow-y: auto; }
.sttv-ch-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.sttv-ch-list li { position: relative; padding-left: 22px; font-size: 14px; color: #333; }
.sttv-ch-list li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 12px; height: 12px;
  border-radius: 3px; background: #ef1a00; opacity: .15;
}
.sttv-ch-empty { color: #6b6b6b; font-size: 14px; line-height: 1.5; }
.sttv-ch-foot { margin-top: 16px; font-size: 13px; color: #9a9a9a; }
.sttv-ch-foot a { color: #ef1a00; }
@media (max-width: 560px) { .sttv-channels-popup { padding: 24px 18px 20px; } }

/* Опція «Додати ТБ» в картці інтернет-тарифу */
.jn-tv { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #e2e2e2; }
.jn-tv-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.jn-tv-check { position: absolute; opacity: 0; pointer-events: none; }
.jn-tv-toggle-track {
  flex: 0 0 auto; width: 40px; height: 22px; border-radius: 999px; background: #d9d9d9;
  position: relative; transition: background .2s ease;
}
.jn-tv-toggle-dot {
  position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: left .2s ease;
}
.jn-tv-check:checked + .jn-tv-toggle-track { background: #ef1a00; }
.jn-tv-check:checked + .jn-tv-toggle-track .jn-tv-toggle-dot { left: 21px; }
.jn-tv-toggle-label { font-size: 14px; font-weight: 700; color: #333; }
.jn-tv-body { margin-top: 12px; }
.jn-tv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.jn-tv-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 8px 12px; min-height: 44px; background: #fff; border: 1px solid #ddd; border-radius: 12px;
  cursor: pointer; transition: border-color .2s ease, box-shadow .2s ease; text-align: left;
}
.jn-tv-chip:hover { border-color: #ef1a00; }
.jn-tv-chip.is-selected { border-color: #ef1a00; box-shadow: 0 0 0 1px #ef1a00 inset; }
.jn-tv-chip-name { font-size: 13px; font-weight: 700; color: #333; }
.jn-tv-chip-add { font-size: 13px; font-weight: 800; color: #ef1a00; }
.jn-tv-chip-ch { font-size: 11px; color: #9a9a9a; }
.jn-tv-channels {
  display: block; margin: 10px 0 0; padding: 0; background: none; border: 0;
  color: #ef1a00; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer;
}
.jn-tv-channels:hover { text-decoration: none; }
.jn-tv-total { margin-top: 10px; font-size: 14px; color: #333; }
.jn-tv-total b { color: #ef1a00; font-size: 16px; }
.jn-tv-total-split { color: #9a9a9a; font-size: 12px; }

/* Десктоп: .plan-details — flex-row; опція ТБ займає повний рядок під інфо-колонками */
.plan-details:has(.jn-tv) { flex-wrap: wrap; }
.plan-details .jn-tv { flex-basis: 100%; min-width: 100%; }
