/* style.css - пользовательские стили для сайта психолога */

html {
    scroll-behavior: smooth;
}

/* Уменьшаем вертикальные отступы у всех секций */
section {
    padding-bottom: 40px;
}

/* Отступы для фиксированной навигации */
section .hero-section {
    padding-top: 80px;
    margin-top: -80px;
    padding-bottom: 40px;
}

/* Убираем лишние отступы у последней секции перед футером */
section:last-of-type {
    padding-bottom: 40px;
}

/* Для hero-блока отступы поменьше */
.hero-section {
    padding-bottom: 20px;
}

/* Центрирование пунктов меню */
.navbar-nav {
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .navbar-nav {
        margin: 0;
    }
}

/* Стили для карточек */
.card-hover {
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Стили для карусели дипломов */
.diploma-carousel .carousel-item {
    background-color: transparent;
    border-radius: 10px;
    padding: 20px;
}

.diploma-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s;
}

.diploma-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.diploma-card i {
    font-size: 4rem;
    color: #6c757d;
}

/* Бейджи цен */
.price-badge {
    display: inline-block;
    background: #e9ecef;
    padding: 8px 20px;
    border-radius: 30px;
    margin: 5px;
}

/* Плавающая кнопка "В начало" - теплый бежевый */
.go-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #d4a373;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.go-top.show {
    opacity: 1;
    visibility: visible;
}

.go-top:hover {
    background-color: #c28a5c;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Для длинных слов в карточках принципов */
#principles .card-body h4 {
    font-size: 1.2rem;
    word-break: normal;
}

/* Модальное окно для увеличения изображений */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    cursor: pointer;
}

.image-modal img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.image-modal .close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* ========== ТЕПЛЫЙ БЕЖЕВЫЙ ЦВЕТ ========== */

/* Цвет иконок в левой колонке контактов */
.warm-icon {
    color: #d4a373 !important;
}

/* Кнопки в стиле теплый бежевый */
.btn-warm {
    background-color: #d4a373;
    border-color: #d4a373;
    color: #3d2b1f;
    transition: all 0.2s ease;
}

.btn-warm:hover {
    background-color: #c28a5c;
    border-color: #c28a5c;
    color: #3d2b1f;
}

/* Иконки в блоке "Как работаю" */
#howwork .card i {
    color: #d4a373 !important;
}

/* Иконки в блоке "Принципы работы" */
#principles .card i {
    color: #d4a373 !important;
}

/* Адаптивные кнопки мессенджеров для мобильной версии */
@media (max-width: 768px) {
    .btn-warm {
        font-size: 15px;  /* было 14px, увеличил на 1px */
        padding: 10px 16px !important;
    }
    
    .btn-warm i {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .btn-warm {
        font-size: 14px;  /* было 13px, увеличил на 1px */
        padding: 8px 12px !important;
    }
    
    .btn-warm i {
        font-size: 16px;
    }
}