/* ================== CSS Variables ================== */
:root {
    --primary: #0f766e;
    --primary-dark: #0d5c56;
    --primary-light: #14b8a6;
    --secondary: #059669;
    --accent: #10b981;
    
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    --transition-fast: 150ms ease;
    --transition: 250ms ease;
    --transition-slow: 350ms ease;
    
    --container-max: 1280px;
    --header-height: 80px;
}

/* ================== Reset & Base ================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ================== Container ================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* ================== Typography ================== */
.section-header {
    margin-bottom: 48px;
}

.section-header.center {
    text-align: center;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 18px;
    color: var(--gray-600);
    max-width: 600px;
}

.section-header.center .section-desc {
    margin: 0 auto;
}

/* ================== Buttons ================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--white);
    color: var(--gray-800);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-full {
    width: 100%;
}

/* ================== Header ================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
}

.header-inner {
    padding: 16px 0;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    max-width: calc(var(--container-max) - 48px);
    margin: 0 auto;
}

.header-logo img {
    height: 56px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
    transition: color var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    display: inline-flex;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.header-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* Burger Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    transition: all var(--transition);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 100px;
    left: 16px;
    right: 16px;
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-2xl);
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-link {
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.mobile-link:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.mobile-cta {
    margin-top: 8px;
    padding: 14px 16px;
    background: var(--primary);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius-lg);
}

@media (max-width: 1024px) {
    .header-nav,
    .header-cta {
        display: none;
    }
    
    .burger {
        display: flex;
    }
    
    .mobile-nav {
        display: flex;
    }
}

/* ================== Hero Section ================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('images/oblo.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 118, 110, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
}

.badge-icon {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.title-line.accent {
    color: var(--primary-light);
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scrollBounce 1.5s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(8px); opacity: 0.3; }
}

@media (max-width: 768px) {
    .hero {
        padding: 140px 0 60px;
        min-height: auto;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .hero-scroll {
        display: none;
    }
}

/* ================== Services Section ================== */
.services-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.services-slider-wrapper {
    position: relative;
    padding: 0 60px;
}

.services-window {
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.services-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card {
    flex: 0 0 calc(33.333% - 16px);
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.service-desc {
    font-size: 15px;
    color: var(--gray-600);
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition);
}

.service-link:hover {
    gap: 10px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    transition: all var(--transition);
    z-index: 10;
}

.slider-arrow:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.left {
    left: 0;
}

.slider-arrow.right {
    right: 0;
}

.slider-arrow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background: var(--gray-300);
    border-radius: 50%;
    transition: all var(--transition);
    cursor: pointer;
}

.slider-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 5px;
}

@media (max-width: 1024px) {
    .service-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }
    
    .services-slider-wrapper {
        padding: 0 40px;
    }
    
    .service-card {
        flex: 0 0 100%;
    }
}

/* ================== About Section ================== */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text {
    margin: 24px 0;
}

.about-text p {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.image-frame img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.experience-badge {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: var(--primary);
    color: var(--white);
    padding: 24px 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
}

.exp-number {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-image {
        order: -1;
    }
    
    .image-frame img {
        height: 350px;
    }
    
    .experience-badge {
        bottom: 16px;
        left: 16px;
        padding: 16px 24px;
    }
    
    .exp-number {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 60px 0;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
}

/* ================== Licenses Section ================== */
.licenses-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-200);
}

.licenses-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 24px;
}

.licenses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.license-card {
    cursor: pointer;
    transition: transform var(--transition);
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.license-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.license-image {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 3/4;
    background: var(--gray-100);
}

.license-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.license-card:hover .license-image img {
    transform: scale(1.05);
}

.license-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 118, 110, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.license-card:hover .license-overlay {
    opacity: 1;
}

.license-zoom {
    font-size: 40px;
    filter: grayscale(100%) brightness(200%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.license-caption {
    margin-top: 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-700);
    text-align: center;
    padding: 0 12px 16px;
}

/* Адаптивность для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    .licenses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .license-image {
        aspect-ratio: 3/4;
    }
    
    .license-modal-content {
        max-width: 95vw;
    }
    
    .license-modal-content img {
        max-height: 80vh;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .licenses-section {
        margin-top: 32px;
        padding-top: 24px;
    }
    
    .licenses-title {
        text-align: center;
        font-size: 18px;
    }
    
    .licenses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        max-width: 100%;
        margin: 0;
    }
    
    .license-card {
        border-radius: var(--radius-lg);
    }
    
    .license-image {
        aspect-ratio: 3/4;
        border-radius: var(--radius-lg);
    }
    
    .license-zoom {
        font-size: 32px;
    }
    
    .license-caption {
        font-size: 13px;
        margin-top: 12px;
        padding: 0 8px 12px;
    }
    
    .license-modal {
        padding: 16px;
        align-items: center;
    }
    
    .license-modal-content {
        max-width: 100%;
        max-height: 80vh;
    }
    
    .license-modal-content img {
        max-height: 75vh;
        border-radius: var(--radius-md);
    }
    
    .license-modal .modal-close {
        top: -50px;
        right: 0;
        width: 40px;
        height: 40px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .licenses-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .license-image {
        aspect-ratio: 4/3;
    }
}

/* License Modal */
.license-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    padding: 0;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.license-modal-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
}

.license-modal .modal-close {
    top: -50px;
    right: 0;
    background: var(--white);
    color: var(--gray-800);
    width: 44px;
    height: 44px;
    font-size: 28px;
}

/* ================== Info Sections ================== */
.info-sections {
    padding: 100px 0;
    background: var(--gray-50);
}

.info-block {
    background: var(--white);
    padding: 48px;
    border-radius: var(--radius-2xl);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.info-block.dark {
    background: var(--dark);
    color: var(--white);
}

.info-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.info-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.info-tag {
    padding: 12px 20px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition);
}

.info-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--white);
}

.hazard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.hazard-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
}

.hazard-class {
    width: 56px;
    height: 56px;
    background: var(--accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
}

.hazard-name {
    font-size: 16px;
    font-weight: 500;
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.quality-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.quality-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.quality-icon svg {
    width: 18px;
    height: 18px;
}

.quality-item span {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.5;
}

@media (max-width: 1024px) {
    .quality-grid {
        grid-template-columns: 1fr;
    }
    
    .hazard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .info-sections {
        padding: 60px 0;
    }
    
    .info-block {
        padding: 24px;
    }
}

/* ================== Equipment Section ================== */
.equipment-section {
    padding: 100px 0;
    background: var(--white);
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.equipment-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid var(--gray-100);
}

.equipment-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.equipment-image {
    height: 200px;
    background: var(--gray-100);
    overflow: hidden;
}

.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.equipment-card:hover .equipment-image img {
    transform: scale(1.05);
}

.equipment-body {
    padding: 24px;
}

.equipment-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.equipment-specs {
    margin-bottom: 20px;
}

.equipment-specs li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
}

.equipment-specs li:last-child {
    border-bottom: none;
}

.equipment-specs span {
    color: var(--gray-500);
}

@media (max-width: 1024px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .equipment-section {
        padding: 60px 0;
    }
    
    .equipment-grid {
        grid-template-columns: 1fr;
    }
}

/* ================== Order Section ================== */
.order-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    color: var(--white);
}

.order-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.order-section .section-tag {
    background: var(--primary-light);
}

.order-section .section-title {
    color: var(--white);
}

.order-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin: 24px 0 32px;
}

.order-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.benefit-text {
    display: flex;
    flex-direction: column;
}

.benefit-text strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
}

.benefit-text span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.order-services h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
}

.order-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--white);
    text-align: left;
    transition: all var(--transition);
    width: 100%;
}

.order-item:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateX(8px);
}

.order-icon {
    font-size: 24px;
}

.order-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.order-arrow {
    font-size: 18px;
    opacity: 0.5;
    transition: all var(--transition);
}

.order-item:hover .order-arrow {
    opacity: 1;
    transform: translateX(4px);
}

@media (max-width: 1024px) {
    .order-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .order-section {
        padding: 60px 0;
    }
}

/* ================== Contacts Section ================== */
.contacts-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.contact-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-card.main {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.contact-card.wide {
    grid-column: span 2;
}

.contact-icon {
    width: 56px;
    height: 56px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

.contact-link {
    display: inline-flex;
    margin-top: auto;
    padding-top: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.contact-name {
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 8px;
}

.contact-phone,
.contact-email {
    display: inline-block;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 8px;
}

.contact-phone:hover,
.contact-email:hover {
    color: var(--primary-dark);
}

.contact-telegram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #0088cc;
    color: white;
    border-radius: 50%;
    margin-top: 12px;
    transition: all 0.2s ease;
}

.contact-telegram:hover {
    background: #0099dd;
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-card.main {
        grid-row: span 1;
    }
    
    .contact-card.wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .contacts-section {
        padding: 60px 0;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card.wide {
        grid-column: span 1;
    }
}

/* ================== Footer ================== */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 56px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.footer-nav h4,
.footer-contacts h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-nav a {
    display: block;
    padding: 8px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-contacts p,
.footer-contacts a {
    display: block;
    padding: 4px 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contacts a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 32px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer-legal-links a:hover {
    color: var(--white);
}

.footer-legal-links .separator {
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 48px 0 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

/* ================== Modal ================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 48px);
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    overflow: auto;
    transform: scale(0.95) translateY(20px);
    transition: all var(--transition);
    margin: auto;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gray-600);
    transition: all var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.modal-form {
    padding: 48px;
    overflow-y: auto;
    max-height: calc(100vh - 48px);
}

.modal-form h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.company-fields {
    display: none;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.company-fields.visible {
    display: block;
}

/* ============================================
   УЛУЧШЕННЫЕ СТИЛИ ДЛЯ ЧЕКБОКСА СОГЛАСИЯ
   ============================================ */

/* Основной контейнер группы согласия */
.consent-group {
    margin: 24px 0;
    position: relative;
}

/* Лейбл с чекбоксом - увеличенная область касания */
.consent-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 16px !important;
    cursor: pointer;
    margin-bottom: 0 !important;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    min-height: 44px;
    padding: 8px 0;
    outline: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Скрываем нативный чекбокс полностью */
.consent-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

/* Кастомный чекбокс с увеличенной областью */
.consent-label .checkbox-custom {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    margin: 0;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Увеличенная невидимая область касания для мобильных */
.consent-label .checkbox-custom::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: transparent;
    display: block;
    z-index: 1;
}

@media (min-width: 769px) {
    .consent-label .checkbox-custom::before {
        display: none;
    }
}

/* Состояние checked */
.consent-label input[type="checkbox"]:checked + .checkbox-custom,
.consent-label.has-checked .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

/* Галочка */
.consent-label .checkbox-custom::after {
    content: '';
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
    margin-top: -2px;
}

.consent-label input[type="checkbox"]:checked + .checkbox-custom::after,
.consent-label.has-checked .checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}

/* Галочка - основной элемент */
.consent-label .checkbox-custom .checkmark {
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
    margin-top: -2px;
    pointer-events: none;
}

.consent-label input[type="checkbox"]:checked + .checkbox-custom .checkmark,
.consent-label.has-checked .checkbox-custom .checkmark {
    transform: rotate(45deg) scale(1);
}

/* Фокус - видимый индикатор */
.consent-label input[type="checkbox"]:focus + .checkbox-custom,
.consent-label.focused .checkbox-custom {
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.25);
}

/* Hover эффект */
.consent-label:hover .checkbox-custom {
    border-color: var(--primary);
}

/* Активное состояние (при нажатии) */
.consent-label .checkbox-custom:active {
    transform: scale(0.9);
}

/* Текст согласия */
.consent-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--gray-600);
    flex: 1;
}

.consent-text a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.consent-text a:hover {
    color: var(--primary-dark);
}

/* Сообщение об ошибке */
.consent-error {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    color: #dc2626;
    font-size: 13px;
}

.consent-error.visible {
    display: flex;
}

/* Мобильные стили для чекбокса */
@media (max-width: 768px) {
    .consent-group {
        margin: 20px 0;
    }
    
    .consent-label {
        gap: 14px;
        padding: 12px 0;
        min-height: 48px;
    }
    
    .consent-label .checkbox-custom {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        border-width: 2px;
    }
    
    .consent-label .checkbox-custom::before {
        inset: -16px;
    }
    
    .consent-text {
        font-size: 13px;
        line-height: 1.5;
    }
    
    /* Увеличенная область касания на мобильных - только на чекбокс */
    .consent-label .checkbox-custom::after {
        content: '';
        position: absolute;
        inset: -12px;
        background: transparent;
        z-index: 0;
    }
}

@media (max-width: 480px) {
    .consent-label .checkbox-custom {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }
    
    .consent-label .checkbox-custom::after {
        width: 8px;
        height: 16px;
        border-width: 0 3px 3px 0;
    }
}

/* Визуальная обратная связь при нажатии для тач-устройств */
@media (pointer: coarse) {
    .consent-label {
        padding: 16px 0;
    }
    
    .consent-label .checkbox-custom {
        transition: all 0.15s ease;
    }
    
    .consent-label.pressed .checkbox-custom {
        transform: scale(0.85);
        background: var(--gray-100);
    }
    
    .consent-label.pressed.has-checked .checkbox-custom {
        background: var(--primary-dark);
    }
}

/* ============================================
   МОДАЛЬНЫЕ ОКНА ДОКУМЕНТОВ
   ============================================ */

.privacy-modal-content {
    max-width: 800px;
    max-height: 85vh;
}

/* Повышенный z-index для модальных окон поверх формы заказа */
#privacyModal,
#personalDataModal {
    z-index: 10000;
}

#orderModal {
    z-index: 9999;
}

.privacy-modal-content .modal-form {
    padding: 40px;
}

.privacy-modal-content h2 {
    font-size: 24px;
    margin-bottom: 24px;
}

.privacy-content {
    overflow-y: auto;
    max-height: 60vh;
    padding-right: 16px;
}

.privacy-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 24px 0 12px;
}

.privacy-content p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.privacy-content ul {
    margin: 12px 0;
    padding-left: 20px;
}

.privacy-content li {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: 8px;
    list-style: disc;
}

@media (max-width: 768px) {
    .privacy-modal-content .modal-form {
        padding: 24px 20px;
    }
    
    .privacy-content {
        max-height: 55vh;
    }
}

.modal-success {
    display: none;
    padding: 64px 48px;
    text-align: center;
}

.modal-success.visible {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 24px;
}

.modal-success h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.modal-success p {
    font-size: 16px;
    color: var(--gray-600);
}

@media (max-width: 768px) {
    .modal-form {
        padding: 32px 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ================== Animations ================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================== Scrollbar ================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ================== Selection ================== */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* ================== Additional Mobile Optimizations ================== */

/* Touch-friendly tap targets for mobile */
@media (max-width: 768px) {
    /* Увеличиваем размеры кликабельных элементов */
    .nav-link,
    .mobile-link,
    .header-cta,
    .btn,
    .service-link,
    .order-item,
    .contact-phone,
    .contact-email,
    .contact-link,
    .footer-nav a {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Увеличиваем отступы для touch */
    .mobile-link {
        padding: 16px 20px;
    }
    
    /* Улучшаем читаемость на мобильных */
    body {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
    }
    
    /* Улучшаем отображение форм на iOS */
    input, select, textarea {
        font-size: 16px;
        -webkit-appearance: none;
        border-radius: 8px;
    }
    
    /* Убираем автоматическое масштабирование при фокусе на iOS */
    input:focus, select:focus, textarea:focus {
        font-size: 16px;
    }
    
    /* Улучшаем скролл на iOS */
    .modal-content, .mobile-nav {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Улучшаем отображение слайдера на мобильных */
    .services-slider-wrapper {
        padding: 0 20px;
    }
    
    .slider-arrow {
        width: 44px;
        height: 44px;
    }
    
    /* Улучшаем hero section на мобильных */
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Улучшаем отображение статистики */
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    .stat-item {
        text-align: center;
    }
    
    /* Улучшаем карточки контактов */
    .contact-card {
        padding: 24px;
    }
    
    .contact-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    /* Улучшаем модальное окно на мобильных */
    .modal {
        padding: 16px;
        align-items: flex-end;
    }
    
    .modal-content {
        max-height: calc(100vh - 32px);
        border-radius: 20px 20px 0 0;
    }
    
    .modal.active .modal-content {
        border-radius: 20px;
    }
    
    .modal-form {
        padding: 24px 20px;
        max-height: calc(100vh - 64px);
    }
    
    /* Улучшаем отображение заголовков */
    .section-title {
        font-size: clamp(24px, 6vw, 32px);
        word-wrap: break-word;
        hyphens: auto;
    }
    
    /* Улучшаем отображение спецтехники */
    .equipment-image {
        height: 160px;
    }
    
    /* Улучшаем кнопки заказа */
    .order-item {
        padding: 16px 20px;
    }
    
    .order-icon {
        font-size: 20px;
    }
    
    /* Улучшаем бургер меню */
    .burger {
        padding: 12px;
        margin: -8px;
    }
    
    .burger span {
        width: 28px;
        height: 3px;
    }
    
    /* Улучшаем отображение преимуществ */
    .benefit-item {
        padding: 16px;
    }
    
    .benefit-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Оптимизации для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-stats {
        gap: 32px;
    }
    
    .services-slider-wrapper {
        padding: 0 50px;
    }
    
    .equipment-grid {
        gap: 20px;
    }
    
    .equipment-image {
        height: 180px;
    }
}

/* Улучшения для iOS Safari */
@supports (-webkit-touch-callout: none) {
    /* CSS специфичный для iOS устройств */
    .modal-content {
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }
    
    .modal.active .modal-content {
        transform: translateY(0);
    }
    
    /* Фикс для нижней панели iOS */
    @media (max-width: 768px) {
        .modal {
            padding-bottom: env(safe-area-inset-bottom, 20px);
        }
        
        .site-footer {
            padding-bottom: calc(32px + env(safe-area-inset-bottom, 0));
        }
    }
}

/* Улучшения для Android Chrome */
@media screen and (-webkit-min-device-pixel-ratio:0) and (min-resolution:.001dpcm) {
    /* Фикс для Chrome на Android */
    body {
        -webkit-tap-highlight-color: rgba(15, 118, 110, 0.1);
    }
}

/* Предотвращаем горизонтальный скролл на всех устройствах */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Улучшаем производительность анимаций */
.hero-bg,
.service-card,
.equipment-card,
.contact-card {
    will-change: transform;
    transform: translateZ(0);
}

/* Отключаем анимации для пользователей с предпочтением reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   СТИЛИ ДЛЯ СТРАНИЦ ЮРИДИЧЕСКИХ ДОКУМЕНТОВ
   ============================================ */

.legal-page {
    min-height: 100vh;
    background: var(--gray-50);
    padding-top: 120px;
    padding-bottom: 80px;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.legal-header {
    text-align: center;
    margin-bottom: 48px;
}

.legal-header h1 {
    font-size: clamp(28px, 5vw, 40px);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 16px;
    line-height: 1.2;
}

.legal-header .legal-date {
    font-size: 14px;
    color: var(--gray-500);
}

.legal-content {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow);
    padding: 48px;
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin: 28px 0 14px;
}

.legal-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-content li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 10px;
}

.legal-content ul li {
    list-style-type: disc;
}

.legal-content ol li {
    list-style-type: decimal;
}

.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}

.legal-content a:hover {
    color: var(--primary-dark);
}

.legal-content strong {
    color: var(--gray-800);
    font-weight: 600;
}

.legal-content .highlight-box {
    background: var(--gray-50);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.legal-content .highlight-box p {
    margin-bottom: 0;
}

.legal-content .contact-info {
    background: var(--gray-50);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin: 24px 0;
}

.legal-content .contact-info p {
    margin-bottom: 8px;
}

.legal-content .contact-info p:last-child {
    margin-bottom: 0;
}

/* Адаптивность для страниц документов */
@media (max-width: 1024px) {
    .legal-page {
        padding-top: 100px;
    }
    
    .legal-content {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .legal-page {
        padding-top: 90px;
        padding-bottom: 60px;
    }
    
    .legal-container {
        padding: 0 16px;
    }
    
    .legal-content {
        padding: 24px 20px;
        border-radius: var(--radius-xl);
    }
    
    .legal-content h2 {
        font-size: 20px;
        margin: 32px 0 16px;
    }
    
    .legal-content h3 {
        font-size: 16px;
        margin: 24px 0 12px;
    }
    
    .legal-content p,
    .legal-content li {
        font-size: 14px;
        line-height: 1.7;
    }
}

@media (max-width: 480px) {
    .legal-header h1 {
        font-size: 24px;
    }
    
    .legal-content {
        padding: 20px 16px;
    }
    
    .legal-content .highlight-box {
        padding: 16px;
    }
}

/* Печать */
@media print {
    .site-header,
    .site-footer,
    .consent-form-section {
        display: none;
    }
    
    .legal-page {
        padding-top: 0;
        background: white;
    }
    
    .legal-content {
        box-shadow: none;
        padding: 0;
    }
}
