/* ============================================================
   tools.ibt-spb.ru — открытый сайт инструментов IBT Engineering.
   ------------------------------------------------------------
   Дизайн-направление: editorial-engineering. Светлая палитра в
   общей семье с podbor.ibt-spb.ru (тёплый off-white + чёрный +
   золотой градиент-акцент), плюс инженерные детали — blueprint-
   сетка в фоне hero, моноширинные числа, технические маркеры.
   Шрифты системные (Bahnschrift / Noto Sans / IBM Plex Mono с
   fallback'ом), без подключения Google Fonts — open API без
   внешних зависимостей.
   ============================================================ */

:root {
    /* ── Поверхности ────────────────────────────────────────── */
    --bg:           #faf8f3;
    --bg-alt:       #ffffff;
    --bg-soft:      #f0ece2;
    --bg-deep:      #0d0d0d;
    --bg-deep-grad: linear-gradient(127.31deg, #1a1a1a 47.11%, #030303 114.52%);

    /* ── Шрифт-цвет ─────────────────────────────────────────── */
    --ink:          #0d0d0d;
    --ink-2:        #3a3a3a;
    --ink-3:        #6b6b6b;
    --ink-muted:    #9a9a9a;

    /* ── Линии и рамки ──────────────────────────────────────── */
    --line:         #e6e0d2;
    --line-2:       #d4ccba;
    --line-strong:  #0d0d0d;

    /* ── Акценты ────────────────────────────────────────────── */
    --gold:         linear-gradient(126.86deg, #dec273 9.99%, #6c4f25 115.22%);
    --gold-warm:    linear-gradient(180deg, rgba(255,250,159,.78) 4.17%, #ff9833 90.1%);
    --gold-soft:    rgba(222, 194, 115, .12);
    --gold-glow:    rgba(222, 194, 115, .35);
    --gold-mid:     #b89249;
    --gold-deep:    #6c4f25;

    /* ── Status ─────────────────────────────────────────────── */
    --ok:           #16a34a;
    --warn:         #d97706;
    --cool:         #0c5b8a;
    --cold:         #1e40af;
    --hot:          #b91c1c;

    /* ── Шрифты ─────────────────────────────────────────────── */
    --f-display:    'Bahnschrift', 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --f-body:       'Noto Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --f-mono:       'IBM Plex Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* ── Геометрия ──────────────────────────────────────────── */
    --container:    1280px;
    --r-1:          4px;
    --r-2:          10px;
    --r-3:          16px;
    --shadow-1:     0 2px 8px rgba(13,13,13,.04);
    --shadow-2:     0 12px 32px rgba(13,13,13,.08);
    --shadow-3:     0 24px 60px rgba(13,13,13,.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
    margin: 0; padding: 0;
    font-family: var(--f-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; }

.tnum, table, .stat-value, .data-cell {
    font-variant-numeric: tabular-nums;
}

::selection {
    background: var(--ink);
    color: var(--bg);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }

.gold {
    background: var(--gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  HEADER                                                  ║
   ╚══════════════════════════════════════════════════════════╝ */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(250, 248, 243, 0.92);
    border-bottom: 1px solid var(--line-strong);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.site-header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -5px;
    height: 4px;
    background-image: repeating-linear-gradient(
        to right,
        var(--line-strong) 0, var(--line-strong) 1px,
        transparent 1px, transparent 80px
    );
    opacity: .35;
    pointer-events: none;
}

.nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 16px 32px;
    max-width: 1600px;
    margin: 0 auto;
}
@media (max-width: 720px) {
    .nav { grid-template-columns: auto 1fr auto; gap: 12px; padding: 14px 20px; }
}

.brand {
    display: flex; align-items: center; gap: 12px;
    color: var(--ink);
}
.brand-mark {
    width: 44px; height: 44px;
    flex-shrink: 0;
}
.brand-text {
    display: flex; flex-direction: column; line-height: 1;
}
.brand-name {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.01em;
}
.brand-sub {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--ink-3);
    text-transform: uppercase;
    margin-top: 4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0; padding: 0;
    gap: 28px;
    justify-content: center;
    font-family: var(--f-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}
@media (max-width: 720px) {
    .nav-menu { display: none; }
}

.nav-menu a {
    position: relative;
    padding: 6px 0;
    color: var(--ink-2);
    transition: color .15s ease;
}
.nav-menu a:hover { color: var(--ink); }
.nav-menu a.active { color: var(--ink); }
.nav-menu a.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--gold);
}

.nav-actions {
    display: flex; align-items: center; gap: 10px;
    justify-self: end;
}

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-1);
    font-family: var(--f-display);
    font-size: 13px; font-weight: 600;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .25s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover {
    background: var(--ink); color: var(--bg);
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--ink); color: var(--bg);
    border-color: var(--ink);
}
.btn-primary:hover {
    background: var(--gold);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 12px 32px var(--gold-glow);
}

.btn-ghost {
    border-color: var(--line);
    color: var(--ink-2);
}
.btn-ghost:hover {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
    transform: none;
}

.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 16px 28px; font-size: 14px; }

/* ╔══════════════════════════════════════════════════════════╗
   ║  HERO                                                    ║
   ╚══════════════════════════════════════════════════════════╝ */
.hero {
    position: relative;
    padding: 100px 0 120px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) { .hero { padding: 64px 0 72px; } }

.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(13,13,13,0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(13,13,13,0.035) 1px, transparent 1px),
        linear-gradient(to right, rgba(13,13,13,0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(13,13,13,0.07) 1px, transparent 1px);
    background-size:
        10px 10px,
        10px 10px,
        80px 80px,
        80px 80px;
    background-position: 0 0;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    top: -10%; right: -10%;
    width: 60%; height: 80%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: end;
}
@media (min-width: 980px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        gap: 80px;
    }
}

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--ink-3);
    text-transform: uppercase;
    margin-bottom: 28px;
    padding: 6px 14px;
    background: rgba(13,13,13,.04);
    border: 1px solid var(--line);
    border-radius: 999px;
}
.hero-eyebrow .dot {
    width: 6px; height: 6px;
    background: var(--ok);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(22,163,74,.6);
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(22,163,74,.55); }
    70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
    100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}

.hero-title {
    font-family: var(--f-display);
    font-size: clamp(36px, 5.5vw, 72px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    max-width: 16ch;
}
.hero-title em {
    font-style: normal;
    background: var(--gold);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-lede {
    font-size: clamp(15px, 1.3vw, 18px);
    color: var(--ink-2);
    max-width: 56ch;
    margin: 0 0 36px;
    line-height: 1.6;
}
.hero-lede strong { color: var(--ink); font-weight: 600; }

.hero-cta {
    display: flex; flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}
.hero-meta-item {
    display: flex; flex-direction: column; gap: 4px;
}
.hero-meta-label {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.hero-meta-value {
    font-family: var(--f-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* Hero card — техническая карточка-предпросмотр */
.hero-card {
    position: relative;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    padding: 28px 28px 24px;
    box-shadow: var(--shadow-2);
}
.hero-card::before {
    content: '';
    position: absolute;
    top: -1px; left: 28px; right: 28px; height: 2px;
    background: var(--gold);
}

.hero-card-title-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 6px;
}
.hero-card-title {
    font-family: var(--f-display);
    font-size: 16px; font-weight: 700;
}
.hero-card-tag {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--ink-3);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 3px 8px;
}

.hero-card-sub {
    font-size: 13px;
    color: var(--ink-3);
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--line-2);
}

.hero-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}
.hero-card-cell {
    display: flex; flex-direction: column; gap: 4px;
}
.hero-card-cell-label {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--ink-3);
    letter-spacing: 0.04em;
}
.hero-card-cell-value {
    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.hero-card-cell-value.warm { color: var(--hot); }
.hero-card-cell-value.cool { color: var(--cold); }

.hero-card-foot {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--ink-3);
    display: flex; justify-content: space-between;
    letter-spacing: 0.03em;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  SECTION                                                 ║
   ╚══════════════════════════════════════════════════════════╝ */
.section {
    padding: 100px 0;
    border-top: 1px solid var(--line);
}
.section.section-tools {
    background: var(--bg-alt);
}
@media (max-width: 720px) { .section { padding: 64px 0; } }

.section-head {
    margin-bottom: 56px;
    max-width: 720px;
}
.section-eyebrow {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: 18px;
    display: inline-block;
}
.section-eyebrow::before {
    content: '— ';
    margin-right: 4px;
    color: var(--gold-mid);
}
.section-title {
    font-family: var(--f-display);
    font-size: clamp(28px, 3.4vw, 44px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
}
.section-lede {
    font-size: 16px;
    color: var(--ink-2);
    max-width: 60ch;
    line-height: 1.65;
    margin: 0;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  PLATFORM                                                ║
   ╚══════════════════════════════════════════════════════════╝ */
.platform-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 720px) {
    .platform-grid { grid-template-columns: repeat(3, 1fr); }
}

.platform-card {
    position: relative;
    padding: 28px 28px 32px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
    border-color: var(--line-2);
}
.platform-card.is-current {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--bg);
}
.platform-card.is-current .platform-card-domain { color: var(--bg); opacity: .9; }
.platform-card.is-current .platform-card-desc { color: rgba(255,255,255,.75); }
.platform-card.is-current .platform-card-tag {
    background: rgba(255,255,255,.08);
    color: var(--bg);
    border-color: rgba(255,255,255,.2);
}
.platform-card.is-current .platform-card-link {
    color: var(--bg);
}

.platform-card-tag {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
    padding: 4px 10px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 999px;
    margin-bottom: 18px;
}

.platform-card-name {
    font-family: var(--f-display);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}
.platform-card-domain {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--ink-3);
    margin-bottom: 18px;
}
.platform-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-2);
    margin: 0 0 20px;
}
.platform-card-link {
    font-family: var(--f-display);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    display: inline-flex; align-items: center; gap: 6px;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    transition: gap .2s ease;
}
.platform-card-link:hover { gap: 10px; }

/* ╔══════════════════════════════════════════════════════════╗
   ║  TOOLS                                                   ║
   ╚══════════════════════════════════════════════════════════╝ */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.tool-card {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 36px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    text-decoration: none;
    color: var(--ink);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.tool-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}
.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3);
}
.tool-card:hover::before { transform: scaleX(1); }

.tool-card-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.tool-card-num {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--ink-3);
    letter-spacing: 0.08em;
}

.tool-card-status {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    background: rgba(22,163,74,.08);
    color: var(--ok);
    border: 1px solid rgba(22,163,74,.2);
    border-radius: 999px;
}
.tool-card-status .dot {
    width: 6px; height: 6px;
    background: var(--ok);
    border-radius: 50%;
}

.tool-card-name {
    font-family: var(--f-display);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
}
.tool-card-source {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--gold-deep);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}
.tool-card-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-2);
    margin: 0 0 28px;
}

.tool-card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 14px;
    padding: 18px 0;
    border-top: 1px dashed var(--line-2);
    border-bottom: 1px dashed var(--line-2);
    margin-bottom: 24px;
}
.tool-card-stat {
    display: flex; flex-direction: column; gap: 2px;
}
.tool-card-stat-num {
    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.tool-card-stat-label {
    font-family: var(--f-mono);
    font-size: 10px;
    color: var(--ink-3);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tool-card-foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
}
.tool-card-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--f-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
}
.tool-card-link::after {
    content: '→';
    transition: transform .2s ease;
}
.tool-card:hover .tool-card-link::after { transform: translateX(4px); }

/* ╔══════════════════════════════════════════════════════════╗
   ║  TOOL HEAD                                               ║
   ╚══════════════════════════════════════════════════════════╝ */
.tool-head {
    position: relative;
    padding: 64px 0 56px;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.tool-head::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(13,13,13,0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(13,13,13,0.035) 1px, transparent 1px);
    background-size: 16px 16px;
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 90%);
    pointer-events: none;
}

.crumbs {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 8px;
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--ink-3);
    margin-bottom: 28px;
}
.crumbs a { color: var(--ink-3); transition: color .15s ease; }
.crumbs a:hover { color: var(--ink); }
.crumbs-sep { color: var(--ink-muted); }
.crumbs-current { color: var(--ink); }

.tool-head-grid {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: end;
}
@media (min-width: 880px) {
    .tool-head-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 48px; }
}

.tool-head h1 {
    font-family: var(--f-display);
    font-size: clamp(32px, 4.4vw, 56px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    max-width: 18ch;
}
.tool-head-sub {
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 56ch;
    margin: 0;
}

.tool-head-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 20px 24px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--r-2);
    margin: 0;
}
.tool-head-meta dt {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--ink-3);
    text-transform: uppercase;
}
.tool-head-meta dd {
    font-family: var(--f-display);
    font-size: 18px;
    font-weight: 700;
    margin: 4px 0 0;
    color: var(--ink);
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  CLIMATE SEARCH                                          ║
   ╚══════════════════════════════════════════════════════════╝ */
.climate {
    padding: 56px 0 96px;
}

.climate-search {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    box-shadow: var(--shadow-1);
    margin-bottom: 32px;
}
@media (min-width: 720px) {
    .climate-search { grid-template-columns: 2fr 1fr; gap: 20px; }
}

.field {
    display: flex; flex-direction: column; gap: 8px;
}
.field-label {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.field-input,
.field-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--r-1);
    font-family: var(--f-body);
    font-size: 15px;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field-input:focus,
.field-select:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(13,13,13,.08);
}
.field-input::placeholder { color: var(--ink-muted); }
.field-hint {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--ink-3);
    letter-spacing: 0.02em;
    grid-column: 1 / -1;
    margin: 0;
}

.results {
    display: flex; flex-direction: column;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-2);
    overflow: hidden;
    margin-bottom: 32px;
}
.results-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 14px 20px;
    background: var(--bg-alt);
    cursor: pointer;
    transition: background .12s ease;
}
.results-row:hover { background: var(--gold-soft); }
.results-row.is-active {
    background: var(--ink);
    color: var(--bg);
}
.results-row.is-active .results-region,
.results-row.is-active .results-temp {
    color: rgba(255,255,255,.75);
}
.results-name {
    font-family: var(--f-display);
    font-size: 15px;
    font-weight: 600;
}
.results-region {
    font-family: var(--f-mono);
    font-size: 12px;
    color: var(--ink-3);
}
.results-temp {
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--ink-2);
    font-variant-numeric: tabular-nums;
}

.results-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--ink-3);
    font-family: var(--f-mono);
    font-size: 13px;
}
.results-error {
    padding: 20px;
    text-align: center;
    color: var(--hot);
    background: rgba(185,28,28,.05);
    border: 1px solid rgba(185,28,28,.18);
    border-radius: var(--r-2);
    font-family: var(--f-body);
    font-size: 14px;
    margin-bottom: 32px;
}

/* Detail card */
.detail {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    overflow: hidden;
    box-shadow: var(--shadow-1);
}
.detail-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 16px;
    padding: 28px 32px 24px;
    background: var(--ink);
    color: var(--bg);
    flex-wrap: wrap;
}
.detail-head h2 {
    font-family: var(--f-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin: 0;
}
.detail-head-sub {
    font-family: var(--f-mono);
    font-size: 12px;
    color: rgba(255,255,255,.65);
    margin-top: 4px;
    letter-spacing: 0.04em;
}
.detail-actions {
    display: flex; gap: 8px;
    flex-wrap: wrap;
}
.detail-actions .btn {
    background: rgba(255,255,255,.08);
    color: var(--bg);
    border-color: rgba(255,255,255,.2);
}
.detail-actions .btn:hover {
    background: var(--bg);
    color: var(--ink);
    border-color: var(--bg);
    transform: none;
}

.params {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 720px) {
    .params { grid-template-columns: repeat(2, 1fr); }
}

.param {
    display: flex; flex-direction: column; gap: 6px;
    padding: 22px 28px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
}
.param:nth-child(2n) { border-right: 0; }
@media (max-width: 719px) {
    .param { border-right: 0; }
}
.param-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }

.param-label {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    line-height: 1.4;
}
.param-value {
    font-family: var(--f-display);
    font-variant-numeric: tabular-nums;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.param-unit {
    font-family: var(--f-mono);
    font-size: 13px;
    color: var(--ink-3);
    letter-spacing: 0.04em;
}
.param-note {
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--ink-3);
    line-height: 1.4;
}
.param-value.cold { color: var(--cold); }
.param-value.hot { color: var(--hot); }
.param-value.cool { color: var(--cool); }
.param-value.muted { color: var(--ink-muted); font-weight: 500; }

.source {
    margin: 32px 32px 32px;
    padding: 22px 28px;
    background: var(--bg-soft);
    border-left: 3px solid var(--gold-mid);
    border-radius: 0 var(--r-2) var(--r-2) 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ink-2);
}
.source strong { color: var(--ink); font-weight: 700; }

/* ╔══════════════════════════════════════════════════════════╗
   ║  FOOTER                                                  ║
   ╚══════════════════════════════════════════════════════════╝ */
.site-footer {
    background: var(--bg-deep-grad);
    color: rgba(255,255,255,.7);
    padding: 64px 0 40px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (min-width: 720px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 56px; }
}

.footer-col h3 {
    font-family: var(--f-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.4);
    margin: 0 0 16px;
    font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
    font-family: var(--f-display);
    font-size: 14px;
    color: rgba(255,255,255,.78);
    transition: color .15s ease;
}
.footer-col a:hover { color: #fff; }

.footer-brand {
    display: flex; flex-direction: column; gap: 14px;
}
.footer-brand-name {
    font-family: var(--f-display);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}
.footer-brand-tag {
    font-family: var(--f-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,.5);
}
.footer-brand-desc {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,.65);
    max-width: 42ch;
}

.footer-bottom {
    display: flex; flex-wrap: wrap; gap: 12px 28px;
    justify-content: space-between;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,.1);
    font-family: var(--f-mono);
    font-size: 12px;
    color: rgba(255,255,255,.4);
    letter-spacing: 0.02em;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  Animations                                              ║
   ╚══════════════════════════════════════════════════════════╝ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
.reveal { animation: fadeUp .7s both; }
.reveal-1 { animation-delay: .05s; }
.reveal-2 { animation-delay: .15s; }
.reveal-3 { animation-delay: .25s; }
.reveal-4 { animation-delay: .35s; }
.reveal-5 { animation-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .dot { animation: none !important; transition: none !important; }
}

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