/* =========================================
   BAGALAU - Общие глобальные стили (common.css)
   ========================================= */

:root {
    /* Фирменные цвета Bagalau */
    --bagalau-navy: #102C46;
    --bagalau-blue: #2563EB;
    --bagalau-teal: #17B890;
    --bagalau-purple: #8B5CF6;
    --bagalau-bg: #F5F7FA;
    --bagalau-surface: #FFFFFF;

    /* Переменные лендинга и публичных страниц */
    --primary-bg: #ffffff;
    --text-dark: #102C46;
    --text-muted: #64748b;
    --accent-blue: #2563EB;
    --accent-purple: #8B5CF6;
    --gradient-primary: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    --section-bg: #F5F7FA;
    --border-light: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--bagalau-navy);
    -webkit-font-smoothing: antialiased;
}

/* Радиус для кнопок, инпутов и алертов */
.control-radius {
    border-radius: 8px !important;
}

.preserve-spaces {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.hover-link {
    transition: opacity 0.2s;
}

.hover-link:hover {
    opacity: 0.7;
}

/* =========================================
   СТРАНИЦЫ АВТОРИЗАЦИИ (/auth/)
   ========================================= */
body.auth-page {
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.auth-card {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: none;
}

/* =========================================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ (/privacy/, /terms/)
   ========================================= */
body.legal-page {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 40px auto;
    line-height: 1.6;
    color: #333;
    padding: 0 20px;
}

/* =========================================
   ЛЕНДИНГ (index.php)
   ========================================= */
body.landing-page {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--primary-bg);
}

.btn-primary-gradient {
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.btn-primary-gradient:hover {
    opacity: 0.9;
    color: white;
    transform: translateY(-1px);
}

.btn-outline-darkblue {
    color: var(--text-dark);
    border: 1px solid var(--border-light);
    font-weight: 600;
    border-radius: 8px;
}

.btn-outline-darkblue:hover {
    background-color: var(--section-bg);
    color: var(--accent-blue);
}

.landing-page .navbar {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.navbar-brand-text {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.landing-page .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    transition: color 0.3s ease;
}

.landing-page .nav-link:hover {
    color: var(--accent-blue) !important;
}

.landing-page h1,
.landing-page h2,
.landing-page h3,
.landing-page h4,
.landing-page h5,
.landing-page h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.mockup-window {
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.mockup-header {
    background: var(--section-bg);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 6px;
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.mockup-body {
    padding: 1.5rem;
    font-size: 0.9rem;
    text-align: left;
}

.section-padding {
    padding: 6rem 0;
}

.bg-gray {
    background-color: var(--section-bg);
}

.feature-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.feature-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.time-compare-card {
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
}

.time-before {
    background: #fef2f2;
    border: 1px solid #fee2e2;
}

.time-after {
    background: #f0fdf4;
    border: 1px solid #dcfce3;
}

.time-value {
    font-size: 3rem;
    font-weight: 800;
}

.time-before .time-value {
    color: #ef4444;
}

.time-after .time-value {
    color: #22c55e;
}

.pricing-card {
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
}

.pricing-card.pro {
    border: 2px solid var(--accent-blue);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.1);
    position: relative;
}

.pro-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.faq-button:not(.collapsed) {
    color: var(--accent-blue);
    background-color: transparent;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
}
