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

/* Töltőképernyő */
.loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a56db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: loaderFadeOut 0.5s ease-out 1.5s forwards;
}

.loader-logo {
    width: 200px;
    max-width: 60%;
    animation: logoZoomIn 1s ease-out forwards, logoFadeOut 0.5s ease-out 1s forwards;
}

@keyframes logoZoomIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes logoFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes loaderFadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

body.loaded .loader {
    display: none;
}

:root {
    --primary: #1a56db;
    --primary-dark: #1e40af;
    --secondary: #0f172a;
    --accent: #f59e0b;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
}

html {
    scroll-behavior: smooth;
    background-color: #0f172a;
}

.ios-status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: calc(env(safe-area-inset-top, 0px) + 0px);
    min-height: 0;
    background: #0f172a;
    z-index: 10000;
    pointer-events: none;
}

@supports (padding-top: env(safe-area-inset-top)) {
    .ios-status-bar {
        height: env(safe-area-inset-top);
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    padding-top: env(safe-area-inset-top, 0px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a56db 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    padding-top: env(safe-area-inset-top);
}

.header::before {
    content: '';
    position: absolute;
    top: calc(-1 * env(safe-area-inset-top, 50px));
    left: 0;
    right: 0;
    height: env(safe-area-inset-top, 50px);
    background: #0f172a;
    z-index: -1;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
}

.logo-text .kft {
    color: #60a5fa;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-list > li > a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.2s;
}

.nav-list > li > a:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

.arrow {
    font-size: 10px;
    margin-left: 4px;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 23, 42, 0.95);
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.2s;
}

.dropdown-menu a:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s;
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a56db 100%);
    padding-top: 70px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-logo-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}

.hero-logo-bg img {
    width: 500px;
    max-width: 80%;
    opacity: 0.08;
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-full {
    width: 100%;
}

.features {
    padding: 80px 0;
    background: var(--bg-alt);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 50px;
}

.vehicles {
    padding: 100px 0;
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.vehicle-card {
    background: var(--bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.vehicle-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vehicle-icon {
    font-size: 80px;
    color: rgba(255,255,255,0.9);
}

.vehicle-info {
    padding: 25px;
    text-align: center;
}

.vehicle-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.vehicle-info p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 14px;
}

.categories {
    padding: 100px 0;
    background: var(--bg-alt);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-card {
    background: var(--bg);
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.category-icon {
    font-size: 50px;
    margin-bottom: 20px;
    color: var(--primary);
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.category-card p {
    font-size: 14px;
    color: var(--text-light);
}

.current-stock {
    padding: 100px 0;
}

.stock-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.stock-card {
    background: var(--bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
}

.stock-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.stock-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.stock-card p {
    color: var(--text-light);
    font-size: 14px;
}

.shipping {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #1a56db 100%);
    color: white;
}

.shipping-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.shipping-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.shipping-text p {
    opacity: 0.9;
    margin-bottom: 30px;
    font-size: 18px;
}

.shipping-list {
    list-style: none;
}

.shipping-list li {
    padding: 10px 0;
    font-size: 16px;
}

.shipping-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.shipping-icon {
    font-size: 150px;
    opacity: 0.9;
}

.contact {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-card {
    background: var(--bg-alt);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.contact-icon {
    font-size: 35px;
    margin-bottom: 15px;
    color: var(--primary);
}

.contact-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-light);
}

.contact-card a {
    color: var(--primary);
    text-decoration: none;
}

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

.contact-form-wrapper {
    background: var(--bg-alt);
    padding: 40px;
    border-radius: 16px;
}

.contact-form h3 {
    font-size: 22px;
    margin-bottom: 25px;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.footer {
    background: var(--secondary);
    color: white;
    padding: 50px 0;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-brand .logo-icon {
    font-size: 24px;
}

.footer-brand .logo-text {
    font-size: 18px;
    font-weight: 600;
}

.footer-text {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vehicles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stock-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
        padding: 20px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.3);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-list > li > a {
        padding: 15px;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 20px;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .vehicles-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .stock-grid {
        grid-template-columns: 1fr;
    }
    
    .shipping-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .shipping-image {
        order: -1;
    }
    
    .shipping-icon {
        font-size: 100px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 40px 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .contact-form-wrapper {
        padding: 25px;
    }
}

.page-hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #1a56db 100%);
    padding: 140px 0 80px;
    text-align: center;
    color: white;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.page-hero-smax {
    background: linear-gradient(135deg, #1e5f3a 0%, #2d8757 100%);
}

.page-hero-galaxy {
    background: linear-gradient(135deg, #5f1e3a 0%, #872d57 100%);
}

.gallery-section {
    padding: 80px 0;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.gallery-tab {
    padding: 12px 30px;
    background: var(--bg-alt);
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

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

.gallery-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.gallery-title {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.gallery-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

.gallery-content.hidden {
    display: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.cta-section {
    background: var(--bg-alt);
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-section p {
    color: var(--text-light);
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-tabs {
        flex-wrap: wrap;
    }
    
    .gallery-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .page-hero {
        padding: 120px 0 60px;
    }
}
