/* 2.css — стили только для 2.html (Тарифы) */

/* app-shell — единственный скролл-контейнер */
.app-shell{
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  min-height: 100%;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top));
  padding-bottom: calc(var(--bottom-h) + var(--safe-bottom, 0px));
}

/* ─────────────────────────────
 * Header (фикс)
 * ───────────────────────────── */
.tariffs-header--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding-top: env(safe-area-inset-top);
  z-index: 40;
}

.tariffs-header__pad {
  padding: 12px 16px 0 16px;
}

.tariffs-header__card {
  border-radius: 15px;
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tariffs-header__icon {
  font-size: 30px;
  color: #FF9F0A;
}

.tariffs-header__title {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

.tariffs-header__subtitle {
  margin: 5px 0 0 0;
  font-size: 14px;
  line-height: 16px;
  color: #8e8e93;
  font-weight: 500;
}

/* Переходы для шапки тарифов */
#tariff-header > * {
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    margin 0.5s ease,
    height 0.5s ease,
    padding 0.5s ease;
}

/* ПЛАВНЫЙ SHRINK HEADER */
#tariff-header.shrink-header{
  position: relative;
  transform: translateY(calc(-4px * var(--tariffs-shrink-progress)));
  padding-top: calc(16px * (1 - var(--tariffs-shrink-progress)));
  padding-bottom: calc(6px + 4px * (1 - var(--tariffs-shrink-progress)));
  border-radius: calc(15px * (1 - var(--tariffs-shrink-progress)));
  box-shadow: none;
  background: none !important;
  pointer-events: none;
  overflow: hidden;
}

#tariff-header.shrink-header::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(to top, #151517, #2f2f32);
  opacity: calc(1 - var(--tariffs-shrink-progress));
  pointer-events: none;
  z-index: 0;
}

#tariff-header.shrink-header > *{
  position: relative;
  z-index: 1;
}

#tariff-header .header-icon{
  width: calc(58px - 18px * var(--tariffs-shrink-progress));
  height: calc(58px - 18px * var(--tariffs-shrink-progress));
  border-radius: calc(12px - 4px * var(--tariffs-shrink-progress));
}

#tariff-header .header-icon i{
  font-size: calc(30px - 8px * var(--tariffs-shrink-progress));
}

#tariff-header .tariffs-header__title{
  margin-top: calc(3px * (1 - var(--tariffs-shrink-progress)));
  margin-bottom: 0;
  font-size: calc(20px - 5px * var(--tariffs-shrink-progress));
  line-height: calc(1.2 - 0.1 * var(--tariffs-shrink-progress));
}

#tariff-header .tariffs-header__subtitle{
  margin-top: calc(5px * (1 - var(--tariffs-shrink-progress)));
  max-height: calc(32px * (1 - var(--tariffs-shrink-progress)));
  opacity: calc(1 - var(--tariffs-shrink-progress));
  overflow: hidden;
  transform:
    translateY(calc(-6px * var(--tariffs-shrink-progress)))
    scale(calc(1 - 0.08 * var(--tariffs-shrink-progress)));
  transform-origin: top center;
}

.combo-border { border: 1px solid rgba(255, 255, 255, 0.08); }

/* header-icon */
.header-icon {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  background:
    linear-gradient(to top, #141414, #313131) padding-box,
    linear-gradient(#68686B, #545457) border-box;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
