/* Главная: состояния интерактивных блоков (вкладки, калькулятор, подарок). Включённое состояние - класс is-on. */

/* переключатели */
.hb-seg-b {
  min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px;
  background: transparent; color: #6B6B6B; font-weight: 500; font-size: 15px;
  font-family: inherit; cursor: pointer;
}
.hb-seg-b.is-on { font-weight: 600; cursor: default; }
.hb-seg--pack .hb-seg-b { padding: 0 22px; }
.hb-seg--pack .hb-seg-b.is-on { background: #FFFFFF; color: #212121; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.hb-seg--dark .hb-seg-b.is-on { background: #212121; color: #FFFFFF; }
.hb-seg--orange .hb-seg-b.is-on { background: #F87400; color: #FFFFFF; }
.hb-seg-b:focus-visible, .hb-row:focus-visible, .hb-gift-b:focus-visible, [data-faq-btn]:focus-visible {
  outline: 2px solid #F87400; outline-offset: 2px;
}

/* строки зон калькулятора */
.hb-row {
  width: 100%; display: grid; grid-template-columns: 32px 1fr 150px 180px; gap: 12px; align-items: center;
  padding: 13px 16px; border-radius: 14px; border: 1.5px solid #F2F2F2; background: #FFFFFF;
  font-family: inherit; color: #212121; text-align: left; cursor: pointer;
}
.hb-row .rw-i {
  width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #D6D6D6;
  display: flex; align-items: center; justify-content: center; font-size: 15px; color: #6B6B6B;
}
.hb-row .rw-n { font-size: 16px; font-weight: 500; }
.hb-row .rw-p { text-align: right; font-weight: 600; font-size: 16px; }
.hb-row .rw-c { text-align: right; font-size: 15px; color: #6B6B6B; }
.hb-row.is-on { border-color: #F87400; background: #FFF6EE; }
.hb-row.is-on .rw-i { background: #F87400; border-color: #F87400; color: #FFFFFF; font-size: 13px; font-weight: 700; }
.hb-row.is-on .rw-n { font-weight: 600; }
.hb-row.is-on .rw-p { font-weight: 700; }
.hb-row.is-on .rw-c { color: #3A3A3A; }

/* подарок к курсу */
.hb-gift-b {
  width: 100%; min-height: 50px; border-radius: 14px; border: 1.5px solid #E0E0E0; background: #FFFFFF;
  font-family: inherit; font-weight: 500; font-size: 14px; color: #212121; cursor: pointer;
}
.hb-gift-b.is-on { border-color: #F87400; background: #FFF6EE; font-weight: 600; cursor: default; }

/* Главное фото первого экрана: на телефоне в кадре клиентка, а не только аппараты */
@media (max-width: 760px) { .hb-hero-photo { object-position: 74% 50% !important; } }


/* ---- чёрный блок UNLIM (вместо оранжевого призыва «Полный курс + подарок») ---- */
.hb-un { position: relative; overflow: hidden; background: #0D0B0A; color: #FFFFFF; isolation: isolate; container-type: inline-size; }
.hb-un-in { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: stretch; }
.hb-un-ph { position: relative; align-self: end; margin-left: min(0px, calc((1280px - 100cqw) / 2)); }
.hb-un-ph { display: flex; justify-content: flex-end; }
.hb-un-ph img { display: block; width: 100%; height: auto; max-width: 780px; -webkit-mask-image: linear-gradient(90deg, #000 70%, transparent 100%); mask-image: linear-gradient(90deg, #000 70%, transparent 100%); }
.hb-un-tx { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 64px 24px 200px 0; }
/* очень широкий экран: фото уже колонки и не доходит до края, левый край тоже уходит в чёрное */
@media (min-width: 1590px) {
  .hb-un-ph img { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 70%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 14%, #000 70%, transparent 100%); }
}
.hb-un-tag { align-self: flex-start; padding: 8px 16px; border-radius: 999px; border: 1.5px solid #F87400; color: #F87400; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.hb-un-h { margin: 0; font-weight: 400; text-transform: uppercase; line-height: 0.98; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.hb-un-a { font-size: 46px; letter-spacing: 0.01em; }
.hb-un-b { font-size: 92px; color: #F87400; letter-spacing: -0.01em; }
.hb-un-sub { margin: -6px 0 0; font-size: 15px; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase; color: #E8E8E8; }
.hb-un-p { margin: 0; font-size: 18px; line-height: 1.5; color: #D6D6D6; max-width: 520px; }
.hb-un-btns { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
.hb-un-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 30px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; font-family: inherit; }
.hb-un-f { background: #F87400; color: #FFFFFF; }
.hb-un-f:hover { background: #FF8A1F; color: #FFFFFF; }
.hb-un-o { border: 1.5px solid rgba(255, 255, 255, 0.55); color: #FFFFFF; }
.hb-un-o:hover { border-color: #F87400; color: #F87400; }
.hb-un-alt { margin: 0; font-size: 14px; color: #A9A9A9; line-height: 1.5; }
.hb-un-alt a { color: #F87400; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hb-un-word { position: absolute; right: 0; bottom: -0.2em; left: 50%; z-index: -1; font-weight: 800; font-size: clamp(110px, 14.5cqw, 230px); line-height: 1; letter-spacing: -0.02em; color: #F7EDE2; white-space: nowrap; text-align: right; pointer-events: none; padding-right: max(24px, calc((100cqw - 1280px) / 2 + 24px)); }
.hb-un-btn:focus-visible, .hb-un-alt a:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
@media (max-width: 900px) {
  .hb-un { display: flex; flex-direction: column; }
  .hb-un-in { grid-template-columns: 1fr; width: 100%; }
  .hb-un-ph { align-self: auto; margin-left: 0; display: block; }
  .hb-un-ph img { max-width: none; }
  .hb-un-ph img { -webkit-mask-image: linear-gradient(180deg, #000 66%, transparent 100%); mask-image: linear-gradient(180deg, #000 66%, transparent 100%); }
  .hb-un-tx { padding: 0 20px 28px; gap: 18px; margin-top: -24px; }
  .hb-un-a { font-size: 30px; }
  .hb-un-b { font-size: 64px; }
  .hb-un-sub { font-size: 12px; letter-spacing: 0.32em; }
  .hb-un-p { font-size: 16px; }
  .hb-un-btns { flex-direction: column; }
  .hb-un-btn { width: 100%; }
  /* слово UNLIM внизу блока в потоке: обрезано снизу, как на баннере; не налезает на текст */
  .hb-un-word { position: relative; left: auto; right: auto; bottom: auto; z-index: 0; font-size: min(34cqw, 230px); line-height: 0.8; height: 0.6em; overflow: hidden; text-align: center; padding: 0; margin-top: 4px; order: 2; }
}

/* ---- Калькулятор курса на главной: свёрнут, язычок слева, переключатели по центру ---- */
.hb-calc-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; }
.hb-calc-h { margin: 0; font-size: 16px; font-weight: 800; }
.hb-calc-tab { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 10px 0 20px; border: 1px solid #E6E1DA; border-radius: 999px; background: #FFFFFF; font: inherit; font-size: 16px; font-weight: 800; color: #212121; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s; }
.hb-calc-tab:hover { border-color: #F87400; box-shadow: 0 6px 18px rgba(248, 116, 0, .12); }
.hb-calc-tab:focus-visible { outline: 3px solid #F87400; outline-offset: 3px; }
.hb-calc-ic { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #FFF3E8; box-shadow: inset 0 0 0 1px #FFE3CC; }
.hb-calc-ic::before, .hb-calc-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; margin: -1px 0 0 -6.5px; background: #F87400; border-radius: 2px; transition: transform .2s; }
.hb-calc-ic::after { transform: rotate(90deg); }
.hb-calc-tab[aria-expanded="true"] .hb-calc-ic::after { transform: rotate(0deg); }
.hb-calc-sw { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hb-calc-body[hidden] { display: none; }
.hb-calc-body { margin-top: 28px; }
@media (max-width: 900px) {
  .hb-calc-head { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .hb-calc-h { justify-self: stretch; }
  .hb-calc-tab { width: 100%; justify-content: space-between; }
  .hb-calc-sp { display: none; }
}

/* Фото XFEST в блоке UNLIM (одна манипула, 19.11): плавно уходит в чёрный сверху и справа */
@media (min-width: 981px) {
  .hb-un-ph img.hb-un-xf { -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 100%), linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, #000 62%, transparent 100%), linear-gradient(180deg, transparent 0, #000 30%); -webkit-mask-composite: source-in; mask-composite: intersect; }
}
/* очень широкий экран (от 1590 px): фото уже колонки и не доходит до края, поэтому левый край тоже плавно уходит в чёрный (иначе виден резкий край фото) */
@media (min-width: 1590px) {
  .hb-un-ph img.hb-un-xf { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 62%, transparent 100%), linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 62%, transparent 100%), linear-gradient(180deg, transparent 0, #000 30%); -webkit-mask-composite: source-in; mask-composite: intersect; }
}

/* Предложения под итогом калькулятора: пакет зон и карта BENEFIT (home.js, renderOffer) */
.hb-of { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: #2C2C2C; border: 1px solid rgba(248, 116, 0, .55); }
.hb-of[hidden] { display: none; }
.hb-of-h { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #FFB070; }
.hb-of-i { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: #1F1F1F; }
.hb-of-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.hb-of-t b { font-size: 15px; font-weight: 700; color: #FFFFFF; }
.hb-of-t strong { font-size: 18px; font-weight: 800; color: #FFFFFF; white-space: nowrap; }
.hb-of-i p { margin: 0; font-size: 13px; line-height: 1.4; color: #BDBDBD; }
.hb-of-sv { align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: rgba(248, 116, 0, .22); color: #FFB070; font-size: 13px; font-weight: 700; }
.hb-of-a { align-self: flex-start; margin-top: 2px; font-size: 14px; font-weight: 700; color: #FF9B3D; text-decoration: none; }
.hb-of-a:hover { text-decoration: underline; }
