/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2A5B9A;
    --primary-dark: #1E4678;
    --primary-light: #4A7BB8;
    --secondary: #FF9900;
    --secondary-dark: #E68A00;
    --light: #f8f9fa;
    --dark: #333333;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --gray-lighter: #f5f7fa;
    --white: #ffffff;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--secondary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.btn:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary {
    background-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Заголовки */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    color: var(--primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Шапка */
header {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
}

.logo i {
    font-size: 2rem;
    color: var(--secondary);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.logo-sub {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 400;
}

/* Навигация */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary);
    left: 0;
    bottom: 0;
    transition: var(--transition);
    border-radius: 1px;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Контакты в шапке */
.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light);
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.social-icons a.max-icon {
    background: linear-gradient(135deg, #006AFF, #00C6FF);
    color: white;
}

.social-icons a.max-icon:hover {
    background: linear-gradient(135deg, #0052CC, #00A8E8);
    transform: translateY(-2px) scale(1.05);
}

.phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
}

.phone-number {
    font-size: 1.1rem;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Главный блок */
.hero {
    background: linear-gradient(rgba(42, 91, 154, 0.9), rgba(30, 70, 120, 0.95)), 
                url('images/hero.jpg') no-repeat center center/cover;
    color: var(--white);
    padding: 180px 0 100px;
    margin-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
}

.feature i {
    color: var(--secondary);
}

/* Карусель */
.carousel-section {
    background-color: var(--light);
    padding: 80px 0;
}

.carousel-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    min-height: 500px;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary) 100%);
    position: relative;
}

.carousel-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    z-index: 2;
}

.carousel-content h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.carousel-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.carousel-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.carousel-image img {
    width: 100%;
    max-width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.carousel-slide:hover .carousel-image img {
    transform: scale(1.02);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.carousel-prev,
.carousel-next {
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background-color: var(--secondary);
    transform: scale(1.2);
}

/* Услуги */
.services {
    padding: 80px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--gray-light);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-lighter);
    border-radius: 50%;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--white);
    transform: rotate(10deg) scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
    flex-grow: 1;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

.service-card .btn {
    margin-top: auto;
}

/* Мы предлагаем */
.offers {
    padding: 80px 0;
    background-color: var(--light);
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.offer-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.offer-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

/* О нас */
.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat {
    text-align: center;
    padding: 20px;
    background-color: var(--light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.stat:hover {
    transform: translateY(-5px);
    background-color: var(--primary);
    color: var(--white);
}

.stat:hover .stat-number,
.stat:hover .stat-text {
    color: var(--white);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
    transition: var(--transition);
}

.stat-text {
    color: var(--gray);
    font-size: 0.9rem;
    transition: var(--transition);
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Отзывы */
.reviews {
    padding: 80px 0;
    background-color: var(--light);
}

.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.review-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.review-info h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.stars {
    color: var(--secondary);
}

.review-text {
    margin-bottom: 15px;
    font-style: italic;
    line-height: 1.7;
}

.review-date {
    color: var(--gray);
    font-size: 0.9rem;
    text-align: right;
}

/* Контакты */
.contacts {
    padding: 80px 0;
    background-color: var(--white);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    grid-column: 1;
}

.contact-form-section {
    grid-column: 2;
}

.contact-map {
    grid-column: 1 / span 2;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 5px;
    color: var(--primary);
}

.contact-link {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.contact-link:hover {
    color: var(--primary);
}

.contact-social {
    margin-top: 30px;
}

.contact-social h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light);
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.social-link:nth-child(1):hover {
    background: linear-gradient(135deg, #006AFF, #00C6FF);
}

/* Формы */
.contact-form,
.modal-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-size: 16px;
    transition: var(--transition);
    font-family: inherit;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 91, 154, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a0a0a0;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.form-footer {
    margin-top: 30px;
}

.form-note {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.form-note a {
    color: var(--primary);
    text-decoration: none;
}

.form-note a:hover {
    text-decoration: underline;
}


/* Футер */
footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--secondary);
}

.footer-section h4 {
    margin-bottom: 20px;
    color: var(--white);
    font-size: 1.1rem;
}

.footer-section a,
.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 12px;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--secondary);
}

.footer-section i {
    margin-right: 10px;
    color: var(--secondary);
    width: 16px;
    text-align: center;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.policy-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.9rem;
}

.policy-link:hover {
    color: var(--secondary);
}

/* Модальные окна */
/* ===== УЛУЧШЕННЫЕ МОДАЛЬНЫЕ ОКНА С ПРОКРУТКОЙ ===== */

/* Основное модальное окно */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh; /* Ограничиваем высоту */
    display: flex;
    flex-direction: column;
}

.modal.active .modal-content {
    transform: translateY(0);
}

/* Кнопка закрытия */
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
}

.modal-close:hover {
    color: var(--dark);
    background: var(--white);
    transform: rotate(90deg);
}

/* ===== МОДАЛЬНОЕ ОКНО УСЛУГИ ===== */

.service-modal-content {
    max-width: 1000px;
    padding: 0;
    overflow: hidden; /* Скрываем переполнение */
}

/* Контейнер для прокрутки */
.service-modal-scrollable {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: calc(90vh - 70px); /* Высота минус кнопка заказа */
    overflow-y: auto; /* Включаем вертикальную прокрутку */
    overflow-x: hidden; /* Отключаем горизонтальную прокрутку */
}

/* Скрываем стандартный скроллбар и делаем кастомный */
.service-modal-scrollable::-webkit-scrollbar {
    width: 6px; /* Тонкий скроллбар */
}

.service-modal-scrollable::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 3px;
}

.service-modal-scrollable::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
    transition: background 0.3s;
}

.service-modal-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Для Firefox */
.service-modal-scrollable {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--gray-light);
}

/* Левая часть - изображение */
.service-modal-image {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.service-modal-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
}

.service-modal-image img:hover {
    transform: scale(1.02);
}

/* Правая часть - информация */
.service-modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-modal-info h3 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.3;
}

.service-modal-price {
    font-size: 1.4rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--gray-light);
}

.service-modal-price i {
    font-size: 1.2rem;
}

/* Описание услуги */
.service-modal-description {
    margin-bottom: 25px;
    line-height: 1.7;
    color: var(--dark);
    flex-grow: 1; /* Занимает доступное пространство */
    overflow-y: auto; /* Прокрутка внутри описания */
    padding-right: 10px;
}

/* Скрываем скроллбар у описания */
.service-modal-description::-webkit-scrollbar {
    width: 4px;
}

.service-modal-description::-webkit-scrollbar-track {
    background: transparent;
}

.service-modal-description::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 2px;
}

/* Особенности услуги */
.service-modal-features {
    margin-bottom: 20px;
}

.service-modal-features h4 {
    margin-bottom: 15px;
    color: var(--primary);
    font-size: 1.2rem;
}

.service-modal-features ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.service-modal-features li {
    margin-bottom: 10px;
    padding-left: 28px;
    position: relative;
    line-height: 1.5;
}

.service-modal-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Кнопка заказа внизу */
.service-modal-footer {
    padding: 25px 40px;
    border-top: 1px solid var(--gray-light);
    background: var(--light);
    text-align: center;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты */
@media screen and (max-width: 992px) {
	
	.callback-modal-content {
        max-width: 450px;
    }
    
    .modal-header {
        padding: 25px 25px 15px;
    }
    
    .modal-header h2 {
        font-size: 1.6rem;
    }
    
    .modal-scrollable {
        padding: 25px;
        max-height: calc(90vh - 130px);
    }
	
    .service-modal-scrollable {
        grid-template-columns: 1fr;
        max-height: calc(90vh - 120px);
    }
    
    .service-modal-image {
        padding: 30px;
        min-height: 300px;
    }
    
    .service-modal-image img {
        max-width: 350px;
    }
    
    .service-modal-info {
        padding: 30px;
    }
    
    .service-modal-info h3 {
        font-size: 1.6rem;
    }
    
    .service-modal-price {
        font-size: 1.3rem;
    }
}

/* Мобильные устройства */
@media screen and (max-width: 768px) {
	.callback-modal-content {
        max-width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 20px 20px 15px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-subtitle {
        font-size: 0.95rem;
    }
    
    .modal-scrollable {
        padding: 20px;
        max-height: calc(90vh - 110px);
    }
    
    .callback-form {
        gap: 20px;
    }
    
    .callback-form input,
    .callback-form textarea {
        padding: 14px 16px;
    }
    
    .callback-form .btn {
        padding: 14px;
        font-size: 1rem;
    }
	
    .modal {
        padding: 15px;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .service-modal-scrollable {
        max-height: calc(95vh - 120px);
    }
    
    .service-modal-image {
        padding: 25px;
        min-height: 250px;
    }
    
    .service-modal-image img {
        max-width: 300px;
    }
    
    .service-modal-info {
        padding: 25px;
    }
    
    .service-modal-info h3 {
        font-size: 1.4rem;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .service-modal-footer {
        padding: 20px 25px;
    }
}

/* Маленькие мобильные */
@media screen and (max-width: 576px) {
	.callback-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .modal {
        padding: 0;
        align-items: flex-end;
    }
    
    .modal-header {
        padding: 25px 20px 15px;
    }
    
    .modal-scrollable {
        padding: 20px 15px;
        max-height: calc(100vh - 120px);
    }
    
    .callback-form label {
        font-size: 0.95rem;
    }
    
    .modal-close {
        top: 10px;
        right: 10px;
        background: rgba(255, 255, 255, 0.9);
    }
	
    .service-modal-image {
        padding: 20px;
        min-height: 200px;
    }
    
    .service-modal-image img {
        max-width: 250px;
    }
    
    .service-modal-info {
        padding: 20px;
    }
    
    .service-modal-info h3 {
        font-size: 1.3rem;
    }
    
    .service-modal-price {
        font-size: 1.2rem;
    }
    
    .service-modal-features li {
        font-size: 0.95rem;
    }
}

/* Ландшафтная ориентация */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .callback-modal-content {
        max-width: 600px;
    }
    
    .modal-scrollable {
        max-height: calc(100vh - 100px);
    }
    
    .callback-form input,
    .callback-form textarea {
        padding: 12px 16px;
    }
}

/* Предотвращаем скроллинг основной страницы при открытом модальном окне */
body.modal-open {
    overflow: hidden;
}

/* Анимация появления */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal.active .modal-content {
    animation: modalFadeIn 0.4s ease;
}
.modal.active {
    display: flex;
    opacity: 1;
}


.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--dark);
    background-color: var(--gray-light);
}

.modal-content h2 {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 1.8rem;
}

.modal-subtitle {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 1rem;
}


.service-modal-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}


.service-modal-info h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.service-modal-price {
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-modal-description {
    margin-bottom: 30px;
    line-height: 1.7;
    color: var(--dark);
}

.service-modal-features {
    margin-bottom: 30px;
}

.service-modal-features h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

.service-modal-features ul {
    list-style: none;
    padding-left: 0;
}

.service-modal-features li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
}

.service-modal-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .carousel-content h3 {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .header-contacts .social-icons,
    .header-contacts .phone {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        grid-column: 1;
    }
    
    .carousel-slide {
        flex-direction: column;
        min-height: auto;
    }
    
    .carousel-content {
        padding: 40px;
        order: 2;
    }
    
    .carousel-image {
        padding: 40px 40px 0;
        order: 1;
    }
    
    .carousel-image img {
        max-width: 300px;
        height: 300px;
    }
    
    
    .service-modal-image {
        padding: 30px;
    }
    
    .service-modal-image img {
        max-width: 300px;
    }
    
    .service-modal-info {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        transition: var(--transition);
        gap: 20px;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .header-contacts .call-btn {
        display: none;
    }
    
    .hero {
        padding: 150px 0 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .carousel-content {
        padding: 30px;
    }
    
    .carousel-content h3 {
        font-size: 1.7rem;
    }
    
    .carousel-image {
        padding: 30px 30px 0;
    }
    
    

}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .header-container {
        padding: 10px 15px;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .carousel-content {
        padding: 25px;
    }
    
    .carousel-content h3 {
        font-size: 1.5rem;
    }
    
    .carousel-image img {
        max-width: 250px;
        height: 250px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 25px 15px;
    }
    
    .service-modal-info h3 {
        font-size: 1.6rem;
    }
    
    .service-modal-price {
        font-size: 1.3rem;
    }
}
/* Адаптивность для блока контактов */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.contact-info {
    grid-column: 1;
}

.contact-form-section {
    grid-column: 2;
}

.contact-map {
    grid-column: 1 / span 2;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background-color: var(--light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.contact-item:hover {
    background-color: var(--gray-lighter);
    transform: translateY(-3px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-details h4 {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 1.1rem;
}

.contact-link {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 1rem;
    display: block;
    margin-top: 5px;
}

.contact-link:hover {
    color: var(--primary);
}

.contact-social {
    margin-top: 30px;
}

.contact-social h4 {
    margin-bottom: 15px;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--light);
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.social-link:nth-child(1):hover {
    background: linear-gradient(135deg, #006AFF, #00C6FF);
}

.social-link:nth-child(2):hover {
    background: linear-gradient(135deg, #0088cc, #00ccff);
}

.social-link:nth-child(3):hover {
    background: linear-gradient(135deg, #45668e, #5a7faf);
}

/* Форма в контактах */
.contact-form-section {
    background-color: var(--light);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contact-form-section h3 {
    margin-bottom: 25px;
    color: var(--primary);
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background-color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 91, 154, 0.1);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.form-footer {
    margin-top: 20px;
}

.form-note {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.5;
}

.form-note a {
    color: var(--primary);
    text-decoration: none;
}

.form-note a:hover {
    text-decoration: underline;
}

/* Карта */
.contact-map {
    width: 100%;
}

.contact-map h3 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.5rem;
}

/* Медиа-запросы для адаптивности */

/* Планшеты (до 1024px) */
@media screen and (max-width: 1024px) {
    .contacts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .contact-form-section {
        padding: 25px;
    }
}

/* Планшеты (до 768px) */
@media screen and (max-width: 768px) {
    .contacts {
        padding: 60px 0;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info {
        grid-column: 1;
    }
    
    .contact-form-section {
        grid-column: 1;
    }
    
    .contact-map {
        grid-column: 1;
        margin-top: 10px;
    }
    
    .contact-item {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .contact-form-section {
        padding: 25px;
    }
    
    .contact-form-section h3 {
        font-size: 1.4rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Мобильные (до 576px) */
@media screen and (max-width: 576px) {
    .contacts {
        padding: 50px 0;
    }
    
    .contacts-grid {
        gap: 25px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
        padding: 20px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .contact-details h4 {
        font-size: 1.1rem;
    }
    
    .contact-link {
        font-size: 1rem;
    }
    
    .contact-form-section {
        padding: 20px;
    }
    
    .contact-form-section h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .contact-form {
        gap: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px;
        font-size: 16px; /* Предотвращает масштабирование на iOS */
    }
    
    .form-group textarea {
        height: 120px;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* Очень маленькие экраны (до 400px) */
@media screen and (max-width: 400px) {
    .contacts {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .contact-info h3,
    .contact-form-section h3,
    .contact-map h3 {
        font-size: 1.2rem;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-form-section {
        padding: 18px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .btn-block {
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* Ландшафтная ориентация на мобильных */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .contacts {
        padding: 40px 0;
    }
    
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .contact-map {
        grid-column: 1 / -1;
        margin-top: 15px;
    }
}

/* Исправление для iOS Safari */
@supports (-webkit-touch-callout: none) {
    @media screen and (max-width: 768px) {
        .contact-form input,
        .contact-form textarea {
            font-size: 16px !important; /* Предотвращает масштабирование */
        }
    }
}

/* Гарантируем, что все элементы видны на мобильных */
@media screen and (max-width: 768px) {
    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        min-height: 44px; /* Минимальная высота для удобного тапа */
    }
    
    .contact-form textarea {
        min-height: 100px;
    }
    
    /* Улучшаем доступность на мобильных */
    .contact-link,
    .social-link,
    .btn {
        touch-action: manipulation;
    }
}

/* Улучшаем отображение телефона на очень маленьких экранах */
@media screen and (max-width: 360px) {
    .contact-link[href^="tel:"] {
        font-size: 1rem;
        font-weight: 600;
        color: var(--primary);
        padding: 5px 0;
        display: inline-block;
        word-break: break-all;
    }
    
    .contact-link[href^="mailto:"] {
        font-size: 0.95rem;
        word-break: break-all;
    }
}

/* ===== АВТОМАТИЧЕСКАЯ ПРОКРУЧИВАЮЩАЯСЯ КАРУСЕЛЬ ===== */

.auto-scroll-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 50px 0;
    padding: 20px 0;
}

.auto-scroll-content {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: autoScroll 40s linear infinite;
    animation-play-state: running;
}

/* Пауза при наведении */
.auto-scroll-carousel:hover .auto-scroll-content {
    animation-play-state: paused;
}

/* Анимация бесконечной прокрутки */
@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 2)); /* Прокручиваем на половину контента */
    }
}

/* Карточка отзыва (немного обновляем) */
.review-card {
    flex: 0 0 350px;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Элементы отзыва */
.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.review-info h4 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.stars {
    color: var(--secondary);
    font-size: 0.9rem;
}

.review-text {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--dark);
    font-size: 1rem;
    height: 120px;
    overflow: hidden;
    position: relative;
}

.review-text:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, white);
}

.review-date {
    color: var(--gray);
    font-size: 0.9rem;
    text-align: right;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--gray-light);
}

/* Подсказка о прокрутке */
.scroll-hint {
    text-align: center;
    margin-top: 40px;
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0.7;
}

.scroll-hint i {
    font-size: 1.2rem;
    color: var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translateX(0);
        opacity: 0.7;
    }
    50% {
        transform: translateX(5px);
        opacity: 1;
    }
}

/* Градиентные края для эффекта исчезновения */
.auto-scroll-carousel:before,
.auto-scroll-carousel:after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.auto-scroll-carousel:before {
    left: 0;
    background: linear-gradient(to right, var(--light), transparent);
}

.auto-scroll-carousel:after {
    right: 0;
    background: linear-gradient(to left, var(--light), transparent);
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты */
@media screen and (max-width: 992px) {
    .review-card {
        flex: 0 0 320px;
        padding: 25px;
    }
    
    .auto-scroll-content {
        gap: 25px;
    }
    
    @keyframes autoScroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-100% / 2));
        }
    }
}

/* Мобильные устройства */
@media screen and (max-width: 768px) {
    .auto-scroll-carousel {
        margin: 30px 0;
    }
    
    .review-card {
        flex: 0 0 280px;
        padding: 20px;
    }
    
    .auto-scroll-content {
        gap: 20px;
    }
    
    .review-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .review-info h4 {
        font-size: 1.1rem;
    }
    
    .review-text {
        font-size: 0.95rem;
        height: 100px;
    }
    
    .scroll-hint {
        font-size: 0.8rem;
        margin-top: 30px;
    }
    
    .auto-scroll-carousel:before,
    .auto-scroll-carousel:after {
        width: 50px;
    }
}

/* Очень маленькие экраны */
@media screen and (max-width: 480px) {
    .review-card {
        flex: 0 0 260px;
        padding: 18px;
    }
    
    .auto-scroll-content {
        gap: 15px;
    }
    
    .review-text {
        height: 90px;
        font-size: 0.9rem;
    }
}

/* Для устройств с уменьшенным движением */
@media (prefers-reduced-motion: reduce) {
    .auto-scroll-content {
        animation: none;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .auto-scroll-content::-webkit-scrollbar {
        height: 6px;
    }
    
    .auto-scroll-content::-webkit-scrollbar-track {
        background: var(--gray-light);
        border-radius: 3px;
    }
    
    .auto-scroll-content::-webkit-scrollbar-thumb {
        background: var(--primary);
        border-radius: 3px;
    }
}

/* ===== УВЕДОМЛЕНИЕ О COOKIES ===== */

.cookies-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--gray-light);
    overflow: hidden;
}

.cookies-notification.show {
    transform: translateY(0);
}

.cookies-content {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
}

.cookies-text {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.cookies-text i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.cookies-text h4 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.cookies-text p {
    color: var(--dark);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookies-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dotted var(--primary);
}

.cookies-text a:hover {
    border-bottom: 1px solid var(--primary);
}

.cookies-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cookies-buttons .btn {
    padding: 10px 24px;
    font-size: 0.9rem;
    min-width: 120px;
}

.cookies-buttons .btn-primary {
    background: var(--primary);
    border: none;
}

.cookies-buttons .btn-secondary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.cookies-buttons .btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Индикатор что уведомление скрыто */
.cookies-notification:not(.show) {
    pointer-events: none;
}

/* Анимация появления */
@keyframes slideUpCookies {
    from {
        transform: translateY(150%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookies-notification.show {
    animation: slideUpCookies 0.5s ease forwards;
}

/* Адаптивность */
@media screen and (max-width: 768px) {
    .cookies-notification {
        left: 15px;
        right: 15px;
        bottom: 15px;
        max-width: none;
    }
    
    .cookies-content {
        padding: 15px;
        gap: 15px;
    }
    
    .cookies-text {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .cookies-text i {
        font-size: 1.8rem;
        margin: 0 auto;
    }
    
    .cookies-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookies-buttons .btn {
        min-width: 100%;
        padding: 12px;
    }
}

@media screen and (max-width: 480px) {
    .cookies-notification {
        left: 10px;
        right: 10px;
        bottom: 10px;
        border-radius: 12px;
    }
    
    .cookies-text h4 {
        font-size: 1rem;
    }
    
    .cookies-text p {
        font-size: 0.85rem;
    }
}

/* Для печати - скрываем */
@media print {
    .cookies-notification {
        display: none !important;
    }
}

.dev-logo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.dev-logo-link:hover {
    transform: translateY(-3px);
}

.dev-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.dev-name {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* ===== ГАЛЕРЕЯ В БЛОКЕ "О НАС" ===== */

.about-gallery {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    height: 100%;
}

/* Слайдер */
.gallery-slider {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
    z-index: 1;
}

.gallery-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Подпись слайда */
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 25px 30px;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.5s ease 0.3s;
}

.gallery-slide.active .slide-caption {
    transform: translateY(0);
    opacity: 1;
}

.slide-caption h4 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: white;
}

.slide-caption p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0;
}

/* Навигация */
.gallery-nav {
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
}

.gallery-prev,
.gallery-next {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.gallery-prev:hover,
.gallery-next:hover {
    background: var(--white);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.gallery-prev:active,
.gallery-next:active {
    transform: scale(0.95);
}

/* Точки навигации */
.gallery-dots {
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.gallery-dot.active {
    background: var(--secondary);
    transform: scale(1.3);
}

.gallery-dot.active::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px solid var(--secondary);
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Прогресс бар автопрокрутки */
.auto-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 100%;
    background: var(--secondary);
    transform: translateX(-100%);
    animation: progress 30s linear infinite;
}

@keyframes progress {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Пауза анимации при наведении */
.about-gallery:hover .progress-bar {
    animation-play-state: paused;
}

/* Индикатор свайпа для мобильных */
.gallery-swipe-hint {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    backdrop-filter: blur(5px);
    display: none;
}

.gallery-swipe-hint i {
    animation: swipeHint 2s infinite;
}

@keyframes swipeHint {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

/* ===== АДАПТИВНОСТЬ ГАЛЕРЕИ ===== */

@media screen and (max-width: 992px) {
    .gallery-slider {
        height: 350px;
    }
    
    .slide-caption {
        padding: 20px 25px;
    }
    
    .slide-caption h4 {
        font-size: 1.2rem;
    }
    
    .gallery-nav {
        bottom: 80px;
    }
}

@media screen and (max-width: 768px) {
    .gallery-slider {
        height: 300px;
    }
    
    .gallery-nav {
        bottom: 70px;
        padding: 0 15px;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .slide-caption {
        padding: 15px 20px;
    }
    
    .slide-caption h4 {
        font-size: 1.1rem;
    }
    
    .slide-caption p {
        font-size: 0.9rem;
    }
    
    .gallery-swipe-hint {
        display: flex;
    }
}

@media screen and (max-width: 576px) {
    .gallery-slider {
        height: 250px;
    }
    
    .gallery-nav {
        bottom: 60px;
    }
    
    .gallery-dots {
        gap: 8px;
        padding: 6px 12px;
    }
    
    .gallery-dot {
        width: 10px;
        height: 10px;
    }
    
    .slide-caption h4 {
        font-size: 1rem;
    }
    
    .slide-caption p {
        font-size: 0.85rem;
    }
}

/* Для очень маленьких экранов */
@media screen and (max-width: 400px) {
    .gallery-slider {
        height: 220px;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .gallery-swipe-hint {
        top: 10px;
        right: 10px;
        font-size: 0.7rem;
    }
}




.row-captcha {
    display: flex;
    gap: 15px;
    align-items: center;
}

.img-container-captcha, .input-container-captcha {
    flex: 1;
    min-width: 0;
}

.img-container-captcha img {
    width: 100%;
    height: 60px; /* или любая нужная высота */
    object-fit: cover;
    border-radius: 8px;
	cursor: pointer;
}

.input-container-captcha input {
    width: 100%;
    height: 60px; /* такая же высота как у картинки */
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
}

/* Стили для валидации */
.input-container-captcha input.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.input-container-captcha input.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}