/* ----- Базовые стили ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a1a;
    line-height: 1.5;
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ----- Шапка и меню ----- */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ----- Hero секция ----- */
.hero-section {
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-title br {
    display: none;
}

@media (min-width: 768px) {
    .hero-title br {
        display: block;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 1.5rem auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----- Кнопки ----- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ----- Секции ----- */
.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background: #f8fafc;
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
}

/* ----- Сетка карточек ----- */
.expertise-grid,
.practices-grid,
.projects-grid,
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.expertise-card,
.practice-card,
.project-card,
.video-card {
    background: #fff;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
    text-align: center;
    border: 1px solid #eef2f6;
}

.expertise-card:hover,
.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.1);
}

.expertise-card h3,
.practice-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.expertise-card p,
.practice-card p {
    color: #555;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ----- Обо мне ----- */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-photo img {
    width: 100%;
    max-width: 280px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-text {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.detail-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    text-align: center;
    border: 1px solid #eef2f6;
}

.detail-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* ----- Футер и цветовой селектор ----- */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-colors {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.color-dot:hover {
    transform: scale(1.1);
}

.color-blue { background: #01579b; }
.color-orange { background: #e67e22; }
.color-green { background: #27ae60; }

/* ----- Адаптив ----- */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 1rem;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: white;
        padding: 1.5rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .hero-section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .expertise-grid,
    .practices-grid {
        grid-template-columns: 1fr;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
