/* =========================================
   HERO (главная)
   ========================================= */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/hero.jpg') center/cover;
    opacity: 0.25;
    animation: heroZoom 20s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

.hero h1 span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-subtitle + .hero-buttons {
    margin-top: 12px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(201, 162, 39, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    transform: translateY(-3px);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
}

@keyframes bounce {
    0%,20%,50%,80%,100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* =========================================
   ABOUT
   ========================================= */
.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-images {
    position: relative;
    perspective: 1000px;
}

.about-img-main {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow:
        0 4px 8px rgba(0,0,0,0.06),
        0 12px 24px rgba(0,0,0,0.1);
}

.about-img-secondary {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
    border: 6px solid var(--white);
    z-index: 2;
    box-shadow:
        0 4px 6px rgba(0,0,0,0.05),
        0 10px 20px rgba(0,0,0,0.08),
        0 20px 40px rgba(0,0,0,0.06),
        0 30px 60px rgba(0,0,0,0.04);
    transform: translateZ(12px);
    transition: transform 0.5s cubic-bezier(0.23,1,0.32,1), box-shadow 0.5s ease;
}

.about-images:hover .about-img-secondary {
    transform: translateZ(20px) translateY(-4px);
    box-shadow:
        0 6px 10px rgba(0,0,0,0.06),
        0 15px 30px rgba(0,0,0,0.1),
        0 30px 60px rgba(0,0,0,0.08),
        0 45px 80px rgba(0,0,0,0.05);
}

.about-content h3 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.about-content p {
    color: var(--text-light);
    line-height: 1.8;

@media (max-width: 768px) {
    .about-grid {
        gap: 30px;
    }
    .about-content {
        padding-left: 0 !important;
    }
    .about-images .gallery-grid {
        margin-top: 10px !important;
    }
    .about-images .gallery-grid[style*="repeat(3"] {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
}
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
}
@media (max-width: 768px) {
    .features-list {
        gap: 10px;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.feature-item i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* =========================================
   ROOMS (номера и коттеджи)
   ========================================= */
.rooms {
    background: var(--cream);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.room-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}
.room-card .room-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 15px 20px 20px;
}
.room-card .room-card-actions {
    margin-top: auto;
}

.room-card {
    will-change: transform, box-shadow;
}
.room-card {
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease;
}
.room-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px var(--shadow-hover);
}

.room-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}
@media (max-width: 768px) {
    .room-image {
        height: 200px;
    }
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.room-card:hover .room-image img {
    transform: scale(1.1);
}

.room-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.room-info {
    padding: 30px;
}

.room-info h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.room-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.room-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.room-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
}
.room-price .price-value { font-size: 1.3rem; }
.room-price .price-period { font-size: 0.75rem; }

.price-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.price-period {
    color: var(--text-light);
    font-size: 0.9rem;
}

.room-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.room-feature-tag {
    background: var(--light-gray);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.room-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.room-card-actions a,
.room-card-actions button {
    flex: 1;
    min-width: 120px;
}

.btn-book {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    display: block;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: inherit;
}

.btn-book:hover {
    background: var(--primary-light);
}

.btn-book-accent {
    background: var(--accent);
    color: var(--white);
}

.btn-book-accent:hover {
    background: var(--accent-hover, #d97706);
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    border-radius: 30px;
    border: 2px solid var(--light-gray);
    background: transparent;
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
}

.price-table th,
.price-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.price-table th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.price-table tr:hover {
    background: var(--cream);
}

.price-table .price-cell {
    font-weight: 700;
    color: var(--primary);
}

/* Коттедж прайс-лист (доп. блок) */
.price-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
    text-align: center;
}

.price-table-wrapper {
    overflow-x: auto;
}

.table-category {
    background: var(--cream);
    font-weight: 700;
    color: var(--primary-dark);
}

/* =========================================
   УСЛУГИ
   ========================================= */
.services {
    background: var(--white);
}

.service-card {
    background: var(--cream);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease, background 0.3s ease, border-color 0.25s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    background: var(--white);
    border-color: var(--light-gray);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--shadow-hover);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--white);
    font-size: 1.8rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotateY(360deg);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
}

.service-card h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin-bottom: 12px;
    flex-shrink: 0;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    display: flex;
    align-items: center;
}

/* =========================================
   ГАЛЕРЕЯ
   ========================================= */
.gallery {
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    will-change: transform;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Адаптивность галереи */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .gallery-item:nth-child(1) {
        grid-column: span 2 !important;
        grid-row: span 1 !important;
    }
    .gallery-overlay {
        opacity: 1;
        padding: 20px 14px 14px;
    }
    .gallery-overlay h4 {
        font-size: 1rem;
    }
    .gallery-overlay p {
        font-size: 0.78rem;
    }
    .gallery-pagination {
        grid-column: 1 / -1;
        justify-content: center;
        gap: 8px;
    }
    .gallery-page-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr !important;
    }
    .gallery-item:nth-child(1) {
        grid-column: auto !important;
    }
}

/* =========================================
   ОТЗЫВЫ
   ========================================= */
.reviews {
    background: var(--white);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.review-card {
    background: var(--cream);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
}

.review-card::before {
    content: '\201C';
    position: absolute;
    top: 15px;
    left: 25px;
    font-size: 5rem;
    font-family: 'Playfair Display', serif;
    color: var(--accent);
    opacity: 0.15;
    line-height: 1;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px var(--shadow-hover);
}

.review-rating {
    margin-bottom: 15px;
}

.review-rating i {
    color: var(--accent);
    font-size: 1.1rem;
}

.review-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.review-author h4 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 2px;
}

.review-author span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Адаптивность отзывов */
@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .review-card {
        padding: 24px;
    }
    .review-text {
        font-size: 0.9rem;
    }
}

/* =========================================
   КОНТАКТЫ
   ========================================= */
.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--cream);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1.1rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
    color: var(--text-light);
    text-decoration: none;
    line-height: 1.6;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary);
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px var(--shadow);
    height: 100%;
    min-height: 450px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* =========================================
   ENHANCED HERO & SECTIONS v2
   ========================================= */
.hero {
  position: relative;
}

.hero::before {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-light) 70%, var(--accent) 100%);
  opacity: 0.15;
}

.hero-content {
  animation: heroContentIn 1s ease-out;
}

@keyframes heroContentIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  animation: badgeIn 0.8s ease-out 0.2s both;
}

@keyframes badgeIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero h1 {
  animation: heroTitleIn 1s ease-out 0.4s both;
}

@keyframes heroTitleIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
  animation: heroSubIn 1s ease-out 0.6s both;
}

@keyframes heroSubIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-buttons {
  animation: heroBtnsIn 1s ease-out 0.8s both;
}

@keyframes heroBtnsIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  animation: heroScrollIn 1s ease-out 1.2s both;
}

@keyframes heroScrollIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Room cards hover 3D effect */
.room-card {
  perspective: 1000px;
}

.room-card-inner {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
}

.room-card:hover .room-card-inner {
  transform: rotateY(3deg) rotateX(2deg);
}

/* Gallery masonry enhancement */
.gallery-grid {
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: #fff;
  z-index: 2;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s;
}

.gallery-item:hover .gallery-item-caption {
  transform: translateY(0);
  opacity: 1;
}

/* Features grid improvement */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--cream);
  border-radius: 12px;
  transition: var(--transition-smooth);
  font-weight: 500;
}

.feature-item:hover {
  background: var(--white);
  box-shadow: 0 4px 20px var(--shadow);
  transform: translateY(-2px);
}

.feature-item i {
  color: var(--primary);
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

/* Reviews section enhancement */
.reviews-grid {
  gap: 24px;
}

.review-card {
  padding: 30px;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 20px var(--shadow);
  transition: var(--transition-smooth);
  border: 1px solid var(--light-gray);
}

.review-card:hover {
  box-shadow: 0 8px 40px var(--shadow-hover);
  border-color: var(--accent);
}

.review-card .review-stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 15px;
}

.review-card blockquote {
  font-style: italic;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 20px;
}

.review-card .review-author {
  font-weight: 600;
  color: var(--primary-dark);
}

/* Calculator enhancement */
.calc-container {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 20px 60px var(--shadow);
  border: 1px solid var(--light-gray);
  transition: var(--transition-smooth);
}

.calc-container:hover {
  box-shadow: 0 24px 80px var(--shadow-hover);
}
