/* --- v40.4 FINAL: WITH SWIPE TOASTS --- */
:root {
    --bg-deep: #050005;
    --glass-bg: rgba(20, 5, 10, 0.85);
    --glass-border: 1px solid rgba(139, 0, 60, 0.3);
    --accent-bordeaux: #800020;
    --accent-red: #ff003c;
    --accent-violet: #9400d3;
    --accent-gold: #d4af37;
    --gradient-main: linear-gradient(135deg, #800020 0%, #4b0082 100%);
    --text-main: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
    padding-bottom: 120px;
}

/* --- MYSTICAL FRAME --- */
.site-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Z-INDEX HIERARCHY:
       Content: 1
       Age Gate: 9000
       Preloader: 9500
       Modals: 9800
       Frame: 9900 (Overlay effect)
       Toasts: 9950
       Cursor/Tools: 10000
    */
    z-index: 999999;
    pointer-events: none;
    box-sizing: border-box;
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow:
        inset 0 0 40px rgba(128, 0, 32, 0.6),
        inset 0 0 80px rgba(75, 0, 130, 0.5),
        inset 0 0 150px rgba(0, 0, 0, 0.8);
    animation: framePulse 8s infinite alternate;
    /* will-change removed to prevent rendering artifacts on some mobile browsers */
}

/* --- MOBILE OPTIMIZATION: Disable heavy box-shadow animation --- */
@media (max-width: 768px) {
    /* 
       Reverting visual simplifications as per user request (maintaining design beauty over strict perf).
       Original frame animation and pseudo-elements restored.
    */
    /*
    .site-frame {
        animation: none;
        box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.8);
        border-color: rgba(212, 175, 55, 0.3);
    }
    .site-frame::before { display: none; }
    */

    /* Reverting backdrop-filter removal on mobile */
    /*
    .card, .feat-item, .program-card, .bar-list {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(15, 5, 10, 0.92) !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5) !important;
    }
    .card:hover, .program-card:hover {
        transform: none !important;
    }
    */
}

.site-frame::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px dashed rgba(212, 175, 55, 0.2);
    pointer-events: none;
}

@keyframes framePulse {
    0% {
        box-shadow: inset 0 0 40px rgba(128, 0, 32, 0.5), inset 0 0 100px rgba(75, 0, 130, 0.4);
        border-color: rgba(212, 175, 55, 0.3);
    }

    100% {
        box-shadow: inset 0 0 70px rgba(255, 0, 60, 0.3), inset 0 0 120px rgba(148, 0, 211, 0.6);
        border-color: rgba(212, 175, 55, 0.6);
    }
}

/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #050005, #1a0005, #2e0010, #0a0005);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: 999900;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    animation: pulseText 2s infinite;
}

.loader-logo {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-red);
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 0 20px var(--accent-bordeaux);
}

.loader-sub {
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes pulseText {
    0% {
        opacity: 0.6;
        transform: scale(0.98);
    }

    50% {
        opacity: 1;
        transform: scale(1.02);
    }

    100% {
        opacity: 0.6;
        transform: scale(0.98);
    }
}

#embers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

h2 {
    text-align: center;
    font-size: 1.8rem;
    margin: 60px 0 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    background: linear-gradient(to right, #ff003c, #bc13fe);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(128, 0, 32, 0.3);
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '❧ ❖ ☙';
    display: block;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    letter-spacing: 10px;
    color: var(--accent-bordeaux);
    opacity: 0.7;
    font-weight: normal;
}

.hero {
    height: 70vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--accent-bordeaux);
    z-index: 2;
    overflow: hidden;
    background: linear-gradient(-45deg, #050005, #1a0005, #2e0010, #0a0005);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.2rem;
    margin: 0;
    text-transform: uppercase;
    font-weight: 800;
    /* Gradient like Territory */
    background: linear-gradient(to right, #ff003c, #bc13fe);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(128, 0, 32, 0.4);
    line-height: 1.1;
    letter-spacing: 1px;
}

.hero p {
    color: #d0d0d0;
    margin-bottom: 40px;
    font-size: 1rem;
    letter-spacing: 4px;
    margin-top: 15px;
    font-weight: 300;
    text-transform: uppercase;
}

.btn-grad {
    background: var(--gradient-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 18px 50px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 25px rgba(128, 0, 32, 0.6);
    transition: 0.3s;
    display: inline-block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

.btn-grad::before,
.btn-outline::before,
.c-btn::before,
.btn-grad::after,
.btn-outline::after,
.c-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(75, 0, 130, 0.8), transparent);
    transform: skewX(-45deg);
    filter: blur(15px);
    animation: goldShimmer 8s infinite linear;
}

.btn-grad::after,
.btn-outline::after,
.c-btn::after {
    animation-delay: 4s;
}

@keyframes goldShimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.btn-grad:active {
    transform: scale(0.95);
}

.btn-grad:hover {
    box-shadow: 0 0 40px rgba(148, 0, 211, 0.8);
    border-color: var(--accent-red);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-violet);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.8rem;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-outline:hover {
    background: rgba(148, 0, 211, 0.2);
    box-shadow: 0 0 15px rgba(148, 0, 211, 0.3);
}

.glass-panel {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

@media(min-width: 600px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feat-item {
    background: rgba(20, 5, 10, 0.6);
    border: 1px solid rgba(128, 0, 32, 0.4);
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    font-size: 0.75rem;
    color: #eee;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.feat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-violet);
    background: rgba(30, 10, 20, 0.8);
}

.feat-item:active {
    transform: scale(0.95);
}

.feat-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px var(--accent-red));
    margin-bottom: 5px;
}

.programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: stretch;
}

@media (min-width: 768px) {
    .programs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.program-card {
    background: rgba(20, 5, 10, 0.65);
    border: var(--glass-border);
    padding: 25px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: 0.3s;
    /* Flex alignment fix */
    display: flex;
    flex-direction: column;
    /* Removed height: 100% to allow Grid stretch to handle it */
    transform: translateZ(0);
    position: relative;
    z-index: 1;
}

.program-card .btn-grad {
    margin-top: auto;
    align-self: center;
    /* Fix for button not centering in flex column */
    width: auto;
    text-align: center;
}

.program-card:hover {
    border-color: var(--accent-red);
    box-shadow: 0 0 25px rgba(128, 0, 32, 0.3);
}

.program-card h3 {
    margin: 0 0 5px;
    color: var(--accent-red);
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.program-price {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 0 15px var(--accent-violet);
}

.program-desc {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media(min-width: 768px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.card {
    background: rgba(16, 5, 8, 0.7);
    border: 1px solid rgba(128, 0, 32, 0.4);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-red);
    box-shadow: 0 0 20px rgba(128, 0, 32, 0.4);
}

.img-wrap {
    height: 280px;
    background-color: #222;
    background-size: cover;
    background-position: center;
    transition: 0.5s;
}

.card-info {
    padding: 12px;
    text-align: center;
    background: linear-gradient(to top, #050005, rgba(5, 0, 5, 0.9), transparent);
    position: absolute;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

.card h3 {
    margin: 0;
    font-size: 1.2rem;
    text-shadow: 0 0 5px #000;
    color: #fff;
}

.card p {
    margin: 4px 0 0;
    font-size: 0.75rem;
    color: #ddd;
    font-weight: 300;
}

.like-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.like-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    transition: 0.3s;
}

.like-btn.liked {
    background: rgba(255, 0, 60, 0.2);
    border-color: var(--accent-red);
}

.like-btn.liked svg {
    fill: var(--accent-red);
    stroke: var(--accent-red);
    transform: scale(1.1);
}

.status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
    z-index: 10;
}

.status-badge.free {
    background: rgba(0, 50, 20, 0.6);
    border: 1px solid #00ff66;
    color: #ccffdd;
}

.status-badge.busy {
    background: rgba(50, 0, 10, 0.6);
    border: 1px solid var(--accent-red);
    color: #ffcccc;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.free .pulse-dot {
    background: #00ff66;
    animation: pulse-green 1.5s infinite;
    box-shadow: 0 0 8px #00ff66;
}

.busy .pulse-dot {
    background: var(--accent-red);
}

.bar-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 5px;
}

.bar-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #444;
    color: #aaa;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
    font-weight: 600;
}

.bar-tab-btn.active {
    background: var(--accent-bordeaux);
    color: #fff;
    border-color: var(--accent-red);
    box-shadow: 0 0 15px rgba(128, 0, 32, 0.4);
}

.bar-list {
    background: rgba(20, 5, 10, 0.65);
    padding: 25px;
    border-radius: 16px;
    border: var(--glass-border);
    display: none;
    animation: fadeIn 0.4s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bar-list.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bar-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 15px;
    border-bottom: 1px dotted #444;
    padding-bottom: 5px;
}

.bar-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.bar-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.bar-name span {
    display: block;
    font-size: 0.75em;
    color: #888;
    font-weight: normal;
    margin-top: 2px;
}

.bar-price {
    color: var(--accent-violet);
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 0 5px rgba(148, 0, 211, 0.3);
}

.table-wrap {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 12px;
    border: 1px solid var(--accent-bordeaux);
    box-shadow: 0 0 15px rgba(128, 0, 32, 0.2);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
    background: #0a0005;
}

th {
    text-align: left;
    padding: 15px;
    color: var(--accent-red);
    font-size: 0.75rem;
    text-transform: uppercase;
    background: #1a050a;
    border-bottom: 2px solid #330011;
    letter-spacing: 1px;
}

td {
    padding: 15px;
    border-top: 1px solid #330011;
    font-size: 0.9rem;
    color: #ddd;
}

.dot {
    height: 8px;
    width: 8px;
    background: #444;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.dot.green {
    background: #00ff66;
    box-shadow: 0 0 6px #00ff66;
}

.dot.red {
    background: #ff003c;
    box-shadow: 0 0 6px #ff003c;
}

.video-wrapper {
    position: relative;
    height: 60vh;
    max-height: 650px;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 25px;
    border-radius: 20px;
    border: var(--glass-border);
    overflow: hidden;
    background: #000;
    box-shadow: 0 0 30px rgba(128, 0, 32, 0.4);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scroll-gallery {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.scroll-gallery::-webkit-scrollbar {
    display: none;
}

.interior-card {
    width: 280px;
    height: 280px;
    border-radius: 12px;
    border: var(--glass-border);
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    background: #15040a;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interior-card:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(128, 0, 32, 0.6);
}

.interior-card:active {
    transform: scale(0.98);
}

.interior-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.35s ease;
    transform: rotate(0deg);
}

.interior-card img.align-center {
    object-position: center;
}

.interior-card img.rotate-slight {
    transform: rotate(0.5deg);
}

.interior-card img.rotate-slight-left {
    transform: rotate(-0.5deg);
}

.interior-card.loaded img {
    opacity: 1;
}

.interior-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
    animation: shine 1.6s linear infinite;
    opacity: 0.5;
}

.interior-card.loaded::after {
    opacity: 0;
    transition: opacity 0.4s ease;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.faq-item {
    border-bottom: 1px solid #333;
}

.faq-btn {
    width: 100%;
    padding: 18px 0;
    text-align: left;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.faq-btn:hover {
    color: var(--accent-violet);
}

.faq-btn::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-red);
    transition: 0.3s;
}

.faq-btn.open::after {
    transform: rotate(45deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: #aaa;
    line-height: 1.6;
    font-size: 0.9rem;
}

.contact-flex {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.c-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 5px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 0;
    background: rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}

.c-btn:hover {
    transform: translateY(-3px);
}

.c-btn svg {
    width: 26px;
    height: 26px;
    margin-bottom: 8px;
}

.c-btn span {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    white-space: nowrap;
}

.c-btn.tg {
    border-color: var(--accent-red);
}

.c-btn.tg:hover {
    background: rgba(255, 0, 60, 0.2);
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.2);
}

.c-btn.call {
    border-color: var(--accent-bordeaux);
}

.c-btn.call:hover {
    background: rgba(128, 0, 32, 0.3);
    box-shadow: 0 0 15px rgba(128, 0, 32, 0.3);
}

.c-btn.vk {
    border-color: var(--accent-violet);
}

.c-btn.vk:hover {
    background: rgba(148, 0, 211, 0.2);
    box-shadow: 0 0 15px rgba(148, 0, 211, 0.2);
}

.map-frame {
    width: 100%;
    height: 350px;
    border: var(--glass-border);
    border-radius: 16px;
    margin-top: 30px;
    filter: none;
}

.nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: rgba(10, 0, 5, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-radius: 50px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    border: 1px solid rgba(128, 0, 32, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
    z-index: 9999;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.nav.nav-hidden {
    transform: translate(-50%, 140%);
    opacity: 0;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: 0.3s;
    width: 60px;
}

.nav-svg {
    width: 22px;
    height: 22px;
    stroke: #666;
    stroke-width: 1.5;
    fill: none;
    transition: 0.3s;
}

.nav-link.active {
    color: #fff;
    transform: translateY(-2px);
}

.nav-link.active .nav-svg {
    stroke: var(--accent-red);
    filter: drop-shadow(0 0 8px var(--accent-red));
    stroke-width: 2;
}

/* Кнопка наверх */
#to-top-btn {
    position: fixed;
    right: 18px;
    bottom: 100px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(20, 5, 10, 0.9);
    border: 1px solid rgba(128, 0, 32, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10000;
}

#to-top-btn svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-red);
}

#to-top-btn.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #100005;
    width: 100%;
    height: 100%;
    max-width: 450px;
    position: relative;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

@media(min-width: 500px) {
    .modal-content {
        height: auto;
        max-height: 90vh;
        width: 95%;
        border-radius: 20px;
        border: 1px solid var(--accent-bordeaux);
    }
}

.modal-main-img {
    flex-shrink: 0;
    width: 100%;
    height: 50vh;
    min-height: 350px;
    background-color: #000;
    background-size: cover;
    background-position: center top;
    position: relative;
    cursor: zoom-in;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.modal-body {
    flex-grow: 1;
    padding: 25px;
    background: #100005;
    position: relative;
}

.modal-body h2 {
    margin: 0;
    text-align: left;
    font-size: 2rem;
    color: var(--accent-red);
    background: none;
    -webkit-text-fill-color: initial;
    text-shadow: none;
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
}

.modal-stats {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    border: 1px solid rgba(128, 0, 32, 0.3);
    padding: 15px;
    background: rgba(128, 0, 32, 0.05);
    border-radius: 12px;
}

.stat-box {
    text-align: center;
}

.stat-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.5);
}

.stat-lbl {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    margin-top: 5px;
    font-weight: 600;
}

.likes-block {
    margin-bottom: 30px;
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
    border-left: 3px solid var(--accent-violet);
    padding-left: 15px;
    background: rgba(255, 255, 255, 0.02);
    padding: 15px;
    border-radius: 0 12px 12px 0;
}

#feature-modal .modal-content {
    max-height: 60vh;
    width: 90%;
}

#f-icon {
    font-size: 4rem;
    text-align: center;
    margin: 20px 0;
    filter: drop-shadow(0 0 15px var(--accent-red));
}

#f-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
    text-align: center;
}

#fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

#fullscreen-overlay.active {
    display: flex;
    opacity: 1;
}

#fs-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: default;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: fadeInScale 0.3s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- UPDATED TOAST STYLES (Swipe Support) --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000000;
    pointer-events: none;
    /* Let clicks pass through container */
}

.toast {
    background: rgba(20, 5, 15, 0.95);
    border: 1px solid var(--accent-violet);
    border-left: 4px solid var(--accent-red);
    padding: 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.85rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(50px);
    max-width: 300px;

    /* SWIPE REQUIRED PROPERTIES */
    pointer-events: auto;
    /* Enable touch/click */
    touch-action: pan-y;
    /* Allow vertical scroll, disable horizontal browser swipe */
    user-select: none;
    /* Prevent text selection */
    cursor: grab;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast span {
    display: block;
    font-size: 0.7rem;
    color: #888;
    margin-top: 5px;
}

.toast b {
    color: var(--accent-violet);
    font-weight: 700;
}

#age-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050005;
    z-index: 999800;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    opacity: 0;
}

#age-gate.visible {
    opacity: 1;
}

.blur-it {
    filter: blur(20px);
    transition: 1s;
}

/* Lazy loading для карточек */
.card .img-wrap {
    content-visibility: auto;
    contain-intrinsic-size: 280px;
}

.card .img-wrap.lazy {
    background-image: none !important;
    background-color: #1a050a;
}

.card .img-wrap.lazy::after {
    content: '🦊';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.3;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* --- COOKIE CONSENT --- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 0, 5, 0.98);
    border-top: 1px solid var(--accent-bordeaux);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 9999999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.8);
}

.cookie-consent.show {
    transform: translateY(0);
}

@media(min-width: 600px) {
    .cookie-consent {
        flex-direction: row;
        justify-content: center;
        gap: 30px;
    }
}

.cookie-text {
    font-size: 0.8rem;
    color: #ccc;
    text-align: center;
    max-width: 800px;
    line-height: 1.5;
}

.cookie-text a {
    color: var(--accent-red);
    text-decoration: underline;
    transition: 0.3s;
}

.cookie-text a:hover {
    color: #fff;
}

.cookie-btn {
    background: var(--gradient-main);
    border: none;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75rem;
    box-shadow: 0 0 15px rgba(128, 0, 32, 0.4);
    white-space: nowrap;
    letter-spacing: 1px;
    transition: 0.3s;
}

.cookie-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(148, 0, 211, 0.6);
}