@font-face {
    font-family: 'Martina scriptC';
    src: url('../fonts/Martina-scriptC.woff2') format('woff2'),
         url('../fonts/Martina-scriptC.woff') format('woff'),
         url('../fonts/Martina-scriptC.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Заглавные буквы кастомным шрифтом */
.script-letter {
    font-family: 'Martina scriptC', cursive;
    font-weight: normal;
    /* Можно немного увеличить размер, если скриптовый шрифт кажется мельче основного */
    font-size: 1.2em; 
}

/* Декоративный текст заголовок*/
.hero-title-accent {
    position: absolute;
    right: -50px;
    bottom: -48px;
    font-family: 'Martina scriptC', cursive;
    font-weight: normal;
    font-size: 80px;
    line-height: 0.93;
    color: #E2D8CC;
    transform: rotate(-15deg);
    white-space: nowrap;
    pointer-events: none;
    -webkit-text-stroke: 0.4px #E2D8CC;
}

@media (max-width: 768px) {
    .hero-title-accent {
        font-size: 48px;
        right: -20px;
        bottom: -25px;
    }
}

/* --- Блок Услуги (Grid) --- */
.grid-uslugi-list img:not(.btn-more__icon) {
    border-radius: 9px;
    width: 100%;
    max-width: 600px;
    max-height: 600px;
    object-fit: cover;
}

/* --- Кнопка "Подробнее" --- */
.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 20px; 
    text-decoration: none !important; 
    cursor: pointer;
}

.btn-more__text {
    font-size: 18px;
    font-weight: 500;
    color: #524F4A; 
    transition: color 0.3s ease;
}

.btn-more__icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 106px; 
    height: 52px;
    border: 1.5px solid #E2D8CC;
    border-radius: 27px;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.btn-more__icon {
    width: 24px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

/* Hover эффекты для кнопки */
.btn-more:hover .btn-more__text {
    color: #c9a287; 
}

.btn-more:hover .btn-more__icon-wrapper {
    border-color: #c9a287; 
    background-color: rgba(201, 162, 135, 0.05); 
}

.btn-more:hover .btn-more__icon {
    transform: translateX(5px); 
}

/* --- Выравнивание кнопок по низу карточки --- */
.grid-uslugi-list .el-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grid-uslugi-list .el-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.grid-uslugi-list .el-content p:last-of-type {
    margin-top: auto;
    margin-bottom: 0;
}

.grid-uslugi-list .btn-more {
    gap: 120px; 
}

/* --- Слайдер Акции (.panel-slide-sales) --- */

/* 1. Поднимаем dotnav (точки) наверх над фото */
.dotnav-under-slider {
    position: relative;
    padding-top: 40px; /* Создаем место сверху для точек */
}

/* Находим навигацию (точки) и позиционируем абсолютно по центру сверху */
.dotnav-under-slider .uk-slider-nav,
.dotnav-under-slider .uk-dotnav {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 !important;
    justify-content: center; /* Центрируем точки */
}

/* 2. Контент под фото сдвигаем вправо на больших экранах */
@media (min-width: 1024px) {
    /* Обращаемся к блоку с контентом (он является последним div внутри el-item) */
    .panel-slide-sales .el-item > div:last-child {
        width: 50% !important; /* Ограничиваем ширину до 50% */
        box-sizing: border-box;
    }
}

.panel-slide-sales .el-title {
    line-height: 1.2;
}

@media (max-width: 768px) {
    .panel-slide-sales .uk-button {
        padding: 0px 20px !important;
        font-size: 18px !important;
    }
}

/* --- Телефоны в шапке --- */
@media (min-width: 1024px) {
    .tm-phone-header {
        position: absolute;
        top: 50%;
        left: calc(14vw - 10px); 
        transform: translate(-100%, -50%);
        text-align: right;
        white-space: nowrap;
    }
}
@media (min-width: 1200px) {
    .tm-phone-header {
        position: absolute;
        top: 50%;
        left: calc(20vw - 20px); 
        transform: translate(-100%, -50%);
        text-align: right;
        white-space: nowrap;
    }
}


