/*
Theme Name: Alex Hotel
Author: ChatGPT
Version: 1.0
*/

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #222;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

header {
    position: fixed;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

.phone {
    font-weight: bold;
}

.hero {
    height: 100vh;
    background: url("http://aleksdzhubga.ru/wp-content/uploads/2026/01/Дом-центр.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
}    
.hero-content {
    max-width: 600px;
}
@media (max-width: 768px) {
    .hero {
        min-height: 65vh;
        background-position: center top;
    }
}
.hero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.button {
    display: inline-block;
    padding: 14px 28px;
    background: #c9a45c;
    color: #fff;
    margin-right: 10px;
    border-radius: 4px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    margin-bottom: 40px;
}

.features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.feature {
    flex: 1;
    min-width: 220px;
    background: #f7f7f7;
    padding: 20px;
    border-radius: 6px;
}

.gallery img {
    width: 100%;
    border-radius: 6px;
}

.form input, .form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
}

.form button {
    width: 100%;
    padding: 14px;
    background: #c9a45c;
    color: #fff;
    border: none;
}

footer {
    background: #111;
    color: #fff;
    padding: 40px 0;
}
/* HERO – корректное отображение на телефоне */
.hero {
    background-size: cover;
    background-position: center top;
}

@media (max-width: 768px) {
    .hero {
        min-height: 70vh;
    }
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero {
    position: relative;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.btn-map {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 15px;
    padding: 14px 26px;

    background: #2c7be5; /* спокойный синий */
    color: #fff;
    font-size: 16px;
    font-weight: 600;

    text-decoration: none;
    border-radius: 8px;

    box-shadow: 0 8px 20px rgba(44, 123, 229, 0.25);
    transition: all 0.25s ease;
}

.btn-map:hover {
    background: #1f66c1;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(44, 123, 229, 0.35);
}

.btn-map:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(44, 123, 229, 0.25);
}
/* ===== Booking form (Contact Form 7) ===== */

.booking-form {
    max-width: 420px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

.booking-form p {
    margin: 0;
}

.booking-form input,
.booking-form select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 15px;
    margin-bottom: 14px;
}

.booking-form input:focus,
.booking-form select:focus {
    outline: none;
    border-color: #2c7be5;
}

.booking-form .wpcf7-submit {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 8px;
    background: #2c7be5;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.booking-form .wpcf7-submit:hover {
    background: #1f66c1;
}

/* 📱 Мобильная версия */
@media (max-width: 600px) {
    .booking-form {
        padding: 20px;
    }
}
body {
    font-size: 21px;
    line-height: 1.6;
}
@media (max-width: 768px) {
    body {
        font-size: 18px;
        line-height: 1.7;
    }
}
p {
    margin-bottom: 12px;
}

.service-card p,
.booking-form input,
.booking-form textarea {
    font-size: 16px;
}
.booking-form,
.booking-form * {
    box-sizing: border-box;
}
.services {
    background: #f9fafc;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 35px;
}

.service-item {
    display: flex;
    gap: 18px;
    background: #fff;
    padding: 22px 24px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.service-icon {
    font-size: 28px;
    line-height: 1;
}

.service-item h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.service-item p {
    margin: 0;
    font-size: 15px;
    opacity: .8;
}

/* 📱 Мобильная версия */
@media (max-width: 768px) {
    .services-list {
        grid-template-columns: 1fr;
    }
}
* {
    transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all .6s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}
.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,.1);
}
.btn,
.btn-map {
    transition: all .25s ease;
}

.btn:hover,
.btn-map:hover {
    transform: translateY(-2px);
}
/* ==================================================
   ОБЩЕЕ ОЩУЩЕНИЕ "ДОРОГОГО" САЙТА
================================================== */

/* Базовый текст */
body {
    font-size: 17px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    body {
        font-size: 18px;
        line-height: 1.7;
    }
}

/* Секции — воздух */
.section {
    padding: 90px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

/* Заголовки секций */
.section-title {
    max-width: 720px;
    margin-bottom: 35px;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.25;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
}

/* Текст внутри секций */
.section p {
    max-width: 680px;
    font-size: 17px;
    line-height: 1.7;
    opacity: 0.85;
}

/* Чередование фона для глубины */
.section:nth-child(even) {
    background: #f9fafc;
}

/* ==================================================
   УСЛУГИ (СПОКОЙНЫЙ, ПРЕМИАЛЬНЫЙ ВИД)
================================================== */

.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 35px;
}

@media (max-width: 768px) {
    .services-list {
        grid-template-columns: 1fr;
    }
}

.service-item {
    display: flex;
    gap: 18px;
    background: #fff;
    padding: 22px 24px;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,.05);
    transition: transform .25s ease, box-shadow .25s ease;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,0,0,.08);
}

.service-icon {
    font-size: 28px;
    line-height: 1;
    opacity: 0.6;
}

.service-item h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.service-item p {
    margin: 0;
    font-size: 15px;
    opacity: 0.8;
}

/* ==================================================
   КНОПКИ И ПЕРЕХОДЫ
================================================== */

.btn,
.btn-map {
    padding: 16px 32px;
    font-weight: 500;
    border-radius: 10px;
    transition: all .25s ease;
}

.btn:hover,
.btn-map:hover {
    transform: translateY(-2px);
}

/* ==================================================
   ПЛАВНЫЕ АНИМАЦИИ ПРИ ПРОКРУТКЕ
================================================== */

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all .6s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==================================================
   ФОРМЫ И КОММЕНТАРИИ — НОРМАЛИЗАЦИЯ
================================================== */

.booking-form,
.booking-form *,
.comment-form,
.comment-form * {
    box-sizing: border-box;
}

.booking-form input,
.booking-form select,
.booking-form textarea,
.comment-form input,
.comment-form textarea {
    width: 100%;
    max-width: 100%;
}

.comment-form textarea {
    min-width: 100%;
    min-height: 120px;
    resize: vertical;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 35px;
}

.gallery-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0,0,0,.08);
    transition: transform .35s ease, box-shadow .35s ease;
}

.gallery-grid img:hover {
    transform: scale(1.025);
    box-shadow: 0 20px 45px rgba(0,0,0,.14);
}

/* 📱 Мобильная версия */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid img {
        height: 220px;
    }
}
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* Пропорции 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0,0,0,.15);
    margin-top: 35px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* ==================================================
   ПОЛНАЯ МОБИЛЬНАЯ ОПТИМИЗАЦИЯ
================================================== */

@media (max-width: 768px) {

    /* -------------------
       ПЕРВЫЙ ЭКРАН
    ------------------- */
    .hero {
        height: auto;
        min-height: auto;
        padding: 90px 0 40px;
        background-position: center top;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 1.25;
    }

    .hero p {
        font-size: 17px;
        margin-top: 12px;
        line-height: 1.6;
    }

    .hero-buttons {
        margin-top: 25px;
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
        font-size: 18px;
        padding: 16px;
    }

    /* -------------------
       ТЕКСТ И ЗАГОЛОВКИ
    ------------------- */
    p,
    li {
        font-size: 18px;
        line-height: 1.7;
    }

    .section-title {
        font-size: 26px;
        line-height: 1.3;
    }

    /* -------------------
       СЕКЦИИ — ВОЗДУХ
    ------------------- */
    .section {
        padding: 55px 0;
    }

    .section > .container > * + * {
        margin-top: 22px;
    }

    /* -------------------
       ФОТОГАЛЕРЕЯ
    ------------------- */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .gallery-grid img {
        height: 220px;
        border-radius: 14px;
    }

    /* -------------------
       УСЛУГИ
    ------------------- */
    .services-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-item {
        padding: 20px;
        border-radius: 14px;
    }

    .service-item h3 {
        font-size: 18px;
    }

    .service-item p {
        font-size: 16px;
    }

    /* -------------------
       ВИДЕО (RUTUBE)
    ------------------- */
    .video-wrapper {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    /* -------------------
       ФОРМЫ / БРОНЬ
    ------------------- */
    form input,
    form select,
    form textarea {
        font-size: 18px;
        padding: 14px;
    }

    button,
    .btn {
        font-size: 18px;
        padding: 16px;
    }

    /* -------------------
       КАРТА
    ------------------- */
    iframe {
        max-width: 100%;
    }
}
/* ==================================================
   ФИКС ФОРМЫ БРОНИРОВАНИЯ НА МОБИЛКЕ
================================================== */

@media (max-width: 768px) {

    /* Все формы и поля */
    form,
    .wpcf7,
    .wpcf7-form {
        width: 100%;
        max-width: 100%;
    }

    /* Все поля ввода */
    form input,
    form select,
    form textarea,
    .wpcf7 input,
    .wpcf7 select,
    .wpcf7 textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin-left: 0 !important;
        margin-right: 0 !important;
        display: block;
    }

    /* Обёртки Contact Form 7 */
    .wpcf7-form-control-wrap {
        display: block;
        width: 100%;
    }

    /* Строки формы */
    .form-row,
    .booking-row,
    .booking-form-row {
        display: block;
        width: 100%;
    }

    /* Кнопка */
    form button,
    .wpcf7-submit {
        width: 100%;
        display: block;
        text-align: center;
    }
}
/* ================================
   БЛОК БРОНИРОВАНИЯ / КОНТАКТОВ
================================ */

.booking {
    text-align: left;
}

.booking-text {
    max-width: 800px;
    margin: 0 auto 25px;
    font-size: 25px;
    line-height: 2.6;
    opacity: 0.85;
}

/* КНОПКИ */
.contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 16px 26px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    transition: all .25s ease;
}

/* телефон */
.btn-primary {
    background: #d3d3d3;
    color: #fff;
}

/* WhatsApp */
.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

/* MAX */
.btn-max {
    background: #3b82f6;
    color: #fff;
}

/* hover эффект */
.btn:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

/* МОБИЛКА */
@media (max-width: 768px) {
    .contact-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
        font-size: 18px;
    }
}