/**
 * Villa Black Sea — адаптация (номера + мобильная главная)
 */

.site {
    line-height: 1.5;
    font-size: 87.5%;
}

@media screen and (min-width: 780px) {
    .room-cards-mob-only,
    .price-table-mob-only {
        display: none !important;
    }
}

@media screen and (max-width: 779px) {
    .room-table-pc-only,
    .price-table-pc-only {
        display: none !important;
    }

    .site {
        max-width: 100%;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

#mob header.header-mob-home {
    background: none !important;
}

/* УТП — скидка керчанам (мобильная главная) */
#mob .mob-usp-card {
    margin: 16px 16px 8px;
    padding: 18px 20px 16px;
    border-radius: 16px;
    text-align: center;
    background: linear-gradient(145deg, #362c61 0%, #231f37 55%, #2a2448 100%);
    border: 1px solid rgba(244, 175, 215, 0.35);
    box-shadow:
        0 8px 28px rgba(35, 31, 55, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

#mob .mob-usp-card__badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #231f37;
    background: linear-gradient(90deg, #f4afd7, #ffb8a8);
}

#mob .mob-usp-card__title {
    margin: 0 0 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: #ffffff;
}

#mob .mob-usp-card__value {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #f4afd7;
}

#mob .mob-usp-card__percent {
    font-size: 28px;
    font-weight: 600;
}

#mob .mob-usp-card__note {
    margin: 10px 0 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.65);
}

#mob .mob-news-main {
    margin: 0;
    padding: 0;
}

/* «О нас» — полноэкранные слайды (как Tilda на оригинале, без x_files) */
#mob .home-about-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pinch-zoom;
    width: 100%;
    margin-bottom: 8px;
}

#mob .home-about-track {
    display: flex;
    width: max-content;
}

#mob .home-about-slide-full {
    flex: 0 0 100vw;
    width: 100vw;
    max-width: 100%;
    height: 421px;
    scroll-snap-align: start;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: stretch;
    text-decoration: none;
    box-sizing: border-box;
}

#mob .home-about-slide-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    box-sizing: border-box;
}

#mob .home-about-slide-full .slider-mob {
    color: #ffffff;
    display: block;
    width: 100%;
}

#mob .home-about-slide-full .slider-mob-text {
    display: block;
    width: 100%;
    max-width: 320px;
}

/* Отступ заголовка до контента — как у «Подогреваемый бассейн» (20px) */
#mob .home-about-section #section-2 + .home-about-carousel-wrap {
    margin-top: 0;
}

#mob .home-about-section .home-about-carousel-wrap {
    margin-top: 20px;
}

#mob .home-mob-services-block > .h2-mob + .home-mob-gallery-single {
    margin-top: 20px;
}

/* Главная — «Подогреваемый бассейн» (градиент на всю ширину, контент по центру) */
.home-pool-section {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: linear-gradient(180deg, #ffdcbc 0%, #ffd297 100%);
    box-sizing: border-box;
}

.home-pool-section__inner {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    box-sizing: border-box;
    background: transparent;
}

#mob .home-pool-section {
    padding-bottom: 20px;
}

#pc .home-pool-section {
    padding-bottom: 40px;
}

#pc .home-pool-section__inner.section-bottom {
    width: 1024px;
    max-width: 1024px;
}

#pc .home-pool-section__inner.section-bottom::after {
    display: none;
}

.home-pool-more-wrap {
    margin: 8px auto 28px;
    padding: 0 16px;
    text-align: center;
    box-sizing: border-box;
}

.home-pool-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #362c61;
    box-shadow: 0 2px 10px rgba(35, 31, 55, 0.18);
    transition: transform 0.18s ease, background-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-sizing: border-box;
}

.home-pool-more:hover {
    background-color: #5540a5;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(35, 31, 55, 0.28);
    filter: brightness(1.05);
}

/* Главная — блок «О вилле», один HTML на моб и ПК */
.home-about-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #231f37;
}

.home-about-tagline {
    margin: 0;
    text-align: center;
    font-weight: 500;
}

@media screen and (max-width: 779px) {
    .home-about-text.justtext-mob {
        padding-top: 0;
    }

    .home-about-tagline {
        text-align: left;
    }
}

@media screen and (max-width: 779px) {
    .home-pool-more-wrap {
        margin: 4px auto 20px;
    }

    .home-pool-more {
        min-height: 40px;
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Контакты — карта Яндекса */
.contacts-map {
    width: 100%;
    max-width: 100%;
    margin: 16px auto 0;
    overflow: hidden;
    box-sizing: border-box;
}

.contacts-map iframe {
    display: block;
    max-width: 100%;
}

.contacts-map--mob {
    display: none;
}

.contacts-map--pc {
    display: block;
}

@media screen and (max-width: 779px) {
    .contacts-map--mob {
        display: block;
        max-width: calc(100vw - 40px);
    }

    .contacts-map--pc {
        display: none;
    }

    .contacts-map--mob iframe {
        width: 100% !important;
        max-width: 100%;
        height: 520px !important;
        margin: 0 auto;
    }
}

/* Главная — «Отзывы о вилле» (градиент на всю ширину, контент по центру) */
.home-reviews-section {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: linear-gradient(180deg, #a2ccfe 0%, #c9d6ff 100%);
    box-sizing: border-box;
}

.home-reviews-section__inner {
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    box-sizing: border-box;
    background: transparent;
}

#mob .home-reviews-section {
    padding-bottom: 28px;
    overflow: visible;
}

#pc .home-reviews-section__inner {
    width: 1024px;
    max-width: 1024px;
}

/* Главная (моб) — «О нас» */
#mob .home-about-section {
    background-color: #ffd297;
    padding-bottom: 8px;
    box-sizing: border-box;
}

/* Страница услуг — фон как у сайта, не оранжевый блок с главной */
#mob.uslugi-page-mob,
#mob.uslugi-page-mob .home-mob-services-block {
    background-color: #ffdcbc;
}

/* «Услуги» на главной — оранжевый блок, по одной карточке в ряд */
#mob .home-mob-services-block {
    background-color: #ffd297;
    padding: 0 16px 24px;
    box-sizing: border-box;
}

#mob .home-mob-gallery-single {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

#mob .home-mob-gallery-item {
    width: 100%;
    background: #fff;
    box-sizing: border-box;
}

#mob .home-mob-gallery-label {
    text-align: center;
    padding: 10px 8px 14px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

#mob .home-mob-gallery-label a {
    font-size: 14px;
}

/* Синий блок «Услуги» — подписи пунктов */
#mob .uslugitext {
    font-size: 14px;
    line-height: 1.35;
}

/* Единая ширина контентных блоков и фото на моб. главной */
#mob {
    --mob-inline-pad: 16px;
    --mob-news-text-pad: 12px;
}

#mob .mob-content-media {
    width: calc(100% - 2 * var(--mob-inline-pad));
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    line-height: 0;
}

#mob .mob-content-media--spaced {
    margin-top: 20px;
}

#mob .mob-content-media img {
    display: block;
    width: 100%;
    height: auto;
}

/* Слайдер «О нас» — стрелки */
#mob .home-about-carousel-wrap {
    position: relative;
    margin-bottom: 8px;
}

#mob .home-about-carousel {
    margin-bottom: 0;
}

#mob .home-about-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(35, 31, 55, 0.72);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#mob .home-about-arrow--prev {
    left: 10px;
}

#mob .home-about-arrow--next {
    right: 10px;
}

/* Пляж → новости без бежевого зазора */
#mob .mob-beach-banner {
    margin: 0;
    padding: 0;
    line-height: 0;
}

#mob .mob-beach-banner img {
    display: block;
    width: 100%;
    height: auto;
}

#mob .mob-news-section {
    margin: 0;
    padding: 0 var(--mob-inline-pad) 24px;
    background-color: #a2ccfe;
    box-sizing: border-box;
}

#mob .mob-news-section__title {
    padding-top: 16px;
    padding-bottom: 12px;
    margin: 0;
}

#mob .mob-news-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

#mob .mob-news-card,
#mob .mob-news-full {
    background: #fff;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0;
}

#mob .mob-news-card__media,
#mob .mob-news-full__media {
    margin: 0;
    padding: 0;
    line-height: 0;
}

#mob .mob-news-card__media img,
#mob .mob-news-full__media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
}

#mob .mob-news-card__body,
#mob .mob-news-full__body {
    padding: var(--mob-news-text-pad) var(--mob-news-text-pad) 14px;
    box-sizing: border-box;
}

#mob .mob-news-card__body .main-news-data,
#mob .mob-news-card__body .main-news-title,
#mob .mob-news-card__body .main-news-text,
#mob .mob-news-card__body .mob-news-card__more,
#mob .mob-news-full__body .main-news-data,
#mob .mob-news-full__body .main-news-title,
#mob .mob-news-full__body .main-news-text {
    margin: 0;
    padding: 0;
}

#mob .mob-news-card__body .main-news-data,
#mob .mob-news-full__body .main-news-data {
    margin-bottom: 6px;
}

#mob .mob-news-card__body .main-news-title,
#mob .mob-news-full__body .main-news-title {
    margin-bottom: 8px;
}

#mob .mob-news-card__body .main-news-text,
#mob .mob-news-full__body .main-news-text {
    margin-bottom: 10px;
}

#mob .mob-news-section--page {
    padding-top: 8px;
}

/* Страница новостей (моб) — бежевый фон, только полные тексты */
#mob.mob-news-page {
    background-color: #ffdcbc;
}

#mob.mob-news-page .mob-news-page-wrap,
#mob.mob-news-page .mob-news-full-list {
    background-color: #ffdcbc;
}

#mob.mob-news-page .mob-news-page__title {
    margin: 0;
    padding: 16px var(--mob-inline-pad, 16px) 12px;
    background-color: #ffdcbc;
}

#mob .mob-news-card__more {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #423496;
}

#mob .mob-news-full-list {
    padding: 0 var(--mob-inline-pad, 16px) 24px;
    background: #a2ccfe;
    box-sizing: border-box;
}

#mob.mob-news-page .mob-news-full-list {
    background: #ffdcbc;
}

#mob .mob-news-full {
    margin-bottom: 16px;
    scroll-margin-top: 56px;
}

#mob .mob-news-full:last-child {
    margin-bottom: 0;
}

/* Заголовки на моб: ПК-article h2 без фиксированной высоты */
@media screen and (max-width: 779px) {
    main article.pattern-parg {
        padding-top: 0;
    }

    main article.pattern-parg h2,
    main article h2 {
        height: auto;
        min-height: 0;
        line-height: 1.22;
        font-size: 20px;
        padding: 20px 20px 14px;
        box-sizing: border-box;
    }

    main article.pattern-parg + table .ovilletext td,
    main article.pattern-parg + table td.ovilletext {
        padding-top: 0 !important;
    }
}

/* Страница отзывов — те же стили, что у mob-news-page (классы main-news-*) */

/* «Отзывы» — карточки одинаковой высоты, без обрезки снизу */
#mob .home-reviews-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x pinch-zoom;
    gap: 12px;
    padding: 0 12px 32px;
    align-items: stretch;
    -webkit-overflow-scrolling: touch;
    white-space: normal;
    text-align: left;
    margin: 0;
}

#mob .home-reviews-scroll .short {
    flex: 0 0 78%;
    max-width: 280px;
    display: flex;
    margin: 4px 0;
    white-space: normal;
    overflow: visible;
}

#mob .home-reviews-scroll .home-review-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 430px;
    height: auto;
    box-sizing: border-box;
    overflow: visible;
    padding-bottom: 12px;
}

#mob .home-reviews-scroll .home-review-card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

#mob .home-reviews-scroll .home-review-card-more {
    margin-top: auto;
    display: block;
    padding-bottom: 4px;
}

/* Моб. футер главной — контакты + тёмный подвал */
#mob .footer-mob {
    width: 100%;
    clear: both;
    overflow: visible;
    margin: 0;
    padding: 0;
    background: url(../../images/footer-back.jpg) center / cover no-repeat;
}

#mob .mob-footer,
#site-footer-mob .mob-footer {
    width: 100%;
    clear: both;
    font-size: 14px;
    line-height: 1.4;
    box-sizing: border-box;
    background: #231f37;
}

#mob .mob-footer-actions,
#site-footer-mob .mob-footer-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 12px;
    background: #231f37;
    box-sizing: border-box;
}

#mob .mob-footer-action-btn,
#site-footer-mob .mob-footer-action-btn {
    flex: 1 1 0;
    max-width: 168px;
    height: 44px;
    padding: 0 10px 0 14px;
    border-radius: 10px;
    font-size: 12px;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.18s ease, filter 0.2s ease;
}

#mob .mob-footer-action-btn:hover,
#site-footer-mob .mob-footer-action-btn:hover {
    transform: scale(1.03);
    filter: brightness(1.06);
}

#mob .mob-footer-action-btn .site-nav-mob__msg-label,
#site-footer-mob .mob-footer-action-btn .site-nav-mob__msg-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

#mob .mob-footer-bar,
#site-footer-mob .mob-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #231f37;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

#mob .mob-footer-logo img,
#site-footer-mob .mob-footer-logo img {
    display: block;
    height: 28px;
    width: auto;
}

#mob .mob-footer-socials,
#site-footer-mob .mob-footer-socials {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
}

#mob .mob-footer-social-link,
#site-footer-mob .mob-footer-social-link {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

#mob .mob-footer-social-link img,
#site-footer-mob .mob-footer-social-link img {
    display: block;
    width: 22px;
    height: 22px;
    object-fit: contain;
}

#mob .mob-footer-phone,
#site-footer-mob .mob-footer-phone {
    padding: 16px 12px 12px;
    background: #231f37;
    text-align: center;
    box-sizing: border-box;
}

#mob .mob-footer-phone-num,
#site-footer-mob .mob-footer-phone-num {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

#mob .mob-footer-phone-num:hover,
#site-footer-mob .mob-footer-phone-num:hover {
    color: #f4afd7;
}

#mob .mob-footer-copy,
#site-footer-mob .mob-footer-copy {
    background: #252139;
    text-align: center;
    padding: 14px 12px 18px;
    box-sizing: border-box;
}

#mob .mob-footer-copy p,
#site-footer-mob .mob-footer-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

#site-footer-mob.site-footer-mobile {
    background: #231f37;
}
#mob .mob-contact-wrap {
    padding: 40px 16px 28px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.5;
}

#mob .mob-contact-card {
    width: 100%;
    max-width: 265px;
    margin: 0 auto;
    padding: 20px 18px 22px;
    box-sizing: border-box;
    background: rgba(34, 42, 53, 0.72);
    border-radius: 15px;
    box-shadow: 10px 6px 24px rgba(0, 0, 0, 0.51);
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
}

#mob .mob-contact-title {
    margin: 0 0 18px;
    padding: 0 0 14px 12px;
    border-bottom: 1px solid #fff;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

#mob .mob-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

#mob .mob-contact-icon img {
    display: block;
    width: auto;
    height: auto;
}

#mob .mob-contact-link {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

#mob .mob-contact-lead {
    margin: 8px 0 18px;
    padding: 0;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

/* Перебить footer form { display:flex; width:576px } из styles.css */
#mob .footer-mob form.mob-contact-form {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border: 0 !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
}

#mob .mob-contact-form .mob-contact-label {
    display: block !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 6px !important;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
}

#mob .mob-contact-form input[type='text'],
#mob .mob-contact-form input[type='tel'],
#mob .mob-contact-form input[type='email'] {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 33px !important;
    margin: 0 0 14px !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
    border: 1px solid #c2c2c2 !important;
    background: #fff !important;
    color: #000 !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px !important;
    font-weight: 400;
}

#mob .mob-contact-submit {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 47px !important;
    margin: 4px 0 0 !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-radius: 0;
    background: #ff5b3e !important;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.header-little-bandiv img {
    display: block;
    width: 100%;
    max-width: 1024px;
    margin: 0 auto;
    height: auto;
}

@media screen and (max-width: 779px) {
    .header-little-ban {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .section-bottom,
    .section-bottom2,
    .section-bottom3 {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* Текстовые блоки: без переносов слов, выключка по левому краю */
    .ovilletext,
    td.ovilletext,
    table.uslugi .ovilletext,
    .ovilletext p,
    .ovilletext p[align='justify'],
    .justtext-mob:not([align='center']),
    .justtext-mob-bold,
    .justtext {
        text-align: left !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }
}
