/* ==========================================================================
   Мастерская дисков — прототип
   ========================================================================== */

:root {
    --bg: #f3f5f9;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --ink: #101828;
    --ink-2: #1d2939;
    --muted: #667085;
    --muted-2: #98a2b3;
    --line: #e4e7ec;
    --line-2: #eef1f5;
    --navy: #0b1220;
    --navy-2: #101a2c;
    --navy-3: #16233a;
    --accent: #f59e0b;
    --accent-2: #fbbf24;
    --accent-soft: #fff7e6;
    --blue: #2563eb;
    --blue-soft: #eef4ff;
    --green: #059669;
    --green-soft: #e9fbf3;
    --red: #dc2626;
    --red-soft: #fef2f2;
    --violet: #7c3aed;
    --violet-soft: #f5f0ff;
    --orange: #ea580c;
    --cyan: #0891b2;
    --teal: #0f766e;
    --radius: 16px;
    --radius-sm: 11px;
    --radius-lg: 24px;
    --shadow: 0 12px 32px rgba(16, 24, 40, .08);
    --shadow-sm: 0 2px 8px rgba(16, 24, 40, .05);
    --shadow-lg: 0 24px 60px rgba(16, 24, 40, .16);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
code, .mono { font-family: var(--mono); font-size: .92em; }
pre { font-family: var(--mono); }
::selection { background: #fde68a; color: #111; }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.narrow { width: min(820px, calc(100% - 48px)); margin: 0 auto; }

.icon { width: 20px; height: 20px; flex: none; }
.muted { color: var(--muted); }
.pre-line { white-space: pre-line; }
.text-green { color: var(--green); }
.text-blue { color: var(--blue); }
.text-amber { color: var(--orange); }
.text-red { color: var(--red); }

/* Buttons ------------------------------------------------------------------ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: #1a1200; box-shadow: 0 6px 18px rgba(245, 158, 11, .28); }
.btn-primary:hover { background: var(--accent-2); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: #cbd2dc; background: #fff; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(16, 24, 40, .05); color: var(--ink); }
.btn-soft-blue { background: var(--blue-soft); color: var(--blue); }
.btn-soft-blue:hover { background: #dfeaff; }
.btn-soft-violet { background: var(--violet-soft); color: var(--violet); }
.btn-soft-violet:hover { background: #ece2ff; }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 14px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    transition: background .15s, color .15s;
}
.icon-btn:hover { background: rgba(16, 24, 40, .06); color: var(--ink); }
.icon-btn .icon { width: 18px; height: 18px; }

.link-btn {
    display: inline;
    padding: 0;
    border: 0;
    background: none;
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.link-btn.small { font-size: 12px; color: var(--muted); }
.link-btn:hover { color: var(--ink); }

/* Badges ------------------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.badge .icon { width: 13px; height: 13px; }
.badge-gray { background: #f2f4f7; color: #475467; }
.badge-blue { background: #eaf2ff; color: #1d4ed8; }
.badge-indigo { background: #eef0ff; color: #4338ca; }
.badge-amber { background: #fff4d6; color: #b45309; }
.badge-cyan { background: #e6f8fd; color: #0e7490; }
.badge-orange { background: #fff1e6; color: #c2410c; }
.badge-lime { background: #f0fbd8; color: #4d7c0f; }
.badge-teal { background: #e6faf6; color: #0f766e; }
.badge-green { background: var(--green-soft); color: #047857; }
.badge-red { background: var(--red-soft); color: #b42318; }
.badge-rose { background: #fff1f3; color: #be123c; }
.badge-violet { background: var(--violet-soft); color: #6d28d9; }

.mode-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
}
.mode-chip .icon { width: 13px; height: 13px; }
.mode-auto { background: var(--blue-soft); color: var(--blue); }
.mode-manual { background: var(--violet-soft); color: var(--violet); }
.mode-none { background: #f2f4f7; color: var(--muted-2); }

/* Forms -------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field > span em { font-style: normal; font-weight: 400; color: var(--muted-2); }
.field input, .field select, .field textarea, .select, .filter-bar input, .filter-bar select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus, .select:focus {
    border-color: #f3b34c;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .16);
}
.field textarea { resize: vertical; min-height: 64px; }
.field.has-error input, .field.has-error textarea { border-color: #f04438; }
.field-error { color: #b42318; font-size: 12px; font-weight: 500; }
.field-hint { color: var(--muted-2); font-size: 12px; }
.select-sm { padding: 6px 9px; font-size: 12px; border-radius: 8px; width: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.span-2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.form-actions { display: flex; gap: 10px; align-items: center; }
.check-field { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); }
.check-field input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check-field a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* Flash / alerts ----------------------------------------------------------- */
.flash-stack { position: relative; z-index: 60; display: flex; flex-direction: column; gap: 8px; margin: 16px auto 0; }
.flash {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    border: 1px solid transparent;
    animation: flashIn .25s ease;
}
.flash-success { background: #ecfdf3; border-color: #b7ebc9; color: #05603a; }
.flash-error { background: #fef3f2; border-color: #fecdca; color: #912018; }
.flash-warning { background: #fffaeb; border-color: #fedf89; color: #93370d; }
.flash-info { background: #eff8ff; border-color: #b2ddff; color: #175cd3; }
.flash-close { border: 0; background: none; color: currentColor; opacity: .6; padding: 0; }
.flash-close:hover { opacity: 1; }
.flash-close .icon { width: 16px; height: 16px; }
@keyframes flashIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.alert { padding: 13px 16px; border-radius: 12px; font-size: 14px; }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert-error { background: #fef3f2; border: 1px solid #fecdca; color: #912018; }
.alert-warning { background: #fffaeb; border: 1px solid #fedf89; color: #93370d; }
.alert-wide { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.alert-wide .icon { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.alert-wide p { margin-top: 3px; font-size: 13px; }
.alert-wide code { background: rgba(0, 0, 0, .06); padding: 1px 5px; border-radius: 4px; }

/* Cards / utility ---------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-head h2 { font-size: 17px; letter-spacing: -.01em; }
.card-head p { margin-top: 3px; color: var(--muted); font-size: 13px; }
.count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #f2f4f7;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    vertical-align: middle;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-2);
}
.eyebrow.light { color: #b45309; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(245, 158, 11, .18); }
.section-lead { color: var(--muted); font-size: 15px; }
.section-subtitle { margin: 8px 0 14px; font-size: 15px; color: var(--ink-2); }
.empty-mini { display: flex; align-items: center; gap: 9px; padding: 16px; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 14px; }
.empty-mini .icon { width: 18px; height: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.back-link:hover { color: var(--ink); }
.back-link .icon { width: 15px; height: 15px; }
.table-wrap { overflow-x: auto; border-radius: 12px; }

/* ==========================================================================
   Публичная часть
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid rgba(228, 231, 236, .8);
    backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.brand, .auth-brand, .sidebar-brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(145deg, #1a2537, #0b1220);
    color: var(--accent-2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
    flex: none;
}
.brand-mark .icon { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; letter-spacing: -.01em; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: #b45309; }
.header-phone { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 10px; background: var(--accent-soft); color: #92400e; font-weight: 700; }
.header-phone .icon { width: 16px; height: 16px; }

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 520px at 78% -10%, rgba(245, 158, 11, .18), transparent 60%),
        radial-gradient(700px 420px at 8% 110%, rgba(37, 99, 235, .18), transparent 60%),
        linear-gradient(155deg, #0b1220 0%, #101b2e 50%, #0b1220 100%);
    color: #fff;
    padding: 74px 0 40px;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(700px 500px at 50% 0%, #000 20%, transparent 80%);
    pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-copy h1 { margin: 16px 0 18px; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
.hero-lead { max-width: 560px; color: #c4cdda; font-size: 17px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-actions .btn-outline { border-color: rgba(255,255,255,.22); color: #fff; }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px; color: #9fadc0; font-size: 13px; }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; }
.hero-points .icon { width: 16px; height: 16px; color: #34d399; }

.hero-art { position: relative; min-height: 390px; display: flex; align-items: center; justify-content: center; }
.wheel-visual { position: relative; width: 300px; height: 300px; display: flex; align-items: center; justify-content: center; }
.wheel-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 38% 30%, #475569 0%, #1e293b 42%, #0f172a 70%, #020617 100%);
    border: 8px solid #1e293b;
    box-shadow: inset 0 0 50px rgba(0,0,0,.7), 0 40px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08);
}
.wheel-ring::before {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,.12);
}
.wheel-ring::after {
    content: "";
    position: absolute;
    inset: 58px;
    border-radius: 50%;
    background: conic-gradient(from 20deg, #202b3d, #334155, #1c2536, #3b4a63, #202b3d);
    box-shadow: inset 0 0 30px rgba(0,0,0,.6);
}
.wheel-hub { position: relative; z-index: 2; width: 98px; height: 98px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 35% 30%, #64748b, #1e293b 70%); box-shadow: 0 14px 30px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.2); color: var(--accent-2); }
.wheel-hub .icon { width: 46px; height: 46px; }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(245, 158, 11, .28); }
.orbit-1 { inset: -26px; }
.orbit-2 { inset: -54px; border-style: dashed; opacity: .5; }
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 15px;
    border-radius: 14px;
    background: rgba(17, 27, 46, .82);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    animation: floatY 5s ease-in-out infinite;
}
.floating-card strong { display: block; font-size: 13px; }
.floating-card small { color: #90a0b7; font-size: 11px; }
.floating-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(245, 158, 11, .14); color: var(--accent-2); }
.floating-icon .icon { width: 19px; height: 19px; }
.card-a { left: -14px; bottom: 38px; }
.card-b { right: -6px; top: 24px; animation-delay: -2.4s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: 58px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    overflow: hidden;
}
.hero-stats > div { padding: 18px 22px; background: rgba(11, 18, 32, .35); }
.hero-stats strong { display: block; font-size: 22px; letter-spacing: -.02em; }
.hero-stats span { color: #93a3b8; font-size: 12px; }

.section { padding: 78px 0; }
.section-tight { padding-top: 40px; }
.section-soft { background: #eef1f6; }
.section-dark { background: linear-gradient(160deg, #0d1524, #101b2e); color: #fff; }
.section-head { max-width: 680px; margin: 0 auto 42px; text-align: center; }
.section-head.left { margin: 0 0 26px; text-align: left; }
.section-head h2 { margin: 12px 0 10px; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; letter-spacing: -.03em; }
.section-head p { color: var(--muted); font-size: 16px; }
.section-dark .section-head p, .section-dark .method-note { color: #9fadc0; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step-card { position: relative; padding: 24px 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: var(--accent-soft); color: #b45309; font-weight: 800; font-size: 14px; margin-bottom: 16px; }
.step-card h3 { font-size: 16px; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 13.5px; }

.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.method-card { position: relative; padding: 30px; border-radius: var(--radius-lg); background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); }
.method-card.recommended { background: linear-gradient(160deg, rgba(245,158,11,.14), rgba(245,158,11,.03)); border-color: rgba(245,158,11,.4); }
.method-tag { position: absolute; top: -12px; left: 28px; padding: 5px 11px; border-radius: 999px; background: var(--accent); color: #1a1200; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.method-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 13px; background: rgba(255,255,255,.08); color: var(--accent-2); margin-bottom: 18px; }
.method-icon .icon { width: 24px; height: 24px; }
.method-card h3 { font-size: 22px; margin-bottom: 9px; letter-spacing: -.02em; }
.method-card > p { color: #a9b6c7; font-size: 14px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.check-list li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: #c4cdda; }
.check-list .icon { width: 16px; height: 16px; color: #34d399; margin-top: 2px; flex: none; }
.method-note { text-align: center; margin-top: 24px; font-size: 13px; }

.faq-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 0; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 20px; color: #b45309; font-weight: 400; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 17px; color: var(--muted); font-size: 14px; }
.faq-list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.cta-band { padding: 0 0 70px; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 34px 40px; border-radius: var(--radius-lg); background: linear-gradient(120deg, #101b2e, #1b2a44); color: #fff; box-shadow: var(--shadow-lg); }
.cta-band h2 { font-size: 26px; letter-spacing: -.02em; }
.cta-band p { color: #a9b6c7; margin-top: 5px; font-size: 14px; }

.site-footer { background: #0b1220; color: #a9b6c7; padding: 48px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 32px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand { display: flex; gap: 12px; align-items: flex-start; }
.footer-brand .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
.footer-brand strong { color: #fff; font-size: 15px; }
.footer-brand p { font-size: 12.5px; margin-top: 3px; max-width: 300px; }
.footer-contacts { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.footer-contacts a { color: #fff; font-weight: 600; font-size: 15px; }
.footer-links { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 20px; font-size: 12px; color: #66758b; }

/* Клиентская страница ------------------------------------------------------ */
.client-hero { background: linear-gradient(160deg, #0b1220, #111d31 60%, #0b1220); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.client-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 380px at 85% 10%, rgba(245,158,11,.18), transparent 65%); }
.client-hero-grid { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.client-hero-copy h1 { margin: 14px 0 16px; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.03; letter-spacing: -.035em; }
.client-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; }
.client-chips > span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 9px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #d6dfeb; }
.client-chips .icon { width: 15px; height: 15px; color: var(--accent-2); }
.client-chips .plate { font-family: var(--mono); font-weight: 700; letter-spacing: .04em; color: #fff; }
.client-assurance { display: flex; flex-direction: column; gap: 7px; color: #9fadc0; font-size: 13px; }
.client-assurance span { display: flex; align-items: center; gap: 8px; }
.client-assurance .icon { width: 15px; height: 15px; color: #34d399; }
.direction-card { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); }
.direction-card-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.direction-card-head span { color: #93a3b8; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.direction-card-head strong { color: var(--accent-2); font-size: 15px; }
.direction-facts { display: flex; flex-direction: column; gap: 13px; padding: 16px 0 4px; }
.direction-facts > div { display: flex; justify-content: space-between; gap: 16px; }
.direction-facts dt { color: #93a3b8; font-size: 12.5px; }
.direction-facts dd { text-align: right; font-size: 13.5px; font-weight: 600; }
.direction-card-foot { display: flex; gap: 8px; padding-top: 14px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.1); color: #8b9bb0; font-size: 12px; }
.direction-card-foot .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; }

.booking-section { background: #eef1f6; }
.booking-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.booking-info h2 { margin: 12px 0 8px; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; }
.rules-list { list-style: none; display: flex; flex-direction: column; gap: 20px; margin: 26px 0; }
.rules-list li { display: flex; gap: 14px; }
.rule-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: #b45309; font-weight: 800; font-size: 13px; flex: none; }
.rules-list strong { font-size: 15px; }
.rules-list p { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.info-callout { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.info-callout.compact { margin-top: 18px; background: var(--surface-2); }
.callout-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: #b45309; flex: none; }
.callout-icon .icon { width: 18px; height: 18px; }
.info-callout strong { font-size: 14px; }
.info-callout p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.help-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 20px; padding: 18px 20px; border-radius: 14px; background: #101b2e; color: #fff; }
.help-card strong { font-size: 14px; }
.help-card p { color: #9fadc0; font-size: 12.5px; margin-top: 2px; }
.help-card .btn-outline { border-color: rgba(255,255,255,.24); color: #fff; flex: none; }

.booking-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.booking-card-head { margin-bottom: 22px; }
.booking-card-head h2 { margin: 6px 0 6px; font-size: 26px; letter-spacing: -.025em; }
.booking-card-head p { color: var(--muted); font-size: 13.5px; }
.appointment-banner { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; margin-bottom: 20px; border-radius: 14px; background: #ecfdf3; border: 1px solid #b7ebc9; color: #05603a; position: relative; }
.appointment-banner strong { font-size: 17px; }
.appointment-banner span { font-size: 13px; }
.appointment-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; margin-bottom: 2px; }
.appointment-badge .icon { width: 14px; height: 14px; }
.appointment-banner form { position: absolute; right: 16px; top: 16px; }

.booking-form { display: flex; flex-direction: column; gap: 24px; }
.form-section { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.form-section-title { font-size: 13px; font-weight: 700; color: var(--ink-2); letter-spacing: .01em; }
.method-options { display: flex; flex-direction: column; gap: 9px; }
.method-option { position: relative; cursor: pointer; }
.method-option input { position: absolute; opacity: 0; pointer-events: none; }
.method-option-body { display: flex; align-items: flex-start; gap: 12px; padding: 14px 15px; border: 1.5px solid var(--line); border-radius: 13px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.method-option input:checked + .method-option-body { border-color: var(--accent); background: #fffaf0; box-shadow: 0 0 0 3px rgba(245, 158, 11, .12); }
.method-option-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); color: #b45309; flex: none; }
.method-option-icon .icon { width: 19px; height: 19px; }
.method-option-body strong { display: block; font-size: 14px; }
.method-option-body small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; line-height: 1.4; }
.radio-dot { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #cbd5e1; margin-left: auto; flex: none; margin-top: 8px; position: relative; }
.method-option input:checked + .method-option-body .radio-dot { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px #fff; }

.date-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
.date-chip { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 76px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 11px; background: #fff; transition: border-color .15s, background .15s; }
.date-chip small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.date-chip strong { font-size: 14px; margin-top: 1px; }
.date-chip:hover { border-color: var(--accent); }
.date-chip.active { background: #101b2e; border-color: #101b2e; color: #fff; }
.date-chip.active small { color: #a9b6c7; }
.date-chip.is-full { opacity: .42; cursor: not-allowed; text-decoration: line-through; }
.inline-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.slot-option { position: relative; cursor: pointer; }
.slot-option input { position: absolute; opacity: 0; pointer-events: none; }
.slot-option > span { display: block; }
.slot-time { padding: 11px 12px 4px; border: 1.5px solid var(--line); border-radius: 11px 11px 0 0; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; background: #fff; }
.slot-time .icon { width: 15px; height: 15px; color: #b45309; }
.slot-note { padding: 0 12px 10px; border: 1.5px solid var(--line); border-top: 0; border-radius: 0 0 11px 11px; font-size: 11px; color: var(--muted); background: #fff; }
.slot-option input:checked ~ .slot-time { border-color: var(--accent); background: #fffaf0; }
.slot-option input:checked ~ .slot-note { border-color: var(--accent); background: #fffaf0; color: #b45309; }
.slot-option.is-disabled { opacity: .5; cursor: not-allowed; }
.form-footnote { color: var(--muted); font-size: 12px; text-align: center; margin-top: -8px; }
.empty-state { padding: 28px; text-align: center; border-radius: 14px; background: var(--surface-2); }
.empty-state p { color: var(--muted); margin: 6px 0 16px; }

/* Успех / ошибка / документы ----------------------------------------------- */
.success-hero { background: linear-gradient(160deg, #0b1220, #111d31); color: #fff; padding: 62px 0 46px; text-align: center; }
.success-check { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(52, 211, 153, .14); color: #34d399; margin-bottom: 18px; }
.success-check .icon { width: 28px; height: 28px; }
.success-hero h1 { margin: 12px 0 10px; font-size: clamp(32px, 4vw, 46px); letter-spacing: -.03em; }
.success-hero .hero-lead { margin: 0 auto; }
.success-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.success-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.success-card-head .muted { display: block; font-size: 12px; }
.success-card-head strong { display: block; font-size: 22px; letter-spacing: -.02em; margin-top: 2px; }
.success-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.success-facts dt { color: var(--muted); font-size: 12px; }
.success-facts dd { font-size: 14px; font-weight: 600; margin-top: 2px; }
.next-steps { padding: 22px 0 8px; }
.next-steps h3 { font-size: 16px; margin-bottom: 14px; }
.next-steps ol { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.next-steps li { display: flex; gap: 11px; align-items: flex-start; }
.next-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 8px; background: var(--accent-soft); color: #b45309; font-size: 12px; font-weight: 800; flex: none; }
.next-steps p { color: var(--muted); font-size: 13.5px; }
.success-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.appointment-cancel { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.error-section { min-height: 60vh; display: flex; align-items: center; }
.error-card { text-align: center; padding: 50px 30px; }
.error-code { font-size: 80px; font-weight: 800; letter-spacing: -.05em; color: var(--line); line-height: 1; }
.error-card h1 { margin: 12px 0 10px; font-size: 34px; letter-spacing: -.03em; }
.error-card p { color: var(--muted); }
.error-actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.prose { max-width: 760px; }
.prose h1 { font-size: 36px; letter-spacing: -.03em; margin: 12px 0 8px; }
.prose h2 { font-size: 19px; margin: 28px 0 8px; }
.prose p { color: #475467; margin-top: 6px; }
.prose .back-link { margin-top: 30px; }
.notice-card { text-align: center; padding: 44px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.notice-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green); margin-bottom: 16px; }
.notice-icon .icon { width: 26px; height: 26px; }
.notice-card h2 { font-size: 26px; }
.notice-card p { color: var(--muted); margin: 8px 0 20px; }

/* Авторизация -------------------------------------------------------------- */
.auth-page { min-height: 100vh; background: linear-gradient(155deg, #0b1220, #101b2e 55%, #0b1220); display: flex; align-items: center; justify-content: center; padding: 30px 18px; }
.auth-shell { width: min(430px, 100%); }
.auth-brand { color: #fff; margin-bottom: 22px; justify-content: center; }
.auth-brand small { display: block; color: #93a3b8; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.auth-brand strong { font-size: 17px; }
.auth-card { background: #fff; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 26px; letter-spacing: -.02em; }
.auth-card > .muted { margin: 6px 0 20px; font-size: 13.5px; }
.auth-card .btn-block { margin-top: 4px; }
.auth-footnote { color: #8494aa; font-size: 12px; text-align: center; margin-top: 16px; }

/* ==========================================================================
   Админка
   ========================================================================== */
body.admin { background: var(--bg); }
.admin-shell { min-height: 100vh; display: flex; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 258px;
    z-index: 50;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0b1220, #0e1828);
    color: #c4cdda;
    padding: 22px 16px 16px;
    border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar-brand { padding: 0 8px 22px; color: #fff; }
.sidebar-brand .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
.sidebar-brand strong { font-size: 14px; }
.sidebar-brand small { color: #74849a; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.sidebar-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; }
.sidebar-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: #a9b6c7; transition: background .15s, color .15s; }
.sidebar-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav a.active { background: rgba(245, 158, 11, .13); color: #fcd34d; box-shadow: inset 3px 0 0 var(--accent); }
.nav-icon { display: inline-flex; }
.nav-icon .icon { width: 18px; height: 18px; }
.nav-badge { margin-left: auto; min-width: 21px; height: 20px; padding: 0 6px; border-radius: 999px; background: rgba(245, 158, 11, .2); color: #fcd34d; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sidebar-foot { border-top: 1px solid rgba(255,255,255,.07); padding-top: 12px; margin-top: 12px; }
.sidebar-site-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: #74849a; font-size: 12px; border-radius: 8px; }
.sidebar-site-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.sidebar-site-link .icon { width: 15px; height: 15px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 2px; }
.sidebar-user .avatar { width: 34px; height: 34px; border-radius: 10px; background: rgba(245, 158, 11, .16); color: #fcd34d; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex: none; }
.sidebar-user strong { display: block; color: #fff; font-size: 12.5px; }
.sidebar-user small { display: block; color: #74849a; font-size: 10px; }
.sidebar-user form { margin-left: auto; }
.sidebar-user .icon-btn { color: #74849a; }
.sidebar-user .icon-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.admin-main { flex: 1; min-width: 0; margin-left: 258px; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 32px;
    background: rgba(243, 245, 249, .9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.topbar-title h1 { font-size: 20px; letter-spacing: -.02em; }
.topbar-title span { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; }
.menu-toggle { display: none; }
.admin-content { padding: 28px 32px 56px; max-width: 1440px; }
.admin-content .flash-stack { margin: 0 0 18px; }
.sidebar-backdrop { display: none; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 5px; }
.page-head h2 { font-size: 27px; letter-spacing: -.03em; line-height: 1.15; }
.page-sub { color: var(--muted); font-size: 13.5px; margin-top: 5px; max-width: 620px; }
.page-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { display: flex; align-items: flex-start; gap: 14px; padding: 19px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; flex: none; }
.stat-icon .icon { width: 20px; height: 20px; }
.stat-icon.blue { background: var(--blue-soft); color: var(--blue); }
.stat-icon.amber { background: var(--accent-soft); color: #b45309; }
.stat-icon.indigo { background: #eef0ff; color: #4338ca; }
.stat-icon.green { background: var(--green-soft); color: var(--green); }
.stat-icon.orange { background: #fff1e6; color: var(--orange); }
.stat-label { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.stat-card strong { display: block; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; margin: 3px 0 2px; }
.stat-card small { color: var(--muted-2); font-size: 11.5px; }
.stats-row-sm .stat-card { padding: 15px 17px; }

.dashboard-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; align-items: start; }
.card-span-2 { grid-column: span 2; }
.funnel { display: flex; flex-direction: column; gap: 14px; }
.funnel-row { display: grid; grid-template-columns: 136px 1fr 82px; align-items: center; gap: 12px; }
.funnel-label { font-size: 13px; color: var(--ink-2); }
.funnel-track { height: 9px; border-radius: 99px; background: #f2f4f7; overflow: hidden; }
.funnel-bar { display: block; height: 100%; border-radius: 99px; transition: width .4s ease; }
.bar-gray { background: #98a2b3; }
.bar-blue { background: #3b82f6; }
.bar-indigo { background: #6366f1; }
.bar-amber { background: var(--accent); }
.bar-green { background: #10b981; }
.funnel-value { text-align: right; font-weight: 700; font-size: 14px; }
.funnel-value small { color: var(--muted-2); font-weight: 500; font-size: 11px; }
.funnel-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.funnel-foot span { display: block; color: var(--muted); font-size: 11.5px; }
.funnel-foot strong { display: block; font-size: 22px; letter-spacing: -.02em; margin: 2px 0; }
.funnel-foot small { color: var(--muted-2); font-size: 11px; }

.mini-list, .appointment-mini, .route-mini, .event-feed, .message-mini { list-style: none; display: flex; flex-direction: column; }
.mini-list li + li, .appointment-mini li + li, .route-mini li + li { border-top: 1px solid var(--line-2); }
.mini-list a, .appointment-mini li, .route-mini a { display: flex; align-items: center; gap: 11px; padding: 11px 2px; }
.mini-list a:hover, .route-mini a:hover { background: var(--surface-2); border-radius: 8px; }
.mini-avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: #eef2f7; color: #475467; font-weight: 700; font-size: 13px; flex: none; }
.mini-avatar.large { width: 52px; height: 52px; border-radius: 14px; font-size: 18px; }
.mini-main { min-width: 0; flex: 1; }
.mini-main strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-main small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appointment-mini li { gap: 12px; }
.date-badge { width: 48px; flex: none; text-align: center; padding: 6px 4px; border-radius: 9px; background: var(--accent-soft); color: #92400e; }
.date-badge strong { display: block; font-size: 17px; line-height: 1; }
.date-badge small { display: block; font-size: 9.5px; font-weight: 600; margin-top: 2px; }
.route-date { width: 92px; flex: none; font-size: 12.5px; font-weight: 600; }
.event-feed li { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.event-feed li:first-child { border-top: 0; }
.event-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: #f2f4f7; color: var(--muted); flex: none; }
.event-icon .icon { width: 16px; height: 16px; }
.event-icon.type-sms { background: var(--blue-soft); color: var(--blue); }
.event-icon.type-link_open { background: #eef0ff; color: #4338ca; }
.event-icon.type-booking { background: var(--accent-soft); color: #b45309; }
.event-icon.type-call { background: var(--green-soft); color: var(--green); }
.event-main { min-width: 0; flex: 1; }
.event-main strong { display: block; font-size: 13px; }
.event-main small { display: block; color: var(--muted); font-size: 11.5px; }
.event-main small a { color: var(--blue); }
.event-main p { color: var(--muted); font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-feed time { flex: none; color: var(--muted-2); font-size: 11px; }

.tabs { display: flex; align-items: center; gap: 4px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 2px; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 9px; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.tab:hover { background: rgba(16,24,40,.05); color: var(--ink); }
.tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.tab span { font-size: 11px; color: var(--muted-2); font-weight: 600; }
.tab-separator { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }
.tab-note { display: inline-flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: 12px; margin-left: 8px; white-space: nowrap; }
.tab-note .icon { width: 14px; height: 14px; }

.filter-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.search-field { position: relative; flex: 1; min-width: 240px; }
.search-field .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted-2); }
.search-field input { padding-left: 38px; }
.filter-bar .select { width: auto; min-width: 150px; }

.bulk-form { margin: 0; }
.bulk-bar { display: flex; align-items: center; gap: 16px; padding: 10px 14px; background: #101b2e; color: #fff; border-radius: 13px 13px 0 0; flex-wrap: wrap; }
.bulk-selected { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #a9b6c7; }
.bulk-selected strong { color: #fff; font-size: 15px; }
.bulk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.bulk-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; flex-wrap: wrap; }
.bulk-hint { color: #8494aa; font-size: 12px; }
.bulk-divider { width: 1px; height: 20px; background: rgba(255,255,255,.14); margin: 0 3px; }
.bulk-bar .btn-ghost { color: #a9b6c7; }
.bulk-bar .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.bulk-bar .btn-primary { box-shadow: none; }
.bulk-form .table-wrap { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 13px 13px; background: #fff; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 11px 14px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fcfcfd; }
.data-table tr.is-selected { background: #fffaf0; }
.data-table tr.is-selected:hover { background: #fff7e6; }
.check-col { width: 38px; }
.check-col input { width: 16px; height: 16px; accent-color: var(--accent); }
.client-cell { display: flex; align-items: center; gap: 10px; }
.client-cell strong { display: block; font-size: 13.5px; color: var(--ink); }
.client-cell small { display: block; color: var(--muted); font-size: 11.5px; }
.cell-main { display: block; font-size: 13px; font-weight: 600; }
.cell-sub { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-meta { display: flex; gap: 5px; margin-top: 4px; color: var(--muted-2); }
.cell-meta .icon { width: 13px; height: 13px; }
.actions-col { width: 86px; text-align: right; white-space: nowrap; }
.actions-col .icon-btn { width: 30px; height: 30px; }
.actions-col .icon-btn .icon { width: 16px; height: 16px; }
.table-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 46px 20px; color: var(--muted); }
.table-empty .icon { width: 40px; height: 40px; color: var(--muted-2); margin-bottom: 12px; }
.table-empty strong { color: var(--ink); font-size: 16px; }
.table-empty p { margin: 4px 0 16px; font-size: 13px; max-width: 420px; }
.legend-note { display: flex; gap: 10px; margin-top: 18px; padding: 13px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 12.5px; }
.legend-note .icon { width: 17px; height: 17px; flex: none; color: var(--blue); margin-top: 1px; }
.legend-note strong { color: var(--ink-2); }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; color: var(--muted); font-size: 12.5px; }
.pagination-links { display: flex; align-items: center; gap: 8px; }
.page-indicator { font-weight: 600; color: var(--ink-2); }

/* Детальная карточка ------------------------------------------------------- */
.direction-head { align-items: flex-start; }
.direction-title { display: flex; gap: 14px; align-items: center; }
.direction-title h2 { font-size: 28px; }
.direction-title p { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 5px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .85fr); gap: 18px; align-items: start; }
.detail-main, .detail-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.info-grid > div { min-width: 0; }
.info-grid span { display: block; color: var(--muted); font-size: 11.5px; margin-bottom: 1px; }
.info-grid strong { display: block; font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.info-grid a { color: var(--blue); }
.history-block { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.history-head { display: flex; align-items: center; gap: 7px; padding: 9px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.history-head .icon { width: 14px; height: 14px; }
.history-block pre { margin: 0; padding: 14px; font-size: 12.5px; color: #344054; white-space: pre-wrap; line-height: 1.5; max-height: 240px; overflow: auto; }
.appointment-list { display: flex; flex-direction: column; gap: 10px; }
.appointment-item { display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.appointment-item.is-canceled { opacity: .58; }
.appointment-date { width: 62px; flex: none; text-align: center; padding: 6px 4px; border-radius: 9px; background: var(--accent-soft); color: #92400e; align-self: flex-start; }
.appointment-date strong { display: block; font-size: 20px; line-height: 1; }
.appointment-date span { display: block; font-size: 9.5px; font-weight: 600; margin-top: 3px; }
.appointment-body { min-width: 0; flex: 1; }
.appointment-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.appointment-line strong { font-size: 14px; }
.appointment-body p { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.appointment-body small { display: block; color: var(--muted-2); font-size: 11.5px; margin-top: 4px; }
.appointment-body small a { color: var(--blue); }
.appointment-comment { padding: 7px 10px; background: var(--surface-2); border-radius: 7px; }
.appointment-actions { margin-left: auto; }
.appointment-actions .icon-btn { width: 28px; height: 28px; }
.inline-form { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.inline-form summary { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.inline-form summary::-webkit-details-marker { display: none; }
.inline-form summary .icon { width: 15px; height: 15px; }
.inline-form[open] summary { margin-bottom: 14px; }
.note-form { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.note-form .select { width: auto; flex: none; }
.note-form input[type=text] { flex: 1; min-width: 220px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.timeline { list-style: none; position: relative; display: flex; flex-direction: column; gap: 2px; }
.timeline-item { display: flex; gap: 13px; padding: 10px 0; position: relative; }
.timeline-item + .timeline-item { border-top: 1px solid var(--line-2); }
.timeline-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; background: #f2f4f7; color: var(--muted); flex: none; }
.timeline-icon .icon { width: 15px; height: 15px; }
.timeline-item.type-sms .timeline-icon { background: var(--blue-soft); color: var(--blue); }
.timeline-item.type-link_open .timeline-icon { background: #eef0ff; color: #4338ca; }
.timeline-item.type-booking .timeline-icon { background: var(--accent-soft); color: #b45309; }
.timeline-item.type-call .timeline-icon { background: var(--green-soft); color: var(--green); }
.timeline-item.type-status_change .timeline-icon { background: #f5f0ff; color: var(--violet); }
.timeline-body { min-width: 0; flex: 1; }
.timeline-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.timeline-head strong { font-size: 13px; }
.timeline-head time { color: var(--muted-2); font-size: 11px; white-space: nowrap; }
.timeline-body p { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.timeline-meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted-2); font-size: 10.5px; margin-top: 5px; text-transform: uppercase; letter-spacing: .04em; }
.side-form { display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.side-form:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.link-box { padding: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; }
.link-box > span { display: block; color: var(--muted); font-size: 11px; font-weight: 600; margin-bottom: 5px; }
.link-box code { display: block; font-size: 10.5px; word-break: break-all; color: #344054; line-height: 1.45; }
.link-actions { display: flex; gap: 6px; margin-top: 9px; }
.link-box form { margin-top: 9px; }
.message-mini { gap: 0; }
.message-mini li { padding: 12px 0; border-top: 1px solid var(--line-2); }
.message-mini li:first-child { border-top: 0; padding-top: 0; }
.message-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.message-head time { color: var(--muted-2); font-size: 10.5px; }
.message-mini p { color: #475467; font-size: 12px; margin-top: 6px; }
.message-link { display: block; font-size: 10.5px; color: var(--blue); word-break: break-all; margin-top: 4px; }
.facts-list { display: flex; flex-direction: column; gap: 8px; }
.facts-list > div { display: flex; justify-content: space-between; gap: 14px; font-size: 12.5px; }
.facts-list dt { color: var(--muted); }
.facts-list dd { font-weight: 600; text-align: right; }

/* Записи ------------------------------------------------------------------- */
.day-group { margin-bottom: 26px; }
.day-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.day-head h3 { font-size: 17px; letter-spacing: -.01em; }
.day-head h3 .muted { font-weight: 400; }
.day-head > div > .muted { font-size: 12px; }
.appointment-cards { display: flex; flex-direction: column; gap: 8px; }
.appointment-card { display: flex; gap: 16px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow-sm); }
.appointment-card.is-canceled { opacity: .55; }
.appointment-time { width: 66px; flex: none; padding-top: 2px; }
.appointment-time strong { display: block; font-size: 17px; letter-spacing: -.02em; }
.appointment-time span { display: block; color: var(--muted); font-size: 11px; }
.appointment-card-body { flex: 1; min-width: 0; }
.appointment-sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.appointment-sub a { color: var(--blue); }
.appointment-address { display: flex; align-items: center; gap: 5px; color: #475467; font-size: 12.5px; margin-top: 4px; }
.appointment-address .icon { width: 14px; height: 14px; color: var(--muted); flex: none; }
.appointment-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 11.5px; margin-top: 6px; }
.appointment-meta span, .appointment-meta a { display: inline-flex; align-items: center; gap: 5px; }
.appointment-meta .icon { width: 13px; height: 13px; }
.appointment-meta a { color: var(--blue); }
.appointment-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.appointment-card-actions form { display: flex; }

/* Маршруты ----------------------------------------------------------------- */
.route-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 28px; }
.route-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow .15s, transform .15s, border-color .15s; }
.route-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: #d3d9e2; }
.route-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.route-type { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.route-date-big { font-size: 20px; letter-spacing: -.02em; }
.route-progress { height: 7px; border-radius: 99px; background: #f2f4f7; overflow: hidden; margin: 10px 0 7px; }
.route-progress.big { flex: 1; }
.route-progress-bar { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.route-card-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11.5px; }
.route-new-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; align-items: start; }
.route-detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); gap: 18px; align-items: start; }
.route-stops, .route-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.route-summary { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 16px 20px; }
.route-summary > div:not(.route-progress) { display: flex; flex-direction: column; }
.route-summary > div:not(.route-progress) strong { font-size: 16px; }
.route-summary > div:not(.route-progress) span { font-size: 11px; }
.route-icon-big { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 13px; background: var(--navy); color: var(--accent-2); flex: none; }
.route-icon-big .icon { width: 24px; height: 24px; }
.stop-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.stop-card { display: flex; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.stop-card.is-done { opacity: .72; background: #fbfefc; }
.stop-card.is-skipped { opacity: .55; }
.stop-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: #101b2e; color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.stop-body { flex: 1; min-width: 0; }
.stop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.stop-head strong { font-size: 14px; }
.stop-client { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-top: 4px; }
.stop-client strong { color: var(--ink); }
.stop-client a { color: var(--blue); }
.stop-meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 11.5px; margin-top: 6px; }
.stop-meta span { display: inline-flex; align-items: center; gap: 5px; }
.stop-meta .icon { width: 13px; height: 13px; }
.stop-meta .warn { color: #b45309; }
.stop-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 11px; padding-top: 10px; border-top: 1px dashed var(--line); }
.order-controls { display: flex; gap: 2px; }
.order-controls .icon-btn { width: 28px; height: 28px; }
.order-controls .icon-btn:disabled { opacity: .3; }
.wheel-select { display: flex; align-items: center; gap: 6px; }
.stop-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pick-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pick-list-head { display: flex; align-items: center; gap: 9px; padding: 10px 13px; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--muted); }
.pick-item { display: flex; gap: 12px; padding: 12px 13px; border-top: 1px solid var(--line-2); cursor: pointer; }
.pick-item:hover { background: #fcfcfd; }
.pick-item input, .pick-list-head input { width: 16px; height: 16px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.pick-time { flex: none; width: 84px; font-size: 11.5px; font-weight: 600; color: #b45309; }
.pick-main { min-width: 0; }
.pick-main strong { display: block; font-size: 13px; }
.pick-main small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.pick-main small .icon { width: 12px; height: 12px; }
.print-note { display: none; color: var(--muted); font-size: 11px; text-align: center; }

/* Склад / импорт / сообщения ------------------------------------------------ */
.spares-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: 18px; align-items: start; }
.row-actions { display: flex; align-items: center; gap: 5px; }
.row-actions form { display: flex; }
.big-number { font-size: 48px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.import-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; align-items: start; margin-bottom: 18px; }
.upload-form { display: flex; flex-direction: column; gap: 12px; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 32px 20px; border: 1.5px dashed #cdd5df; border-radius: 13px; background: var(--surface-2); color: var(--muted); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.is-dragover { border-color: var(--accent); background: #fffaf0; }
.dropzone .icon { width: 30px; height: 30px; color: #b45309; margin-bottom: 6px; }
.dropzone strong { color: var(--ink); font-size: 14px; }
.dropzone span { font-size: 12px; }
.dropzone input { display: none; }
.dropzone em { font-style: normal; margin-top: 8px; padding: 4px 9px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: 11px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-help { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.import-help h3 { font-size: 13px; margin-bottom: 8px; }
.import-help .check-list li { color: var(--muted); font-size: 12.5px; }
.import-help .check-list .icon { color: var(--green); }
.import-summary { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.import-summary h3 { font-size: 13px; margin-bottom: 8px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 13px; }
.summary-row span { color: var(--muted); }
.error-details { margin-top: 10px; font-size: 12px; }
.error-details summary { cursor: pointer; color: #b42318; font-weight: 600; }
.error-details ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.message-list { display: flex; flex-direction: column; gap: 12px; }
.message-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.message-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.message-recipient { display: flex; align-items: center; gap: 10px; min-width: 0; }
.message-recipient a { color: var(--ink); }
.message-recipient strong { display: block; font-size: 13.5px; }
.message-recipient small { display: block; color: var(--muted); font-size: 11.5px; }
.message-status { display: flex; align-items: center; gap: 10px; flex: none; }
.message-status .muted { font-size: 11.5px; }
.message-body { margin-top: 10px; }
.message-body p { font-size: 13px; color: #344054; }
.message-link-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding: 8px 10px; background: var(--surface-2); border-radius: 9px; }
.message-link-row code { flex: 1; min-width: 200px; font-size: 10.5px; word-break: break-all; color: var(--muted); }
.message-card-foot { display: flex; gap: 14px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line-2); color: var(--muted-2); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; }
.message-card-foot span { display: inline-flex; align-items: center; gap: 5px; }
.message-card-foot .icon { width: 12px; height: 12px; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1180px) {
    .dashboard-grid { grid-template-columns: 1fr 1fr; }
    .card-span-2 { grid-column: span 2; }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-side { display: grid; grid-template-columns: 1fr 1fr; }
    .route-detail-grid { grid-template-columns: 1fr; }
    .route-side { display: grid; grid-template-columns: 1fr 1fr; }
    .spares-grid, .import-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
    .admin-content { padding: 24px 22px 48px; }
    .topbar { padding: 14px 22px; }
    .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: none; }
    body.menu-open .sidebar { transform: none; box-shadow: 30px 0 80px rgba(0,0,0,.3); }
    .admin-main { margin-left: 0; }
    .menu-toggle { display: inline-flex; }
    .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(10, 16, 28, .45); opacity: 0; pointer-events: none; transition: opacity .2s; }
    body.menu-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
    .booking-grid { grid-template-columns: 1fr; gap: 30px; }
    .faq-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-grid { gap: 32px; }
    .client-hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .client-hero-copy { max-width: 680px; }
    .direction-card { max-width: 520px; }
}

@media (max-width: 820px) {
    .container, .narrow { width: min(100% - 32px, 1180px); }
    .header-inner { height: 64px; }
    .site-nav a:not(.header-phone) { display: none; }
    .hero { padding: 48px 0 30px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { min-height: 300px; order: -1; }
    .wheel-visual { width: 230px; height: 230px; }
    .wheel-hub { width: 76px; height: 76px; }
    .wheel-hub .icon { width: 36px; height: 36px; }
    .card-a { left: 0; bottom: 10px; }
    .card-b { right: 0; top: 5px; }
    .hero-stats { grid-template-columns: 1fr 1fr; margin-top: 34px; }
    .section { padding: 54px 0; }
    .method-grid, .faq-list-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .cta-band-inner { flex-direction: column; align-items: flex-start; padding: 26px; }
    .footer-inner { grid-template-columns: 1fr; gap: 22px; }
    .footer-bottom { flex-direction: column; gap: 4px; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .card-span-2 { grid-column: span 1; }
    .direction-title h2 { font-size: 24px; }
    .detail-side { grid-template-columns: 1fr; }
    .route-side { grid-template-columns: 1fr; }
    .page-head { flex-direction: column; gap: 12px; }
    .page-head-actions { justify-content: flex-start; }
    .appointment-card { flex-wrap: wrap; }
    .appointment-card-actions { flex-direction: row; align-items: center; width: 100%; justify-content: flex-end; }
    .success-facts { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
    .info-grid .span-2 { grid-column: span 1; }
    .note-form { flex-direction: column; align-items: stretch; }
    .note-form input[type=text] { min-width: 0; }
    .route-summary { gap: 14px; }
    .booking-card { padding: 22px; }
    .direction-card { padding: 20px; }
}

@media (max-width: 560px) {
    .container, .narrow { width: calc(100% - 28px); }
    .brand-text small { display: none; }
    .site-nav { gap: 10px; }
    .header-phone span { display: none; }
    .header-phone { padding: 10px; }
    .hero-copy h1 { font-size: 38px; }
    .hero-lead { font-size: 15px; }
    .hero-actions .btn { width: 100%; }
    .hero-stats { grid-template-columns: 1fr; }
    .floating-card { padding: 9px 11px; }
    .floating-card small { display: none; }
    .client-chips > span { font-size: 12px; }
    .slot-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .stats-row, .stats-row-sm { grid-template-columns: 1fr; }
    .stat-card { align-items: center; }
    .topbar-actions .btn:first-child { display: none; }
    .topbar { padding: 12px 14px; }
    .admin-content { padding: 18px 14px 40px; }
    .card { padding: 17px; }
    .bulk-actions { margin-left: 0; }
    .bulk-bar { padding: 12px; }
    .tab-note { display: none; }
    .funnel-row { grid-template-columns: 92px 1fr 60px; gap: 8px; }
    .funnel-foot { grid-template-columns: 1fr; }
    .message-card-head { flex-direction: column; align-items: flex-start; }
    .message-link-row code { min-width: 100%; }
    .appointment-item { flex-wrap: wrap; }
    .appointment-actions { width: 100%; display: flex; justify-content: flex-end; }
    .stop-controls { flex-direction: column; align-items: stretch; }
    .stop-actions { margin-left: 0; }
    .wheel-select { flex-wrap: wrap; }
    .route-actions, .page-head-actions { width: 100%; }
    .page-head-actions .btn { flex: 1; }
    .appointment-banner form { position: static; margin-top: 6px; }
}

/* Печать маршрутного листа -------------------------------------------------- */
@media print {
    @page { margin: 14mm; }
    body.admin { background: #fff; }
    .sidebar, .topbar, .sidebar-backdrop, .flash-stack, .no-print, .page-head-actions, .print-note { display: none !important; }
    .admin-main { margin-left: 0; }
    .admin-content { padding: 0; max-width: none; }
    .page-head { margin-bottom: 18px; }
    .route-detail-grid { display: block; }
    .route-side { display: none !important; }
    .route-summary { border: 1px solid #ccc; box-shadow: none; }
    .stop-card { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
    .stop-list { gap: 8px; }
    .print-note { display: block; margin-top: 20px; }
    a { text-decoration: none; color: inherit; }
}

/* Служебные добавки --------------------------------------------------------- */
[hidden] { display: none !important; }
.toast-stack { position: fixed; right: 20px; bottom: 20px; margin: 0; max-width: 340px; z-index: 200; }
.toast-stack .flash { box-shadow: var(--shadow-lg); }
.flash.is-hiding { opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.date-chip.active { scroll-margin: 20px; }

/* Защита от распирания гридов длинным контентом */
.booking-grid > *, .dashboard-grid > *, .detail-grid > *, .route-detail-grid > *, .route-new-grid > *, .import-grid > *, .spares-grid > * { min-width: 0; }
.booking-card, .booking-info { min-width: 0; }
.date-strip { max-width: 100%; }
.help-card { flex-wrap: wrap; }
.help-card > div { min-width: 150px; }
.spares-grid { grid-template-columns: 1fr; }
#spare-form { max-width: 860px; }
