/* ═══════════════════════════════════════════════════
   rutsinskaya.ru — темный операторский слой (главная + блог)
   Наследник RUTSINSKAYA.OS: та же выправка, но без эффектов.
   Полная матрица с терминалом и глитчем живет в /os.
   ВАЖНО: палитра намеренно НЕ совпадает ни со школой «Контекст»
   (бумага + терракота + серифы), ни с rutsinskaya.pro.
   ═══════════════════════════════════════════════════ */

:root {
    --bg: #14161a;
    --bg-lift: #191c21;
    --bg-card: #1c2026;
    --text: #e8e6e1;
    --text-soft: #a8a9a6;
    --muted: #7d8288;
    --accent: #7aa2c4;
    --accent-dim: rgba(122,162,196,0.16);
    --line: #262a30;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 36px; padding-right: 36px; }
.narrow { max-width: 740px; margin: 0 auto; padding-left: 36px; padding-right: 36px; }

a { color: var(--text); text-decoration: none; }

/* Служебная подпись: моно, вразрядку, капсом — язык OS */
.tag {
    font-family: var(--mono); font-size: 11px; font-weight: 400;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}

/* ═══ Шапка ═══ */
.topnav {
    border-bottom: 1px solid var(--line);
    background: rgba(20,22,26,0.9);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 50;
}
.topnav-inner {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 1120px; margin: 0 auto;
    padding: 16px 36px;
}
.topnav-name {
    font-family: var(--mono); font-size: 12px; font-weight: 500;
    letter-spacing: 0.2em; text-transform: uppercase; color: var(--text);
}
.topnav-links {
    display: flex; gap: 26px;
    font-family: var(--mono); font-size: 11.5px;
    letter-spacing: 0.12em; text-transform: uppercase;
}
.topnav-links a { color: var(--muted); transition: color 0.2s; }
.topnav-links a:hover, .topnav-links a.active { color: var(--accent); }

/* ═══ Первый экран ═══ */
.hero { padding-top: 92px; padding-bottom: 76px; }
.hero-inner { display: grid; grid-template-columns: 1fr 280px; gap: 64px; align-items: center; }
.hero h1 {
    font-size: clamp(40px, 5.6vw, 68px); font-weight: 200;
    line-height: 1.04; letter-spacing: -0.025em; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-rule { width: 64px; height: 1px; background: var(--accent); margin-bottom: 20px; }
.hero-tagline {
    font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em;
    color: var(--text-soft); margin-bottom: 32px;
}
.hero-lead { font-size: 18px; line-height: 1.72; color: var(--text-soft); max-width: 38em; font-weight: 300; }
.hero-lead p + p { margin-top: 15px; }
.hero-photo {
    width: 280px; height: 350px; object-fit: cover;
    filter: grayscale(100%) contrast(1.06) brightness(0.92);
    border-radius: 2px;
}
.anchor-line {
    margin-top: 30px; padding-left: 18px;
    border-left: 1px solid var(--accent);
    font-family: var(--mono); font-size: 11.5px; line-height: 1.8;
    color: var(--muted); max-width: 44em;
}
.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.btn {
    display: inline-block; padding: 13px 26px;
    font-family: var(--mono); font-size: 11.5px;
    letter-spacing: 0.14em; text-transform: uppercase;
    border: 1px solid var(--line); border-radius: 2px;
    transition: all 0.25s;
}
.btn--solid { background: var(--accent); border-color: var(--accent); color: #10131a; font-weight: 500; }
.btn--solid:hover { background: #8fb4d4; border-color: #8fb4d4; }
.btn--ghost { color: var(--text-soft); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ═══ Секции ═══ */
section { padding-top: 62px; padding-bottom: 62px; border-top: 1px solid var(--line); }
.sec-label { margin-bottom: 30px; }

/* Чем занимаюсь — нумерованные строки, как модули в OS */
.rows { border-top: 1px solid var(--line); }
.row-item {
    display: grid; grid-template-columns: 62px 1fr 150px; gap: 26px; align-items: start;
    padding-top: 26px; padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
    transition: background 0.25s, padding-left 0.25s;
}
.row-item:hover { background: var(--bg-lift); padding-left: 12px; }
.row-num { font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 7px; }
/* span'ы внутри ссылки-строки: без display:block заголовок слипается с текстом */
.row-title {
    display: block; font-size: 25px; font-weight: 300;
    letter-spacing: -0.012em; margin-bottom: 8px; transition: color 0.2s;
}
.row-item:hover .row-title { color: var(--accent); }
.row-text { display: block; font-size: 15px; line-height: 1.65; color: var(--text-soft); max-width: 46em; }
.row-link {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
    color: var(--muted); padding-top: 9px; text-align: right;
}
.row-item:hover .row-link { color: var(--accent); }

/* Блог-лента */
.posts { border-top: 1px solid var(--line); }
.post-row {
    display: grid; grid-template-columns: 150px 1fr; gap: 26px;
    padding-top: 26px; padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
    transition: background 0.25s, padding-left 0.25s;
}
.post-row:hover { background: var(--bg-lift); padding-left: 12px; }
.post-date {
    display: block; font-family: var(--mono); font-size: 11.5px;
    letter-spacing: 0.06em; color: var(--muted); padding-top: 8px;
}
.post-title {
    display: block; font-size: 26px; font-weight: 300;
    line-height: 1.28; letter-spacing: -0.014em; margin-bottom: 8px;
    transition: color 0.2s;
}
.post-row:hover .post-title { color: var(--accent); }
.post-excerpt { display: block; font-size: 15px; color: var(--text-soft); line-height: 1.62; max-width: 48em; }
.posts-more { margin-top: 28px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; }
.posts-more a { color: var(--accent); }
.posts-empty { color: var(--muted); font-size: 15px; padding-top: 24px; }

/* Пресса */
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.press-card {
    display: block; padding: 24px;
    background: var(--bg-card); border: 1px solid var(--line); border-radius: 3px;
    transition: border-color 0.25s, transform 0.25s;
}
.press-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.press-card .src {
    display: block; font-family: var(--mono); font-size: 10.5px;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 12px;
}
.press-card .quote { display: block; font-size: 15px; line-height: 1.6; color: var(--text-soft); }
.press-after { margin-top: 26px; font-size: 15px; color: var(--text-soft); }
.press-after a { color: var(--accent); }

/* Контакты */
.contacts-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px 30px; font-size: 15px;
}
.contacts-row span { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.contacts-row a { display: block; margin-top: 4px; font-family: var(--sans); font-size: 16px; color: var(--text); letter-spacing: 0; text-transform: none; transition: color 0.2s; }
.contacts-row a:hover { color: var(--accent); }

/* ═══ Подвал ═══ */
.foot { border-top: 1px solid var(--line); padding-top: 42px; padding-bottom: 58px; }
.foot-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.foot-note { font-family: var(--mono); font-size: 11px; line-height: 1.85; color: var(--muted); max-width: 44em; }
.os-link {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-soft); border: 1px solid var(--line); border-radius: 2px;
    padding: 11px 18px; transition: all 0.25s; white-space: nowrap;
}
.os-link:hover { border-color: var(--accent); color: var(--accent); }

/* ═══ Статья ═══ */
.article-head { padding-top: 74px; padding-bottom: 32px; }
.article-meta { margin-bottom: 20px; }
.article-head h1 {
    font-size: clamp(33px, 4.6vw, 52px); font-weight: 200;
    line-height: 1.12; letter-spacing: -0.022em;
}
.article-lead { margin-top: 22px; font-size: 20px; line-height: 1.62; color: var(--text-soft); font-weight: 300; }
.article-body { padding-bottom: 54px; font-size: 18px; line-height: 1.8; color: #dedcd7; }
.article-body p { margin-bottom: 22px; }
.article-body strong { color: var(--text); font-weight: 500; }
.article-body h2 {
    font-size: 29px; font-weight: 300; line-height: 1.25;
    letter-spacing: -0.015em; margin: 48px 0 16px; color: var(--text);
}
.article-body h3 { font-size: 20px; font-weight: 500; margin: 34px 0 12px; }
.article-body ul, .article-body ol { margin: 0 0 22px 22px; }
.article-body li { margin-bottom: 9px; }
.article-body blockquote {
    margin: 32px 0; padding: 6px 0 6px 24px;
    border-left: 2px solid var(--accent);
    font-size: 21px; font-weight: 300; line-height: 1.55; color: var(--text);
}
.article-body a { color: var(--accent); border-bottom: 1px solid var(--accent-dim); }
.article-body a:hover { border-bottom-color: var(--accent); }
.article-body img { max-width: 100%; height: auto; border-radius: 3px; margin: 26px 0; }
.article-body code {
    font-family: var(--mono); font-size: 0.86em;
    background: var(--bg-card); padding: 2px 6px; border-radius: 2px; color: var(--accent);
}
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 42px 0; }
.article-foot {
    border-top: 1px solid var(--line);
    padding-top: 30px; padding-bottom: 68px;
    font-size: 15px; color: var(--text-soft); line-height: 1.7;
}
.article-foot a { color: var(--accent); }
.article-foot .sig { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 16px; line-height: 1.8; }
.back-link { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

/* ═══ Адаптив ═══ */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 34px; }
    .hero-photo { width: 190px; height: 238px; order: -1; }
    .hero { padding-top: 54px; padding-bottom: 48px; }
    section { padding-top: 46px; padding-bottom: 46px; }
    .row-item { grid-template-columns: 46px 1fr; gap: 18px; }
    .row-link { grid-column: 2; text-align: left; padding-top: 12px; }
}
@media (max-width: 620px) {
    body { font-size: 16px; }
    .wrap, .narrow { padding-left: 22px; padding-right: 22px; }
    .topnav-inner { padding: 14px 22px; }
    .topnav-links { gap: 15px; font-size: 10.5px; letter-spacing: 0.08em; }
    .post-row { grid-template-columns: 1fr; gap: 8px; }
    .post-date { padding-top: 0; }
    .post-title { font-size: 23px; }
    .article-body { font-size: 17px; }
    .foot-inner { flex-direction: column; align-items: flex-start; }
}
