/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ED1C24;
    --primary-dark: #c41920;
    --blue: #2196F3;
    --blue-dark: #1976D2;
    --dark: #1a1a1a;
    --gray: #666;
    --light-gray: #f5f5f5;
    --border: #e5e5e5;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== HEADER ==================== */
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    font-weight: 500;
    font-size: 14px;
    color: var(--dark);
    position: relative;
    padding: 4px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.2s;
}

.nav a:hover {
    color: var(--primary);
}

.nav a:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-phone {
    text-align: right;
}

.header-phone a {
    font-weight: 600;
    font-size: 14px;
    display: block;
    color: var(--dark);
}

.header-phone a:hover {
    color: var(--primary);
}

.header-phone span {
    font-size: 11px;
    color: var(--gray);
}

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
}

.burger span {
    width: 22px;
    height: 2px;
    background: var(--dark);
    transition: 0.3s;
    border-radius: 1px;
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 1000;
    padding: 20px 24px;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.mobile-menu-close {
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
}

.mobile-nav a:hover {
    color: var(--primary);
}

.mobile-phone {
    margin-top: auto;
    padding-top: 24px;
}

.mobile-phone a {
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    color: var(--blue);
}

.mobile-phone span {
    color: var(--gray);
    font-size: 13px;
}

/* ==================== HERO ==================== */
.hero {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    padding: 48px 0 80px;
    margin-top: 0;
}

.hero h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

.hero-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 20px;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    min-width: 80px;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.hero-tab:hover {
    background: rgba(255,255,255,0.25);
}

.hero-tab.active {
    background: #fff;
    color: var(--blue-dark);
}

.hero-tab svg {
    width: 28px;
    height: 28px;
}

.hero-tab span {
    font-size: 12px;
    font-weight: 600;
}

/* ==================== SEARCH SECTION ==================== */
.search-section {
    margin-top: -48px;
    padding-bottom: 48px;
    position: relative;
    z-index: 10;
}

.search-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 24px;
    min-height: 160px;
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 64px 0;
}

.section-alt {
    background: var(--light-gray);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--dark);
}

.section-title-center {
    text-align: center;
}

/* Module containers */
.module-box {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%);
    padding: 40px 0;
}

.page-header h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
}

.page-header p {
    color: rgba(255,255,255,0.8);
    text-align: center;
    margin-top: 8px;
    font-size: 16px;
}

/* ==================== CONTENT ==================== */
.content-section {
    padding: 48px 0;
    flex: 1;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.sidebar-box h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark);
}

/* Contact card */
.contact-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.contact-card h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-phone {
    font-size: 28px;
    font-weight: 700;
    color: var(--blue);
    display: block;
    margin-bottom: 8px;
}

.contact-label {
    color: var(--gray);
    font-size: 14px;
    display: block;
    margin-bottom: 16px;
}

.contact-info {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.8;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--dark);
    color: #fff;
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid #333;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #888;
    font-size: 14px;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-socials span {
    color: #888;
    font-size: 13px;
    margin-right: 4px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.footer-socials a:hover {
    background: var(--primary);
}

.footer-socials svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.footer-contacts {
    text-align: right;
}

.footer-phone a {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-left: 16px;
}

.footer-phone a:first-child {
    margin-left: 0;
}

.footer-contacts > span {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.footer-legal {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #555;
    font-size: 12px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-box {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .nav, .header-phone {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .header-inner {
        height: 56px;
    }
    
    .logo img {
        height: 28px;
    }
    
    .hero {
        padding: 32px 0 64px;
    }
    
    .hero h1 {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .hero-tabs {
        gap: 8px;
    }
    
    .hero-tab {
        padding: 10px 14px;
        min-width: 65px;
    }
    
    .hero-tab svg {
        width: 22px;
        height: 22px;
    }
    
    .hero-tab span {
        font-size: 10px;
    }
    
    .search-section {
        margin-top: -40px;
    }
    
    .search-box {
        padding: 16px;
        border-radius: 12px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .page-header {
        padding: 32px 0;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-contacts {
        text-align: center;
    }
    
    .footer-phone a {
        display: block;
        margin: 4px 0;
    }
    
    .content-sidebar {
        flex-direction: column;
    }
    
    .sidebar-box {
        min-width: 100%;
    }
}
