/* kasko.ru Premium Premium Aggregator Styles */

:root {
    /* Premium Palette: Navy, Silver, Red, Gold */
    --color-bg-primary: #F8F9FA; /* Silver / Off-white */
    --color-bg-secondary: #FFFFFF;
    --color-navy: #0A192F;
    --color-navy-light: #112240;
    --color-red: #E63946;
    --color-red-hover: #D62828;
    --color-gold: #F4A261;
    --color-text-main: #333333;
    --color-text-muted: #666666;
    --color-border: #E0E0E0;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --shadow-soft: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg-primary);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Headings */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--color-navy);
    line-height: 1.3;
    margin-bottom: 20px;
}

h1 { font-size: 42px; font-weight: 700; }
h2 { font-size: 32px; font-weight: 600; text-align: center; }
h3 { font-size: 24px; font-weight: 600; }

p { margin-bottom: 15px; }
a { text-decoration: none; color: var(--color-red); transition: color 0.3s; }
a:hover { color: var(--color-navy); }

/* Buttons */
.btn-primary, .header-btn, .footer-btn {
    display: inline-block;
    background-color: var(--color-red);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover, .header-btn:hover, .footer-btn:hover {
    background-color: var(--color-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

/* Header */
.header {
    background-color: var(--color-navy);
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 700;
    color: #fff !important;
    font-family: var(--font-heading);
    flex-shrink: 0;
}

.logo span {
    color: var(--color-gold);
    font-weight: 400;
}

.logo-icon {
    width: auto;
    height: 38px;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 15px; /* Reduced gap from 25px */
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: #E2E8F0 !important;
    font-weight: 500;
    font-size: 13px; /* Slightly smaller to fit more words */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: #fff !important; }
.nav-links a:hover::after { width: 100%; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
}

/* Hero Section */
.hero-section-main {
    background: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.95)), url('/hero-bg.png') center/cover no-repeat;
    color: #fff;
    padding: 100px 0;
    text-align: center;
    border-bottom: 4px solid var(--color-red);
}

.hero-section-sub {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.98), rgba(20, 40, 70, 0.90));
    color: #fff;
    padding: 60px 0;
    text-align: center;
    border-bottom: 3px solid var(--color-red);
}

.hero-section-main h1, .hero-section-sub h1 {
    color: #fff;
    margin-bottom: 25px;
}

.hero-section-main p, .hero-section-sub p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 35px;
    color: #E2E8F0;
}

/* Main Content Area */
.main-content {
    padding: 60px 0;
    min-height: 60vh;
}

.content-card {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 40px;
    border-top: 3px solid var(--color-navy);
}

.content-card img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Premium Image Grid */
.premium-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-box {
    background: #fff;
    padding: 30px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-box:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--color-navy);
    transform: translateY(-5px);
}

.feature-box h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--color-navy);
}

/* Tables (Rates etc) */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

th, td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background-color: var(--color-navy);
    color: #fff;
    font-weight: 500;
}

tr:hover { background-color: #F8F9FA; }

/* FAQ Accordion */
.faq-list { margin-top: 40px; }
.faq-item {
    background: #fff;
    border: 1px solid var(--color-border);
    margin-bottom: 15px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    color: var(--color-navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    transition: background 0.3s;
}

.faq-question:hover { background: #F8F9FA; }
.faq-question::after {
    content: '+';
    font-size: 24px;
    color: var(--color-red);
}

.faq-question.active::after { content: '−'; }
.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #F8F9FA;
}

.faq-question.active + .faq-answer {
    padding: 20px;
    max-height: 1000px;
    border-top: 1px solid var(--color-border);
}

/* Footer (Anti-RKN / No-forms) */
.footer {
    background-color: var(--color-navy);
    color: #A0AABF;
    padding: 60px 0 20px;
    border-top: 4px solid var(--color-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 20px; }
.footer-nav h4, .footer-contacts h4 {
    color: #fff;
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { color: #A0AABF !important; transition: color 0.3s; }
.footer-nav a:hover { color: var(--color-gold) !important; padding-left: 5px; }

.footer-contacts p { margin-bottom: 10px; }
.footer-contacts .footer-btn { margin-top: 20px; width: 100%; box-sizing: border-box; }

.footer-legal {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    font-size: 12px;
    line-height: 1.5;
    text-align: justify;
    color: #7A89A5;
}

.footer-legal p { margin-bottom: 10px; }

/* Responsive Mobile Layout */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    h1 { font-size: 36px; }
}

@media (max-width: 768px) {
    body { overflow-x: hidden; }
    .container { width: 100%; padding: 0 15px; }
    
    .header { height: auto; padding: 15px 0; }
    .header-inner { flex-direction: column; height: auto; gap: 15px; }
    
    .header-actions { display: none; } /* Hide btn on mobile if needed, or show below */
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        text-align: center;
        gap: 10px;
        background: var(--color-navy-light);
        padding: 15px;
        border-radius: var(--radius-sm);
    }
    
    .nav-links.active { display: flex !important; }
    .nav-links a { display: block; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
    
    .mobile-menu-btn { display: block; margin: 0 auto; }
    
    .hero { padding: 40px 15px; }
    h1 { font-size: 28px; word-wrap: break-word; }
    h2 { font-size: 24px; word-wrap: break-word; }
    
    .content-card { padding: 20px; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { align-items: center; display: flex; flex-direction: column; }
    
    table, thead, tbody, th, td, tr { display: block; width: 100%; }
    th, td { text-align: right; padding-left: 50%; position: relative; }
    td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        width: 45%;
        text-align: left;
        font-weight: 600;
    }
}
