/* ==========================================================================
   PURE LITE - MODERN STYLE GUIDE & DESIGN SYSTEM (RUSSIAN EDITION)
   ========================================================================== */

:root {
    --bg-primary: #000000;
    --bg-secondary: #080808;
    --bg-modal: rgba(10, 10, 10, 0.85);
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #606060;
    
    --accent-gold: #ffffff; /* Outlined white matching Central Title */
    --accent-gold-glow: #e5a93b; /* Accent highlight */
    --accent-gold-rgb: 255, 255, 255;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.25);
    
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    scrollbar-width: thin;
    scrollbar-color: var(--border-hover) var(--bg-primary);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    padding-left: 70px; /* Offset for full height fixed vertical marquee sidebar */
}

/* Custom Scrollbar */
body::-webkit-scrollbar {
    width: 6px;
}
body::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
    transition: var(--transition-fast);
}
body::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* Ambient Background Blobs (Liquid-Glass) */
.ambient-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
    background: var(--bg-primary);
}

.blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.12;
    transition: transform 2.5s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.blob-1 {
    top: 10%;
    left: 15%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #e5a93b 0%, rgba(0,0,0,0) 70%);
    animation: blob-float-1 30s ease-in-out infinite alternate;
}

.blob-2 {
    bottom: 15%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, rgba(0,0,0,0) 70%);
    animation: blob-float-2 35s ease-in-out infinite alternate;
}

.blob-3 {
    top: 45%;
    left: 50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #e5a93b 0%, rgba(0,0,0,0) 70%);
    opacity: 0.08;
    animation: blob-float-3 28s ease-in-out infinite alternate;
}

@keyframes blob-float-1 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(100px, 80px) scale(1.1); }
    100% { transform: translate(-50px, 150px) scale(0.95); }
}

@keyframes blob-float-2 {
    0% { transform: translate(0, 0) scale(1.05); }
    50% { transform: translate(-120px, -90px) scale(0.9); }
    100% { transform: translate(60px, -140px) scale(1.15); }
}

@keyframes blob-float-3 {
    0% { transform: translate(0, 0) scale(0.9); }
    50% { transform: translate(-60px, 120px) scale(1.1); }
    100% { transform: translate(80px, -60px) scale(0.95); }
}



/* ==========================================================================
   NAVIGATION (FLAT HEADER - AS IN Mockup Photo)
   ========================================================================== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    padding: 0 4%;
    position: relative;
    z-index: 100;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.logo-link {
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: lowercase;
    letter-spacing: -1.5px;
    transition: var(--transition-smooth);
    color: var(--text-primary);
    animation: logoPulseGlow 3.5s infinite ease-in-out;
}

.logo-text:hover {
    color: var(--text-primary);
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.85), 0 0 45px rgba(255, 255, 255, 0.4);
    opacity: 1;
    animation: none; /* Pause pulse animation during direct hover */
}

@keyframes logoPulseGlow {
    0% {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.25), 0 0 15px rgba(255, 255, 255, 0.1);
        opacity: 0.85;
    }
    50% {
        text-shadow: 0 0 22px rgba(255, 255, 255, 0.8), 0 0 35px rgba(255, 255, 255, 0.45), 0 0 50px rgba(255, 255, 255, 0.2);
        opacity: 1;
    }
    100% {
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.25), 0 0 15px rgba(255, 255, 255, 0.1);
        opacity: 0.85;
    }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-item {
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    position: relative;
    padding: 6px 0;
    transition: var(--transition-fast);
    letter-spacing: 0.5px;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--text-primary);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-item:hover {
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-item:hover::after,
.nav-item.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-item.active {
    color: var(--text-primary);
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

/* Contact Container right side */
.contact-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 30px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.contact-btn svg {
    width: 15px;
    height: 15px;
    transition: var(--transition-fast);
}

.contact-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.telegram-btn:hover {
    color: #0088cc;
    border-color: rgba(0, 136, 204, 0.3);
    box-shadow: 0 5px 15px rgba(0, 136, 204, 0.15);
}

.phone-btn:hover {
    color: #4cd964;
    border-color: rgba(76, 217, 100, 0.3);
    box-shadow: 0 5px 15px rgba(76, 217, 100, 0.15);
}

/* ==========================================================================
   MARQUEES
   ========================================================================== */

.marquee-horizontal {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    background-color: var(--bg-primary);
    user-select: none;
}

.marquee-track-h {
    display: inline-block;
    animation: marquee-h 40s linear infinite;
}

.marquee-track-h span {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-secondary);
    display: inline-block;
}

@keyframes marquee-h {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.sidebar-left {
    width: 70px;
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    background-color: var(--bg-primary);
    z-index: 1500;
}

.marquee-vertical {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    user-select: none;
}

.marquee-track-v {
    display: flex;
    flex-direction: column;
    white-space: nowrap;
    animation: marquee-v 45s linear infinite;
}

.marquee-track-v span {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-muted);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    padding: 3rem 0;
}

@keyframes marquee-v {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(0, -50%, 0); }
}

/* ==========================================================================
   MAIN GRID Layout
   ========================================================================== */

.main-layout {
    display: flex;
    flex: 1;
    position: relative;
}

.content-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem 4% 1rem 4%;
}

/* Hide all main columns and scroll hints on the main page (photos only exist on About page) */
.content-grid .col-left,
.content-grid .col-right,
.content-grid .center-beer-wrapper,
.content-grid .scroll-hint-container {
    display: none !important;
}

.grid-col {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    width: 100%;
}

/* Image wrappers styling */
.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    transition: var(--transition-smooth);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(1);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.image-wrapper:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.02);
}

.image-wrapper:hover img {
    transform: scale(1.04);
    filter: grayscale(0); /* Reveal clean image on hover */
}

/* Badges inside image wrapper */
.glass-badge-top {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 15;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-transform: uppercase;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.glass-badge-top.gold {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

/* LEFT COLUMN */
.col-left {
    padding-top: 1rem;
}

.vertical-aspect {
    height: auto;
}

.description-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-weight: 300;
    font-family: var(--font-body);
}

.description-text p {
    white-space: pre-line;
}

.text-left {
    text-align: left;
    max-width: 90%;
    color: var(--text-primary);
}

/* CENTER COLUMN */
.col-center {
    align-items: center;
    text-align: center;
}

.hero-titles {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 800;
    text-transform: lowercase;
    line-height: 0.85;
    letter-spacing: -3px;
    margin: 0;
    transition: var(--transition-smooth);
    cursor: default;
}

.text-stroke {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text-primary);
}

.hero-title:hover {
    color: var(--text-primary);
    -webkit-text-stroke-color: transparent;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

/* Make the first (upper) hero title solid white eternally */
.hero-titles .hero-title:first-child {
    color: var(--text-primary);
    -webkit-text-stroke-color: transparent;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.25);
}

.hero-titles .hero-title:first-child:hover {
    text-shadow: 0 0 35px rgba(255, 255, 255, 0.45);
}

.center-divider {
    border: none;
    border-top: 1.5px solid var(--text-primary);
    width: 60px;
    margin: 1rem auto 2.5rem auto;
}

.center-beer-wrapper {
    width: 100%;
    max-width: 440px;
    position: relative;
}

/* Scroll Hint Style */
.scroll-hint-container {
    margin-top: 1.8rem;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.scroll-hint {
    font-size: 1rem;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 1;
    text-align: center;
    border: 1px dashed rgba(255,255,255,0.15);
    padding: 6px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
}

/* RIGHT COLUMN */
.col-right {
    padding-top: 1rem;
    justify-content: space-between;
    height: 100%;
}

.right-top-block {
    display: flex;
    gap: 2.2rem;
    align-items: flex-start;
}

.vertical-tagline {
    display: flex;
    flex-direction: column;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    gap: 1.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: lowercase;
    color: var(--text-primary);
    padding-top: 0.5rem;
}

.tag-word {
    display: inline-block;
    transition: var(--transition-fast);
}

.tag-word:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(255,255,255,0.5);
}

.square-aspect {
    flex: 1;
}

.text-right {
    text-align: right;
    align-self: flex-end;
    max-width: 90%;
    margin-top: 2rem;
    color: var(--text-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    border-top: 1px solid var(--border-color);
    padding: 30px 4%;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    background-color: var(--bg-primary);
    margin-top: auto;
}

/* ==========================================================================
   MODALS & FORMS
   ========================================================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.5s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-content {
    background-color: var(--bg-modal);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    z-index: 10;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 100px rgba(255, 255, 255, 0.01) inset;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.close-btn:hover {
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.03);
}

.submit-btn {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background-color: var(--text-secondary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.form-success-msg {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
    text-align: center;
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    border: 2px solid var(--text-primary);
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.appeared {
    opacity: 1;
    transform: translateY(0);
}

.col-left.fade-in-up { transition-delay: 0.1s; }
.col-center.fade-in-up { transition-delay: 0.2s; }
.col-right.fade-in-up { transition-delay: 0.3s; }

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1200px) {
    .content-grid {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 4.8rem;
    }
    
    .contact-btn span {
        display: none; /* Hide button text on narrow screens, keep icons */
    }
    
    .contact-btn {
        padding: 8px 12px;
    }
}

@media (max-width: 1024px) {
    .navbar {
        height: 80px;
        padding: 0 4%;
    }
    
    .sidebar-left {
        display: none;
    }
    
    body {
        padding-left: 0;
    }
    
    .mobile-only-tab {
        display: inline-block;
    }
    
    .nav-links {
        display: flex;
        gap: 1rem;
        overflow-x: hidden;
        white-space: nowrap;
        padding-bottom: 5px;
        scrollbar-width: none;
    }
    
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding: 3rem 6%;
    }
    
    .grid-col {
        gap: 2rem;
    }
    
    .col-left, .col-right {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
    
    .text-left, .text-right {
        max-width: 100%;
        text-align: center;
    }
    
    .vertical-aspect {
        height: auto;
    }
    
    .right-top-block {
        flex-direction: column-reverse;
        align-items: center;
        gap: 1.5rem;
    }
    
    .vertical-tagline {
        writing-mode: horizontal-tb;
        transform: rotate(0deg);
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
    }
    
    .square-aspect {
        width: 100%;
    }
    
    .modal-content {
        padding: 2rem;
        margin: 0 1rem;
    }
}

@media (max-width: 600px) {
    .navbar {
        padding: 0 4%;
        height: 80px;
    }
    
    .nav-left {
        gap: 0px;
    }
    
    .nav-links {
        display: flex;
        gap: 0.38rem;
    }
    
    .contact-container {
        gap: 0.5rem;
    }
    
    .contact-btn {
        padding: 6px 10px;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
        letter-spacing: -1.5px;
    }
    
    .center-beer-wrapper {
        width: 100%;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   TEST AD CARD & JUMPING QUESTION
   ========================================================================== */

.test-ad-section {
    padding: 3rem 4%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.ad-card-container {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 860px;
    width: 100%;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.8rem;
    text-align: left;
    transition: var(--transition-smooth);
}

.ad-card-container:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.01) inset, 0 20px 50px rgba(0, 0, 0, 0.8);
}

.ad-card-image-wrapper {
    flex: 0 0 200px;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.ad-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: none;
    transition: var(--transition-smooth);
}

.ad-card-container:hover .ad-card-img {
    filter: none;
}

.ad-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.ad-card-title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    text-transform: lowercase;
    letter-spacing: -1.5px;
    margin: 0;
}

/* Force homepage card titles to be solid text rather than stroke text */
.ad-card-title.text-stroke {
    color: var(--text-primary) !important;
    -webkit-text-stroke: none !important;
}

.ad-card-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.ad-card-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.details-btn-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ad-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-details {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid var(--text-primary);
}

.btn-details:hover {
    background-color: transparent;
    color: var(--text-primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
}

.btn-call {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-call:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
    color: #4cd964;
    box-shadow: 0 0 15px rgba(76, 217, 100, 0.15);
}

.btn-call svg {
    transition: var(--transition-fast);
}

/* Bouncing Text Question Mark Style (Syne Font) */
.btn-question-jumping {
    font-family: var(--font-display); /* 'Syne' */
    font-weight: 800;
    font-size: 1.4rem;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
    transform: translateY(2px); /* Shift character slightly lower */
    animation: btn-bounce-jump 1.2s infinite ease-in-out;
}

@keyframes btn-bounce-jump {
    0%, 100% {
        transform: translateY(2px);
    }
    50% {
        transform: translateY(-4px); /* Bounce animation */
    }
}

/* Mobile responsive fixes for ad block (Pure Lite premium card style) */
@media (max-width: 768px) {


    .test-ad-section {
        padding-top: 0.2rem !important;
        width: 100%;
    }

    .ad-cards-container-wrapper {
        gap: 2rem !important;
        padding: 0 1rem;
    }

    .ad-card-container {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: left !important;
        gap: 0 !important;
        padding: 0 !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        background: rgba(255, 255, 255, 0.03) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6) !important;
        max-width: 440px !important;
        margin: 0 auto !important;
        transition: var(--transition-smooth) !important;
    }

    .ad-card-container:hover {
        border-color: var(--border-hover) !important;
        transform: translateY(-4px) !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8) !important;
    }

    .ad-card-image-wrapper {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        border-radius: 0 !important;
        border: none !important;
        border-bottom: 1px solid var(--border-color) !important;
        position: relative !important;
        overflow: hidden !important;
    }

    /* Badges on mobile images matching Pure Lite details style */
    #card-housing-tulskiy .ad-card-image-wrapper::after {
        content: 'Жилье';
    }
    #card-cafe-janburg .ad-card-image-wrapper::after {
        content: 'Еда';
    }
    #card-fishing-rodnikovka .ad-card-image-wrapper::after {
        content: 'Отдых';
    }
    #card-services-yugzelenstroi .ad-card-image-wrapper::after {
        content: 'Услуги';
    }

    .ad-card-image-wrapper::after {
        position: absolute;
        top: 14px;
        left: 14px;
        background: rgba(255, 255, 255, 0.07);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.13);
        border-radius: 30px;
        padding: 5px 13px;
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: var(--text-primary);
        pointer-events: none;
        z-index: 10;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }

    .ad-card-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        filter: none !important; /* Keep colorful on mobile */
        transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .ad-card-container:hover .ad-card-img {
        transform: scale(1.05) !important;
    }

    .ad-card-content {
        padding: 1.4rem 1.5rem 1.6rem !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    .ad-card-title {
        font-family: var(--font-display) !important;
        font-size: 1.4rem !important;
        font-weight: 800 !important;
        text-transform: lowercase !important;
        letter-spacing: -0.8px !important;
        line-height: 1.15 !important;
        margin: 0 !important;
    }

    .ad-card-text {
        font-size: 0.95rem !important;
        line-height: 1.65 !important;
        color: rgba(255, 255, 255, 0.85) !important;
        margin: 0 !important;
    }

    .info-card-list-inline {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.45rem !important;
    }

    .info-card-list-inline li {
        font-size: 0.9rem !important;
        color: rgba(255, 255, 255, 0.8) !important;
        position: relative !important;
        padding-left: 18px !important;
        line-height: 1.45 !important;
    }

    .info-card-list-inline li::before {
        content: '•' !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        font-size: 1rem !important;
        line-height: 1 !important;
    }

    .ad-card-actions {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 0.8rem !important;
        margin-top: auto !important;
        padding-top: 0.4rem !important;
        width: 100% !important;
    }

    .ad-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px !important;
        padding: 10px 14px !important;
        font-family: var(--font-body) !important;
        font-size: 0.82rem !important;
        font-weight: 600 !important;
        border-radius: 30px !important;
        text-decoration: none !important;
        cursor: pointer !important;
        transition: var(--transition-smooth) !important;
        border: none !important;
        flex: 1 !important;
        width: 50% !important;
    }

    .btn-details {
        background-color: var(--text-primary) !important;
        color: var(--bg-primary) !important;
        border: 1px solid var(--text-primary) !important;
    }

    .btn-details:hover {
        background-color: transparent !important;
        color: var(--text-primary) !important;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.15) !important;
    }

    .btn-call {
        background-color: transparent !important;
        color: var(--text-primary) !important;
        border: 1px solid var(--border-color) !important;
    }

    .btn-call:hover {
        background-color: rgba(255, 255, 255, 0.05) !important;
        border-color: var(--border-hover) !important;
        color: #4cd964 !important;
        box-shadow: 0 0 15px rgba(76, 217, 100, 0.15) !important;
    }

    .ad-btn svg {
        width: 13px !important;
        height: 13px !important;
    }

    .btn-question-jumping {
        font-family: var(--font-display) !important;
        font-weight: 800 !important;
        font-size: 1.1rem !important;
        display: inline-block !important;
        animation: btn-bounce-jump 1.2s infinite ease-in-out !important;
    }
}

/* ==========================================================================
   ABOUT SECTION (О НАС)
   ========================================================================== */

.about-section {
    padding: 3rem 4%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.about-card-container {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    max-width: 800px;
    width: 100%;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-smooth);
}

.about-card-container:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.01) inset, 0 20px 50px rgba(0, 0, 0, 0.8);
}

.about-card-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: lowercase;
    letter-spacing: -1.5px;
}

.about-card-text {
    font-size: 1.25rem;
    line-height: 2;
    color: var(--text-secondary);
    font-weight: 300;
}

.mobile-only-tab {
    display: none;
}

/* Mobile-only photos inside About Card */
.about-photos-mobile {
    display: none;
}

.about-photo-wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.about-photo-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Show only on mobile viewports */
@media (max-width: 1024px) {
    .about-photos-mobile {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        margin-top: 2.5rem;
    }
}

/* ==========================================================================
   ABOUT PAGE CONTENT & PHOTOS
   ========================================================================== */

.about-page-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding: 4rem 4%;
    width: 100%;
}

.about-photos-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    margin-top: 1rem;
}

.about-photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    transition: var(--transition-smooth);
    aspect-ratio: 4 / 5;
}

.about-photo-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.02);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.about-photo-card:hover .about-img {
    transform: scale(1.04);
    filter: grayscale(0);
}

/* Responsive adjustment for About Page photos and Index mobile columns */
@media (max-width: 1024px) {
    .about-photos-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 440px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   DETAILS PAGE REFERENCE STYLING (такситульский.рф/guest-house.html style)
   ========================================================================== */

.detail-main {
    flex: 1;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 4%;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.detail-hero__shell {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
}

.detail-hero__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.chip-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.chip-link:hover {
    color: var(--text-primary);
    transform: translateX(-3px);
}

.detail-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    text-transform: lowercase;
    letter-spacing: -1.5px;
    margin: 0;
    line-height: 1.2;
}

.detail-lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.detail-facts {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.detail-fact {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.section__actions {
    display: flex;
    gap: 1.2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.content-panel {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
}

.copy-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.section__header {
    margin-bottom: 2rem;
}

.section__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
}

.section__title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: lowercase;
    letter-spacing: -1px;
    margin-top: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.info-card:hover {
    border-color: var(--border-hover);
}

.info-card strong {
    display: block;
    font-size: 1.25rem;
    font-family: var(--font-display);
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.info-card ul li {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.info-card ul li::before {
    content: "•";
    color: #ffffff; /* White bullets */
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
}

.info-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.info-card a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: underline;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin: 0;
    transition: var(--transition-smooth);
}

.gallery-card:hover {
    border-color: var(--border-hover);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    filter: none;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.gallery-card:hover img {
    transform: scale(1.04);
    filter: none;
}

.gallery-card figcaption {
    padding: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

/* Scroll Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.scroll-top__icon {
    display: none; /* Hide default arrow character */
}

.scroll-top::before {
    content: '';
    width: 10px;
    height: 10px;
    border-left: 2px solid var(--text-primary);
    border-top: 2px solid var(--text-primary);
    transform: rotate(45deg);
    margin-top: 4px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.scroll-top:hover::before {
    transform: rotate(45deg) translate(-2px, -2px);
    border-color: #fff;
}

/* Responsive detail page overrides */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .detail-main {
        padding: 2rem 4%;
        gap: 3rem;
    }
    
    .detail-hero__shell {
        padding: 2rem 1.5rem;
    }
    
    .detail-title {
        font-size: 2.2rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   INLINE LIST INSIDE AD CARDS & MOBILE POSITIONING ADJUSTMENTS
   ========================================================================== */

.info-card-list-inline {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.info-card-list-inline li {
    font-size: 1.02rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-left: 18px;
}

.info-card-list-inline li::before {
    content: "•";
    color: rgba(255, 255, 255, 0.8); /* Dots match text color */
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 768px) {
    .info-card-list-inline li {
        font-size: 0.8rem;
        padding-left: 15px;
    }

    /* Bring card container directly under the divider line on mobile */
    .content-grid {
        padding-bottom: 0 !important;
    }
    
    .test-ad-section {
        padding-top: 0.2rem !important;
    }
}

/* ==========================================================================
   PRELOADER (1 SECOND VISUAL ENTRY EFFECT)
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000;
    z-index: 99999; /* Higher than everything else */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s cubic-bezier(0.85, 0, 0.15, 1), visibility 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
}

.preloader-logo {
    opacity: 0;
    transform: translateY(20px);
    animation: preloader-logo-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.preloader-logo .preloader-text {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    text-transform: lowercase;
    letter-spacing: -3px;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text-primary);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0);
    animation: preloader-text-glow 1.2s ease-in-out infinite alternate;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scaleX(0.8);
    animation: preloader-bar-fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.preloader-progress {
    width: 0%;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 0 15px #ffffff, 0 0 30px rgba(255, 255, 255, 0.5);
    animation: preloader-load-animation 0.9s cubic-bezier(0.1, 0.85, 0.25, 1) forwards;
}

@keyframes preloader-logo-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes preloader-bar-fade-in {
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes preloader-text-glow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0);
    }
    100% {
        text-shadow: 0 0 35px rgba(255, 255, 255, 0.5);
        color: rgba(255, 255, 255, 0.05);
    }
}

@keyframes preloader-load-animation {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ==========================================================================
   IOS OPTIMIZATION (Fixes extreme lagging on iPhones)
   ========================================================================== */
@supports (-webkit-touch-callout: none) {
    /* Disable heavy backdrop blurs on iOS */
    .ad-card-container,
    .navbar,
    .contact-btn,
    .ad-btn,
    .glass-badge-top {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }
    
    /* Ensure solid or mostly solid backgrounds instead of blur for readability */
    .ad-card-container {
        background: rgba(10, 10, 10, 0.95) !important;
    }
    .navbar {
        background: rgba(0, 0, 0, 0.98) !important;
    }
}

