/* =========================
   PRICING + CCTV + IP RENT (shared)
   Used on: index.html, tariffs.html, cctv.html
   ========================= */

/* секции тарифов/камер — внутренние отступы внутри section-card */
.pricing,
.cctv{
  padding: 34px 44px;
}

/* =========================
   PRICING
   ========================= */

.pricing__group{
  margin-top: 10px;
}

.pricing__groupTitle{
  margin: 10px 0 18px;
  text-align: center;
  font-size: 34px;
  line-height: 1.12;
  color: var(--ink);
}

/* Grid */
.pricing__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  justify-items: center;
  align-items: stretch;

  max-width: 1120px;
  margin: 0 auto;
}

/* Business grid */
.pricing__grid--biz{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
  margin: 0 auto;
}

/* Cards */
.plan{
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 16px;
  padding: 26px 22px;
  text-align: center;

  border: 1px solid rgba(0, 44, 95, .06);
  box-shadow: 0 10px 22px rgba(2, 44, 95, .08);
  position: relative;

  transition: transform .25s ease, box-shadow .25s ease;
}

.plan:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(2, 44, 95, .12);
}

/* featured */
.plan--featured{
  box-shadow: 0 16px 30px rgba(2, 44, 95, .12);
}

.plan__name{
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 800;
}

/* Цена: единый вес */
.plan__price{
  margin: 0 0 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.05;
  color: var(--blue);
}

.plan__subprice{
  margin: -4px 0 12px;
  font-size: 15px;
  color: #334155;
  opacity: .9;
}

.plan__badge{
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

/* Deal block */
.pricing__deal{
  margin-top: 34px;
  text-align: center;
}

.pricing__dealTitle{
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  color: var(--ink);
}

.dealMark{
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  border-radius: 10px;
  background: rgba(0, 108, 255, .12);
  border: 1px solid rgba(0, 108, 255, .18);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.72em;
}

.pricing__dealNote{
  margin: 10px 0 22px;
  font-size: 15px;
  color: var(--muted);
}

/* Deal badge on cards */
.plan--deal .plan__dealBadge{
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(0, 108, 255, .10);
  border: 1px solid rgba(0, 108, 255, .18);
  color: var(--ink);
}

/* Divider */
.pricing__divider{
  width: 62%;
  margin: 36px auto 26px;
  border: none;
  border-top: 1px solid rgba(0, 44, 95, .12);
}

/* Buttons under tariffs */

.pricing__actions{
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pricing__btn{
  padding-left: 20px;
  padding-right: 20px;
}

/* Buttons under tariffs */

.pricing__actions{
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Делаем кнопки одинаковыми по высоте/ширине как на скрине */
.pricing__btn{
  min-width: 260px;
  padding-left: 22px;
  padding-right: 22px;
  justify-content: center;
}

/* Телефонная кнопка: иконка голубая, при наведении — белая */
.pricing__btn--phone{
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.pricing__phoneIcon{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-block;
  -webkit-mask: url(/assets/icons/index-icons/telephone.svg) no-repeat center;
  mask: url(/assets/icons/index-icons/telephone.svg) no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
  background-color: var(--blue);
  transition: background-color 0.2s ease;
}

.pricing__btn--phone:hover .pricing__phoneIcon{
  background-color: #fff;
}

/* Мобилка */
@media (max-width: 900px){
  .pricing__btn{
    width: 100%;
    max-width: 420px;
  }
}

/* =========================
   Dedicated IP (Tariffs page)
   ========================= */

.iprent{
  padding: 44px 44px;
  text-align: center;
}

.iprent__title{
  margin: 0 0 22px;
  font-size: 34px;
  line-height: 1.12;
  color: var(--ink);
  font-weight: 900;
}

.iprent__card{
  max-width: 420px;
  margin: 0 auto;

  background: #fff;
  border-radius: 16px;
  padding: 26px 22px;

  border: 1px solid rgba(0,44,95,.06);
  box-shadow: 0 10px 22px rgba(2,44,95,.08);

  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}

.iprent__card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(2,44,95,.12);
}

.iprent__cardTitle{
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 10px;
}

/* ✅ фикс жирного ₽: делаем вес как у plan__price */
.iprent__price{
  font-weight: 700;
  font-size: 40px;
  line-height: 1.05;
  color: var(--blue);
}

/* =========================
   CCTV (Камеры)
   ========================= */

.cctv__head{
  text-align: center;
  margin-bottom: 22px;
}

.cctv__title{
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  color: var(--ink);
}

/* 2 карточки по центру */
.cctv__grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  justify-items: center;
  align-items: stretch;

  max-width: 820px;
  margin: 0 auto;
}

.cctv-plan{
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 16px;
  padding: 26px 22px;
  text-align: center;

  border: 1px solid rgba(0, 44, 95, .06);
  box-shadow: 0 10px 22px rgba(2, 44, 95, .08);
  position: relative;

  transition: transform .25s ease, box-shadow .25s ease;
}

.cctv-plan:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(2, 44, 95, .12);
}

.cctv-plan__name{
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  font-weight: 800;
}

.cctv-plan__price{
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 40px;
  line-height: 1.05;
  color: var(--blue);
}

/* Бейдж архива */
.cctv-plan__badge{
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1;
  color: #fff;
}

.cctv-plan__badge--green{
  background: #16a34a;
}

/* CCTV extra: note + actions */
.cctv__note{
  margin: 16px 0 18px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.cctv__actions{
  display:flex;
  gap: 12px;
  justify-content:center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.cctv__btn{
  padding-left: 18px;
  padding-right: 18px;
}

/* Info block */
.cctv-info{
  padding: 44px 44px;
}

.cctv-info__title{
  margin: 0 0 16px;
  color: var(--ink);
  font-weight: 900;
  font-size: 26px;
}

.cctv-info__text{
  max-width: 900px;
}

.cctv-info__text p{
  margin: 0 0 16px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.75;
}

.cctv-info__text p:last-child{
  margin-bottom: 0;
}

/* icon in demo button */
.cctv__btnIcon{
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: var(--blue);
}

.cctv__btn--demo{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cctv__btn--demo:hover .cctv__btnIcon{
  fill: #fff;
}

/* =========================
   Responsive (pricing + cctv + iprent)
   ========================= */

@media (max-width: 1100px){
  .pricing__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px){
  .pricing,
  .cctv,
  .cctv-info,
  .iprent{
    padding: 26px 18px;
  }

  .pricing__groupTitle,
  .pricing__dealTitle,
  .cctv__title,
  .iprent__title{
    font-size: 28px;
  }

  .pricing__grid{
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: none;
  }

  .pricing__grid--biz{
    grid-template-columns: 1fr;
    max-width: none;
  }

  .plan{
    max-width: 420px;
  }

  .plan__price{
    font-size: 36px;
  }

  .pricing__divider{
    width: 80%;
  }

  .cctv__grid{
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: none;
  }

  .cctv-plan{
    max-width: 420px;
  }

  .cctv-plan__price{
    font-size: 36px;
  }

  .cctv__actions{
    gap: 10px;
  }

  .cctv__btn{
    width: 100%;
    max-width: 420px;
    justify-content: center;
  }

  .cctv-info__title{
    font-size: 22px;
  }

  .iprent__card{
    padding: 20px 18px;
  }

  .iprent__price{
    font-size: 36px;
  }
}