/* Облачный сервер (cloud-server.html): page-specific стили, вынесенные из inline <style>.
   Общие компоненты (.btn, .section-title, .product-*, .site-*, .payment-*) живут в assets/site.css
   и загружаются раньше. Где site.css уже переопределяет .cs-* (unified-слой),
   значения ниже повторяют фактически отрисованные, чтобы визуал не изменился.
   Старые стили шапки/подвала/notice (.cs-header*, .cs-footer*, .cs-mobile-nav, .cs-notice,
   .cs-skip) и разметка hero-консоли (.cs-console*, .cs-resource*, .cs-server-scene) удалены:
   соответствующего DOM на странице нет — используются .site-header/.site-footer/.product-hero-panel. */

/* База страницы. .cs-wrap/.cs-section/.btn/.eyebrow/.section-title задаёт site.css. */
.cs-page { margin: 0; background: #f7f9fc; color: var(--color-text); font-family: Inter, system-ui, sans-serif; line-height: 1.6; --header-height: 94px; }
.cs-page *, .cs-page *::before, .cs-page *::after { box-sizing: border-box; }
.cs-page [hidden] { display: none !important; }
.cs-page [id] { scroll-margin-top: var(--header-height); }
.cs-page .eyebrow { font-size: 12px; letter-spacing: .19em; }
.cs-page .btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.cs-page :focus-visible { outline: 3px solid #3498db; outline-offset: 5px; }
.cs-page button { cursor: pointer; }
.cs-page button:disabled { cursor: wait; opacity: .7; }
.cs-heading { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.16; letter-spacing: -.045em; font-weight: 700; color: var(--color-primary); }
.cs-copy { font-size: 15px; line-height: 1.8; color: #64748b; }

/* Hero */
.cs-hero { position: relative; overflow: hidden; color: white; background: radial-gradient(ellipse at 85% 25%, #334668 0, transparent 48%), linear-gradient(120deg,#2c3e50,#18232f); }
.cs-hero-grid { position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(#9bb9da26 1px,transparent 1px),linear-gradient(90deg,#9bb9da26 1px,transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg,transparent,black); pointer-events: none; }
.cs-hero-main { display: grid; grid-template-columns: 1.15fr 1fr; gap: 65px; align-items: center; position: relative; padding-block: 66px 72px; }
.cs-breadcrumb { font-size: 12px; color: #a8b9cd; margin-bottom: 31px; display: flex; align-items: center; gap: 10px; }
.cs-hero h1 { font-size: clamp(42px, 4.6vw, 64px); letter-spacing: -.055em; line-height: 1.08; font-weight: 700; margin: 22px 0; }
.cs-accent { background: linear-gradient(110deg,#c2c5ff,#68c4f7); background-clip: text; -webkit-background-clip: text; color: transparent; }
.cs-tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #ffffff24; background: #ffffff06; border-radius: 6px; font-size: 12px; color: #c9daf0; }
.cs-tag svg { width: 13px; height: 13px; }
.cs-hero-copy { font-size: 17px; line-height: 1.75; color: #c5d2e1; max-width: 520px; }
.cs-ghost { color: white; border: 1px solid #ffffff40; background: #ffffff05; }
.cs-ghost:hover { background: #ffffff12; }

/* Метрики под hero — общий компонент .metric-strip из site.css. */

/* Карточки сценариев. Типографика карточки — общая .product-card из site.css. */
.cs-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; color: #686fd1; background: linear-gradient(white,white) padding-box, var(--brand-gradient) border-box; border: 1px solid transparent; }
.cs-icon svg { width: 20px; height: 20px; }
.cs-cases { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.cs-case { padding: 26px; background: white; border: 1px solid #dfe5ed; border-radius: 12px; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.cs-case:hover { transform: translateY(-3px); border-color: #becbde; }
.cs-text-link { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: #5968ba; }
.cs-text-link svg { width: 15px; height: 15px; }
.cs-case .cs-text-link { margin-top: auto; }

/* Калькулятор конфигурации */
.cs-config { border: 1px solid #dfe5ed; border-radius: 12px; background: white; overflow: hidden; box-shadow: none; }
.cs-presets { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 25px; }
.cs-config-grid { display: grid; grid-template-columns: 1.2fr 1fr; }
.cs-config-controls { padding: 34px; }
.cs-plan-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; background: #f1f4f8; border-radius: 9px; }
.cs-plan-switch button { padding: 12px 10px; border: 1px solid transparent; border-radius: 6px; font-size: 13px; color: #64748b; }
.cs-plan-switch button[aria-pressed="true"] { color: #2c3e50; background: white; border-color: #e0e5ef; box-shadow: 0 2px 4px #1a252f08; font-weight: 600; }
.cs-control { margin-top: 26px; }
.cs-control-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 7px; }
.cs-control label { font-size: 13px; font-weight: 600; color: #334155; }
.cs-number { width: 84px; height: 34px; border: 1px solid #d8deea; border-radius: 6px; padding: 4px 8px; font-size: 13px; text-align: right; background: #fafbfe; }
.cs-range { width: 100%; height: 22px; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; --progress: 0%; }
.cs-range::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(to right,#7d84d6 var(--progress),#e5e9f1 var(--progress)); border-radius: 5px; }
.cs-range::-moz-range-track { height: 4px; background: linear-gradient(to right,#7d84d6 var(--progress),#e5e9f1 var(--progress)); border-radius: 5px; }
.cs-range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; height: 17px; width: 17px; background: #2c3e50; border: 2px solid white; border-radius: 50%; margin-top: -6px; box-shadow: 0 2px 5px #25394e26; }
.cs-range::-moz-range-thumb { height: 10px; width: 10px; background: #2c3e50; border: 2px solid white; border-radius: 50%; box-shadow: 0 2px 5px #25394e26; }
.cs-range-limits { display: flex; justify-content: space-between; font-size: 12px; color: #64748b; }
.cs-options { margin-top: 28px; }
.cs-options legend { font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.cs-option { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid #e5e9f1; cursor: pointer; }
.cs-option:last-child { border-bottom: 0; padding-bottom: 0; }
.cs-option strong { display: block; font-size: 13px; font-weight: 500; color: #334155; }
.cs-option small { display: block; margin-top: 3px; font-size: 13px; color: #64748b; }
.cs-switch { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cs-switch-track { position: relative; width: 40px; height: 24px; flex-shrink: 0; border-radius: 20px; background: #cbd5e1; transition: background .2s; }
.cs-switch-track::after { content: ''; position: absolute; width: 18px; height: 18px; top: 3px; left: 3px; background: white; border-radius: 50%; transition: transform .2s; }
.cs-switch:checked + .cs-switch-track { background: var(--color-action); }
.cs-switch:checked + .cs-switch-track::after { transform: translateX(16px); }
.cs-switch:focus-visible + .cs-switch-track { outline: 3px solid #7893b6; outline-offset: 4px; }
.cs-config-summary { background: #f8fafc; padding: 34px; border-left: 1px solid #e0e6ef; }
.cs-bill { margin-top: 26px; }
.cs-bill > div { display: flex; justify-content: space-between; gap: 15px; font-size: 13px; padding-block: 9px; }
.cs-bill dt { color: #64748b; }
.cs-bill dd { white-space: nowrap; font-weight: 500; color: #2c3e50; }
.cs-total { margin-top: 18px; padding-top: 20px; border-top: 1px solid #dce3ed; }
.cs-total strong { font-size: 42px; font-weight: 700; letter-spacing: -.055em; color: #2c3e50; line-height: 1.2; }
.cs-summary-note { padding: 15px; border: 1px solid #dde3ef; border-radius: 7px; font-size: 13px; line-height: 1.8; color: #64748b; margin-top: 20px; }
.cs-config-bottom { padding: 17px 34px; display: flex; justify-content: space-between; gap: 20px; align-items: center; border-top: 1px solid #e0e6ef; font-size: 13px; }
.cs-checks { display: flex; flex-wrap: wrap; gap: 12px 25px; font-size: 13px; color: #64748b; }
.cs-checks span { display: inline-flex; align-items: center; gap: 7px; }
.cs-checks svg { width: 14px; height: 14px; color: #668caa; }

/* Выделенная готовая конфигурация */
.pricing-featured {
    position: relative;
    box-shadow: 0 20px 40px -10px rgba(52, 152, 219, 0.25);
}
.pricing-featured::before {
    content: 'ПОПУЛЯРНЫЙ';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-gradient);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 14px;
    border-radius: 9999px;
    white-space: nowrap;
}

/* Миграция. Карточки шагов (.cs-step + .product-step) стилизует site.css. */
.cs-migration { background: #f6f8fb; border-top: 1px solid #e1e7f0; border-bottom: 1px solid #e1e7f0; }
.cs-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.cs-step-number { color: #7d85c1; font: 12px ui-monospace, Consolas, monospace; }
.cs-migration-note { display: flex; align-items: center; justify-content: space-between; gap: 30px; background: white; padding: 25px 30px; border: 1px solid #dfe5ef; border-radius: 10px; margin-top: 35px; }

/* FAQ: рамки, summary и текст покрывает общий .product-faq из site.css;
   здесь только page-specific раскладка. */
.cs-faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; }
.cs-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cs-faq summary::after { font-weight: 400; }
.cs-faq p a { text-decoration: underline; text-underline-offset: 3px; color: #2c3e50; }

/* Контактная секция и форма. Общий вид задаёт .site-contact/.site-lead-form из site.css. */
.cs-contact { background: radial-gradient(ellipse at 20% 90%, #41558155, transparent 55%), #243344; }
.cs-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.cs-contact-list { display: grid; gap: 20px; margin-top: 30px; }
.cs-contact-list li { display: flex; gap: 13px; color: #c3d1e3; font-size: 13px; }
.cs-contact-list span { color: #b4baff; font: 12px ui-monospace, Consolas, monospace; padding-top: 3px; }
.cs-form { border-radius: 14px; background: white; border: 1px solid #dbe2ec; padding: 34px; }
.cs-form label:not(.cs-consent):not(.cs-attach) { display: block; font-size: 13px; font-weight: 500; color: #475569; margin-bottom: 7px; }
.cs-field { width: 100%; background: #fafbfd; border: 1px solid #dbe2ec; border-radius: 6px; padding: 11px 12px; font-size: 13px; min-height: 44px; color: #2c3e50; }
.cs-field::placeholder { color: #7c899c; }
.cs-field:focus { border-color: #848dd1; }
.cs-form textarea { resize: vertical; }
.cs-form input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--color-action); }
.cs-attach { display: flex; align-items: start; gap: 9px; padding: 12px; margin-top: 16px; background: #f4f6fb; border: 1px solid #e4e8f0; border-radius: 6px; color: #475569; font-size: 13px; }
.cs-consent { display: flex; align-items: start; gap: 9px; font-size: 13px; line-height: 1.8; color: #64748b; margin-top: 16px; }
.cs-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.cs-status { padding: 12px; margin-top: 14px; border-radius: 6px; font-size: 13px; line-height: 1.6; }
.cs-status[data-state="error"] { background: #fff1f2; color: #b42332; }
.cs-status[data-state="success"] { background: #ecfdf5; color: #237553; }

@media (max-width: 1150px) {
    .cs-hero-main { gap: 35px; }
}
@media (max-width: 960px) {
    .cs-hero-main { grid-template-columns: 1fr; gap: 12px; padding-block: 35px 45px; }
    .cs-hero h1 { font-size: 58px; }
    .cs-hero-copy { max-width: 620px; }
    .cs-faq-grid { grid-template-columns: 1fr; gap: 28px; }
    .cs-steps { grid-template-columns: repeat(2,1fr); }
    .cs-contact-grid { grid-template-columns: 1fr; gap: 35px; }
    .cs-form { max-width: 640px; width: 100%; }
}
@media (max-width: 760px) {
    .cs-config-grid { grid-template-columns: 1fr; }
    .cs-config-summary { border-left: 0; border-top: 1px solid #e0e6ef; }
    .cs-config-bottom { align-items: start; flex-direction: column; }
}
@media (max-width: 600px) {
    .cs-hero h1 { font-size: clamp(37px, 10vw, 52px); }
    .cs-hero-actions { flex-direction: column; }
    .cs-migration-note { flex-direction: column; align-items: start; padding: 23px; gap: 20px; }
    .cs-migration-note .btn { width: 100%; }
    .cs-form { padding: 23px; }
}
@media (max-width: 480px) {
    .cs-cases { grid-template-columns: 1fr; gap: 12px; }
    .cs-config-controls, .cs-config-summary { padding: 22px; }
    .cs-config-bottom { padding: 20px 22px; }
    .cs-total strong { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cs-page *, .cs-page *::before, .cs-page *::after { animation: none !important; transition: none !important; }
}

/* Форма получения КП в калькуляторе — общие стили в site.css (.calc-email-row). */
