/* Основные стили */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

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

/* Стили для секций с разными фонами */
.section {
    padding: 60px 0;
    position: relative;
}

/* Герой-секция */
.hero {
    background: linear-gradient(135deg, #6a5acd, #4ecdc4);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.booking-buttons {
    display: flex;
    justify-content: center; /* Центрируем кнопки */
    margin: 30px 0;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* Обо мне */
#about {
    background: url('../images/24.png') fixed center center;
    background-size: cover;
    position: relative;
    padding: 80px 0;
    color: #333;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75); /* Увеличена прозрачность белого фона для большей светлоты */
    z-index: -1;
}

.about-content {
    position: relative;
    z-index: 1;
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #333;
}

/* Методы моей работы */
#methods {
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0.5)), url('../images/25.jpeg') fixed center center;
    background-size: cover;
    position: relative;
    padding: 80px 0;
    color: #333;
    background-repeat: no-repeat;
    background-position: center;
}

#methods::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25); /* Уменьшаем прозрачность для лучшего эффекта */
    z-index: -1;
}

.methods-grid {
    position: relative;
    z-index: 1;
}

/* Стили для размытых областей на документах */
.document-blur {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    filter: blur(3px);
    z-index: -1;
}

/* Темы, с которыми я работаю */
#topics {
    background: #ffffff;
}


/* Отзывы */
#reviews {
    background: #f9f9f9;
}

/* Контакты */
#contacts {
    background: url('../images/23.jpg') no-repeat center center;
    background-attachment: fixed;
    background-size: cover;
    position: relative;
    padding: 80px 0;
    margin-top: 60px;
}

#contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.65);
    z-index: 1;
}

#contacts .container {
    position: relative;
    z-index: 2;
}

#contacts .section h2 {
    color: #2c3e50;
}

/* Адаптивность для параллакса на мобильных устройствах */
@media screen and (max-width: 768px) {
    #contacts {
        background-attachment: scroll;
    }
}

/* Стили для контактов (для внутренней страницы) */
.internal-page.contacts-page {
    background: url('../images/23.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    padding: 20px 0;
}

.internal-page.contacts-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.65);
    z-index: 1;
}

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

/* Стили для контактов */
.messenger-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 30px auto;
}

.messenger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f0f0f0;
    color: #333;
    padding: 15px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.messenger-btn i {
    font-size: 1.5em;
}

.messenger-btn:hover {
    background: #e0e0e0;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Стили для навигации */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar ul {
    display: flex;
    justify-content: center;
    list-style: none;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    padding: 8px 16px;
    border-radius: 5px;
}

.navbar a:hover {
    color: #6a5acd;
    background: rgba(106, 90, 205, 0.1);
}

/* Стили для карточек методов */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.method-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.15);
    text-align: center;
}

.method-card:hover {
    transform: translateY(-10px);
}

.method-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.method-card p {
    margin-bottom: 0;
    color: #555;
    font-size: 0.95rem;
}

/* Стили для карточек методов (уменьшены для лучшего вида) */
.method-card a {
    color: inherit;
    text-decoration: none;
}

/* Стили для карточек отзывов */
.review-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.review-card h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Стили для карточек контактов */
.contact-card {
    background: rgba(255, 255, 255, 0.85);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.contact-card p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #6a5acd;
    font-weight: bold;
}

/* Стили для кнопок */
.btn, .wave-btn, .compact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    min-width: 180px;
    min-height: 45px;
    padding: 12px 30px;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 0 10px;
}

/* Стили для кнопок с градиентом */
.wave-btn {
    background: linear-gradient(45deg, #6a5acd, #ff6b6b, #4ecdc4);
    background-size: 300% 300%;
    animation: gradientWave 3s ease infinite;
    color: white;
    border: none;
}

.wave-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Стили для компактных кнопок */
.compact-btn {
    padding: 12px 30px; /* Возвращаем стандартный паддинг для сохранения размеров */
    min-width: 180px; /* Возвращаем минимальную ширину */
    min-height: 45px; /* Возвращаем минимальную высоту */
    font-size: 16px; /* Возвращаем размер шрифта */
}

/* Общие стили для контейнеров кнопок */
.button-container,
.contact-buttons,
.about-buttons,
.booking-buttons,
.reviews-button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Центрируем кнопки */
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

/* Стили для кнопок в различных контекстах */
.btn:hover,
.wave-btn:hover,
.compact-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn:active,
.wave-btn:active,
.compact-btn:active {
    transform: scale(0.98);
}

/* Стили для кнопок в разделе контактов */
.contact-buttons .wave-btn {
    flex: 1;
    max-width: 250px;
    margin: 0;
}

/* Стили для кнопок в герой-секции */
.booking-buttons .compact-btn {
    min-width: 150px;
    max-width: 250px;
}

/* Стили для кнопок в разделе "обо мне" */
.about-buttons .wave-btn,
.about-buttons .compact-btn {
    margin: 0 10px;
}

/* Стили для кнопок в разделе "обо мне" */
.about-buttons {
    margin-top: 30px;
}

/* Стили для кнопки отправки формы */
#contactForm button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: #6a5acd;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#contactForm button[type="submit"]:enabled {
    opacity: 1;
    cursor: pointer;
    background: #6a5acd;
}

#contactForm button[type="submit"]:enabled:hover {
    background: #5a4ac0;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#contactForm button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Стили для карточек методов */
.method-card .wave-btn {
    display: inline-block;
    background: #6a5acd;
    color: white;
    padding: 12px 30px;
    margin: 0 10px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: bold;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    font-size: 16px;
    min-width: 180px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-card .wave-btn:hover {
    background: #5a4ac0;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Стили для карточек отзывов */
.review-card .wave-btn {
    display: inline-block;
    background: #6a5acd;
    color: white;
    padding: 12px 30px;
    margin: 0 10px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: bold;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    font-size: 16px;
    min-width: 180px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-card .wave-btn:hover {
    background: #5a4ac0;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Стили для кнопок в карточках контактов */
.contact-card .btn {
    display: inline-block;
    background: #6a5acd;
    color: white;
    padding: 12px 30px;
    margin: 10px 5px; /* уменьшаем горизонтальные отступы */
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
    font-weight: bold;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    font-size: 16px;
    min-width: 180px;
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card .btn:hover {
    background: #5a4ac0;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Стили для размещения тем и изображения */
.topics-layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.topics-image {
    flex: 1;
    min-width: 300px;
}

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

.topics-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 300px;
}

.topic-link {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    background: #f9f9f9;
    height: 100%; /* Занимает всю высоту */
}

.topic-link:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: #6a5acd;
}

.topic-link strong {
    margin-bottom: 8px;
    color: #2c3e50;
}

.topic-link p {
    margin: 0;
    color: #666;
    line-height: 1.4;
    flex-grow: 1; /* Занимает свободное место */
}

/* Стили для кнопок описания тем - теперь центрируем по центру */
.topic-link .topic-button {
    align-self: center; /* Кнопка теперь по центру */
    background: #6a5acd;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    width: auto; /* Не фиксированная ширина */
    margin-top: 10px; /* Отступ сверху */
    min-width: 180px; /* Добавляем минимальную ширину */
    min-height: 45px; /* Добавляем минимальную высоту */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px; /* Размер шрифта */
    text-align: center; /* Центрируем текст */
}

.topic-link .topic-button:hover {
    background: #5a4ac0;
}

/* Стили для футера */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer p {
    text-align: center;
    margin-bottom: 10px;
}

.copyright-info {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 8px;
}

/* Стили для юридических ссылок */
.legal-links {
    text-align: right;
    margin-top: 10px;
    font-size: 0.7rem;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.legal-links.hidden {
    opacity: 0;
}

.legal-links a {
    display: inline-block;
    color: #ddd;
    margin: 5px 0;
    text-decoration: none;
    line-height: 1.3;
    font-size: 0.7rem;
    margin-left: 15px;
}

.legal-links a:hover {
    color: #fff;
}

/* Стили для карусели отзывов */
.reviews-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: white;
    padding: 20px;
}

.reviews-carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    text-align: center;
}

.carousel-slide img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: #6a5acd;
}

.reviews-button-container {
    display: flex;
    justify-content: center; /* Центрируем кнопки */
    text-align: center;
    margin-top: 30px;
}

/* Стили для модального окна */
.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 95vw;
    max-height: 90vh;
    min-width: 80%;
    min-height: 80%;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.close:hover {
    color: #ccc;
}

/* Стили для навигационных стрелок */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    z-index: 10001;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.prev-arrow {
    left: 20px;
}

.next-arrow {
    right: 20px;
}

.nav-arrow:hover {
    background-color: rgba(50,50,50,0.7);
}

/* Стили для раздела обо мне */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-text {
    width: 100%;
    text-align: center;
}

.about-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
}

.centered-btn {
    display: inline-block;
    margin: 0 10px;
}

/* Стили для списка тем */
.topics-list {
    flex: 1;
    min-width: 300px;
    padding: 10px;
}

.topics-list a.topic-link {
    display: block;
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid rgba(0,0,0,0.05);
}

.topics-list a.topic-link:hover {
    background: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.topics-list a.topic-link strong {
    color: #2c3e50;
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.topics-list a.topic-link p {
    color: #555;
    margin: 0;
    font-size: 0.95rem;
}

/* Стили для адаптивных изображений */
.hero-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.hero-image {
    flex: 0 0 25%;
    min-width: 200px;
    max-width: 250px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.15);
}

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

.topics-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.topics-image {
    flex: 0 0 30%;
    min-width: 250px;
}

.topics-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.15);
}

.topics-list {
    flex: 1;
    min-width: 300px;
    padding: 10px;
}

.topics-list a {
    font-size: 0.9rem;
    padding: 8px;
    margin-bottom: 8px;
}

.topics-list a strong {
    font-size: 1rem;
}

.topics-list a p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Стили для фотогалереи */
.gallery-container {
    margin: 30px 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    height: 200px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Стили для плавающей кнопки "наверх" */
.scrollTop {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: rgba(106, 90, 205, 0.3);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0.8;
    transition: all 0.3s;
    visibility: hidden;
    transform: translateY(20px);
}

.scrollTop.show {
    visibility: visible;
    transform: translateY(0);
}

.scrollTop:hover {
    background: rgba(106, 90, 205, 0.5);
    opacity: 1;
    transform: translateY(-2px);
}

.scrollTop:active {
    transform: translateY(0);
}

/* Стили для общей анимации */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        align-items: center;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .booking-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        margin: 5px 0;
    }
    
    .stats {
        flex-direction: column;
    }
    
    .section h2 {
        font-size: 1.8rem;
    }
    
    /* Адаптация для мобильных устройств */
    .hero-layout,
    .topics-layout {
        flex-direction: column;
    }
    
    .hero-image,
    .topics-image {
        min-width: 100%;
        margin-bottom: 15px;
    }
    
    .hero-image img,
    .topics-image img {
        max-width: 100%;
    }
    
    .topics-list a {
        font-size: 1rem;
        padding: 10px;
    }
    
    .topics-list a strong {
        font-size: 1.1rem;
    }
    
    .topics-list a p {
        font-size: 1rem;
    }
    
    .methods-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
}

/* Улучшенные стили для внутренних страниц */
.section {
    padding: 60px 0;
    position: relative;
}

/* Стили для внутренних страниц */
.internal-page {
    background: #f8f9fa;
    min-height: 100vh;
    padding-top: 80px; /* Добавляем отступ сверху, чтобы контент не скрывался за навигацией */
}

.internal-page .section {
    background: white;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 40px;
}

.internal-page h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.internal-page h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #6a5acd;
    border-radius: 2px;
}

.internal-page h2 {
    color: #34495e;
    margin: 25px 0 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.internal-page ul {
    margin: 15px 0;
    padding-left: 20px;
}

.internal-page li {
    margin-bottom: 8px;
}

.internal-page p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #555;
}

.internal-page a {
    color: #6a5acd;
    text-decoration: none;
    font-weight: bold;
}

.internal-page a:hover {
    color: #4a3a9c;
    text-decoration: underline;
}

/* Стили для кнопки "назад" на внутренних страницах */
.back-btn {
    display: inline-flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 12px 24px;
    background: linear-gradient(45deg, #6a5acd, #4ecdc4);
    background-size: 300% 300%;
    animation: gradientWave 3s ease infinite;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 999; /* Увеличиваем z-index, чтобы кнопка была поверх других элементов */
}

.back-btn:hover {
    background: linear-gradient(45deg, #4a3a9c, #34495e);
    transform: translateY(-2px);
}

.back-btn i {
    margin-right: 10px;
}

/* Стили для заголовков секций */
.section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 20px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #6a5acd;
    border-radius: 2px;
}

/* Стили для формы обратной связи */
.modal-form {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10001; /* Увеличиваем z-index контента модального окна */
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002; /* Увеличиваем z-index кнопки закрытия */
}

.close:hover {
    color: #000;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

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

.checkbox-container {
    display: flex;
    align-items: center;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

/* Стили для кнопки отправки формы */
#contactForm button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: #6a5acd;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#contactForm button[type="submit"]:enabled {
    opacity: 1;
    cursor: pointer;
    background: #6a5acd;
}

#contactForm button[type="submit"]:enabled:hover {
    background: #5a4ac0;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#contactForm button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Стили для окна подтверждения */
#confirmationModal .modal-content {
    text-align: center;
    padding: 40px;
}

#confirmationModal p {
    margin: 20px 0;
    font-size: 18px;
    color: #2c3e50;
}

/* Стили для размещения тем и изображения */
.topics-layout {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.topics-image {
    flex: 1;
    min-width: 300px;
}

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

.topics-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 300px;
}

.topic-link {
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    background: #f9f9f9;
    height: 100%; /* Занимает всю высоту */
}

.topic-link:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: #6a5acd;
}

.topic-link strong {
    margin-bottom: 8px;
    color: #2c3e50;
}

.topic-link p {
    margin: 0;
    color: #666;
    line-height: 1.4;
    flex-grow: 1; /* Занимает свободное место */
}

/* Стили для кнопок описания тем - теперь центрируем по центру */
.topic-link .topic-button {
    align-self: center; /* Кнопка теперь по центру */
    background: #6a5acd;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    width: auto; /* Не фиксированная ширина */
    margin-top: 10px; /* Отступ сверху */
}

.topic-link .topic-button:hover {
    background: #5a4ac0;
}

/* Компактные кнопки */
.compact-btn {
    display: inline-block;
    background: linear-gradient(45deg, #6a5acd, #ff6b6b, #4ecdc4);
    background-size: 300% 300%;
    animation: gradientWave 3s ease infinite;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: bold;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    font-size: 16px;
    min-width: 180px; /* Устанавливаем минимальную ширину как в общем определении */
    max-width: 300px; /* Максимальная ширина */
    min-height: 45px; /* Устанавливаем минимальную высоту как в общем определении */
    display: flex;
    align-items: center;
    justify-content: center;
}

.compact-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

/* Стили для кнопок в герой-секции (Записаться) */
.booking-buttons .compact-btn {
    width: auto; /* Убираем фиксированную ширину */
    min-width: 150px; /* Уменьшаем минимальную ширину */
    max-width: 250px; /* Ограничиваем максимальную ширину */
}

/* Стили для кнопки на Яндекс Услугах */
.reviews-button-container .compact-btn {
    width: auto; /* Убираем фиксированную ширину */
    min-width: 200px; /* Уменьшаем минимальную ширину */
    max-width: 300px; /* Ограничиваем максимальную ширину */
}

/* Стили для кнопок в разделе "Обо мне" */
.about-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center; /* Центрируем кнопки */
}

.about-buttons .compact-btn {
    margin: 0 10px;
    min-width: 180px;
    min-height: 45px;
    text-align: center;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px; /* Убедимся, что паддинг одинаков для всех кнопок */
}

/* Стили для кнопок в разделе "обо мне" (для старых стилей) */
.about-buttons .wave-btn {
    margin: 0 10px;
    min-width: 180px;
    min-height: 45px;
    text-align: center;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px; /* Убедимся, что паддинг одинаков для всех кнопок */
}
/* Анимации */
@keyframes gradientWave {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Анимация для прокрутки */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Кнопка прокрутки вверх */
.scrollTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #6a5acd;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.scrollTop.show {
    opacity: 1;
    visibility: visible;
}

.scrollTop:hover {
    background-color: #5a4ac0;
    transform: scale(1.1);
}

/* Стили для формы обратной связи */
.modal-form {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
}

.close:hover {
    color: #000;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

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

.checkbox-container {
    display: flex;
    align-items: center;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

/* Стили для окна подтверждения */
#confirmationModal .modal-content {
    text-align: center;
    padding: 40px;
}

#confirmationModal p {
    margin: 20px 0;
    font-size: 18px;
    color: #2c3e50;
}

/* Стили для cookie-предупреждения */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

.cookie-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 80%;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.cookie-modal-content h3 {
    margin-top: 0;
    color: #2c3e50;
}

.cookie-modal-content p {
    margin: 15px 0;
    color: #555;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.cookie-buttons .wave-btn {
    min-width: 120px;
}

/* Стили для предотвращения прокрутки фона при открытии модального окна */
body.modal-open {
    overflow: hidden;
    padding-right: 0; /* компенсирует исчезновение полосы прокрутки */
}

/* Адаптивные стили */
@media screen and (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        align-items: center;
    }
    
    .navbar li {
        margin: 5px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-layout {
        flex-direction: column;
    }
    
    .topics-layout {
        flex-direction: column;
    }
    
    .methods-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-buttons .compact-btn,
    .reviews-button-container .compact-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .about-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .contact-buttons .wave-btn {
        width: 100%;
    }
    
    .stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons .wave-btn {
        width: 100%;
    }
}