

/* Start:/bitrix/templates/universe_s1/components/bitrix/news.detail/projects.default.1.custom/style.css?177001635910646*/
/* =========================================================
   TP Detail — 1:1 from Figma (as you sent)
   ========================================================= */

.tp-page{
  background:#ffffff;
  color:#111;
}

.tp-wrap{
  max-width:1540px;
  margin:0 auto;
  padding:40px 20px 70px;
  box-sizing:border-box;
}

.tp-wrap *{ box-sizing:border-box; }

/* =========================
   HERO
   ========================= */
.tp-hero{
  position:relative;
  border-radius:10px;
  overflow:hidden;
}

/* =========================
   SLIDER
   ========================= */
.tp-slider{
  position:relative;
  width:100%;
  height:864px;
  border-radius:10px;
  overflow:hidden;
  background:#e9e9ef;
}

.tp-slider__track{
  display:flex;
  height:100%;
  will-change:transform;
  transition:transform 600ms ease;
}

.tp-slider__slide{
  flex:0 0 100%;
  height:100%;
}

.tp-slider__img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}

/* nav buttons bottom row (как на макете) */
.tp-slider__nav{
  position:absolute;
  bottom:40px;
  width:60px;
  height:60px;
  border-radius:8.75px;
  background:#fff;
  border:0;
  display:grid;
  place-items:center;
  cursor:pointer;
  z-index:10;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
}

.tp-slider__nav--prev{ left:40px; }
.tp-slider__nav--next{ left:40px; transform:none; }

/* Мы ставим dots по центру между кнопками как в Figma */
.tp-slider__dots{
  position:absolute;
  left:50%;
  bottom:56px;
  transform:translateX(-50%);
  display:flex;
  gap:10px;
  z-index:10;
}

.tp-dot{
  width:18px;
  height:18px;
  border-radius:999px;
  border:0;
  background:#fff;
  opacity:.2;
  cursor:pointer;
}

.tp-dot.is-active{
  opacity:1;
}

/* next button справа от dots (как в дизайне: prev — dots — next) */
.tp-slider__nav--next{
  left:auto;
  right:40px;
}

/* =========================
   GLASS CARD 1:1
   ========================= */
.tp-card{
  position:absolute;
  left:40px;
  top:40px;

  width: fit-content;
  padding:40px 60px;

  border-radius:10px;
  background:rgba(0,0,0,.5);
  backdrop-filter:blur(50px);
  -webkit-backdrop-filter:blur(50px);

  color:#f9f9fb;
  z-index:20;
}

.tp-card__top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:30px;
}

.tp-card__titleBlock{
  width:360px;
  display:flex;
  flex-direction:column;
  gap:20px;
  min-width:0;
}

.tp-card__kicker{
  font-size:14px;
  font-weight:400;
  color:#9e9e9e;
  line-height:1.2;
}

.tp-card__title{
  font-size:42px;
  font-weight:400;
  color:#fff;
  line-height:1.05;
  letter-spacing:-0.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.tp-card__toggle{
  width:70px;
  height:70px;
  border-radius:8.75px;
  border:1.75px solid rgba(248,249,251,.25);
  background:transparent;
  display:grid;
  place-items:center;
  cursor:pointer;
  flex:0 0 auto;
}

.tp-card__line{
  height:1px;
  width:100%;
  background:rgba(255,255,255,.25);
  margin:30px 0;
}

/* метрики строго в 1 ряд */
.tp-metrics{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:100px;
  flex-wrap:nowrap;
}

.tp-metric{
  width:105px;
  display:flex;
  flex-direction:column;
  gap:19px;
  min-width:105px;
}

.tp-metric__label{
  font-size:14px;
  font-weight:400;
  color:#9e9e9e;
  white-space:nowrap; /* ключевое: никаких переносов */
  line-height:1.2;
}

.tp-metric__value{
  font-size:24px;
  font-weight:400;
  color:#fff;
  white-space:nowrap;
  line-height:1.2;
}

/* CTA белая 1:1 */
.tp-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:30px;

  padding:11.7px 30px;
  border-radius:5px;

  background:#fff;
  border:1px solid #fff;
  color:#000;

  font-size:14px;
  font-weight:400;
  text-decoration:none;
  cursor:pointer;
}

/* =========================
   Collapsed state (добавили воздуха)
   ========================= */
.tp-card.is-collapsed{
  width:520px;
  padding:22px 26px;
}

.tp-card.is-collapsed .tp-card__line,
.tp-card.is-collapsed .tp-metrics,
.tp-card.is-collapsed .tp-cta{
  display:none;
}

.tp-card.is-collapsed .tp-card__titleBlock{
  gap:10px;
}

.tp-card.is-collapsed .tp-card__title{
  font-size:22px;
  line-height:1.2;
}

.tp-card.is-collapsed .tp-card__toggle svg{
  transform:rotate(180deg);
}

/* =========================
   BELOW CONTENT GRID
   ========================= */
.tp-content{
  margin-top:38px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

/* LEFT plan */
.tp-planBox{
  background:#f9f9fb;
  border-radius:10px;
  padding:40px 30px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:18px;
}

.tp-planBox__img{
  width:100%;
  height:499px;
  object-fit:cover;
  border-radius:10px;
}

.tp-planBox__empty{
  width:100%;
  height:499px;
  border-radius:10px;
  background:#f2f3f7;
  display:grid;
  place-items:center;
  color:#9e9e9e;
  font-weight:700;
}

.tp-tabs{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

.tp-tab{
  padding:20px 25px;
  border:0;
  background:transparent;
  border-radius:5px;
  cursor:pointer;
  font-size:18px;
  font-weight:400;
  color:#000;
}

.tp-tab.is-active{
  background:#fff;
}

/* RIGHT column */
.tp-rightCol{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.tp-infoBox{
  background:#f9f9fb;
  border-radius:10px;
  padding:40px;
  display:flex;
  flex-direction:column;
  gap:39px;
}

.tp-infoBox__title{
  font-size:32px;
  font-weight:500;
  color:#000;
}

.tp-infoBox__text{
  font-size:16px;
  color:#818181;
  line-height:1.55;
}

.tp-propsGrid{
  display:flex;
  gap:100px;
  align-items:flex-start;
}

.tp-propsCol{
  width:261px;
  display:flex;
  flex-direction:column;
  gap:53px;
}

.tp-prop{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.tp-prop__ico{
  width:16px;
  height:16px;
  border-radius:4px;
  background:#f1f2f6;
  flex:0 0 auto;
  margin-top:2px;
}

.tp-prop__body{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.tp-prop__label{
  font-size:14px;
  font-weight:500;
  color:#9e9e9e;
}

.tp-prop__value{
  font-size:18px;
  font-weight:400;
  color:#000;
  line-height:1.25;
}

/* Prices bottom */
.tp-prices{
  background:#f9f9fb;
  border-radius:10px;
  padding:20px 40px;
  display:flex;
  gap:39px;
}

.tp-price{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:14px;
  position:relative;
}

.tp-price__label{
  font-size:14px;
  font-weight:500;
  color:#9e9e9e;
}

.tp-price__value{
  font-size:24px;
  font-weight:700;
  color:#000;
  position:relative;
}

/* tooltip */
.tp-tooltip{
  position:absolute;
  left:0;
  top:calc(100% + 10px);
  background:#fff;
  color:#000;
  border-radius:5px;
  padding:10px 12px;
  font-size:12px;
  font-weight:400;
  white-space:nowrap;
  box-shadow:0 14px 40px rgba(0,0,0,0.18);
  opacity:0;
  transform:translateY(-4px);
  pointer-events:none;
  transition:opacity 160ms ease, transform 160ms ease;
  z-index:30;
}

.tp-price__value:hover .tp-tooltip{
  opacity:1;
  transform:translateY(0);
}

/* form wrap */
.tp-formWrap{
  margin-top:50px;
  background:#f9f9fb;
  border-radius:10px;
  padding:40px;
}

/* =========================
   Responsive (бережно)
   ========================= */
@media (max-width: 1200px){
  .tp-slider{ height:560px; }
  .tp-content{ grid-template-columns:1fr; }
  .tp-card{
    width:calc(100% - 80px);
    left:40px;
    right:40px;
  }
  .tp-metrics{ gap:30px; justify-content:space-between; }
  .tp-metric{ min-width:auto; width:auto; }
  .tp-prices{ flex-direction:column; }
  .tp-propsGrid{ gap:40px; flex-wrap:wrap; }
}

@media (max-width: 640px){
  .tp-slider{ height:420px; }
  .tp-card{
    left:16px;
    top:16px;
    width:calc(100% - 32px);
    padding:24px;
  }
  .tp-card__title{ font-size:34px; }
  .tp-metrics{
    flex-wrap:wrap;
    gap:20px 26px;
  }
  .tp-metric__label{ white-space:normal; }
}

/* ===== icons in props ===== */
.tp-prop__icoImg{
  width:16px;
  height:16px;
  flex:0 0 auto;
  margin-top:2px;
  opacity:1;
}

/* ===== card collapse animation ===== */
.tp-card{
  transition: width 260ms ease, padding 260ms ease, transform 260ms ease;
}

.tp-card__line,
.tp-metrics,
.tp-cta{
  transition: max-height 220ms ease, opacity 180ms ease, margin 220ms ease;
  overflow:hidden;
  opacity:1;
  max-height:300px;
}

.tp-card.is-collapsed .tp-card__line,
.tp-card.is-collapsed .tp-metrics,
.tp-card.is-collapsed .tp-cta{
  opacity:0;
  max-height:0;
  margin:0;
  pointer-events:none;
}

.tp-card.is-collapsed .tp-card__toggle svg{
  transition: transform 180ms ease;
  transform: rotate(180deg);
}

/* ===== plan zoom modal ===== */
.tp-planBox__img{
  cursor: zoom-in;
}

.tp-zoom{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
}

.tp-zoom.is-open{
  display:block;
}

.tp-zoom__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
}

.tp-zoom__panel{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(1100px, calc(100% - 40px));
  height:min(760px, calc(100% - 40px));
  background:#0b0b0d;
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 30px 90px rgba(0,0,0,.45);
}

.tp-zoom__close{
  position:absolute;
  right:14px;
  top:10px;
  width:36px;
  height:36px;
  border-radius:8px;
  border:0;
  cursor:pointer;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:22px;
}

.tp-zoom__tools{
  position:absolute;
  left:14px;
  top:10px;
  display:flex;
  gap:8px;
  z-index:2;
}

.tp-zoom__btn{
  height:36px;
  padding:0 12px;
  border-radius:8px;
  border:0;
  cursor:pointer;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-weight:600;
}

.tp-zoom__stage{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  padding:54px 18px 18px;
}

.tp-zoom__img{
  max-width:100%;
  max-height:100%;
  transform-origin:center center;
  user-select:none;
  -webkit-user-drag:none;
}

/* ===== description collapse ===== */
.tp-desc{
  position:relative;
}

.tp-desc__content{
  max-height:100px;
  overflow:hidden;
  position:relative;
}

.tp-desc__content:after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:40px;
  background:linear-gradient(to bottom, rgba(255,255,255,0), #f9f9fb);
  pointer-events:none;
}

.tp-desc__more{
  margin-top:10px;
  border:0;
  background:transparent;
  cursor:pointer;
  color:#000;
  font-weight:600;
  padding:0;
}

.tp-desc.is-open .tp-desc__content{
  max-height:none;
}

.tp-desc.is-open .tp-desc__content:after{
  display:none;
}
/* End */
/* /bitrix/templates/universe_s1/components/bitrix/news.detail/projects.default.1.custom/style.css?177001635910646 */
