/* Base styles and variables */
:root {
    --color-primary: #0e3e8d;        /* Более насыщенный темно-синий */
    --color-secondary: #1e90ff;      /* Яркий синий */
    --color-accent: #4db8ff;         /* Яркий голубой */
    --color-light: #e0f5ff;          /* Светло-голубой с большей насыщенностью */
    --color-white: #ffffff;          /* Белый */
    --color-text: #222222;           /* Более темный для лучшей контрастности */
    --color-text-light: #555555;     /* Темнее для лучшей читаемости */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    --font-accent: 'Cormorant Garamond', serif; /* Добавляем новый шрифт для подзаголовка */
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --gradient-primary: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 100%);
}

/* Reset and general styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--color-white);
    width: 100%;
    max-width: 100vw;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    overflow-x: hidden;
}

section {
    padding: 80px 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary);
}

.section-title {
    position: relative;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    height: 4px;
    width: 60px;
    background: var(--color-secondary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid var(--color-secondary);
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-secondary);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-secondary:hover {
    color: var(--color-white);
    transform: translateY(-3px);
    border-color: transparent;
}

.btn-secondary:hover::after {
    width: 100%;
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Добавляем новые эффекты для элементов */
.hero-title {
    position: relative;
    overflow: hidden;
}

.hero-title::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    top: 0;
    left: -100%;
    animation: shine 3s infinite;
}

.service-icon, .contact-item i {
    animation: glow 3s infinite;
}

.btn-primary {
    position: relative;
    overflow: hidden;
}

.hero-image {
    animation: bounce 6s ease-in-out infinite;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 5px 20px rgba(30, 144, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
    animation: pulse 2s infinite;
}

.scroll-top:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.5);
}

.scroll-top i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.scroll-top:hover i {
    transform: translateY(-3px);
}

/* Добавляем новые анимации */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes shine {
    0% {
        background-position: -100px;
    }
    100% {
        background-position: 200px;
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(30, 144, 255, 0.6);
    }
    50% {
        box-shadow: 0 0 20px rgba(30, 144, 255, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(30, 144, 255, 0.6);
    }
}

/* Header and Navigation */
header {
    position: relative;
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-white) 50%, var(--color-light) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(77, 184, 255, 0.2) 0%, transparent 70%);
    z-index: 0;
    max-width: 100vw;
    overflow: hidden;
}

/* Стили для навигации */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(30, 144, 255, 0.2);
    transition: var(--transition);
}

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

/* Стили для логотипа */
.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 1rem;
    margin: 0;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Стили для навигационных ссылок */
.nav-links ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-secondary);
}

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

.fa-bars, .fa-times {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-primary);
}

/* Стили для кнопки закрытия */
.fa-times {
    display: none !important;
}

/* Показываем кнопку закрытия только когда меню активно на мобильных устройствах */
.nav-links.active .fa-times {
    display: block;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    flex: 1;
    padding-top: 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    animation: fadeIn 1s ease-out;
    position: relative;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

.image-placeholder {
    width: 350px;
    height: 350px;
    background: var(--gradient-secondary);
    border-radius: 20px; /* Изменено с 50% на 20px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 20px rgba(30, 144, 255, 0.3); /* Уменьшен shadow */
    animation: float 5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.8);
}

.image-placeholder::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(-45deg);
    top: -60%;
    left: -60%;
}

.image-placeholder i {
    font-size: 6rem;
    color: var(--color-white);
    margin-bottom: 10px;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.image-placeholder p {
    color: var(--color-white);
    font-weight: 500;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--color-primary);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    background: var(--gradient-primary);
    bottom: -5px;
    left: 0;
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-secondary);
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-subtitle1 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: rgb(179, 179, 179);
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero-btns {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 100%;
}

/* About Section */
.about-section {
    background-color: var(--color-white);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

.number-card {
    flex: 1;
    min-width: 150px;
    background-color: var(--color-light);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.number-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background-color: var(--color-accent);
}

.number-card:hover h3,
.number-card:hover p {
    color: var(--color-white);
}

.number-card h3 {
    font-size: 2.5rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
    transition: var(--transition);
}

/* Services Section */
.services-section {
    background-color: rgb(219, 219, 219);
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    top: -150px;
    right: -75px;
    border-radius: 50%;
    opacity: 0.5;
    z-index: 0;
}

.services-section::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    bottom: -100px;
    left: -50px;
    border-radius: 50%;
    opacity: 0.4;
    z-index: 0;
}

.services-section .container {
    position: relative;
    z-index: 1;
}

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

.service-card {
    background: linear-gradient(145deg, #ffffff, #f5f9ff);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(77, 184, 255, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: var(--gradient-secondary);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
    opacity: 0;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px rgba(30, 144, 255, 0.2);
    border-color: transparent;
}

.service-card:hover::before {
   display: none !important;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: transparent;
    box-shadow: none;
    border-radius: 10px; /* Скругление контейнера */
    overflow: hidden; /* Обрезает изображение по скругленным углам */
}

.service-icon img {
    width: 100%; /* Заполняет весь контейнер */
    height: 100%;
    object-fit: cover; /* Заполняет пространство без искажений */
    border-radius: 10px; /* Дополнительное скругление (можно убрать, если overflow: hidden) */
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
    transition: transform 0.8s, background-color 0.3s, color 0.3s;
    box-shadow: 0 8px 25px rgba(77, 184, 255, 0.4);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: var(--transition);
}

.service-card p {
    color: var(--color-text-light);
    transition: var(--transition);
}

.service-card:hover h3 {
    color: var(--color-secondary);
}

/* Experience Section */
.experience-section {
    background-color: var(--color-white);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--color-accent);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--color-white);
    border: 4px solid var(--color-secondary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.timeline-date h3 {
    color: var(--color-secondary);
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content h4 {
    margin-bottom: 10px;
    color: var(--color-primary);
}

.timeline-content p {
    margin: 0;
}

/* Testimonials Section */
.testimonials-section {
    background: rgb(219, 219, 219);
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(77, 184, 255, 0.15) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    border-radius: 50%;
}

.testimonials-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.1) 0%, transparent 70%);
    bottom: -150px;
    right: -75px;
    border-radius: 50%;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.testimonial-slide {
    padding: 20px;
}

.testimonial-content {
    background: linear-gradient(145deg, #ffffff, #f5f9ff);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.15);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(77, 184, 255, 0.1);
}

.testimonial-content::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    top: 0;
    right: 0;
    border-radius: 0 var(--border-radius) 0 50%;
    opacity: 0.2;
    transition: var(--transition);
}

.testimonial-content:hover {
    box-shadow: 0 15px 40px rgba(30, 144, 255, 0.25);
    transform: translateY(-8px);
}

.testimonial-content:hover::before {
    width: 70px;
    height: 70px;
    opacity: 0.3;
}

.testimonial-text {
    position: relative;
    margin-bottom: 20px;
}

.testimonial-text i {
    font-size: 2.2rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
    display: block;
    opacity: 0.7;
}

.testimonial-text p {
    font-style: italic;
    color: var(--color-text);
    line-height: 1.8;
    font-size: 1.05rem;
}

.testimonial-author h4 {
    color: var(--color-primary);
    margin-bottom: 5px;
    font-weight: 600;
}

.testimonial-author span {
    color: var(--color-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.prev-btn, .next-btn {
    background: var(--gradient-primary);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 10px;
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.25);
    transition: all 0.3s ease;
    color: var(--color-white);
}

.prev-btn:hover, .next-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.35);
}

.slider-dots {
    display: flex;
    align-items: center;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--color-accent);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.dot.active {
    background-color: var(--color-secondary);
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 10px rgba(30, 144, 255, 0.5);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(77, 184, 255, 0.1) 0%, transparent 70%);
    bottom: -150px;
    right: -75px;
    border-radius: 50%;
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.contact-info, .contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-item {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 20px;
    color: var(--color-white);
    background: var(--gradient-secondary);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.5s ease;
    box-shadow: 0 5px 15px rgba(77, 184, 255, 0.25);
}

.contact-item:hover i {
    transform: rotateY(360deg);
    box-shadow: 0 8px 20px rgba(77, 184, 255, 0.4);
}

.contact-item h4 {
    color: var(--color-primary);
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-form h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.contact-form h3::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    background: var(--gradient-primary);
    bottom: -8px;
    left: 0;
    border-radius: 2px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(77, 184, 255, 0.2);
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(30, 144, 255, 0.15);
    background-color: #ffffff;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-image: url('images/fon1.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: var(--color-white);
    padding: 60px 0 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
}

footer::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    bottom: -150px;
    left: -75px;
    border-radius: 50%;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-logo, .footer-links, .footer-social {
    flex: 1;
    min-width: 250px;
}

.footer-logo h3 {
    color: var(--color-white);
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.9);
}

.footer-links h4, .footer-social h4 {
    color: var(--color-white);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.footer-links h4::after, .footer-social h4::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 2px;
    background-color: var(--color-accent);
    bottom: -5px;
    left: 0;
}

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

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
    display: inline-block;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: -12px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 12px;
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--color-white);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-icons a:hover {
    background-color: var(--color-white);
    color: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Media Queries */
@media screen and (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 18px;
    }

    .timeline-item:nth-child(odd)::after {
        right: auto;
        left: 18px;
    }

    .timeline-item:nth-child(even)::after {
        left: 18px;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 15px 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        height: 100vh;
        width: 250px;
        background-color: var(--color-white);
        flex-direction: column;
        padding: 50px 20px;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links ul {
        flex-direction: column;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .fa-bars {
        display: block;
    }

    .nav-links .fa-times {
        display: block !important;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text, .hero-image {
        margin-bottom: 40px;
    }

    .hero-btns {
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .contact-item {
        align-items: flex-start;
    }
}

@media screen and (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .image-placeholder {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }

    .profile-photo {
        width: 100%;
        height: 100%;
    }

    .about-numbers {
        flex-direction: column;
    }

    .number-card {
        margin-bottom: 20px;
    }

    .contact-item i {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* Адаптивность для iframe карты */
    iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 300px !important;
    }
}

/* Profile Photo Styles */
.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Изменено с 0px 90% на center для лучшего отображения */
    border-radius: 15px; /* Соответствует родительскому элементу */
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
    filter: contrast(105%) brightness(102%);
}

.image-placeholder:hover .profile-photo {
    transform: scale(1.03);
    filter: contrast(110%) brightness(105%);
}

.image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
    pointer-events: none;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 700px;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}



@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    right: 25px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--color-primary);
    transform: rotate(90deg);
}

.modal h3 {
    color: var(--color-primary);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.modal-body {
    line-height: 1.8;
}

.modal-body ul {
    margin: 20px 0;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 10px;
    position: relative;
}

.modal-body li::before {
    content: '•';
    color: var(--color-secondary);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Горизонтальные карточки в разделе Полезная информация */
.info-cards-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-behavior: smooth;
    width: 100%;
    max-width: 100%;
}

.info-card {
    flex: 0 0 220px;
    background: #ffffff;
    border: 1px solid var(--color-accent);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background: var(--color-light);
}

.info-title {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.info-text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Скрытие скроллбара (опционально) */
.info-cards-wrapper::-webkit-scrollbar {
    height: 8px;
}
.info-cards-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-accent);
    border-radius: 10px;
}

body.modal-open {
    overflow: hidden;
    padding-right: 15px; /* Этот отступ компенсирует исчезающий скроллбар */
}

/* Адаптивность для всех элементов */
* {
    max-width: 100vw !important;
    box-sizing: border-box !important;
}

/* Убираем все возможные причины горизонтальной прокрутки */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative !important;
}

/* Принудительно ограничиваем все элементы */
header, section, footer, .container, .hero, .hero-content, .navbar {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* Убираем псевдоэлементы на мобильных */
@media screen and (max-width: 768px) {
    *::before, *::after {
        display: none !important;
    }

    .services-section::before,
    .services-section::after,
    .testimonials-section::before,
    .testimonials-section::after,
    .contact-section::before,
    footer::before,
    footer::after,
    header::before {
        display: none !important;
    }
}

/* Адаптивность для iframe */
iframe {
    max-width: 100%;
    width: 100%;
}

@media screen and (max-width: 768px) {
    iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 300px !important;
    }

    /* Дополнительная защита от горизонтальной прокрутки */
    body, html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }

    .container {
        max-width: 100% !important;
        padding: 0 10px !important;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
}
