/*
Оформлення сторінки «Домашній інтернет».

Усе під класом .hi, щоб нічого не витекло на решту сайту. Базові кольори взяті
з теми Мультитесту: помаранчевий #ff6423 і чорнило #2e4348, решта відтінків
похідні від них.

Текст сторінки набирається 16 пікселями замість загальносайтових 14: сторінка
довга і читається, а не проглядається.
*/

.hi {
  --ink: #2e4348;
  --ink-soft: #5d7076;
  --ink-faint: #84969b;
  --line: #e3e9ea;
  --line-strong: #cfd8da;
  --surface: #ffffff;
  --canvas: #f6f8f8;
  --accent: #ff6423;
  --accent-dark: #e14f13;
  --accent-soft: #fff1ea;
  --power: #1f8a5b;
  --power-soft: #e8f5ee;

  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

.hi *,
.hi *::before,
.hi *::after { box-sizing: border-box; }

/* ---------- типографіка ---------- */

.hi h2 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}

.hi h3 {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}

.hi p { margin: 0 0 14px; }
.hi p:last-child { margin-bottom: 0; }

/* Рядок довжиною в усі 1140 пікселів читати важко, тому суцільний текст
   тримається у межах приблизно 90 символів */
.hi section.content > p,
.hi .hi-power p { max-width: 900px; }

.hi .hi-lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 760px;
  margin-bottom: 26px;
}

.hi .hi-note {
  font-size: 14px;
  color: var(--ink-faint);
}

/* Перелік з поясненнями: перше слово рядка тримає структуру, решта пояснює */
.hi .hi-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 900px;
}

.hi .hi-list li {
  position: relative;
  padding: 0 0 0 20px;
  margin-bottom: 10px;
}

.hi .hi-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hi .hi-list li:last-child { margin-bottom: 0; }

.hi section.content {
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

.hi section.content:first-of-type { border-top: 0; }

/* ---------- кнопки ---------- */

.hi .btn {
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  padding: 14px 26px;
  text-transform: none;
  letter-spacing: 0;
  border: 1px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.hi .btn-warning,
.hi .btn-base {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.hi .btn-warning:hover,
.hi .btn-base:hover,
.hi .btn-warning:focus,
.hi .btn-base:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

/* Другорядна кнопка: на світлому тлі це рамка, а не білий прямокутник,
   який на білому фоні майже не видно */
.hi .btn-base-inverse {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
  font-size: 16px;
  text-transform: none;
}

.hi .btn-base-inverse:hover,
.hi .btn-base-inverse:focus {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.hi .btn:focus-visible {
  outline: 3px solid rgba(255, 100, 35, .45);
  outline-offset: 2px;
}

/* ---------- шапка ---------- */

.hi .hi-hero {
  position: relative;
  background-position: center;
  background-size: cover;
  color: #fff;
  padding: 0;
}

/*
Затемнення поверх фото. Знімки в кожної сторінки свої і різні за яскравістю,
тому шарів два: рівна заливка глушить світлі кадри цілком, а градієнт зверху
лишає праву частину трохи прозорішою, щоб фото читалося як текстура.
*/
.hi .hi-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(18, 32, 36, .82) 0%, rgba(18, 32, 36, .58) 45%, rgba(18, 32, 36, .10) 100%),
    rgba(18, 32, 36, .48);
}

.hi .hi-hero > .container {
  position: relative;
  padding-top: 54px;
  padding-bottom: 54px;
}

.hi .hi-hero .breadcrumb {
  background: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 14px;
}

.hi .hi-hero .breadcrumb,
.hi .hi-hero .breadcrumb a { color: rgba(255, 255, 255, .8); }
.hi .hi-hero .breadcrumb a:hover { color: #fff; }

.hi .hi-hero h1 {
  font-size: 42px;
  line-height: 1.12;
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  max-width: 780px;
}

.hi .hi-hero .hi-hero__sub {
  font-size: 19px;
  line-height: 1.5;
  font-weight: 400;
  color: rgba(255, 255, 255, .92);
  max-width: 640px;
  margin: 0 0 28px;
}

.hi .hi-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.hi .hi-stats li {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  padding: 12px 18px;
  min-width: 168px;
}

.hi .hi-stats b {
  display: block;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.hi .hi-stats span {
  font-size: 14px;
  color: rgba(255, 255, 255, .82);
}

.hi .hi-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Тема сайту вішає на посилання-кнопки в обкладинці бічні відступи у відсотках,
   через які друга кнопка від'їжджала в інший кінець екрана */
.hi .hi-hero__actions > .btn { margin: 0; }

/* Друга кнопка стоїть у парі з першою, тому та сама форма і той самий розмір,
   різниця тільки в заливці */
.hi .hi-hero .btn-base-inverse {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, .85);
  color: #fff;
  padding: 13px 25px;
}

.hi .hi-hero .btn-base-inverse:hover,
.hi .hi-hero .btn-base-inverse:focus {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

/* ---------- прокрутка до розділів ---------- */

/* Плавність робить скрипт, а не scroll-behavior: там, де плавна прокрутка
   недоступна, це правило зупиняє і звичайну, і сторінка перестає гортатись */

/* Розділ зупиняється під фіксованою шапкою сайту і липкою навігацією */
.hi section.content,
.hi [id] { scroll-margin-top: 108px; }

/* ---------- якірна навігація ---------- */

.hi-anchors {
  position: sticky;
  /* Шапка сайту фіксована і має 52 пікселі заввишки */
  top: 52px;
  z-index: 60;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(46, 67, 72, .04);
}

.hi-anchors ul {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.hi-anchors ul::-webkit-scrollbar { display: none; }

.hi-anchors li { flex: 0 0 auto; }

.hi-anchors a {
  display: block;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 15px;
  line-height: 1.2;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}

.hi-anchors a:hover,
.hi-anchors a:focus {
  color: var(--ink);
  background: var(--canvas);
  text-decoration: none;
}

.hi-anchors a.is-current {
  background: var(--accent-soft);
  border-color: rgba(255, 100, 35, .35);
  color: var(--accent-dark);
  font-weight: 600;
}

/* ---------- таблиця цін ---------- */

.hi .hi-prices {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.hi .hi-prices table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.hi .hi-prices th,
.hi .hi-prices td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.hi .hi-prices thead th {
  background: var(--canvas);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line-strong);
}

.hi .hi-prices tbody tr:last-child th,
.hi .hi-prices tbody tr:last-child td { border-bottom: 0; }

.hi .hi-prices tbody th {
  font-weight: 600;
  width: 34%;
}

.hi .hi-prices .hi-price {
  display: block;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.hi .hi-prices .hi-range {
  display: block;
  font-size: 14px;
  color: var(--ink-faint);
}

.hi .hi-prices tbody tr:hover { background: var(--canvas); }

/* ---------- сітка карток ---------- */

.hi .hi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 8px;
}

/* Плитки на сайті мають жорсткі 400 пікселів висоти, через що під двома
   абзацами лишалась порожня половина екрана */
.hi .hi-card {
  height: auto;
  min-height: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 24px;
}

.hi .hi-card p:last-child { margin-bottom: 0; }

.hi .hi-card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

/* ---------- провайдери ---------- */

.hi .hi-isps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hi .hi-isp {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
}

.hi .hi-isp__head { display: flex; align-items: center; gap: 14px; }

.hi .hi-isp__logo {
  flex: 0 0 auto;
  width: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hi .hi-isp__logo img { max-width: 100%; height: auto; }

.hi .hi-isp__reviews { font-size: 13px; color: var(--ink-faint); }

.hi .hi-isp__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0;
  font-size: 14px;
}

.hi .hi-isp__facts div { display: flex; align-items: baseline; gap: 5px; }
.hi .hi-isp__facts dt { color: var(--ink-faint); font-weight: 400; }
.hi .hi-isp__facts dd { margin: 0; font-weight: 600; }

.hi .hi-isp__tech {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.hi .hi-isp__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hi .hi-isp__badges:empty { display: none; }

.hi .hi-isp__badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--power);
  background: var(--power-soft);
  border-radius: 100px;
  padding: 3px 10px;
}

.hi .hi-isp__badge--ip {
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.hi .hi-isp__actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}

.hi .hi-isp__link {
  flex: 1 1 auto;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.hi .hi-isp__link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
  text-decoration: none;
}

/* ---------- блок про світло ---------- */

.hi .hi-power {
  background: var(--power-soft);
  border: 1px solid rgba(31, 138, 91, .25);
  border-radius: 12px;
  padding: 24px 26px;
}

.hi .hi-power__badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: var(--power);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

/* ---------- кроки ---------- */

.hi .hi-steps {
  list-style: none;
  counter-reset: hi-step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hi .hi-steps li {
  counter-increment: hi-step;
  position: relative;
  padding: 18px 20px 18px 62px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.hi .hi-steps li::before {
  content: counter(hi-step);
  position: absolute;
  left: 20px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 28px;
  text-align: center;
}

/* ---------- акордеон ---------- */

.hi .hi-faq {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}

.hi .hi-faq details { border-top: 1px solid var(--line); }
.hi .hi-faq details:first-child { border-top: 0; }

.hi .hi-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.hi .hi-faq summary::-webkit-details-marker { display: none; }

.hi .hi-faq summary:hover { background: var(--canvas); }

.hi .hi-faq summary:focus-visible {
  outline: 3px solid rgba(255, 100, 35, .45);
  outline-offset: -3px;
}

/* Плюс, який перетворюється на мінус */
.hi .hi-faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--accent), var(--accent)) center/14px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center/2px 14px no-repeat;
  transition: transform .2s ease;
}

.hi .hi-faq details[open] summary::after {
  background: linear-gradient(var(--accent), var(--accent)) center/14px 2px no-repeat;
  transform: rotate(180deg);
}

.hi .hi-faq .hi-faq__body {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  max-width: 900px;
}

/* ---------- заклики до дії ---------- */

.hi .hi-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 26px 0 0;
}

.hi .hi-cta__text { max-width: 560px; }

.hi .hi-cta__text b {
  display: block;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}

.hi .hi-cta__text span { color: var(--ink-soft); }

.hi .hi-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hi .hi-cta--final {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  justify-content: center;
  text-align: center;
  padding: 34px 26px;
  margin-top: 40px;
}

.hi .hi-cta--final .hi-cta__text { max-width: 640px; }
.hi .hi-cta--final .hi-cta__text b { font-size: 24px; color: #fff; }
.hi .hi-cta--final .hi-cta__text span { color: rgba(255, 255, 255, .78); }

.hi .hi-cta--final .btn-base-inverse {
  background: transparent;
  border-color: rgba(255, 255, 255, .5);
  color: #fff;
}

.hi .hi-cta--final .btn-base-inverse:hover,
.hi .hi-cta--final .btn-base-inverse:focus {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

/* ---------- посилання далі ---------- */

.hi .hi-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hi .hi-links a {
  display: block;
  height: 100%;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}

.hi .hi-links a:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.hi .hi-links b {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

.hi .hi-links span {
  font-size: 14px;
  color: var(--ink-soft);
}

.hi .hi-updated {
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-faint);
}

/* ---------- адаптив ---------- */

@media (max-width: 991px) {
  .hi .hi-hero h1 { font-size: 34px; }
  .hi .hi-links,
  .hi .hi-isps__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .hi { font-size: 15px; }
  .hi h2 { font-size: 26px; }
  .hi section.content { padding: 34px 0; }
  .hi .hi-hero h1 { font-size: 28px; }
  .hi .hi-hero .hi-hero__sub { font-size: 17px; }
  .hi .hi-hero > .container { padding-top: 34px; padding-bottom: 34px; }
  .hi .hi-stats li { min-width: 0; flex: 1 1 45%; padding: 10px 14px; }
  .hi .hi-stats b { font-size: 21px; }
  .hi .hi-grid,
  .hi .hi-steps,
  .hi .hi-links,
  .hi .hi-isps__grid { grid-template-columns: minmax(0, 1fr); }
  .hi .hi-cta { padding: 18px; }
  .hi .hi-cta__actions .btn { width: 100%; }
  .hi .hi-prices th,
  .hi .hi-prices td { padding: 12px 10px; }
  .hi .hi-prices thead th { font-size: 11px; letter-spacing: .02em; }
  /* Швидкість не переносимо: «200–500 Мбіт/с» у два рядки читається як дві різні */
  .hi .hi-prices tbody th { width: auto; white-space: nowrap; font-size: 14px; }
  .hi .hi-prices .hi-price { font-size: 17px; }
  .hi .hi-prices .hi-range { font-size: 13px; white-space: nowrap; }
  .hi .hi-faq summary { font-size: 16px; padding: 15px 18px; }
  .hi .hi-faq .hi-faq__body { padding: 0 18px 16px; }
}

/* ---------- розподіл: скільки провайдерів на адресу ---------- */

/*
Смуги замість таблиці: читач бачить форму розподілу відразу, без порівняння
цифр у стовпчику. Ширина смуги задається інлайновим --w у розмітці.
*/
.hi .hi-bars {
  margin: 22px 0 0;
  max-width: 760px;
}

.hi .hi-bars__row {
  display: grid;
  grid-template-columns: 150px 1fr 56px;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
}

.hi .hi-bars__label {
  font-weight: 600;
  color: var(--ink);
}

.hi .hi-bars__track {
  background: var(--canvas);
  border-radius: 6px;
  height: 26px;
  overflow: hidden;
}

.hi .hi-bars__fill {
  display: block;
  height: 100%;
  width: var(--w);
  background: var(--accent);
  border-radius: 6px;
}

.hi .hi-bars__row--muted .hi-bars__fill {
  background: var(--line-strong);
}

.hi .hi-bars__value {
  font-weight: 700;
  text-align: right;
  color: var(--ink);
}

@media (max-width: 560px) {
  .hi .hi-bars__row {
    grid-template-columns: 118px 1fr 46px;
    gap: 10px;
  }

  .hi .hi-bars__label { font-size: 15px; }
}

/* Витягнута цитата для однієї сильної цифри */
.hi .hi-quote {
  margin: 26px 0 0;
  padding: 18px 24px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 12px 12px 0;
  font-size: 21px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 560px) {
  .hi .hi-quote {
    font-size: 18px;
    padding: 16px 18px;
  }
}

/* --------------------------------------------------------------------------
   Сторінки помилок, 404 і 5xx
   -------------------------------------------------------------------------- */

.hi.hi-error {
  padding: 60px 0 70px;
}

.hi .hi-error__code {
  margin: 0 0 6px;
  font-size: 64px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.hi.hi-error h1 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.2;
}

.hi .hi-error__lead {
  max-width: 640px;
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.hi .hi-error__search {
  max-width: 520px;
  margin: 0 0 40px;
  padding: 22px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.hi .hi-error__search .check-street__header {
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.hi .hi-error__search .check-street__wrap {
  margin-bottom: 12px;
}

.hi .hi-error__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 40px;
}

.hi .hi-error__actions > .btn {
  margin: 0;
}

.hi .hi-error__subhead {
  margin: 0 0 16px;
  font-size: 21px;
}

@media (max-width: 560px) {
  .hi.hi-error {
    padding: 36px 0 46px;
  }

  .hi .hi-error__code {
    font-size: 48px;
  }

  .hi.hi-error h1 {
    font-size: 26px;
  }

  .hi .hi-error__lead {
    font-size: 16px;
  }
}
