/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    margin-bottom: 80px;
    padding: 0 20px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* ===== CARDS GRID ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    height: 100%;
}

.card:hover {
    border-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-features {
    list-style: none;
    margin-top: 20px;
}

.card-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
    font-size: 0.9rem;
}

.card-features li:before {
    content: "✓ ";
    color: #2ecc71;
    font-weight: bold;
    margin-right: 8px;
}

.card::after {
    content: "→";
    position: absolute;
    right: 30px;
    top: 40px;
    color: #666;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.card:hover::after {
    transform: translateX(5px);
}

/* ===== EXPERTISE SECTION ===== */
.expertise-section {
    margin: 60px 0;
}

.expertise-section h3 {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 500;
    font-size: 1.5rem;
    color: #1a1a1a;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.expertise-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px 25px;
    transition: all 0.3s ease;
}

.expertise-card:hover {
    border-color: #1a1a1a;
    transform: translateY(-2px);
}

.expertise-card h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.expertise-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 60px 0 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 80px;
}

.footer p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .container {
        padding: 40px 15px;
    }
    
    .header {
        margin-bottom: 50px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card {
        padding: 30px 25px;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .expertise-card {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header p {
        font-size: 1.1rem;
    }
    
    .card {
        padding: 25px 20px;
    }
}

/* ===== CUSTOM HEADER BUTTONS ===== */

/* ===== FIX HEADER BUTTONS ===== */
.custom-header-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.custom-header-buttons a.custom-header-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    height: 60px;
    padding: 15px 25px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a1a1a !important;
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.custom-header-buttons a.custom-header-card:hover {
    color: #1a1a1a !important;
    background: #ffffff;
    border-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none !important;
}

.custom-header-buttons a.custom-header-card::after {
    content: "→";
    margin-left: 8px;
    color: #666;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.custom-header-buttons a.custom-header-card:hover::after {
    transform: translateX(5px);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .custom-header-buttons {
        gap: 15px;
        margin-top: 30px;
    }
    
    .custom-header-buttons a.custom-header-card {
        min-width: 140px;
        height: 55px;
        padding: 12px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .custom-header-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .custom-header-buttons a.custom-header-card {
        width: 200px;
        min-width: auto;
    }
}