/**
 * Раздел «Организация похорон»: собственная дизайн-система хаба.
 * Грамматика взята из лендингов темы (agent-lp): полная ширина, ритм секций,
 * заголовок 900 с акцентом, карточки с верхней линией, тёмные врезки.
 * Токены — из theme.css, свои цвета не вводим.
 */

/* ── Каркас ─────────────────────────────────────────────────────────── */

.phub.inner-page__stack {
  gap: 56px;
  padding-bottom: 56px;
}

.phub .service-hero {
  margin: 0;
}

/* ── Первый экран ───────────────────────────────────────────────────────
   Факты и сноска — мобильная замена боковой панели героя: на узких
   экранах тема панель скрывает, а цена и условия нужны до кнопок. */

.phub-hero-facts,
.phub-hero-note {
  display: none;
}

/* CTA панели — номер телефона: без разрядки и переносов. */
.phub .service-hero__panel-cta {
  letter-spacing: 0;
  font-size: 16px;
  white-space: nowrap;
}

.phub .service-hero__badge {
  letter-spacing: 0.04em;
}

@media (max-width: 859px) {
  .phub.inner-page__stack {
    gap: 36px;
  }

  .phub .service-hero__banner {
    padding: 20px 18px 24px;
  }

  .phub .service-hero__badge {
    font-size: 12px;
    padding: 5px 10px;
  }

  .phub .service-hero__title {
    font-size: 26px;
    line-height: 1.16;
  }

  .phub .service-hero__lead {
    font-size: 15.5px;
    line-height: 1.5;
  }

  .phub-hero-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .phub-hero-fact {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 8px 11px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 12px;
  }

  .phub-hero-fact--wide {
    grid-column: 1 / -1;
  }

  .phub-hero-fact b {
    font-size: 16.5px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #fff;
  }

  .phub-hero-fact--wide b {
    font-size: 21px;
  }

  .phub-hero-fact span {
    font-size: 11.5px;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.68);
  }

  .phub .service-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
  }

  /* Единственное целевое действие — звонок, поэтому кнопка во всю ширину и крупнее. */
  .phub .service-hero__call-btn {
    width: 100%;
    min-height: 58px;
    justify-content: center;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
  }

  .phub .service-hero__call-btn svg {
    width: 20px;
    height: 20px;
  }

  .phub-hero-note {
    display: block;
    margin-top: 10px;
    font-size: 12.5px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.66);
  }

  /* Цифры службы дублируют факты героя — на мобильном не нужны. */
  .phub .phub-stats {
    display: none;
  }
}

/* Десктоп первого экрана: одна колонка. Цена, телефон и условия
   уже в баннере, боковая панель темы их повторяет. */
@media (min-width: 860px) {
  .phub .service-hero__panel {
    display: none;
  }

  .phub .service-hero__banner {
    padding: 40px 44px 36px;
  }

  .phub .service-hero__banner-content {
    display: flex;
    flex-direction: column;
    max-width: none;
  }

  .phub .service-hero__title {
    max-width: none;
    font-size: 48px;
    line-height: 1.08;
  }

  .phub .service-hero__lead {
    max-width: 40em;
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.5;
  }

  .phub-hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 22px;
  }

  .phub-hero-fact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
  }

  .phub-hero-fact--wide {
    grid-column: auto;
  }

  .phub-hero-fact b {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fff;
  }

  .phub-hero-fact span {
    font-size: 14px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.72);
  }

  .phub .service-hero__actions {
    margin: 0;
  }

  .phub .service-hero__call-btn {
    align-self: flex-start;
    min-height: 54px;
    padding: 0 28px;
    font-size: 18px;
    font-weight: 800;
  }

  .phub-hero-note {
    display: block;
    max-width: 42em;
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.66);
  }
}

.phub-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-margin-top: 24px;
}

.phub-section--tight {
  gap: 14px;
}

.phub-section__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-pale);
  border-radius: 50px;
}

.phub-kicker--accent {
  color: var(--accent);
  background: var(--accent-pale);
}

.phub-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text);
}

.phub-title em {
  font-style: normal;
  color: var(--primary);
}

.phub-lead {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.phub-note {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.phub-note a {
  color: var(--primary);
  font-weight: 600;
}

.phub-text {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phub-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── Цифры службы ───────────────────────────────────────────────────── */

.phub-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.phub-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 14px;
  text-align: center;
  background: var(--primary-ultra-pale);
  border-radius: 16px;
}

.phub-stat__value {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.phub-stat__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.phub-stat__hint {
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

@media (max-width: 800px) {
  .phub-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Пособие под первым экраном ─────────────────────────────────────── */

.phub-benefit {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px 22px;
  align-items: center;
  overflow: hidden;
  padding: 20px 22px 20px 20px;
  background: var(--card-bg, #fff);
  border: 1px solid rgba(194, 64, 54, 0.18);
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(194, 64, 54, 0.08);
}

.phub-benefit::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--primary-light));
}

.phub-benefit__price {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 116px;
  padding: 12px 16px 10px;
  text-align: center;
  background: var(--accent-pale);
  border-radius: 14px;
}

.phub-benefit__value {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.phub-benefit__value-note {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text-secondary);
}

.phub-benefit__title {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.28;
  color: var(--text);
}

.phub-benefit__text {
  margin: 6px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.phub-benefit__call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(194, 64, 54, 0.26);
}

.phub-benefit__call:hover {
  color: #fff;
  filter: brightness(1.05);
}

.phub-benefit__call svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phub-benefit__call-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.phub-benefit__call-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.phub-benefit__call-num {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

@media (max-width: 859px) {
  .phub-benefit {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px 16px 16px;
  }

  .phub-benefit__price {
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 10px 14px;
    text-align: left;
  }

  .phub-benefit__value {
    font-size: 36px;
  }

  .phub-benefit__title {
    font-size: 17px;
  }

  .phub-benefit__call {
    width: 100%;
    justify-content: center;
    padding: 13px 16px;
  }
}

/* ── Шаги: первые действия ──────────────────────────────────────────── */

.phub-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phub-steps--3 {
  grid-template-columns: repeat(3, 1fr);
}

.phub-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px 22px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(52, 93, 160, 0.06);
}

.phub-step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--accent-light));
}

.phub-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-pale);
  border-radius: 12px;
}

.phub-step__title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.phub-step__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 1000px) {
  .phub-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .phub-steps,
  .phub-steps--3 {
    grid-template-columns: 1fr;
  }
}

/* ── Срочная строка (звонок сейчас) ─────────────────────────────────── */

.phub-urgent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  padding: 20px 24px;
  background: var(--accent-pale);
  border: 1px solid rgba(194, 64, 54, 0.16);
  border-left: 4px solid var(--accent);
  border-radius: 16px;
}

.phub-urgent__body {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.phub-urgent__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.phub-urgent__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.phub-urgent__phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 20px;
  font-weight: 800;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(194, 64, 54, 0.26);
}

.phub-urgent__phone:hover {
  color: #fff;
  filter: brightness(1.05);
}

.phub-urgent__phone svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ── Комплексы ──────────────────────────────────────────────────────── */

.phub-pkgs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.phub-pkgs--4 {
  grid-template-columns: repeat(4, 1fr);
}

.phub-pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  /* сверху место под ленту, чтобы карточки с лентой и без совпадали по сетке */
  padding: 44px 24px 24px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
  box-shadow: 0 4px 18px rgba(52, 93, 160, 0.06);
}

.phub-pkg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.phub-pkg--featured {
  border-color: rgba(52, 93, 160, 0.28);
  box-shadow: 0 18px 46px rgba(52, 93, 160, 0.16);
}

.phub-pkg--featured::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
}

.phub-pkg__ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-pale);
  border-radius: 50px;
}

.phub-pkg__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phub-pkg__name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary);
}

.phub-pkg__price {
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.phub-pkg__price-note {
  font-size: 13px;
  color: var(--muted);
}

.phub-pkg__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phub-pkg__list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 10px 24px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  border-top: 1px solid var(--primary-ultra-pale);
}

.phub-pkg__list li:first-child {
  border-top: 0;
}

.phub-pkg__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--primary-light);
  border-bottom: 2px solid var(--primary-light);
  transform: rotate(-45deg);
}

.phub-pkg__list .cpkg__val,
.phub-pkg__list li span + span {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.phub-pkg__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phub-pkg__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(52, 93, 160, 0.22);
  transition: filter 0.2s ease;
}

.phub-pkg__cta svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phub-pkg__cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.phub-pkg__cta-label {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.phub-pkg__cta-num {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.phub-pkg__cta:hover {
  color: #fff;
  filter: brightness(1.06);
}

.phub-pkg--featured .phub-pkg__cta {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  box-shadow: 0 10px 24px rgba(194, 64, 54, 0.24);
}

.phub-pkg--featured .phub-pkg__cta:hover {
  filter: brightness(1.05);
}

.phub-pkgs__aside {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 18px 22px;
  background: var(--primary-ultra-pale);
  border-radius: 16px;
}

.phub-pkgs__aside p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.phub-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.phub-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.phub-link:hover {
  color: var(--primary-light);
}

@media (max-width: 1000px) {
  .phub-pkgs,
  .phub-pkgs--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .phub-pkgs,
  .phub-pkgs--4 {
    grid-template-columns: 1fr;
  }
}

/* ── Смета ──────────────────────────────────────────────────────────── */

.phub-estimate {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.phub-estimate__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  border-radius: 20px;
}

.phub-estimate__col--in {
  background: var(--primary-ultra-pale);
  border: 1px solid var(--card-border);
}

.phub-estimate__col--out {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

.phub-estimate__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phub-estimate__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  flex-shrink: 0;
}

.phub-estimate__col--in .phub-estimate__icon {
  color: var(--primary);
  background: #fff;
}

.phub-estimate__col--out .phub-estimate__icon {
  color: var(--accent);
  background: var(--accent-pale);
}

.phub-estimate__icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.phub-estimate__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.phub-estimate__sub {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.phub-estimate__list {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phub-estimate__list li {
  position: relative;
  padding: 11px 0 11px 26px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
  border-top: 1px solid rgba(52, 93, 160, 0.09);
}

.phub-estimate__list li:first-child {
  border-top: 0;
}

.phub-estimate__list li::before {
  position: absolute;
  left: 0;
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 13px;
  font-weight: 800;
  border-radius: 6px;
}

.phub-estimate__list--in li::before {
  content: "+";
  color: var(--primary);
  background: #fff;
}

.phub-estimate__list--out li::before {
  content: "−";
  color: var(--accent);
  background: var(--accent-pale);
}

@media (max-width: 800px) {
  .phub-estimate {
    grid-template-columns: 1fr;
  }
}

/* ── Порядок работы службы (лента) ──────────────────────────────────── */

.phub-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: phub-flow;
}

.phub-flow__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 22px 24px;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--primary-light);
  border-radius: 16px;
}

.phub-flow__item::after {
  counter-increment: phub-flow;
  content: counter(phub-flow);
  position: absolute;
  right: 14px;
  bottom: -14px;
  font-size: 68px;
  font-weight: 900;
  line-height: 1;
  color: var(--primary-ultra-pale);
  pointer-events: none;
}

.phub-flow__title {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.phub-flow__text {
  position: relative;
  z-index: 1;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 900px) {
  .phub-flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .phub-flow {
    grid-template-columns: 1fr;
  }
}

/* ── Тёмная врезка ──────────────────────────────────────────────────── */

.phub-band {
  position: relative;
  padding: 40px 32px;
  overflow: hidden;
  color: #fff;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(74, 123, 200, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(52, 93, 160, 0.45) 0%, transparent 50%),
    linear-gradient(145deg, #1e3a6e 0%, #345da0 55%, #2a4d8c 100%);
}

.phub-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.phub-band__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50px;
}

.phub-band__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

.phub-band__title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.phub-band__title em {
  font-style: normal;
  color: #c5d8ff;
}

.phub-band__lead {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.88;
}

.phub-band__subtitle {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.78);
}

.phub-band__block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phub-band__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phub-band__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.phub-band__pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fc0;
  flex-shrink: 0;
}

.phub-band__coverage {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.phub-band__more {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
}

.phub-band__more:hover,
.phub-band__more:focus-visible {
  background: rgba(255, 255, 255, 0.32);
}

.phub-areas {
  position: fixed;
  inset: 0;
  width: min(680px, calc(100% - 24px));
  height: fit-content;
  max-height: min(82vh, 760px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: #fff;
  border: none;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(20, 40, 80, 0.28);
}

.phub-areas::backdrop {
  background: rgba(16, 32, 64, 0.55);
}

.phub-areas__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 12px;
}

.phub-areas__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
}

.phub-areas__close {
  flex-shrink: 0;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  background: var(--primary-pale);
  border: none;
  border-radius: 999px;
}

.phub-areas__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: calc(82vh - 76px);
  padding: 4px 22px 22px;
  overflow: auto;
}

.phub-areas__subtitle {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.phub-areas__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.4;
  list-style: none;
}

@media (max-width: 560px) {
  .phub-areas__head,
  .phub-areas__body {
    padding-right: 16px;
    padding-left: 16px;
  }

  .phub-areas__list {
    grid-template-columns: 1fr;
  }
}

.phub-band__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.phub-band__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 16px;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.phub-band__card:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.phub-band__card-label {
  font-size: 15px;
  font-weight: 800;
}

.phub-band__card-desc {
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.72;
}

@media (max-width: 900px) {
  .phub-band__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .phub-band {
    padding: 28px 18px;
    border-radius: 20px;
  }

  .phub-band__grid {
    grid-template-columns: 1fr;
  }
}

/* ── Врезка-обращение ───────────────────────────────────────────────── */

.phub-band--cta .phub-band__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
}

.phub-cta__main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phub-cta__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phub-cta__facts li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  opacity: 0.85;
}

.phub-cta__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c5d8ff;
}

.phub-cta__panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
}

.phub-cta__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.phub-cta__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.phub-cta__phone svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.phub-cta__phone:hover {
  color: #fff;
  opacity: 0.9;
}

.phub-cta__note {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.78;
}

@media (max-width: 900px) {
  .phub-band--cta .phub-band__inner {
    grid-template-columns: 1fr;
  }
}

/* ── Разводка по ситуации ───────────────────────────────────────────── */

.phub-routes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.phub-route {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(52, 93, 160, 0.05);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.phub-route:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(52, 93, 160, 0.1);
}

.phub-route__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  color: var(--primary);
  background: var(--primary-pale);
  border-radius: 14px;
}

.phub-route__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.phub-route__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phub-route__title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.phub-route__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.phub-route__more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.phub-route__more svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

@media (max-width: 800px) {
  .phub-routes {
    grid-template-columns: 1fr;
  }
}

/* ── Справочные материалы ───────────────────────────────────────────── */

.phub-ref {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.phub-ref__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  padding: 22px 20px;
  text-decoration: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.phub-ref__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.phub-ref__item:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
}

.phub-ref__kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.phub-ref__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.phub-ref__desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.phub-ref__more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}

.phub-ref__more svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

@media (max-width: 1000px) {
  .phub-ref {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .phub-ref {
    grid-template-columns: 1fr;
  }
}

.phub-ref--solo {
  grid-template-columns: 1fr;
}

.phub-ref--solo .phub-ref__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "kicker title more"
    ".      desc   more";
  align-items: center;
  column-gap: 16px;
  row-gap: 6px;
  padding: 22px 24px;
  box-shadow: 0 4px 16px rgba(52, 93, 160, 0.05);
}

.phub-ref--solo .phub-ref__title {
  font-size: 17px;
  font-weight: 800;
}

.phub-ref--solo .phub-ref__kicker {
  grid-area: kicker;
}

.phub-ref--solo .phub-ref__title {
  grid-area: title;
}

.phub-ref--solo .phub-ref__desc {
  grid-area: desc;
}

.phub-ref--solo .phub-ref__more {
  grid-area: more;
  margin-top: 0;
  justify-self: end;
}

.phub-ref--solo .phub-ref__item:not(:has(.phub-ref__desc)) {
  grid-template-areas: "kicker title more";
}

@media (max-width: 700px) {
  .phub-ref--solo .phub-ref__item,
  .phub-ref--solo .phub-ref__item:not(:has(.phub-ref__desc)) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 16px;
  }

  .phub-ref--solo .phub-ref__more {
    justify-self: start;
  }
}

/* ── Вопросы ────────────────────────────────────────────────────────── */

.phub-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phub-faq__item {
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(52, 93, 160, 0.05);
}

.phub-faq__q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.phub-faq__q::-webkit-details-marker {
  display: none;
}

.phub-faq__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-pale);
  border-radius: 10px;
}

.phub-faq__a {
  padding: 0 18px 18px 64px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.phub-faq__a a {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 640px) {
  .phub-faq__a {
    padding-left: 18px;
  }
}

/* ── Правки чужих блоков внутри раздела ─────────────────────────────── */

.phub .service-photo-gallery__title,
.phub .price-table__title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Свой заголовок секции уже есть — пустой h2 чужого блока убираем */
.phub .page-article__h2:empty {
  display: none;
}

.phub .order-form,
.phub .warn-alert,
.phub .faq-section,
.phub .info__media--reviews-full {
  width: 100%;
}

/* ── Вывоз: видео и гарантии (карточки как на действующей странице) ── */

.phub-video {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: var(--card-bg, #111);
  aspect-ratio: 16 / 9;
}

.phub-video iframe,
.phub-video__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.phub-video__play {
  display: block;
  padding: 0;
  background: #111;
  cursor: pointer;
}

.phub-video__play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phub-video__btn {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0;
  border-radius: 50%;
  background: rgba(12, 22, 40, 0.55);
  transform: translate(-50%, -50%);
}

.phub-video__btn svg {
  width: 28px;
  height: 28px;
  margin-left: 3px;
  fill: #fff;
}

.phub-guarantees {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.phub-guarantee {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  background: var(--card-bg, #fff);
  border: 1px solid var(--card-border, rgba(26, 26, 46, 0.1));
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(52, 93, 160, 0.05);
}

.phub-guarantee__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 11px;
  color: var(--primary);
  background: var(--primary-pale);
  border-radius: 14px;
}

.phub-guarantee__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phub-guarantee__title {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.phub-guarantee__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 720px) {
  .phub-guarantees {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .phub-guarantee {
    flex-direction: column;
    gap: 12px;
    padding: 18px;
  }
}

.phub-know {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 28px 32px;
  background: var(--primary-pale);
  border: 1px solid rgba(52, 93, 160, 0.12);
  border-radius: 20px;
}

.phub-know__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 12px;
  color: #fff;
  background: var(--primary);
  border-radius: 14px;
}

.phub-know__icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phub-know__title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.phub-know p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.phub-know p:last-child {
  margin-bottom: 0;
}

.phub-know__note {
  margin: 16px 0 0;
  padding-top: 4px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.phub-know__note a {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 720px) {
  .phub-know {
    flex-direction: column;
    gap: 16px;
    padding: 22px 20px;
  }
}

@media (max-width: 540px) {
  .phub-know {
    padding: 18px;
  }
}

.phub-pkgs--routes {
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
}

.phub-pkgs--routes .phub-pkg {
  padding-top: 22px;
  gap: 16px;
}

.rthub-stops {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 2px 0 4px;
  list-style: none;
}

.rthub-stops li {
  position: relative;
  margin: 0;
  padding: 0 0 18px 26px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}

.rthub-stops li:last-child {
  padding-bottom: 0;
}

.rthub-stops li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  box-sizing: border-box;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: #fff;
}

.rthub-stops li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 2px;
  height: calc(100% - 14px);
  background: #c5d4ea;
}

.phub-rates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.phub-rate {
  padding: 22px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 22px;
}

.phub-rate h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
  color: var(--text);
}

.phub-rate ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.phub-rate li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--card-border);
  font-size: 15px;
  line-height: 1.4;
}

.phub-rate b {
  white-space: nowrap;
  font-weight: 700;
}

@media (max-width: 720px) {
  .phub-pkgs--routes,
  .phub-rates {
    grid-template-columns: 1fr;
  }
}

.rthub-where {
  padding: 28px 28px 22px;
  background: var(--primary-pale);
  border: 1px solid rgba(52, 93, 160, 0.16);
  border-radius: 22px;
}

.rthub-where__title {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.rthub-where__head p {
  margin: 0;
  max-width: 46em;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.rthub-where__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.rthub-where__card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: start;
  padding: 18px 18px 16px;
  background: #fff;
  border-radius: 16px;
  border-top: 4px solid var(--primary);
  box-shadow: 0 10px 24px rgba(52, 93, 160, 0.1);
}

.rthub-where__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-pale);
  color: var(--primary);
}

.rthub-where__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rthub-where__card h3 {
  margin: 4px 0 4px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

.rthub-where__card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.rthub-where__card b {
  grid-column: 2;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
}

.rthub-where__note {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.rthub-where__note a {
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 720px) {
  .rthub-where {
    padding: 18px 16px 16px;
  }

  .rthub-where__grid {
    grid-template-columns: 1fr;
  }
}

