:root {
    /* Шрифты */
    --font-family-sans: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-family-heading: var(--font-family-serif);

    /* Цвета фона (по mhcenter) */
    --color-bg-white: #ffffff;
    --color-bg-gray-light: #f7f7f7;
    --color-bg-gray-blue: #d6dae3;

    /* Цвета текста (по mhcenter) */
    --color-text-main: #474759;
    --color-text-gray: #9695af;

    /* Акцентные цвета и градиент (по mhcenter) */
    --color-accent-primary: #177bcf;
    --color-accent-blue-dark: #3095dc;
    --gradient-primary: linear-gradient(0.409turn, rgba(23,123,207,1) 20%, rgba(79,180,236,1) 46%);

    /* Скругления */
    --radius-lg: 0.75rem;
    --radius-3xl: 1.5rem;
    --radius-9xl: 2.5rem;
    --radius-circle: 999px;

    /* Тени */
    --shadow-sm: 0 10px 15px rgba(23, 123, 207, 0.05);
    --shadow-md: 0 20px 25px rgba(23, 123, 207, 0.08);
    --shadow-lg: 0 25px 50px rgba(23, 123, 207, 0.16);

    /* Переходы */
    --transition-base: 0.2s ease-in-out;

    /* Типографика */
    --font-size-base: 1rem;      /* 16px */
    --font-size-sm: 0.875rem;    /* 14px */
    --font-size-md: 1rem;        /* 16px */
    --font-size-lg: 1.125rem;    /* 18px */
    --font-size-xl: 1.5rem;      /* 24px */
    --font-size-2xl: 2rem;       /* 32px */
    --font-size-3xl: 2.25rem;    /* 36px */
    --font-size-4xl: 2.5rem;     /* 40px */
    --font-size-6xl: 3rem;       /* ~48px, для крупных заголовков */

    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;

    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-family-sans);
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-main);
    background-color: var(--color-bg-white);
}

a {
    color: var(--color-accent-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--color-accent-blue-dark);
}

.section {
    padding: 6rem 0;
}

.section-gray {
    background-color: var(--color-bg-gray-light);
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    transition: all var(--transition-base);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card {
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: none;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* ============================================
   Глобальные правила проекта
   1. Все слайды в пределах одной карусели
      должны иметь одинаковый размер.
   2. Для карточных каруселей используем
      квадратное соотношение сторон 1:1.
   3. Не выдумывать контактные данные
      (email, адрес и т.п.) — только
      реальные, подтверждённые заказчиком.
   4. Все изображения сайта должны лежать
      в папке images/ внутри проекта, без
      ссылок на внешние ресурсы и папки.
   5. Все текстовые поля и textarea форм
      должны использовать Bootstrap form-floating
      (лейбл всегда внутри поля ввода).
   ============================================ */

/* Карточки в карусели "Обо мне" */
.about-swiper .swiper-slide {
    height: 100%;
}

.about-swiper .card {
    border: none;
    background: var(--gradient-primary);
    color: #ffffff;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    border-bottom-left-radius: 0;
    background-size: 200% 200%;
    animation: aboutCardGradient 6s ease-in-out infinite;
    display: flex;
}

.about-swiper .card-body {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: calc(var(--font-size-base) * 1.4);
    line-height: var(--line-height-normal);
}

/* Карусель услуг (тюнинг / апгрейд / индивидуальная) */
.services-swiper .swiper-slide {
    height: 100%;
}

.services-swiper .card {
    height: 100%;
    aspect-ratio: 1 / 1;
}

/* Общая карусель услуг на мобильных */
.services-all-swiper .swiper-slide {
    height: 100%;
}

.services-all-swiper .card {
    height: 100%;
    min-height: 420px;
}

/* Отзывы */
.reviews-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.review-card {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    background-color: var(--color-bg-white);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem 1.5rem;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.review-stars {
    color: #f5b300;
    font-size: 0.9rem;
}

.review-author {
    font-size: 0.85rem;
    color: var(--color-text-gray);
    margin-bottom: 0;
}

.review-author-name {
    font-weight: var(--font-weight-medium);
}

.review-date {
    margin-left: 0.5rem;
}

.reviews-swiper .swiper-slide {
    height: 100%;
}

.reviews-swiper .review-card {
    height: 100%;
}

/* Кнопки "Показать цену" / "Запросить цену" */
.btn-price-link {
    padding: 0;
    border: none;
    background: none;
    color: #000000;
    font-size: 0.875rem;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.btn-price-link:hover,
.btn-price-link:focus {
    color: #000000;
    text-decoration: underline;
    text-decoration-style: dotted;
    background: none;
    box-shadow: none;
}

@keyframes aboutCardGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.about-swiper,
.services-swiper,
.services-all-swiper,
.reviews-swiper {
    padding-bottom: 24px;
}

.about-swiper .swiper-scrollbar,
.services-swiper .swiper-scrollbar {
    bottom: 0;
}

/* Блок душевного чекапа в услугах */
.services-checkup {
    background-color: var(--color-bg-gray-light);
    border-radius: var(--radius-9xl);
    border-bottom-left-radius: 0;
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .services-checkup {
        padding: 2.5rem 2rem;
    }
}

/* Секция Пси-путешествий с более тёмным градиентным фоном */
.section-psi {
    background: linear-gradient(135deg, #0b335e 0%, #124b8e 50%, #0b335e 100%);
    color: #ffffff;
    background-size: 200% 200%;
    animation: aboutCardGradient 10s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.section-psi h2,
.section-psi h3,
.section-psi h4,
.section-psi h5,
.section-psi h6 {
    color: #ffffff;
}

.section-psi::before {
    content: "";
    position: absolute;
    top: 50%;
    right: 10%;
    width: 320px;
    height: 320px;
    transform: translateY(-50%) rotate(10deg);
    background-image: url("../images/icon-psi.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.6;
    pointer-events: none;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: var(--gradient-primary);
    color: #ffffff;
}

.cookie-banner__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Плавающая кнопка Telegram */
.floating-telegram {
    position: fixed;
    right: 16px;
    bottom: 80px;
    z-index: 2100;
}

.floating-telegram__btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-base), box-shadow var(--transition-base), opacity var(--transition-base);
}

.floating-telegram__btn img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
}

.floating-telegram__btn:hover,
.floating-telegram__btn:focus {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    opacity: 0.95;
}

@media (max-width: 991.98px) {
    .floating-telegram {
        bottom: 120px; /* чуть выше мобильного навбара */
        right: 12px;
    }
}

/* FAQ cards */
.faq-card {
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-sm);
}

.faq-card-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding: 1rem 1.25rem;
}

.faq-card-toggle {
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    text-align: left;
    color: var(--color-text-main);
    font-weight: var(--font-weight-medium);
}

.faq-card-toggle:hover,
.faq-card-toggle:focus {
    color: var(--color-text-main);
    text-decoration: none;
}

.faq-card-toggle::after {
    content: "";
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    background-image: url("../images/icon-chevron-down.svg");
    background-repeat: no-repeat;
    background-size: 1rem 1rem;
    transform: rotate(0deg);
    transition: transform var(--transition-base);
}

.faq-card-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Высота полей многострочного ввода */
.booking-review-text {
    min-height: 140px;
}

.question-text {
    min-height: 0;
}

/* Радио-кнопки выбора способа связи */
.contact-method-label {
    cursor: pointer;
}

.contact-method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-border, #dee2e6);
    background: transparent;
    transition: all var(--transition-base);
}

.contact-method-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.contact-method-label:hover .contact-method-icon {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.1rem rgba(23, 123, 207, 0.15);
}

.btn-check:checked + .contact-method-icon {
    border-color: var(--color-accent);
    background: rgba(23, 123, 207, 0.08);
    box-shadow: 0 0 0 0.2rem rgba(23, 123, 207, 0.25);
}

/* Иконка телефона — единственная inline SVG, стилизуется через color */
.contact-method-icon .cm-phone-svg {
    color: var(--color-text-muted, #6c757d);
    transition: color var(--transition-base);
}

.contact-method-label:hover .contact-method-icon .cm-phone-svg {
    color: var(--color-accent);
}

.btn-check:checked + .contact-method-icon .cm-phone-svg {
    color: var(--color-accent);
}

