:root {
    --bg: #f7f9fc;
    --surface: #ffffff;
    --card: #ffffff;
    --text: #0b0b0b;
    --muted: #4b5563;
    --line: #e5e7eb;
    --accent: #2d7b6a;
    --accent-2: #ff6b35;
    --success: #16a34a;
    --danger: #dc2626;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.main-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--text);
}

/* Панель мессенджеров */
.messengers-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.messengers-panel.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.messengers-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.messengers-content {
    position: relative;
    background-color: white;
    border-radius: 16px;
    padding: 32px 24px;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.messengers-panel.open .messengers-content {
    transform: scale(1);
}

.messenger-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 1;
}

.messenger-close:hover {
    background: #e9ecef;
    color: #333;
}

.messengers-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
    text-align: center;
}

.messengers-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.messenger-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background-color: #fff;
    border-radius: 14px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 17px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.messenger-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.messenger-item .messenger-icon,
.messenger-item span {
    position: relative;
    z-index: 1;
}

.messenger-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-color: transparent;
    color: white;
}

.messenger-item:hover::before {
    opacity: 1;
}

/* Цвета для конкретных мессенджеров */
.messenger-item.telegram {
    border-color: #2AABEE;
}

.messenger-item.vk {
    border-color: #4C75A3;
}

.messenger-item.whatsapp {
    border-color: #25D366;
}

.messenger-item.telegram:hover::before {
    background: linear-gradient(135deg, #2AABEE, #229ED9);
}

.messenger-item.vk:hover::before {
    background: linear-gradient(135deg, #4C75A3, #3D5F8A);
}

.messenger-item.whatsapp:hover::before {
    background: linear-gradient(135deg, #25D366, #1DA851);
}

.messenger-icon {
    font-size: 24px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.messenger-item .messenger-icon i {
    transition: all 0.3s ease;
}

.messenger-item.telegram .messenger-icon {
    color: #2AABEE;
    background: rgba(42, 171, 238, 0.1);
}

.messenger-item.vk .messenger-icon {
    color: #4C75A3;
    background: rgba(76, 117, 163, 0.1);
}

.messenger-item.whatsapp .messenger-icon {
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

.messenger-item:hover .messenger-icon {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.messenger-item:hover .messenger-icon i {
    color: white;
}

/* Анимации */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.messengers-panel.open .messengers-content {
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.messengers-panel.open .messengers-backdrop {
    animation: fadeIn 0.3s ease;
}

/* Mobile bottom navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--line);
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-nav-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin: 0 auto;
}

.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: 16px;
    color: var(--muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 64px;
    min-width: 64px;
    flex: 1;
    position: relative;
}

.mobile-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.mobile-nav-btn:hover::before,
.mobile-nav-btn:active::before {
    opacity: 1;
}

.mobile-nav-btn.primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    box-shadow: 0 4px 12px rgba(46, 91, 255, 0.3);
    transform: translateY(-2px);
    min-width: 80px;
}

.mobile-nav-btn.primary::before {
    display: none;
}

.mobile-nav-btn[data-open-messengers] .mobile-nav-icon {
    color: #2AABEE;
}

.mobile-nav-btn[data-open-messengers]:hover .mobile-nav-icon {
    color: #229ED9;
}

.mobile-nav-btn[data-open-messengers]:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.mobile-nav-btn:hover {
    color: var(--text);
    transform: translateY(-1px);
}

.mobile-nav-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(46, 91, 255, 0.4);
}

.mobile-nav-btn:active {
    transform: translateY(0);
}

.mobile-nav-btn.primary:active {
    transform: translateY(-1px);
}

.mobile-nav-icon {
    font-size: 22px;
    line-height: 1;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-btn:hover .mobile-nav-icon {
    transform: scale(1.1);
}

.mobile-nav-btn.primary .mobile-nav-icon {
    transform: scale(1.15);
}

/* Sections */
.section {
    padding: 80px 0;
}

.section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 60px 0;
    color: var(--text);
}

.section.section-alt {
    background: linear-gradient(135deg, #f4fbf9 0%, #fff7f1 100%);
    border: 1px solid rgba(45, 123, 106, 0.08);
}

/* Hero section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f7f9fc 0%, #ffffff 100%);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../assets/images/lawxxx.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    pointer-events: none;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 24px 0;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 40px 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-form {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.consultation-form h3 {
    color: var(--text);
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 24px 0;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 123, 106, 0.1);
}

.privacy-notice {
    font-size: 0.875rem;
    color: var(--muted);
    text-align: center;
    margin-top: 16px;
}

.privacy-notice a {
    color: var(--accent);
    text-decoration: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    box-shadow: 0 4px 15px rgba(45, 123, 106, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 123, 106, 0.4);
}

.btn-secondary {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Cards */
.result-card, .case-card, .review-card, .team-card, .who-card, .why-card, .service-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.result-card:hover, .case-card:hover, .review-card:hover, .team-card:hover, .who-card:hover, .why-card:hover, .service-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(45, 123, 106, 0.1);
}

/* Grids */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.result-card {
    text-align: center;
    padding: 32px 24px;
}

.result-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.result-icon img {
    width: 60px;
    height: 60px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.result-card:hover .result-icon img {
    opacity: 1;
    transform: scale(1.1);
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
}

.result-label {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.case-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.case-media {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    background: var(--surface);
}

.case-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.case-card:hover .case-media img {
    transform: scale(1.05);
}

.case-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text);
    line-height: 1.4;
}

.case-meta {
    color: var(--accent);
    font-weight: 500;
}

.case-text {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex-grow: 1;
    font-size: 0.95rem;
}

.case-metric {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    margin-top: auto;
    display: inline-block;
    align-self: flex-start;
}

.reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.review-card {
    position: relative;
    padding: 24px;
}

.review-author {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.review-text {
    color: var(--muted);
    line-height: 1.6;
    font-style: italic;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.team-card {
    text-align: center;
}

.team-media {
    width: 100%;
    max-width: 300px;
    height: 300px;
    margin: 0 auto 24px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--line);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.team-media:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(45, 123, 106, 0.15);
    transform: translateY(-4px);
}

.team-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-media img {
    transform: scale(1.05);
}

.team-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text);
}

.team-role {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 8px;
}

.team-tags {
    color: var(--muted);
    font-size: 0.875rem;
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.who-card {
    text-align: center;
    padding: 32px 24px;
}

.who-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.who-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text);
}

.who-card p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--muted);
    font-weight: 500;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.why-card {
    text-align: center;
    padding: 32px 24px;
}

.why-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.why-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text);
}

.why-card p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.process-timeline {
    margin-top: 40px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-2));
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}

.process-step:nth-child(odd) {
    flex-direction: row;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    padding: 0 40px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    margin: 0 20px;
    transition: all 0.3s ease;
}

.step-content:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text);
}

.step-content p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.service-card {
    padding: 32px 24px;
    text-align: center;
}

.service-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.service-icon img {
    width: 60px;
    height: 60px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon img {
    opacity: 1;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text);
}

.service-card p {
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

.contacts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--accent);
    transform: translateX(8px);
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--text);
}

.contact-details p {
    color: var(--muted);
    margin: 0;
    font-size: 0.875rem;
}

.contact-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
}

.contact-form-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.contact-form-icon img {
    width: 60px;
    height: 60px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.contact-form:hover .contact-form-icon img {
    opacity: 1;
    transform: scale(1.1);
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text);
}

.contact-form p {
    color: var(--muted);
    margin: 0 0 24px 0;
    line-height: 1.6;
}

.faq-list {
    margin-top: 40px;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--muted);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 20px;
}

.articles-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.article-preview-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-preview-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(45, 123, 106, 0.12);
}

.article-preview-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.article-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-preview-card:hover .article-preview-image img {
    transform: scale(1.1);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--surface), var(--card));
    font-size: 3rem;
    color: var(--muted);
}

.article-preview-content {
    padding: 24px;
}

.article-preview-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.article-category {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

.article-date {
    color: var(--muted);
}

.article-preview-title {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.article-preview-title a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-preview-title a:hover {
    color: var(--accent);
}

.article-preview-excerpt {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.article-preview-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.article-preview-link:hover {
    color: var(--accent-2);
}

.articles-more {
    text-align: center;
    margin-top: 40px;
}

.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.no-articles p {
    margin-bottom: 20px;
    font-size: 18px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(6px);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal[aria-hidden="false"] .modal-dialog {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--surface);
    color: var(--text);
}

.modal-description {
    color: var(--muted);
    margin-bottom: 24px;
    text-align: center;
}

.form {
    display: grid;
    gap: 16px;
}

.form label {
    display: grid;
    gap: 8px;
}

.form label span {
    color: var(--text);
    font-weight: 500;
}

.form input,
.form textarea {
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form input:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45, 123, 106, 0.15);
}

.form-note {
    color: var(--success);
    text-align: center;
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 60px 0 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: var(--text);
}

.legal {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
}

.legal a {
    color: var(--accent);
    text-decoration: none;
}

.contact-info {
    display: grid;
    gap: 8px;
}

.contact-info div {
    color: var(--muted);
    font-size: 0.875rem;
}

/* Image Content Blocks */
.image-content-section {
    padding: 100px 0;
}

.image-content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.image-content-left {
    grid-template-columns: 1fr 1fr;
}

.image-content-right {
    grid-template-columns: 1fr 1fr;
}

.image-content-right .image-content-image {
    order: 2;
}

.image-content-right .image-content-text {
    order: 1;
}

.image-content-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.image-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.image-content-image:hover img {
    transform: scale(1.05);
}

.image-content-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: var(--text);
    line-height: 1.2;
}

.image-content-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 20px 0;
}

.image-content-text .btn {
    margin-top: 32px;
}

/* Адаптивность для панели мессенджеров */
@media (max-width: 480px) {
    .messengers-content {
        padding: 28px 20px;
        margin: 20px;
        max-width: calc(100% - 40px);
    }
    
    .messengers-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .messenger-item {
        padding: 16px 18px;
        font-size: 16px;
    }
    
    .messenger-icon {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}

/* Responsive design */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .contacts-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .process-step {
        flex-direction: row !important;
        padding-left: 60px;
    }
    
    .step-content {
        margin: 0;
    }
}

@media (max-width: 968px) {
    .image-content-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .image-content-right .image-content-image,
    .image-content-right .image-content-text {
        order: initial;
    }
    
    .image-content-text h2 {
        font-size: 2rem;
    }
    
    .image-content-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    .team-media {
        max-width: 250px;
        height: 250px;
    }
    
    .case-media {
        height: 180px;
    }
    
    .results-grid, .cases-grid, .reviews-list, .team-grid, .who-grid, .why-grid, .services-grid, .articles-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mobile-nav {
        display: block;
    }
    
    .main-nav {
        display: none;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .hero-form {
        padding: 24px;
    }
    
    .consultation-form h3 {
        font-size: 20px;
    }
    
    .modal-dialog {
        margin: 20px;
        padding: 24px;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .contact-form h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 80px 0 50px;
    }
    
    .hero-form {
        padding: 24px;
    }
    
    .hero-content h1 {
        font-size: 2.3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .team-media {
        max-width: 200px;
        height: 200px;
        margin-bottom: 16px;
    }
    
    .case-media {
        height: 160px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .modal-dialog {
        margin: 20px;
        padding: 24px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section h2 {
        font-size: 1.75rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-2);
}