/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --nav-height: 90px;
    --nav-height-mobile: 64px;
}

body {
    line-height: 1.6;
    color: #2C3E50;
    overflow-x: hidden;
    padding-top: var(--nav-height);
}

@media (max-width: 768px) {
    body {
        padding-top: var(--nav-height-mobile);
    }
}

.container {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 32px;
}

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

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

/* Hero Section */
.hero {
    min-height: 600px;
    position: relative;
    overflow: hidden;
    padding-top: 0;
}

.hero-slider {
    height: 100%;
    width: 100%;
}

.hero-slider .swiper-slide {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slider .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.4)); /* Оригинальный градиент для видимости фона */
    z-index: 1;
}

.hero-content {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 120px 32px 80px;
    min-height: 600px;
}

.hero-text {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px; /* Добавлен отступ снизу для опускания текста */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(18px, 3vw, 24px);
    margin-bottom: 32px;
    line-height: 1.4;
    font-weight: 400;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    width: min(700px, 100%);
}

.feature-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 120px;
}

.feature-box i {
    font-size: 28px; /* Уменьшил размер иконок */
    margin-bottom: 10px; /* Уменьшил отступ ниже иконок */
    color: #E31E24;
    width: 40px; /* Установил фиксированный размер для иконок */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(227, 30, 36, 0.1); /* Лёгкий красный фон для иконок */
    border-radius: 50%; /* Круглая форма для иконок */
}

.feature-box h3 {
    font-size: 16px; /* Уменьшил размер текста в фичах */
    font-weight: 500;
    line-height: 1.4;
    color: #fff; /* Белый цвет текста */
    margin: 0;
    word-wrap: break-word;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.hero-cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #E31E24;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(227, 30, 36, 0.3);
    text-align: center;
    margin-top: 20px;
}

.hero-cta-btn:hover {
    background: #c81b1f;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(227, 30, 36, 0.4);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero {
        min-height: 520px;
        padding-top: 80px;
    }

    .hero-content {
        min-height: auto;
        padding: 80px 20px 60px;
    }

    .hero-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .feature-box {
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 70px;
        min-height: 480px;
    }

    .hero-content {
        padding: 70px 16px 50px;
    }

    .hero-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .feature-box {
        min-height: 90px;
        padding: 12px;
    }

    .hero-cta-btn {
        width: 100%;
        max-width: 320px;
    }
}

/* Hero Section Slider Controls */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0;
    transform: translateY(-50%);
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
    font-size: 20px;
    color: #333;
    font-weight: bold;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider .swiper-pagination {
    bottom: 20px;
}

.hero-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    opacity: 1;
}

.hero-slider .swiper-pagination-bullet-active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Position the navigation buttons */
.hero-slider .swiper-button-prev {
    left: 20px;
}

.hero-slider .swiper-button-next {
    right: 20px;
}

/* Swiper Navigation Buttons */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: #fff;
}

.hero-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.6;
}

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: #E31E24;
}

/* Hero slider pagination and navigation */
@media (max-width: 768px) {
    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        display: none;
    }

    .hero-slider .swiper-pagination {
        bottom: 16px !important;
        display: flex !important;
    }
}

.hero-slider .swiper-button-next {
    right: 20px;
}

.hero-slider .swiper-button-prev {
    left: 20px;
}

.hero-slider .swiper-button-next:hover, 
.hero-slider .swiper-button-prev:hover {
    color: #fff;
    background: rgba(227, 30, 36, 0.5);
}

.hero-slider .swiper-button-next:after, 
.hero-slider .swiper-button-prev:after {
    font-size: 18px;
}

/* Swiper pagination bullets styling */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: #E31E24;
    opacity: 1;
}

/* Make sure there's enough space between pagination and buttons */
.hero-slider .swiper-container-horizontal > .swiper-pagination-bullets {
    bottom: 20px;
}

/* Slider Navigation Buttons - General Styling */
.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background-color: #E03A48;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: #cf2938;
    transform: scale(1.05);
}

/* Reviews Slider Navigation Buttons */
.reviews-swiper .swiper-button-next,
.reviews-swiper .swiper-button-prev {
    top: 50%;
}

.reviews-swiper-button-next {
    right: -5px;
}

.reviews-swiper-button-prev {
    left: -5px;
}

/* Doctors Section */
.doctors {
    padding: 80px 0;
    background-color: #f9f9f9;
    width: 100%;
    overflow: hidden;
}

.doctors .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Doctors Slider - основные настройки свайпера */
.doctors-swiper {
    width: 100%;
    max-width: 1200px; /* Ограничиваем ширину для центрирования */
    margin: 0 auto;
    padding: 20px 0 60px;
    position: relative;
    overflow: hidden; /* Предотвращаем переполнение */
}

/* Настройка обертки свайпера для центрирования */
.doctors-swiper .swiper-wrapper {
    display: flex;
    align-items: center;
    justify-content: center; /* Центрируем содержимое */
    width: 100%;
    height: auto;
    transition-property: transform;
    transition-timing-function: ease-out; /* Плавная функция перехода */
    will-change: transform; /* Оптимизация производительности */
}

/* Настройка слайдов */
.doctors-swiper .swiper-slide {
    flex: 0 0 auto;
    height: auto;
    position: relative;
    display: flex;
    justify-content: center;
    padding: 0 12px;
    box-sizing: border-box;
    width: auto;
    max-width: 320px;
    margin: 0;
}

/* Доктор-карточка - основной элемент слайда */
.doctor-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.doctor-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.doctor-image {
    height: 320px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.05);
}

.doctor-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.doctor-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.doctor-specialty {
    color: #4e73df;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

.doctor-experience, 
.doctor-education {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Убираем лишние стили для активного слайда */
.doctors-swiper .swiper-slide-active .doctor-card {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12); /* Лёгкая подсветка активного слайда */
}

/* Кнопки навигации */
.doctors-swiper .swiper-button-next,
.doctors-swiper .swiper-button-prev {
    width: 50px;
    height: 50px;
    background-color: #E31E24;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.doctors-swiper .swiper-button-next:hover,
.doctors-swiper .swiper-button-prev:hover {
    background-color: #c81b1f;
    transform: scale(1.05);
}

.doctors-swiper .swiper-button-next:after,
.doctors-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
}

/* Позиционирование кнопок */
.doctors-swiper .swiper-button-next {
    right: 10px;
}

.doctors-swiper .swiper-button-prev {
    left: 10px;
}

/* Пагинация */
.doctors-swiper .swiper-pagination {
    bottom: 20px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .doctors-swiper {
        padding: 0 16px 50px;
    }
}

@media (max-width: 768px) {
    .doctors-swiper {
        padding: 0 12px 48px;
    }

    .doctors-swiper .swiper-slide {
        max-width: 260px;
        padding: 0 8px;
    }
}

@media (max-width: 576px) {
    .doctors-swiper .swiper-slide {
        max-width: 240px;
        padding: 0 6px;
    }

    .doctor-card {
        max-width: 100%;
    }
}

/* Reviews Section */
.reviews {
    background: #f7f7f7;
    padding: 80px 0;
}

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

.reviews h2 {
    font-size: 36px;
    color: #2C3E50;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 600;
}


.reviews-swiper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 60px;
    position: relative;
    overflow: hidden;
}

.reviews-swiper .swiper-wrapper {
    display: flex;
    width: 100%;
    height: auto; /* Changed from 100% to auto for better card height handling */
    z-index: 1;
    transition-property: transform;
    box-sizing: content-box;
}

.reviews-swiper .swiper-slide {
    flex-shrink: 0;
    width: 100%;
    height: auto;
    position: relative;
    transition-property: transform;
    display: flex;
    padding: 0 12px;
    box-sizing: border-box;
}

.review-card {
    background: #fff;
    border-radius: 12px; /* Increased from 10px */
    padding: 30px; /* Increased from 25px */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Improved shadow */
    margin: 0;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Added transition */
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.review-header {
    display: flex;
    align-items: flex-start; /* Changed from center to flex-start */
    justify-content: space-between;
    margin-bottom: 20px; /* Increased from 15px */
    flex-wrap: wrap; /* Added to handle narrow screens */
    gap: 15px; /* Added gap */
}

.review-author {
    display: flex;
    align-items: center;
}

.review-avatar {
    width: 60px; /* Increased from 50px */
    height: 60px; /* Increased from 50px */
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid rgba(227, 30, 36, 0.2); /* Added subtle border */
}

.review-author-info {
    display: flex;
    flex-direction: column;
}

.review-author h4 {
    margin: 0;
    color: #2C3E50;
    font-weight: 600;
    font-size: 18px; /* Added font size */
}

.review-date {
    color: #666;
    font-size: 14px; /* Increased from 0.9rem */
    margin: 5px 0 0;
}

.review-rating {
    color: #E31E24;
    font-size: 20px; /* Increased from 18px */
    letter-spacing: 2px; /* Added letter spacing for stars */
}

.review-content {
    flex-grow: 1; /* Added to ensure content takes available space */
}

.review-content p {
    color: #2C3E50;
    line-height: 1.7; /* Increased from 1.6 */
    margin: 0;
    font-weight: 400;
    font-size: 16px; /* Added font size */
}

/* Pagination and Navigation for Reviews */
.reviews-swiper .swiper-pagination {
    position: relative;
    margin-top: 16px;
    text-align: center;
    bottom: -30px;
}

.reviews-swiper .swiper-pagination-bullet {
    width: 10px; /* Increased from 8px */
    height: 10px; /* Increased from 8px */
    margin: 0 5px; /* Increased from 4px */
    background: #E31E24;
    opacity: 0.3;
    transition: all 0.3s ease; /* Added transition */
}

.reviews-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2); /* Added scale effect */
}

.reviews-swiper .swiper-button-next,
.reviews-swiper .swiper-button-prev {
    color: #fff;
    width: 44px;
    height: 44px;
    background: rgba(227, 30, 36, 0.85);
    border-radius: 50%;
    top: 45%;
    transition: all 0.3s ease;
}

.reviews-swiper .swiper-button-next {
    right: 8px;
}

.reviews-swiper .swiper-button-prev {
    left: 8px;
}

.reviews-swiper .swiper-button-next:hover,
.reviews-swiper .swiper-button-prev:hover {
    background: rgba(227, 30, 36, 1); /* Darker on hover */
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3); /* Added shadow on hover */
}

.reviews-swiper .swiper-button-next:after,
.reviews-swiper .swiper-button-prev:after {
    font-size: 18px; /* Reduced from 20px */
}

.no-reviews {
    text-align: center;
    padding: 60px; /* Increased from 40px */
    color: #666;
    font-size: 18px; /* Added font size */
}

/* Добавьте для плавных анимаций */
.navbar,
.hero-content,
.service-card,
.doctor-card,
.feature-box,
.contact-item,
.footer-section {
    transition: all 0.3s ease-in-out;
}

/* Плавное появление элементов при скролле */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Оптимизация производительности */
.swiper-slide,
.hero-slider,
.doctors-swiper,
.reviews-swiper {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Swiper Responsive Fixes */
@media screen and (max-width: 768px) {
    .swiper-button-next,
    .swiper-button-prev {
        display: none;
    }

    .swiper-pagination {
        bottom: 10px !important;
    }

    .doctors-swiper,
    .reviews-swiper {
        padding: 0 20px;
    }
}

/* Swiper Pagination Improvements */
.swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #E31E24;
    width: 12px;
    height: 12px;
    opacity: 1;
}

/* Hardware acceleration for smoother animations */
.swiper-slide, 
.swiper-wrapper {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

.doctors-swiper .swiper-wrapper,
.reviews-swiper .swiper-wrapper {
    height: auto;
    display: flex;
    align-items: stretch;
}

/* Prevent flash of unstyled content for swipers */
.doctors-swiper, 
.reviews-swiper {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.doctors-swiper.swiper-initialized,
.reviews-swiper.swiper-initialized {
    opacity: 1;
    visibility: visible;
}

/* Smooth transition for swiper slides */
.swiper-slide-active,
.swiper-slide-prev,
.swiper-slide-next {
    transition: transform 0.3s ease;
}

/* Ensure swiper container stays stable */
.swiper-container {
    height: auto !important;
    overflow: hidden;
}

/* Section Titles */
.section-title h2,
.services h2,
.doctors h2,
.reviews h2 {
    font-size: 36px;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 15px;
    text-align: center;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 32px;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    width: 100%;
}

.service-card i {
    color: #E31E24;
    font-size: 40px;
    margin-bottom: 20px;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2C3E50;
    text-align: center;
    font-weight: 500;
}

.service-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    text-align: center;
    font-weight: 400;
}

/* Навигационная панель */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo img {
    height: 60px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #2C3E50;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: #E31E24;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #E31E24;
    transition: width 0.3s ease;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 200;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: #2C3E50;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Секция контактов */
.contacts {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.contacts h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
    text-align: center;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contact-item i {
    font-size: 24px;
    color: #E31E24;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(227, 30, 36, 0.1);
    border-radius: 50%;
}

.contact-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.contact-item p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.contact-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #E31E24;
}

.contact-map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Адаптивность для навигационной панели и контактов */
@media (max-width: 992px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contact-map {
        margin-top: 24px;
    }
}

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

    .navbar .container {
        padding: 0 16px;
    }

    .logo img {
        height: 54px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(320px, 80%);
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 96px 32px 32px;
        gap: 24px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 18px rgba(0, 0, 0, 0.12);
        z-index: 100;
    }

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

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    .services {
        padding: 60px 0;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        padding: 0 16px;
    }

    .service-card {
        padding: 20px;
    }

    .contact-item {
        gap: 14px;
    }

    .contact-item i {
        font-size: 20px;
        width: 34px;
        height: 34px;
    }

    .contact-item h3 {
        font-size: 16px;
    }

    .contact-item p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .nav-links {
        width: 100%;
    }

    .contacts h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .contacts .container {
        padding: 0 20px;
    }

    .contact-map {
        min-height: 280px;
    }
}

/* Футер */
.footer {
    background-color: #2C3E50;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

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

.footer p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Instagram Float Button */
.social-float {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.instagram-float {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.instagram-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Адаптивность для социальных иконок */
@media (max-width: 768px) {
    .social-float {
        top: auto;
        bottom: 100px;
        right: 20px;
    }
    
    .instagram-float {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}