/* Лендинг «Причал». Отдаёт сам Nginx (location для статики в nginx/site2.conf). */
:root {
    --bg: #0b1220;
    --bg-2: #0f182b;
    --surface: #131d33;
    --line: #22304d;
    --text: #e8edf6;
    --muted: #97a4bf;
    --accent: #f5b545;
    --accent-ink: #1a1305;
    --sea: #4fd1c5;
    --ok: #3ddc97;
    --warn: #f59e5b;
    --radius: 14px;
    --mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
code { font-family: var(--mono); font-size: .88em; color: var(--sea); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }

/* навигация */
.nav {
    position: sticky; top: 0; z-index: 10;
    background: rgba(11, 18, 32, .78);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav nav { display: flex; gap: 26px; align-items: center; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.nav nav a.pill {
    color: var(--text); padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
}
.nav nav a.pill:hover { border-color: var(--accent); }

.logo {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 1.15rem; text-decoration: none; letter-spacing: .2px;
}
.logo svg {
    width: 28px; height: 28px; fill: none; stroke: var(--accent);
    stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

/* первый экран */
.hero {
    position: relative; overflow: hidden;
    padding: 96px 0 104px;
    background:
        radial-gradient(600px 340px at 85% 10%, rgba(79, 209, 197, .16), transparent 70%),
        radial-gradient(700px 420px at 0% 100%, rgba(245, 181, 69, .12), transparent 70%),
        linear-gradient(var(--bg), var(--bg-2));
}
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

.eyebrow {
    display: inline-block; margin: 0 0 18px;
    color: var(--accent); font-size: .85rem; font-weight: 600;
    letter-spacing: .12em; text-transform: uppercase;
}
h1 {
    margin: 0 0 20px;
    font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.05; letter-spacing: -.02em;
}
.lead { margin: 0 0 32px; color: var(--muted); font-size: 1.15rem; max-width: 34em; }

.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
    display: inline-block; padding: 13px 24px; border-radius: 12px;
    font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .2s, border-color .2s;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 28px rgba(245, 181, 69, .25); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(245, 181, 69, .35); }
.btn.ghost { border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--sea); }

/* карточка-терминал */
.term {
    background: #0a101d; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
    overflow: hidden; font-family: var(--mono); font-size: .9rem;
}
.term-bar {
    display: flex; align-items: center; gap: 7px; padding: 12px 16px;
    background: #0e1626; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8rem;
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3654; }
.term-bar i:nth-child(1) { background: #f26d6d; }
.term-bar i:nth-child(2) { background: #f5c451; }
.term-bar i:nth-child(3) { background: #49d07f; }
.term-bar span { margin-left: 10px; }
.term dl {
    display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px;
    margin: 0; padding: 22px 22px 24px;
}
.term dt { color: var(--sea); }
.term dd { margin: 0; color: var(--text); word-break: break-word; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.term dd.ok { color: var(--ok); }
.term dd.warn { color: var(--warn); }
.dot {
    width: 9px; height: 9px; border-radius: 50%; background: var(--ok);
    box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .55); }
    70% { box-shadow: 0 0 0 9px rgba(61, 220, 151, 0); }
    100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); }
}
.bar { display: inline-block; width: 110px; height: 8px; border-radius: 99px; background: #1d2842; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sea), var(--accent)); border-radius: 99px; }

/* секции */
.section { padding: 92px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3.4vw, 2.4rem); letter-spacing: -.01em; }
.sub { margin: 0 0 40px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
    padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(245, 181, 69, .5); }
.card h3 { margin: 14px 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.ico {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
    background: rgba(245, 181, 69, .12); color: var(--accent); font-size: 1.25rem;
}

/* путь запроса */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.path li {
    position: relative; padding: 22px 20px; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); counter-increment: step;
}
.path li::before {
    content: counter(step); display: grid; place-items: center;
    width: 28px; height: 28px; margin-bottom: 12px; border-radius: 50%;
    background: var(--sea); color: #06231f; font-weight: 700; font-size: .85rem;
}
.path li:not(:last-child)::after {
    content: "→"; position: absolute; right: -15px; top: 50%; transform: translateY(-50%);
    color: var(--accent); font-size: 1.2rem; z-index: 1;
}
.path b { display: block; font-family: var(--mono); font-size: 1rem; margin-bottom: 6px; }
.path span { color: var(--muted); font-size: .93rem; }
.note { margin: 32px 0 0; color: var(--muted); }

/* база знаний */
details {
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    margin-bottom: 12px; transition: border-color .2s;
}
details[open] { border-color: rgba(79, 209, 197, .5); }
summary {
    cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; position: relative; font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
summary::after {
    content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
    color: var(--accent); font-size: 1.4rem; font-weight: 400; transition: transform .2s;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* подвал */
.foot { padding: 48px 0 56px; border-top: 1px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; }
.foot p { color: var(--muted); max-width: 30em; font-size: .93rem; margin: 12px 0 0; }
.foot-links { display: flex; gap: 22px; color: var(--muted); font-size: .93rem; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); }

/* адаптив */
@media (max-width: 900px) {
    .hero { padding: 64px 0 80px; }
    .hero-in { grid-template-columns: 1fr; gap: 40px; }
    .grid { grid-template-columns: 1fr 1fr; }
    .path { grid-template-columns: 1fr 1fr; }
    .path li:nth-child(2)::after { display: none; }
}
@media (max-width: 600px) {
    .wrap { padding: 0 16px; }
    .nav nav a:not(.pill) { display: none; }
    .grid, .path { grid-template-columns: 1fr; }
    .path li::after { display: none; }
    .section { padding: 64px 0; }
    .foot-in { flex-direction: column; }
    .term { font-size: .82rem; }
    .term dl { gap: 8px 14px; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
