:root {
    --bg: #f7f8fa;
    --surface: #ffffff;
    --text: #101828;
    --text-muted: #5b6472;
    --accent: #3466f6;
    --border: #e5e8ee;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container { width: min(960px, 100% - 48px); margin: 0 auto; }

.site-header { padding: 28px 0 8px; }
.header-inner { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 9px;
    background: #0f172a; color: #fff; font-weight: 700; font-size: 18px;
}
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: .2px; }
.brand-tagline { margin: 0; color: var(--text-muted); font-size: 14px; }

.hero { padding: 44px 0 8px; }
.hero h1 { margin: 0 0 14px; font-size: clamp(26px, 4.5vw, 40px); line-height: 1.15; letter-spacing: -.01em; }
.lead { margin: 0; max-width: 720px; color: var(--text-muted); font-size: 17px; }

.products { padding: 36px 0 8px; }
.products h2, .about h2 { font-size: 22px; margin: 0 0 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: 10px;
}
.card h3 { margin: 0; font-size: 18px; }
.card p { margin: 0; color: var(--text-muted); font-size: 15px; flex-grow: 1; }

.btn {
    align-self: flex-start;
    display: inline-block;
    margin-top: 6px;
    padding: 9px 16px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.btn:hover { filter: brightness(1.07); }

.tag {
    align-self: flex-start;
    margin-top: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #eef1ff;
    color: #2f4bd8;
    font-size: 13px;
    font-weight: 600;
}

.about { padding: 36px 0; }
.about p { margin: 0; max-width: 720px; color: var(--text-muted); }

.site-footer { border-top: 1px solid var(--border); margin-top: 20px; padding: 22px 0 34px; }
.site-footer p { margin: 0; color: var(--text-muted); font-size: 14px; }

.mini-link {
    align-self: flex-start;
    margin-top: 2px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}
.mini-link:hover { color: var(--accent); border-color: var(--accent); }

.prose { padding: 34px 0 8px; max-width: 760px; }
.prose h1 { font-size: 26px; margin: 0 0 6px; }
.prose .meta { color: var(--text-muted); font-size: 14px; margin: 0 0 22px; }
.prose h2 { font-size: 19px; margin: 26px 0 10px; }
.prose p, .prose li { color: var(--text); font-size: 15.5px; }
.prose ul { margin: 8px 0; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose code { background: #eef1f6; padding: 1px 6px; border-radius: 6px; font-size: 14px; }
.back { display: inline-block; margin: 8px 0 0; color: var(--accent); text-decoration: none; font-size: 14px; }

/* --- страница продукта --- */
.product-hero { display: flex; gap: 22px; align-items: center; padding: 8px 0 6px; flex-wrap: wrap; }
.product-hero img.icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow); }
.product-hero h1 { margin: 0 0 6px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.01em; }
.product-hero .lead { font-size: 16px; margin: 0 0 10px; }
.product-hero .tag { margin-top: 0; }
.shots { display: flex; gap: 14px; overflow-x: auto; padding: 14px 4px 18px; scroll-snap-type: x mandatory; }
.shots img { width: 258px; height: auto; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); scroll-snap-align: start; flex: 0 0 auto; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; padding: 6px 0 10px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--text-muted); font-size: 14.5px; }
