/**
 * Custom Color Palette Styles
 *
 * ПАЛИТРА — Чернильный океан:
 * --color-deep-ocean: #1A2B3C (Чернильный океан — тёмный синий, основной)
 * --color-dawn-sand: #F0F2F4 (Туманный берег — светло-серый фон)
 * --color-warm-sunset: #FF9966 (Солнечный блик — акцент, CTA)
 * --color-sea-wave: #3B6B8A (Морская глубина — второстепенный синий)
 * --color-midnight-tan: #C7B5A0 (Песчаная отмель — мягкий акцент)
 */

/* Color Variables */
:root {
    --color-deep-ocean: #1A2B3C;
    --color-dawn-sand: #F0F2F4;
    --color-warm-sunset: #FF9966;
    --color-sea-wave: #3B6B8A;
    --color-midnight-tan: #C7B5A0;
}

/* Base Tailwind Reset & Utilities */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.space-x-6 > * + * {
    margin-left: 1.5rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

.hidden {
    display: none;
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }
    .md\:hidden {
        display: none;
    }
}

/* Text Colors */
.text-deep-ocean {
    color: var(--color-deep-ocean) !important;
}

.text-dawn-sand {
    color: var(--color-dawn-sand) !important;
}

.text-warm-sunset {
    color: var(--color-warm-sunset) !important;
}

.text-sea-wave {
    color: var(--color-sea-wave) !important;
}

.text-midnight-tan {
    color: var(--color-midnight-tan) !important;
}

/* Background Colors */
.bg-deep-ocean {
    background-color: var(--color-deep-ocean) !important;
}

.bg-dawn-sand {
    background-color: var(--color-dawn-sand) !important;
}

.bg-warm-sunset {
    background-color: var(--color-warm-sunset) !important;
}

.bg-sea-wave {
    background-color: var(--color-sea-wave) !important;
}

.bg-midnight-tan {
    background-color: var(--color-midnight-tan) !important;
}

/* Border Colors */
.border-deep-ocean {
    border-color: var(--color-deep-ocean) !important;
}

.border-dawn-sand {
    border-color: var(--color-dawn-sand) !important;
}

.border-warm-sunset {
    border-color: var(--color-warm-sunset) !important;
}

.border-sea-wave {
    border-color: var(--color-sea-wave) !important;
}

.border-sea-wave\/20 {
    border-color: rgba(59, 107, 138, 0.2) !important;
}

.border-midnight-tan {
    border-color: var(--color-midnight-tan) !important;
}

/* Hover States */
.hover\:text-warm-sunset:hover {
    color: var(--color-warm-sunset) !important;
}

.hover\:bg-warm-sunset:hover {
    background-color: var(--color-warm-sunset) !important;
}

.hover\:bg-opacity-90:hover {
    opacity: 0.9;
}

/* Body and Base Styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-dawn-sand);
    color: var(--color-deep-ocean);
}


/* Custom Utilities */
.from-dawn-sand {
    --tw-gradient-from: var(--color-dawn-sand);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(240, 242, 244, 0));
}

.to-white {
    --tw-gradient-to: #ffffff;
}

.to-deep-ocean {
    --tw-gradient-to: var(--color-deep-ocean);
}

.from-sea-wave {
    --tw-gradient-from: var(--color-sea-wave);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 107, 138, 0));
}

/* Additional Tailwind utilities */
.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.sticky {
    position: sticky;
}

.top-0 {
    top: 0;
}

.top-16 {
    top: 4rem;
}

.z-40 {
    z-index: 40;
}

.scroll-mt-36 {
    scroll-margin-top: 9rem;
}

/* Sticky in-page section navigation */
.page-section-nav-sentinel {
    height: 1px;
    width: 100%;
    pointer-events: none;
}

.page-section-nav {
    top: var(--site-header-height, 4.5rem);
    transition: box-shadow 0.2s ease;
}

.page-section-nav__list {
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    transition: gap 0.2s ease, padding 0.2s ease;
}

.page-section-nav__link {
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.5rem 1.5rem;
    white-space: nowrap;
    transition: font-size 0.2s ease, padding 0.2s ease, line-height 0.2s ease;
}

.page-section-nav.is-stuck {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.page-section-nav.is-stuck .page-section-nav__list {
    gap: 0.375rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.page-section-nav.is-stuck .page-section-nav__link {
    font-size: 0.8125rem;
    line-height: 1.2;
    padding: 0.3rem 0.625rem;
}

.page-section {
    scroll-margin-top: var(--page-section-offset, 9rem);
}

.page-section-nav__link.is-active {
    color: var(--color-warm-sunset) !important;
    border-bottom-color: var(--color-warm-sunset) !important;
    font-weight: 600;
}

.z-50 {
    z-index: 50;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.transition {
    transition-property: color, background-color, border-color, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .md\:text-5xl {
        font-size: 3rem;
        line-height: 1;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-16 {
    margin-top: 4rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.pb-4 {
    padding-bottom: 1rem;
}

.w-full {
    width: 100%;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-md {
    max-width: 28rem;
}

.inline-block {
    display: inline-block;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.bg-white {
    background-color: #ffffff;
}

.bg-gray-200 {
    background-color: #e5e7eb;
}

.text-white {
    color: #ffffff;
}

.text-gray-600 {
    color: #4b5563;
}

.text-gray-700 {
    color: #374151;
}

.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-t {
    border-top-width: 1px;
}

.border-b {
    border-bottom-width: 1px;
}

.border-gray-300 {
    border-color: #d1d5db;
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.cursor-pointer {
    cursor: pointer;
}

.overflow-hidden {
    overflow: hidden;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.z-10 {
    z-index: 10;
}

.leading-tight {
    line-height: 1.25;
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.bg-white\/80 {
    background-color: rgba(255, 255, 255, 0.8);
}

.border-warm-sunset\/10 {
    border-color: rgba(255, 153, 102, 0.1);
}

.-translate-y-1 {
    transform: translateY(-0.25rem);
}

.hover\:-translate-y-1:hover {
    transform: translateY(-0.25rem);
}

.list-disc {
    list-style-type: disc;
}

.list-inside {
    list-style-position: inside;
}

.space-y-2 > * + * {
    margin-top: 0.5rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.leading-relaxed {
    line-height: 1.625;
}

.flex-col {
    flex-direction: column;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.underline {
    text-decoration-line: underline;
}

.prose {
    color: #374151;
    max-width: 65ch;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose ul {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.max-w-none {
    max-width: none;
}

/* Button Styles - Правильные hover эффекты и центрирование */

/* Hover эффекты для кнопок - более темный оттенок вместо opacity для лучшего контраста */
a.bg-warm-sunset:hover,
button.bg-warm-sunset:hover,
.bg-warm-sunset:hover {
    background-color: #E88855 !important;
    color: #ffffff !important;
}

a.bg-sea-wave:hover,
button.bg-sea-wave:hover,
.bg-sea-wave:hover {
    background-color: #2F566F !important;
    color: #ffffff !important;
}

/* Контурные кнопки */
a.border-warm-sunset:hover,
button.border-warm-sunset:hover {
    background-color: var(--color-warm-sunset) !important;
    color: #ffffff !important;
}

/* Убеждаемся, что все кнопки центрированы */
button,
a.bg-warm-sunset,
a.bg-sea-wave,
button.bg-warm-sunset,
button.bg-sea-wave,
a[class*="bg-warm-sunset"],
a[class*="bg-sea-wave"],
button[class*="bg-warm-sunset"],
button[class*="bg-sea-wave"] {
    text-align: center !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Для полноширинных кнопок */
.w-full.bg-warm-sunset,
.w-full.bg-sea-wave,
button.w-full,
a.w-full,
a.block.w-full,
button[class*="w-full"] {
    display: block !important;
    text-align: center !important;
    width: 100%;
}

/* Для inline-block кнопок */
.inline-block.bg-warm-sunset,
.inline-block.bg-sea-wave,
a.inline-block[class*="bg-warm-sunset"],
a.inline-block[class*="bg-sea-wave"] {
    display: inline-block !important;
    text-align: center !important;
}

/* ============================================
   АНИМАЦИИ - Плавные и ненавязчивые
   ============================================ */

/* Базовые переходы для всех интерактивных элементов */
a, button, .service-card, .bg-white, .bg-dawn-sand {
    transition: all 0.3s ease;
}

/* Плавная анимация для кнопок */
button, a[class*="bg-"], a[class*="border-"] {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

button:hover, a[class*="bg-"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:active, a[class*="bg-"]:active {
    transform: translateY(0);
}

/* Логотип: без hover-эффектов, смещение вниз на 6px */
.site-logo {
    overflow: visible;
}

.site-logo__link {
    transition: none !important;
}

.site-logo__image {
    display: block;
    height: 2.5rem;
    width: auto;
    position: relative;
    top: 6px;
    transition: none !important;
    transform: none !important;
}

@media (min-width: 768px) {
    .site-logo__image {
        height: 3rem;
    }
}

.site-logo__link:hover .site-logo__image {
    transform: none !important;
    opacity: 1 !important;
}

nav a.site-logo__link::after {
    display: none;
}

/* Анимация появления при скролле */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Анимация для секций - отключена по умолчанию, активируется через JS */
section {
    /* animation: fadeInUp 0.8s ease-out; - отключено для производительности */
}

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

/* Плавное появление для карточек услуг и курсов - упрощено */
.grid > div {
    /* Анимация отключена по умолчанию, активируется через JS при необходимости */
    /* opacity: 0; */
    /* transform: translateY(20px); */
    /* animation: fadeInUp 0.6s ease-out forwards; */
}

/* Анимации задержек отключены для производительности */
/* .grid > div:nth-child(1) { animation-delay: 0.1s; } */
/* .grid > div:nth-child(2) { animation-delay: 0.2s; } */
/* .grid > div:nth-child(3) { animation-delay: 0.3s; } */
/* .grid > div:nth-child(4) { animation-delay: 0.4s; } */
/* .grid > div:nth-child(5) { animation-delay: 0.5s; } */
/* .grid > div:nth-child(6) { animation-delay: 0.6s; } */

/* Плавная анимация для изображений */
img:not(.site-logo__image), [class*="bg-"]:not([class*="bg-white"]):not([class*="bg-dawn-sand"]) {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Анимация для навигации */
nav a {
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-warm-sunset);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a.site-nav__link.is-active::after {
    width: 100%;
}

/* Плавная анимация для форм */
input, textarea, select {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(255, 153, 102, 0.15);
}

/* Анимация для мобильного меню */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
    opacity: 1;
}

/* Hero: без стартовой анимации, чтобы не было рывка текста */
section:first-of-type h1,
section:first-of-type p,
section:first-of-type .flex {
    animation: none !important;
    transition: none !important;
}

/* FAQ Accordion Styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    cursor: pointer;
    user-select: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.faq-answer.show {
    max-height: 8000px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    opacity: 1;
    overflow: visible;
}

.faq-answer-content p + p,
.faq-answer-content p + ul,
.faq-answer-content p + ol,
.faq-answer-content ul + p,
.faq-answer-content ol + p {
    margin-top: 1rem;
}

.faq-icon {
    transition: transform 0.3s ease;
    font-weight: bold;
    line-height: 1;
    display: inline-block;
    width: 24px;
    text-align: center;
}

/* Condition cards accordion */
.condition-toggle {
    cursor: pointer;
    user-select: none;
}

.condition-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    opacity: 0;
}

.condition-details.show {
    max-height: 3000px;
    opacity: 1;
}

.condition-icon {
    transition: transform 0.3s ease;
    font-weight: bold;
    display: inline-block;
    width: 24px;
    text-align: center;
}

/* Products table */
.products-table-wrap {
    -webkit-overflow-scrolling: touch;
}

.products-table tbody tr:last-child {
    border-bottom: none;
}

.product-row.hidden {
    display: none;
}

/* Footer layout — 4 columns, proportional width by content */
.site-footer__grid {
    align-items: start;
}

@media (min-width: 1280px) {
    .site-footer__grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 1.15fr);
        column-gap: 2.5rem;
    }
}

.site-footer__col {
    min-width: 0;
}

.site-footer__title {
    min-height: 2rem;
}

.site-footer__col--about p {
    margin: 0;
}

/* Partners logos — clean row, uniform height, natural widths */
.partners-section {
    --partners-logo-height: 3.25rem;
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 2.5rem;
}

.partners-grid__item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: var(--partners-logo-height);
    max-width: 100%;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.partners-grid__logo {
    display: block;
    height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.88;
    transition: opacity 0.2s ease;
}

.partners-grid__item:hover .partners-grid__logo {
    opacity: 1;
}

.partners-grid__item--strip {
    flex: 1 1 100%;
    justify-content: center;
    max-width: 100%;
}

.partners-grid__item--strip .partners-grid__logo {
    max-width: min(100%, 40rem);
}

@media (min-width: 768px) {
    .partners-section {
        --partners-logo-height: 3.5rem;
    }

    .partners-grid {
        gap: 2.25rem 3rem;
    }
}

@media (min-width: 1024px) {
    .partners-section {
        --partners-logo-height: 3.75rem;
    }
}

/* Reviews carousel */
.reviews-carousel {
    --reviews-per-view: 2;
    --reviews-gap: 1.5rem;
    --reviews-card-height: 36rem;
    --reviews-shadow-space: 1.25rem;
    position: relative;
    width: 100%;
    max-width: 58rem;
    margin: 0 auto;
    padding: 0 3.25rem;
}

.reviews-carousel__viewport {
    overflow: hidden;
    padding: var(--reviews-shadow-space) calc(var(--reviews-shadow-space) * 0.75);
    margin: calc(var(--reviews-shadow-space) * -1) calc(var(--reviews-shadow-space) * -0.75);
}

.reviews-carousel__track {
    display: flex;
    gap: var(--reviews-gap);
    transition: transform 0.45s ease;
    will-change: transform;
}

.reviews-carousel__slide {
    flex: 0 0 calc((100% - (var(--reviews-per-view) - 1) * var(--reviews-gap)) / var(--reviews-per-view));
    min-width: 0;
    box-sizing: border-box;
    padding: 0.75rem 0.625rem;
}

.reviews-carousel__open {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    text-align: inherit;
}

.reviews-carousel__open:hover,
.reviews-carousel__open:active {
    transform: none;
}

.reviews-carousel__open:hover .reviews-carousel__figure {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.reviews-carousel__open:focus-visible {
    outline: 2px solid var(--color-warm-sunset);
    outline-offset: 4px;
    border-radius: 0.875rem;
}

.reviews-carousel__figure {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: var(--reviews-card-height);
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 0.75rem;
    overflow: visible;
    transition: box-shadow 0.2s ease;
}

.reviews-carousel__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.375rem;
}

.reviews-carousel__btn {
    position: absolute;
    top: calc(var(--reviews-card-height) / 2);
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 9999px;
    background-color: #ffffff;
    color: var(--color-deep-ocean);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.reviews-carousel__btn:hover {
    background-color: var(--color-dawn-sand);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    transform: translateY(-50%);
}

.reviews-carousel__btn:active {
    transform: translateY(-50%);
}

.reviews-carousel__btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.reviews-carousel__btn svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.reviews-carousel__btn--prev {
    left: 0;
}

.reviews-carousel__btn--next {
    right: 0;
}

.reviews-carousel__dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.reviews-carousel__dot {
    width: 0.625rem;
    height: 0.625rem;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background-color: rgba(0, 51, 102, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.reviews-carousel__dot:hover {
    background-color: rgba(0, 51, 102, 0.45);
    transform: none;
}

.reviews-carousel__dot:active {
    transform: none;
}

.reviews-carousel__dot.is-active {
    background-color: var(--color-warm-sunset);
    transform: scale(1.2);
}

.reviews-carousel__dot.is-active:hover,
.reviews-carousel__dot.is-active:active {
    transform: scale(1.2);
}

.reviews-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: rgba(0, 20, 40, 0.88);
}

.reviews-lightbox.is-open {
    display: flex;
}

.reviews-lightbox__dialog {
    position: relative;
    width: min(32rem, 100%);
    max-height: calc(100vh - 3rem);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.reviews-lightbox__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 8rem);
    object-fit: contain;
    border-radius: 0.5rem;
    background-color: #ffffff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.reviews-lightbox__close,
.reviews-lightbox__nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 9999px;
    background-color: #ffffff;
    color: var(--color-deep-ocean);
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.reviews-lightbox__close {
    top: -0.5rem;
    right: -0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    line-height: 1;
}

.reviews-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
}

.reviews-lightbox__nav:hover,
.reviews-lightbox__nav:active {
    transform: translateY(-50%);
}

.reviews-lightbox__close:hover,
.reviews-lightbox__close:active {
    transform: none;
}

.reviews-lightbox__nav--prev {
    left: -3.5rem;
}

.reviews-lightbox__nav--next {
    right: -3.5rem;
}

.reviews-lightbox__nav svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
}

.reviews-lightbox__caption {
    margin-top: 0.75rem;
    color: #ffffff;
    font-size: 0.875rem;
    text-align: center;
}

@media (max-width: 1023px) {
    .reviews-carousel {
        --reviews-per-view: 1;
        --reviews-card-height: 34rem;
        max-width: 32rem;
    }
}

@media (max-width: 767px) {
    .reviews-carousel {
        --reviews-card-height: min(78vh, 36rem);
        padding: 0 2.75rem;
    }

    .reviews-lightbox__nav--prev {
        left: 0.25rem;
    }

    .reviews-lightbox__nav--next {
        right: 0.25rem;
    }
}

@media (max-width: 479px) {
    .reviews-carousel {
        max-width: 100%;
        padding: 0 2.5rem;
    }
}

/* Отключение анимаций для пользователей с предпочтением reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .faq-answer,
    .condition-details {
        transition: none !important;
    }
}

/* ============================================================
   ДИЗАЙН-СИСТЕМА — ритм секций, заголовки, блоки, акценты
   Океаническая палитра · «сбалансированный» визуал
   ============================================================ */

/* --- Фоны секций --- */
.section { position: relative; overflow: hidden; }

.section--light { background: #ffffff; }
.section--sand  { background: var(--color-dawn-sand); }

.section--sand-soft {
    background: linear-gradient(180deg, #ffffff 0%, var(--color-dawn-sand) 100%);
}

.section--ocean {
    background-color: var(--color-deep-ocean);
    background-image:
        radial-gradient(1100px 420px at 12% -15%, rgba(59, 107, 138, 0.55), transparent 60%),
        radial-gradient(900px 380px at 105% 115%, rgba(255, 153, 102, 0.16), transparent 55%);
    color: #ffffff;
}

.section--gradient-ocean {
    background: linear-gradient(135deg, var(--color-sea-wave) 0%, var(--color-deep-ocean) 100%);
    color: #ffffff;
}

/* Тонкая верхняя разделительная линия для светлых секций */
.section--divider { border-top: 1px solid rgba(26, 43, 60, 0.07); }

/* --- Декоративные «блобы» --- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(46px);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}
.blob--sunset { background: rgba(255, 153, 102, 0.35); }
.blob--wave   { background: rgba(59, 107, 138, 0.35); }
.section > .container { position: relative; z-index: 1; }

/* --- Заголовок секции: надзаголовок + акцентная черта --- */
.section-head { text-align: center; margin-bottom: 3rem; }

.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-warm-sunset);
    margin-bottom: 0.65rem;
}

.section-title {
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--color-deep-ocean);
    margin: 0;
}
.section--ocean .section-title,
.section--gradient-ocean .section-title { color: #ffffff; }

.section-rule {
    width: 64px;
    height: 4px;
    border-radius: 999px;
    background: var(--color-warm-sunset);
    margin: 1rem auto 0;
}
.section-head--left { text-align: left; }
.section-head--left .section-rule { margin-left: 0; }

.section-lead {
    max-width: 42rem;
    margin: 1.1rem auto 0;
    color: var(--color-sea-wave);
    font-size: 1.05rem;
    line-height: 1.6;
}
.section--ocean .section-lead,
.section--gradient-ocean .section-lead { color: rgba(255, 255, 255, 0.82); }

/* --- Универсальная карточка --- */
.u-card {
    position: relative;
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.85rem;
    box-shadow: 0 10px 30px rgba(26, 43, 60, 0.06);
    border: 1px solid rgba(26, 43, 60, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.u-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(26, 43, 60, 0.13);
}
.u-card--accent::before {
    content: "";
    position: absolute;
    left: 1.85rem;
    top: 0;
    height: 3px;
    width: 46px;
    background: var(--color-warm-sunset);
    border-radius: 0 0 3px 3px;
}

/* --- Значок-иконка в блоке --- */
.icon-badge {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 107, 138, 0.12);
    color: var(--color-sea-wave);
    margin-bottom: 1.1rem;
}
.icon-badge svg { width: 1.6rem; height: 1.6rem; }
.icon-badge--sunset { background: rgba(255, 153, 102, 0.16); color: var(--color-warm-sunset); }
/* Центрирование бейджа в карточках с text-center */
.icon-badge.mx-auto { display: flex; }

/* --- Статистика на тёмном фоне --- */
.stat-card {
    position: relative;
    text-align: center;
    padding: 1.85rem 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
    transition: transform 0.25s ease, background 0.25s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.11);
}
.stat-card__num {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1;
    color: var(--color-warm-sunset);
    margin-bottom: 0.55rem;
}
.stat-card__label {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.35;
}

/* --- Кнопка-«таблетка» акцент (переиспользуемая) --- */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 2rem;
    border-radius: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-pill--accent {
    background: var(--color-warm-sunset);
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(255, 153, 102, 0.32);
}
.btn-pill--accent:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(255, 153, 102, 0.42); }
.btn-pill--light { background: #ffffff; color: var(--color-deep-ocean); }
.btn-pill--light:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16); }
.btn-pill--ghost { background: transparent; color: #ffffff; border: 2px solid rgba(255, 255, 255, 0.7); }
.btn-pill--ghost:hover { background: rgba(255, 255, 255, 0.12); }

