/* ==========================================================================
   Forge & Frontier — общий стиль сайта (v2, «кузнечный»)

   Идея: цвет кодирует температуру металла.
     steel  (остывший)  — завершено, спокойно
     brass  (тёплый)    — акценты, награды, ссылки
     ember  (раскалённый) — действие, активно сейчас
   Поверхности — «плиты» с заклёпками, а не одинаковые стеклянные карточки.
   ========================================================================== */

:root {
    /* поверхности */
    --iron:    #1D1916;   /* фон страницы */
    --anvil:   #28221E;   /* плиты */
    --anvil-2: #332B26;   /* поднятые/hover */
    --pit:     #15110F;   /* поля ввода, углубления */
    --line:    #4A3F37;   /* границы */
    --rivet:   #6B5B4E;

    /* текст */
    --ash:     #EADFCF;
    --ash-dim: #A89B8B;

    /* температура */
    --steel:   #7FA6BD;
    --brass:   #D6A94A;
    --ember:   #FF6A2B;
    --ember-hi:#FF8650;

    /* статусы */
    --ok:      #7BC47F;
    --bad:     #F0705F;

    /* типографика */
    --f-display: 'Russo One', 'Arial Black', sans-serif;
    --f-body: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --r-plate: 6px;
    --r-ctl: 4px;
    --wrap: 1160px;

    /* совместимость со старыми шаблонами (planner, roadmap, terms, reset_*) */
    --bg-color: var(--iron);
    --card-bg: var(--anvil);
    --accent-neon: var(--ember);
    --accent-gold: var(--brass);
    --accent-neon-bright: var(--ember-hi);

    /* Bootstrap, чтобы старые страницы не выбивались */
    --bs-body-bg: var(--iron);
    --bs-body-color: var(--ash);
    --bs-body-font-family: var(--f-body);
    --bs-border-color: var(--line);
    --bs-secondary-color: var(--ash-dim);
    --bs-link-color: var(--brass);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    background: var(--iron);
    color: var(--ash);
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* зерно металла: очень слабое, чтобы фон не был плоской заливкой */
body::before {
    content: "";
    position: fixed; inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .05;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

::selection { background: var(--ember); color: var(--iron); }

a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--ember-hi); }

:focus-visible { outline: 2px solid var(--ember-hi); outline-offset: 3px; border-radius: 2px; }

img { max-width: 100%; height: auto; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 2000;
    background: var(--ember); color: var(--iron); padding: 10px 16px;
    border-radius: var(--r-ctl); font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--iron); }

/* ---------- типографика ---------- */

h1, h2, h3, h4, .display {
    font-family: var(--f-display);
    font-weight: 400;          /* у Russo One один вес */
    line-height: 1.1;
    letter-spacing: .005em;
    margin: 0 0 .5em;
    color: var(--ash);
    text-transform: none;
}
h1 { font-size: clamp(2.6rem, 7.2vw, 5.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }
.lead { font-weight: 400; font-size: 1.2rem; line-height: 1.55; color: var(--ash); max-width: 56ch; }
.muted, .text-muted { color: var(--ash-dim) !important; }
.prose { /*max-width: 68ch;*/ }
.prose p, .prose li { color: var(--ash); opacity: .92; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section + .section { padding-top: 24px; }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head p { color: var(--ash-dim); margin: 0; }

/* линия нагрева: от остывшего металла к раскалённому */
.heat-rule {
    height: 2px; border: 0; margin: 0;
    background: linear-gradient(90deg, var(--steel) 0%, var(--brass) 55%, var(--ember) 100%);
}

/* ---------- шапка ---------- */

.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(29, 25, 22, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap {
    display: flex; align-items: center; justify-content: space-between;
    height: 66px; gap: 16px;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--f-display); font-size: 1.15rem; color: var(--ash);
    letter-spacing: .02em;
}
.brand:hover { color: var(--ash); }
.brand-mark {
    width: 28px; height: 28px; flex: none;
    display: grid; place-items: center;
    background: var(--ember); color: var(--iron);
    font-size: .95rem; border-radius: 3px;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 78% 100%, 0 100%);
}
.nav { display: flex; align-items: center; gap: 6px; }
.nav a.nav-link-ff {
    color: var(--ash-dim); padding: 8px 12px; border-radius: var(--r-ctl);
    font-weight: 500; font-size: .98rem;
}
.nav a.nav-link-ff:hover, .nav a.nav-link-ff[aria-current="page"] { color: var(--ash); background: var(--anvil); }
.nav .sep { width: 1px; height: 22px; background: var(--line); margin: 0 8px; }
.nav-toggle {
    display: none; background: none; border: 1px solid var(--line);
    color: var(--ash); border-radius: var(--r-ctl); padding: 8px 10px; line-height: 1;
}

@media (max-width: 820px) {
    .nav-toggle { display: inline-flex; }
    .nav {
        position: absolute; left: 0; right: 0; top: 66px;
        flex-direction: column; align-items: stretch; gap: 2px;
        background: var(--iron); border-bottom: 1px solid var(--line);
        padding: 12px 20px 18px; display: none;
    }
    .nav.open { display: flex; }
    .nav .sep { display: none; }
    .nav a.nav-link-ff { padding: 12px; }
}

/* ---------- кнопки ---------- */

.btn-ff, .btn-main {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: var(--r-ctl);
    background: var(--ember); color: var(--iron) !important;
    font-family: var(--f-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
    border: 1px solid var(--ember); cursor: pointer;
    transition: background-color .15s, transform .15s, box-shadow .15s;
}
.btn-ff:hover, .btn-main:hover {
    background: var(--ember-hi); border-color: var(--ember-hi);
    transform: translateY(-1px); box-shadow: 0 6px 18px rgba(255, 106, 43, .28);
    filter: none;
}
.btn-ff:active { transform: translateY(0); }
.btn-ff.ghost {
    background: transparent; color: var(--ash) !important; border-color: var(--line);
}
.btn-ff.ghost:hover { border-color: var(--ash-dim); background: var(--anvil); box-shadow: none; }
.btn-ff.brass { background: var(--brass); border-color: var(--brass); }
.btn-ff.brass:hover { background: #E4BC62; border-color: #E4BC62; box-shadow: 0 6px 18px rgba(214, 169, 74, .25); }
.btn-ff.sm { padding: 8px 14px; font-size: .92rem; }
.btn-ff.block { width: 100%; }
.btn-ff[disabled], .btn-ff.disabled { opacity: .45; pointer-events: none; }

/* ---------- плиты (вместо одинаковых карточек) ---------- */

.plate, .glass-card {
    position: relative;
    background-color: var(--anvil);
    border: 1px solid var(--line);
    border-radius: var(--r-plate);
    padding: 28px;
}
/* заклёпки по углам — только у .plate.riveted, чтобы не повторялись везде */
.plate.riveted {
    background-image:
        radial-gradient(circle at 12px 12px, var(--rivet) 0 2px, transparent 2.6px),
        radial-gradient(circle at calc(100% - 12px) 12px, var(--rivet) 0 2px, transparent 2.6px),
        radial-gradient(circle at 12px calc(100% - 12px), var(--rivet) 0 2px, transparent 2.6px),
        radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), var(--rivet) 0 2px, transparent 2.6px);
}
.glass-card { backdrop-filter: none; }   /* старый класс из прежнего дизайна */

.plate-title { font-family: var(--f-display); font-size: 1.05rem; margin: 0 0 14px; color: var(--ash-dim); }

/* ---------- метки и статусы ---------- */

.tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 12px; border-radius: 999px;
    font-size: .85rem; font-weight: 600;
    border: 1px solid var(--line); color: var(--ash-dim); background: var(--pit);
}
.tag.hot   { color: var(--ember-hi); border-color: rgba(255,106,43,.45); background: rgba(255,106,43,.08); }
.tag.warm  { color: var(--brass);    border-color: rgba(214,169,74,.45); background: rgba(214,169,74,.08); }
.tag.cool  { color: var(--steel);    border-color: rgba(127,166,189,.4); background: rgba(127,166,189,.08); }
.tag.ok    { color: var(--ok);       border-color: rgba(123,196,127,.4); background: rgba(123,196,127,.08); }
.tag.bad   { color: var(--bad);      border-color: rgba(240,112,95,.45); background: rgba(240,112,95,.08); }

.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ash-dim); display: inline-block; flex: none; }
.dot.on  { background: var(--ok); box-shadow: 0 0 0 0 rgba(123,196,127,.6); animation: ping 2.2s infinite; }
.dot.off { background: var(--bad); }
@keyframes ping {
    0% { box-shadow: 0 0 0 0 rgba(123,196,127,.55); }
    70% { box-shadow: 0 0 0 8px rgba(123,196,127,0); }
    100% { box-shadow: 0 0 0 0 rgba(123,196,127,0); }
}

/* ---------- hero ---------- */

.hero { position: relative; padding: 76px 0 84px; overflow: hidden; }
.hero::before {            /* свет горна: единственный «эффект» страницы */
    content: ""; position: absolute; right: -10%; bottom: -35%;
    width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
    background: radial-gradient(circle, rgba(255,106,43,.26) 0%, rgba(255,106,43,.07) 40%, transparent 68%);
    pointer-events: none;
    animation: furnace 7s ease-in-out infinite alternate;
}
@keyframes furnace { from { opacity: .65; transform: scale(.97); } to { opacity: 1; transform: scale(1.03); } }

.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .25em; }
.hero .amp { color: var(--brass); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note { margin-top: 18px; color: var(--ash-dim); font-size: .95rem; max-width: 52ch; }

@media (max-width: 920px) {
    .hero { padding: 44px 0 56px; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* табличка со статусом сервера */
.gauge dl { margin: 0; display: grid; gap: 0; }
.gauge .gauge-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.gauge .gauge-row:first-child { border-top: 0; padding-top: 0; }
.gauge dt { color: var(--ash-dim); font-size: .95rem; }
.gauge dd { margin: 0; font-weight: 600; text-align: right; }
.gauge .big { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; }

/* ---------- сезоны как температурная шкала ---------- */

.seasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-plate); overflow: hidden; background: var(--anvil); }
.season { padding: 26px 26px 28px; position: relative; display: flex; flex-direction: column; gap: 10px; }
.season + .season { border-left: 1px solid var(--line); }
.season::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--line); }
.season.cooled::before { background: var(--steel); }
.season.hot::before { background: linear-gradient(90deg, var(--brass), var(--ember)); height: 6px; }
.season.hot { background: linear-gradient(180deg, rgba(255,106,43,.10), transparent 60%); }
.season.cold { color: var(--ash-dim); }
.season .state { font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.season.cooled .state { color: var(--steel); }
.season.hot .state { color: var(--ember-hi); }
.season h3 { margin: 0; }
.season p { margin: 0; color: var(--ash-dim); font-size: .98rem; }
.season.hot p { color: var(--ash); opacity: .9; }
.season .foot { margin-top: auto; padding-top: 14px; }

@media (max-width: 860px) {
    .seasons { grid-template-columns: 1fr; }
    .season + .season { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- шаги (настоящая последовательность — нумерация оправдана) ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { counter-increment: step; position: relative; padding: 24px 24px 22px; background: var(--anvil); border: 1px solid var(--line); border-radius: var(--r-plate); display: flex; flex-direction: column; gap: 8px; }
.step::before {
    content: counter(step);
    font-family: var(--f-display); font-size: 1.1rem;
    width: 34px; height: 34px; display: grid; place-items: center;
    border-radius: 50%; border: 2px solid var(--line); color: var(--ash-dim);
    margin-bottom: 6px;
}
.step h3 { margin: 0; font-size: 1.15rem; }
.step p { margin: 0; color: var(--ash-dim); font-size: .98rem; }
.step .act { margin-top: auto; padding-top: 14px; }
.step.done { border-color: rgba(123,196,127,.45); }
.step.done::before { content: "\2713"; border-color: var(--ok); color: var(--ok); }
.step.now { border-color: var(--ember); background: linear-gradient(180deg, rgba(255,106,43,.09), var(--anvil) 70%); }
.step.now::before { border-color: var(--ember); color: var(--ember-hi); }
.step.wait { opacity: .62; }

@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- принципы: список с разделителями, не карточки ---------- */

.principles { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.principle { padding: 28px 32px 28px 0; border-bottom: 1px solid var(--line); }
.principle:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--line); }
.principle h3 { margin-bottom: .35em; }
.principle p { margin: 0; color: var(--ash-dim); max-width: 46ch; }
@media (max-width: 720px) {
    .principles { grid-template-columns: 1fr; }
    .principle, .principle:nth-child(even) { padding: 22px 0; border-left: 0; }
}

/* ---------- FAQ / раскрывающиеся блоки (нативный <details>) ---------- */

.qa { border-top: 1px solid var(--line); }
.qa:last-of-type { border-bottom: 1px solid var(--line); }
.qa summary {
    list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
    font-weight: 600; font-size: 1.05rem; color: var(--ash);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
    content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    font-family: var(--f-display); font-size: 1.5rem; color: var(--brass); transition: transform .2s;
}
.qa[open] summary::after { content: "\2212"; color: var(--ember-hi); }
.qa summary:hover { color: var(--ember-hi); }
.qa .qa-body { padding: 0 0 22px; color: var(--ash); opacity: .9; max-width: 68ch; }
.qa .qa-body > :last-child { margin-bottom: 0; }

/* ---------- боковое оглавление (правила, FAQ) ---------- */

.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; }
.toc p { font-family: var(--f-display); font-size: .95rem; color: var(--ash-dim); margin: 0 0 10px; }
.toc a { display: block; padding: 7px 0 7px 14px; border-left: 2px solid var(--line); color: var(--ash-dim); font-size: .96rem; }
.toc a:hover, .toc a.active { color: var(--ash); border-left-color: var(--ember); }
@media (max-width: 920px) {
    .doc-layout { grid-template-columns: 1fr; gap: 24px; }
    .toc { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
    .toc p { display: none; }
    .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
}

/* ---------- формы ---------- */

.auth-shell { min-height: calc(100vh - 66px - 220px); display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 72px; align-items: center; padding: 56px 0; }
.auth-side h2 { margin-bottom: .4em; }
.auth-side ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 12px; color: var(--ash-dim); max-width: 46ch; }
.auth-side li::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: .55em; background: var(--ember); clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); }
@media (max-width: 900px) {
    .auth-shell { grid-template-columns: 1fr; gap: 36px; padding: 32px 0; min-height: 0; }
    .auth-side { order: 2; }
}

.field { margin-bottom: 18px; }
.field > label, .field .label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .95rem; color: var(--ash); }
.field .hint { color: var(--ash-dim); font-size: .88rem; margin-top: 6px; }
.field .err { color: var(--bad); font-size: .9rem; margin-top: 6px; }

.input, .field input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=file]),
.field select, .field textarea {
    width: 100%; background: var(--pit); color: var(--ash);
    border: 1px solid var(--line); border-radius: var(--r-ctl);
    padding: 12px 14px; font: inherit; line-height: 1.4;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.input[type=file] { padding: 9px 12px; }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: #6f6357; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(255,106,43,.18);
}
.field .is-invalid, .input.is-invalid { border-color: var(--bad); }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--ash-dim); font-size: .95rem; }
.check input { margin-top: .3em; accent-color: var(--ember); width: 16px; height: 16px; }

/* ---------- уведомления ---------- */

.toasts { position: fixed; top: 78px; right: 16px; z-index: 1500; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast-ff {
    display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
    background: var(--anvil-2); border: 1px solid var(--line); border-left: 4px solid var(--steel);
    border-radius: var(--r-ctl); padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.45); color: var(--ash); font-size: .97rem;
}
.toast-ff.success { border-left-color: var(--ok); }
.toast-ff.danger, .toast-ff.error { border-left-color: var(--bad); }
.toast-ff.warning { border-left-color: var(--brass); }
.toast-ff button { background: none; border: 0; color: var(--ash-dim); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 2px; }

/* ---------- подвал ---------- */

.site-footer { margin-top: 72px; background: var(--anvil); }
.site-footer .wrap { padding-top: 44px; padding-bottom: 36px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-size: .98rem; color: var(--ash-dim); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ash); opacity: .85; }
.site-footer a:hover { color: var(--ember-hi); opacity: 1; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; color: var(--ash-dim); font-size: .88rem; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- утилиты ---------- */

.stack > * + * { margin-top: 16px; }
.row-gap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- диалоги ---------- */
.ff-dialog { background: var(--anvil); color: var(--ash); border: 1px solid var(--line); border-radius: var(--r-plate); padding: 28px; width: min(460px, calc(100vw - 32px)); }
.ff-dialog::backdrop { background: rgba(10, 8, 6, .7); }

/* ---------- совместимость: страницы, которые ещё на Bootstrap-классах (reset_*, planner, roadmap, terms) ---------- */
.form-control, .form-control-glass, .form-select {
    background: var(--pit) !important; color: var(--ash) !important;
    border: 1px solid var(--line) !important; border-radius: var(--r-ctl) !important;
}
.form-control:focus, .form-control-glass:focus, .form-select:focus {
    border-color: var(--ember) !important; box-shadow: 0 0 0 3px rgba(255,106,43,.18) !important;
}
.form-label { color: var(--ash); font-weight: 600; font-size: .95rem; text-transform: none; }
.btn-primary { background: var(--ember); border-color: var(--ember); color: var(--iron); font-weight: 700; }
.btn-primary:hover { background: var(--ember-hi); border-color: var(--ember-hi); color: var(--iron); }
.modal-content { background: var(--anvil); border: 1px solid var(--line); }
.badge.bg-primary { background: var(--ember) !important; color: var(--iron); }

/* ---------- карточки серверов (из админки) ---------- */
.srv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.srv {
    position: relative; display: flex; flex-direction: column; gap: 10px;
    padding: 26px; background: var(--anvil); border: 1px solid var(--line); border-radius: var(--r-plate);
    overflow: hidden; transition: border-color .15s, transform .15s;
}
.srv::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--line); }
.srv.cooled::before { background: var(--steel); }
.srv.hot::before { background: linear-gradient(90deg, var(--brass), var(--ember)); height: 6px; }
.srv.hot { background: linear-gradient(180deg, rgba(255,106,43,.10), var(--anvil) 60%); }
.srv.cold { color: var(--ash-dim); }
.srv:hover { border-color: var(--ash-dim); transform: translateY(-2px); }
.srv .state { font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--ash-dim); }
.srv.hot .state { color: var(--ember-hi); }
.srv.cooled .state { color: var(--steel); }
.srv h3 { margin: 0; }
.srv h3 a { color: var(--ash); }
.srv-link::after { content: ""; position: absolute; inset: 0; }   /* вся карточка кликабельна */
.srv p { margin: 0; color: var(--ash-dim); font-size: .98rem; }
.srv.hot p { color: var(--ash); opacity: .9; }
.srv .foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .92rem; }
.srv .more { color: var(--brass); font-weight: 600; }
.srv:hover .more { color: var(--ember-hi); }

/* плавное затухание света горна внизу hero, чтобы не было резкой границы */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; background: linear-gradient(to bottom, transparent, var(--iron)); pointer-events: none; }
