/* Страница «Гарантии» (задача #384). Подключать только на этой странице, ПОСЛЕ style.css и main_custom0825.css.
   Все правила — внутри одного корневого класса .gr-page. Без глобальных селекторов, принудительных приоритетов, теней, градиентов, анимаций.
   Шрифт наследуется от сайта. Раскладка зависит от ширины контентной колонки (container query), а не от окна:
   поэтому вид одинаков и с левым меню (колонка ~745px), и без него (~960px). Браузеры без @container получают одноколонную версию. */

.gr-page {
  --gr-link: #1b78b0; --gr-hfg: #0f5d8c; --gr-hbg: #eaf4fb; --gr-focus: #14679b;
  --gr-text: #252e2e; --gr-muted: #666; --gr-line: #e6e9eb; --gr-border: #bbbbbb; --gr-field: #919191;
  --gr-tint: #f7f9f9; --gr-y: #ffb90f; --gr-r: 5px;
  container-type: inline-size;
  padding-bottom: 8px; font-size: 16px; line-height: 1.55; color: var(--gr-text);
}
.gr-page *, .gr-page *::before, .gr-page *::after { box-sizing: border-box; }
.gr-page p, .gr-page ul, .gr-page ol, .gr-page li, .gr-page figure, .gr-page blockquote { margin: 0; padding: 0; }
.gr-page ul, .gr-page ol { list-style: none; }
.gr-page li { list-style: none; margin: 0; }
.gr-page img { display: block; max-width: 100%; height: auto; }
.gr-page a { color: var(--gr-link); }
.gr-page a:hover { color: var(--gr-hfg); text-decoration: underline; }
.gr-page a:focus-visible, .gr-page button:focus-visible, .gr-page summary:focus-visible { outline: 2px solid var(--gr-focus); outline-offset: 2px; }

.gr-page .gr-sec { padding: 30px 0; border-top: 1px solid var(--gr-line); }
.gr-page .gr-sec.gr-sec--first { border-top: 0; padding-top: 0; }
.gr-page .gr-eyebrow { margin: 0 0 6px; font-size: 13px; line-height: 1.3; color: var(--gr-muted); }
.gr-page .gr-sec h2 { margin: 0 0 16px; font-size: 22px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.gr-page .gr-sec h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.25; }
.gr-page .gr-lead { max-width: 620px; font-size: 17px; line-height: 1.5; }

/* кнопки */
.gr-page .gr-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 4px 16px; border: 1px solid var(--gr-link); border-radius: var(--gr-r); background: #fff; color: var(--gr-link); font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.gr-page .gr-btn--p { background: var(--gr-link); color: #fff; }
.gr-page .gr-btn--p:hover { background: var(--gr-focus); border-color: var(--gr-focus); color: #fff; text-decoration: none; }
.gr-page .gr-btn--l { border-color: var(--gr-border); font-weight: 400; }
.gr-page .gr-btn--l:hover { border-color: var(--gr-link); background: var(--gr-hbg); color: var(--gr-hfg); text-decoration: none; }
.gr-page .gr-btn--big { min-height: 48px; font-size: 16px; }
.gr-page .gr-btn--w { width: 100%; }

/* первый экран */
.gr-page .gr-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.gr-page .gr-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 20px; }
.gr-page .gr-act .gr-btn { width: 100%; }
.gr-page .gr-act__t { display: grid; gap: 2px; }
.gr-page a.gr-tel { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--gr-text); text-decoration: none; }
.gr-page a.gr-tel:hover { color: var(--gr-hfg); text-decoration: none; }
.gr-page .gr-act small { font-size: 13px; color: var(--gr-muted); }
.gr-page .gr-toc { border: 1px solid var(--gr-line); border-radius: var(--gr-r); background: var(--gr-tint); }
.gr-page .gr-toc__h { padding: 12px 16px 0; font-size: 13px; color: var(--gr-muted); }
.gr-page .gr-toc ol { display: grid; grid-template-columns: minmax(0, 1fr); }
.gr-page .gr-toc a { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 8px; align-items: start; min-height: 44px; padding: 11px 16px; border-bottom: 1px solid var(--gr-line); color: var(--gr-text); text-decoration: none; }
.gr-page .gr-toc li:last-child a { border-bottom: 0; }
.gr-page .gr-toc a:hover { background: var(--gr-hbg); color: var(--gr-text); text-decoration: none; }
.gr-page .gr-toc b { font-size: 15px; line-height: 1.3; }
.gr-page .gr-toc span { grid-column: 2; font-size: 14px; line-height: 1.4; color: var(--gr-muted); }
.gr-page .gr-toc i { grid-row: 1 / span 2; font-style: normal; font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--gr-hfg); }

/* четыре гарантии */
.gr-page .gr-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.gr-page .gr-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 16px; border: 1px solid var(--gr-border); border-top: 4px solid var(--gr-y); border-radius: var(--gr-r); background: #fff; scroll-margin-top: 70px; }
.gr-page .gr-card .gr-eyebrow { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.gr-page .gr-num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 3px; background: var(--gr-hfg); color: #fff; font-size: 13px; }
.gr-page .gr-sec .gr-card h2 { margin: 0; font-size: 20px; line-height: 1.25; }
.gr-page .gr-lst { display: grid; gap: 8px; }
.gr-page .gr-lst li { position: relative; padding-left: 20px; }
.gr-page .gr-lst li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 1px; background: var(--gr-y); }

/* галереи */
.gr-page .gr-gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gr-page .gr-gal a { display: block; border: 1px solid var(--gr-line); border-radius: var(--gr-r); overflow: hidden; background: var(--gr-tint); }
.gr-page .gr-gal a:hover { border-color: var(--gr-link); }
.gr-page .gr-gal img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* оплата и доставка */
.gr-page .gr-pd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px 32px; align-items: start; }
.gr-page .gr-pd__h { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.gr-page .gr-pay { display: grid; gap: 10px; }
.gr-page .gr-pay li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 64px; padding: 10px 14px; border: 1px solid var(--gr-line); border-radius: var(--gr-r); background: var(--gr-tint); }
.gr-page .gr-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--gr-border); border-radius: var(--gr-r); background: #fff; color: var(--gr-hfg); }
.gr-page .gr-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gr-page .gr-dlv p + p { margin-top: 10px; }
.gr-page .gr-dlv .gr-trk { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.gr-page .gr-dlv .gr-trk li { padding: 6px 12px; border: 1px solid var(--gr-border); border-radius: var(--gr-r); font-size: 14px; background: #fff; }

/* схема работы: вертикально, на широкой колонке — в ряд */
.gr-page .gr-steps { display: grid; grid-template-columns: minmax(0, 1fr); }
.gr-page .gr-steps li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 0 0 18px; }
.gr-page .gr-steps li::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--gr-line); }
.gr-page .gr-steps li:last-child { padding-bottom: 0; }
.gr-page .gr-steps li:last-child::before { display: none; }
.gr-page .gr-steps b { position: relative; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--gr-r); background: var(--gr-hfg); color: #fff; font-size: 16px; }
.gr-page .gr-steps span { display: block; padding-top: 7px; font-weight: 600; line-height: 1.35; }

/* преимущества */
.gr-page .gr-adv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.gr-page .gr-adv li { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--gr-line); border-radius: var(--gr-r); background: var(--gr-tint); font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: break-word; hyphens: auto; }

/* отзывы */
.gr-page .gr-rv { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.gr-page .gr-rv__c { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--gr-border); border-radius: var(--gr-r); background: #fff; }
.gr-page .gr-rv__m { font-size: 14px; color: var(--gr-muted); }
.gr-page .gr-rv q { quotes: "«" "»"; display: block; font-size: 16px; line-height: 1.5; }
.gr-page .gr-rv__f { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--gr-line); font-size: 14px; }
.gr-page .gr-rv__f img { width: 56px; height: 72px; object-fit: cover; object-position: top; border: 1px solid var(--gr-line); }
.gr-page .gr-more { margin-top: 18px; }

/* видео, клиенты */
.gr-page .gr-vid { position: relative; max-width: 640px; aspect-ratio: 16 / 9; border: 1px solid var(--gr-border); border-radius: var(--gr-r); overflow: hidden; background: var(--gr-tint); }
.gr-page .gr-vid iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.gr-page .gr-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gr-page .gr-logos--p { max-width: 480px; }
.gr-page .gr-logos li { height: 96px; padding: 8px; border: 1px solid var(--gr-line); border-radius: var(--gr-r); background: #fff; }
.gr-page .gr-logos img { width: 100%; height: 100%; object-fit: contain; }
.gr-page .gr-sec h2.gr-sub { margin: 28px 0 14px; font-size: 20px; line-height: 1.2; }
.gr-page .gr-sec h2.gr-sub:first-child { margin-top: 0; }

/* вопросы-ответы (нативный details, JS не нужен) */
.gr-page .gr-faq { display: grid; max-width: 800px; border-top: 1px solid var(--gr-line); }
.gr-page .gr-faq details { border-bottom: 1px solid var(--gr-line); }
.gr-page .gr-faq summary { position: relative; display: block; min-height: 48px; padding: 13px 40px 13px 0; font-weight: 600; line-height: 1.35; cursor: pointer; list-style: none; }
.gr-page .gr-faq summary::-webkit-details-marker { display: none; }
.gr-page .gr-faq summary::after { content: ""; position: absolute; right: 8px; top: 20px; width: 8px; height: 8px; border-right: 2px solid var(--gr-link); border-bottom: 2px solid var(--gr-link); transform: rotate(45deg); }
.gr-page .gr-faq details[open] summary::after { top: 24px; transform: rotate(-135deg); }
.gr-page .gr-faq summary:hover { color: var(--gr-hfg); }
.gr-page .gr-faq details p { max-width: 680px; padding: 0 0 16px; }

/* карта: разметка и скрипт ленивой загрузки уже есть на странице (.ymap-lazy), здесь только оформление */
.gr-page .gr-map { position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; min-height: 260px; padding: 20px; border: 1px solid var(--gr-border); border-radius: var(--gr-r); background: var(--gr-tint); text-align: center; }
.gr-page .gr-map.is-loaded { display: block; min-height: 400px; padding: 0; border: 0; background: none; }

/* заключительный призыв */
.gr-page .gr-cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px 16px; border: 1px solid var(--gr-border); border-left: 4px solid var(--gr-y); border-radius: var(--gr-r); background: #fff; }
.gr-page .gr-sec .gr-cta h2 { margin: 0 0 10px; }
.gr-page .gr-cta p { max-width: 520px; }
.gr-page .gr-cta__c { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 14px; }
.gr-page .gr-cta__c small { font-size: 14px; color: var(--gr-muted); }
.gr-page .gr-cta .gr-cta__l { margin-top: 10px; font-size: 14px; }
.gr-page .gr-form { display: grid; gap: 10px; }
.gr-page .gr-form small { font-size: 13px; line-height: 1.4; color: var(--gr-muted); }

/* колонка от 560px */
@container (min-width: 560px) {
  .gr-page .gr-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gr-page .gr-toc li:nth-child(odd) a { border-right: 1px solid var(--gr-line); }
  .gr-page .gr-toc li:nth-child(3) a { border-bottom: 0; }
  .gr-page .gr-act .gr-btn { width: auto; }
  .gr-page .gr-gal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .gr-page .gr-adv { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .gr-page .gr-adv li { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; padding: 16px 10px; }
  .gr-page .gr-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gr-page .gr-logos--p { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* колонка от 680px */
@container (min-width: 680px) {
  .gr-page .gr-sec { padding: 40px 0; }
  .gr-page .gr-sec h2 { font-size: 26px; margin-bottom: 20px; }
  .gr-page .gr-sec .gr-card h2 { font-size: 21px; margin: 0; }
  .gr-page .gr-sec .gr-cta h2 { margin: 0 0 10px; }
  .gr-page .gr-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .gr-page .gr-card { padding: 22px 22px 20px; }
  .gr-page .gr-pd { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gr-page .gr-rv { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .gr-page .gr-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gr-page .gr-steps li { display: block; padding: 0 12px 0 0; }
  .gr-page .gr-steps li::before { left: 36px; right: 0; top: 17px; bottom: auto; width: auto; height: 2px; }
  .gr-page .gr-steps b { margin-bottom: 12px; }
  .gr-page .gr-steps span { padding-top: 0; }
  .gr-page .gr-cta { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 24px 32px; padding: 28px; }
  .gr-page .gr-sec h2.gr-sub { font-size: 22px; }
}
/* колонка от 820px (без левого меню) */
@container (min-width: 820px) {
  .gr-page .gr-hero { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px 36px; }
  .gr-page .gr-toc ol { grid-template-columns: minmax(0, 1fr); }
  .gr-page .gr-toc li:nth-child(odd) a { border-right: 0; }
  .gr-page .gr-toc li:nth-child(3) a { border-bottom: 1px solid var(--gr-line); }
  .gr-page .gr-adv { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .gr-page .gr-logos { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .gr-page .gr-cta { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
}

/* Колонка страницы без левого меню (чанк content: class="grid_12 gr-col" только для id 4022).
   Общий style-mobile.css знает только .grid_9; правило ограничено классом .gr-col и этой страницей. */
@media screen and (max-width: 515px) {
  .container_12 .grid_12.gr-col { float: none; width: 100%; margin-left: 0; margin-right: 0; }
}
