/* /gr/ — работа с государством (макет «GR.dc.html»). Токены — agency-brand.css. */

.gr { padding-bottom: 96px; }
.gr-sec { padding-top: 96px; scroll-margin-top: 72px; }
.gr-muted { font-size: 13px; color: var(--ag-muted); }
.gr-link { font-size: 14.5px; border-bottom: 1px solid #9a9a96; padding-bottom: 2px; }
.gr-btn-sm { padding: 15px 24px; font-size: 12px; cursor: pointer; }
button.ag-btn { cursor: pointer; font: inherit; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
button.ag-btn.gr-btn-sm { font-size: 12px; }

/* Липкая навигация по блокам (шапка сайта не закреплена). */
.gr-subnav { position: sticky; top: 0; z-index: 30; background: var(--ag-bg);
             border-bottom: 1px solid var(--ag-ink); }
.gr-subnav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px;
                    padding-top: 10px; padding-bottom: 10px; }
.gr-subnav__links { display: flex; gap: 24px; font-size: 13px; letter-spacing: .02em; white-space: nowrap; }
.gr-subnav__links a:hover { color: var(--ag-muted); }
.gr-subnav__cta { padding: 12px 20px; font-size: 12px; }

/* Первый экран */
.gr-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 56px;
           align-items: end; padding-top: 56px; }
.gr-kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.gr-kicker__bar { width: 56px; height: 8px; background: var(--ag-block); display: block; }
.gr-h1 { margin: 0; font-size: clamp(36px, 5vw, 82px); line-height: .96; font-weight: 700; letter-spacing: -.05em; }
body .gr-h1 { color: var(--ag-ink); }
.gr-mark { background: linear-gradient(transparent 10%, var(--ag-block) 10%, var(--ag-block) 96%, transparent 96%);
           -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 8px; }
.gr-lead { margin: 26px 0 0; max-width: 640px; font-size: 18px; line-height: 1.55; color: var(--ag-text); }
.gr-hero__cta { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 30px; }
.gr-sample { justify-self: end; width: 100%; max-width: 460px; border: 1px solid var(--ag-ink);
             background: #f4f4f2; padding: 26px; }
.gr-sample__head { display: flex; justify-content: space-between; gap: 12px; font-size: 9px; }
.gr-sample__title { margin-top: 16px; font-size: 20px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.gr-sample__rows { margin: 16px 0 0; }
.gr-sample__row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 11px 0;
                  border-top: 1px solid var(--ag-rule); font-size: 14px; line-height: 1.45; }
.gr-sample__row:last-child { border-bottom: 1px solid var(--ag-ink); }
.gr-sample__row dt { font-size: 9px; padding-top: 3px; }
.gr-sample__row dd { margin: 0; }

.gr-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding-top: 56px; }
.gr-fact { border-top: 1px solid var(--ag-ink); padding-top: 18px; }
.gr-fact__value { font-size: clamp(32px, 3.2vw, 48px); font-weight: 700; letter-spacing: -.045em; line-height: 1;
                  margin-bottom: 10px; white-space: nowrap; }

/* Заголовки разделов */
.gr-head { border-top: 1px solid var(--ag-ink); padding-top: 26px; margin-bottom: 36px; display: flex;
           gap: 24px; align-items: baseline; }
.gr-head--split { flex-wrap: wrap; justify-content: space-between; margin-bottom: 32px; }
.gr-head--plain { border-top: 0; padding-top: 0; margin-bottom: 0; }
.gr-head__title { display: flex; gap: 24px; align-items: baseline; }
.gr-h2 { margin: 0; font-size: clamp(28px, 3.6vw, 54px); line-height: 1.02; font-weight: 700; letter-spacing: -.04em; }
.gr-h2--wide { max-width: 1000px; }
.gr-h2--sm { font-size: clamp(28px, 3.2vw, 48px); }
.gr-intro { margin: -8px 0 28px; max-width: 760px; font-size: 16px; line-height: 1.6; color: var(--ag-text); }
.gr-num { font-size: 36px; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.gr-num--sm { font-size: 30px; flex: none; width: 44px; }

/* 01 Слайдер ситуаций */
.gr-slider__nav { display: flex; gap: 6px; align-items: center; }
.gr-slider__nav .ag-mono { margin-right: 10px; font-size: 10.5px; }
.gr-arrow { width: 48px; height: 48px; border: 1px solid var(--ag-ink); background: transparent; font-size: 17px;
            cursor: pointer; color: var(--ag-ink); }
.gr-arrow:hover { background: var(--ag-ink); color: var(--ag-bg); }
.gr-slider { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; align-items: stretch; }
.gr-slider__tabs { display: flex; flex-direction: column; border-top: 1px solid var(--ag-ink); }
.gr-tab { display: flex; gap: 16px; align-items: baseline; text-align: left; padding: 17px 16px; border: 0;
          border-bottom: 1px solid var(--ag-rule); background: transparent; color: var(--ag-ink); cursor: pointer;
          font: inherit; font-size: 16.5px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; }
.gr-tab .ag-mono { font-size: 10px; font-weight: 400; color: inherit; opacity: .6; }
.gr-tab:hover { background: var(--ag-hover); }
.gr-tab.is-active { background: var(--ag-ink); color: var(--ag-bg); }
.gr-slide { background: var(--ag-ink); color: var(--ag-bg); padding: clamp(26px, 3vw, 44px); display: flex;
            flex-direction: column; gap: 20px; min-height: 360px; height: 100%; }
/* Без JavaScript видны все ситуации подряд; с ним — по одной. */
.gr-js .gr-slide { display: none; }
.gr-js .gr-slide.is-active { display: flex; }
.gr-slider__panels { display: flex; flex-direction: column; gap: 16px; }
.gr-slide__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--ag-block); }
body .gr-slide__title { margin: 0; font-size: clamp(26px, 2.8vw, 42px); line-height: 1.04; font-weight: 700;
                        letter-spacing: -.04em; color: var(--ag-bg); }
body .gr-slide__text { margin: 0; max-width: 620px; font-size: 17px; line-height: 1.6; color: #d6d6d2; }
.gr-slide__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
                  justify-content: space-between; }
.gr-slide__btn { padding: 17px 28px; background: var(--ag-bg); color: var(--ag-ink); font-size: 12.5px;
                 letter-spacing: .06em; text-transform: uppercase; }
.gr-slide__btn:hover { background: #d6d6d2; color: var(--ag-ink); }
.gr-dots { display: flex; gap: 6px; }
.gr-dot { width: 26px; height: 5px; border: 0; padding: 0; cursor: pointer; background: #4a4a48; }
.gr-dot.is-active { background: var(--ag-bg); }

/* 02 Поможем / не поможем */
.gr-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.gr-fit__label { padding-bottom: 12px; border-bottom: 1px solid var(--ag-ink); font-size: 10px; }
.gr-fit__label--ink { color: var(--ag-ink); }
.gr-fit__row { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--ag-rule); }
.gr-fit__row:last-of-type { border-bottom-color: var(--ag-ink); }
.gr-fit__sign { font-size: 20px; font-weight: 700; flex: none; width: 24px; }
.gr-fit__sign--no { color: var(--ag-muted); }
.gr-fit__title { font-size: 18px; font-weight: 700; letter-spacing: -.022em; }
body .gr-fit__text { margin: 6px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--ag-text); }
body .gr-fit__plain { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ag-text); }
.gr-quizbox { margin-top: 28px; border: 1px solid var(--ag-ink); padding: 24px; display: flex; flex-direction: column;
              gap: 14px; align-items: flex-start; }
.gr-quizbox .gr-fit__text { margin: 0; }

/* 03, 05 Карточки */
.gr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.gr-cards--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.gr-card { border: 1px solid var(--ag-rule); padding: 26px; display: flex; flex-direction: column; gap: 14px; min-height: 250px; }
.gr-card--ink { border-color: var(--ag-ink); }
body .gr-card__title { margin: 0; font-size: 20px; line-height: 1.15; font-weight: 700; letter-spacing: -.028em; }
body .gr-card__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ag-text); }
.gr-example { min-height: 0; }
.gr-example__meta { display: flex; justify-content: space-between; gap: 12px; }
.gr-example__row { padding: 12px 0; border-top: 1px solid var(--ag-rule); }
.gr-example__row .ag-mono { font-size: 9px; }
body .gr-example__row p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.5; color: var(--ag-ink); }
.gr-badge { align-self: flex-start; font-family: var(--ag-mono); font-size: 9px; letter-spacing: .12em;
            text-transform: uppercase; background: var(--ag-ink); color: var(--ag-bg); padding: 5px 9px; }

/* 04 Этапы */
.gr-steps { list-style: none; margin: 0; padding: 0; display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 20px; }
.gr-step { border-top: 6px solid var(--ag-ink); padding: 20px 0 24px; }
.gr-step__top { display: flex; justify-content: space-between; align-items: baseline; }
.gr-step__when { color: var(--ag-ink); font-size: 10px; letter-spacing: .1em; }
body .gr-step__title { margin: 16px 0 10px; font-size: 19px; font-weight: 700; letter-spacing: -.026em; }
body .gr-note { margin: 20px 0 0; border-left: 6px solid var(--ag-ink); padding: 6px 0 6px 22px; max-width: 900px;
                font-size: 17px; line-height: 1.5; font-weight: 700; letter-spacing: -.02em; color: var(--ag-ink); }

/* 06 Принципы */
.gr-principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 28px; }
.gr-principle { border-top: 1px solid var(--ag-ink); padding-top: 18px; }
body .gr-principle p { margin: 12px 0 0; font-size: 17px; line-height: 1.45; font-weight: 700; letter-spacing: -.02em;
                       color: var(--ag-ink); }

/* 07 Таблица: на широком экране сетка, на узком — карточки по колонкам. */
.gr-table__row { display: grid; grid-template-columns: minmax(170px, .9fr) repeat(3, minmax(0, 1fr)); }
.gr-table__row > div { padding: 18px 16px; border-bottom: 1px solid var(--ag-rule); font-size: 15px; line-height: 1.45;
                       color: var(--ag-text); }
.gr-table__row--head > div { padding: 14px 16px; border-bottom-color: var(--ag-ink); font-size: 10px; }
.gr-table__row--head > .is-accent { background: var(--ag-ink); color: var(--ag-bg); }
.gr-table__row.is-last > div { border-bottom-color: var(--ag-ink); }
.gr-table__row > .gr-table__label { padding-left: 0; font-size: 16.5px; font-weight: 700; color: var(--ag-ink); }
.gr-table__cell.is-accent { background: var(--ag-hover); color: var(--ag-ink); }
.gr-table__col { display: none; }

/* 08–09 Две колонки */
.gr-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 48px;
            border-top: 1px solid var(--ag-ink); padding-top: 26px; align-items: start; }
.gr-split--faq { grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr); gap: 56px; }
body .gr-split__lead { margin: 20px 0 0 46px; max-width: 420px; font-size: 15.5px; line-height: 1.6; color: var(--ag-text); }
.gr-split__btn { margin: 24px 0 0 46px; }
.gr-split__bar { margin: 26px 0 0 46px; width: 120px; height: 8px; background: var(--ag-block); }
.gr-list__row { display: flex; gap: 18px; padding: 18px 0; border-top: 1px solid var(--ag-rule); }
.gr-list__row:last-child { border-bottom: 1px solid var(--ag-ink); }
.gr-list__row > .ag-mono { font-size: 10px; padding-top: 5px; }
.gr-faq__q { display: flex; justify-content: space-between; gap: 16px; }
.gr-faq__a { font-size: 16px; }
.gr-faq__a a { border-bottom: 1px solid #9a9a96; }

/* Форма */
.gr-form-sec { border-top: 1px solid var(--ag-ink); margin-top: 96px; padding-top: 40px; }
.gr-form__title { margin: 0 0 36px; max-width: 980px; font-size: clamp(32px, 4.4vw, 68px); line-height: .98;
                  font-weight: 700; letter-spacing: -.045em; }
.gr-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: start; }
.gr-form { display: flex; flex-direction: column; gap: 22px; }
.gr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gr-chips--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gr-chip { position: relative; cursor: pointer; }
.gr-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gr-chip span, .gr-chip-btn { display: block; padding: 11px 16px; font-size: 14px; border: 1px solid var(--ag-rule);
                              background: transparent; color: var(--ag-ink); text-align: left; }
.gr-chips--grid .gr-chip span { padding: 13px 15px; font-size: 14.5px; }
.gr-chip:hover span, .gr-chip-btn:hover { border-color: var(--ag-ink); }
.gr-chip input:checked + span, .gr-chip-btn.is-on { background: var(--ag-ink); border-color: var(--ag-ink); color: var(--ag-bg); }
.gr-chip input:focus-visible + span { outline: 2px solid var(--ag-ink); outline-offset: 2px; }
.gr-chip-btn { cursor: pointer; font: inherit; font-size: 14px; }
.gr-after { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--ag-rule); }
.gr-after:last-of-type { border-bottom-color: var(--ag-ink); }
.gr-after__mail { margin-top: 18px; }
.gr-after__mail a { color: var(--ag-ink); border-bottom: 1px solid #9a9a96; }
.gr-thanks { border: 1px solid var(--ag-ink); padding: 32px; }
body .gr-thanks__title { margin: 16px 0 12px; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.05; font-weight: 700;
                         letter-spacing: -.04em; }
.gr-thanks p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ag-text); }
.gr-thanks__urgent { margin-top: 16px; background: var(--ag-ink); color: var(--ag-bg); padding: 14px 16px; font-size: 14.5px; }
.gr-thanks__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Тест */
.gr-modal { position: fixed; inset: 0; z-index: 60; background: rgba(19, 19, 19, .55); display: flex;
            align-items: center; justify-content: center; padding: 16px; }
.gr-modal[hidden] { display: none; }
.gr-modal__box { width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow: auto; background: var(--ag-bg);
                 border: 1px solid var(--ag-ink); padding: clamp(22px, 4vw, 38px); }
.gr-modal__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.gr-modal__close { width: 44px; height: 44px; border: 1px solid var(--ag-ink); background: transparent; font-size: 18px;
                   cursor: pointer; color: var(--ag-ink); }
.gr-progress { display: flex; gap: 4px; margin-top: 16px; }
.gr-progress span { flex: 1; height: 4px; background: var(--ag-rule); display: block; }
.gr-progress span.is-on { background: var(--ag-ink); }
body .gr-modal__title { margin: 26px 0 20px; font-size: clamp(22px, 3vw, 32px); line-height: 1.1; font-weight: 700;
                        letter-spacing: -.035em; }
.gr-modal__options { display: flex; flex-direction: column; gap: 8px; }
.gr-modal__options .gr-chip-btn { padding: 17px 18px; font-size: 16px; }
.gr-modal__result { margin: 26px 0 0; background: var(--ag-ink); color: var(--ag-bg); padding: 22px; }
.gr-modal__result .ag-mono { color: var(--ag-block); }
.gr-modal__result-name { margin-top: 8px; font-size: 28px; font-weight: 700; letter-spacing: -.035em; }
body .gr-modal__result p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: #d6d6d2; }
[data-quiz-contact] { display: flex; flex-direction: column; gap: 12px; }
[data-quiz-contact][hidden] { display: none; }
[data-quiz-contact] .ag-field input { width: 100%; }
.gr-modal__back { margin-top: 18px; border: 0; border-bottom: 1px solid var(--ag-ink); background: transparent;
                  padding: 8px 0; font-family: var(--ag-mono); font-size: 10px; letter-spacing: .14em;
                  text-transform: uppercase; cursor: pointer; color: var(--ag-ink); }
body.gr-modal-open { overflow: hidden; }

.gr-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; background: var(--ag-bg);
             border-top: 1px solid var(--ag-ink); padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
.gr-sticky .ag-btn { display: flex; justify-content: center; }
.gr-sticky[hidden] { display: none; }

@media (max-width: 1180px) {
    .gr-subnav__links { display: none; }
}
@media (max-width: 900px) {
    .gr-sample { justify-self: stretch; max-width: none; }
    .gr-split--faq { grid-template-columns: 1fr; gap: 24px; }
    .gr-table__row--head { display: none; }
    .gr-table__row { grid-template-columns: 1fr; border: 1px solid var(--ag-rule); margin-bottom: 14px; }
    .gr-table__row > div { border-bottom: 0; padding: 8px 16px; }
    .gr-table__row > .gr-table__label { padding: 14px 16px 6px; }
    .gr-table__row.is-last > div { border-bottom: 0; }
    .gr-table__col { display: block; margin-bottom: 2px; font-size: 9px; }
    .gr-table__cell.is-accent { background: var(--ag-ink); color: var(--ag-bg); }
    .gr-table__cell.is-accent .gr-table__col { color: var(--ag-block); }
}
@media (max-width: 760px) {
    .gr-sec { padding-top: 72px; }
    .gr-hero { padding-top: 32px; gap: 32px; }
    .gr-sample { display: none; }
    .gr-subnav__tag { display: none; }
    .gr-subnav__inner { justify-content: flex-end; }
    .gr-slider__tabs { display: none; }
    body .gr-split__lead, .gr-split__btn, .gr-split__bar { margin-left: 0; }
    .gr { padding-bottom: 120px; }
}
@media (min-width: 761px) {
    .gr-sticky { display: none !important; }
}
