/* База главной и локальная нормализация общих компонентов. */

/* Изоляция от типографики и сетки родительской темы. */
body.st-redesign-v2 :where(.st-header, .st2-footer, .st-dialog) {
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.st-redesign-v2 :where(.st-header, .st2-footer, .st-dialog),
body.st-redesign-v2 :where(.st-header, .st2-footer, .st-dialog) * {
    box-sizing: border-box;
}

body.st-redesign-v2 :where(.st-header, .st2-footer) [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
    flex: initial;
}

body.st-redesign-v2 .st-header .st2-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

body.st-redesign-v2 .st-header .st2-row {
    margin: 0;
}

body.st-redesign-v2 .st2-footer .st2-footer__wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.st-redesign-v2 .st2-footer .st2-footer__accordion-body {
    max-height: none;
    overflow: visible;
    padding: 0;
}

body.st-redesign-v2 :where(.st-header, .st2-footer, .st-dialog) :where(a, button) {
    -webkit-tap-highlight-color: transparent;
}

body.st-redesign-v2 :where(.st-header, .st2-footer, .st-dialog) a {
    color: inherit;
    text-decoration: none;
}

body.st-redesign-v2 :where(.st-header, .st2-footer, .st-dialog) :where(button, input, textarea, select) {
    font: inherit;
}

body.st-redesign-v2 :where(.st-header, .st2-footer, .st-dialog) button {
    color: inherit;
    cursor: pointer;
}

body.st-redesign-v2 :where(.st-header, .st2-footer, .st-dialog) :where(h1, h2, h3, h4) {
    margin: 0;
    color: var(--ink);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -.045em;
}

body.st-redesign-v2 :where(.st-header, .st2-footer, .st-dialog) p {
    margin: 0 0 20px;
}

body.st-redesign-v2 :where(.st-header, .st2-footer, .st-dialog) img {
    max-width: 100%;
    height: auto;
}

body.st-redesign-v2 :where(.st-header, .st2-footer, .st-dialog) :where(a, button, input, summary):focus-visible {
    outline: 3px solid #2e7d32;
    outline-offset: 5px;
}

body.st-home-v2 * {
    box-sizing: border-box;
}

html:has(body.st-home-v2) {
    scroll-behavior: smooth;
    scroll-padding-top: 160px;
}

body.st-home-v2 {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.st-redesign-v2:has(dialog[open]) {
    overflow: hidden;
}

body.st-home-v2 button,
body.st-home-v2 input,
body.st-home-v2 textarea,
body.st-home-v2 select {
    font: inherit;
}

body.st-home-v2 button,
body.st-home-v2 a {
    -webkit-tap-highlight-color: transparent;
}

body.st-home-v2 button {
    cursor: pointer;
}

body.st-home-v2 a {
    color: inherit;
    text-decoration: none;
}

body.st-home-v2 p {
    margin: 0 0 20px;
}

body.st-home-v2 h1,
body.st-home-v2 h2,
body.st-home-v2 h3,
body.st-home-v2 h4 {
    margin: 0;
    color: var(--ink);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -.045em;
}

body.st-home-v2 h2 {
    font-size: 38px;
}

body.st-home-v2 h3 {
    font-size: 23px;
}

body.st-home-v2 ul {
    padding-left: 22px;
}

body.st-home-v2 img {
    max-width: 100%;
    height: auto;
}

body.st-home-v2 svg {
    flex-shrink: 0;
}

body.st-home-v2 button {
    color: inherit;
}

body.st-home-v2 a,
body.st-home-v2 button {
    transition: background .2s,color .2s,box-shadow .2s,transform .2s;
}

body.st-home-v2 a:focus-visible,
body.st-home-v2 button:focus-visible,
body.st-home-v2 input:focus-visible,
body.st-home-v2 summary:focus-visible {
    outline: 3px solid #2e7d32;
    outline-offset: 5px;
}

body.st-home-v2 button:disabled {
    cursor: default;
}

body.st-redesign-v2 .st-skip {
    position: fixed;
    top: -80px;
    left: 20px;
    z-index: 1000;
    background: white;
    padding: 12px;
    border-radius: 10px;
}

body.st-redesign-v2 .st-skip:focus {
    top: 10px;
}

body.st-home-v2 .container {
    max-width: var(--max);
    width: calc(100% - 80px);
    margin: 0 auto;
}

body.st-home-v2 .row {
    display: grid;
    gap: 24px;
}

body.st-home-v2 [class*=col-] {
    min-width: 0;
}

body.st-home-v2 main>.container>.row {
    display: block;
}

body.st-home-v2 main .col-xl-9 {
    width: 100%;
}

body.st-redesign-v2 .st-eyebrow {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .13em;
    font-weight: 750;
    display: flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 24px;
    color: var(--blue);
}

body.st-home-v2 main section {
    margin-top: 90px;
}

body.st-home-v2 .landing-section__title {
    font-size: 36px;
    line-height: 1.23;
    letter-spacing: -.045em;
    margin: 0 0 32px;
    font-weight: 600;
    max-width: 820px;
}

body.st-home-v2 .landing-section__line {
    display: none;
}

body.st-redesign-v2 [hidden] {
    display: none !important;
}

@media (max-width: 980px) {
    body.st-home-v2 .container {
        width: calc(100% - 48px);
    }

    body.st-home-v2 .landing-section__title {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    html:has(body.st-home-v2) {
        scroll-padding-top: 30px;
    }

    body.st-home-v2 .container {
        width: calc(100% - 32px);
    }

    body.st-home-v2 {
        font-size: 14px;
    }

    body.st-redesign-v2 .st-eyebrow {
        font-size: 8px;
        margin-bottom: 21px;
    }

    body.st-home-v2 main section {
        margin-top: 55px;
    }

    body.st-home-v2 .landing-section__title {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 25px;
        max-width: 360px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:has(body.st-home-v2) {
        scroll-behavior: auto;
    }

    body.st-home-v2 *,
    body.st-home-v2 *:before,
    body.st-home-v2 *:after {
        transition: none !important;
        animation: none !important;
    }
}

@media print {
    body.st-home-v2 .container {
        width: 100%;
    }

    body.st-home-v2 {
        font-size: 11pt;
    }

    body.st-home-v2 main section {
        break-inside: avoid;
        margin-top: 30px;
    }
}

body.st-home-v2 .row {
    margin: 0;
}

body.st-home-v2 [class*="col-"] {
    width: auto;
    max-width: none;
    padding: 0;
    flex: initial;
}

/* Общий стандарт обращений: контурная кнопка, 44 px, явный focus/hover. */
body.st-redesign-v2.st-forms-v9 :is(.st2-header-top__btn, .landing-benefits__link, .landing-hero__btn,
    .st-footer-heading > a, .st2-footer__cta) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    max-width: 100%;
    padding: 11px 16px;
    border: 1px solid #2e7d32;
    border-radius: 12px;
    background: #fff;
    color: #1b5e20;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s, border-color .18s, color .18s;
}

body.st-redesign-v2.st-forms-v9 :is(.st2-header-top__btn, .landing-benefits__link, .landing-hero__btn,
    .st-footer-heading > a, .st2-footer__cta):hover {
    background: #f1f8e9;
    border-color: #1b5e20;
    color: #000000;
}

body.st-redesign-v2.st-forms-v9 :is(.st2-header-top__btn, .landing-benefits__link, .landing-hero__btn,
    .st-footer-heading > a, .st2-footer__cta):focus-visible {
    outline: 3px solid #1b5e20;
    outline-offset: 4px;
}

/* Вся заливка главной кнопки является областью нажатия. */
body.st-redesign-v2.st-forms-v9 .st2-header-top__btn-wrapper_right {
    padding: 0;
    background: transparent;
}

body.st-redesign-v2.st-forms-v9 .st2-header-top__btn-wrapper_right .st2-header-top__btn,
body.st-redesign-v2.st-forms-v9 .st-office-hero .landing-hero__btn--primary {
    background: #2e7d32;
    color: #fff;
}

body.st-redesign-v2.st-forms-v9 .st2-header-top__btn-wrapper_right .st2-header-top__btn:hover,
body.st-redesign-v2.st-forms-v9 .st-office-hero .landing-hero__btn--primary:hover {
    background: #1b5e20;
    border-color: #1b5e20;
    color: #fff;
}

body.st-redesign-v2.st-forms-v9 .st2-header-top-wrapper {
    gap: 10px;
}

body.st-redesign-v2.st-forms-v9 .st-footer-heading > a {
    flex-shrink: 0;
}

body.st-redesign-v2.st-forms-v9 .st-footer-heading > a > span {
    width: 22px;
    height: 22px;
    background: transparent;
    font-size: 20px;
}

body.st-redesign-v2.st-forms-v9 .landing-benefits__link::after {
    margin-left: 0;
}

/* Кнопки обращения и отправки на внутренних страницах используют те же размеры. */
body.st-redesign-v2.st-forms-v9 :is(.sc4-button, .st4-contact-button, .ct5-button,
    .ei8-button, .qa4-button, .rv9-button, .cta-button, .landing-promo__btn,
    .st-mega-cta, .rv9-form-submit input, .wpcf7-submit, .b24-form-btn) {
    min-height: 44px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
}

body.st-redesign-v2.st-forms-v9 :is(.sc4-button, .st4-contact-button, .ct5-button,
    .ei8-button, .qa4-button, .rv9-button, .cta-button, .landing-promo__btn,
    .st-mega-cta, .rv9-form-submit input, .wpcf7-submit, .b24-form-btn):focus-visible {
    outline: 3px solid #1b5e20;
    outline-offset: 4px;
}

@media (min-width: 981px) and (max-width: 1240px) {
    body.st-redesign-v2.st-forms-v9 .st-header-row {
        flex-wrap: wrap;
    }
    body.st-redesign-v2.st-forms-v9 .st-header-row > .st2-col-7 {
        order: 4;
        flex: 1 0 100%;
    }
    body.st-redesign-v2.st-forms-v9 .st-header-row > .st2-col-2 {
        margin-left: auto;
    }
}

@media (max-width: 980px) {
    body.st-redesign-v2.st-forms-v9 .st-header-row {
        flex-wrap: wrap;
    }
    body.st-redesign-v2.st-forms-v9 .st-header-row > .st2-col-7 {
        display: block;
        order: 5;
        flex: 1 0 100%;
    }
    body.st-redesign-v2.st-forms-v9 .st2-header-top-wrapper {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
    }
    body.st-redesign-v2.st-forms-v9 .st2-header-top__btn-wrapper {
        display: flex;
        min-width: 0;
    }
    body.st-redesign-v2.st-forms-v9 .st2-header-top__btn {
        width: 100%;
        padding: 10px 8px;
        font-size: 12px;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.st-redesign-v2.st-forms-v9 :is(.st2-header-top__btn, .landing-benefits__link, .landing-hero__btn,
        .st-footer-heading > a, .st2-footer__cta) {
        transition: none;
    }
}

/* Базовые ссылки внутренних разделов наследуют фирменный зелёный. */
body.st-redesign-v2 main :where(a) { color: var(--blue); }
