/* ==========================================================================
   DriveHub — спільні стилі для всіх сторінок
   Змінні кольорів, фон сторінки, шапка (лого) та футер.
   Стилі, специфічні для конкретної сторінки (калькулятор, чек-ліст тощо),
   лишаються у <style> самої сторінки.
   ========================================================================== */

:root {
    --primary: #00b894;
    --primary-hover: #009473;
    --bg: #0b0e11;
    --card-bg: #151b21;
    --text: #f5f6fa;
    --text-secondary: #a4b0be;
    --border: #2c3a47;
    --accent: #e1b12c;
    --danger: #ff7675;
    --danger-hover: #d63031;
    --glass-bg: rgba(21, 27, 33, 0.75);
    --glass-border: rgba(255, 255, 255, 0.05);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 40px 20px;
    box-sizing: border-box;
    position: relative;
    overflow-x: hidden;

    background-image:
        radial-gradient(circle at 50% 0%, rgba(0, 184, 148, 0.25) 0%, transparent 60%),
        radial-gradient(circle at 10% 40%, rgba(30, 41, 59, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 184, 148, 0.05) 0%, transparent 40%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.003) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.003) 75%),
        linear-gradient(45deg, rgba(255, 255, 255, 0.003) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.003) 75%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 8px 8px, 8px 8px, 50px 50px, 50px 50px;
    background-position: 0 0, 0 0, 0 0, 0 0, 4px 4px, 0 0, 0 0;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: absolute;
    top: 15%;
    left: -10%;
    width: 40%;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 184, 148, 0.08) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

/* ШАПКА (лого + назва бренду) */
.header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 35px;
    text-decoration: none;
    user-select: none;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 32px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.header:hover {
    border-color: rgba(0, 184, 148, 0.3);
    box-shadow: 0 12px 45px 0 rgba(0, 184, 148, 0.2);
    transform: translateY(-2px);
}

.logo-container { width: 48px; height: 48px; }
.logo-svg { width: 100%; height: 100%; filter: drop-shadow(0 0 4px rgba(0, 184, 148, 0.2)); transition: all 0.4s ease; }
.header:hover .logo-svg { filter: drop-shadow(0 0 8px rgba(0, 184, 148, 0.6)); }

.brand-name { font-size: 24px; font-weight: 800; letter-spacing: 2px; color: #fff; text-transform: uppercase; }
.brand-name span { color: var(--primary); text-shadow: 0 0 10px rgba(0, 184, 148, 0.4); }

/* ФУТЕР */
footer {
    position: relative;
    z-index: 1;
    margin-top: 40px;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 12px;
    text-align: center;
    border-top: 1px solid var(--border);
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}
