/* Страница «ЦОД / Colocation» */

/* ——— Герой ———
   Макет 1920: заголовок 64/70 (3 строки) от y=362, текст 14/26, кнопка 52, карточки преимуществ 905–1100.
   Стойка с дорожками — прозрачный вырез из рендера, bbox 820–1843 × 325–904 (1023×579). */
.dc-hero { position: relative; background: var(--b2b-bg); padding-block: 114px 141px; overflow: hidden; }
.dc-hero__body { position: relative; z-index: 1; max-width: 940px; }
.dc-hero__title {
  margin: 0 0 28px;
  font-size: var(--t-h1);   /* как на остальных главных продуктовых страницах */
  line-height: var(--lh-h1);
  font-weight: 500;
  letter-spacing: var(--font-tracking-head);
}
.dc-hero__title span { color: #fff; }
.dc-hero__title .accent { color: var(--brand); }
.dc-hero__text {   /* размер как у текста первого экрана на остальных главных продуктовых страницах */
  max-width: 640px;
  margin: 0 0 35px;
  color: #fff;
  font-size: var(--t-h3);
  line-height: var(--lh-h3);
}
@media (max-width: 1700px) { .dc-hero__text { max-width: 620px; } }
@media (max-width: 1360px) { .dc-hero__text { max-width: 540px; } }
@media (max-width: 1100px) { .dc-hero__text { max-width: 760px; } }
@media (max-width: 767px) { .dc-hero__text { font-size: 21px; line-height: 1.2; margin-bottom: 24px; } }
.dc-hero__art { position: absolute; top: 72px; right: 77px; width: 1023px; pointer-events: none; }
.dc-hero__art img { display: block; width: 100%; height: auto; }
.dc-adv { padding-top: 0; position: relative; z-index: 1; }
@media (min-width: 1101px) { .dc-adv .b2b-adv__item { min-height: 195px; } }
.dc-adv .b2b-adv__item p { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }

/* ——— Кому подходит ——— */
.dc-who { background: var(--b2b-bg); padding-block: var(--sec-gap); }
.dc-who .b2b-h2 { margin-bottom: 40px; }
.dc-who__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.dc-who__card {
  padding: 30px;
  border: 1px solid transparent;
  border-radius: var(--r-card);
  background: var(--b2b-card);
}
.dc-who__card--hl { border-color: var(--brand); background: transparent; }
.dc-who__card .ico { width: 32px; height: 32px; color: var(--brand); margin-bottom: 22px; }
.dc-who__card h3 {
  margin: 0 0 14px;
  font-size: var(--t-lg);
  line-height: var(--lh-lg);
  font-weight: 500;
}
.dc-who__card p {
  margin: 0;
  color: var(--b2b-text-2);
  font-size: var(--t-sm);
  line-height: var(--lh-sm);
}

/* ——— Какие задачи решает ЦОД ——— */
.dc-tasks {
  position: relative;
  background: #1A1C21;
  padding-block: var(--sec-gap) 0;
  overflow: hidden;
}
.dc-tasks__dots {
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 60%;
  background-image: radial-gradient(var(--brand) 32%, transparent 33%);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 90% 30%, #000 0, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 90% 30%, #000 0, transparent 72%);
  opacity: .9;
  pointer-events: none;
}
.dc-tasks .container { position: relative; z-index: 1; }
.dc-tasks__head { max-width: 820px; margin: 0 auto 70px; text-align: center; }
.dc-tasks__head p {
  margin: 24px 0 0;
  color: var(--b2b-text-2);
  font-size: var(--t-sm);
  line-height: 24px;
}
.dc-tasks__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.dc-task {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 60px;
  min-height: 300px;
  padding: 30px;
  border: 1px solid transparent;
  border-radius: var(--r-card);
  background: var(--b2b-card);
}
.dc-task--hl { border-color: var(--brand); background: transparent; }
.dc-task .ico { width: 32px; height: 32px; color: var(--brand); }
.dc-task h3 {
  margin: 0;
  font-size: var(--t-md);
  line-height: var(--lh-md);
  font-weight: 500;
}
/* Макет: вырез инженера со стойками 1320×379, по центру, верх на 141px ниже карточек, низ = граница секции */
.dc-tasks__photo {
  position: relative;
  z-index: 1;
  width: 1320px;
  max-width: calc(100% - var(--page-pad) * 2);
  margin: 141px auto 0;
}
.dc-tasks__photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* ——— Стоимость ——— */
.dc-price { padding-block: var(--sec-gap); }
/* заголовок в одну строку, цены — плитками в две колонки: название слева, цена прижата вправо */
.dc-price .sip-price__head { grid-template-columns: auto minmax(0, 1fr); gap: 60px; align-items: center; margin-bottom: 40px; }
.dc-price .b2b-h2 { white-space: nowrap; }
.dc-price .b2b-h2 span { display: inline-block; margin-left: .25em; }
.dc-price .sip-price__note p { margin-bottom: 0; max-width: 760px; margin-left: auto; }
.dc-price .sip-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; overflow: visible; border-radius: 0; background: none; }
.dc-price .sip-table__row { grid-template-columns: minmax(0, 1fr) auto; min-height: 76px; padding: 18px 28px; border: 0; border-radius: var(--r-md); background: var(--b2b-surface); }
.dc-price .sip-table__row:nth-child(even) { background: var(--b2b-surface); }
.dc-price .sip-table__row span { display: block; }
.dc-price .sip-table__row .sip-hint { margin-left: 6px; vertical-align: 1px; }
.dc-price .sip-table__row strong { text-align: right; white-space: nowrap; }
.dc-price .sip-table__row .dc-tip { left: 0; top: 100%; width: min(350px, 80vw); margin: 10px 0 0; transform: none; }
.dc-price .dc-tip::before { display: none; }
@media (max-width: 1100px) {
  .dc-price .sip-price__head { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .dc-price .sip-price__note p { margin-left: 0; }
  .dc-price .sip-table { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .dc-price .b2b-h2 { white-space: normal; }
  .dc-price .sip-table__row { min-height: 0; padding: 14px 18px; gap: 14px; border-radius: 15px; }
}
.dc-price .sip-table__row strong em { font-style: normal; font-weight: 400; color: var(--b2b-text-2); }

.dc-tip-wrap { position: relative; }
.sip-table__row .dc-tip {
  position: absolute;
  left: 100%;
  top: 50%;
  z-index: 5;
  display: none;
  width: 350px;
  margin-left: 14px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #fff;
  font-size: var(--t-xs);
  line-height: var(--lh-xs);
  transform: translateY(-50%);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}
.dc-tip::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  border: 7px solid transparent;
  border-right-color: var(--brand);
  border-left: 0;
  transform: translateY(-50%);
}
/* подсказка видна, только пока курсор на значке (или значок выбран с клавиатуры); после щелчка не «залипает» */
.dc-price .sip-table__row .dc-tip { display: none; }   /* сильнее правила «.dc-price .sip-table__row span», из-за которого подсказка была открыта всегда */
.dc-price .sip-table__row .sip-hint:hover + .dc-tip,
.dc-price .sip-table__row .sip-hint:focus-visible + .dc-tip { display: block; }
.dc-tip-wrap .sip-hint { cursor: help; }

/* ——— Instagram ——— */
.dc-insta { background: var(--b2b-bg); padding-block: var(--sec-gap) 0; }
.dc-insta__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.dc-insta__left { display: flex; align-items: flex-end; gap: 40px; }
.dc-insta__left p {
  max-width: 360px;
  margin: 0 0 8px;
  color: var(--b2b-text-2);
  font-size: var(--t-sm);
  line-height: var(--lh-sm);
}
.dc-insta .b2b-h2 span:not(.accent) { color: #fff; }
.dc-insta .btn svg { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; }

/* ——— Адаптив ——— */
@media (max-width: 1700px) {
  .dc-hero__art { width: 46vw; right: 4vw; }
}

@media (max-width: 1440px) {
  .dc-hero { padding-block: 90px 110px; }
  .dc-who__card, .dc-task { padding: 24px; }
  .dc-task { min-height: 260px; gap: 40px; }
}

@media (max-width: 1100px) {
  .dc-hero { padding-block: 60px 80px; }
  .dc-hero__art { position: static; width: min(100%, 640px); margin: 40px auto 0; }
  .dc-who__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dc-tasks__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sip-table__row .dc-tip { left: 0; top: 100%; width: min(350px, 80vw); margin: 10px 0 0; transform: none; }
  .dc-tip::before { display: none; }
}

@media (max-width: 767px) {
  .dc-hero { padding-block: 24px 40px; }
  .dc-hero__title { font-size: 30px; line-height: 1.1; }
  .dc-hero__art { margin-top: 24px; }
  .dc-who__grid, .dc-tasks__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dc-task { min-height: 0; gap: 28px; }
  .dc-tasks__head { text-align: left; margin-bottom: 36px; }
  .dc-tasks__dots { width: 70%; opacity: .3; }
  .dc-tasks__photo { margin-top: 40px; }
  .dc-insta__head, .dc-insta__left { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* Ревью: карточки «иконка + короткий текст» не держат лишнюю высоту */
.dc-task { min-height: 190px; gap: 36px; }
@media (max-width: 767px) { .dc-task { min-height: 150px; gap: 24px; } }

/* «Кому подходит»: текст крупнее — как в карточках видеонаблюдения и телефонии (заголовок 24, описание 18) */
.dc-who__card h3 { font-size: var(--t-h4); line-height: var(--lh-h4); }
.dc-who__card p { font-size: var(--t-md); line-height: 1.4; }
@media (max-width: 767px) {
  .dc-who__card h3 { font-size: var(--t-lg); line-height: var(--lh-lg); }
  .dc-who__card p { font-size: var(--t-base); line-height: var(--lh-base); }
}
