:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --bg: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-muted: #64748b;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

/* ── NAVBAR ── */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-brand { font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.nav-links { display: flex; gap: 0.5rem; flex: 1; }
.nav-links a { padding: 0.4rem 0.75rem; border-radius: 6px; text-decoration: none; color: var(--text-muted); font-size: 0.9rem; }
.nav-links a:hover, .nav-links a.active { background: #eff6ff; color: var(--primary); }
.nav-links a.logout { margin-left: auto; color: var(--danger); }
.nav-user { font-size: 0.85rem; color: var(--text-muted); }

/* ── CONTAINER ── */
.container { max-width: 1100px; margin: 0 auto; padding: 2rem; }

/* ── PAGE HEADER ── */
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 1.75rem; font-weight: 700; }
.page-header p { color: var(--text-muted); margin-top: 0.25rem; }

/* ── CARDS ── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
}
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: box-shadow 0.15s, transform 0.15s;
    cursor: pointer;
}
.card-link:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.card h2 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }
.card-btn { display: inline-block; margin-top: 1rem; color: var(--primary); font-size: 0.9rem; font-weight: 600; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.15s;
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-secondary:hover:not(:disabled) { background: #cbd5e1; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.8rem; }
.btn-full { width: 100%; text-align: center; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── LOGIN ── */
.login-body { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%); }
.login-card { background: white; border-radius: 16px; padding: 2.5rem; width: 100%; max-width: 400px; box-shadow: 0 8px 40px rgba(0,0,0,0.08); }
.login-logo { width: 56px; height: 56px; background: var(--primary); border-radius: 14px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 1.2rem; margin: 0 auto 1rem; }
.login-title { text-align: center; font-size: 1.5rem; font-weight: 700; }
.login-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 1.5rem; }

/* ── FORMS ── */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; font-weight: 500; }
input[type="text"], input[type="password"], select {
    width: 100%; padding: 0.6rem 0.9rem; border: 1px solid var(--border);
    border-radius: 8px; font-size: 0.95rem; outline: none;
    transition: border-color 0.15s;
}
input:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #dbeafe; }

/* ── ALERTS ── */
.alert { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.9rem; }
.alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

/* ── SCRIPTS ── */
.script-controls { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.script-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    white-space: pre-wrap;
    line-height: 1.7;
    font-size: 0.95rem;
}
.loading { display: flex; align-items: center; gap: 1rem; color: var(--text-muted); padding: 2rem 0; }
.spinner {
    width: 24px; height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── CHAT ── */
.chat-layout { display: flex; flex-direction: column; height: calc(100vh - 56px - 4rem); }
.chat-header { margin-bottom: 1rem; }
.chat-header h1 { font-size: 1.5rem; }
.chat-header p { color: var(--text-muted); font-size: 0.9rem; }
.chat-messages {
    flex: 1;
    overflow-y: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 0.75rem;
}
.message { display: flex; }
.message-user { justify-content: flex-end; }
.message-bot { justify-content: flex-start; }
.message-bubble {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}
.message-user .message-bubble { background: var(--primary); color: white; border-radius: 12px 12px 2px 12px; }
.message-bot .message-bubble { background: var(--bg); border: 1px solid var(--border); border-radius: 12px 12px 12px 2px; }
.chat-input-area { display: flex; gap: 0.75rem; align-items: flex-end; }
.chat-input {
    flex: 1; padding: 0.7rem 1rem;
    border: 1px solid var(--border); border-radius: 8px;
    font-size: 0.95rem; outline: none;
}
.chat-textarea {
    resize: none; overflow-y: auto; min-height: 44px; max-height: 120px;
    font-family: inherit; line-height: 1.5;
}
.chat-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px #dbeafe; }

/* ── CHAT BOTTOM PANEL ── */
.chat-bottom-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ── MODEL SELECTOR ── */
.model-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.model-option {
    cursor: pointer;
    margin: 0;
}
.model-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.model-chip {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 2px solid var(--border);
    color: var(--text-muted);
    background: transparent;
    transition: all 0.15s;
    user-select: none;
}
.model-option:hover .model-chip {
    border-color: #94a3b8;
}
.model-option input[type="radio"]:checked ~ .model-chip-free {
    border-color: #64748b;
    color: var(--text);
    background: var(--bg);
}
.model-option input[type="radio"]:checked ~ .model-chip-openai {
    border-color: #10a37f;
    color: #10a37f;
    background: #ecfdf5;
}
.balance-badge {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 600;
    color: #10a37f;
    background: #ecfdf5;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    border: 1px solid #a7f3d0;
}
.balance-badge.balance-low {
    color: var(--danger);
    background: #fef2f2;
    border-color: #fecaca;
}
.chat-notice {
    text-align: center; font-size: 0.8rem;
    color: var(--warning); background: #fffbeb;
    border: 1px solid #fde68a; border-radius: 8px;
    padding: 0.5rem 1rem;
}
.chat-notice-action {
    display: flex; align-items: center; gap: 0.75rem; justify-content: center;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px;
    padding: 0.6rem 1rem; font-size: 0.85rem; color: var(--warning);
}

/* Typing dots */
.typing { display: flex; gap: 4px; align-items: center; padding: 1rem !important; }
.typing span { width: 7px; height: 7px; background: var(--text-muted); border-radius: 50%; animation: bounce 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

/* ── ADMIN ── */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; font-size: 0.9rem; }
.table th { text-align: left; padding: 0.6rem 0.75rem; background: var(--bg); border-bottom: 1px solid var(--border); font-weight: 600; }
.table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.badge { padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-admin { background: #ede9fe; color: #7c3aed; }
.badge-manager { background: #dbeafe; color: #1d4ed8; }
.badge-warning { background: #fef3c7; color: #92400e; }
.form-inline { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem; }
.form-inline input, .form-inline select { width: auto; flex: 1; min-width: 120px; }
.empty-state { color: var(--text-muted); font-style: italic; padding: 1rem 0; }

/* ── DIGEST ── */
.digest-section { margin-top: 2.5rem; }
.digest-section h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.digest-feed { display: flex; flex-direction: column; gap: 0; }
.digest-entry {
    display: flex; gap: 1rem; padding: 0.75rem 0;
    border-left: 2px solid var(--border); margin-left: 6px; padding-left: 1.25rem;
    position: relative;
}
.digest-dot {
    position: absolute; left: -5px; top: 1rem;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary);
}
.digest-title { font-weight: 600; font-size: 0.95rem; }
.digest-desc { color: var(--text-muted); font-size: 0.88rem; margin-top: 0.2rem; line-height: 1.5; }
.digest-meta { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.3rem; }

/* ── MODAL ── */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); display: flex;
    justify-content: center; align-items: center; z-index: 200;
}
.modal-content {
    background: var(--surface); border-radius: 16px;
    padding: 2rem; width: 100%; max-width: 520px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}
.modal-content h2 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.modal-content p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.modal-content textarea {
    width: 100%; padding: 0.6rem 0.9rem; border: 1px solid var(--border);
    border-radius: 8px; font-size: 0.95rem; resize: vertical; font-family: inherit;
}
.modal-content textarea:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px #dbeafe; }
.modal-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }

.alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ── CALCULATOR ── */
.calc-grid { display: flex; flex-direction: column; gap: 1.5rem; }
.calc-area-input {
    font-size: 1.5rem; font-weight: 700; text-align: center;
    max-width: 200px; padding: 0.75rem;
}
.calc-area-hint { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.25rem; }
.calc-services { display: flex; flex-direction: column; gap: 0; }
.calc-service-row {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 0.5rem; cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
}
.calc-service-row:last-child { border-bottom: none; }
.calc-service-row:hover { background: #f8fafc; }
.calc-service-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.calc-service-info { flex: 1; }
.calc-service-name { display: block; font-weight: 600; font-size: 0.95rem; }
.calc-service-desc { display: block; color: var(--text-muted); font-size: 0.82rem; margin-top: 0.15rem; }
.calc-service-price { font-weight: 600; font-size: 0.9rem; color: var(--primary); white-space: nowrap; }
.calc-total-card {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
    border: 2px solid var(--primary);
    position: sticky; bottom: 1rem;
}
.calc-total-header { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.calc-breakdown { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.75rem; }
.calc-line { display: flex; justify-content: space-between; font-size: 0.88rem; padding: 0.2rem 0; }
.calc-line span:last-child { font-weight: 600; }
.calc-empty { color: var(--text-muted); font-style: italic; font-size: 0.88rem; }
.calc-total-row {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 0.75rem; border-top: 2px solid var(--primary);
    font-size: 1.1rem; font-weight: 700;
}
.calc-total-value { font-size: 1.4rem; color: var(--primary); }
.calc-disclaimer { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.5rem; }

/* ── ЭТАЛОННЫЕ СКРИПТЫ ── */
.ref-meta {
    display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.5rem;
    color: var(--text-muted); font-size: 0.88rem;
}

.journey-card { background: linear-gradient(135deg, #f0f9ff 0%, #fef3c7 100%); }
.journey-card h2 { margin-bottom: 0.5rem; }
.journey-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.journey-flow {
    display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 0.5rem;
    align-items: stretch;
}
.journey-stage {
    background: var(--surface); border: 2px solid var(--border); border-radius: 12px;
    padding: 1rem; display: flex; flex-direction: column; gap: 0.4rem;
    transition: all 0.2s;
}
.journey-stage:hover { border-color: var(--primary); transform: translateY(-2px); }
.journey-emoji { font-size: 2rem; line-height: 1; }
.journey-label { font-weight: 700; font-size: 1.05rem; }
.journey-chip {
    display: inline-block; padding: 0.15rem 0.5rem; background: var(--primary);
    color: #fff; border-radius: 10px; font-size: 0.75rem; font-weight: 600; width: fit-content;
}
.journey-detail { font-size: 0.85rem; line-height: 1.4; color: var(--text); }
.journey-goal { font-size: 0.82rem; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 0.4rem; }
.journey-hook {
    font-size: 0.8rem; background: #fef3c7; padding: 0.4rem 0.5rem;
    border-radius: 6px; line-height: 1.4;
}
.journey-arrow {
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--primary); font-weight: 700;
}
.journey-principles { margin-top: 1rem; background: var(--surface); border-radius: 8px; padding: 0.75rem; }
.journey-principles summary { cursor: pointer; font-weight: 600; }
.journey-principles ul { margin-top: 0.75rem; padding-left: 1.5rem; line-height: 1.7; }

/* Tabs */
.ref-tabs {
    display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.5rem 0 1rem;
    border-bottom: 2px solid var(--border); padding-bottom: 0.5rem;
}
.ref-tab {
    padding: 0.6rem 1rem; background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px; cursor: pointer; font-size: 0.9rem; font-weight: 600;
    color: var(--text-muted); transition: all 0.15s;
}
.ref-tab:hover { border-color: var(--primary); color: var(--text); }
.ref-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Product hero */
.product-hero { background: linear-gradient(90deg, #eff6ff 0%, #fff 70%); }
.product-hero-main { display: flex; gap: 1rem; align-items: flex-start; }
.product-emoji { font-size: 3.5rem; line-height: 1; }
.product-tagline { color: var(--text-muted); font-style: italic; margin: 0.25rem 0 0.75rem; }
.product-kpi, .product-next { font-size: 0.9rem; margin: 0.25rem 0; }
.synthesis-note {
    background: #fef3c7; border-left: 3px solid var(--warning);
    padding: 0.6rem 0.9rem; border-radius: 6px; margin-top: 1rem; font-size: 0.88rem;
}
.scenarios-hint {
    background: #eff6ff; border-left: 3px solid var(--primary);
    padding: 0.6rem 0.9rem; border-radius: 6px; margin: 0.75rem 0; font-size: 0.9rem;
}

/* Packages grid */
.packages-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.75rem;
}
.package-card {
    border: 1px solid var(--border); border-radius: 8px; padding: 0.9rem;
    background: var(--bg); display: flex; flex-direction: column; gap: 0.3rem;
}
.package-card:hover { border-color: var(--primary); }
.package-name { font-weight: 700; font-size: 1.05rem; color: var(--primary); }
.package-price { font-weight: 600; font-size: 0.95rem; }
.package-term { font-size: 0.8rem; color: var(--text-muted); }
.package-content { font-size: 0.85rem; line-height: 1.5; color: var(--text); }

/* Stage cards */
.stage-card { margin-bottom: 0.75rem; }
.stage-header { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 0.75rem; }
.stage-number {
    flex-shrink: 0; width: 42px; height: 42px; background: var(--primary); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
}
.stage-title { margin: 0 0 0.25rem 0; font-size: 1.15rem; }
.stage-goal { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.stage-techniques { display: flex; gap: 0.3rem; flex-wrap: wrap; margin-top: 0.5rem; }
.tech-chip {
    display: inline-block; padding: 0.15rem 0.6rem; background: #eff6ff;
    border: 1px solid #bfdbfe; color: #1e40af; border-radius: 999px;
    font-size: 0.73rem; font-weight: 500;
}

details.stage-script, details.stage-branches, details.stage-pitfalls {
    margin: 0.5rem 0; padding: 0.65rem 0.9rem; border-radius: 6px;
}
details.stage-script { background: #f0fdf4; border: 1px solid #bbf7d0; }
details.stage-branches { background: #eff6ff; border: 1px solid #bfdbfe; }
details.stage-pitfalls { background: #fef2f2; border: 1px solid #fecaca; }

details summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; user-select: none; }
details[open] summary { margin-bottom: 0.5rem; }
.script-text {
    white-space: pre-wrap; line-height: 1.7; font-size: 0.93rem;
    background: var(--surface); padding: 0.9rem; border-radius: 6px;
}

/* Branches */
.branches-list { display: flex; flex-direction: column; gap: 0.75rem; }
.branch-item {
    background: var(--surface); border-radius: 6px; padding: 0.75rem;
    border-left: 3px solid var(--primary);
}
.branch-trigger { font-size: 0.88rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--text); }
.trigger-label { color: var(--danger); font-weight: 700; }
.response-label { color: var(--success); font-weight: 700; }
.branch-response-text {
    white-space: pre-wrap; line-height: 1.65; font-size: 0.9rem; margin-top: 0.25rem;
    padding-left: 0.5rem; border-left: 2px solid var(--success);
}

/* Objections */
.objection-filter { display: flex; gap: 0.4rem; margin: 1rem 0; align-items: center; flex-wrap: wrap; font-size: 0.88rem; }
.obj-filter {
    padding: 0.35rem 0.8rem; background: var(--bg); border: 1px solid var(--border);
    border-radius: 6px; cursor: pointer; font-size: 0.82rem;
}
.obj-filter.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.objections-list { display: flex; flex-direction: column; gap: 0.5rem; }
.objection-item {
    border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 1rem;
    background: var(--surface);
}
.objection-item summary { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: space-between; align-items: center; }
.obj-title { font-weight: 600; }
.obj-applicable { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.obj-body { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.obj-meaning {
    background: #fef3c7; padding: 0.6rem 0.8rem; border-radius: 6px;
    font-size: 0.88rem; margin-bottom: 0.75rem; line-height: 1.55;
}
.obj-response { margin-bottom: 0.9rem; padding-left: 0.75rem; border-left: 3px solid var(--primary); }
.obj-approach { font-weight: 600; color: var(--primary); margin-bottom: 0.25rem; font-size: 0.88rem; }
.obj-script { white-space: pre-wrap; line-height: 1.65; font-size: 0.9rem; }

/* Archetypes */
.archetype-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem; margin-top: 0.75rem;
}
.archetype-card {
    border: 1px solid var(--border); border-radius: 8px; padding: 1rem;
    background: var(--bg); display: flex; flex-direction: column; gap: 0.4rem;
}
.archetype-card h3 { margin: 0 0 0.25rem 0; color: var(--primary); font-size: 1.05rem; }
.archetype-row { font-size: 0.87rem; line-height: 1.5; }
.archetype-tip { background: #dbeafe; padding: 0.5rem; border-radius: 5px; margin-top: 0.3rem; }

/* Closing techniques */
.closing-list { display: flex; flex-direction: column; gap: 0.6rem; }
.closing-item { padding: 0.8rem 1rem; background: var(--bg); border-radius: 6px; border-left: 3px solid var(--success); }
.closing-name { font-weight: 700; font-size: 1rem; color: var(--primary); }
.closing-when { color: var(--text-muted); font-size: 0.82rem; margin: 0.15rem 0 0.4rem; font-style: italic; }
.closing-script { font-size: 0.92rem; line-height: 1.6; }

/* Vocab grid */
.vocab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; margin-top: 1rem; }
.phrase-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.phrase-list li {
    padding: 0.55rem 0.75rem; background: #f0fdf4; border-radius: 6px;
    font-size: 0.88rem; line-height: 1.5; border-left: 3px solid var(--success);
}
.phrase-forbidden li { background: #fef2f2; border-left-color: var(--danger); }
.text-muted { color: var(--text-muted); font-size: 0.88rem; }

@media (max-width: 1000px) {
    .journey-flow { grid-template-columns: 1fr; }
    .journey-arrow { transform: rotate(90deg); }
}

@media (max-width: 768px) {
    .admin-grid { grid-template-columns: 1fr; }
    .cards-grid { grid-template-columns: 1fr; }
    .message-bubble { max-width: 90%; }
    .calc-service-row { flex-wrap: wrap; }
    .calc-service-price { width: 100%; text-align: right; }
    .ref-tabs { gap: 0.25rem; }
    .ref-tab { padding: 0.45rem 0.7rem; font-size: 0.82rem; }
    .product-hero-main { flex-direction: column; }
    .product-emoji { font-size: 2.5rem; }
    .stage-header { flex-wrap: wrap; }
}
