/* Приветственный лендинг WorkTime */

:root {
    --bg: #f4f6f8;
    --card: #ffffff;
    --border: #e5e7eb;
    --text: #1f2937;
    --muted: #6b7280;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --header-bg: rgba(255, 255, 255, 0.96);
    --hero-from: #ffffff;
    --hero-glow: #dbeafe;
    --section-alt: #ffffff;
    --ghost-bg: #ffffff;
    --dept-summary-bg: #f8fbff;
    --dept-summary-border: #93c5fd;
    --footer-bg: #111827;
    --footer-text: #e5e7eb;
    --toggle-bg: #f3f4f6;
    --toggle-border: #e5e7eb;
}

[data-theme="dark"] {
    --bg: #0f172a;
    --card: #1e293b;
    --border: #334155;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --header-bg: rgba(15, 23, 42, 0.94);
    --hero-from: #0f172a;
    --hero-glow: #1e3a8a;
    --section-alt: #1e293b;
    --ghost-bg: #1e293b;
    --dept-summary-bg: #172554;
    --dept-summary-border: #3b82f6;
    --footer-bg: #020617;
    --footer-text: #cbd5e1;
    --toggle-bg: #1e293b;
    --toggle-border: #475569;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    color-scheme: light;
}

html[data-theme="dark"] { color-scheme: dark; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
}

a { color: inherit; }

.container {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

.logo {
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
}

.logo span { color: var(--primary); }

.nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 14px;
}

.nav a:hover { color: var(--text); }

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    cursor: pointer;
    border: 1px solid var(--toggle-border);
    background: var(--toggle-bg);
    color: var(--text);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    line-height: 1;
}

.theme-toggle:hover { border-color: var(--primary); }

.theme-icon { display: none; font-size: 14px; }

html[data-theme="light"] .theme-icon-moon,
html:not([data-theme]) .theme-icon-moon { display: inline; }

html[data-theme="dark"] .theme-icon-sun { display: inline; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 9px 14px;
    text-decoration: none;
    font-size: 14px;
    border: 0;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover { background: var(--primary-dark); }

html[data-theme="dark"] .btn-primary { color: #0f172a; }

.btn-ghost {
    background: var(--ghost-bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-lg { padding: 12px 20px; font-size: 16px; }

.hero {
    padding: 72px 0 56px;
    background:
        radial-gradient(circle at 80% 10%, var(--hero-glow) 0, transparent 40%),
        linear-gradient(var(--hero-from), var(--bg));
}

.hero-inner { max-width: 720px; }

.hero-depts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 8px 0 18px;
}

.hero-depts-seven {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 1200px;
}

.hero-dept {
    display: block;
    text-decoration: none;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.hero-dept:hover { border-color: var(--primary); }

.hero-dept h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.hero-dept p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.hero-dept.shop { border-top: 5px solid #f59e0b; }
.hero-dept.territory { border-top: 5px solid #0284c7; }
.hero-dept.summary { border-top: 5px solid #22c55e; }
.hero-dept.finance { border-top: 5px solid #0d9488; }

.eyebrow {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 12px;
    margin: 0 0 12px;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.15;
}

.lead {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.hero-hint {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.section { padding: 64px 0; }

.section-alt { background: var(--section-alt); }

.section h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.section-lead {
    margin: 0 0 28px;
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}

.section-alt .card { background: var(--bg); }

.icon { font-size: 24px; margin-bottom: 10px; }

.card h3 { margin: 0 0 8px; font-size: 18px; }

.card p { margin: 0; color: var(--muted); font-size: 14px; }

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.steps li {
    display: grid;
    gap: 4px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
}

.steps span { color: var(--muted); }

.dept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.dept-grid-seven {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.dept {
    display: block;
    text-decoration: none;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
}

.dept:hover { border-color: var(--primary); }

.dept h3 { margin: 0 0 6px; }

.dept p { margin: 0; color: var(--muted); font-size: 13px; }

.dept-summary {
    background: var(--dept-summary-bg);
    border-color: var(--dept-summary-border);
}

.dept-finance {
    border-top: 3px solid #0d9488;
}

.formula p { font-size: 18px; }

.muted { color: var(--muted); font-size: 14px !important; }

.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 28px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

@media (max-width: 1000px) {
    .cards { grid-template-columns: 1fr 1fr; }
    .dept-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav a:not(.btn) { display: none; }
    .theme-toggle-text { display: none; }
    .cards, .dept-grid, .hero-depts { grid-template-columns: 1fr; }
    .hero { padding: 48px 0 36px; }
    .footer-inner { flex-direction: column; }
}
