/* Обнуление стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--tabs-height) + var(--header-height) + 16px);
}

/* Глобальные стили */
:root {
    --tabs-height: 56px;
    --header-height: 90px;
    --color-body-text: #f8f9fa;
    --color-page-bg: whitesmoke;
    --color-text-on-dark: #fff;
    --color-text-primary: #000;
    --color-text-heading: #333;
    --color-text-secondary: #555;
    --color-text-muted: #666;
    --color-brand: #1722bd;
    --color-brand-hover: #0f1896;
    --color-brand-soft-shadow: rgba(23, 34, 189, 0.25);
    --color-site-tabs-bg: rgba(5, 8, 44, 0.96);
    --color-site-tabs-border: rgba(255, 255, 255, 0.08);
    --color-site-tab-text: #d7def8;
    --color-site-tab-hover-bg: rgba(255, 255, 255, 0.08);
    --color-site-tab-hover-text: #fff;
    --color-header-bg: rgba(9, 14, 81, 0.95);
    --color-header-bg-scrolled: rgba(9, 14, 81, 1);
    --color-nav-icon-hover: rgba(255, 255, 255, 0.1);
    --color-map-overlay: transparent;
    --color-surface-card: #fff;
    --color-border-card: #ddd;
    --color-border-soft: #dce0f3;
    --color-shadow-soft: rgba(0, 0, 0, 0.1);
    --color-shadow-medium: rgba(0, 0, 0, 0.15);
    --color-shadow-strong: rgba(0, 0, 0, 0.2);
    --color-overlay-strong: rgba(0, 0, 0, 0.8);
    --color-overlay-full: rgba(0, 0, 0, 0.9);
    --color-page-note-bg: rgba(255, 255, 255, 0.16);
    --color-page-note-border: rgba(255, 255, 255, 0.28);
    --color-travelline-bg: #c6c8e8;
}

body.theme-beige {
    --color-body-text: #5b4633;
    --color-page-bg: #f5eee3;
    --color-text-on-dark: #fff9f1;
    --color-text-primary: #4a3827;
    --color-text-heading: #5b4633;
    --color-text-secondary: #715b47;
    --color-text-muted: #8b7460;
    --color-brand: #a7784e;
    --color-brand-hover: #8f643d;
    --color-brand-soft-shadow: rgba(167, 120, 78, 0.28);
    --color-site-tabs-bg: rgba(96, 70, 46, 0.96);
    --color-site-tabs-border: rgba(255, 248, 236, 0.18);
    --color-site-tab-text: #f1e0cc;
    --color-site-tab-hover-bg: rgba(255, 248, 236, 0.16);
    --color-site-tab-hover-text: #fff9f1;
    --color-header-bg: rgba(126, 92, 63, 0.95);
    --color-header-bg-scrolled: rgba(126, 92, 63, 1);
    --color-nav-icon-hover: rgba(255, 248, 236, 0.24);
    --color-map-overlay: transparent;
    --color-surface-card: #fffaf2;
    --color-border-card: #d9c1a4;
    --color-border-soft: #e5d1b8;
    --color-shadow-soft: rgba(74, 56, 39, 0.12);
    --color-shadow-medium: rgba(74, 56, 39, 0.18);
    --color-shadow-strong: rgba(74, 56, 39, 0.24);
    --color-overlay-strong: rgba(49, 35, 25, 0.82);
    --color-overlay-full: rgba(49, 35, 25, 0.92);
    --color-page-note-bg: rgba(255, 248, 236, 0.34);
    --color-page-note-border: rgba(255, 248, 236, 0.52);
    --color-travelline-bg: #e2d2bc;
}

body {
    font-family: 'Philosopher', sans-serif;
    line-height: 1.6;
    color: var(--color-body-text);
    background-color: var(--color-page-bg);
    user-select: none;
}

.site-tabs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background-color: var(--color-site-tabs-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-site-tabs-border);
}

.site-tabs__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: var(--tabs-height);
    padding-top: 8px;
    padding-bottom: 8px;
}

.site-tab {
    flex: 1;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    color: var(--color-site-tab-text);
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.site-tab:hover {
    background-color: var(--color-site-tab-hover-bg);
    color: var(--color-site-tab-hover-text);
}

.site-tab.is-active,
.site-tab[aria-current="page"] {
    background-color: var(--color-brand);
    color: var(--color-text-on-dark);
    box-shadow: 0 8px 24px var(--color-brand-soft-shadow);
}

a {
    color: inherit;
    text-decoration: none;
}

.book-btn{
    z-index: 10;
    padding: 10px 20px;
    background: var(--color-brand);
    border-radius: 10px;
    position: absolute;
    color: var(--color-text-on-dark);
    font-size: 1.6rem;
    font-weight: 400;
    left: 50%;
    top: 60%;
    transform: translate(-50%,50%);
}

.header {
    position: fixed;
    top: var(--tabs-height);
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--color-header-bg);
    box-shadow: 0 2px 15px var(--color-shadow-soft);
    transition: all 0.3s ease;
}

.header.header--hidden {
    transform: translateY(calc(-100% - 8px));
}

.header.scrolled {
    background-color: var(--color-header-bg-scrolled);
    box-shadow: 0 4px 20px var(--color-shadow-medium);
}

.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-us .container{
    width: 1120px;
    margin: 0 auto;
    
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.header__logo a {
    display: flex;
    flex-direction: column;
    color: var(--color-text-on-dark);
    text-decoration: none;
}

.header__logo h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.header__logo span {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 3px;
}

.header__icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-link {
    color: var(--color-text-on-dark);
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.icon-link:hover {
    background-color: var(--color-nav-icon-hover);
    transform: scale(1.1);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    white-space: nowrap;
}

.btn-book {
    background-color: var(--color-brand);
    color: var(--color-text-on-dark);
    border: none;
}

.btn-book:hover {
    background-color: var(--color-brand-hover);
}
.main{
    margin-top: calc(var(--tabs-height) + var(--header-height));
}

.section__intro{
    height: calc(100vh - var(--tabs-height) - var(--header-height));
    width: 100%;
    overflow: hidden;
}

.intro-swiper,
.intro-swiper .swiper-wrapper {
    height: 100%;
}

.intro-swiper img{
    filter: brightness(.5);
    width: 100%;
    height: 100%;
    object-fit: cover;
}

 .intro__text {
    z-index: 10;
    color: var(--color-text-on-dark);
    position: absolute;
    display: flex;
    align-items: center;
    flex-direction: column;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
 }

 .intro__text h2 {
    user-select: none;
    font-size: 5rem;
 }
 .intro__text p {
    text-align: center;
    user-select: none;
    font-size: 30px;
 }

.footer{
    padding: 30px 20px 30px 20px;
    color: var(--color-text-primary);
    font-weight: 600;
}

.map{
    position: relative;
}

.map::before{
    content: "";
    background-color: var(--color-map-overlay);
    position: absolute;
    left: 0;
    right: 0;
    top: 0; 
    bottom: 0;
    z-index: 2;
    pointer-events: auto;
}


section{
    color: var(--color-text-primary);
}
.about-us {
    padding: 60px 20px 40px 20px; 
}

.row {
    display: flex;
    flex-direction: column;
    gap: 40px; 
}

.about-us-title{
    text-align: left;
    width: 500px;
}
.about-us-text{
    padding-left: 300px;
}

.section-title {
    font-size: 4rem; 
    font-weight: bold;
    color: var(--color-text-heading);
    line-height: 1.2; 
}

.section-subtitle {
    font-size: 2rem; 
    font-weight: bold;
    color: var(--color-text-secondary);
    margin-top: 40px; 
    margin-bottom: 20px; 
}

/* Описание */
.section-description,
.section-text {
    font-size: 1.4rem; 
    color: var(--color-text-muted);
    line-height: 1.6; 
    margin-bottom: 30px;
}

/* Список особенностей */
.features-list {
    list-style: none; 
    margin: 0;
}

.features-list li {
    font-size: 1.1rem; 
    color: var(--color-text-muted);
    margin-bottom: 15px; 
}

.features-list li::before {
    content: "—";
    margin-right: 10px; 
    font-size: 1.2rem; 
}


.rooms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    color: var(--color-text-primary);
    flex-wrap: wrap;
    gap: 40px; /* Расстояние между карточками */
    justify-content: center; /* Центрирование карточек */
    padding: 40px;
}
.room-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 1200px;
    justify-self: center;
  }

.room-card {
    position: relative;
    width: 100%; /* Ширина карточки */
    background-color: var(--color-surface-card);
    border: 1px solid var(--color-border-card);
    border-radius: 10px;
    box-shadow: 0 4px 8px var(--color-shadow-soft);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card .room-swiper{
    height: 70%;
}

.room-swiper img{
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.room-card:hover {
    transform: translateY(-10px); 
    box-shadow: 0 8px 16px var(--color-shadow-strong);
}
.room-info {
    color: var(--color-text-primary);
    padding: 20px;
}

.room-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-text-heading);
}

.room-info p {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin-bottom: 10px;
}

.booking-placeholder {
    padding: 32px 20px 16px 20px;
}

.booking-placeholder__card {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 32px;
    background-color: var(--color-surface-card);
    border: 1px solid var(--color-border-soft);
    border-radius: 18px;
    box-shadow: 0 10px 30px var(--color-shadow-soft);
}

.booking-placeholder__card h2 {
    font-size: 2rem;
    color: var(--color-brand);
    margin-bottom: 12px;
}

.booking-placeholder__card p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.page-note {
    display: inline-flex;
    margin-top: 20px;
    padding: 10px 16px;
    border-radius: 999px;
    background-color: var(--color-page-note-bg);
    border: 1px solid var(--color-page-note-border);
    font-size: 1rem;
    line-height: 1.3;
    text-align: center;
}

.map img{
    width: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    :root {
        --tabs-height: 64px;
        --header-height: 70px;
    }

    .room-card .room-swiper{
        height: auto;
    }
    .btn-left, .btn-right, .prev, .next{
        top: 30% !important;
    }
    .fullscreen-image {
        max-width: 95%;
        max-height: 95%;
      }
      
      .close-btn {
        top: 10px;
        right: 15px;
        font-size: 30px;
      }
    .main-gallery img {
        width: 600px;
        height: 100%;
        object-fit: cover;
      }
    .image-gallery {
        padding-left: 0px!important;
      }
      .image-gallery img{
        width: 100% !important;
      }
    .about-us-title {
        width: auto;
    }
    .about-us .container{
        width: auto;
        margin: 0 auto;
        
    }
    .main-gallery {
        height: 50vh;
      }
      
      .thumbnail-gallery {
        height: 80px;
      }
    .header__inner {
        height: 70px;
    }
    
    .header__logo h2 {
        font-size: 20px;
    }

    .site-tabs__inner {
        gap: 8px;
    }

    .site-tab {
        min-height: 44px;
        padding: 8px 10px;
        font-size: 0.95rem;
    }
    
    .icon-link {
        font-size: 18px;
        width: 36px;
        height: 36px;
    }
    
    .btn-book {
        padding: 8px 15px;
        font-size: 14px;
    }
    .book-btn{
        top: 48%;
    }
    .intro-swiper img{
        width: 100%;
        height: 500px;
    }
    .about-us-text{
        padding-left: 0;
    }
    .header {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }
    
    .header__logo h2 {
        font-size: 1.5rem;
    }
    
    .header__contact {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .header__contact .btn {
        width: 100%;
        text-align: center;
    }
    
    .section__intro {
        height: auto;
    }
    
    .intro__text {
        text-align: center;
        top: 30%;
    }
    
    .intro__text h2 {
        white-space: nowrap;
        font-size: 2rem;
    }
    
    .intro__text p {
        font-size: 1.2rem;
    }
    
    .about-us .row {
        flex-direction: column;
    }
    
    .col-left, .col-right {
        width: 100%;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    
    .rooms {
        padding: 20px;
        gap: 20px;
        grid-template-columns: 1fr;
    }
    
    .room-card {
        width: 100%;
    }
    
    
    .room-info p {
        font-size: 1.2rem;
    }

    .room-card .slider {
        height: 300px;
    }
    
    .room-title {
        font-size: 1.2rem;
    }
    
    .map img {
        height: 300px;
    }
    .contact-card {
        grid-template-columns: 1fr 1fr !important;
        gap: 30px;
        padding: 40px !important;
      }
      .contacts-container{
        width: auto !important;
      }
      .section-title{
        text-align: center;
      }

    .booking-placeholder {
        padding-top: 24px;
    }

    .booking-placeholder__card {
        padding: 24px 20px;
    }

    .booking-placeholder__card h2 {
        font-size: 1.6rem;
    }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
      }
      
      .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
      }
    .main-gallery img {
        width: 400px;
        height: 100%;
        object-fit: cover;
      }
    .image-gallery {
        padding-left: 0;
      }
    .about-us-title {
        width: auto;
    }
    .about-us .container{
        width: auto;
        margin: 0 auto;
        
    }
    .header__logo h2 {
        font-size: 18px;
    }
    
    .header__logo span {
        font-size: 10px;
    }
    
    .header__icons {
        gap: 15px;
    }
    
    .icon-link {
        font-size: 16px;
        width: 32px;
        height: 32px;
    }
    .book-btn{
        top: 320px;
    }
    .intro-swiper img{
        width: 100%;
        height: 400px;
    }
    .header__logo h2 {
        font-size: 1.2rem;
    }

    .intro__text{
        top: 250px;
    }
    
    .intro__text h2 {
        font-size: 1.5rem;
    }
    
    .intro__text p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
    }
    
    .room-info p {
        font-size: 1.2rem;
    }
    .rooms{
        grid-template-columns: 1fr;
    }
    
    .room-card .slider {
        height: 200px;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .main-gallery img {
        width: 500px;
        height: 100%;
        object-fit: cover;
      }
    .image-gallery {
        padding-left: 0;
      }
    .about-us-title {
        width: auto;
    }
    .about-us .container{
        width: auto;
        margin: 0 auto;
        
    }
    .header__nav {
        margin: 0 15px;
    }
    
    .nav__list li {
        margin: 0 10px;
    }
    
    .phone-link span {
        display: none;
    }
    .book-btn{
        top: 48%;
    }
    .intro-swiper img{
        width: 100%;
        height: 50vh;
    }
    /* Общие изменения для планшетов */
    .header {
        flex-direction: row;
        padding: 10px;
    }

    .header__logo h2 {
        font-size: 1.8rem;
    }

    .header__contact {
        gap: 15px;
    }

    .section__intro {
        height: auto;
    }

    .intro__text {
        text-align: center;
        top: 30%;
    }

    .intro__text h2 {
        font-size: 3rem;
    }

    .intro__text p {
        font-size: 1.5rem;
    }

    .about-us .row {
        flex-direction: column;
    }
    .room-info p {
        font-size: 1.2rem;
    }
    .col-left, .col-right {
        width: 100%;
    }

    .section-title {
        font-size: 3.5rem;
    }

    .rooms {
        padding: 20px;
        gap: 20px;
        grid-template-columns: 1fr;
    }


    .room-card .slider {
        height: 350px;
    }

    .map img {
        height: 400px;
    }
}
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .room-card .room-swiper{
        height: auto;
    }
}
.main-gallery img {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    object-fit: cover;
  }
.image-gallery {
    padding-left: 400px;
    width: 100%;
  }
  
  .main-gallery {
    height: 70vh;
    max-height: 800px;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .main-gallery .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .swiper-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
  }
.btn-left, .btn-right, .prev, .next {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    border-radius: 8px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-overlay-strong);
    color: var(--color-text-on-dark);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 20px;
    z-index: 20;
}

.btn-left,
.prev {
    left: 10px;
}

.btn-right,
.next {
    right: 10px;
}

.btn-left:hover,
.btn-right:hover,
.prev:hover,
.next:hover {
    background-color: var(--color-overlay-strong);
}
  
.about-rooms{
    padding-top: 30px;
}  

.room-swiper img{
    object-fit: cover;
    aspect-ratio: 3 / 2;
    width: 100%;
}

.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-overlay-full);
    z-index: 9999;
    text-align: center;
  }
  
  .fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    object-fit: contain;
  }
  
  .close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--color-text-on-dark);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
  }

  .swiper-slide img{
    cursor: pointer;
  }

  .contacts-section {
    padding: 60px 20px;
  }
  
  .contacts-container{
    width: 1120px;
    margin: 0 auto;
  }

  .contact-card {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
    padding: 40px;
    padding-left: 160px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-on-dark);
    font-size: 20px;
  }

  .contact-content h3 {
    font-size: 1.2rem;
    color: var(--color-text-heading);
    margin-bottom: 5px;
  }

  .contact-content a {
    color: var(--color-brand);
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s;
  }

  .contact-content p {
    color: var(--color-brand);
    font-size: 1.1rem;
  }

  .contact-content a:hover {
    color: var(--color-brand-hover);
    text-decoration: underline;
  }
