@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg: #f5f0e8;
    --bg-alt: #ece6d9;
    --fg: #1a1a1a;
    --fg-muted: #5a5549;
    --accent: #c8b89a;
    --accent-dark: #a89878;
    --card-bg: #ffffff;
    --card-shadow: 0 25px 80px rgba(0,0,0,0.12);
    --header-bg: rgba(245,240,232,0.88);
    --border: #d4cbbf;
    --font-display: 'Caveat', cursive;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255,255,255,0.25);
    --glass-border: rgba(255,255,255,0.4);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    --bg: #000000;
    --bg-alt: #050505;
    --fg: #e8e0d4;
    --fg-muted: #9a9084;
    --accent: #c8b89a;
    --accent-dark: #8a7a5a;
    --card-bg: #0d0d0d;
    --card-shadow: 0 25px 80px rgba(0,0,0,0.7);
    --header-bg: rgba(0,0,0,0.92);
    --border: #1a1a1a;
    --glass-bg: rgba(10,10,10,0.55);
    --glass-border: rgba(255,255,255,0.07);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--fg);
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition), opacity 0.35s ease;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.page-leave {
    opacity: 0.2;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(212,190,149,0.24), rgba(212,190,149,0) 55%);
    opacity: 0;
    z-index: 9991;
}

body.theme-transition::after {
    animation: themePulse 0.5s ease;
}

#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.75s cubic-bezier(0.4, 0, 0.2, 1);
    animation: loaderEnter 0.45s ease both;
}

@keyframes loaderEnter {
    from { opacity: 0; }
    to { opacity: 1; }
}

#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.spinner {
    width: 58px;
    height: 58px;
    position: relative;
}

.spinner::before,
.spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 2.5px solid transparent;
}

.spinner::before {
    inset: 0;
    border-top-color: var(--accent-dark);
    border-right-color: rgba(200,184,154,0.22);
    animation: spinOuter 1.1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}

.spinner::after {
    inset: 10px;
    border-bottom-color: var(--accent);
    border-left-color: rgba(168,152,120,0.18);
    animation: spinInner 0.72s cubic-bezier(0.33, 0, 0.66, 1) infinite reverse;
}

.loader-text {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--fg);
    letter-spacing: 0.08em;
    animation: loaderPulse 2.6s ease-in-out infinite;
}

@keyframes spinOuter { to { transform: rotate(360deg); } }
@keyframes spinInner { to { transform: rotate(360deg); } }
@keyframes loaderPulse {
    0%, 100% { opacity: 0.65; letter-spacing: 0.08em; }
    50% { opacity: 1; letter-spacing: 0.18em; }
}

header {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: transparent;
    border: none;
    width: auto;
    max-width: calc(100% - 2rem);
}

.header-inner {
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(30px) saturate(1.8);
    -webkit-backdrop-filter: blur(30px) saturate(1.8);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.3);
    transition: all var(--transition);
}

[data-theme="dark"] .header-inner {
    background: rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.05);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform var(--transition);
    flex-shrink: 0;
}

.logo:hover { transform: scale(1.05); }

.logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

[data-theme="dark"] .logo img {
    filter: brightness(1.6) saturate(0.7);
}

.nav-desktop { display: flex; gap: 0.25rem; }

.nav-desktop a {
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    transition: all var(--transition);
    letter-spacing: 0.02em;
    position: relative;
    white-space: nowrap;
}

.nav-desktop a:hover {
    color: var(--fg);
    background: rgba(200,184,154,0.15);
}

.nav-desktop a i { margin-right: 0.3rem; transition: transform var(--transition); }
.nav-desktop a:hover i { transform: translateY(-2px); }

.header-separator {
    width: 1px;
    height: 24px;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    margin: 0 0.75rem;
    flex-shrink: 0;
    opacity: 0.6;
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

#theme-toggle,
#login-btn {
    background: none;
    border: 1px solid rgba(200,184,154,0.3);
    color: var(--fg);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 0.85rem;
    text-decoration: none;
}

#theme-toggle:hover,
#login-btn:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    transform: scale(1.1);
}

#theme-toggle:hover { transform: rotate(30deg) scale(1.1); }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 22px;
    position: relative;
    z-index: 200;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 1.5px;
    background: var(--fg);
    position: absolute;
    left: 0;
    border-radius: 2px;
    transform-origin: center;
    transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.hamburger span:nth-child(1) { top: 2px; width: 100%; }
.hamburger span:nth-child(2) { top: 10px; width: 60%; }
.hamburger span:nth-child(3) { top: 18px; width: 100%; }

.hamburger:hover span:nth-child(2) { width: 100%; }

.hamburger.active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, background var(--transition);
}

.mobile-menu.open { opacity: 1; visibility: visible; }

.mobile-menu a {
    font-family: var(--font-display);
    font-size: 2.8rem;
    color: var(--fg);
    text-decoration: none;
    padding: 1.2rem 3rem;
    border-bottom: 1px solid var(--border);
    width: 80%;
    text-align: center;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color var(--transition), background var(--transition), border-color var(--transition);
    transform: translateX(0) scale(1);
}

.mobile-menu a:first-child { border-top: 1px solid var(--border); }
.mobile-menu a:hover {
    color: var(--accent-dark);
    background: rgba(200,184,154,0.12);
    transform: translateX(8px) scale(1.02);
}

.mobile-menu .mobile-login {
    margin-top: 2rem;
    font-family: var(--font-body);
    font-size: 1.15rem;
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-actions {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.mobile-menu-actions .mobile-login {
    margin-top: 0;
}

#theme-toggle-mobile {
    background: none;
    border: 1px solid rgba(200,184,154,0.3);
    color: var(--fg);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-size: 0.95rem;
}

#theme-toggle-mobile:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    transform: rotate(30deg) scale(1.08);
}

.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    color: var(--fg);
    padding: 1rem 2rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    z-index: 9998;
    font-size: 0.9rem;
    animation: toastIn 0.3s ease-out, toastOut 0.3s ease-in 2.7s forwards;
}

.toast i { margin-right: 0.5rem; color: var(--accent-dark); }

@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 2rem 4rem;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-layer {
    position: absolute;
    inset: -20%;
    background: url('../kepek/hero.webp') center/cover no-repeat;
    z-index: 0;
    filter: blur(7px) saturate(1.05) brightness(0.62);
    transform: translate3d(0, 0, 0) scale(1.12);
    will-change: transform;
}

.hero-bg-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.18) 60%, rgba(0,0,0,0.1) 100%);
}

.card-3d-wrapper { perspective: 1200px; position: relative; z-index: 1; }

.card-3d {
    width: 520px;
    max-width: 92vw;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-front {
    background: var(--card-bg);
    border: 1px solid transparent;
    border-radius: 24px;
    padding: 0;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    transition: background var(--transition), border-color var(--transition);
}

.card-3d:hover .card-front { border-color: var(--accent); }

.card-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--accent-dark));
    z-index: 2;
}

.card-hero-image { width: 100%; height: 220px; overflow: hidden; }

.card-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

.card-3d:hover .card-hero-image img { transform: scale(1.05); }

.card-front h1 {
    font-family: var(--font-display);
    font-size: 3.2rem;
    padding: 1.5rem 2.5rem 0.3rem;
    line-height: 1.1;
    text-align: center;
}

.card-subtitle {
    color: var(--fg-muted);
    font-size: 0.95rem;
    padding: 0 2.5rem;
    font-weight: 300;
    text-align: center;
}

.card-divider {
    width: 50px;
    height: 2px;
    background: var(--accent);
    margin: 1.2rem auto;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0 2.5rem 2.5rem;
}

.card-details p {
    font-size: 0.88rem;
    color: var(--fg-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-details i { color: var(--accent-dark); width: 16px; text-align: center; }

.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    animation: bounce 2.5s infinite;
    z-index: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.scroll-hint i { font-size: 1rem; }

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

.section {
    min-height: 100vh;
    padding: 6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    contain: layout style;
}

.section-inner { max-width: 960px; width: 100%; position: relative; z-index: 2; }

.section h2 {
    font-family: var(--font-display);
    font-size: 3.2rem;
    margin-bottom: 2rem;
    position: relative;
    display: block;
    text-align: center;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 6px auto 0;
}

.tortenet {
    position: relative;
    overflow: hidden;
}

.tortenet-bg-layer {
    position: absolute;
    inset: -20%;
    background: url('../kepek/krudyhaz.webp') center/cover no-repeat;
    z-index: 0;
    will-change: transform;
    filter: blur(4px) saturate(1.08) contrast(1.05);
    transform: translate3d(0, 0, 0) scale(1.08);
}

.tortenet-bg-layer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 8, 5, 0.28), rgba(10, 8, 5, 0.12));
}

.tortenet-inner { position: relative; z-index: 2; }

.gallery-slider-wrap {
    position: relative;
    width: 100%;
    padding: 1.5rem 0 4.5rem;
    user-select: none;
    cursor: grab;
}

.gallery-slider-wrap:active { cursor: grabbing; }

.gallery-scene {
    perspective: 2000px;
    height: 480px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    cursor: inherit;
}

.gallery-slide {
    position: absolute;
    width: min(480px, 72vw);
    height: 360px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease, box-shadow 0.6s ease, filter 0.6s ease;
    will-change: transform, opacity;
    box-shadow: 0 12px 40px rgba(0,0,0,0.22);
    filter: saturate(0.85) brightness(0.92);
}

.gallery-slide.side {
    filter: saturate(0.7) brightness(0.78) blur(1px);
}

.gallery-slide.active {
    box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 0 2px var(--accent);
    cursor: zoom-in;
    filter: saturate(1.08) brightness(1.02);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-slide.active:hover img { transform: scale(1.04); }

.gallery-prev,
.gallery-next {
    position: absolute;
    top: calc(50% - 2.5rem);
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(200,184,154,0.12);
    border: 1px solid rgba(200,184,154,0.25);
    color: var(--fg);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(12px) saturate(1.6);
    -webkit-backdrop-filter: blur(12px) saturate(1.6);
    box-shadow: 0 4px 20px rgba(0,0,0,0.16);
}

.gallery-prev { left: 0; }
.gallery-next { right: 0; }
.gallery-prev:hover { background: rgba(200,184,154,0.3); transform: translateY(-50%) translateX(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.22); }
.gallery-next:hover { background: rgba(200,184,154,0.3); transform: translateY(-50%) translateX(4px); box-shadow: 0 8px 28px rgba(0,0,0,0.22); }

.gallery-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    align-items: center;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    border: none;
    padding: 0;
    opacity: 0.32;
    cursor: pointer;
    transition: opacity 0.3s ease, width 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease;
}

.gallery-dot.active {
    opacity: 1;
    width: 28px;
    background: var(--accent-dark);
}

.liquid-glass {
    --sweep-angle: 0deg;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(28px) saturate(1.8);
    -webkit-backdrop-filter: blur(28px) saturate(1.8);
    box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.15);
    position: relative;
    isolation: isolate;
}

.liquid-glass::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    padding: 2px;
    background: conic-gradient(
        from -90deg at 50% 50%,
        rgba(200, 184, 154, 0.9) var(--sweep-angle),
        transparent var(--sweep-angle)
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 10;
    opacity: 0.9;
}

.liquid-glass-content {
    max-height: calc(60vh - 6rem);
    overflow-y: scroll;
    scrollbar-gutter: stable;
    padding-right: 0.75rem;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--fg-muted);
    scrollbar-width: thin;
    scrollbar-color: #d4be95 rgba(200,184,154,0.1);
}

.liquid-glass-content::-webkit-scrollbar { width: 10px; }

.liquid-glass-content::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(200,184,154,0.08), rgba(200,184,154,0.2), rgba(200,184,154,0.08));
    border-radius: 999px;
}

.liquid-glass-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #e2cfab, #c8b89a, #aa9472);
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.25);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45), 0 4px 10px rgba(0,0,0,0.22);
}

.liquid-glass-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #efdcbb, #d4be95, #b79d75);
}

.liquid-glass-content p { margin-bottom: 1.2rem; }
.liquid-glass-content strong { color: var(--fg); font-weight: 600; }
.liquid-glass-content em { font-style: italic; }

.galeria { background: transparent; }

.ugyfelkapu-section {
    background: #000000;
    --fg: #e8e0d4;
    --fg-muted: #9a9084;
    --card-bg: #0d0d0d;
    --border: #1e1e1e;
    --glass-bg: rgba(12,12,12,0.7);
    --glass-border: rgba(255,255,255,0.06);
    --glass-shadow: 0 8px 40px rgba(0,0,0,0.8);
}
[data-theme="dark"] .ugyfelkapu-section { background: #000000; }

.ugyfelkapu-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.ugyfelkapu-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    text-align: center;
    padding: 2rem;
}

.ugyfelkapu-stat i {
    font-size: 3.5rem;
    color: var(--accent-dark);
    animation: statPulse 3s ease-in-out infinite;
}

.ugyfelkapu-stat strong {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1.1;
    padding-bottom: 0.08em;
    padding-right: 0.15em;
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    overflow: visible;
}

.ugyfelkapu-stat span {
    color: var(--fg-muted);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@keyframes statPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.08); opacity: 1; }
}

.ugyfelkapu-card { width: 100%; }

.uk-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1.4rem;
}

.ugyfelkapu-subtitle {
    color: var(--fg-muted);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 0.4rem;
}

.uk-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.uk-field label {
    font-size: 0.82rem;
    color: var(--fg-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.uk-field input {
    background: rgba(200,184,154,0.1);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.uk-field input::placeholder { color: var(--fg-muted); opacity: 0.6; }

.uk-field input:focus {
    border-color: var(--accent-dark);
    background: rgba(200,184,154,0.18);
    box-shadow: 0 0 0 3px rgba(168,152,120,0.18);
}

.uk-submit-btn {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    color: #1a1107;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
    margin-top: 0.4rem;
}

.uk-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(168,152,120,0.4);
    filter: brightness(1.06);
}

@media (max-width: 768px) {
    .ugyfelkapu-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .ugyfelkapu-stat strong { font-size: 4rem; }
}

.no-images {
    color: var(--fg-muted);
    font-style: italic;
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 0;
}

footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    color: var(--fg-muted);
    font-size: 0.85rem;
    transition: border-color var(--transition);
}

.footer-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-contacts a {
    color: var(--fg-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color var(--transition);
    font-size: 0.9rem;
}

.footer-contacts a:hover { color: var(--accent-dark); }
.footer-contacts i { color: var(--accent-dark); }

#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-dark);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

#back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { transform: translateY(-3px) scale(1.1); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }

.roll-section {
    transform: translateY(48px);
    opacity: 0;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.75s ease;
}

.roll-section.visible { transform: translateY(0); opacity: 1; }

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(12px) saturate(0.6);
    -webkit-backdrop-filter: blur(12px) saturate(0.6);
    cursor: zoom-out;
}

.lightbox-stage {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-stage img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.25s ease;
    opacity: 0;
    transform: scale(0.94);
    display: block;
}

.lightbox-stage img.loaded { opacity: 1; transform: scale(1); }

.lightbox-stage img.slide-out-left { animation: lbSlideOutLeft 0.18s ease forwards; }
.lightbox-stage img.slide-out-right { animation: lbSlideOutRight 0.18s ease forwards; }
.lightbox-stage img.slide-in-right { animation: lbSlideInRight 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
.lightbox-stage img.slide-in-left { animation: lbSlideInLeft 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 3;
    background: rgba(200,184,154,0.15);
    border: 1px solid rgba(200,184,154,0.3);
    color: #e8e0d4;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.lightbox-close:hover { background: rgba(200,184,154,0.35); transform: scale(1.1) rotate(90deg); }

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(200,184,154,0.12);
    border: 1px solid rgba(200,184,154,0.25);
    color: #e8e0d4;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-prev:hover { background: rgba(200,184,154,0.3); transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover { background: rgba(200,184,154,0.3); transform: translateY(-50%) translateX(3px); }

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: rgba(232,224,212,0.7);
    font-size: 0.8rem;
    font-family: var(--font-body);
    letter-spacing: 0.08em;
    background: rgba(0,0,0,0.3);
    padding: 0.3rem 1rem;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

@keyframes themePulse {
    0% { opacity: 0; transform: scale(0.94); }
    45% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.06); }
}

@keyframes lbSlideOutLeft {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(-56px) scale(0.97); }
}

@keyframes lbSlideOutRight {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(56px) scale(0.97); }
}

@keyframes lbSlideInRight {
    from { opacity: 0; transform: translateX(72px) scale(0.96); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes lbSlideInLeft {
    from { opacity: 0; transform: translateX(-72px) scale(0.96); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes tileIn {
    from { opacity: 0; transform: translateY(22px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
    header { top: 0.5rem; left: 0.5rem; right: 0.5rem; transform: none; max-width: none; width: auto; }
    .header-inner { padding: 0 1rem; height: 54px; width: 100%; justify-content: space-between; }
    .logo img { height: 32px; }
    .nav-desktop { display: none; }
    .header-separator { display: none; }
    .hamburger { display: block; }
    .mobile-menu { display: flex; }
    #login-btn.desktop-only { display: none; }
    #theme-toggle { display: none; }
    .card-front h1 { font-size: 2.4rem; padding: 1.2rem 1.5rem 0.3rem; }
    .card-hero-image { height: 160px; }
    .card-subtitle { padding: 0 1.5rem; }
    .card-divider { margin: 1rem auto; }
    .card-details { padding: 0 1.5rem 1.5rem; }
    .section h2 { font-size: 2.4rem; }

    .gallery-slider-wrap { padding: 0.5rem 0 2rem; }
    .gallery-scene {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        height: auto;
        perspective: none;
        transform-style: flat;
        padding: 0 0.25rem;
    }
    .gallery-slide {
        position: static !important;
        width: 100% !important;
        height: 130px !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        border-radius: 12px;
        cursor: zoom-in;
        animation: tileIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
        box-shadow: 0 4px 16px rgba(0,0,0,0.18);
        transition: transform 0.28s ease, box-shadow 0.28s ease;
    }
    .gallery-slide:active { transform: scale(0.96) !important; }
    .gallery-slide:nth-child(1) { animation-delay: 0.04s; }
    .gallery-slide:nth-child(2) { animation-delay: 0.09s; }
    .gallery-slide:nth-child(3) { animation-delay: 0.14s; }
    .gallery-slide:nth-child(4) { animation-delay: 0.19s; }
    .gallery-slide:nth-child(5) { animation-delay: 0.24s; }
    .gallery-slide:nth-child(6) { animation-delay: 0.29s; }
    .gallery-slide:nth-child(7) { animation-delay: 0.34s; }
    .gallery-slide:nth-child(8) { animation-delay: 0.39s; }
    .gallery-prev, .gallery-next, .gallery-dots { display: none !important; }

    .liquid-glass { padding: 1.5rem; }
    .footer-contacts { flex-direction: column; align-items: center; gap: 0.75rem; }
    .lightbox-prev { left: 0.5rem; }
    .lightbox-next { right: 0.5rem; }
    .lightbox-stage img { max-width: 94vw; max-height: 76vh; }
    .lightbox-counter { font-size: 0.72rem; padding: 0.24rem 0.7rem; }
}

@media (max-width: 480px) {
    .gallery-scene { grid-template-columns: 1fr; }
    .gallery-slide { height: 200px !important; }
    .ugyfelkapu-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .ugyfelkapu-stat strong { font-size: 4rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .gallery-scene { height: 380px; }
    .gallery-slide { width: min(360px, 60vw); height: 270px; }
}

@media (max-width: 768px) {
    .ugyfelkapu-wrapper { grid-template-columns: 1fr; gap: 2rem; }
    .ugyfelkapu-stat strong { font-size: 4rem; }
}
