/* CSS Variables */
:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --secondary-color: #1a252f;
    --accent-color: #2c3e50;
    --text-dark: #333;
    --text-light: #333;
    --text-muted: #ccc;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --error-color: #f44336;
    --success-color: #4CAF50;
    --warning-color: #ff9800;
    --info-color: #2196F3;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Общие стили для изображений */
img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for accessibility */
*:focus {
    outline: none;
    outline-offset: 0;
}

/* Remove outline for navigation links */
.nav-link:focus,
.nav-link:active {
    outline: none;
}

/* Optimized focus styles */
.nav-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    word-wrap: break-word;
    hyphens: auto;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
}

.btn-outline:hover {
    background: var(--text-dark);
    color: var(--white);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Button icons spacing */
.btn i {
    margin-right: 8px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Темная шапка при скролле */
.header.scrolled {
    background: var(--secondary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h2 {
    color: var(--text-dark);
    margin: 0;
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

/* Темный текст при скролле */
.header.scrolled .nav-brand h2 {
    color: var(--white);
}

/* Стили для кликабельного логотипа */
.nav-logo {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.nav-logo:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    outline: none;
}

/* Темные ссылки при скролле */
.header.scrolled .nav-link {
    color: var(--white);
}

.nav-link:focus {
    outline: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Темные полоски при скролле */
.header.scrolled .hamburger span {
    background: var(--white);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 50%, rgba(52, 152, 219, 0.1) 100%), url('../img/bg1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-content h1 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    text-align: center;
    hyphens: none;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #fff;
    line-height: 1.6;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    justify-content: center;
    align-items: center;
}

/* Services Overview */
.services-overview {
    padding: 80px 0;
    background: white;
}

.services-overview h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #f5f7fa;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* Why Choose Us */
.why-choose-us {
    padding: 80px 0;
    background: #f8f9fa;
}

.why-choose-us h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature h3 {
    margin-bottom: 1rem;
    color: #333;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.cta-section .btn-primary:hover {
    background: var(--light-gray);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Contact Form */
.contact-form-section {
    padding: 80px 0;
    background: white;
}

.contact-form-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form .btn {
    display: block;
    margin: 0 auto;
    width: fit-content;
}

/* Checkbox styles */
.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #666;
    margin: 0;
    padding: 0;
    flex-direction: row !important;
    gap: 8px;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: white;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    display: block;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.checkbox-label a:hover {
    border-bottom-color: var(--primary-color);
}

.checkbox-label a:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

/* Form validation styles */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: var(--error-color) !important;
    background-color: #ffebee !important;
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
    animation: shake 0.5s ease-in-out;
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: var(--success-color) !important;
    background-color: #e8f5e8 !important;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* Focus states for better editing experience */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--border-color);
    box-shadow: none;
    transition: all 0.3s ease;
}

/* Default form field styles */
.form-group input,
.form-group textarea,
.form-group select {
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
}

/* Editing state - when user is actively typing */
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown) {
    border-color: var(--border-color);
    transition: border-color 0.3s ease;
}

/* Validation animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Field hints */
.field-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.form-group.error .field-hint {
    color: var(--error-color);
    opacity: 1;
}

.form-group.success .field-hint {
    color: var(--success-color);
    opacity: 1;
}

/* Field validation indicators */
.form-group::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-group.error::after {
    content: '✗';
    color: var(--error-color);
    opacity: 1;
}

.form-group.success::after {
    content: '✓';
    color: var(--success-color);
    opacity: 1;
}

.checkbox-group.error {
    border: 2px solid var(--error-color) !important;
    border-radius: 8px;
    padding: 10px;
    background-color: #ffebee !important;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    max-width: 400px;
    animation: slideInRight 0.3s ease-out;
}

.notification-success {
    background: var(--success-color);
    color: white;
}

.notification-error {
    background: var(--error-color);
    color: white;
}

.notification-warning {
    background: var(--warning-color);
    color: white;
}

.notification-info {
    background: var(--info-color);
    color: white;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Performance optimizations */
* {
    will-change: auto;
}

/* Scroll animations removed */

/* Additional animations removed */

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

.checkbox-label:hover .checkmark {
    border-color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background-color: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Page Header */
.page-header {
    padding: 120px 0 60px;
    background-image: url('../img/header2.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Overlay for better text readability */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15) 0%, rgb(196, 232, 255) 50%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    text-shadow: 0 1px 5px rgba(255, 255, 255, 0.6);
}

/* About Content */
.about-content {
    padding: 80px 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: #333;
    margin-bottom: 1.5rem;
}

.about-text h3 {
    color: #333;
    margin: 2rem 0 1rem;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
}

.about-text li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.about-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background: white;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #666;
    margin-bottom: 0.25rem;
}

/* Services List */
.services-list {
    padding: 80px 0;
    background: white;
}

.services-list .services-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-item:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.service-item:nth-child(even) .service-image {
    order: 2;
}

.service-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.service-content h3 {
    color: #333;
    margin-bottom: 1rem;
}

.service-content p {
    margin-bottom: 1.5rem;
    color: #666;
}

.service-content ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-content li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
}

.service-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 1rem;
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.process-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.step h3 {
    color: #333;
    margin-bottom: 1rem;
}

/* Contact Info */
.contact-info {
    padding: 80px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details h2 {
    color: #333;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-text h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: #666;
    margin-bottom: 0.25rem;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h3 {
    color: #333;
    margin: 0;
    font-size: 1.1rem;
}

.faq-question i {
    color: #3498db;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--accent-color);
}

.footer-bottom p {
    color: var(--text-muted);
    margin: 0;
}

/* Large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .hero-content p {
        font-size: 1.3rem;
    }
    
    .hero-image img {
        height: 450px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Максимальная высота изображений на больших экранах */
    .service-image img,
    .about-image img,
    .member-photo img,
    .hero-image img {
        max-height: 400px;
        object-fit: cover;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .hero {
        gap: 3rem;
    }
    
    /* Сбрасываем ограничения высоты на планшетах */
    .service-image img,
    .about-image img,
    .member-photo img,
    .hero-image img {
        max-height: none;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* Medium screens */
@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: auto;
        max-width: 200px;
    }
    
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    /* Сбрасываем ограничения высоты на мобильных экранах */
    .service-image img,
    .about-image img,
    .member-photo img,
    .hero-image img {
        max-height: none;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 999;
    }
    
    /* Темное мобильное меню при скролле */
    .header.scrolled .nav-menu {
        background-color: var(--secondary-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        padding: 100px 0 60px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.1;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
        text-align: center;
        box-sizing: border-box;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .service-item:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .service-item:nth-child(even) .service-image {
        order: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .types-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .materials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-item {
        padding: 1.5rem;
    }

    .type-item {
        padding: 1.5rem;
    }

    .material-item {
        padding: 1.5rem;
    }

    .pricing-item {
        padding: 1.5rem;
    }

    .team-member {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .price {
        font-size: 1.5rem;
    }

    .nav-brand h2 {
        font-size: 1.5rem;
    }


    .service-image img {
        max-height: 250px;
        object-fit: cover;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        width: 100%;
        max-width: 250px;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
    }
    
    .service-card,
    .service-item,
    .type-item,
    .material-item,
    .pricing-item,
    .team-member,
    .contact-form {
        padding: 1rem;
    }
    
    .nav-brand h2 {
        font-size: 1.3rem;
    }
    
    
    .service-image img {
        max-height: 200px;
    }
    
    .member-photo {
        width: 120px;
        height: 120px;
    }
    
    .type-icon,
    .service-icon,
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .type-icon i,
    .service-icon i,
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon i {
        font-size: 1rem;
    }
}

/* Animations removed - no more fade-in effects */

/* Service Pages Styles */
.service-details {
    padding: 80px 0;
    background: white;
}

.service-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-description h2 {
    color: #333;
    margin-bottom: 1.5rem;
}

.service-description p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

.service-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.types-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.types-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.type-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.type-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.type-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.type-icon i {
    font-size: 2rem;
    color: white;
}

.type-item h3 {
    color: #333;
    margin-bottom: 1rem;
}

.type-item p {
    color: #666;
    margin-bottom: 1.5rem;
}

.type-item ul {
    list-style: none;
    text-align: left;
}

.type-item li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
}

.type-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

.materials-section {
    padding: 80px 0;
    background: white;
}

.materials-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.material-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.material-item:hover {
    transform: translateY(-5px);
}

.material-item h3 {
    color: #333;
    margin-bottom: 1rem;
}

.material-item p {
    color: #666;
    margin-bottom: 1.5rem;
}

.material-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.material-features .feature {
    background: #3498db;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.pricing-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.pricing-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.pricing-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pricing-item h3 {
    color: #333;
    margin-bottom: 1rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 1.5rem;
}

.pricing-item ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-item li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #666;
}

.pricing-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #3498db;
    font-weight: bold;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* FAQ Styles */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h3 {
    color: #333;
    margin: 0;
    font-size: 1.1rem;
}

.faq-question i {
    color: #3498db;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    margin: 0;
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Info Styles */
.contact-info {
    padding: 80px 0;
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-details h2 {
    color: #333;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-text h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: #666;
    margin-bottom: 0.25rem;
}

/* Responsive Design for Service Pages */
@media (max-width: 768px) {
    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

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

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Legal Pages Styles */

.content-section {
    padding: 4rem 0 !important;
    background: var(--light-gray) !important;
    margin: 0 !important;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow-light);
}

.content-wrapper h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.content-wrapper h2:first-child {
    margin-top: 0;
}

.content-wrapper h3 {
    color: var(--accent-color);
    font-size: 1.4rem;
    font-weight: 500;
    margin: 2rem 0 1rem 0;
}

.content-wrapper p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.content-wrapper ul,
.content-wrapper ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.content-wrapper li {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.content-wrapper ul li {
    position: relative;
    list-style: none;
}

.content-wrapper ul li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

.content-wrapper ol {
    counter-reset: item;
}

.content-wrapper ol li {
    counter-increment: item;
    position: relative;
    list-style: none;
}

.content-wrapper ol li::before {
    content: counter(item) '.';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

.content-wrapper a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.content-wrapper a:hover {
    border-bottom-color: var(--primary-color);
}

/* Responsive styles for legal pages */
@media (max-width: 768px) {
    .content-section {
        padding: 2rem 0;
    }
    
    .content-wrapper {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .content-wrapper h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .content-wrapper h2 {
        font-size: 1.3rem;
    }
}
