* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fefaf5;
    color: #1e2a2b;
    line-height: 1.5;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== НАВИГАЦИЯ ========== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e6ddd0;
    padding: 16px 0;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.logo h1 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #b45f2b;
}

.logo p {
    font-size: 0.8rem;
    color: #6b5b4a;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    text-decoration: none;
    color: #3e2c21;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}

.nav-links a:hover {
    color: #b45f2b;
}

.admin-link {
    background: #1e2a2b;
    color: white !important;
    padding: 8px 20px;
    border-radius: 40px;
}

.admin-link:hover {
    background: #b45f2b;
}

/* ========== ГЕРОЙ СЕКЦИЯ ========== */
.hero {
    background: linear-gradient(120deg, #f2e8db, #fff2e4);
    padding: 60px 0 70px;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.hero-text {
    flex: 1.2;
}

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #2c4b3e;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin: 20px 0;
}

.hero-badge {
    background: #2c4b3e;
    color: white;
    padding: 8px 22px;
    border-radius: 40px;
    display: inline-block;
    margin-bottom: 28px;
}

.hero-features {
    list-style: none;
    margin-top: 30px;
}

.hero-features li {
    margin: 14px 0;
    font-size: 1.05rem;
}

.hero-features i {
    color: #b45f2b;
    margin-right: 12px;
}

.hero-stats {
    flex: 0.7;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    padding: 36px;
    text-align: center;
}

.hero-stats i {
    font-size: 3rem;
    color: #b45f2b;
}

.hero-stats .quote {
    font-style: italic;
    margin: 16px 0;
    color: #5a4a38;
}

/* ========== СЕКЦИИ ========== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 50px 0 30px;
    border-left: 5px solid #b45f2b;
    padding-left: 20px;
}

/* ========== ИСТОРИЯ ========== */
.history-section {
    padding: 40px 0;
    background: #f5efe8;
}

.history-card {
    background: white;
    border-radius: 32px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.history-card i {
    font-size: 3rem;
    color: #b45f2b;
    margin-bottom: 20px;
}

.history-card h3 {
    font-size: 1.5rem;
    color: #2c4b3e;
    margin-bottom: 16px;
}

.history-card p {
    color: #5a4a38;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* ========== НОМЕРА ========== */
.rooms-section {
    background: #fefaf5;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 35px;
    margin-bottom: 50px;
}

.room-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.room-img {
    height: 180px;
    background: linear-gradient(135deg, #d4c5b0, #e8d9c6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #b45f2b;
}

.room-info {
    padding: 24px;
}

.room-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c4b3e;
}

.room-desc {
    color: #6b5b4a;
    margin-bottom: 12px;
}

.room-details {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    font-size: 0.85rem;
    color: #8b7b68;
}

.room-details i {
    width: 20px;
    color: #b45f2b;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #b45f2b;
    margin: 15px 0;
}

/* Календарь */
.calendar-container {
    margin: 15px 0;
}

.date-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2d6c8;
    border-radius: 16px;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    background: white;
    transition: border 0.2s;
}

.date-input:hover {
    border-color: #b45f2b;
}

/* Статус занятости */
.booked-warning {
    color: #c0392b;
    background: #fdf0ed;
    padding: 5px 12px;
    border-radius: 20px;
    display: inline-block;
    font-size: 0.8rem;
}

/* ========== ТУРЫ ========== */
.tours-section {
    background: #fefaf5;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.tour-card {
    background: white;
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
}

.tour-card:hover {
    transform: translateY(-5px);
}

.tour-card i {
    font-size: 2.5rem;
    color: #b45f2b;
    margin-bottom: 16px;
}

.tour-card h3 {
    margin-bottom: 10px;
    color: #2c4b3e;
}

.tour-duration {
    margin: 10px 0;
    font-size: 0.85rem;
    color: #6b5b4a;
}

.tour-duration i {
    font-size: 0.8rem;
    margin-right: 5px;
}

.tour-price {
    display: inline-block;
    margin-top: 12px;
    font-weight: 700;
    color: #b45f2b;
    font-size: 1.2rem;
}

.btn-book-tour,
.tour-date-input {
    margin-top: 15px;
    padding: 10px 20px;
    width: 100%;
}

.btn-book-tour:hover {
    background: #2c4b3e;
}

/* ========== КОНТАКТЫ ========== */
.contacts-section {
    background: #fefaf5;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 30px 0 50px;
}

.contact-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    text-align: center;
    border: 1px solid #e6ddd0;
    transition: transform 0.2s;
}

.contact-card:hover {
    transform: translateY(-3px);
}

.contact-card i {
    font-size: 2rem;
    color: #b45f2b;
    margin-bottom: 16px;
}

.contact-card h3 {
    margin-bottom: 12px;
    color: #2c4b3e;
}

/* ========== ФОРМА БРОНИРОВАНИЯ ========== */
.booking-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.booking-form-card {
    background: white;
    border-radius: 32px;
    max-width: 500px;
    width: 90%;
    padding: 32px;
    position: relative;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-form {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.close-form:hover {
    color: #b45f2b;
}

.booking-summary {
    background: #2c4b3e;
    color: white;
    padding: 16px;
    border-radius: 20px;
    margin: 20px 0;
}

.booking-summary p {
    margin: 8px 0;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #3e2c21;
}

.form-group label i {
    color: #b45f2b;
    width: 24px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2d6c8;
    border-radius: 16px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b45f2b;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #b45f2b;
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-submit:hover {
    background: #2c4b3e;
}

/* ========== ФУТЕР ========== */
footer {
    background: #1e2a2b;
    color: #c5bbb0;
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
}

.footer-quote {
    margin-top: 12px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ========== АДАПТИВ ========== */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 16px;
    }

    .nav-links {
        gap: 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .hero-stats {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.6rem;
    }

    .room-name {
        font-size: 1.2rem;
    }

    .price {
        font-size: 1.2rem;
    }
}


.feature-list,
.tour-highlights {
    text-align: left;
    margin: 12px 0 0;
    padding-left: 18px;
    color: #6b5b4a;
    font-size: 0.85rem;
    line-height: 1.5;
}

.tour-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tour-calendar-container {
    margin-top: 18px;
}

.tour-calendar-wrapper {
    margin-top: auto;
}

.tour-date-input {
    background: #b45f2b;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
}

.tour-date-input::placeholder {
    color: white;
    opacity: 1;
}

.tour-date-input:hover {
    background: #2c4b3e;
    border: none;
}

/* Ссылки и карта в контактах */
.contact-card a {
    color: #2c4b3e;
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
}

.contact-card a:hover {
    color: #b45f2b;
    text-decoration: underline;
}

.map-wrapper {
    margin-top: -20px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e6ddd0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    background: white;
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
}

@media (max-width: 768px) {
    .map-wrapper iframe {
        height: 300px;
    }
}


.image-path-caption {
    position: absolute;
    left: 12px;
    right: auto;
    bottom: 12px;
    z-index: 4;
    max-width: calc(100% - 24px);
    box-sizing: border-box;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(8px);
    pointer-events: none;
}

/* Room photo gallery */
.room-gallery {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #d4c5b0, #e8d9c6);
    overflow: hidden;
}

.room-gallery-track,
.room-slide {
    width: 100%;
    height: 100%;
}

.room-slide {
    display: none;
    position: relative;
}

.room-slide.active {
    display: block;
}

.room-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.room-photo-placeholder {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #9a5b35;
    text-align: center;
    padding: 18px;
}

.room-photo-placeholder i {
    font-size: 2.4rem;
}

.room-photo-placeholder span {
    font-weight: 700;
    font-size: 1.05rem;
}

.room-photo-placeholder small {
    font-size: 0.75rem;
    color: #7b6a5f;
    word-break: break-all;
}

.room-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    color: #5d4037;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s, background 0.2s;
    z-index: 2;
}

.room-gallery-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}

.room-gallery-btn.prev {
    left: 12px;
}

.room-gallery-btn.next {
    right: 12px;
}

.room-gallery-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 7px;
    z-index: 2;
}

.room-gallery-dot {
    width: 9px;
    height: 9px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.68);
    cursor: pointer;
    padding: 0;
}

.room-gallery-dot.active {
    background: #b45f2b;
    transform: scale(1.25);
}

@media (max-width: 768px) {
    .room-gallery {
        height: 190px;
    }

    .room-gallery-btn {
        width: 34px;
        height: 34px;
    }
}


/* Tour photos */
.tour-photo {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #d4c5b0, #eadfce);
    overflow: hidden;
}

.tour-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tour-photo-placeholder {
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    color: #9a5b35;
    text-align: center;
    padding: 18px;
}

.tour-photo-placeholder i { font-size: 2.3rem; }
.tour-photo-placeholder span { font-weight: 800; }
.tour-photo-placeholder small { font-size: .72rem; word-break: break-all; }

@media (max-width: 900px) {
    .nav-flex { flex-direction: column; gap: 14px; align-items: stretch; }
    .nav-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .nav-links a { text-align: center; padding: 10px 8px; border-radius: 14px; background: rgba(255,255,255,.55); }
    .hero-grid, .contacts-grid, .rooms-grid, .tours-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: clamp(2rem, 10vw, 3.2rem); }
    .hero { padding-top: 44px; }
    .booking-form-card { width: calc(100vw - 24px); max-height: 92vh; overflow-y: auto; padding: 22px; }
    .date-input { width: 100%; }
}

@media (max-width: 520px) {
    .container { padding-left: 14px; padding-right: 14px; }
    .logo h1 { font-size: 1.35rem; }
    .logo p { font-size: .78rem; }
    .nav-links { grid-template-columns: 1fr; }
    .section-title { font-size: 1.8rem; }
    .room-card, .tour-card, .history-card, .contact-card { border-radius: 20px; }
    .room-gallery, .tour-photo { height: 180px; }
    .room-info, .tour-card-content { padding: 20px; }
    .room-details { flex-direction: column; align-items: flex-start; gap: 8px; }
    .booking-summary { padding: 14px; }
    .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
}

/* Видео в галереях */
.room-slide video,
.tour-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    display: block;
}
.tour-video-box {
    margin: 10px 12px 12px;
    background: rgba(255,255,255,.92);
    border-radius: 14px;
    padding: 8px 10px;
}
.tour-video-box summary {
    cursor: pointer;
    font-weight: 700;
    color: #2c4b3e;
}
.tour-video-box video {
    height: 180px;
    margin-top: 8px;
    border-radius: 12px;
    background: #eee;
}
.tour-video-box small { display: block; color: #8b7b68; margin-top: 6px; }
@media (max-width: 640px) {
    .rooms-grid, .tours-grid { grid-template-columns: 1fr; }
    .container { padding: 0 14px; }
    .hero-text h1 { font-size: 2.1rem; }
    .nav-links { gap: 10px; font-size: .9rem; }
}

/* Общая галерея фото и видео под номерами */
.media-section {
    padding: 70px 0;
    background: #fffaf4;
}

.media-subtitle {
    max-width: 760px;
    margin: -18px auto 28px;
    text-align: center;
    color: #6b625a;
    line-height: 1.6;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.media-item {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, #f4e4d4, #ead0bb);
    box-shadow: 0 10px 28px rgba(44, 75, 62, 0.12);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    display: block;
}

.media-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px;
    text-align: center;
    color: #2c4b3e;
}

.media-placeholder i {
    font-size: 34px;
    color: #b45f2b;
}

.media-placeholder span {
    font-weight: 800;
}

.media-placeholder small {
    font-size: 11px;
    word-break: break-word;
    opacity: 0.78;
}

@media (max-width: 640px) {
    .media-section { padding: 44px 0; }
    .media-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .media-item, .media-item img, .media-item video { min-height: 145px; border-radius: 16px; }
    .media-subtitle { font-size: 14px; margin-top: -10px; }
}

.media-caption {
    position: absolute;
    left: 10px;
    right: auto;
    bottom: 10px;
    max-width: calc(100% - 20px);
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,0.88);
    color: #2c4b3e;
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Поиск свободных номеров */
.availability-box {
    background: #fff;
    border-radius: 24px;
    padding: 24px;
    margin: 0 auto 28px;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    display: grid;
    gap: 16px;
}
.availability-box h3 { margin-bottom: 6px; color: #2b2b2b; }
.availability-box p { color: #6b7280; }
.availability-controls {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
}
.availability-controls input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    font-size: 16px;
}
.availability-controls button,
.available-result button {
    border: 0;
    border-radius: 14px;
    padding: 14px 18px;
    background: #8b4513;
    color: white;
    font-weight: 700;
    cursor: pointer;
}
.availability-controls .btn-light {
    background: #f3f4f6;
    color: #333;
}
.available-result {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: #374151;
}
.available-result button { padding: 10px 14px; }

/* Большая галерея ниже туров */
.media-slider {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 20px 45px rgba(0,0,0,.16);
}
.media-slider-window { overflow: hidden; }
.media-slider-track {
    display: flex;
    transition: transform .55s ease;
}
.media-slide {
    min-width: 100%;
    height: 520px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
}
.media-slide img,
.media-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.media-slide video { background: #000; }
.media-caption,
.media-help {
    position: absolute;
    left: 18px;
    right: auto;
    bottom: 18px;
    max-width: calc(100% - 36px);
    box-sizing: border-box;
    color: #fff;
    background: rgba(0,0,0,.5);
    padding: 10px 14px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}
.media-help {
    left: 50%;
    transform: translateX(-50%);
    bottom: 18px;
    z-index: 3;
    white-space: nowrap;
}
.media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.9);
    cursor: pointer;
    z-index: 4;
}
.media-nav.prev { left: 16px; }
.media-nav.next { right: 16px; }
.media-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.media-fullscreen img { max-width: 96vw; max-height: 92vh; object-fit: contain; }
.media-fullscreen button {
    position: absolute;
    top: 18px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0;
    font-size: 28px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .availability-controls { grid-template-columns: 1fr; }
    .media-slide { height: 340px; }
    .media-help { position: static; transform: none; margin: 12px; text-align: center; white-space: normal; }
}

.hero-carousel-wrapper{width:100%;max-width:560px;margin:0 auto}.hero-carousel-title{text-align:center;margin-bottom:18px}.hero-gallery{height:420px;border-radius:28px;overflow:hidden;box-shadow:0 20px 45px rgba(0,0,0,.22)}.hero-gallery img{width:100%;height:100%;object-fit:cover}@media(max-width:768px){.hero-gallery{height:300px}}

/* ========== БУТЫЛКА ВИНА ПРИ СКРОЛЛЕ ========== */
:root {
    --wine-level: 100%;
}

.scroll-wine {
    position: fixed;
    right: clamp(14px, 2.4vw, 34px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 25;
    pointer-events: none;
    filter: drop-shadow(0 18px 28px rgba(30, 42, 43, 0.22));
}

.scroll-wine__bottle {
    width: clamp(42px, 4.2vw, 68px);
    height: clamp(178px, 18vw, 280px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scroll-wine__neck {
    width: 36%;
    height: 26%;
    border: 2px solid rgba(44, 75, 62, 0.62);
    border-bottom: 0;
    border-radius: 14px 14px 5px 5px;
    background: linear-gradient(90deg, rgba(255,255,255,.34), rgba(44,75,62,.2));
    backdrop-filter: blur(2px);
}

.scroll-wine__body {
    position: relative;
    width: 100%;
    flex: 1;
    overflow: hidden;
    border: 2px solid rgba(44, 75, 62, 0.62);
    border-radius: 28px 28px 18px 18px;
    background: linear-gradient(90deg, rgba(255,255,255,.42), rgba(44,75,62,.18));
    backdrop-filter: blur(2px);
}

.scroll-wine__liquid {
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: 2px;
    height: var(--wine-level);
    max-height: calc(100% - 4px);
    min-height: 0;
    border-radius: 22px 22px 12px 12px;
    background:
        radial-gradient(circle at 32% 16%, rgba(255, 255, 255, .22), transparent 24%),
        linear-gradient(180deg, #a83a42 0%, #762130 56%, #4a101b 100%);
    transition: height .12s linear;
}

.scroll-wine__liquid::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -7px;
    height: 14px;
    border-radius: 50%;
    background: rgba(168, 58, 66, .9);
}

.scroll-wine__shine {
    position: absolute;
    top: 12%;
    left: 22%;
    width: 12%;
    height: 68%;
    z-index: 2;
    border-radius: 99px;
    background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,0));
    opacity: .48;
}

@media (max-width: 768px) {
    .scroll-wine {
        right: 10px;
        opacity: .72;
        transform: translateY(-50%) scale(.82);
        transform-origin: right center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-wine__liquid {
        transition: none;
    }
}

/* Mobile header fix: make navbar compact instead of taking half the screen */
@media (max-width: 768px) {
    .navbar {
        padding: 8px 0;
    }

    .navbar .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .nav-flex {
        flex-direction: row;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .logo {
        flex: 0 0 auto;
        min-width: 0;
    }

    .logo h1 {
        font-size: 1rem;
        line-height: 1.1;
        white-space: nowrap;
    }

    .logo p {
        display: none;
    }

    .nav-links {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        flex: 0 0 auto;
        padding: 7px 10px;
        font-size: 0.78rem;
        line-height: 1;
        border-radius: 999px;
        background: rgba(255,255,255,.65);
        white-space: nowrap;
        text-align: center;
    }

    .admin-link {
        padding: 7px 10px;
    }

    .hero {
        padding-top: 24px;
    }
}

@media (max-width: 420px) {
    .logo h1 {
        font-size: .92rem;
    }

    .nav-links a {
        font-size: .74rem;
        padding: 7px 9px;
    }
}
