/* ============================================================
   Claude Design System — общая стилевая основа
   Применяется на новых страницах студии (web-07+, articles 2026-05+)
   Палитра вдохновлена claude.ai (терракот + крем + тёплый серый)
   ============================================================ */
:root {
    /* Backgrounds */
    --c-bg:        #FAF9F5;       /* основной молочный фон */
    --c-bg-soft:   #F2EFE7;       /* подложка для секций */
    --c-paper:     #FFFFFF;       /* карточки */
    --c-paper-2:   #FBFAF6;       /* отступной paper */

    /* Text */
    --c-ink:       #1A1A1A;       /* заголовки, primary текст */
    --c-ink-2:     #2C2C2C;       /* body */
    --c-muted:     #6B6660;       /* подписи, secondary */
    --c-muted-2:   #948D85;       /* placeholder */

    /* Accent (Claude orange/terracotta) */
    --c-accent:    #D97757;
    --c-accent-2:  #C4623F;       /* hover/dark */
    --c-accent-soft:#F5DDD0;      /* фон-фон акцента */

    /* Borders */
    --c-border:    #E5E1D8;
    --c-border-2:  #D4CFC2;

    /* Misc */
    --c-shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.04);
    --c-shadow:    0 4px 14px rgba(26, 26, 26, 0.06);
    --c-shadow-lg: 0 18px 48px rgba(26, 26, 26, 0.08);

    --c-radius:    12px;
    --c-radius-lg: 20px;
    --c-radius-pill:100px;

    --c-font:      'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --c-font-display:'Tiempos Headline', 'Source Serif 4', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--c-font);
    background: var(--c-bg);
    color: var(--c-ink-2);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--c-accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--c-accent-2); }

/* ===== Typography ===== */
h1, h2, h3, h4 {
    font-family: var(--c-font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--c-ink);
}
h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 18px; }
h3 { font-size: clamp(20px, 2.2vw, 24px); margin-bottom: 12px; }
h4 { font-size: 18px; margin-bottom: 10px; }
p  { margin-bottom: 14px; color: var(--c-ink-2); }
ul, ol { padding-left: 22px; margin-bottom: 14px; color: var(--c-ink-2); }
li { margin-bottom: 6px; }
strong { font-weight: 600; color: var(--c-ink); }
hr { border: 0; height: 1px; background: var(--c-border); margin: 32px 0; }
small { color: var(--c-muted); font-size: 13px; }

/* ===== Layout helpers ===== */
.c-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.c-wrap-narrow { max-width: 740px; margin: 0 auto; padding: 0 24px; }
.c-section { padding: 80px 0; }
.c-section-sm { padding: 48px 0; }

/* ===== Header ===== */
.c-head {
    background: rgba(250, 249, 245, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--c-border);
    position: sticky; top: 0; z-index: 60;
}
.c-head-inner {
    display: flex; align-items: center; gap: 32px;
    height: 68px;
}
.c-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 17px;
    color: var(--c-ink);
}
.c-brand-mark {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: var(--c-accent);
    display: grid; place-items: center;
    color: #fff; font-weight: 700; font-size: 14px;
    font-family: var(--c-font);
}
.c-nav { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.c-nav a {
    color: var(--c-ink-2); font-size: 14px; font-weight: 500;
}
.c-nav a:hover { color: var(--c-accent); }

/* ===== Buttons ===== */
.c-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px;
    border: 1px solid transparent;
    border-radius: var(--c-radius);
    font-family: inherit;
    font-size: 14px; font-weight: 500;
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
    white-space: nowrap;
}
.c-btn-primary {
    background: var(--c-accent); color: #fff;
    box-shadow: var(--c-shadow-sm);
}
.c-btn-primary:hover {
    background: var(--c-accent-2);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--c-shadow);
}
.c-btn-ghost {
    background: var(--c-paper); color: var(--c-ink);
    border-color: var(--c-border);
}
.c-btn-ghost:hover { border-color: var(--c-border-2); color: var(--c-ink); }
.c-btn-lg { padding: 14px 28px; font-size: 15px; }

/* ===== Cards ===== */
.c-card {
    background: var(--c-paper);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius-lg);
    padding: 26px;
    box-shadow: var(--c-shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease;
}
.c-card:hover { box-shadow: var(--c-shadow); transform: translateY(-2px); }
.c-card-soft {
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius-lg);
    padding: 26px;
}

/* ===== Hero / page sections ===== */
.c-hero {
    padding: 56px 0 48px;
    background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-soft) 100%);
    border-bottom: 1px solid var(--c-border);
}
.c-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: var(--c-radius-pill);
    background: var(--c-accent-soft); color: var(--c-accent-2);
    font-size: 13px; font-weight: 500;
    margin-bottom: 20px;
}
.c-lead {
    font-size: 19px;
    color: var(--c-muted);
    line-height: 1.55;
    max-width: 680px;
    margin-top: 18px;
    margin-bottom: 28px;
}

/* ===== Footer ===== */
.c-foot {
    background: var(--c-bg-soft);
    border-top: 1px solid var(--c-border);
    padding: 44px 0 28px;
    margin-top: 80px;
    color: var(--c-muted);
    font-size: 14px;
}
.c-foot a { color: var(--c-muted); text-decoration: underline; text-underline-offset: 3px; }
.c-foot a:hover { color: var(--c-accent); }
.c-foot-cols {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 28px;
}
.c-foot-col h4 {
    font-family: var(--c-font);
    font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--c-ink); margin-bottom: 12px;
}
.c-foot-col ul { list-style: none; padding: 0; }
.c-foot-col li { margin-bottom: 8px; }
.c-foot-bar {
    border-top: 1px solid var(--c-border);
    padding-top: 18px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: 13px;
}

/* ===== Article (длинный контент) ===== */
.c-article {
    max-width: 720px; margin: 0 auto; padding: 0 24px;
}
.c-article > h2 { margin-top: 36px; }
.c-article > h3 { margin-top: 28px; }
.c-article > p, .c-article > ul, .c-article > ol { font-size: 17px; line-height: 1.7; }
.c-article blockquote {
    border-left: 3px solid var(--c-accent);
    padding-left: 20px;
    margin: 24px 0;
    color: var(--c-muted);
    font-style: italic;
}
.c-article .num {
    display: inline-block;
    padding: 2px 10px;
    margin-right: 10px;
    background: var(--c-accent-soft); color: var(--c-accent-2);
    border-radius: var(--c-radius-pill);
    font-size: 14px; font-weight: 600;
    font-family: var(--c-font);
    vertical-align: middle;
}
.c-article-meta {
    display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
    margin-bottom: 28px;
    color: var(--c-muted); font-size: 14px;
}
.c-article-meta .dot { width: 4px; height: 4px; background: var(--c-muted-2); border-radius: 50%; }
.c-article-toc {
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius-lg);
    padding: 18px 22px;
    margin: 28px 0;
}
.c-article-toc h4 {
    font-family: var(--c-font);
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em;
    color: var(--c-muted); margin-bottom: 10px;
}
.c-article-toc ol { padding-left: 18px; margin: 0; }
.c-article-toc li { margin-bottom: 4px; font-size: 14px; }

/* ===== Inline notes / call-out boxes ===== */
.c-note {
    background: var(--c-accent-soft);
    border-left: 3px solid var(--c-accent);
    border-radius: var(--c-radius);
    padding: 16px 20px;
    margin: 22px 0;
    font-size: 15px;
}
.c-note-title {
    font-weight: 600; color: var(--c-accent-2);
    display: block; margin-bottom: 6px;
}

/* ===== Demo landing helpers ===== */
.c-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.c-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 760px) {
    .c-grid-2, .c-grid-3 { grid-template-columns: 1fr; }
    .c-foot-cols { grid-template-columns: 1fr; gap: 24px; }
    .c-section { padding: 56px 0; }
    .c-hero { padding: 40px 0 36px; }
}

/* ===== Form ===== */
.c-form {
    display: grid; gap: 14px; max-width: 480px;
}
.c-form input, .c-form textarea, .c-form select {
    font-family: inherit; font-size: 15px;
    padding: 12px 16px;
    background: var(--c-paper);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    color: var(--c-ink-2);
    width: 100%;
    transition: border-color .15s ease;
}
.c-form input:focus, .c-form textarea:focus, .c-form select:focus {
    outline: none;
    border-color: var(--c-accent);
}
.c-form label {
    font-size: 13px; font-weight: 500; color: var(--c-muted);
    display: block; margin-bottom: 4px;
}

/* ===== Pricing tags ===== */
.c-price {
    display: inline-flex; align-items: baseline; gap: 4px;
    font-family: var(--c-font-display);
    font-weight: 600; color: var(--c-ink);
}
.c-price-num { font-size: 32px; }
.c-price-unit { font-size: 14px; color: var(--c-muted); font-family: var(--c-font); font-weight: 500; }

/* ===== FAQ ===== */
.c-faq details {
    background: var(--c-paper);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius);
    padding: 16px 22px;
    margin-bottom: 10px;
}
.c-faq summary {
    cursor: pointer;
    font-weight: 600; color: var(--c-ink);
    font-size: 16px;
    list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.c-faq summary::after {
    content: '+'; color: var(--c-muted);
    font-size: 22px; line-height: 1; font-weight: 300;
    transition: transform .2s ease;
}
.c-faq details[open] summary::after { content: '–'; }
.c-faq details > div { margin-top: 12px; color: var(--c-muted); font-size: 15px; line-height: 1.6; }

/* ===== Tag pills ===== */
.c-tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--c-bg-soft);
    border: 1px solid var(--c-border);
    border-radius: var(--c-radius-pill);
    font-size: 12px; font-weight: 500;
    color: var(--c-muted);
}
