:root {
    --primary: #1f2a44;
    --primary-soft: #34495e;
    --accent: #c9a227;
    --accent-soft: #e5c76b;
    --danger: #c0392b;
    --bg: #f4f1ea;
    --card-bg: #ffffff;
    --text: #23262b;
    --text-light: #6b7280;
    --shadow-sm: 0 4px 14px rgba(31, 42, 68, 0.08);
    --shadow-md: 0 12px 30px rgba(31, 42, 68, 0.14);
    --shadow-lg: 0 24px 60px rgba(31, 42, 68, 0.22);
    --radius: 20px;
    --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 10%, rgba(201, 162, 39, 0.08), transparent 40%),
        radial-gradient(circle at 85% 90%, rgba(31, 42, 68, 0.08), transparent 45%),
        var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* ================= HEADER ================= */
.header {
    position: relative;
    padding: 3.5rem 1.5rem 3rem;
    padding-top: calc(3.5rem + env(safe-area-inset-top));
    background: linear-gradient(135deg, #1f2a44 0%, #2c3e63 55%, #1a2237 100%);
    color: #fff;
    overflow: hidden;
    text-align: center;
}

.header-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.25;              /* ← было 1.1, увеличили, чтобы буквы не обрезались */
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    padding-bottom: 0.15em;         /* ← запас снизу, чтобы нижние элементы букв не пропадали */
    overflow: visible;              /* ← на всякий случай, если родитель обрезает */
    word-break: break-word;         /* ← длинные слова переносятся, не выходят за экран */
    text-wrap: balance;             /* ← красивое распределение строк */
}

.header::before, .header::after {
    content: ""; position: absolute; border-radius: 50%;
    filter: blur(60px); opacity: 0.35; pointer-events: none;
}
.header::before { width: 340px; height: 340px; background: var(--accent); top: -160px; left: -80px; }
.header::after  { width: 300px; height: 300px; background: #6ea8ff; bottom: -160px; right: -60px; }

/* .header-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; } */

.header-badge {
    display: inline-block;
    font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
    font-weight: 600; color: var(--accent-soft);
    padding: 0.45rem 1.1rem;
    border: 1px solid rgba(229, 199, 107, 0.4);
    border-radius: 999px; margin-bottom: 1.3rem;
    backdrop-filter: blur(6px);
    background: rgba(229, 199, 107, 0.07);
}
/* .header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.9rem, 5vw, 3.4rem);
    font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 1rem;
} */
.header h1 span {
    background: linear-gradient(90deg, var(--accent-soft), #fff8e1, var(--accent));
    -webkit-background-clip: text; background-clip: text;
    color: transparent; font-style: italic;
}
.header p {
    font-size: clamp(0.88rem, 2.2vw, 1.05rem);
    color: rgba(255, 255, 255, 0.72);
    max-width: 620px; margin: 0 auto; line-height: 1.6;
}
.header-decor { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.header-decor span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0.8; }
.header-decor span:nth-child(2) { opacity: 1; width: 26px; border-radius: 4px; }

/* ================= PAGE ================= */
.page {
    flex: 1; width: 100%;
    display: flex; flex-direction: column;
    align-items: center;
    padding: 2.5rem 1rem 3rem;
}
.slider-viewport {
    width: 100%; max-width: 100%;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1.5rem 0 2rem;
    scrollbar-width: none; -ms-overflow-style: none;
}
.slider-viewport::-webkit-scrollbar { display: none; }

.slider-track {
    display: flex;
    align-items: center;   /* центрируем карточки и стрелки по вертикали */
    gap: 0;
    width: max-content;
    padding: 0 3rem;
}

/* ================= CARD ================= */
.card {
    scroll-snap-align: center;
    flex: 0 0 440px;
    width: 440px;
    max-width: 88vw;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* --- Кастомная полукруглая стрелка между карточками --- */
.card-arrow {
    flex: 0 0 90px;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--primary);
    opacity: 0.85;
    transition: transform var(--transition), opacity var(--transition);
}
.card-arrow svg { width: 100%; height: 100%; overflow: visible; }
.card-arrow path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    stroke-dasharray: 4 5;
    stroke-linecap: round;
    animation: dash 18s linear infinite;
}
.card-arrow::after {
    content: "❯";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: var(--accent);
    font-weight: 700;
}
@keyframes dash { to { stroke-dashoffset: -180; } }
.card-arrow:hover { opacity: 1; transform: scale(1.08); }

/* --- Gallery --- */
.card-gallery {
    position: relative;
    width: 100%; height: 260px;
    overflow: hidden;
    background: #e8e4da;
}
.gallery-track {
    display: flex; height: 100%;
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.gallery-track img {
    width: 100%; height: 100%;
    object-fit: cover; flex: 0 0 100%;
    user-select: none; -webkit-user-drag: none; display: block;
}
.gallery-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(15, 20, 33, 0.55); color: #fff;
    border: none; width: 36px; height: 36px;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    transition: background var(--transition), transform var(--transition);
    backdrop-filter: blur(4px); z-index: 3;
}
.gallery-btn:hover { background: rgba(15, 20, 33, 0.85); transform: translateY(-50%) scale(1.08); }
.gallery-btn.prev { left: 12px; }
.gallery-btn.next { right: 12px; }

.gallery-dots {
    position: absolute; bottom: 12px; left: 50%;
    transform: translateX(-50%); display: flex; gap: 6px; z-index: 3;
}
.gallery-dots .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: background var(--transition), width var(--transition);
}
.gallery-dots .dot.active { background: #fff; width: 20px; border-radius: 4px; }

.card-index {
    position: absolute; top: 14px; left: 14px;
    background: rgba(15, 20, 33, 0.6); color: #fff;
    font-size: 0.75rem; font-weight: 700;
    padding: 0.35rem 0.7rem; border-radius: 999px;
    backdrop-filter: blur(4px); z-index: 3; letter-spacing: 0.05em;
}

/* --- Content --- */
.card-content {
    padding: 1.4rem 1.4rem 1.5rem;
    display: flex; flex-direction: column; gap: 0.8rem; flex: 1;
}
.card-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem; color: var(--primary); line-height: 1.2;
}
.short-desc { font-size: 0.94rem; color: var(--text-light); line-height: 1.6; }

.full-desc {
    font-size: 0.9rem; color: var(--text); line-height: 1.7;
    max-height: 0; opacity: 0; overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.3s;
}
.full-desc.open { max-height: 2000px; opacity: 1; margin-top: 0.2rem; }
.full-desc p { margin-bottom: 0.9rem; }

/* --- Внутренние ссылки в "Подробнее" --- */
.detail-links {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    margin-top: 0.4rem;
}
.detail-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.84rem; font-weight: 600;
    color: var(--primary);
    background: #faf8f2;
    border: 1px solid #eee7d4;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}
.detail-link:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.detail-link .ico { font-size: 1rem; line-height: 1; }

/* --- Отзывы --- */
.reviews-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e4ddc9;
    display: none;
    flex-direction: column;
    gap: 0.8rem;
}
.reviews-section.open { display: flex; animation: fadeIn 0.35s ease; }

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

.reviews-title {
    font-size: 0.9rem; font-weight: 700; color: var(--primary);
    display: flex; align-items: center; gap: 0.4rem;
}
.reviews-title .count {
    background: var(--accent); color: #fff;
    font-size: 0.7rem; padding: 0.1rem 0.5rem; border-radius: 999px;
}

.reviews-list {
    display: flex; flex-direction: column; gap: 0.6rem;
    max-height: 220px; overflow-y: auto;
    padding-right: 4px;
}
.reviews-list::-webkit-scrollbar { width: 6px; }
.reviews-list::-webkit-scrollbar-thumb { background: #d5cdb6; border-radius: 4px; }

.review-item {
    background: #faf8f2;
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
    border-left: 3px solid var(--accent);
}
.review-item .review-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 0.3rem;
}
.review-item .review-name { font-weight: 700; color: var(--primary); }
.review-item .review-date { font-size: 0.72rem; color: var(--text-light); }
.review-item .review-text { color: var(--text); line-height: 1.5; }

.review-form { display: flex; flex-direction: column; gap: 0.5rem; }
.review-form input,
.review-form textarea {
    font-family: inherit; font-size: 0.85rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid #e4ddc9;
    border-radius: 10px;
    outline: none;
    background: #fff;
    transition: border-color var(--transition);
    resize: vertical;
}
.review-form input:focus,
.review-form textarea:focus { border-color: var(--accent); }
.review-form textarea { min-height: 60px; }
.review-form button {
    align-self: flex-start;
    background: var(--primary); color: #fff;
    border: none; padding: 0.55rem 1.2rem;
    border-radius: 999px; font-weight: 600;
    font-size: 0.82rem; cursor: pointer;
    transition: background var(--transition);
}
.review-form button:hover { background: var(--primary-soft); }

.no-reviews {
    font-size: 0.82rem; color: var(--text-light); font-style: italic;
}

/* --- "Были здесь?" --- */
.been-here {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px dashed #e4ddc9;
    display: flex; flex-direction: column; gap: 0.6rem;
}
.been-here-title {
    font-size: 0.9rem; font-weight: 700; color: var(--primary);
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 0.45rem;
    user-select: none;
}
.been-here-title::before { content: "★"; color: var(--accent); }

.rating-widget {
    display: none; flex-direction: column; gap: 0.5rem;
    animation: fadeIn 0.35s ease;
}
.rating-widget.open { display: flex; }

.stars-input { display: flex; gap: 0.3rem; }
.stars-input .star {
    font-size: 1.8rem; color: #ddd6c2; cursor: pointer;
    transition: color 0.15s, transform 0.15s; line-height: 1;
}
.stars-input .star:hover,
.stars-input .star.hovered { color: var(--accent-soft); transform: scale(1.15); }
.stars-input .star.selected { color: var(--accent); }

.rating-hint { font-size: 0.76rem; color: var(--text-light); }
.rating-thanks { font-size: 0.82rem; color: #2e7d32; font-weight: 600; }

/* --- Card actions --- */
.card-actions {
    display: flex; align-items: center; justify-content: space-between;
    gap: 0.75rem; flex-wrap: wrap; margin-top: auto; padding-top: 0.5rem;
}
.read-more-btn {
    background: var(--primary); color: #fff; border: none;
    padding: 0.6rem 1.3rem; border-radius: 999px;
    font-weight: 600; font-size: 0.86rem; cursor: pointer;
    transition: background var(--transition), transform 0.2s;
}
.read-more-btn:hover { background: var(--primary-soft); transform: translateY(-2px); }

.rating-block {
    display: flex; align-items: center; gap: 0.35rem;
    background: #faf8f2; padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #eee7d4;
    font-size: 0.84rem; font-weight: 600; color: var(--primary);
    white-space: nowrap;
}
.rating-block .star-icon { color: var(--accent); font-size: 1rem; line-height: 1; }
.rating-block .rating-value { font-weight: 700; }
.rating-block .rating-count { color: var(--text-light); font-weight: 500; font-size: 0.76rem; }

/* ================= NAV ================= */
.slider-nav {
    display: flex; align-items: center; gap: 1.2rem;
    width: 100%; max-width: 720px; padding: 0 1rem;
}
.nav-btn {
    flex-shrink: 0; width: 56px; height: 56px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent; color: var(--primary);
    font-size: 1.2rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition);
    position: relative;
}
.nav-btn::after {
    content: ""; position: absolute; inset: -6px;
    border-radius: 50%;
    border: 1px dashed rgba(31, 42, 68, 0.25);
    transition: transform var(--transition);
}
.nav-btn:hover { background: var(--primary); color: #fff; transform: scale(1.06); }
.nav-btn:hover::after { transform: rotate(45deg); }

.progress {
    flex: 1; height: 4px; background: #e4ddc9;
    border-radius: 4px; overflow: hidden;
}
.progress-bar {
    height: 100%; width: 10%;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* ================= FOOTER ================= */
.footer {
    margin-top: auto;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #1a2237 0%, #1f2a44 100%);
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    border-top: 3px solid var(--accent);
}

.footer-inner {
    max-width: 720px;
    margin: 0 auto;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--accent-soft);
    margin-bottom: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-text {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.4rem;
}

.footer-note {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
}

/* ================= ATTRACTION PAGE ================= */
.attraction-page {
    background: var(--bg);
}

.attraction-header {
    padding: 2rem 1.5rem 1.6rem;
    background: linear-gradient(135deg, #1f2a44 0%, #2c3e63 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.attraction-header::before {
    content: ""; position: absolute;
    width: 260px; height: 260px;
    background: var(--accent);
    filter: blur(80px); opacity: 0.28;
    top: -120px; left: -60px;
    border-radius: 50%;
    pointer-events: none;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: color var(--transition), transform var(--transition);
    position: relative;
    z-index: 2;
}
.back-link:hover { color: var(--accent-soft); transform: translateX(-3px); }
.back-arrow { font-size: 1.1rem; }

.attraction-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    max-width: 900px;
    margin: 0 auto 0.9rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.attraction-rating {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-soft);
    position: relative;
    z-index: 2;
}
.attraction-rating .rating-value { color: #fff; }
.attraction-rating .rating-count { color: rgba(255, 255, 255, 0.55); font-weight: 500; font-size: 0.85rem; }

/* --- Основной контент --- */
.attraction-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
    width: 100%;
}

.attraction-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2.2rem;
    align-items: start;
    margin-bottom: 3.5rem;
}

/* --- Галерея --- */
.attraction-gallery-col { position: sticky; top: 1.5rem; }

/* .attraction-gallery-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
    background: #e8e4da;
    box-shadow: var(--shadow-md);
    margin-bottom: 0.9rem;
} */

.attraction-gallery-main {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 280px;     /* ← ключевая строка для старых iOS */
    border-radius: var(--radius);
    overflow: hidden;
    background: #e8e4da;
    box-shadow: var(--shadow-md);
    margin-bottom: 0.9rem;
}

@media (max-width: 600px) {
    .attraction-gallery-main {
        min-height: 220px;
    }
}

.attraction-gallery-main img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.attraction-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 0.6rem;
}
.attraction-thumbs img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.65;
    border: 2px solid transparent;
    transition: opacity var(--transition), border-color var(--transition), transform var(--transition);
}
.attraction-thumbs img:hover { opacity: 1; transform: translateY(-2px); }
.attraction-thumbs img.active {
    opacity: 1;
    border-color: var(--accent);
}

/* --- Описание --- */
.attraction-info-col { display: flex; flex-direction: column; gap: 1.3rem; }

.attraction-address {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex; align-items: center; gap: 0.5rem;
}
.attraction-address::before { content: "📍"; font-size: 1rem; }

.attraction-fulltext {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text);
    background: #fff;
    padding: 1.6rem 1.7rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent);
}

.attraction-route-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 1rem 1.8rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    align-self: flex-start;
    transition: background var(--transition), transform var(--transition);
    box-shadow: var(--shadow-sm);
}
.attraction-route-btn:hover {
    background: var(--primary-soft);
    transform: translateY(-2px);
}
.attraction-route-btn .ico { font-size: 1.15rem; }

/* --- Комментарии --- */
.comments-section {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.8rem;
    box-shadow: var(--shadow-md);
}

.comments-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    color: var(--primary);
    margin-bottom: 1.2rem;
    display: flex; align-items: center; gap: 0.6rem;
}
.comments-title .count {
    background: var(--accent); color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem; font-weight: 700;
    padding: 0.15rem 0.65rem; border-radius: 999px;
}

.comment-form { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.8rem; }
.comment-form input,
.comment-form textarea {
    font-family: inherit;
    font-size: 0.92rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e4ddc9;
    border-radius: 12px;
    background: #faf8f2;
    outline: none;
    transition: border-color var(--transition), background var(--transition);
    resize: vertical;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); background: #fff; }
.comment-form textarea { min-height: 90px; }
.comment-form button {
    align-self: flex-start;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.comment-form button:hover { background: #b8901d; transform: translateY(-2px); }

.comments-list {
    display: flex; flex-direction: column; gap: 0.9rem;
    max-height: 600px; overflow-y: auto;
    padding-right: 6px;
}
.comments-list::-webkit-scrollbar { width: 6px; }
.comments-list::-webkit-scrollbar-thumb { background: #d5cdb6; border-radius: 4px; }

.comment-item {
    background: #faf8f2;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    border-left: 4px solid var(--accent);
}
.comment-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 0.4rem;
    gap: 0.8rem; flex-wrap: wrap;
}
.comment-name { font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.comment-date { font-size: 0.76rem; color: var(--text-light); }
.comment-text { font-size: 0.92rem; line-height: 1.6; color: var(--text); }

.no-comments {
    font-size: 0.9rem; color: var(--text-light);
    font-style: italic; text-align: center; padding: 1rem 0;
}

/* ================= ВИДЕО В ГАЛЕРЕЕ ================= */

/* Видео в галерее карточки (главная) */
.gallery-track video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: 0 0 100%;
    display: block;
    background: #000;
}

/* Видео в главном окне страницы достопримечательности */
.attraction-gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

/* Превьюшки на странице достопримечательности — общие стили */
.attraction-thumbs .thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    opacity: 0.65;
    border: 2px solid transparent;
    transition: opacity var(--transition), border-color var(--transition), transform var(--transition);
    display: block;
}
.attraction-thumbs .thumb:hover { opacity: 1; transform: translateY(-2px); }
.attraction-thumbs .thumb.active {
    opacity: 1;
    border-color: var(--accent);
}

/* Превьюшка-видео */
.attraction-thumbs .thumb-video {
    position: relative;
    overflow: hidden;
}
.attraction-thumbs .thumb-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
.attraction-thumbs .thumb-video .play-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    pointer-events: none;
}

/* --- Адаптив --- */
@media (max-width: 900px) {
    .attraction-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .attraction-gallery-col { position: static; }
}

@media (max-width: 600px) {
    .attraction-main { padding: 1.6rem 1rem 2rem; }
    .comments-section { padding: 1.2rem; }
    .attraction-fulltext { padding: 1.2rem; font-size: 0.95rem; }
    .attraction-route-btn { width: 100%; justify-content: center; }
    .attraction-thumbs { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .header { padding: 2.5rem 1rem 2.2rem; }
    .card-gallery { height: 210px; }
    .card-content { padding: 1.1rem; }
    .card-content h2 { font-size: 1.3rem; }
    .card { flex: 0 0 88vw; width: 88vw; }
    .card-arrow { flex: 0 0 60px; width: 60px; height: 60px; }
    .slider-track { padding: 0 1.5rem; }
    .slider-nav { max-width: 100%; gap: 0.8rem; }
    .nav-btn { width: 46px; height: 46px; font-size: 1rem; }
}

@media (max-width: 480px) {
    .card-gallery { height: 180px; }
    .card { flex: 0 0 92vw; width: 92vw; }
    .short-desc { font-size: 0.88rem; }
    .full-desc { font-size: 0.85rem; }
    .rating-block { font-size: 0.76rem; padding: 0.35rem 0.65rem; }
    .read-more-btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
    .card-arrow { flex: 0 0 46px; width: 46px; height: 46px; }
    .card-arrow::after { font-size: 1rem; right: 3px; }
    .detail-link { font-size: 0.78rem; padding: 0.4rem 0.7rem; }
}

@media (max-width: 768px) {
    .header {
        padding: 2rem 1rem 2rem;
        padding-top: calc(2rem + env(safe-area-inset-top));
    }

    .header-badge {
        font-size: 0.62rem;         /* ← меньше, чтобы не переносился на 3 строки */
        letter-spacing: 0.18em;
        padding: 0.4rem 0.9rem;
        margin-bottom: 1rem;
    }

    .header h1 {
        font-size: clamp(1.5rem, 7vw, 2rem);
        line-height: 1.3;
        margin-bottom: 0.8rem;
        padding-bottom: 0.2em;
    }

    .header p {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }

    .header-decor {
        margin-top: 1.1rem;
    }
}

@media (max-width: 380px) {
    .header h1 {
        font-size: 1.4rem;
    }

    .header-badge {
        font-size: 0.58rem;
        letter-spacing: 0.14em;
    }
}