/* ==========================================================================
   InCloud — единый общий CSS-контур сайта.
   Порядок подключения на странице:
   assets/tailwind.css → assets/incloud.css → assets/site.css → assets/pages/<page>.css
   Этот файл загружается последним из общих стилей: он единственный источник
   design tokens и целевых общих компонентов (.container, .section, .card,
   .icon-tile, .hero, .metric-strip, .lead-form, .faq).
   Структура файла:
     1. Design tokens
     2. База
     3. Layout: контейнер, шапка, подвал, навигация
     4. Компоненты: секции, типографика, кнопки, карточки, hero, формы, FAQ
     5. Контактная секция (.site-contact) и служебные блоки
     6. Продуктовые блоки (.product-*, hero-панели, калькулятор)
     7. Page-specific правки и legacy-совместимость
   ========================================================================== */

/* ============ 1. Design tokens (единственный источник) ============ */
:root {
    --color-primary: #2c3e50;
    --color-primary-dark: #192734;
    --color-secondary: #3498db;
    --color-accent1: #686fd1;
    --color-accent2: #3498db;
    --color-text: #475569;
    --color-text-muted: #64748b;
    --brand-gradient: linear-gradient(120deg, #626ac0, #297fb6);
    /* Основной цвет действий в калькуляторах: кнопка «Получить КП», переключатели, чекбоксы. */
    --color-action: #5573b0;
    --color-action-hover: #4a66a0;
    --header-height: 100px;
    --site-border: #e0e6ed
}

/* ============ 2. База ============ */

html {
    scroll-behavior: smooth
}

body, body.pa-page, body.cs-page {
    font-family: Inter, system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text);
    background: #f7f9fc;
    letter-spacing: 0
}

*, *::before, *::after {
    box-sizing: border-box
}

[hidden] {
    display: none !important
}

[id] {
    scroll-margin-top: var(--header-height)
}

a, button, input, select, textarea {
    touch-action: manipulation
}

button, summary {
    cursor: pointer
}

button:disabled {
    cursor: wait
}

:focus-visible {
    outline: 3px solid #3886bc !important;
    outline-offset: 4px
}

/* Поля используют собственную границу вместо внешнего outline и Tailwind ring.
   :where сохраняет низкую специфичность базовой рамки для локальных стилей. */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]), select, textarea) {
    border-width: 1px;
    border-style: solid;
    transition: border-color .15s ease, background-color .15s ease;
}

:is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]), select, textarea):focus {
    outline: none !important;
    outline-offset: 0;
    box-shadow: none !important;
}

:is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]), select, textarea):focus:not([aria-invalid="true"]) {
    border-color: #3886bc !important;
}

/* Ошибки всех форм — как в общей форме аренды и теста. */
form[data-lead-form] :is(input, select, textarea)[aria-invalid="true"] {
    border-color: #dc2626 !important;
}

form[data-lead-form] :is(input[type="checkbox"], input[type="radio"])[aria-invalid="true"] {
    outline: 1px solid #dc2626 !important;
    outline-offset: 1px;
}

form[data-lead-form] :is(.site-field-error, .site-request-error) {
    margin: 7px 0 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    color: #b91c1c;
}

form[data-lead-form] > .site-field-error {
    grid-column: 1 / -1;
}

form.site-request-form .site-request-error {
    margin: 0;
}

.quick-consult form .site-field-error {
    color: #fca5a5;
}

form .calc-email-row .site-field-error {
    grid-column: 1;
    margin-top: -5px;
}

img {
    max-width: 100%
}

.reveal {
    opacity: 1;
    transform: none
}

/* ============ 3. Layout: контейнер, шапка, подвал, служебная навигация ============ */
.site-wrap, .container, .astra-wrap, .cs-wrap, .pa-wrap {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 32px
}

.site-skip {
    position: fixed;
    left: 16px;
    top: 10px;
    z-index: 200;
    padding: 10px 18px;
    background: white;
    color: #24374a;
    transform: translateY(-160%);
    border-radius: 6px
}

.site-skip:focus {
    transform: none
}

.site-notice {
    background: #1b2b3b;
    color: #c2cedc;
    font-size: 13px
}

.site-notice>.site-wrap {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 9px
}

.site-notice a {
    color: #e0e9fb
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: #fffffff7;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--site-border);
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.65
}

.site-header-row {
    height: 80px;
    display: flex;
    align-items: center;
    gap: 28px;
    justify-content: space-between
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0
}

.site-brand-icon {
    width: 40px;
    height: 40px;
    display: block
}

.site-brand strong {
    display: block;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: -.025em;
    font-weight: 700
}

.site-brand small {
    display: block;
    font-size: 9px;
    line-height: 13.5px;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-top: 2px;
    color: #64748b
}

.site-navigation {
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: 13px;
    font-weight: 500
}

.site-dropdown {
    position: relative
}

.site-dropdown summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-block: 29px;
    white-space: nowrap
}

.site-dropdown summary::-webkit-details-marker {
    display: none
}

.site-dropdown summary:after {
    content: '';
    width: 5px;
    height: 5px;
    display: block;
    border-right: 1px solid;
    border-bottom: 1px solid;
    transform: rotate(45deg);
    margin-top: -3px
}

.site-dropdown[open] summary {
    color: #4d62ae
}

.site-dropdown[open] summary:after {
    transform: rotate(225deg);
    margin-top: 3px
}

.site-dropdown-panel {
    position: absolute;
    top: calc(100% - 3px);
    left: -20px;
    width: 312px;
    padding: 12px;
    background: white;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    box-shadow: 0 16px 40px #172c421a
}

.site-dropdown-panel a {
    display: block;
    padding: 11px 12px;
    border-radius: 7px;
    font-size: 13px
}

.site-dropdown-panel a:hover {
    background: #f3f6fb;
    color: #4d62ae
}

.site-dropdown-panel small {
    display: block;
    font-size: 13px;
    color: #64748b;
    font-weight: 400;
    margin-top: 3px
}

.site-menu-label {
    display: block;
    padding: 6px 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #7b8798
}

.site-header-contact {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600
}

.site-header-contact .btn {
    font-size: 12px;
    min-height: 40px;
    padding: 9px 13px;
    gap: 9px
}

.site-account svg {
    flex-shrink: 0
}

/* .site-mobile-contact имеет класс .btn (display:inline-flex ниже по файлу),
   поэтому скрытие задаётся с большей специфичностью через .site-header .site-navigation:
   селектор .btn, body.pa-page .btn, body.cs-page .btn (0,2,1) перебивает .site-header .site-mobile-contact (0,2,0)
   и кнопка «Кабинет» из мобильного меню показывалась на десктопе в шапке partners.html и cloud-server.html. */
.site-menu-toggle, .site-header .site-navigation .site-mobile-contact {
    display: none
}

.site-navigation a[aria-current=page] {
    color: #5366b1;
    background: #f1f4fb
}

.site-footer {
    background: #172635;
    padding: 60px 0 22px;
    color: #aebdce;
    font-size: 13px
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 50px
}

.site-footer-brand {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.04em;
    color: white
}

.site-footer-brand span {
    display: block;
    font-size: 9px;
    letter-spacing: .17em;
    font-weight: 400;
    text-transform: uppercase;
    margin-top: 3px
}

.site-footer p:not(.site-footer-title) {
    max-width: 260px;
    font-size: 13px;
    line-height: 1.8;
    margin-top: 20px
}

.site-footer .site-footer-title {
    color: #f0f4fa;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px
}

.site-footer-grid>div>a:not(.site-footer-brand) {
    display: block;
    margin-top: 12px;
    font-size: 13px
}

.site-footer a:hover {
    color: white
}

/* Селекторы с a.<class> дают специфичность не ниже, чем у
   .site-footer-grid>div>a:not(.site-footer-brand) — без !important. */
.site-footer-grid>div>a.site-footer-sla {
    margin-top: 22px;
    color: #b5c9ef
}

.site-footer-grid>div>a.site-footer-phone {
    font-size: 15px;
    color: white;
    font-weight: 600
}

.site-footer-label {
    display: block;
    margin-top: 22px;
    font-size: 12px;
    color: #8298ae
}

.site-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid #ffffff14;
    padding-top: 22px;
    margin-top: 44px;
    font-size: 12px
}

.site-footer-legal {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 610px
}

/* ============ 4. Компоненты: секции, типографика, кнопки, карточки, hero ============ */
.section, .astra-section, .cs-section, .pa-section, main>section.py-20 {
    padding-block: 88px
}

main h1 {
    font-size: clamp(36px, 4vw, 56px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.04em !important;
    font-weight: 700 !important
}

main h2.astra-heading, main h2.cs-heading, main h2.pa-heading, main h2.text-3xl, .section-title {
    font-size: clamp(28px, 3vw, 40px) !important;
    line-height: 1.2 !important;
    letter-spacing: -.035em !important;
    font-weight: 650 !important
}

main h3 {
    letter-spacing: -.015em
}

.section-copy, .astra-copy, .cs-copy, .pa-copy {
    font-size: 15px;
    line-height: 1.8
}

.eyebrow, .astra-label, .cs-eyebrow {
    font-size: 12px;
    letter-spacing: .16em
}

.border-subtle {
    border-color: var(--site-border)
}

.btn, body.pa-page .btn, body.cs-page .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: background .2s, box-shadow .2s, color .2s
}

.btn-gradient {
    background-image: var(--brand-gradient)
}

.btn-gradient:hover {
    transform: none;
    box-shadow: 0 6px 18px #334c8729
}

.btn-outline {
    border-color: #c4cfdc
}

.btn-outline:hover {
    background: #2c3e50;
    border-color: #2c3e50;
    color: white
}

/* Строка «email + кнопка» в формах расчёта КП. */
.calc-email-row {
    display: grid;
    gap: 12px;
}

.calc-email-row input {
    min-height: 48px;
}

@media (min-width: 1024px) {
    .calc-email-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
    }

    .calc-email-row .btn {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        padding-inline: 16px;
        white-space: nowrap;
    }
}

/* Скругление кнопки как у поля email рядом. */
.calc-email-btn, body.pa-page .calc-email-btn, body.cs-page .calc-email-btn {
    border-radius: 4px;
}

/* Однотонная кнопка КП в цвет переключателей калькулятора. */
.calc-email-btn {
    background: var(--color-action);
    color: #fff;
}

.calc-email-btn:hover {
    background: var(--color-action-hover);
}

.calc-email-btn:focus-visible {
    outline: 3px solid #7893b6;
    outline-offset: 2px;
}

form:has(.calc-email-btn) input[type="checkbox"] {
    accent-color: var(--color-action);
}

.card, .service-card, .terminal-card, .astra-service, .advantage-card {
    border-color: var(--site-border) !important;
    border-radius: 12px !important;
    box-shadow: none
}

.card:hover, .service-card:hover, .terminal-card:hover, .advantage-card:hover {
    transform: none !important;
    box-shadow: 0 10px 28px #233b5010 !important
}

.hero, .hero-gradient, .astra-hero, .cs-hero, .pa-hero {
    background: linear-gradient(115deg, #31475b, #192734) !important
}

.hero-logo, .astra-hero-accent, .cs-accent, .pa-accent {
    background-image: linear-gradient(120deg, #c5caf3, #82bfe6) !important
}

.astra-grid, .dc-grid, .sla-grid, .cs-hero-grid, .pa-grid-bg, .grid-glow {
    opacity: .35
}

.pulse-dot, .server-blink, .moving-line, .mt-pulse-line {
    animation: none !important
}

.site-breadcrumb {
    font-size: 12px;
    color: #bac9db;
    padding-top: 22px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px
}

.site-breadcrumb a:hover {
    color: white
}

/* Общий первый экран: отступы Cloud Server и ширина кнопок Terminal.
   Селекторы с main перекрывают прежние page-specific значения. */
.unified-site main .site-hero {
    min-height: 0;
    padding-block: 0
}

.unified-site main .site-hero .site-hero-content {
    padding-block: 66px 72px
}

.unified-site main .site-hero :is(.site-breadcrumb, .pa-breadcrumb) {
    padding-top: 0
}

.unified-site main .site-hero .pa-hero-layout {
    padding-block: 32px 0
}

.unified-site main .site-hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px
}

.unified-site main .site-hero-actions > :is(a, button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: var(--site-hero-button-width, 215px);
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding-inline: 24px;
    white-space: normal;
    text-align: center
}

.unified-site main .site-hero-actions > :first-child {
    --site-hero-button-width: 235px
}

.unified-site main .site-hero-actions svg {
    flex-shrink: 0
}

@media (max-width:960px) {
    .unified-site main .site-hero .site-hero-content {
        padding-block: 35px 48px
    }
}

@media (max-width:639px) {
    .unified-site main .site-hero-actions {
        flex-direction: column
    }

    .unified-site main .site-hero-actions > :is(a, button) {
        width: 100%
    }
}

@media print {
    .unified-site main .offer-hero .site-hero-content {
        padding-block: 0 20px
    }
}

/* ---- 4.1 Единая форма заявки ----
   Целевой компонент .lead-form заменит .astra-form/.cs-form/.pa-form/
   .terminal-form при миграции страниц (этапы 3–11 плана html-unification).
   Пока класс не используется в HTML, старые формы не затрагиваются. */
.lead-form {
    display: grid;
    gap: 16px;
}
.lead-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text);
}
.lead-form input:not([type=checkbox]):not([type=radio]),
.lead-form textarea,
.lead-form select {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    font-size: 13px;
    color: #26384b;
    background: #f8fafc;
    border: 1px solid #dce3ec;
    border-radius: 7px;
}
.lead-form input::placeholder,
.lead-form textarea::placeholder {
    color: #8995a5;
}
.lead-form .lead-form-status,
.lead-form [role=status] {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.6;
}
.lead-form [role=status][data-state=error] {
    color: #b42332;
}
.lead-form [role=status][data-state=success] {
    color: #237553;
}
.lead-form .lead-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Общий баннер тестового периода: IaaS, облачный сервер, RDS, Exchange.
   Фон можно заменить через --trial-image; затемнение сохраняет читаемость. */
.mt-trial {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(26,37,48,.97), rgba(44,62,80,.94) 55%, rgba(26,37,48,.93)),
        var(--trial-image, url('images/dc3.webp')) center/cover no-repeat;
    background-color: var(--color-primary-dark);
}
.mt-trial::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(104,111,209,.14), transparent 40%, rgba(52,152,219,.14));
}
.mt-trial-inner {
    position: relative;
    max-width: 1152px;
    margin-inline: auto;
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.mt-trial-inner > div { min-width: 0; }
/* Сохраняем компактный заголовок и на страницах с крупными product-заголовками. */
.mt-trial h2.mt-trial-title {
    margin: 0;
    color: #fff;
    font-size: 20px !important;
    font-weight: 700;
    line-height: 1.375;
    letter-spacing: -.015em;
}
.mt-trial-accent {
    background: linear-gradient(135deg, #8b93ff, #5dbcf5);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.mt-trial-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    border: 1px solid #ffffff4d;
    border-radius: 4px;
    color: #c8d4de;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: .05em;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: nowrap;
}
.mt-trial-copy { margin-top: 8px; color: #9fb0bf; font-size: 14px; line-height: 1.5; }
.mt-trial-button { flex-shrink: 0; white-space: nowrap; }
.mt-pulse-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 30%;
    background: var(--brand-gradient);
}
@media (max-width: 767px) {
    .mt-trial-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
    .mt-trial-button { width: 100%; white-space: normal; }
}

/* ============ 5. Контактная секция и служебные блоки ============ */
/* Фото ЦОД, как в main-luna: спокойный фон за содержимым. */
.site-contact {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #1a293b !important;
    color: white
}

.site-contact:before {
    content: '';
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(90deg, #172738ec 0%, #172738d9 52%, #172738b8 100%), url('images/dc3.webp') center/cover;
    z-index: -1;
    pointer-events: none
}

.site-contact>div.absolute {
    display: none
}

.site-contact h2 {
    color: white
}

.site-contact form {
    background: #fff;
    border: 1px solid #e0e6ed;
    color: #334155;
    border-radius: 14px;
    padding: 32px;
    box-shadow: 0 18px 50px #09142026;
    backdrop-filter: none
}

.site-contact form h3 {
    color: #2c3e50
}

.site-contact form label {
    color: #475569;
    font-size: 13px !important;
    font-weight: 500
}

.site-contact form input:not([type=checkbox]):not([type=radio]), .site-contact form textarea, .site-contact form select {
    color: #26384b;
    background: #f8fafc;
    border: 1px solid #dce3ec;
    border-radius: 7px;
    min-height: 46px;
    padding: 11px 12px;
    width: 100%;
    font-size: 13px
}

.site-contact form input::placeholder, .site-contact form textarea::placeholder {
    color: #8995a5
}

.site-contact form p, .site-contact form label span {
    color: #64748b
}

.site-contact form .btn {
    color: white
}

.site-contact form label.flex {
    font-size: 13px !important
}

.site-contact form [role=status][data-state=error] {
    color: #b42332
}

.site-contact form [role=status][data-state=success] {
    color: #237553
}

.site-contact .glass {
    background: white
}

.site-contact .text-slate-500 {
    color: #a5b7cb
}

.site-contact form .text-slate-500 {
    color: #64748b
}

.site-form-status {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.6
}

.site-form-status[data-state=error] {
    color: #b42332
}

.site-form-status[data-state=success] {
    color: #237553
}

.site-contact form a {
    color: #5263a7
}

.site-contact .astra-contact::before {
    display: none
}

.site-contact .text-gray-400 {
    color: #718096
}

/* Побеждает incloud.css .faq-item.active .faq-answer{max-height:500px}
   за счёт более позднего порядка загрузки — !important не нужен. */
.faq-item.active .faq-answer {
    max-height: none
}

/* Единый honeypot для всех форм data-lead-form (и старые per-page классы):
   поле website прячем off-screen. */
.site-contact form .astra-honeypot, .site-contact form .cs-honeypot, .site-contact form .pa-honeypot,
.site-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden
}

@media (min-width:1101px) and (max-width:1250px) {
    .site-header-contact>a:first-child {
        display: none
    }

    .site-navigation {
        gap: 22px
    }
}

@media (max-width:1100px) {
    .site-header-row {
        height: 76px
    }

    .site-menu-toggle {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        border: 1px solid var(--site-border);
        border-radius: 8px;
        margin-left: auto;
        order: 3
    }

    .site-navigation {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        padding: 18px 24px;
        background: white;
        border-bottom: 1px solid var(--site-border);
        max-height: calc(100dvh - 76px);
        overflow: auto
    }

    .site-navigation.is-open {
        display: block
    }

    .site-dropdown summary {
        padding-block: 14px;
        justify-content: space-between
    }

    .site-dropdown-panel {
        position: static;
        box-shadow: none;
        width: 100%;
        border: 0;
        background: #f7f9fc
    }

    .site-partners-link {
        display: block;
        padding: 14px 0
    }

    .site-header .site-navigation .site-mobile-contact {
        display: inline-flex;
        padding: 14px 0
    }

    .site-header-contact>a:first-child {
        display: none
    }

    .site-footer-grid {
        gap: 30px
    }

    .site-header-row {
        gap: 18px
    }
}

@media (max-width:767px) {
    .site-wrap, .container, .astra-wrap, .cs-wrap, .pa-wrap {
        padding-inline: 20px
    }

    .site-notice>.site-wrap {
        justify-content: center
    }

    .site-notice span:first-child {
        display: none
    }

    .site-header-contact {
        display: none
    }

    .site-brand strong {
        font-size: 22px
    }

    .site-header-row {
        height: 72px
    }

    .section, .astra-section, .cs-section, .pa-section, main>section.py-20 {
        padding-block: 56px
    }

    main h1 {
        font-size: 36px !important
    }

    .site-contact form {
        padding: 24px
    }

    .site-footer {
        padding-top: 44px
    }

    .site-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 34px 20px
    }

    .site-footer-grid>div:first-child {
        grid-column: 1/-1
    }

    .site-footer-grid>div:last-child {
        grid-column: 1/-1
    }

    .site-footer-bottom {
        flex-wrap: wrap;
        margin-top: 32px
    }

    .site-footer-bottom>span:nth-child(2) {
        order: 3;
        flex-basis: 100%
    }

    .site-contact:before {
        background: linear-gradient(#172738d9, #172738ed), url('images/dc3.webp') center/cover
    }

    .site-contact h2 br {
        display: none
    }

    .site-contact h2 span:before {
        content: ' '
    }
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important
    }
}

/* Последовательный первый экран и компактный мобильный интерфейс. */
/* Полоса метрик внизу hero — общий компонент для всех страниц
   (ранее дублировался как .cs-proof/.dc-proof/.pa-proof/.astra-stats).
   .site-proof оставлен как временный alias. */
.metric-strip, .site-proof {
    position: relative;
    border-top: 1px solid #ffffff1a;
    background: #111c2926
}

.metric-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-block: 24px
}

.metric-strip-item {
    min-width: 0;
    padding-left: 32px;
    border-left: 1px solid #ffffff1a
}

.metric-strip-item:first-child {
    padding-left: 0;
    border-left: 0
}

.metric-strip-item strong {
    display: block;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -.04em;
    color: #fff
}

.metric-strip-item span {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #b4c2d3
}

.site-partners-link {
    padding: 8px 10px;
    border-radius: 6px
}

.site-header .site-partners-link[aria-current=page] {
    background: #f1f4fb
}

.site-sla main .grid>* {
    min-width: 0
}

.site-sla .overflow-x-auto {
    max-width: 100%
}

.site-sla .sla-table {
    min-width: 560px
}

.site-sla .sla-toc {
    overflow-wrap: anywhere
}

.site-sla h1 {
    font-size: clamp(34px, 3.5vw, 48px)
}

.site-sla .site-contact {
    padding-block: 72px
}

.site-contact .site-wrap {
    position: relative
}

.site-contact h2 {
    max-width: 600px
}

@media (max-width:767px) {
    .metric-strip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 14px
    }

    .metric-strip-item {
        padding-left: 14px
    }

    .metric-strip-item--desktop {
        display: none
    }

    .metric-strip-item strong {
        font-size: 24px
    }

    .site-sla h1 {
        font-size: 34px
    }

    .site-sla main>section>.max-w-7xl {
        padding-inline: 20px
    }

}

@media  print {
    .site-header, .site-notice, .site-footer, .site-contact, .site-skip {
        display: none !important
    }

    .site-sla main>section:first-child {
        display: none
    }

    .site-sla aside {
        display: none
    }

    .site-sla .sla-table {
        min-width: 0
    }

    .site-sla main .grid {
        display: block
    }

    .site-sla .overflow-x-auto {
        overflow: visible
    }

    body {
        color: #111 !important;
        background: white !important
    }
}

.site-contact .section-subtitle {
    color: #c3d1e1
}

.site-contact>.max-w-7xl {
    max-width: 1280px;
    padding-inline: 32px
}

.btn-gradient {
    box-shadow: none
}

.site-contact form h3 {
    font-size: 20px;
    line-height: 1.4
}

.site-contact .eyebrow {
    color: #abc4e7 !important
}

.site-contact form .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

@media (max-width:767px) {
    .site-contact>.max-w-7xl {
        padding-inline: 20px
    }
}

/* Компактная консультация из IaaS. Стили ограничены этим блоком. */
.quick-consult h2.section-title {
    color: #fff;
    font-size: 30px !important;
    line-height: 1.25 !important;
    letter-spacing: -.025em !important
}

.quick-consult .section-subtitle {
    color: #d5e4f5;
    font-size: 15px;
    line-height: 1.75
}

.quick-consult .quick-field {
    min-width: 0
}

.quick-consult form {
    justify-self: end
}

.quick-consult form input:not([type=checkbox]) {
    color: #26384b;
    background: #fff;
    width: 100%;
    min-width: 0;
    font-size: 14px
}

.quick-consult form input::placeholder {
    color: #667589
}

.quick-consult form label:has(input[type=checkbox]) {
    color: #c8d8ea;
    align-items: flex-start;
    line-height: 1.6
}

.quick-consult form input[type=checkbox] {
    margin-top: 3px
}

.quick-consult form .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

.form-field-group {
    min-width: 0
}

.form-field-group>label {
    display: block;
    margin-bottom: 6px
}

.infra-photo {
    display: flex;
    min-height: 460px
}

.infra-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

@media (max-width:1100px) {
    .site-header .site-navigation .site-mobile-contact {
        display: inline-flex;
        margin-top: 14px
    }

    .site-header-row {
        height: 76px
    }
}

@media (max-width:767px) {
    .site-header-row {
        height: 72px
    }

    .site-brand .site-brand-name {
        font-size: 24px
    }

    .quick-consult h2.section-title {
        font-size: 26px !important
    }

    .quick-consult form {
        max-width: none;
        justify-self: stretch
    }

    .infra-photo {
        min-height: 420px
    }
}

/* ============ 6. Продуктовые блоки (.product-*, hero-панели, калькулятор) ============ */
/* Общие продуктовые блоки IaaS и облачного сервера. */
.product-section {
    padding-block: 80px;
    background: #fff
}

.product-section.product-tint {
    background: #f6f8fb
}

.product-page .product-section> :is(.cs-wrap, .max-w-7xl) {
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: 32px
}

.product-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 36px
}

.product-section-head>div {
    max-width: 730px
}

.product-section-head>.product-copy {
    max-width: 380px;
    margin: 0
}

.product-section .eyebrow {
    margin-bottom: 14px;
    color: #6275ac
}

.product-copy {
    font-size: 15px;
    line-height: 1.8;
    color: #627287;
    margin-top: 20px
}

/* Сравнение затрат и миграция на продуктовых страницах. */
.product-centered-heading {
    max-width: 740px;
    margin: 0 auto 34px;
    text-align: center
}

.product-centered-heading .product-copy {
    margin-top: 18px
}

.product-economics-example {
    border: 1px solid #dce3ed;
    border-radius: 14px;
    overflow: hidden;
    background: #fff
}

.product-economics-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1.6
}

.product-economics-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.product-economics-option {
    padding: 30px
}

.product-economics-cloud {
    background: #f4f7fc;
    border-left: 1px solid #dce3ed
}

.product-economics-option h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50
}

.product-economics-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #edf1f5;
    color: #627287
}

.product-economics-icon svg {
    width: 20px;
    height: 20px
}

.product-economics-cloud .product-economics-icon {
    background: var(--brand-gradient);
    color: #fff
}

.product-economics-total {
    margin-top: 26px
}

.product-economics-total strong {
    display: block;
    font-size: clamp(28px, 3.2vw, 42px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.25;
    color: #2c3e50;
    white-space: nowrap;
    font-variant-numeric: tabular-nums
}

.product-economics-cloud .product-economics-total strong {
    color: #466c9f
}

.product-economics-breakdown {
    margin-top: 24px;
    border-top: 1px solid #dce3ed
}

.product-economics-breakdown>div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #e4e9f0;
    font-size: 13px;
    line-height: 1.6
}

.product-economics-breakdown dt {
    color: #627287
}

.product-economics-breakdown dd {
    flex-shrink: 0;
    color: #33465a;
    font-weight: 600;
    font-variant-numeric: tabular-nums
}

.product-economics-option-note {
    margin-top: 20px;
    font-size: 13px;
    line-height: 1.7;
    color: #627287
}

.product-economics-option-note a {
    color: #466c9f;
    text-decoration: underline;
    text-underline-offset: 3px
}

.product-economics-saving {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 30px;
    background: #253a4d;
    color: #fff
}

.product-economics-saving .product-economics-label {
    color: #becdde;
    margin-bottom: 8px
}

.product-economics-saving strong {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.025em
}

.product-economics-saving strong span {
    font-size: 13px;
    color: #becdde;
    font-weight: 400;
    letter-spacing: 0
}

.product-economics-percent {
    flex-shrink: 0;
    padding: 10px 16px;
    border: 1px solid #60788e;
    border-radius: 8px;
    font-size: 13px;
    color: #e3edf8
}

.product-economics-note {
    max-width: 960px;
    margin: 18px auto 0;
    text-align: center;
    font-size: 14px;
    line-height: 1.8;
    color: #627287
}

.product-migration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center
}

.product-migration-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0
}

.product-migration-points>div {
    display: flex;
    gap: 12px;
    font-size: 13px;
    font-weight: 500;
    color: #344c63
}

.product-migration-points svg {
    width: 21px;
    height: 21px;
    color: #687bb2;
    flex-shrink: 0;
    margin-top: 3px
}

.product-migration-points small {
    font-size: 13px;
    color: #718094;
    font-weight: 400
}

.product-migration-steps {
    list-style: none;
    padding: 28px;
    border: 1px solid #dce3ed;
    border-radius: 14px;
    background: #fff
}

.product-migration-steps li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 16px;
    position: relative;
    padding-bottom: 24px
}

.product-migration-steps li:last-child {
    padding-bottom: 0
}

.product-migration-steps li:not(:last-child):before {
    content: '';
    position: absolute;
    left: 17px;
    top: 38px;
    bottom: 3px;
    border-left: 1px dashed #bbc8dd
}

.product-migration-steps li>span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef2f9;
    font-size: 12px;
    font-weight: 600;
    color: #697bb0
}

.product-migration-steps li:last-child>span {
    background: var(--brand-gradient);
    color: #fff
}

.product-migration-steps h3 {
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px
}

.product-migration-steps p {
    font-size: 13px;
    line-height: 1.75;
    color: #627287
}

@media (max-width:1100px) {
    .product-migration-grid {
        gap: 36px
    }
}

@media (max-width:960px) {
    .product-economics-option {
        padding: 24px
    }

    .product-economics-breakdown>div {
        gap: 12px;
        font-size: 13px
    }

    .product-migration-grid {
        grid-template-columns: 1fr
    }
}

@media (max-width:767px) {
    .product-economics-options {
        grid-template-columns: minmax(0, 1fr)
    }

    .product-economics-option {
        padding: 24px 20px
    }

    .product-economics-cloud {
        border-left: 0;
        border-top: 1px solid #dce3ed
    }

    .product-economics-total strong {
        font-size: clamp(28px, 8vw, 38px)
    }

    .product-economics-breakdown dd {
        text-align: right
    }

    .product-economics-saving {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding: 24px 20px
    }

    .product-economics-saving strong {
        font-size: 28px
    }

    .product-migration-points {
        grid-template-columns: 1fr
    }

    .product-migration-steps {
        padding: 22px
    }
}

.product-cards, .product-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px
}

.product-cards.three {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.card, .product-card {
    display: flex;
    flex-direction: column;
    padding: 26px;
    background: #fff;
    border: 1px solid #dfe5ed;
    border-radius: 12px;
    min-width: 0;
    box-shadow: none
}

.card:hover, .product-card:hover {
    transform: none !important;
    border-color: #becbde
}

.icon-tile, .product-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    border: 1px solid #dce3ef;
    background: #f4f6fb;
    border-radius: 10px;
    color: #6576b5
}

.icon-tile svg, .product-icon svg {
    width: 21px;
    height: 21px
}

.card h3, .product-card h3 {
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    color: #2c3e50;
    margin: 22px 0 10px;
    letter-spacing: -.02em
}

.card p, .product-card p {
    font-size: 14px;
    line-height: 1.8;
    color: #637286
}

.card a, .product-card a {
    margin-top: 24px;
    font-size: 13px
}

.card p:last-of-type, .product-card p:last-of-type {
    margin-bottom: 0
}

.cs-case p {
    margin-bottom: 24px !important
}

.product-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch
}

.product-feature-list {
    display: grid;
    gap: 25px;
    margin-top: 30px
}

.product-feature-list>div {
    display: flex;
    gap: 16px
}

.product-feature-list h3 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px
}

.product-feature-list p {
    font-size: 14px;
    line-height: 1.8;
    color: #627287
}

.product-figure {
    position: relative;
    min-width: 0;
    min-height: 470px;
    overflow: hidden;
    border-radius: 14px;
    background: #263a4e
}

.product-figure img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.product-figure:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #16273812 20%, #162738fa 100%)
}

.product-photo-tag {
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 1;
    background: #21374bd9;
    border: 1px solid #ffffff29;
    border-radius: 6px;
    color: #dce8f5;
    padding: 7px 12px;
    font-size: 12px
}

.product-figure figcaption {
    position: absolute;
    z-index: 1;
    bottom: 30px;
    left: 30px;
    right: 30px;
    color: white
}

.product-figure figcaption>span {
    display: block;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
    color: #bad0e9
}

.product-figure figcaption strong {
    display: block;
    font-size: 25px;
    line-height: 1.35;
    letter-spacing: -.02em;
    margin: 15px 0 22px;
    font-weight: 600
}

.product-figure figcaption a {
    font-size: 13px;
    color: #cfdef8
}

.product-responsibility {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    border-block: 1px solid #e0e6ed;
    margin: 32px 0 24px;
    padding-block: 28px
}

.product-responsibility h3 {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px
}

.product-responsibility p {
    font-size: 14px;
    line-height: 1.8;
    color: #627287
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #526aab;
    font-size: 14px;
    font-weight: 600
}

.product-tech-details {
    margin-top: 28px;
    border: 1px solid #dfe5ed;
    border-radius: 10px;
    background: #f8fafc
}

.product-tech-details>summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    list-style: none
}

.product-tech-details summary::-webkit-details-marker {
    display: none
}

.product-tech-details[open]>summary>span:last-child {
    transform: rotate(45deg)
}

.product-tech-details>div {
    padding: 0 24px 24px
}

.product-specs {
    margin: 0;
    border-top: 1px solid #e0e6ed
}

.product-specs>div {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #e0e6ed;
    font-size: 13px
}

.product-specs dt {
    color: #627287
}

.product-specs dd {
    color: #2c3e50;
    line-height: 1.75
}

.product-step {
    position: relative;
    padding: 24px;
    border: 1px solid #dfe5ed;
    border-radius: 12px;
    background: white
}

.product-step>span {
    font-size: 12px;
    letter-spacing: .12em;
    color: #6576b5
}

.product-step h3 {
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    color: #2c3e50;
    margin: 20px 0 10px
}

.product-step p {
    font-size: 14px;
    color: #627287;
    line-height: 1.8
}

.cs-steps {
    gap: 20px
}

.cs-step:before, .cs-step:after {
    display: none
}

/* Узкая полоса «путь подключения» под калькулятором: заявка → КП → тест → договор → запуск. */
.product-path {
    padding-block: 28px;
    background: #fff;
    border-top: 1px solid #e6ebf2;
    border-bottom: 1px solid #e6ebf2
}

.product-path+.quick-consult {
    padding-top: 56px
}

.product-path-inner {
    display: flex;
    align-items: center;
    gap: 40px
}

.product-path-label {
    flex: 0 0 200px
}

.product-path-label .eyebrow {
    margin: 0 0 6px;
    color: #6275ac
}

.product-path-label p {
    font-size: 13px;
    line-height: 1.55;
    color: #627287
}

.product-path-steps {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: path
}

.product-path-steps li {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 4px 20px 4px 0
}

.product-path-steps li+li {
    padding-left: 20px;
    border-left: 1px solid #e6ebf2
}

.product-path-steps li:last-child {
    padding-right: 0
}

.product-path-steps li:before {
    counter-increment: path;
    content: counter(path, decimal-leading-zero);
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #ccd6e6;
    background: #f6f8fb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #3b4a7a
}

.product-path-steps li:last-child:before {
    border-color: transparent;
    background: linear-gradient(135deg, #686fd1, #3498db);
    color: #fff
}

.product-path-steps strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: #2c3e50
}

.product-path-steps small {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    line-height: 1.45;
    color: #627287
}

@media (max-width:1100px) {
    .product-path-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 20px
    }

    .product-path-label {
        flex-basis: auto
    }

    .product-path-steps {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px 20px
    }

    .product-path-steps li, .product-path-steps li+li {
        padding: 0;
        border-left: 0
    }
}

@media (max-width:640px) {
    .product-path {
        padding-block: 24px
    }

    .product-path-steps {
        grid-template-columns: 1fr;
        gap: 14px
    }
}

/* Подключение: открытый маршрут со стрелками между этапами. */
.unified-site .product-onboarding { padding-block: 32px 36px; background: linear-gradient(115deg, #f5f6fc, #f0f7fc); border-block: 1px solid #e2e8f2; }
.product-onboarding-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.product-onboarding .product-onboarding-head .eyebrow { font-size: 12px; letter-spacing: .16em; margin-bottom: 12px; color: #6275ac; }
.product-onboarding-timing { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding-bottom: 3px; }
.product-onboarding-timing > svg { width: 22px; height: 22px; color: #7186aa; }
.product-onboarding-timing strong { display: block; font-size: 13px; font-weight: 600; color: #3b526d; }
.product-onboarding-timing small { display: block; margin-top: 3px; font-size: 13px; color: #627287; }
.product-onboarding-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; list-style: none; padding: 0; margin: 0; }
.product-onboarding-steps > li { position: relative; min-width: 0; }
.product-onboarding-steps > li:not(:last-child)::before { content: ''; position: absolute; top: 31px; left: 82px; right: -10px; height: 2px; background: linear-gradient(90deg, #cbd4eb, #7d99c1); }
.product-onboarding-steps > li:not(:last-child)::after { content: ''; position: absolute; top: 27px; right: -10px; width: 10px; height: 10px; border-top: 2px solid #7d99c1; border-right: 2px solid #7d99c1; transform: rotate(45deg); }
.product-onboarding-node { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid #d5deed; border-radius: 50%; background: #fff; color: #667ab0; box-shadow: 0 4px 14px #40578306; }
.product-onboarding-node > svg { width: 25px; height: 25px; stroke-width: 1.6; }
.product-onboarding-node > span { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 23px; height: 23px; border: 3px solid #f3f7fc; border-radius: 50%; background: #e2e8f5; color: #586c93; font-size: 11px; font-weight: 700; line-height: 1; }
.product-onboarding-test .product-onboarding-node { background: var(--brand-gradient); border-color: transparent; color: #fff; box-shadow: 0 0 0 6px #687bd10b, 0 6px 18px #546eb51a; }
.product-onboarding-launch .product-onboarding-node { background: #2c3e50; border-color: #2c3e50; color: #fff; }
.product-onboarding-copy { margin-top: 18px; }
.product-onboarding-copy h3 { margin: 0 0 9px; color: #2c3e50; font-size: 17px; font-weight: 600; line-height: 1.4; }
.product-onboarding-copy p { margin: 0; color: #627287; font-size: 13px; line-height: 1.75; }
@media (max-width: 1100px) {
 .product-onboarding-head { align-items: flex-start; flex-direction: column; gap: 20px; }
 .product-onboarding-steps { gap: 20px; }
 .product-onboarding-copy h3 { font-size: 15px; }
 .product-onboarding-steps > li:not(:last-child)::before { right: -4px; }
 .product-onboarding-steps > li:not(:last-child)::after { right: -4px; }
}
@media (max-width: 760px) {
 .unified-site .product-onboarding { padding-block: 28px 32px; }
 .product-onboarding-head { margin-bottom: 26px; }
 .product-onboarding-steps { grid-template-columns: 1fr; gap: 0; }
 .product-onboarding-steps > li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 22px; padding-bottom: 32px; }
 .product-onboarding-steps > li:last-child { padding-bottom: 0; }
 .product-onboarding-node { width: 52px; height: 52px; }
 .product-onboarding-node > svg { width: 22px; height: 22px; }
 .product-onboarding-copy { margin-top: 2px; }
 .product-onboarding-copy h3 { font-size: 17px; margin-bottom: 6px; }
 .product-onboarding-steps > li:not(:last-child)::before { left: 25px; right: auto; top: 66px; bottom: 13px; width: 2px; height: auto; background: linear-gradient(180deg, #cbd4eb, #7d99c1); }
 .product-onboarding-steps > li:not(:last-child)::after { left: 21px; right: auto; top: auto; bottom: 13px; transform: rotate(135deg); }
}

.product-onboarding + .quick-consult { padding-top: 56px; }

.cs-migration {
    background: #f6f8fb
}

.faq-grid, .product-faq-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 72px
}

.faq-grid .product-link, .product-faq-grid .product-link {
    margin-top: 24px
}

.faq, .product-faq {
    border-bottom: 1px solid #dfe5ed
}

.faq:first-child, .product-faq:first-child {
    border-top: 1px solid #dfe5ed
}

.faq summary, .product-faq summary {
    position: relative;
    padding: 22px 34px 22px 0;
    list-style: none;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6
}

.faq summary::-webkit-details-marker, .product-faq summary::-webkit-details-marker {
    display: none
}

.faq summary:after, .product-faq summary:after {
    content: '+';
    position: absolute;
    right: 6px;
    top: 21px;
    font-size: 21px;
    line-height: 1;
    color: #6c7e95
}

.faq[open] summary:after, .product-faq[open] summary:after {
    content: '−'
}

.faq>p, .faq>div, .product-faq>p, .product-faq>div {
    font-size: 14px;
    line-height: 1.85;
    color: #627287;
    padding: 0 26px 24px 0;
    margin: 0
}

.faq>div>div, .product-faq>div>div {
    padding: 0
}

.faq>div p, .product-faq>div p {
    margin: 0
}

.cs-faq-grid {
    grid-template-columns: .8fr 1.2fr;
    gap: 72px
}

.cs-faq summary svg {
    display: none
}

/* Первый экран: общая подача, разные задачи двух услуг. */
.product-page main h1 {
    font-size: clamp(34px, 3.8vw, 54px) !important
}

.product-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
    align-items: center
}

.product-hero-panel {
    border-radius: 16px;
    padding: 28px;
    color: #e2eaf5
}

.product-panel-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: #b2c4d9;
    margin-bottom: 26px
}

.business-panel h2, .business-panel .business-panel-title {
    font-size: 27px;
    line-height: 1.3;
    letter-spacing: -.025em;
    font-weight: 600;
    color: white
}

.business-apps {
    display: grid;
    gap: 21px;
    margin: 30px 0
}

.business-apps>div {
    display: flex;
    gap: 15px;
    align-items: center
}

.business-apps .product-icon {
    background: #ffffff08;
    border-color: #ffffff20;
    color: #becaee
}

.business-apps strong {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #fff
}

.business-apps span:not(.product-icon) {
    display: block;
    font-size: 13px;
    line-height: 1.6;
    color: #bacbdc;
    margin-top: 4px
}

.business-panel-footer {
    display: flex;
    gap: 12px;
    border-top: 1px solid #ffffff20;
    padding-top: 20px;
    align-items: flex-start
}

.business-panel-footer svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #b4c8e6
}

.business-panel-footer p {
    font-size: 13px;
    line-height: 1.8;
    color: #c0d0e3
}

.infra-pool {
    text-align: center;
    padding: 24px 16px;
    border: 1px solid #a8b4ec66;
    border-radius: 10px;
    background: #768bc818
}

.infra-pool>span {
    font-size: 12px;
    letter-spacing: .13em;
    color: #bbceea
}

.infra-pool strong {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: white;
    margin: 12px 0
}

.infra-pool strong b {
    font-weight: 400;
    color: #839ac0;
    margin-inline: 5px
}

.infra-pool p {
    font-size: 13px;
    color: #bfd0e3
}

.infra-connector {
    height: 26px;
    width: 1px;
    background: #7c93c4;
    margin: auto
}

.infra-machines {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px
}

.infra-machines>div {
    border: 1px solid #ffffff24;
    border-radius: 9px;
    background: #ffffff05;
    text-align: center;
    padding: 18px 8px
}

.infra-machines svg {
    margin: 0 auto 10px;
    color: #b9c8ed;
    width: 22px;
    height: 22px
}

.infra-machines strong {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #e5eefb
}

.infra-machines span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #adc1da
}

.infra-network {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    padding: 16px 10px;
    margin-top: 20px;
    background: #ffffff05;
    border: 1px solid #ffffff20;
    border-radius: 8px;
    color: #c8d6e8
}

.infra-network svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0
}

.infra-panel-note {
    margin-top: 23px;
    font-size: 13px;
    line-height: 1.8;
    color: #b9cade
}

.iaas-hero>.max-w-7xl {
    padding-block: 42px 64px
}

.iaas-hero .site-breadcrumb {
    padding: 0;
    margin-bottom: 28px
}

.iaas-hero .grid-glow {
    opacity: .15
}

.iaas-hero .product-hero-grid>.flex {
    min-width: 0
}

/* Периоды оплаты в калькуляторах — общие стили:
   .payment-options — cloud-server.html, .term-btn — iaas.html и exchange.html. */
.payment-terms {
    margin-top: 22px
}

.payment-terms legend {
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #65758a;
    margin-bottom: 10px
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px
}

.payment-options button, .term-btn {
    flex: 1 1 0;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    color: var(--color-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer
}

.payment-options button span, .term-btn span {
    color: #16a34a
}

.payment-options button:hover, .term-btn:hover {
    border-color: var(--color-secondary)
}

.payment-options button[aria-pressed=true], .term-btn.active {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #2c3e50
}

.payment-options button[aria-pressed=true] span, .term-btn.active span {
    color: #287256
}

.payment-period-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid #e0e6ed;
    font-size: 13px;
    color: #64748b
}

.cs-total .payment-period-total strong {
    font-size: 22px;
    white-space: nowrap;
    letter-spacing: -.02em
}

.cs-total .payment-savings {
    font-size: 13px;
    line-height: 1.6;
    color: #287256;
    margin-top: 10px
}

#bill-discount-row {
    color: #287256
}

@media (max-width:1100px) {
    .product-hero-grid {
        gap: 30px
    }

    .product-cards, .product-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .product-split {
        gap: 35px
    }

    .product-hero-panel {
        padding: 24px
    }

    .faq-grid, .product-faq-grid, .cs-faq-grid {
        gap: 36px
    }

    .product-section-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px
    }

    .product-section-head>.product-copy {
        max-width: 650px
    }

    .payment-options button, .term-btn {
        font-size: 12px
    }
}

@media (max-width:960px) {
    .product-hero-grid, .product-split {
        grid-template-columns: 1fr
    }

    .product-hero-panel {
        max-width: none
    }

    .product-figure {
        min-height: 460px
    }

    .faq-grid, .product-faq-grid, .cs-faq-grid {
        grid-template-columns: 1fr;
        gap: 28px
    }

    .product-cards.three {
        grid-template-columns: 1fr
    }

    .product-page .cs-hero-main {
        padding-bottom: 48px
    }
}

@media (max-width:767px) {
    .product-section, .product-page main>section.product-section {
        padding-block: 56px
    }

    .product-page .product-section>:is(.cs-wrap, .max-w-7xl) {
        padding-inline: 20px
    }

    .product-cards, .product-steps, .product-responsibility {
        grid-template-columns: 1fr
    }

    .card, .product-card, .product-step {
        padding: 24px
    }

    .product-section-head {
        margin-bottom: 28px
    }

    .product-figure {
        min-height: 400px
    }

    .product-figure figcaption {
        left: 24px;
        right: 24px;
        bottom: 24px
    }

    .product-figure figcaption strong {
        font-size: 23px
    }

    .product-responsibility {
        gap: 26px
    }

    .product-hero-panel,
    .astra-hero .astra-platform,
    .pa-hero .pa-scene,
    .dc-hero .dc-panel {
        display: none
    }

    .infra-machines {
        gap: 8px
    }

    .infra-machines span {
        font-size: 12px
    }

    .product-specs>div {
        grid-template-columns: 1fr;
        gap: 8px
    }

    .product-tech-details>summary {
        padding: 18px
    }

    .product-tech-details>div {
        padding: 0 18px 20px
    }

    .faq summary, .product-faq summary {
        font-size: 14px
    }

    .product-hero-grid {
        gap: 32px
    }

    .iaas-hero>.max-w-7xl {
        padding-top: 26px;
        padding-bottom: 40px
    }

    .iaas-hero .site-breadcrumb {
        margin-bottom: 22px
    }

    .business-panel h2, .business-panel .business-panel-title {
        font-size: 25px
    }

    .payment-options button, .term-btn {
        font-size: 13px
    }

    .product-photo-tag {
        left: 24px;
        top: 24px
    }
}

.site-contact form>.grid+label[for] {
    display: block;
    margin-top: 16px
}

.site-contact form>label[for]+textarea {
    margin-top: 0
}

.cs-hero-copy, .iaas-hero h1+p {
    font-size: 17px;
    line-height: 1.75
}

.product-hero-badges>:is(span, div) {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.6;
    background: #ffffff06;
    border: 1px solid #ffffff26;
    color: #cbd9ed
}

.product-hero-badges {
    gap: 8px
}

.cs-config {
    border-radius: 12px;
    border-color: #dfe5ed;
    box-shadow: none
}

.cs-config-summary {
    background: #f8fafc
}

.cs-control-top label, .cs-bill>div {
    font-size: 13px
}

.cs-range::-webkit-slider-thumb {
    background: #2c3e50;
    border: 2px solid white;
    box-shadow: 0 2px 5px #25394e26
}

.cs-range::-moz-range-thumb {
    background: #2c3e50;
    border: 2px solid white;
    box-shadow: 0 2px 5px #25394e26
}

/* Общий стиль пресетов калькуляторов IaaS и Cloud Server. */
#calculator .preset-pill,
#calculator .cs-preset {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #dfe5ed;
    background: #fff;
    color: #526176;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    line-height: 1.6;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

#calculator .preset-pill:hover:not(.active),
#calculator .cs-preset:hover:not([aria-pressed="true"]) {
    background: #f1f5f9;
    border-color: #bac8da;
    color: #344861;
}

#calculator .preset-pill.active,
#calculator .cs-preset[aria-pressed="true"] {
    background: #e8eef7;
    border-color: #bacbe1;
    color: #344f73;
}

#calculator .preset-pill:focus-visible,
#calculator .cs-preset:focus-visible {
    outline: 2px solid #7893b6;
    outline-offset: 3px;
}

@media (max-width:767px) {
    .cs-hero-copy, .iaas-hero h1+p {
        font-size: 16px
    }
}

.product-page .cs-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr))
}

.product-step {
    min-width: 0
}

@media (max-width:1100px) {
    .product-page .cs-steps, .product-page .cs-cases {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media (max-width:767px) {
    .product-page .cs-steps, .product-page .cs-cases {
        grid-template-columns: 1fr
    }
}

/* ==========================================================================
   7. Совместимость со старыми классами (временно, до миграции страниц)

   Целевые компоненты уже применяются к legacy-классам через сгруппированные
   селекторы выше:
     .container       ← .site-wrap, .astra-wrap, .cs-wrap, .pa-wrap
     .section         ← .astra-section, .cs-section, .pa-section
     .section-title   ← .astra-heading, .cs-heading, .pa-heading (и h2.text-3xl)
     .section-copy    ← .astra-copy, .cs-copy, .pa-copy
     .card            ← .product-card; частично .service-card, .terminal-card,
                        .astra-service, .advantage-card
     .icon-tile       ← .product-icon
     .hero            ← .hero-gradient, .astra-hero, .cs-hero, .pa-hero
     .metric-strip    ← .site-proof
     .faq / .faq-grid ← .product-faq / .product-faq-grid
     .lead-form       — новый компонент; .astra-form, .cs-form, .pa-form,
                        .terminal-form переводятся при миграции страниц

   Page-specific классы (.dc-*, .sla-*, .terminal-*, уникальные .cs-* и
   .pa-*) уже вынесены в assets/pages/<page>.css и загружаются после
   этого файла. В общие селекторы их не включаем: у них свои значения,
   и досрочный alias изменил бы визуал. По мере унификации страниц
   (план .devin/plans/html-unification.md) старые селекторы удаляются.
   ========================================================================== */


/* Общая шапка и подвал: оформление, утверждённое на iaas-test. */
:root .site-notice { background: linear-gradient(to bottom right, #1a252f, #2c3e50); color: #fff; }
:root .site-notice > .site-wrap { align-items: center; flex-wrap: wrap; gap: 8px; padding-block: 8px; }
:root .site-notice-offer, :root .site-notice-health { display: flex; align-items: center; gap: 8px; }
:root .site-notice-gift { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; background: #60a5fa33; color: #93c5fd; }
:root .site-notice-gift svg { width: 12px; height: 12px; }
:root .site-notice-status { display: flex; align-items: center; gap: 16px; opacity: .8; }
:root .site-notice-health { gap: 4px; }
:root .site-notice-dot { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #94a3b8; }
:root .site-notice-health[data-state="operational"] .site-notice-dot { background: #4ade80; }
@media (prefers-reduced-motion: no-preference) {
 :root .site-notice-health[data-state="operational"] .site-notice-dot { animation: pulse-dot 2s infinite; }
}
:root .site-notice-health[data-state="problem"] { color: #fdba74; }
:root .site-notice-health[data-state="problem"] .site-notice-dot { background: #fb923c; }
:root .site-notice-status a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
:root .site-notice-status a:hover { color: #fff; }
@media (max-width: 767px) {
 :root .site-notice-status { display: none; }
}
:root .site-navigation { color: #233548; font-size: 14px; font-weight: 600; }
:root .site-header-contact { gap: 16px; flex-shrink: 0; }
:root .site-header-contacts { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; line-height: 1.5; }
:root .site-header-contacts a:last-child { color: #64748b; font-size: 12px; font-weight: 500; }
:root .site-header-contacts a:hover { color: var(--color-secondary); }
:root .site-header .site-account { min-width: 0; min-height: 38px; padding: 8px 16px; font-size: 14px; line-height: 20px; border-color: #2c3e50; }
@media (min-width: 1024px) and (max-width: 1250px) {
 :root .site-header-row { gap: 16px; }
 :root .site-navigation { gap: 16px; font-size: 12px; }
 :root .site-header-contacts { font-size: 12px; }
}
:root .site-footer .site-footer-columns { grid-template-columns: 1.3fr 1fr 1fr .95fr 1.3fr; gap: 28px; }
:root .site-footer .site-footer-columns .site-footer-title { font-size: 14px; letter-spacing: .03em; }
:root .site-footer .site-footer-columns > div > p:not(.site-footer-title) { max-width: 220px; font-size: 14px; }
:root .site-footer-columns > div > a:not(.site-footer-brand) { font-size: 14px; }
:root .site-footer-columns > div > a.site-footer-phone { font-size: 16px; }
:root .site-footer-brand span { font-size: 10px; }
:root .site-footer-label { font-size: 14px; color: inherit; }
:root .site-footer-phone { white-space: nowrap; }
:root .site-footer-bottom.site-footer-details { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 40px; font-size: 12px; }
:root .site-footer-legal { display: grid; gap: 4px; line-height: 1.55; }
:root .site-footer-legal a { white-space: nowrap; }
:root .site-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 22px; padding-right: 76px; }
:root .site-callback-position { position: fixed; right: 24px; bottom: 24px; z-index: 9999; }
@media (min-width: 1024px) and (max-width: 1100px) {
 :root .site-menu-toggle { display: none; }
 :root .site-header-row { height: 76px; gap: 16px; }
 :root .site-navigation { display: flex; position: static; padding: 0; border: 0; background: transparent; overflow: visible; max-height: none; gap: 16px; font-size: 12px; }
 :root .site-dropdown summary { padding-block: 26px; justify-content: flex-start; }
 :root .site-dropdown-panel { position: absolute; left: -20px; top: calc(100% - 3px); width: 290px; background: #fff; border: 1px solid var(--site-border); box-shadow: 0 16px 40px #172c421a; }
 :root .site-partners-link { padding: 0; }
 :root .site-header .site-navigation .site-mobile-contact { display: none; }
}
@media (max-width: 1100px) {
 :root .site-footer .site-footer-columns { gap: 22px; }
}
@media (max-width: 960px) {
 :root .site-footer .site-footer-columns { grid-template-columns: repeat(4, 1fr); }
 :root .site-footer .site-footer-columns > div:first-child { grid-column: 1 / -1; }
 :root .site-footer .site-footer-columns > div:first-child p { max-width: 440px; }
}
@media (max-width: 767px) {
 :root .site-footer .site-footer-columns { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
 :root .site-footer .site-footer-columns > div:last-child { grid-column: auto; }
 :root .site-footer-bottom.site-footer-details { grid-template-columns: 1fr; align-items: start; }
 :root .site-footer-links { justify-content: flex-start; }
 :root .site-callback-position { right: 16px; bottom: 18px; }
}

/* Старые ссылки на форму ведут к началу той же секции. */
.site-contact { position: relative; }
.site-contact-alias { position: absolute; top: 0; left: 0; }

/* Форма остаётся единственным активным слоем; уведомления возвращаются после закрытия. */
html[data-modal-open], html[data-modal-open] body { overflow: hidden; }
html[data-modal-open] :is(.site-cookie-notice, #callback-widget) { visibility: hidden !important; pointer-events: none; }
