/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    margin: 0;
    background: #ffffff; /* Светлый фон вместо градиента */
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Шапка сайта - как в контактах */
.header {
    
    min-height: auto;
    position: relative;
    padding: 0;
}

.headerLine {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav {
    display: flex;
    gap: 25px;
}

.navitem {
    color: black;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
    padding: 10px 15px;
    border-radius: 5px;
}

.navitem:hover {
    color: #e0e0e0;
    background-color: rgba(255, 255, 255, 0.1);
}

.phone {
    border-left: solid 1px black;
    padding-left: 15px;
}

.phone-holder {
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-img {
    width: 20px;
    height: 20px;
}

.num {
    color: black;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
}

.num:hover {
    color: #e0e0e0;
    transition: color 0.3s ease;
}

.text1 {
    color: black;
    font-size: 14px;
    opacity: 0.9;
}

.nav-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
    position: absolute;
    right: 20px;
    top: 20px;
}

.but-in-img {
    width: 30px;
    height: 30px;
}

/* Заголовок Номера - темно-синий */
.text2 {
    font-size: 3.5rem;
    text-align: center;
    margin: 80px 0 40px;
    color: #2c3e50;
    position: relative;
    font-weight: 700;
}

.text2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #5a5a5a 0%, #7a7a7a 100%);
    border-radius: 2px;
}

.block-with-text {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.text3 {
    font-size: 1.3rem;
    color: #2c3e50;
    line-height: 1.8;
    background: rgba(248, 249, 250, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Карточки номеров - улучшенные с одинаковыми размерами */
.cards {
    padding: 80px 0;
    background: transparent;
}

.container-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Общие стили для всех карточек */
.card1, .card2, .card3, .card4 {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    display: flex;
    flex-direction: column;
    height: 650px; /* Фиксированная высота для одинакового размера */
}

.card1:hover, .card2:hover, .card3:hover, .card4:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-top, .card2-top, .card3-top, .card4-top {
    height: 300px; /* Увеличили высоту для фотографий */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.photo1, .photo2, .photo3, .photo4 {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo1 img, .photo2 img, .photo3 img, .photo4 img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Показываем изображение полностью без обрезания */
    transition: transform 0.3s ease;
}

.photo1:hover img, .photo2:hover img, .photo3:hover img, .photo4:hover img {
    transform: scale(1.05);
}

.card-bottom, .card2-bottom, .card3-bottom, .card4-bottom {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-price, .card2-price, .card3-price, .card4-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.card-price::after, .card2-price::after, .card3-price::after, .card4-price::after {
    content: "₽/сутки";
    margin-left: 5px;
    font-size: 1rem;
    color: #666;
}

.text5, .text5-2, .text5-3, .text5-4 {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-footer, .card2-footer, .card3-footer, .card4-footer {
    padding: 0 25px 25px;
    margin-top: auto;
}

.card-button, .card2-button, .card3-button, .card4-button {
    background: linear-gradient(135deg, #5a5a5a 0%, #7a7a7a 100%);
    color: white;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-button:hover, .card2-button:hover, .card3-button:hover, .card4-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(90, 90, 90, 0.3);
    background: linear-gradient(135deg, #7a7a7a 0%, #5a5a5a 100%);
}

/* Подвал сайта - как в контактах, без точек */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 80px 0 40px;
    position: relative;
    margin-top: 80px;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #5a5a5a 0%, #7a7a7a 100%);
}

.last-zag {
    text-align: center;
    margin-bottom: 40px;
}

.text8 {
    font-size: 2.5rem;
    color: white;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.button-footer {
    text-align: center;
    margin-bottom: 60px;
}

.text-button-main-foot {
    background: linear-gradient(135deg, #5a5a5a 0%, #7a7a7a 100%);
    color: white;
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(90, 90, 90, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-button-main-foot:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(90, 90, 90, 0.4);
    background: linear-gradient(135deg, #7a7a7a 0%, #5a5a5a 100%);
}

.footerLine {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.foot-zag, .foot-zag-sec {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
}

.foot-zag::after, .foot-zag-sec::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #e0e0e0;
}

/* Убираем точки у списков в футере */
.sec-nav ul, .third-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.li1 {
    margin-bottom: 12px;
    list-style: none;
}

.navitem2, .foot-num, .foot-mail {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 5px 0;
    display: block;
}

.navitem2:hover, .foot-num:hover, .foot-mail:hover {
    color: #e0e0e0;
    transform: translateX(5px);
}

.adres, .text-foot1, .text-mail {
    margin-bottom: 20px;
}

.text-adres {
    font-weight: 700;
    color: #e0e0e0;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.text-adress-foot {
    color: #ecf0f1;
    line-height: 1.6;
}


/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: white;
    z-index: 99;
    padding: 30px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.mobile-nav-item {
    color: black;
    text-decoration: none;
    font-size: 18px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: color 0.3s ease;
}

.mobile-nav-item:hover {
    color: #5a5a5a;
}

.mobile-phone {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mobile-num {
    color: black;
    text-decoration: none;
    font-size: 18px;
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.mobile-contact-text {
    color: #555;
    font-size: 14px;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}