/* 
 * Профессиональный шаблон для юридических услуг - Строгий и современный
 * Четкая типографика, сдержанный дизайн, профессиональная эстетика
 */

/* Синхронизация переменных цветов */
.lawyer-site {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--site-bg);
    color: var(--site-text);
    overflow-x: hidden;
}

/* Навигация - строгая и профессиональная */
.lawyer-nav {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--site-border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.lawyer-nav.scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lawyer-nav .nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.lawyer-nav .nav-logo {
    color: var(--site-primary);
    font-weight: 600;
    font-size: 1.375rem;
    letter-spacing: -0.01em;
    text-decoration: none;
    position: relative;
}

.lawyer-nav .nav-logo small {
    display: block;
    color: var(--site-text-light);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

.lawyer-nav .nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.lawyer-nav .nav-menu a {
    color: var(--site-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.02em;
}

.lawyer-nav .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--site-primary);
    transition: width 0.3s ease;
}

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

.lawyer-nav .nav-menu a:hover::after {
    width: 100%;
}

/* Герой секция - сдержанная и представительная */
.lawyer-hero {
    padding: 8rem 1rem 6rem;
    text-align: left;
    position: relative;
    background: linear-gradient(135deg, var(--site-bg) 0%, var(--site-bg-alt) 100%);
    border-bottom: 1px solid var(--site-border-light);
    overflow: hidden;
}

/* Анимации для графических элементов */
@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

.lawyer-hero .header-logo {
    max-height: 80px;
    margin-bottom: 2.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.lawyer-hero .header-logo:hover {
    transform: scale(1.02);
}

.lawyer-hero .site-title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--site-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    max-width: 700px;
}

.lawyer-hero .site-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    color: var(--site-text-light);
    margin-bottom: 3rem;
    max-width: 650px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.site-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--site-primary);
    color: white;
    border: 2px solid var(--site-primary);
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.site-btn:hover {
    background-color: var(--site-accent);
    border-color: var(--site-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    color: white;
}

/* Секции - структурированные и читаемые */
.lawyer-section {
    padding: 6rem 1rem;
    background-color: var(--site-bg);
    position: relative;
}

.lawyer-section-alt {
    background-color: var(--site-bg-alt);
    position: relative;
}

.lawyer-section-alt::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--site-border-light), transparent);
}

.lawyer-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.lawyer-section .section-title {
    font-size: clamp(2rem, 6vw, 3.25rem);
    font-weight: 400;
    margin-bottom: 1rem;
    text-align: left;
    color: var(--site-primary);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.lawyer-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--site-text-light);
    text-align: left;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* Портфолио - структурированная сетка */
.lawyer-portfolio .portfolio-grid {
    display: grid;
    gap: 2.5rem;
}

.lawyer-portfolio .portfolio-item {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--site-border);
    transition: all 0.3s ease;
    position: relative;
}

.lawyer-portfolio .portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--site-primary-light);
}

.lawyer-portfolio .portfolio-image {
    /*height: 275px;*/
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lawyer-portfolio .portfolio-item:hover .portfolio-image {
    transform: scale(1.03);
}

.lawyer-portfolio .portfolio-overlay {
    background: white;
    padding: 2rem;
    border-top: 1px solid var(--site-border-light);
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--site-primary);
    line-height: 1.3;
}

.portfolio-description {
    color: var(--site-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Услуги - профессиональные карточки */
.lawyer-services .services-grid {
    display: grid;
    gap: 2rem;
}

.lawyer-services .service-card {
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--site-border);
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    gap: 1rem;
}

.lawyer-services .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--site-primary);
    border-radius: 8px 8px 0 0;
}

.lawyer-services .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.lawyer-services .service-icon {
    width: 70px;
    height: 70px;
    background: var(--site-primary);
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    transition: all 0.3s ease;
}

.lawyer-services .service-card:hover .service-icon {
    background: var(--site-accent);
    transform: scale(1.05);
}

.lawyer-services .service-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--site-text-light);
    line-height: 1.1;
}

.lawyer-services .service-description {
    color: var(--site-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-size: 0.875rem;
}

.lawyer-services .service-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--site-accent);
    margin-top: auto;
}

/* О себе - структурированный текст */
.lawyer-about .about-content {
    max-width: 800px;
    margin: 0;
}

.lawyer-about .about-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--site-text-light);
    margin-bottom: 2rem;
    letter-spacing: 0.01em;
}

.lawyer-about .about-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.lawyer-about .about-text p:last-child {
    margin-bottom: 0;
}

/* Контакты - организованные и доступные */
.lawyer-contacts .contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.lawyer-contacts .contact-item {
    background-color: white;
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--site-border);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.lawyer-contacts .contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: var(--site-primary-light);
}

.lawyer-contacts .contact-icon {
    width: 60px;
    height: 60px;
    background: var(--site-primary);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: all 0.3s ease;
}

.lawyer-contacts .contact-item:hover .contact-icon {
    background: var(--site-accent);
    transform: scale(1.05);
}

.lawyer-contacts .contact-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--site-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.lawyer-contacts .contact-value {
    color: var(--site-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

.lawyer-contacts .contact-value a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.lawyer-contacts .contact-value a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--site-primary);
    transition: width 0.3s ease;
}

.lawyer-contacts .contact-value a:hover::after {
    width: 100%;
}

/* Социальные сети - сдержанные */
.lawyer-contacts .social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.lawyer-contacts .social-link {
    width: 48px;
    height: 48px;
    background: white;
    border: 1px solid var(--site-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--site-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lawyer-contacts .social-link:hover {
    background: var(--site-primary);
    border-color: var(--site-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Футер - строгий и профессиональный */
.lawyer-footer {
    background: var(--site-primary);
    color: white;
    text-align: center;
    padding: 3rem 1rem;
    position: relative;
}

.lawyer-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.lawyer-footer p {
    margin: 0;
    font-weight: 400;
    opacity: 0.9;
    font-size: 0.95rem;
}

.lawyer-footer a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.lawyer-footer a:hover {
    opacity: 0.8;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

/* Анимации для появления элементов */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Адаптивность */
@media (max-width: 768px) {
    .lawyer-hero {
        padding: 6rem 0.75rem 4rem;
    }
    
    .lawyer-hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .lawyer-hero .hero-visual {
        height: 300px;
        order: -1;
    }
    
    .hero-graphic {
        transform: scale(0.8);
    }
    
    .lawyer-section {
        padding: 4rem 0.75rem;
    }
    
    .lawyer-portfolio .portfolio-grid,
    .lawyer-services .services-grid,
    .lawyer-contacts .contacts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .lawyer-services .service-card {
        padding: 1.5rem;
        display: block;
        text-align: center;
    }
    
    .lawyer-contacts .contact-item {
        padding: 2rem 1.5rem;
    }
    
    .lawyer-about .about-text {
        font-size: 1rem;
        text-align: left;
        line-height: 1.6;
    }
    
    .lawyer-footer {
        padding: 2.5rem 0.75rem;
    }
    
    .lawyer-nav .nav-menu {
        gap: 2rem;
    }
    
    .lawyer-nav .nav-logo::after {
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .lawyer-hero .site-title {
        font-size: 2rem;
    }
    
    .lawyer-nav .nav-logo {
        font-size: 1rem;
    }
    
    .lawyer-nav .nav-logo small {
        margin-bottom: 5px;
    }
    
    .lawyer-section .section-title {
        font-size: 1.75rem;
    }
    
    .lawyer-contacts .social-links {
        flex-wrap: wrap;
    }
    
    .lawyer-hero {
        padding: 5rem 0.5rem 3rem;
    }
    
    .lawyer-section {
        padding: 3rem 0.5rem;
    }
    
    .site-btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
    
    .hero-visual {
        height: 250px;
    }
    
    .graphic-element:nth-child(1) {
        width: 150px;
        height: 150px;
    }
    
    .graphic-element:nth-child(2) {
        width: 100px;
        height: 100px;
    }
    
    .graphic-element:nth-child(3) {
        width: 80px;
        height: 80px;
    }
}

/* Улучшенная ленивая загрузка */
.lazy-load {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Фокус для доступности */
.lawyer-site :focus-visible {
    outline: 2px solid var(--site-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Специфические стили для кнопок в юридическом стиле */
.site-btn.rounded {
    border-radius: 6px !important;
}

.site-btn.pill {
    border-radius: 50px !important;
}

.site-btn.square {
    border-radius: 4px !important;
}

.site-btn.solid {
    background: var(--site-primary) !important;
    border: 2px solid var(--site-primary) !important;
    border-radius: 6px !important;
    color: white !important;
}

.site-btn.solid:hover {
    background: var(--site-accent) !important;
    border-color: var(--site-accent) !important;
}

.site-btn.outline {
    background: transparent !important;
    border: 2px solid var(--site-primary) !important;
    color: var(--site-primary) !important;
}

.site-btn.outline:hover {
    background: var(--site-primary) !important;
    color: white !important;
}

.site-btn.gradient {
    background: linear-gradient(135deg, var(--site-primary) 0%, var(--site-accent) 100%) !important;
    border: none !important;
    color: white !important;
    border-radius: 6px !important;
}

.site-btn.gradient:hover {
    background: linear-gradient(135deg, var(--site-accent) 0%, var(--site-primary) 100%) !important;
    transform: translateY(-2px) !important;
}

/* Дополнительные профессиональные элементы */
.professional-badge {
    display: inline-block;
    background: var(--site-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.credentials-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.credentials-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--site-border-light);
    color: var(--site-text-light);
}

.credentials-list li:last-child {
    border-bottom: none;
}

.credentials-list li::before {
    content: '✓';
    color: var(--site-primary);
    font-weight: bold;
    margin-right: 0.75rem;
}

/* Улучшенная читаемость текста */
.lawyer-about .about-text,
.lawyer-services .service-description,
.portfolio-description {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Контрастные соотношения для доступности */
@media (max-width: 768px) {
    .lawyer-section .section-title {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }
    
    .lawyer-hero .site-title {
        font-size: clamp(1.875rem, 6vw, 2.5rem);
    }
}

/* Убираем сложные эффекты на мобильных */
@media (max-width: 768px) {
    .lawyer-portfolio .portfolio-item:hover,
    .lawyer-services .service-card:hover,
    .lawyer-contacts .contact-item:hover {
        transform: none;
    }
    
    .site-btn:hover {
        transform: none;
    }
    
    .graphic-element {
        animation: none;
    }
}

/* Поддержка prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .lawyer-nav .nav-logo,
    .lawyer-portfolio .portfolio-item,
    .lawyer-services .service-card,
    .lawyer-contacts .contact-item,
    .site-btn {
        transition: none;
    }
    
    .lazy-load {
        transition: opacity 0.3s ease;
    }
    
    .fade-in-up {
        animation: none;
        opacity: 1;
    }
    
    .graphic-element {
        animation: none;
    }
}