﻿/* 
===============================================
    OSAGO Plus - Premium Web Design System
===============================================
*/

:root {
    /* Color Palette - Deep Ocean & Vibrant Accent */
    --primary-color: #0d1b2a;
    --primary-light: #1b263b;
    --accent-color: #3a86ff;
    --accent-hover: #005fce;
    --text-main: #e0e1dd;
    --text-muted: #9ba4b5;
    --bg-dark: #070e16;
    --bg-panel: rgba(27, 38, 59, 0.6);
    --bg-panel-hover: rgba(58, 134, 255, 0.1);
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(13, 27, 42, 0.95) 0%, rgba(27, 38, 59, 0.8) 100%);
    --gradient-accent: linear-gradient(135deg, #3a86ff 0%, #8338ec 100%);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Borders & Shadows */
    --b-radius-sm: 8px;
    --b-radius-md: 16px;
    --b-radius-lg: 24px;
    --b-radius-pill: 9999px;
    
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(58, 134, 255, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: #ffffff;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--b-radius-pill);
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
    gap: 8px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-accent);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(58, 134, 255, 0.5);
    color: #fff;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #8338ec 0%, #3a86ff 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-accent {
    background-color: #ffffff;
    color: var(--primary-color);
}

.btn-accent:hover {
    background-color: var(--accent-color);
    color: #ffffff;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.125rem;
}

/* Material Icons Integration */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--b-radius-md);
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

/* Header & Navbar */
.header {
    background: rgba(7, 14, 22, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    gap: 8px;
    letter-spacing: -0.5px;
}

.logo:hover {
    color: #ffffff;
}

.logo-icon {
    color: var(--accent-color);
    font-size: 2rem !important;
}

.brand-accent {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width var(--transition-fast);
}

.nav-links a:hover {
    color: #ffffff;
}

.nav-links a:hover::after {
    width: 100%;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: var(--b-radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-btn:hover {
    background: var(--bg-panel-hover);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-size: 24px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for fixed header */
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: var(--gradient-hero);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    padding: 0 24px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: linear-gradient(to right, #ffffff, #a0b2c6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 400;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--primary-color);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-panel);
    border-radius: var(--b-radius-md);
    padding: 40px 30px;
    text-align: center;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(58, 134, 255, 0.3);
    background: var(--bg-panel-hover);
}

.feature-card .icon {
    font-size: 48px !important;
    color: var(--accent-color);
    margin-bottom: 24px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Steps Section */
.steps {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.steps h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 28px;
    top: 64px;
    bottom: -32px;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-panel);
    border: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(58, 134, 255, 0.2);
    z-index: 2;
}

.step-text {
    background: var(--bg-panel);
    padding: 24px 32px;
    border-radius: var(--b-radius-md);
    flex-grow: 1;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: background var(--transition-fast);
}

.step-item:hover .step-text {
    background: var(--bg-panel-hover);
    border-color: rgba(58, 134, 255, 0.2);
}

.step-text strong {
    color: #ffffff;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
}

/* Calculator Page & Misc Inner Pages */
.calculator-info, .rules-page, .faq-section {
    padding: 140px 0 80px;
    min-height: 80vh;
}

.calculator-info h1, .rules-page h1, .faq-section h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.calc-intro, .content-card {
    max-width: 900px;
    margin: 0 auto;
}

.lead {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 30px;
    text-align: center;
}

.info-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--b-radius-sm);
    padding: 24px;
    border-left: 4px solid var(--accent-color);
}

.checked-list {
    margin-top: 16px;
}

.checked-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
}

.checked-list li::before {
    content: '\e876'; /* check icon */
    font-family: 'Material Symbols Outlined';
    position: absolute;
    left: 0;
    top: 2px;
    color: #00e676;
    font-size: 20px;
    font-variation-settings: 'FILL' 1, 'wght' 600;
}

.styled-list li {
    margin-bottom: 12px;
    margin-left: 20px;
}

.coefficient-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.coef-item {
    background: var(--bg-panel);
    padding: 24px;
    border-radius: var(--b-radius-sm);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-hover:hover {
    background: var(--bg-panel-hover);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    transition: all var(--transition-smooth);
}

.coef-item strong {
    display: block;
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.highlight-text {
    color: var(--accent-color);
}

.alert {
    padding: 20px;
    border-radius: var(--b-radius-sm);
    margin: 30px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.alert-warning {
    background: rgba(255, 171, 0, 0.1);
    border-left: 4px solid #ffab00;
    color: #fff;
}

.alert-warning .material-symbols-outlined {
    color: #ffab00;
    font-size: 28px;
}

hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 40px 0;
}

/* FAQ Accordion visually */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--b-radius-md);
    margin-bottom: 20px;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-card:hover {
    border-color: rgba(58, 134, 255, 0.3);
}

.faq-question {
    padding: 24px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-question .material-symbols-outlined {
    color: var(--accent-color);
}

.faq-body {
    padding: 24px 30px;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.company-desc {
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 400px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: var(--text-muted);
}

.footer-col ul a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
}

.contact-list .material-symbols-outlined {
    color: var(--accent-color);
    font-size: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.disclaimer {
    margin-top: 8px;
    opacity: 0.7;
    max-width: 600px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .brand-col {
        grid-column: 1 / -1;
    }
    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links, .contact-btn {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .hero {
        padding-top: 100px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .features, .steps {
        padding: 60px 0;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Adaptive Mobile Layout (added by script) */
@media (max-width: 768px) {
    body { overflow-x: hidden !important; }
    .container { width: 100% !important; padding: 0 15px !important; margin: 0 auto !important; box-sizing: border-box !important; }
    
    /* Header */
    .header { position: relative !important; height: auto !important; padding: 10px 0 !important; }
    .header-inner { flex-direction: column !important; text-align: center !important; gap: 15px !important; padding: 10px 0 !important; }
    .nav-links { display: flex !important; flex-wrap: wrap !important; width: 100% !important; justify-content: center !important; flex-direction: row !important; gap: 8px !important; padding: 10px 0 !important; }
    .nav-links a { font-size: 15px !important; margin: 0 !important; padding: 8px 12px !important; display: inline-block !important; border: 1px solid rgba(0,0,0,0.1) !important; border-radius: 4px; }
    .header-btn { display: inline-block !important; width: 100% !important; margin: 10px 0 0 0 !important; box-sizing: border-box !important; }
    .mobile-menu-btn { display: none !important; }
    
    /* Hero */
    .hero, .calculator-info { padding: 40px 15px !important; text-align: center !important; min-height: auto !important; }
    h1, .hero h1, .calculator-info h1 { font-size: 24px !important; line-height: 1.3 !important; word-wrap: break-word !important; overflow-wrap: break-word !important; hyphens: auto !important; }
    h2, .hero h2, .calculator-info h2 { font-size: 20px !important; word-wrap: break-word !important; margin-top: 20px !important; }
    h3 { font-size: 18px !important; }
    
    /* Main */
    main { padding: 20px 0 !important; width: 100vw !important; max-width: 100% !important; box-sizing: border-box !important; }
    main img, .content-card img { max-width: 100% !important; height: auto !important; margin: 15px auto !important; display: block !important; border-radius: 4px !important; }
    main table, main thead, main tbody, main th, main td, main tr, .table-container { display: block !important; width: 100% !important; box-sizing: border-box !important; overflow-x: auto !important; }
    
    /* Footer */
    .footer-grid, .footer-top, .footer-bottom { display: flex !important; flex-direction: column !important; gap: 20px !important; text-align: center !important; }
    .footer-grid ul, .footer-links-group ul, .footer-contact ul { padding: 0 !important; list-style: none !important; }
    .footer-links { flex-direction: column !important; gap: 10px !important; }
    
    /* Lists */
    .features-grid, .services-grid, .articles-grid, .advantages-grid { display: flex !important; flex-direction: column !important; gap: 20px !important; }
}
