/* ===========================================================================
   Агент Т (TRS Agent SE) — статический лендинг trastian.com.
   Тёмная инженерная тема в бренде «Трастиан AI».
   Только системные шрифты, без внешних ресурсов. Адаптив 360–1440.
   =========================================================================== */

:root {
    --bg: #080d14;
    --bg-soft: #0b1420;
    --panel: #101a26;
    --panel-2: #15212f;
    --line: #233245;
    --line-strong: #33475e;
    --ink: #eef2f7;
    --ink-soft: #c3ccd6;
    --muted: #9aa7b4;
    --amber: #f0a516;
    --amber-deep: #c98208;
    --amber-ink: #1d1400;
    --blue: #0d4e8a;
    --blue-bright: #3b8ad9;
    --danger: #ff9182;
    --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "Cascadia Mono", Consolas, "Courier New", monospace;
    --w: 1160px;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-pill: 999px;
    --shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
    --focus: 0 0 0 3px rgba(240, 165, 22, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 86px; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--ink-soft);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #ffc35c; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
h1, h2, h3, h4 {
    margin: 0 0 0.6em;
    color: var(--ink);
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
li + li { margin-top: 0.35rem; }
code { font-family: var(--font-mono); font-size: 0.92em; background: rgba(255, 255, 255, 0.07); padding: 0.1em 0.35em; border-radius: 4px; }
.container { width: min(100% - 2.5rem, var(--w)); margin-inline: auto; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 1000;
    background: var(--amber); color: var(--amber-ink); font-weight: 700;
    padding: 0.7rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.mono { font-family: var(--font-mono); }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 46px; padding: 0.7rem 1.3rem;
    border: 1px solid transparent; border-radius: var(--radius-sm);
    font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--amber); color: var(--amber-ink); }
.btn--primary:hover { background: #ffb733; color: var(--amber-ink); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.btn--ghost { background: transparent; color: var(--amber); border-color: transparent; }
.btn--ghost:hover { background: rgba(240, 165, 22, 0.12); color: #ffc35c; }
.btn--lg { min-height: 54px; padding: 0.85rem 1.7rem; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0.45rem 0.95rem; font-size: 0.9rem; }

/* ---------- Шапка ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(8, 13, 20, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
.header__inner { display: flex; align-items: center; gap: 1.2rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); flex: none; }
.brand__icon { width: 40px; height: 40px; border-radius: 10px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 800; letter-spacing: 0.1em; font-size: 1.02rem; color: var(--ink); }
.brand__tagline { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); font-weight: 700; }
.nav-desktop { margin-left: auto; }
.nav-desktop ul { display: flex; gap: 1.35rem; list-style: none; margin: 0; padding: 0; }
.nav-desktop li + li { margin: 0; }
.nav-desktop a {
    display: inline-block; padding: 0.4rem 0; color: var(--ink-soft); text-decoration: none;
    font-weight: 600; font-size: 0.92rem; border-bottom: 2px solid transparent;
}
.nav-desktop a:hover { color: #fff; border-bottom-color: var(--amber); }
.header__actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; }
.nav-desktop + .header__actions { margin-left: 0; }
.nav-mobile { display: none; margin-left: auto; position: relative; }
.nav-mobile summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem;
    min-height: 44px; padding: 0.4rem 0.8rem; border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm); color: var(--ink); font-weight: 700;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { border-color: var(--amber); }
.nav-mobile__panel {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px;
    background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius);
    padding: 0.8rem; box-shadow: var(--shadow);
}
.nav-mobile__panel a { display: block; padding: 0.55rem 0.6rem; border-radius: 6px; text-decoration: none; color: var(--ink-soft); font-weight: 600; }
.nav-mobile__panel a:hover { background: var(--panel-2); color: #fff; }
@media (max-width: 980px) {
    .nav-desktop { display: none; }
    .nav-mobile { display: block; }
    .header__actions { display: none; }
    .nav-mobile__panel .btn { margin-top: 0.5rem; }
    .nav-mobile__panel .btn + .btn { margin-top: 0.4rem; }
}
@media (min-width: 981px) { .nav-mobile { display: none; } }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: 4.2rem 0 4.6rem;
    background:
        radial-gradient(900px 420px at 82% -10%, rgba(240, 165, 22, 0.16), transparent 60%),
        radial-gradient(780px 520px at 8% 110%, rgba(13, 78, 138, 0.5), transparent 62%),
        linear-gradient(180deg, #0a121c 0%, var(--bg) 100%);
    border-bottom: 1px solid var(--line);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
    background-size: 54px 54px;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 3rem; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-bottom: 1rem; color: var(--amber); font-size: 0.78rem; font-weight: 800;
    letter-spacing: 0.18em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber); }
.hero__title { max-width: 15ch; margin-bottom: 1.1rem; }
.hero__lead { font-size: 1.14rem; max-width: 54ch; color: var(--ink-soft); margin-bottom: 1.7rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.6rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; list-style: none; margin: 0; padding: 0; font-size: 0.9rem; color: var(--muted); }
.hero__facts li { margin: 0; padding-left: 1.1rem; position: relative; }
.hero__facts li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 2px; background: var(--amber); }
.hero__media { margin: 0; }
.hero__shot {
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    background: var(--panel); box-shadow: var(--shadow); overflow: hidden;
}
.hero__shot img { width: 100%; height: auto; }
.hero__caption { margin-top: 0.6rem; font-size: 0.78rem; color: var(--muted); }
@media (max-width: 980px) {
    .hero { padding: 3rem 0 3.4rem; }
    .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
    .hero__title { max-width: 20ch; }
}

/* ---------- Полоса фактов ---------- */
.trust-strip { background: var(--panel); border-bottom: 1px solid var(--line); }
.trust-strip__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding: 1.1rem 0; }
.trust-strip__item { display: flex; gap: 0.6rem; align-items: baseline; font-size: 0.9rem; color: var(--ink-soft); }
.trust-strip__mark { color: var(--amber); font-weight: 800; }
@media (max-width: 900px) { .trust-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .trust-strip__grid { grid-template-columns: 1fr; } }

/* ---------- Секции ---------- */
.section { padding: 4.6rem 0; }
.section--alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding: 3.2rem 0; }
.section__head { max-width: 780px; margin-bottom: 2.4rem; }
.section__lead { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section__more { margin-top: 1.8rem; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; list-style: none; padding: 0; margin: 0; }
.cards li { margin: 0; }
.card {
    height: 100%; background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.35rem 1.3rem 1.2rem;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.card:hover { border-color: var(--line-strong); }
.card__num { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: var(--amber); letter-spacing: 0.12em; }
.card h3 { margin: 0; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.split__aside { display: grid; gap: 0.8rem; }
.mode-card { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.mode-card h3 { margin-bottom: 0.25rem; font-size: 1rem; }
.mode-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.check-list { list-style: none; padding: 0; margin: 1.1rem 0 0; }
.check-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.55rem; color: var(--ink-soft); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--amber); }

/* ---------- Шаги ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { margin: 0; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.3rem; height: 100%; }
.step__num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(240, 165, 22, 0.14); color: var(--amber); font-weight: 800; margin-bottom: 0.7rem; }
.step h3 { margin-bottom: 0.35rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Тарифы ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; align-items: stretch; }
.price-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
}
.price-card--featured { border-color: var(--amber); box-shadow: 0 18px 44px rgba(240, 165, 22, 0.12); }
.price-card__badge {
    position: absolute; top: -12px; left: 1.2rem; background: var(--amber); color: var(--amber-ink);
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.2rem 0.65rem; border-radius: var(--radius-pill);
}
.price-card h3 { margin-bottom: 0.35rem; }
.price-card__price { font-size: 1.7rem; font-weight: 800; color: var(--ink); line-height: 1.15; margin: 0.3rem 0 0.15rem; }
.price-card__note { color: var(--muted); font-size: 0.88rem; margin: 0 0 0.9rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.price-card li { position: relative; padding-left: 1.4rem; margin-bottom: 0.5rem; font-size: 0.92rem; color: var(--ink-soft); }
.price-card li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.5rem; height: 0.5rem; border-radius: 2px; background: var(--amber); }
.price-card .btn { margin-top: auto; }
.pricing-note { margin-top: 1.4rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); font-size: 0.9rem; color: var(--muted); }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- Галерея ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.gallery figure { margin: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery figure:first-child img { max-height: 560px; object-fit: cover; object-position: top; }
.gallery img { width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.gallery figcaption { padding: 0.85rem 1rem; font-size: 0.87rem; color: var(--muted); margin-top: auto; }
@media (max-width: 900px) { .gallery { grid-template-columns: 1fr; } .gallery figure:first-child img { max-height: none; object-fit: fill; } }

/* ---------- FAQ ---------- */
.faq { max-width: 900px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.15rem; margin-bottom: 0.7rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.faq summary::marker { color: var(--amber); }
.faq details[open] summary { margin-bottom: 0.6rem; }
.faq details p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- CTA ---------- */
.cta-band {
    background: linear-gradient(120deg, #0d4e8a 0%, #0a2f52 100%);
    border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
    padding: 3.2rem 0;
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 0.4rem; }
.cta-band p { margin: 0; color: #d3dfec; max-width: 62ch; }
.cta-band__actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- Подвал ---------- */
.site-footer { background: #05090f; border-top: 1px solid var(--line); padding: 3rem 0 2rem; font-size: 0.92rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer__brand { font-weight: 800; letter-spacing: 0.12em; color: var(--ink); margin-bottom: 0.5rem; }
.footer__lead { color: var(--muted); font-size: 0.88rem; max-width: 36ch; }
.footer__contacts { margin-top: 0.8rem; color: var(--muted); }
.footer__contacts a { color: var(--ink-soft); text-decoration: none; }
.footer__contacts a:hover { color: var(--amber); }
.footer__title { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.6rem; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col li + li { margin-top: 0.4rem; }
.footer__col a { color: var(--muted); text-decoration: none; }
.footer__col a:hover { color: var(--amber); }
.footer__bottom { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); }
.footer__bottom p { margin: 0; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Внутренние страницы / скачивание ---------- */
.page-hero { padding: 3.4rem 0 2.6rem; background: linear-gradient(180deg, #0a121c, var(--bg)); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 24ch; }
.page-hero__lead { color: var(--ink-soft); font-size: 1.1rem; max-width: 70ch; margin-bottom: 0; }
.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--muted); }
.download-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 2rem; align-items: start; }
.download-card { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.7rem; box-shadow: var(--shadow); }
.download-card h2 { margin-bottom: 0.4rem; }
.download-meta { list-style: none; padding: 0; margin: 1.2rem 0 1.5rem; }
.download-meta li { display: flex; justify-content: space-between; gap: 0.4rem 1rem; flex-wrap: wrap; padding: 0.55rem 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 0.92rem; }
.download-meta li:last-child { border-bottom: 0; }
.download-meta dt, .download-meta strong { color: var(--muted); font-weight: 600; flex: none; }
.download-meta span, .download-meta dd { color: var(--ink); text-align: right; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.hash {
    font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.5; color: var(--ink);
    background: #05090f; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 0.8rem 0.9rem; word-break: break-all; margin: 0.4rem 0 1.2rem;
}
.download-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; }
.download-side > * { min-width: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; min-width: 0; overflow-wrap: anywhere; }
.panel h2, .panel h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.panel p, .panel li { font-size: 0.92rem; color: var(--muted); }
.notice { border: 1px solid var(--line-strong); border-left: 3px solid var(--amber); border-radius: var(--radius-sm); background: var(--panel); padding: 1.1rem 1.2rem; font-size: 0.92rem; color: var(--ink-soft); }
.notice strong { color: var(--ink); }
.notice p { margin: 0 0 0.5rem; }
.notice p:last-child { margin-bottom: 0; }
.code-block {
    background: #05090f; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 0.9rem 1rem; overflow-x: auto; font-family: var(--font-mono);
    font-size: 0.82rem; color: var(--ink-soft); margin: 0.6rem 0 1rem; white-space: pre-wrap; word-break: break-word;
}
.req-list { list-style: none; padding: 0; margin: 0; }
.req-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 0.92rem; }
.req-list li:last-child { border-bottom: 0; }
.req-list span { color: var(--ink); font-weight: 600; }
.download-layout > * { min-width: 0; }
.download-card { overflow-wrap: anywhere; }
@media (max-width: 880px) { .download-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 404 ---------- */
.error-page { padding: 5rem 0; text-align: center; }
.error-page__code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--amber); line-height: 1; margin: 0 0 0.6rem; }
.error-page__actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- Доступность ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
.notice--spaced { margin-top: 1.2rem; }
