/* styles.css - Общие стили для всех страниц */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #2D5A3D;
    --accent-gold: #D4AF37;
    --dark-green: #1A3A2A;
    --light-green: #E8F5E8;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #2D5A3D 0%, #1A3A2A 100%);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--white);
    overflow-x: hidden;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(45, 90, 61, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(45, 90, 61, 0.2);
}

.header.scrolled {
    background: rgba(45, 90, 61, 1);
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 48px;
    height: 37px;
    background-image: url('images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.cta-button, .back-button {
    background: var(--accent-gold);
    color: var(--dark-green);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    white-space: nowrap;
}

.back-button {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.cta-button:hover, .back-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="40" cy="60" r="1.5" fill="rgba(255,255,255,0.05)"/><circle cx="60" cy="80" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.6;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
    min-height: 600px;
}

.hero-text {
    max-width: 100%;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-lawyer-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 800px;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 700px;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--dark-green);
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
    white-space: nowrap;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-green);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Background variations */
.bg-light {
    background: linear-gradient(45deg, #f8fffe 0%, #e8f5e8 100%);
}

.bg-white {
    background: var(--white);
}

.bg-dark {
    background: var(--gradient);
    color: var(--white);
}

.bg-dark .section-title {
    color: var(--white);
}

.bg-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--white);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(45, 90, 61, 0.1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(45, 90, 61, 0.3);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-green);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.card-features {
    list-style: none;
    margin-bottom: 2rem;
}

.card-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.card-features li::before {
    content: '✓';
    background: var(--primary-green);
    color: var(--white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.7rem;
    flex-shrink: 0;
}

/* Service Color Schemes */
/* Фиолетовый - военка (СВО) */
.service-military::before {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

.service-military .card-icon {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
}

/* Оранжевый - банки */
.service-banks::before {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
}

.service-banks .card-icon {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
}

/* Розовый - семейка */
.service-family::before {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

.service-family .card-icon {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

/* Зеленый - банкротство */
.service-bankruptcy::before {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.service-bankruptcy .card-icon {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

/* Розовый - наследство */
.service-inheritance::before {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

.service-inheritance .card-icon {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

/* Розовый - жилищка */
.service-housing::before {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

.service-housing .card-icon {
    background: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
}

/* Голубой - ЗПП */
.service-consumer::before {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
}

.service-consumer .card-icon {
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
}

/* Желтый - миграция */
.service-migration::before {
    background: linear-gradient(135deg, #EAB308 0%, #CA8A04 100%);
}

.service-migration .card-icon {
    background: linear-gradient(135deg, #EAB308 0%, #CA8A04 100%);
}

/* Желтый - социалка */
.service-social::before {
    background: linear-gradient(135deg, #EAB308 0%, #CA8A04 100%);
}

.service-social .card-icon {
    background: linear-gradient(135deg, #EAB308 0%, #CA8A04 100%);
}

/* Светло коричневый - приставы */
.service-bailiffs::before {
    background: linear-gradient(135deg, #A16207 0%, #92400E 100%);
}

.service-bailiffs .card-icon {
    background: linear-gradient(135deg, #A16207 0%, #92400E 100%);
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: var(--gradient);
    color: var(--white);
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 5rem;
}

.contact h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.contact-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 2.5rem;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.contact-item h4 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-item p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-cta {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.contact-cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
}

.contact-cta p {
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.phone-button {
    background: var(--accent-gold);
    color: var(--dark-green);
    padding: 1.2rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.phone-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

/* Footer */
.footer {
    background: var(--dark-green);
    padding: 3rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-lawyer-image {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .cta-buttons,
    .contact-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .card {
        padding: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .section-container {
        padding: 0 1rem;
    }

    .hero-container {
        padding: 8rem 1rem 4rem;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-lawyer-image {
        max-width: 250px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}