/* Базовые стили и улучшения */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #10b981;
    --accent: #f97316;
    --dark: #111827;
    --gray: #6b7280;
    --light: #f9fafb;
    --card-bg: #ffffff;
    --gradient: linear-gradient(135deg, #2563eb 0%, #10b981 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: 0.2s ease-in-out;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6; color: var(--dark);
    background: #f1f5f9;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.container { width: 92%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; }
h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-bottom: 1.5rem;
}
h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}
h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 4px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}
.btn-primary { background: var(--gradient); color: white; }
.btn-accent { background: var(--accent); color: white; }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-large { padding: 16px 32px; font-size: 1.1rem; }
.btn-whatsapp { background: #25D366; color: white; }
.btn-whatsapp:hover { background: #128C7E; }

/* Шапка */
header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo {
    font-size: 1.25rem; font-weight: 800;
    display: flex; align-items: center; gap: 6px;
    color: var(--dark); text-decoration: none;
}
.logo-icon { display: flex; align-items: center; color: var(--primary); }
.logo span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.mobile-menu-btn { background: none; border: none; cursor: pointer; color: var(--primary); display: flex; }
nav ul {
    position: fixed; top: 60px; left: 0; width: 100%; background: white;
    flex-direction: column; align-items: center; padding: 1.5rem 0;
    box-shadow: var(--shadow-lg); transform: translateY(-150%);
    transition: transform 0.3s ease; z-index: 999; list-style: none;
}
nav ul.active { transform: translateY(0); }
nav ul li { margin: 0.5rem 0; }
nav ul li a { color: var(--dark); text-decoration: none; font-weight: 600; font-size: 1.1rem; padding: 0.5rem 1rem; }
nav ul li a:hover { color: var(--primary); }

/* Главный экран */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #065f46 100%);
    color: white; text-align: center; padding: 7rem 0 4rem; margin-top: 60px;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.08) 0%, transparent 60%);
}
.hero h1 { color: white; -webkit-text-fill-color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.hero p { font-size: 1.2rem; margin-bottom: 2rem; color: rgba(255,255,255,0.9); position: relative; }
.phone-large {
    font-size: 1.8rem; font-weight: 700; margin: 2rem 0; display: inline-block;
    background: rgba(255,255,255,0.15); padding: 0.6rem 2rem; border-radius: 50px;
    backdrop-filter: blur(8px); position: relative;
}
.phone-large a { color: white; text-decoration: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* Карточки */
.services-grid, .blog-grid, .proof-grid, .price-table {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2rem;
}
.service-card, .blog-card, .proof-item, .price-item {
    background: var(--card-bg); border-radius: var(--radius-md); padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm); text-align: center; transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}
.service-card:hover, .blog-card:hover, .price-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-icon, .proof-icon { font-size: 2.5rem; margin-bottom: 1rem; color: var(--primary); display: inline-flex; }
.price-value { font-size: 2rem; font-weight: 700; color: var(--primary); }

/* О мастере */
.about-content { display: flex; flex-direction: column; gap: 2rem; align-items: center; margin-top: 2rem; }
@media (min-width: 768px) { .about-content { flex-direction: row; } }
.about-text { flex: 1; }
.about-image { flex: 1; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); max-height: 400px; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }

/* Контакты и соцсети */
.contact-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; background: white; padding: 1.2rem 1.5rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.contact-icon { font-size: 1.8rem; color: var(--primary); }
.social-links { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; justify-content: center; }
.social-btn {
    color: white; padding: 0.5rem 1.2rem; border-radius: 30px;
    text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
    transition: var(--transition);
}
.social-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.social-whatsapp { background: #25D366; }
.social-telegram { background: #0088cc; }
.social-vk { background: #0077FF; }

footer {
    background: var(--dark); color: #d1d5db; padding: 3rem 0 2rem; margin-top: 4rem;
}
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-section h3 { color: white; margin-bottom: 1rem; font-size: 1.2rem; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.5rem; }
.footer-section a { color: #9ca3af; text-decoration: none; }
.footer-section a:hover { color: white; }
.copyright { border-top: 1px solid #374151; padding-top: 1.5rem; text-align: center; font-size: 0.9rem; }

/* Плавающие кнопки */
.floating-call {
    position: fixed; bottom: 20px; left: 20px; width: 56px; height: 56px;
    background: var(--gradient); border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: white;
    box-shadow: var(--shadow-md); z-index: 999; animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
.back-to-top {
    position: fixed; bottom: 20px; right: 20px; width: 56px; height: 56px;
    background: var(--primary); color: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; }

@media (max-width: 480px) {
    .hero { padding: 5rem 0 3rem; }
    .phone-large { font-size: 1.3rem; padding: 0.4rem 1.5rem; }
}
