/* Custom Font Setup */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #FAFAFA; /* Very light grey, almost white */
    color: #1F2937; /* Dark slate for high contrast text */
    /* Улучшенный перенос текста */
    word-break: break-word;
    overflow-wrap: break-word;
    text-rendering: optimizeLegibility;
    /* Улучшенная загрузка шрифтов */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Правило для предотвращения висячих предлогов */
p, h1, h2, h3, h4, h5, h6, li, span, div, a {
    /* Перенос коротких слов на следующую строку */
    word-break: break-word;
    overflow-wrap: break-word;
    /* Улучшенная обработка переносов */
    text-rendering: optimizeLegibility;
    /* Отключаем переносы по слогам */
    -webkit-hyphens: none;
    -moz-hyphens: none;
    hyphens: none;
}

/* Класс для коротких предлогов - не переносится отдельно от следующего слова */
.no-break-preposition {
    white-space: nowrap;
}

.price-prefix {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Arial, sans-serif;
}

h1, h2, h3, h4, .serif, .font-serif {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', Times, serif;
    font-display: swap;
}

/* Subtle Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

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

/* Interactive Card Hover - отключен */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Полное отключение всех hover эффектов для карточек услуг */
.no-hover-transform,
.no-hover {
    transition: none !important;
    pointer-events: auto;
}

/* Фиксируем все свойства при hover - карточки полностью статичны */
.no-hover:hover {
    transform: none !important;
    transition: none !important;
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.04) !important;
    border-color: rgb(229, 231, 235) !important;
    opacity: 1 !important;
    scale: 1 !important;
    filter: none !important;
}

/* Для средней карточки с transform - сохраняем исходное значение */
.no-hover-transform:hover {
    transition: none !important;
    background-color: #ffffff !important;
    opacity: 1 !important;
    scale: 1 !important;
    filter: none !important;
}

@media (min-width: 768px) {
    .no-hover-transform.transform.md\:-translate-y-4:hover {
        transform: translateY(-1rem) !important;
        box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.05), 0 10px 10px -5px rgba(15, 23, 42, 0.05) !important;
        border-color: rgb(219, 234, 254) !important;
    }
    .no-hover-transform.transform.md\:-translate-y-8:hover {
        transform: translateY(-2rem) !important;
    }
}

@media (max-width: 767px) {
    .no-hover-transform.transform.md\:-translate-y-4:hover,
    .no-hover-transform.transform.md\:-translate-y-8:hover {
        transform: none !important;
    }
}

/* Более темная и широкая тень для карточек услуг */
.no-hover.shadow-md {
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.04) !important;
}

/* Image comparison slider style */
.img-comp-container {
    position: relative;
    height: 350px;
    overflow: hidden;
    border-radius: 0.75rem;
    cursor: ew-resize; /* Cursor indicates sliding */
}

.img-comp-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.img-comp-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.img-comp-before {
    z-index: 1;
}

.img-comp-after {
    z-index: 2;
}

.img-comp-slider {
    position: absolute;
    z-index: 9;
    width: 40px;
    height: 40px;
    background-color: #2563EB; /* Accent Blue */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    pointer-events: auto; /* Make slider clickable */
    cursor: grab;
}

.img-comp-slider:active {
    cursor: grabbing;
}

/* Scroll to Top Button */
#scrollToTop {
    width: 48px;
    height: 48px;
}

#scrollToTop:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

