/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
}
a { color: #e8590c; text-decoration: none; }
a:hover { color: #ff6b1a; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.accent { color: #e8590c; }

/* === Nav === */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(15, 15, 15, 0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid #2a2a2a;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-logo { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.nav-logo span { color: #e8590c; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: #bbb; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: 0.3s; }

@media (max-width: 640px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: rgba(15, 15, 15, 0.98); flex-direction: column;
        padding: 20px; gap: 16px; border-bottom: 1px solid #2a2a2a;
    }
    .nav-links.open { display: flex; }
}

/* === Hero === */
.hero {
    min-height: 90vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 80px 20px;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #1f1410 100%);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; right: -30%; width: 80%; height: 200%;
    background: radial-gradient(ellipse, rgba(232, 89, 12, 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content { position: relative; max-width: 700px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 800; line-height: 1.15; margin-bottom: 20px; color: #fff; }
.hero p { font-size: 1.15rem; color: #999; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* === Buttons === */
.btn {
    display: inline-block; padding: 14px 32px; border-radius: 8px; font-weight: 600;
    font-size: 1rem; border: none; cursor: pointer; transition: all 0.2s;
}
.btn-primary { background: #e8590c; color: #fff; }
.btn-primary:hover { background: #ff6b1a; color: #fff; transform: translateY(-1px); }

/* === Sections === */
.section { padding: 80px 0; }
.section-dark { background: #141414; }
.section-title {
    font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 48px; color: #fff;
    position: relative;
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 3px; background: #e8590c;
    margin: 12px auto 0;
}

/* === Services === */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.service-card {
    background: #222; border-radius: 12px; padding: 32px; text-align: center;
    border: 1px solid #2a2a2a; transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover { border-color: #e8590c; transform: translateY(-4px); }
.service-icon { font-size: 2.5rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.2rem; color: #fff; margin-bottom: 8px; }
.service-card p { color: #999; font-size: 0.95rem; }

/* === Gallery === */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px;
}
.gallery-item {
    border-radius: 8px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3;
    background: #222; position: relative;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s;
    display: block;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .gallery-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px 12px 10px; font-size: 0.85rem; color: #ddd;
    opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }
.gallery-empty { text-align: center; color: #666; grid-column: 1 / -1; padding: 40px; }

/* === Lightbox === */
.lightbox {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95); z-index: 200; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: 4px; }
.lightbox-close {
    position: absolute; top: 16px; right: 24px; background: none; border: none;
    color: #fff; font-size: 2.5rem; cursor: pointer; z-index: 201;
}
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%); background: none;
    border: none; color: #fff; font-size: 2rem; cursor: pointer; padding: 20px;
}
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
.lightbox-caption {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    color: #ccc; font-size: 0.95rem; text-align: center; max-width: 80%;
}

/* === Contact === */
.contact-wrapper {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; align-items: start;
}
@media (max-width: 768px) {
    .contact-wrapper { grid-template-columns: 1fr; }
}
.contact-info h3 { color: #fff; margin-bottom: 24px; font-size: 1.3rem; }
.contact-item { display: flex; gap: 16px; margin-bottom: 20px; align-items: start; }
.contact-icon { font-size: 1.5rem; flex-shrink: 0; }
.contact-item strong { display: block; color: #fff; margin-bottom: 2px; }
.contact-item a, .contact-item span { color: #bbb; }

.contact-form { background: #222; border-radius: 12px; padding: 32px; border: 1px solid #2a2a2a; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; color: #ccc; font-size: 0.9rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; background: #1a1a1a; border: 1px solid #333;
    border-radius: 6px; color: #e0e0e0; font-size: 1rem; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #e8590c; }
.form-status { margin-top: 12px; font-size: 0.9rem; }
.form-status.success { color: #4caf50; }
.form-status.error { color: #f44336; }

/* === Footer === */
.footer { padding: 24px 0; border-top: 1px solid #2a2a2a; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-logo { font-size: 1.2rem; font-weight: 800; color: #fff; }
.footer-logo span { color: #e8590c; }
.footer span:last-child { color: #666; font-size: 0.85rem; }

/* === Admin styles (shared) === */
.admin-wrap { max-width: 900px; margin: 80px auto 40px; padding: 0 20px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.admin-header h1 { color: #fff; font-size: 1.5rem; }
.admin-nav { display: flex; gap: 16px; }
.admin-nav a { color: #bbb; font-weight: 500; }
.admin-nav a:hover { color: #e8590c; }

.admin-card {
    background: #222; border: 1px solid #2a2a2a; border-radius: 12px; padding: 24px; margin-bottom: 24px;
}
.admin-card h2 { color: #fff; font-size: 1.2rem; margin-bottom: 16px; }

.admin-stat { display: flex; gap: 24px; flex-wrap: wrap; }
.admin-stat-item { text-align: center; }
.admin-stat-item .num { font-size: 2rem; font-weight: 800; color: #e8590c; display: block; }
.admin-stat-item .label { color: #888; font-size: 0.85rem; }

.admin-login-box {
    max-width: 400px; margin: 120px auto; padding: 40px;
    background: #222; border: 1px solid #2a2a2a; border-radius: 12px; text-align: center;
}
.admin-login-box h1 { color: #fff; margin-bottom: 24px; }
.admin-login-box .error { color: #f44336; margin-bottom: 16px; font-size: 0.9rem; }
.admin-login-box input {
    width: 100%; padding: 12px; background: #1a1a1a; border: 1px solid #333;
    border-radius: 6px; color: #e0e0e0; font-size: 1rem; margin-bottom: 16px;
}

/* Upload area */
.upload-area {
    border: 2px dashed #333; border-radius: 12px; padding: 40px; text-align: center;
    cursor: pointer; transition: border-color 0.2s; margin-bottom: 24px;
}
.upload-area:hover, .upload-area.dragover { border-color: #e8590c; }
.upload-area p { color: #888; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.photo-card { position: relative; background: #1a1a1a; border-radius: 8px; overflow: hidden; }
.photo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.photo-card-actions {
    padding: 8px; display: flex; justify-content: space-between; align-items: center;
}
.photo-card-actions input {
    background: transparent; border: 1px solid #333; color: #ccc;
    padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; width: 65%;
}
.photo-card-actions button {
    background: #c62828; color: #fff; border: none; padding: 4px 10px;
    border-radius: 4px; cursor: pointer; font-size: 0.8rem;
}
.photo-card-actions button:hover { background: #e53935; }

/* Contact list admin */
.contact-list-item {
    padding: 16px 0; border-bottom: 1px solid #2a2a2a;
    display: grid; grid-template-columns: 1fr auto; gap: 12px;
}
.contact-list-item:last-child { border-bottom: none; }
.contact-list-item.unread { border-left: 3px solid #e8590c; padding-left: 12px; }
.contact-meta { font-size: 0.85rem; color: #888; margin-bottom: 4px; }
.contact-meta strong { color: #fff; }
.contact-msg { color: #ccc; font-size: 0.95rem; }
.contact-actions { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.contact-actions button {
    background: none; border: 1px solid #333; color: #bbb; padding: 4px 10px;
    border-radius: 4px; cursor: pointer; font-size: 0.8rem;
}
.contact-actions button:hover { border-color: #e8590c; color: #e8590c; }
.contact-actions button.del:hover { border-color: #c62828; color: #c62828; }
/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
    background: #222; border: 1px solid #2a2a2a; border-radius: 10px;
    margin-bottom: 12px; overflow: hidden; transition: border-color 0.2s;
}
.faq-item[open] { border-color: #e8590c; }
.faq-question {
    padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 1.05rem;
    color: #fff; list-style: none; display: flex; align-items: center;
    justify-content: space-between; gap: 16px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+'; font-size: 1.4rem; color: #e8590c; flex-shrink: 0;
    transition: transform 0.2s;
}
.faq-item[open] .faq-question::after { content: '\2212'; }
.faq-answer { padding: 0 24px 20px; color: #bbb; line-height: 1.7; }
.faq-answer p { margin: 0; }
