/* Общие стили */
:root {
    --primary-color: #4a86e8;
    --secondary-color: #6aa84f;
    --dark-color: #333;
    --light-color: #f9f9f9;
    --font-main: 'Roboto', Arial, sans-serif;
    --blue-bg: #c3d2ec; /* Светло-голубой цвет для фона */
    --chat-bg: #f0f5ff; /* Фон для чата */
    --message-own-bg: #e3f2fd; /* Фон для собственных сообщений */
    --message-other-bg: #ffffff; /* Фон для чужих сообщений */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #fff;
    margin: 0;
    padding: 0;
    font-weight: 500; /* Увеличиваем жирность текста по умолчанию */
}

/* Стили для текста */
p {
    font-size: 1.05rem; /* Увеличиваем размер текста */
    font-weight: 500; /* Делаем текст более жирным */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700; /* Делаем заголовки более жирными */
}

/* Анимации и эффекты */
.help-container, 
.principle-item, 
.certificate-placeholder,
.question-item,
.request-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.help-container:hover, 
.principle-item:hover, 
.certificate-placeholder:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.question-item:hover,
.request-item:hover {
    transform: translateX(5px);
}

/* Стили для хедера */
.site-header {
    background-color: var(--dark-color);
    color: #fff;
    padding: 13px 0; /* Уменьшено с 20px до 13px */
}

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

.logo h1 {
    font-size: 16px; /* Уменьшено с 20px до 16px */
    margin: 0;
    color: white;
    font-weight: 600;
}

.header-links {
    display: flex;
    align-items: center;
}

.header-buttons {
    margin-right: 15px;
}

.header-nav ul {
    list-style: none;
    padding: 0;
    margin: 0 20px 0 0;
    display: flex;
}

.header-nav ul li {
    margin-left: 20px;
}

.header-nav ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.header-nav ul li a:hover {
    color: white;
}

.header-social {
    display: flex;
}

.header-social .social-icon {
    display: inline-block;
    margin-left: 15px;
    color: #ccc;
    font-size: 30px; /* Уменьшено с 40px до 30px */
    transition: color 0.3s;
}

.header-social .social-icon:hover {
    color: white;
}

/* Стили для аватара пользователя */
.avatar-circle {
    width: 32px;
    height: 32px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.initials {
    font-size: 14px;
    line-height: 1;
}

.user-info {
    background-color: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 5px 12px 5px 5px;
}

/* Стили для группы кнопок */
.btn-group .btn {
    border-radius: 0;
}

.btn-group .btn:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Стили для формы выхода */
.btn-group form {
    display: inline-block;
}

.btn-group form button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* Стили для секции с изображением */
.hero-image {
    width: 100%;
    overflow: hidden;
    text-align: center;
    background-color: var(--blue-bg);
    position: relative;
    height: 500px; /* Уменьшил высоту с 600px до 500px */
    max-height: 70vh; /* Максимальная высота относительно экрана */
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-wrapper:before,
.hero-wrapper:after {
    content: '';
    position: absolute;
    top: 0;
    height: 100%;
    width: 50px;
    z-index: 1;
}

.hero-wrapper:before {
    left: 0;
    background: linear-gradient(to right, var(--blue-bg), transparent);
}

.hero-wrapper:after {
    right: 0;
    background: linear-gradient(to left, var(--blue-bg), transparent);
}

.hero-img {
    max-width: 1200px; /* Ограничиваем максимальную ширину */
    width: auto; /* Автоматическая ширина для сохранения пропорций */
    height: 100%;
    max-height: 500px; /* Ограничиваем максимальную высоту */
    object-fit: contain; /* Изменено с cover на contain для сохранения пропорций */
    object-position: center; /* Центрируем изображение */
    display: block;
    filter: brightness(0.9) contrast(1.05); /* Улучшенные настройки фильтров */
    image-rendering: auto; /* Убираем агрессивные настройки рендеринга */
    image-rendering: -webkit-optimize-contrast;
    backface-visibility: hidden;
    transform: translateZ(0);
    border-radius: 8px; /* Добавляем скругленные углы */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Добавляем тень для глубины */
}

/* Специальный класс для высококачественного отображения */
.hero-img-hq {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    filter: brightness(0.9) contrast(1.1) saturate(1.1); /* Лучшая цветопередача */
    transition: filter 0.3s ease;
}

.hero-img-hq:hover {
    filter: brightness(1.0) contrast(1.15) saturate(1.15); /* При наведении становится ярче */
}

.hero-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 80%;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-button:hover {
    background-color: #3a6bba;
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    color: white;
}

/* Стили для секции с контентом */
.content-section {
    padding: 70px 0; /* Увеличено с 30px */
    background-color: #fff;
}

.main-title {
    font-size: 2.6rem; /* Увеличено с 2.5rem */
    font-weight: 800; /* Увеличено с 700 */
    color: var(--primary-color);
    margin-bottom: 20px;
}

.main-subtitle {
    font-size: 1.35rem; /* Увеличено с 1.25rem */
    max-width: 700px;
    margin: 0 auto;
    color: #000; /* Изменено с var(--dark-color) на черный */
    font-weight: 500;
}

.main-buttons {
    margin-top: 30px;
}

.main-buttons .btn {
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.main-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Стили для секции "Чем мы можем помочь" - увеличиваем отступ снизу */
.help-section {
    padding: 70px 0 105px; /* Увеличиваем отступ снизу в 1.5 раза (с 70px до 105px) */
    background-color: #f9f9f9;
}

.section-title {
    font-size: 2.1rem; /* Увеличено с 2rem */
    font-weight: 800; /* Увеличено с bold */
    color: var(--primary-color); /* Изменено с #333 на голубой */
    margin-bottom: 120px; /* Увеличено в 2 раза с 60px до 120px */
    text-transform: uppercase;
}

.help-items {
    margin-top: 30px;
}

.help-item {
    margin-bottom: 30px;
}

.help-container {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    position: relative;
    border-radius: 8px;
    background-color: #f9f9f9; /* Тот же цвет, что и фон секции */
    height: 100%;
    transition: transform 0.3s ease;
    box-shadow: none; /* Убираем тень */
}

.help-container:hover {
    transform: translateY(-5px);
    box-shadow: none; /* Убираем тень при наведении */
}

.help-image {
    width: 60%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.help-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.help-text {
    width: 40%;
    padding: 15px;
    background-color: #f9f9f9; /* Тот же цвет, что и фон секции */
    border-radius: 8px;
}

.help-text h4 {
    color: var(--primary-color); /* Оставляем цветным для акцента */
    margin: 0 0 5px 0;
    font-size: 1.3rem; /* Увеличено с 1.2rem */
    font-weight: 700; /* Увеличено с bold */
}

.help-text p {
    color: #333;
    margin: 0;
    font-size: 1rem; /* Увеличено с 0.9rem */
    font-weight: 500; /* Добавлено */
}

/* Стили для секции "Главные принципы нашей работы" */
.principles-section {
    padding: 105px 0 105px; /* Увеличиваем отступы сверху и снизу в 1.5 раза (с 70px до 105px) */
    background-color: var(--blue-bg);
    text-align: center;
}

.principles-title {
    font-size: 2.1rem; /* Увеличено с 2rem */
    font-weight: 800; /* Увеличено с bold */
    color: white;
    margin-bottom: 80px; /* Увеличено в 2 раза с 40px до 80px */
    text-transform: uppercase;
    text-align: center;
}

.principles-items {
    margin-top: 30px;
}

.principle-item {
    margin-bottom: 30px;
    text-align: center;
}

.principle-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.principle-image img {
    max-width: 100%;
    max-height: 100%;
}

.principle-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.principle-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.principle-text {
    color: #333;
    margin: 0 auto;
    max-width: 90%;
    font-size: 1.1rem; /* Увеличено с 1rem */
    padding-top: 0;
    font-weight: 500; /* Добавлено */
}

/* Делаем кнопку "Бесплатное оказание помощи" более закругленной */
.free-help-banner {
    margin-top: 30px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 20px; /* Увеличено с 5px до 20px для более сильного закругления */
    text-align: center;
    transition: all 0.3s ease; /* Добавляем плавность при наведении */
}

.free-help-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.free-help-banner span {
    font-size: 1.6rem; /* Увеличено с 1.5rem */
    font-weight: 800; /* Увеличено с bold */
    color: white;
    text-transform: uppercase;
}

/* Стили для секции "Обращайся к нам с любыми вопросами" - увеличиваем отступ сверху */
.questions-section {
    padding: 105px 0 40px; /* Уменьшаем нижний отступ */
    background-color: #fff;
}

.questions-title {
    font-size: 2.1rem; /* Увеличено с 2rem */
    font-weight: 800; /* Увеличено с bold */
    color: var(--primary-color);
    margin-bottom: 80px; /* Увеличено в 2 раза с 40px до 80px */
    text-transform: uppercase;
    text-align: center;
}

.questions-list {
    padding-right: 0;
}

/* Стили для контейнера услуг */
.services-container {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 8px 8px 20px rgba(74, 134, 232, 0.3);
    padding: 30px; /* Увеличиваем отступы */
    position: relative;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
    border-radius: 20px; /* Увеличиваем скругление углов */
}

.services-container .question-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-left: 10px; /* Добавляем отступ слева */
    padding-right: 10px; /* Добавляем отступ справа */
}

.services-container .question-item:last-child {
    margin-bottom: 20px; /* Увеличиваем отступ снизу */
    border-bottom: none;
}

.services-price {
    display: flex;
    align-items: center;
    margin-top: 30px; /* Увеличиваем отступ сверху для цены */
    margin-bottom: 15px; /* Добавляем отступ снизу */
    padding-left: 10px; /* Добавляем отступ слева */
}

.services-price .price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-right: 10px;
}

.services-price .price-description {
    font-size: 1rem;
    color: #666;
}

/* Удаляю старые стили для блока с информацией о сессии и цене */
.session-info,
.session-title,
.price-tag {
    /* Пустые правила для удаления стилей */
}

.question-item {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.question-item h4 {
    color: var(--primary-color); /* Оставляем цветным для акцента */
    font-weight: 700; /* Увеличено с 600 */
    margin-bottom: 5px;
    font-size: 1.3rem; /* Увеличено с 1.2rem */
}

.question-item p {
    color: #666;
    margin: 0;
    font-size: 1.05rem; /* Увеличено с 1rem */
    font-weight: 500; /* Добавлено */
}

.consultation-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 15px;
    border-radius: 15px; /* Добавляем скругление */
}

.consultation-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px; /* Добавляем скругление */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Добавляем тень */
}

/* Стили для секции "Запросы с которыми работаем" */
.requests-section {
    padding: 30px 0 30px; /* Сильно уменьшаем верхний и нижний отступы */
    background-color: var(--light-color);
}

.requests-title {
    font-size: 2.1rem; /* Увеличено с 2rem */
    font-weight: 800; /* Увеличено с bold */
    color: var(--primary-color);
    margin-bottom: 80px; /* Увеличено в 2 раза с 40px до 80px */
    text-transform: uppercase;
    text-align: center;
}

.requests-list {
    max-width: 900px;
    margin: 0 auto;
}

.request-item {
    display: flex;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
}

.request-number {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 20px;
}

.request-content {
    flex: 1;
}

.request-content h4 {
    color: var(--primary-color); /* Оставляем цветным для акцента */
    font-weight: 700; /* Увеличено с 600 */
    margin-bottom: 10px;
    font-size: 1.4rem; /* Увеличено с 1.3rem */
}

.request-content p {
    color: #666;
    margin: 0;
    font-size: 1.05rem; /* Увеличено с 1rem */
    line-height: 1.5;
    font-weight: 500; /* Добавлено */
}

.request-content strong {
    color: #e74c3c;
    font-weight: 700; /* Увеличено с 600 */
}

/* Стили для секции "Отзывы наших клиентов" */
.testimonials-section {
    padding: 30px 0 70px; /* Уменьшаем верхний отступ */
    background-color: var(--light-color);
}

.testimonials-title {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 80px; /* Увеличено в 2 раза с 40px до 80px */
    text-transform: uppercase;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-item {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 8px 8px 20px rgba(74, 134, 232, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border-right: 4px solid var(--primary-color);
    border-bottom: 4px solid var(--primary-color);
}

/* Удаляю псевдоэлементы с рамками */
.testimonial-item::before,
.testimonial-item::after {
    content: none;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 12px 12px 30px rgba(74, 134, 232, 0.5);
}

.testimonial-content {
    padding: 25px;
    flex: 1;
}

.testimonial-text {
    color: #000;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 500;
}

.testimonial-text:last-child {
    margin-bottom: 0;
}

.testimonial-author {
    background-color: #f5f9ff; /* Светло-голубой фон */
    padding: 15px 25px;
    border-top: 1px solid #e0e0e0;
}

.testimonial-author p {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-align: right;
}

.testimonial-date {
    color: #777;
    font-size: 0.9rem;
    font-weight: normal;
    margin-top: 5px;
    text-align: right;
}

/* Адаптивность для отзывов */
@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-content {
        padding: 20px;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
    }
    
    .testimonial-author p {
        font-size: 1rem;
    }
}

/* Стили для секции "Сертификаты наших специалистов" */
.certificates-section {
    padding: 70px 0; /* Увеличено с 50px */
    background-color: #fff;
    text-align: center;
}

.certificates-title {
    font-size: 2.1rem; /* Увеличено с 2rem */
    font-weight: 800; /* Увеличено с bold */
    color: var(--primary-color);
    margin-bottom: 80px; /* Увеличено в 2 раза с 40px до 80px */
    text-transform: uppercase;
    text-align: center;
}

.certificate-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

/* Новые стили для отображения сертификата */
.certificate-item {
    max-width: 1000px; /* Увеличено с 500px до 1000px (в 2 раза) */
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.certificate-img {
    width: 100%;
    height: auto;
    display: block;
}

.certificate-caption {
    padding: 15px;
    background-color: #fff;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

/* Сохраняем старые стили для совместимости */
.certificate-placeholder {
    width: 500px;
    height: 350px;
    border: 3px dashed var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background-color: rgba(74, 134, 232, 0.05);
}

.certificate-inner {
    text-align: center;
}

.certificate-icon {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.certificate-placeholder p {
    color: var(--primary-color);
    font-size: 1.3rem; /* Увеличено с 1.2rem */
    font-weight: 600; /* Увеличено с 500 */
}

/* Стили для футера */
.site-footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 40px 0 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-column {
    flex: 1;
    min-width: 160px;
    margin-bottom: 20px;
}

.footer-column h4 {
    color: white;
    font-size: 1.3rem; /* Увеличено с 1.2rem */
    margin-bottom: 15px;
    font-weight: 700; /* Увеличено с 600 */
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1rem; /* Увеличено с 0.95rem */
    font-weight: 500; /* Добавлено */
}

.footer-column a:hover {
    color: white;
}

.footer-column .social-icons a {
    margin-left: 0;
    color: #ccc;
    font-size: inherit;
}

.footer-column .social-icons a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 10px;
}

/* Стили для мобильных устройств - дополнительные */
@media (max-width: 767px) {
    .header-text h1 {
        font-size: 16px;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .social-icons {
        text-align: center !important;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .main-subtitle {
        font-size: 1rem;
    }
    
    .site-header .col-md-4, 
    .site-header .col-md-8 {
        width: 100%;
    }
    
    .hero-image {
        height: 450px;
    }
    
    .hero-overlay {
        width: 90%;
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-button {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-wrapper {
        width: 100%;
    }
    
    .help-container {
        flex-direction: column;
        background-color: #f9f9f9; /* Тот же цвет, что и фон секции */
    }
    
    .help-image {
        width: 100%;
        height: 180px;
        border-radius: 8px;
    }
    
    .help-text {
        width: 100%;
        border-radius: 8px;
        padding: 10px;
        background-color: #f9f9f9; /* Тот же цвет, что и фон секции */
    }
    
    .help-text h4 {
        font-size: 1rem;
    }
    
    .help-text p {
        font-size: 0.8rem;
    }
    
    .principle-image {
        width: 160px;
        height: 160px;
        margin-bottom: 5px;
    }
    
    .principle-name {
        font-size: 1.1rem;
    }
    
    .principle-text {
        color: #000;
        font-size: 0.9rem;
        padding-top: 0;
    }
    
    .free-help-banner span {
        font-size: 1.2rem;
    }

    .questions-list {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .question-item h4 {
        font-size: 1.1rem;
    }
    
    .question-item p {
        font-size: 0.9rem;
    }
    
    .consultation-image img {
        max-width: 80%;
        height: auto;
    }

    .request-item {
        flex-direction: column;
    }
    
    .request-number {
        margin-bottom: 15px;
    }
    
    .request-content h4 {
        font-size: 1.2rem;
    }
    
    .request-content p {
        font-size: 0.95rem;
    }

    /* Адаптивные стили для блока с информацией о сессии и цене */
    .session-info {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .session-title {
        font-size: 1.3rem;
    }
    
    .price-tag {
        padding: 8px 12px;
    }
    
    .price-value {
        font-size: 1.7rem;
    }
    
    .price-description {
        font-size: 0.9rem;
    }

    .services-container {
        padding: 15px;
    }
    
    .services-price .price-value {
        font-size: 1.5rem;
    }
    
    .services-price .price-description {
        font-size: 0.9rem;
    }
    
    .consultation-image {
        padding: 10px 0;
        margin-top: 15px;
    }

    .main-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
} 

@media (max-width: 576px) {
    .main-title {
        font-size: 1.5rem;
    }
    
    .hero-wrapper {
        width: 95%;
    }
    
    /* Удаляем упоминание псевдоэлементов */
    .testimonial-item {
        border-radius: 10px;
    }
}

/* Отступы между секциями на мобильных устройствах */
@media (max-width: 767px) {
    .content-section,
    .help-section,
    .principles-section,
    .questions-section,
    .requests-section,
    .testimonials-section,
    .certificates-section {
        padding: 50px 0; /* Немного меньше, чем на десктопе */
    }
    
    /* Стили для отзывов на мобильных */
    .testimonial-item {
        margin-bottom: 15px;
    }
    
    .testimonial-content {
        padding: 15px;
    }
    
    .testimonial-text {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .testimonial-author {
        padding: 10px 15px;
    }
    
    .testimonial-author p {
        font-size: 0.9rem;
    }
    
    /* Стили для сертификатов на мобильных */
    .certificate-placeholder {
        width: 300px;
        height: 210px;
    }
    
    .certificate-icon {
        font-size: 60px;
    }
    
    .certificate-placeholder p {
        font-size: 1rem;
    }
    
    /* Стили для футера на мобильных */
    .footer-column {
        min-width: 140px;
    }
    
    .logo h1 {
        font-size: 16px;
        text-align: center;
        margin-bottom: 15px;
    }
    
    .header-content {
        flex-direction: column;
    }
    
    .header-links {
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
    }
    
    .header-buttons {
        margin-right: 0;
        margin-bottom: 10px;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .header-nav {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .header-nav ul {
        justify-content: center;
        margin-right: 0;
        margin: 10px 0;
    }
    
    .header-nav ul li {
        margin: 0 10px;
    }
    
    .header-social {
        margin-top: 10px;
        justify-content: center;
        width: 100%;
    }
    
    .header-social .social-icon {
        font-size: 26px;
        margin: 0 10px;
    }
    
    .question-item p,
    .request-content p,
    .help-text p {
        color: #000;
    }
} 

/* Стили для модального окна */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom: none;
}

.modal-title {
    font-weight: 700;
}

.modal-body {
    padding: 25px;
} 

/* Стили для чата */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 70vh;
    background-color: var(--chat-bg);
    border-radius: 0 0 15px 15px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background-color: var(--chat-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234a86e8' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    margin-bottom: 10px;
}

.message {
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 15px;
    max-width: 80%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-own {
    background-color: var(--message-own-bg);
    margin-left: auto;
    border-bottom-right-radius: 5px;
    border-right: 3px solid var(--primary-color);
}

.message-other {
    background-color: var(--message-other-bg);
    margin-right: auto;
    border-bottom-left-radius: 5px;
    border-left: 3px solid var(--accent-color);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.message-body p {
    margin-bottom: 0;
    line-height: 1.5;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid rgba(0,0,0,0.1);
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    border-radius: 0 0 15px 15px;
}

.chat-input form {
    display: flex;
    align-items: center;
}

.chat-input textarea {
    border-radius: 20px;
    resize: none;
    padding: 12px 15px;
    transition: all 0.3s ease;
    flex: 1;
    border: 1px solid #ddd;
}

.chat-input textarea:focus {
    box-shadow: 0 0 0 0.25rem rgba(74, 134, 232, 0.25);
    border-color: var(--primary-color);
    outline: none;
}

.chat-input button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border: none;
    box-shadow: 0 3px 8px rgba(74, 134, 232, 0.3);
    transition: all 0.2s ease;
}

.chat-input button:hover {
    transform: scale(1.05);
    background-color: #3a76d8;
}

.chat-input button i {
    font-size: 1.2rem;
}

.chat-date-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.chat-date-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: rgba(0,0,0,0.1);
    z-index: 1;
}

.chat-date-divider span {
    background-color: var(--chat-bg);
    padding: 5px 15px;
    font-size: 0.8rem;
    color: #6c757d;
    position: relative;
    z-index: 2;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.avatar-circle-small {
    width: 28px;
    height: 28px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.initials-small {
    font-size: 12px;
    line-height: 1;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    padding: 50px 0;
}

/* Улучшения для карточек в основной части сайта */
.help-container {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    position: relative;
    border-radius: 20px; /* Увеличиваем скругление */
    background-color: #f9f9f9; /* Тот же цвет, что и фон секции */
    height: 100%;
    transition: transform 0.3s ease;
    box-shadow: none; /* Убираем тень */
    overflow: hidden; /* Добавляем для скругленных углов */
    padding: 10px; /* Добавляем внутренний отступ */
}

.help-image {
    width: 60%;
    height: 200px;
    overflow: hidden;
    border-radius: 15px; /* Увеличиваем скругление */
}

.help-text {
    width: 40%;
    padding: 20px; /* Увеличиваем отступы */
    background-color: #f9f9f9; /* Тот же цвет, что и фон секции */
    border-radius: 15px; /* Увеличиваем скругление */
}

.help-text h4 {
    color: var(--primary-color); /* Оставляем цветным для акцента */
    margin: 0 0 10px 0; /* Увеличиваем отступ снизу */
    font-size: 1.3rem;
    font-weight: 700;
}

.help-text p {
    color: #333;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 15px; /* Добавляем отступ снизу */
} 

/* --- Адаптация хедера и кнопок для мобильных --- */
@media (max-width: 991.98px) {
  .navbar-nav .btn {
    width: 100%;
    margin-bottom: 8px;
  }
  .navbar-nav .nav-item {
    width: 100%;
  }
  .navbar-brand {
    font-size: 1.1rem;
    white-space: normal;
  }
  #callbackBtn {
    display: none !important;
  }
}
@media (max-width: 576px) {
  .services-price {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .services-price .btn {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .services-price .price-value,
  .services-price .price-description {
    text-align: left;
    width: 100%;
  }
}
/* --- Конец адаптации --- */ 

/* --- Исправления для хедера и выделения блоков --- */
@media (max-width: 767px) {
  .navbar-brand {
    font-size: 0.95rem !important;
    padding: 0;
    line-height: 1.1;
    white-space: normal;
    word-break: break-word;
    max-width: 70vw;
    text-align: left;
  }
  .navbar-nav .btn {
    font-size: 0.95rem;
    padding: 7px 10px;
  }
}

/* Кнопки в хедере для десктопа — делаем компактнее и красивее */
@media (min-width: 992px) {
  .navbar-nav .btn {
    font-size: 1rem;
    padding: 7px 18px;
    margin-bottom: 0;
    border-radius: 20px;
    margin-left: 8px;
    margin-right: 0;
    box-shadow: 0 2px 8px rgba(74,134,232,0.08);
    transition: background 0.2s, color 0.2s;
  }
  .navbar-nav .btn:hover {
    background: var(--primary-color);
    color: #fff;
  }
}

/* Выделение для блока 'Главные принципы нашей работы' */
.principles-title {
  background: linear-gradient(90deg, #4a86e8 0%, #6aa84f 100%);
  color: #fff !important;
  padding: 18px 0 18px 0;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(74,134,232,0.10);
  letter-spacing: 1px;
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 60px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* Яркая полоска для 'Бесплатное оказание помощи' */
.free-help-banner {
  background: linear-gradient(90deg, #6aa84f 0%, #4a86e8 100%);
  color: #fff !important;
  font-size: 1.4rem;
  font-weight: 800;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(74,134,232,0.10);
  padding: 18px 0;
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: center;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
/* --- Конец исправлений --- */ 

/* --- Кнопки в хедере: просто шире, без лишних отступов --- */
.navbar-nav .btn {
  min-width: 170px;
  max-width: 240px;
  height: 38px;
  padding: 7px 18px;
  font-size: 1rem;
  border-radius: 20px;
  margin-left: 8px;
  margin-right: 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(74,134,232,0.08);
  transition: background 0.2s, color 0.2s;
  white-space: normal;
  text-align: center;
}
.navbar-nav .btn:first-child {
  margin-left: 0;
}
@media (max-width: 991.98px) {
  .navbar-nav .btn {
    min-width: 120px;
    max-width: 100%;
    height: 36px;
    font-size: 0.95rem;
    margin-bottom: 8px;
    margin-left: 0;
    padding: 7px 10px;
  }
}
/* --- Конец правок для кнопок --- */ 

/* Картинка на главной — чёткая, неразмытая */
.hero-img-hq {
  image-rendering: auto;
  image-rendering: crisp-edges;
  object-fit: cover;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 600px;
  border-radius: 0;
  box-shadow: 0 4px 24px rgba(74,134,232,0.10);
}

/* Кнопка 'Получить консультацию в телеграм' — шире, текст всегда влезает */
.navbar-nav .btn-telegram {
  min-width: 180px;
  max-width: 260px;
  white-space: normal;
  padding-left: 18px;
  padding-right: 18px;
}

/* Кнопка 'Заказать звонок' — отодвигаю правее и делаю чуть меньше */
#callbackBtn {
  margin-left: 32px;
  min-width: 140px;
  height: 38px;
  font-size: 1rem;
  padding: 7px 18px;
}
@media (max-width: 991.98px) {
  #callbackBtn {
    margin-left: 0;
    min-width: 100px;
    height: 36px;
    font-size: 0.95rem;
    padding: 7px 10px;
  }
} 

/* --- Хедер: убираю ограничения по ширине, делаю свободнее --- */
.navbar .container {
  max-width: 100%;
  width: 100%;
  padding-left: 32px;
  padding-right: 32px;
}
.navbar-brand {
  max-width: none !important;
  white-space: normal;
  word-break: normal;
  font-size: 1.25rem;
  line-height: 1.2;
}

/* Кнопки в хедере — чуть выше и свободнее */
.navbar-nav .btn {
  min-width: 170px;
  max-width: 260px;
  height: 48px;
  padding: 10px 22px;
  font-size: 1.08rem;
  border-radius: 22px;
}

/* Кнопка 'Заказать звонок' — выше и крупнее */
#callbackBtn {
  min-width: 170px;
  height: 54px;
  font-size: 1.15rem;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991.98px) {
  .navbar .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .navbar-nav .btn {
    min-width: 120px;
    max-width: 100%;
    height: 44px;
    font-size: 1rem;
    margin-bottom: 8px;
    margin-left: 0;
    padding: 10px 10px;
  }
  #callbackBtn {
    min-width: 120px;
    height: 48px;
    font-size: 1.05rem;
    padding: 10px 10px;
  }
} 