/* Информационные страницы gremir.ru (Доставка, Оплата и др.) — общие стили контентной части.
   Подключается из текста страницы: /wa-data/public/site/info/info.css
   Использует переменные и классы темы gremir_2025, тот же язык, что contacts.css. */

.info-v2 { display: flex; flex-direction: column; gap: 56px; --iv2-line: var(--stroke, #E2E2E2); --iv2-muted: #6B6F76; }
.info-v2 *, .info-v2 *:before, .info-v2 *:after { box-sizing: border-box; }
.info-v2 h2, .info-v2 h3, .info-v2 p { margin: 0; }
.info-v2 .iv2-h2 { padding-bottom: 12px; border-bottom: 1px solid var(--inverted, #212121); }
.info-v2 .iv2-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--inverted, #212121); }
.info-v2 .iv2-head .iv2-h2 { border-bottom: 0; padding-bottom: 0; }
.info-v2 .iv2-head .iv2-actions { margin-top: 0; }
.info-v2 .iv2-label { font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--iv2-muted); }
.info-v2 .iv2-note { display: block; margin-top: 4px; font-size: 12px; line-height: 16px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--iv2-muted); }
.info-v2 .iv2-lead { max-width: 760px; line-height: 22px; }
.info-v2 .iv2-accent { color: var(--accent, #E53516); }
.info-v2 .iv2-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.info-v2 .iv2-actions .button { min-height: 44px; gap: 8px; text-decoration: none; }
.info-v2 .iv2-actions .button .ico { flex-shrink: 0; }
.info-v2 a.iv2-link { color: var(--accent, #E53516); }

/* Плашки-факты: сетка ячеек с общей рамкой */
.iv2-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.iv2-cell { border: 1px solid var(--iv2-line); margin: -1px 0 0 -1px; padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.iv2-big { font-family: var(--font-family-secondary, "Inter Tight", sans-serif); font-weight: var(--bold, 500); font-size: 26px; line-height: 32px; letter-spacing: -0.01em; color: var(--primary); text-decoration: none; overflow-wrap: anywhere; }
a.iv2-big:hover { color: var(--accent); }

/* Таблица тарифов */
.iv2-table-wrap { overflow-x: auto; margin-top: 4px; }
.iv2-table { width: 100%; border-collapse: collapse; }
.iv2-table th { text-align: left; font-weight: 400; font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--iv2-muted); padding: 14px 16px 10px 0; border-bottom: 1px solid var(--iv2-line); white-space: nowrap; }
.iv2-table td { padding: 16px 16px 16px 0; vertical-align: top; line-height: 20px; border-bottom: 1px dashed var(--secondary, #B8BCC3); }
.iv2-table td.iv2-num { white-space: nowrap; font-family: var(--font-family-secondary, "Inter Tight", sans-serif); font-weight: var(--bold, 500); font-size: 18px; line-height: 22px; color: var(--primary); }
.iv2-table td.iv2-num.iv2-accent { color: var(--accent, #E53516); }
.iv2-table tr > :last-child { padding-right: 0; }
.iv2-table .iv2-zone { font-weight: 500; }

/* Две колонки: текст + фото */
.iv2-split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.iv2-split__col { flex: 1 1 380px; min-width: 0; }
.iv2-split__col--text { flex-basis: 440px; }
.iv2-photo { margin: 0; }
.iv2-photo a { display: block; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--iv2-line); background: var(--light-bg, #F5F6F8); }
.iv2-photo a:hover { border-color: var(--accent); }
.iv2-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.iv2-photo figcaption { margin-top: 10px; color: var(--iv2-muted); font-size: 12px; line-height: 16px; }

/* Таблица «параметр — значение» (как на «Контактах») */
.info-v2 table.features--info { margin: 0; width: 100%; }
.info-v2 table.features--info td { padding: 14px 0; vertical-align: top; width: auto; }
.info-v2 table.features--info td.name { width: 34%; padding-right: 16px; color: var(--iv2-muted); }
.info-v2 table.features--info td.value { text-align: left; line-height: 20px; }
.info-v2 table.features--req td.iv2-copy { width: 32px; padding-left: 8px; text-align: right; vertical-align: middle; }
.iv2-copy__btn { width: 28px; height: 28px; border: 0; padding: 0; background: transparent; color: var(--secondary, #B8BCC3); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 1px; }
.iv2-copy__btn:hover { color: var(--accent); }
.iv2-copy__btn.is-done { color: var(--green, #27C970); }
.iv2-copy__btn svg { width: 16px; height: 16px; }
.iv2-toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--inverted, #212121); color: #fff; padding: 10px 16px; font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: .04em; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .2s; }
.iv2-toast.is-visible { opacity: 1; }

/* Шаги: нумерованная лента */
.iv2-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: iv2step; }
.iv2-steps li { counter-increment: iv2step; border: 1px solid var(--iv2-line); margin: -1px 0 0 -1px; padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 8px; line-height: 20px; min-width: 0; }
.iv2-steps li:before { content: "0" counter(iv2step); font-size: 12px; line-height: 16px; letter-spacing: .06em; color: var(--accent, #E53516); }
.iv2-steps b { font-family: inherit; font-weight: var(--bold, 500); font-size: 18px; line-height: 22px; color: var(--primary); }

/* Список-теги (транспортные компании) */
.iv2-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; padding: 0; list-style: none; }
.iv2-tags li { border: 1px solid var(--iv2-line); padding: 6px 10px; font-size: 12px; line-height: 16px; text-transform: uppercase; letter-spacing: .04em; }

/* Нижняя строка «Остались вопросы» */
.iv2-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 24px; background: var(--light-bg, #F5F6F8); }
.iv2-cta__text { display: flex; flex-direction: column; gap: 6px; }
.iv2-cta .iv2-actions { margin-top: 0; }

/* Адаптив */
@media (max-width: 1100px) {
  .iv2-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .info-v2 { gap: 40px; }
  .iv2-cells, .iv2-steps { grid-template-columns: minmax(0, 1fr); }
  .iv2-cell, .iv2-steps li { padding: 16px; }
  .iv2-big { font-size: 22px; line-height: 28px; }
  .info-v2 .iv2-actions .button { flex: 1 1 calc(50% - 8px); height: auto; white-space: normal; text-align: center; }
  .info-v2 .iv2-head .iv2-actions .button { flex-basis: 100%; }
  .iv2-table thead { display: none; }
  .iv2-table, .iv2-table tbody, .iv2-table tr, .iv2-table td { display: block; width: 100%; }
  .iv2-table tr { padding: 12px 0; border-bottom: 1px dashed var(--secondary, #B8BCC3); }
  .iv2-table td { border: 0; padding: 2px 0; }
  .iv2-table td[data-th]:before { content: attr(data-th); display: block; font-size: 11px; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--iv2-muted); margin-top: 6px; }
  .info-v2 table.features--info td { display: block; width: 100% !important; padding: 0; }
  .info-v2 table.features--info td.name { padding: 12px 0 2px; }
  .info-v2 table.features--info td.value { padding: 0 0 12px; }
  .info-v2 table.features--req tr { position: relative; }
  .info-v2 table.features--req td.iv2-copy { position: absolute; right: 0; top: 10px; width: 32px !important; padding: 0; }
  .info-v2 table.features--req td.value { padding-right: 36px; }
  .iv2-cta { padding: 16px; }
}

/* Поправки поверх стилей списков темы */
.page .content__body .info-v2 ul.iv2-tags li, .page .content__body .info-v2 ol.iv2-steps li { margin-left: 0; }
.page .content__body .info-v2 ul.iv2-tags li { padding-left: 10px; }
.page .content__body .info-v2 ul.iv2-tags li:before { content: none; display: none; }
/* Тема ставит word-spacing: -2px — для цифр и подписей возвращаем обычный пробел */
.info-v2 .iv2-big, .iv2-table td.iv2-num, .iv2-table td[data-th]:before, .info-v2 .iv2-label, .iv2-table th { word-spacing: normal; }
.iv2-steps li > span { display: block; }
.iv2-photo--doc a { aspect-ratio: auto; }
.iv2-photo--doc img { height: auto; }

/* Сертификаты: сканы и таблица */
.iv2-nowrap { white-space: nowrap; }
.iv2-scans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 280px)); gap: 16px; margin-top: 20px; }
.iv2-scan { margin: 0; }
.iv2-scan a { display: block; border: 1px solid var(--iv2-line); background: #fff; padding: 8px; }
.iv2-scan a:hover { border-color: var(--accent); }
.iv2-scan img { display: block; width: 100%; height: auto; }
.iv2-scan figcaption { margin-top: 8px; color: var(--iv2-muted); font-size: 12px; line-height: 16px; }
@media (max-width: 760px) {
  .iv2-scans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .iv2-nowrap { white-space: normal; }
}

/* «О компании» и прочие страницы с длинным текстом */
.iv2-cells--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.iv2-stack { display: flex; flex-direction: column; gap: 16px; }
.iv2-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.iv2-steps li > span:only-child { font-weight: 500; color: var(--primary); }
.iv2-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.iv2-photos .iv2-photo a { aspect-ratio: 4 / 3; }
.iv2-table--compact td { padding-top: 12px; padding-bottom: 12px; }
.iv2-advantage { margin-top: 32px; }
.iv2-cta__text .iv2-label { max-width: 560px; text-transform: none; letter-spacing: 0; font-size: 13px; line-height: 18px; }
@media (max-width: 1100px) {
  .iv2-cells--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iv2-steps--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .iv2-cells--4, .iv2-steps--3 { grid-template-columns: minmax(0, 1fr); }
  .iv2-photos { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

.info-v2 .iv2-reminder { margin-top: 20px; border-left: 3px solid var(--accent, #E53516); background: var(--light-bg, #F5F6F8); padding: 16px 20px; }
.info-v2 .iv2-reminder p { margin-top: 6px; max-width: 760px; }
