/* Блоки главной, общие для «Хранения» и «Компании» (2019-7020 / 2019-8437): первый экран, факты, цифры, услуги, безопасность, процесс, преимущества, баннер, вопросы. Колонки — доли 1440. */

/* ---------- Первый экран: 720 (моб. 757), линия на 401 (моб. 378), вертикаль на середине ---------- */
.hero, .only { position: relative; overflow: hidden; background: var(--c-black); color: var(--c-white); }
/* макет 1440×720 = 2:1 — на широких экранах держим пропорцию, но не выше окна */
.hero { height: clamp(720px, 50vw, max(720px, 100svh)); display: grid; grid-template-rows: 401px 1fr; }
.hero__bg, .only__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
/* кадр макета: фото 1637×921 со сдвигом −82/−108 при экране 1440×720 */
.hero__bg { inset: auto; left: -5.69%; top: -15%; width: 113.68%; height: auto; aspect-ratio: 1637 / 921; min-height: 115%; }
.only__bg { object-position: 50% 23%; } /* кадр макета: 1457×971, сдвиг −57 */
.hero::before, .only::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); z-index: 1; }
.only::before { background: rgba(0, 0, 0, .6); }
.hero > *:not(.hero__bg), .only > *:not(.only__bg) { position: relative; z-index: 2; }
.hero__title { align-self: start; margin-top: 131px; padding-inline: var(--gutter); font: 400 52px/60px var(--f-head); }
.hero__bottom, .only__bottom { position: relative; border-top: 1px solid var(--c-white-20); display: grid; grid-template-columns: 1fr 1fr; }
.hero__vline { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--c-white-20); }
.hero__text { grid-column: 2; padding: 40px 0 0 41px; width: calc(320px + 41px); }
.hero__btn { position: absolute; right: var(--gutter); bottom: var(--gutter); }

/* ---------- Факты: 4 карточки по 25%, текст 211, картинка 360×360 ---------- */
.facts__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact + .fact { border-left: 1px solid var(--c-line); }
.fact__text { display: grid; gap: 20px; align-content: start; padding: 32px 40px 60px; min-height: 211px; border-top: 1px solid var(--c-line); }
.fact__title { font: 400 20px/28px var(--f-head); }
.fact__img { aspect-ratio: 1; display: grid; place-items: center; border-block: 1px solid var(--c-line); }
.fact__img img { width: 52.8%; }

/* ---------- Цифры ---------- */
.nums__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.num { display: grid; gap: 88px; align-content: start; padding: 48px var(--gutter); border-bottom: 1px solid var(--c-line); }
.num + .num:not(.num--big + .num) { border-left: 1px solid var(--c-line); }
.num__val { font: var(--w-semi) 48px/56px var(--f-head); text-transform: uppercase; white-space: nowrap; }
.num--big { grid-column: 1 / -1; gap: 80px; padding: 20px var(--gutter) 48px; border-top: 1px solid var(--c-line); }
/* 213 при 1440 = 14.79vw; Montserrat шире Dewi на 3% — держим строку в ширине контента */
.num--big .num__val { font-size: min(14.79vw, 284px); line-height: 1; }
.num--big .num__val span { font-size: inherit; }

/* ---------- Услуги: строка 600, картинка 852 + текст 587 ---------- */
.svc__list { border-top: 1px solid var(--c-line); }
.svc__item { display: grid; grid-template-columns: 59.17% 1fr; grid-template-rows: 219px 1fr; min-height: 600px; border-bottom: 1px solid var(--c-line); }
.svc__head { grid-column: 2; grid-row: 1; display: flex; justify-content: space-between; align-items: start; padding: 48px var(--gutter) 0; border-bottom: 1px solid var(--c-line); cursor: default; }
.svc__title { font: var(--w-semi) 28px/38px var(--f-head); text-transform: uppercase; }
.svc__count { padding-top: 4px; }
.svc__tog { display: none; }
.svc__img { grid-column: 1; grid-row: 1 / 3; display: grid; place-items: center; border-right: 1px solid var(--c-line); }
.svc__img img { width: 58.9%; }
.svc__desc { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; justify-content: space-between; padding: 48px var(--gutter); }
.svc__desc p { max-width: 320px; }
.svc__btns { margin-top: 40px; }
/* пара кнопок 253+254 входит в колонку только с 1440 — уже ставим их столбиком */
@media (min-width: 1024px) and (max-width: 1439px) { .svc__btns { flex-direction: column; } .svc__btns .btn { flex: none; justify-content: space-between; padding-inline: 24px; } .svc__desc p { max-width: none; } }

/* ---------- Безопасность ---------- */
.safe__word { padding: 38px var(--gutter) 52px; border-block: 1px solid var(--c-line); font: var(--w-semi) min(10.28vw, 197px)/1 var(--f-head); text-transform: uppercase; white-space: nowrap; }
.safe__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.scard { display: grid; justify-items: center; gap: 48px; padding: 48px var(--gutter) 120px; text-align: left; }
.scard + .scard { border-left: 1px solid var(--c-line); }
.scard__title { justify-self: stretch; font: var(--w-semi) 28px/38px var(--f-head); text-transform: uppercase; }
.scard__img { width: 141px; height: 170px; margin-block: 35px; }
.scard__text { justify-self: stretch; color: var(--c-white-80); }
.safe__photo { height: 720px; background: #3e3e3e; overflow: hidden; }
.safe__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 61%; } /* кадр макета: 1511×1008, сдвиг −35/−176 */
.proc__photo { display: none; }

/* ---------- Процесс: 4×2 по 25%, карточка 313 ---------- */
.proc__list { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--c-line); }
.proc__list::after { content: ""; grid-column: 4; grid-row: 2; background: url("/img/13e1841c.webp") 76.6% 41% / 177.2% auto no-repeat; } /* кадр макета 638×473, сдвиг −213/−66 */
.step { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 20px; min-height: 313px; padding: 32px var(--gutter) 40px; border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); transition: background-color .3s var(--ease); }
.step:nth-child(4) { border-right: 0; }
.step__title { font: 400 20px/28px var(--f-head); }
.step__cta { grid-row: 3; height: 48px; width: 100%; padding-inline: 24px; }
.proc__list > * { min-width: 0; }
@media (min-width: 1024px) and (max-width: 1279px) { .step__cta { white-space: normal; height: auto; min-height: 48px; padding-block: 8px; justify-content: space-between; padding-inline: 16px; text-align: left; } }
.step__btn { grid-row: 3; justify-self: end; width: 48px; height: 48px; }
.step__desc { position: absolute; inset: 37px var(--gutter) auto; color: var(--c-white-80); opacity: 0; visibility: hidden; transition: opacity .3s; }
.step.is-open { background: var(--c-hover); }
.step.is-open > .t-caps, .step.is-open .step__title { opacity: 0; }
.step.is-open .step__desc { opacity: 1; visibility: visible; }
.step.is-open .step__btn { background: var(--c-bg); }

/* + поворачивается в × */
[data-desc-btn] .i, .svc__tog .i { transition: transform .3s var(--ease); }
.is-open > [data-desc-btn] .i, .svc__item.is-open .svc__tog .i { transform: rotate(45deg); } /* у раскрытого вопроса в макете остаётся «+» */

/* ---------- Преимущества: 3×2 по 33.33%, карточка 496 ---------- */
.adv { padding-bottom: 160px; }
.adv__list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--c-line); }
.acard { position: relative; display: grid; grid-template-rows: auto auto 1fr; gap: 20px; min-height: 496px; padding: 32px var(--gutter) 40px; border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); overflow: hidden; }
.acard:nth-child(3n) { border-right: 0; }
.acard__title { font: 400 20px/28px var(--f-head); }
.acard__img { justify-self: center; align-self: start; width: 141px; height: 170px; margin-top: 55px; }
.acard__btn { position: absolute; right: var(--gutter); bottom: var(--gutter); width: 48px; height: 48px; z-index: 2; }
/* плашка описания 439×303 от левого поля карточки до правого края */
.acard__desc { position: absolute; left: var(--gutter); right: 0; bottom: 0; height: 303px; padding: 36px 40px; background: var(--c-hover); color: var(--c-white-80); transform: translateY(101%); transition: transform .4s var(--ease); }
.acard.is-open .acard__desc { transform: none; }
.acard.is-open .acard__btn { background: var(--c-bg); }

/* ---------- Единственные в России ---------- */
.only { height: clamp(720px, 50vw, max(720px, 100svh)); display: grid; grid-template-rows: 401px 1fr; }
.only .shead { padding-top: 96px; padding-bottom: 0; }
.only__text { padding: 40px var(--gutter) 0; max-width: calc(432px + 2 * var(--gutter)); }
.only__btn { position: absolute; right: calc(50% + var(--gutter)); bottom: var(--gutter); }

/* ---------- Вопросы ---------- */
.faq__list { border-top: 1px solid var(--c-line); }
.q { border-bottom: 1px solid var(--c-line); transition: background-color .3s; }
.q > button { position: relative; width: 100%; display: grid; grid-template-columns: 347px 1fr 96px; align-items: center; min-height: 124px; padding-left: var(--gutter); }
.q__num { align-self: center; }
.q__title { font: 400 20px/28px var(--f-head); padding-block: 48px; max-width: 664px; }
.q__tog { align-self: stretch; display: grid; place-items: center; border-left: 1px solid var(--c-line); }
.q__tog .i { width: 16px; height: 16px; }
.q__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); margin-right: 96px; border-right: 1px solid var(--c-line); }
.q__body > p { overflow: hidden; padding-left: calc(var(--gutter) + 347px); max-width: calc(var(--gutter) + 347px + 664px); color: var(--c-white-80); }
.q.is-open { background: var(--c-card); }
.q.is-open .q__body { grid-template-rows: 1fr; }
.q.is-open .q__body > p { padding-bottom: 48px; }
.q.is-open .q__title { padding-bottom: 24px; }
@media (hover: hover) {
  .q > button:hover { background: var(--c-card); }
  .step[data-desc]:hover, .acard:hover { background: var(--c-card); }
}

/* ---------- Ленты на телефоне ---------- */
.dots { display: none; }

@media (max-width: 1279px) {
  .q > button { grid-template-columns: 200px 1fr 96px; }
  .q__body > p { padding-left: calc(var(--gutter) + 200px); }
}

@media (max-width: 1023px) {
  .hero { height: 757px; grid-template-rows: 378px 1fr; }
  /* кадры макета на 375: первый экран 1426×802 со сдвигом −345/−41, баннер 1180×787 −583/−22, ячейки 638×473 −206/−60 */
  .hero__bg { left: -92%; top: -41px; width: 380.3%; min-height: 0; }
  .only__bg { inset: auto; left: -155.5%; top: -22px; width: 314.7%; height: auto; aspect-ratio: 1180 / 787; max-width: none; }
  .hero__title { margin-top: 120px; font-size: 24px; line-height: 32px; padding-right: 49px; }
  .hero__bottom, .only__bottom { grid-template-columns: 1fr; }
  .hero__vline { display: none; }
  .hero__text { grid-column: 1; width: auto; padding: 40px var(--gutter) 0; }
  .hero__btn { right: var(--gutter); bottom: var(--gutter); padding-inline: 32px; }

  /* лента: прокрутка со щелчком, свайп пальцем родной */
  .slider__track { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; border-top: 1px solid var(--c-line); }
  .slider__track::-webkit-scrollbar { display: none; }
  .slider__track > li { flex: 0 0 100%; scroll-snap-align: start; border-left: 0 !important; border-right: 0 !important; }
  .dots { display: flex; justify-content: center; gap: 24px; padding-top: 32px; }
  .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--c-white-20); transition: background-color .25s; }
  .dots i.is-on { background: var(--c-gold); }
  [data-count] { font-size: 0; }
  [data-count]::after { content: attr(data-count); font-size: 11px; }

  .fact__text { padding: 20px var(--gutter) 32px; gap: 24px; min-height: 175px; border-top: 0; }
  .fact__title, .step__title, .acard__title { font-size: 17px; line-height: 26px; }
  .fact__img { aspect-ratio: auto; height: 282px; }
  .fact__img img { width: 190px; }

  .num, .num--big { display: grid; gap: 96px; padding: 32px var(--gutter) 40px; min-height: 282px; border: 0 !important; border-bottom: 1px solid var(--c-line) !important; }
  .num__val { font-size: 40px; line-height: 48px; white-space: normal; }
  .num--big .num__val { font-size: 64px; line-height: 72px; display: flex; gap: 12px; align-items: flex-start; }
  .num--big .num__val span { font-size: 24px; line-height: 24px; padding-top: 12px; }

  .svc__item { display: block; min-height: 0; }
  .svc__head { width: 100%; display: flex; justify-content: space-between; align-items: start; gap: 16px; text-align: left; padding: 24px var(--gutter); border: 0; cursor: pointer; }
  .svc__title { font-size: 20px; line-height: 30px; }
  .svc__count { display: none; }
  .svc__tog { display: grid; place-items: center; width: 32px; height: 32px; margin-top: 9px; flex: none; background: var(--c-black); }
  .svc__tog .i { width: 16px; height: 16px; }
  .svc__img, .svc__desc { display: none; border: 0; }
  .svc__item.is-open .svc__head { padding-bottom: 32px; }
  .svc__item.is-open .svc__img { display: grid; margin-inline: var(--gutter); height: 218px; }
  .svc__item.is-open .svc__img img { width: 279px; }
  .svc__item.is-open .svc__desc { display: block; padding: 32px var(--gutter) 48px; }
  .svc__desc p { max-width: none; }
  .svc__btns { flex-direction: column; gap: 16px; margin-top: 32px; }
  .svc__btns .btn { flex: none; justify-content: space-between; padding-inline: 24px; }

  .safe__word { padding: 24px var(--gutter) 28px; font-size: min(35px, 9.33vw); } /* 35 при 375 — слово во всю ширину */
  .safe__list { border-top: 0; }
  .scard { gap: 24px; padding: 24px var(--gutter) 40px; border-bottom: 1px solid var(--c-line); }
  .scard__title { font-size: 20px; line-height: 30px; }
  .safe .dots { padding-bottom: 64px; }
  .safe__photo { height: 188px; }

  .proc__photo { display: block; height: 248px; overflow: hidden; border-top: 1px solid var(--c-line); }
  .proc__photo img { width: 170.1%; max-width: none; height: auto; margin: -60px 0 0 -54.9%; }
  .proc__list::after { display: none; }
  .step { min-height: 245px; gap: 24px; padding: 20px var(--gutter) 32px; border-bottom: 1px solid var(--c-line); }
  .step__cta { height: 56px; justify-content: space-between; }
  .step__desc { inset: 20px var(--gutter) auto; }

  .adv { padding-bottom: 96px; }
  .acard { min-height: 462px; padding: 20px var(--gutter) 32px; gap: 24px; grid-template-rows: auto auto 1fr; }
  .acard__img { margin-top: 35px; }
  .acard__btn { right: var(--gutter); bottom: 32px; }
  .acard__desc { height: auto; top: 140px; padding: 32px var(--gutter); }

  .only { height: 757px; grid-template-rows: 378px 1fr; }
  .only .shead { padding-top: 64px; align-content: start; } /* шапка растянута на строку 378 — ряды не раздувать: заголовок через 32 от метки */
  .only__text { padding: 40px var(--gutter) 0; max-width: none; }
  .only__btn { left: var(--gutter); right: var(--gutter); bottom: var(--gutter); justify-content: space-between; padding-inline: 24px; }

  /* FAQ m: строка 24/24, вопрос 15/24 на 287, «+» 16 у правого края; открытая — фон карточки, ответ через 48 и 48 снизу */
  .q > button { grid-template-columns: 1fr 16px; column-gap: 24px; padding: 24px var(--gutter); align-items: start; min-height: 0; }
  .q__num { display: none; }
  .q__title, .q.is-open .q__title { grid-column: 1; padding: 0; font-size: 15px; line-height: 24px; }
  .q__tog { grid-column: 2; align-self: start; display: block; padding-top: 5px; border-left: 0; }
  .q__body { margin-right: 0; border-right: 0; }
  .q__body > p { padding-inline: var(--gutter); }
  .q.is-open > button { padding-bottom: 48px; }
  .q.is-open .q__body > p { padding-bottom: 48px; }
}

/* ---------- Верх внутренней страницы: заголовок 72/80 капсом, сверху 72, до содержимого 56 (моб. 28/38, 56 и 32) ---------- */
.page-top { padding-top: 72px; }
.page-top__title { padding: 0 var(--gutter) 56px; font: var(--w-semi) 72px/80px var(--f-head); text-transform: uppercase; }
@media (max-width: 1023px) {
  .page-top { padding-top: 56px; }
  .page-top__title { padding-bottom: 32px; font-size: 28px; line-height: 38px; }
}
/* лента мышью: курсор-рука, без выделения текста при перетаскивании */
@media (hover: hover) and (pointer: fine) {
  .slider__track.is-draggable { cursor: grab; }
  .slider__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
}
