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

:root {
    --bg: #0d1114;
    --card: #171c21;
    --text: #f3f4f1;
    --gray: #9aa5af;
    --yellow: #f5b400;
}

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

body { background: var(--bg); color: var(--text); font-family: Inter, sans-serif; }

/* HEADER */
header { height: 45vh; position: relative; display: flex; justify-content: center; align-items: center; text-align: center; overflow: hidden; }
header::before { content: ""; position: absolute; inset: 0; background: url("../images/craneback.png") center/cover; filter: brightness(.3); }
header div { position: relative; z-index: 2; }
h1 { font-family: 'Bebas Neue'; font-size: 90px; letter-spacing: 4px; }
header p { font-size: 20px; color: #ddd; }

/* NAV BAR */
.navbar { background: #0d1114; border-bottom: 1px solid #222; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; height: 60px; position: sticky; top: 0; z-index: 100; }
.navbar-left { display: flex; align-items: center; gap: 40px; }
.navbar-right { display: flex; align-items: center; }
.navbar .logo { font-family: 'Bebas Neue'; font-size: 24px; color: var(--text); text-decoration: none; letter-spacing: .05em; }
.navbar .logo span { color: var(--yellow); }
.navbar .nav-links { display: flex; gap: 6px; }
.navbar .nav-links a { color: var(--text); text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .1em; padding: 8px 16px; border: 1px solid transparent; transition: .2s; }
.navbar .nav-links a:hover { border-color: var(--yellow); color: var(--yellow); }
.navbar .nav-links a.active { background: var(--yellow); color: #111; border-color: var(--yellow); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4px; width: 34px; height: 34px; background: none; border: 1px solid #3a444d; border-radius: 8px; padding: 0; cursor: pointer; flex-shrink: 0; }
.nav-toggle span { display: block; width: 16px; height: 2px; background: var(--text); }

/* ACCOUNT MENU */
.corner-login { display: inline-block; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .05em; padding: 8px 18px; border: 1px solid #3a444d; border-radius: 50px; transition: .2s; }
.corner-login:hover { border-color: var(--yellow); color: var(--yellow); }
.account-menu { position: relative; }
.account-toggle { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid #3a444d; border-radius: 50px; padding: 5px 12px 5px 5px; color: var(--text); cursor: pointer; font-size: 13px; font-weight: 700; box-shadow: none; transition: .2s; }
.account-toggle:hover { border-color: var(--yellow); background: none; transform: none; box-shadow: none; }
.account-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: #111; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.account-caret { font-size: 10px; opacity: .6; transition: transform .2s; }
.account-menu.open .account-caret { transform: rotate(180deg); }
.account-dropdown { position: absolute; top: calc(100% + 10px); right: 0; min-width: 190px; background: #171c21; border: 1px solid #2a3238; border-radius: 12px; padding: 10px; box-shadow: 0 15px 40px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .2s; z-index: 50; }
.account-menu.open .account-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.account-dropdown .account-name { padding: 8px 12px; font-size: 12px; color: var(--gray); border-bottom: 1px solid #2a3238; margin-bottom: 6px; }
.account-dropdown a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; transition: .15s; }
.account-dropdown a:hover { background: rgba(245,180,0,.12); color: var(--yellow); }

/* BACK BUTTON */
.back { position: absolute; top: 30px; left: 40px; z-index: 5; }
.back a { color: white; text-decoration: none; border: 1px solid rgba(255,255,255,.3); padding: 12px 20px; transition: .3s; }
.back a:hover { background: var(--yellow); color: #111; }

/* LANG SWITCHER */
.langs { display: flex; gap: 12px; position: absolute; top: 24px; right: 24px; z-index: 10; }
.langs a { font-size: 13px; font-weight: 700; text-decoration: none; opacity: 0.5; transition: opacity .2s, transform .2s; color: #f3f4f1; letter-spacing: .08em; }
.langs a:hover { opacity: 1; transform: scale(1.1); }
.langs a.active { opacity: 1; color: var(--yellow); }

/* FOOTER */
footer { margin-top: 90px; padding: 35px; text-align: center; border-top: 1px solid #222; color: #777; }

/* ABOUT */
.container { width: 90%; max-width: 1200px; margin: 80px auto; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about img { width: 100%; border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.about h2 { font-size: 42px; margin-bottom: 25px; }
.about p { color: var(--gray); line-height: 1.8; margin-bottom: 20px; }
.stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 25px; margin-top: 70px; }
.box { background: var(--card); padding: 35px; border-radius: 12px; transition: .3s; border: 1px solid #222; }
.box:hover { transform: translateY(-8px); border-color: var(--yellow); }
.box h3 { font-size: 48px; color: var(--yellow); margin-bottom: 10px; }
.box p { color: var(--gray); }
.advantages { margin-top: 90px; }
.advantages h2 { text-align: center; font-size: 48px; margin-bottom: 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(250px,1fr)); gap: 30px; }
.card { background: var(--card); padding: 40px; border-radius: 12px; text-align: center; transition: .3s; }
.card:hover { transform: translateY(-8px); }
.icon { font-size: 50px; margin-bottom: 20px; }
.card h3 { margin-bottom: 15px; }
.card p { color: var(--gray); }

/* GALLERY */
.gallery { width: 92%; max-width: 1400px; margin: 80px auto; display: grid; grid-template-columns: repeat(auto-fit,minmax(360px,1fr)); gap: 35px; }
.gallery .card { text-align: left; padding: 0; overflow: hidden; border-radius: 20px; box-shadow: 0 15px 40px rgba(0,0,0,.35); }
.gallery .card:hover { box-shadow: 0 22px 55px rgba(0,0,0,.5); }
.image { overflow: hidden; }
.image img { width: 100%; height: 280px; object-fit: cover; display: block; transition: .5s; }
.gallery .card:hover img { transform: scale(1.08); }
.info { padding: 28px; }
.brand { font-family: 'Bebas Neue'; font-size: 40px; margin-bottom: 10px; }
.specs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.spec { background: #23292f; padding: 8px 14px; border-radius: 50px; font-size: 13px; }
.description { color: var(--gray); line-height: 1.7; margin-bottom: 25px; }
.button { display: inline-block; padding: 14px 26px; background: var(--yellow); color: #111; text-decoration: none; font-weight: 700; border-radius: 10px; box-shadow: 0 6px 18px rgba(245,180,0,.25); transition: .25s ease; }
.button:hover { background: white; transform: translateY(-3px); box-shadow: 0 12px 26px rgba(245,180,0,.35); }
.button.ghost { background: transparent; color: var(--yellow); border: 1px solid var(--yellow); box-shadow: none; }
.button.ghost:hover { background: var(--yellow); color: #111; }

/* SERVICES */
.services-container { width: 90%; max-width: 1300px; margin: 80px auto; }
.services { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 35px; }
.services .card { text-align: left; border: 1px solid #222; }
.services .card:hover { border-color: var(--yellow); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.services .card h2 { margin-bottom: 18px; font-size: 30px; }
.services .card p { line-height: 1.8; margin-bottom: 25px; }
.services .card ul { padding-left: 18px; color: var(--gray); line-height: 2; }
.cta { margin-top: 90px; background: linear-gradient(135deg,#171c21,#20272e); border-radius: 16px; padding: 60px; text-align: center; }
.cta h2 { font-size: 48px; margin-bottom: 20px; }
.cta p { color: var(--gray); margin-bottom: 35px; font-size: 18px; }

/* CONTACT */
.contact-container { width: 90%; max-width: 1300px; margin: 80px auto; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-box { background: #1e2530; padding: 45px; border-radius: 14px; border: 1px solid #2e3a47; }
.contact-box h2 { font-size: 36px; margin-bottom: 25px; color: #fff; }
.item { margin-bottom: 25px; }
.item h3 { color: var(--yellow); margin-bottom: 6px; }
.item p { color: #d0d8e0; }
.item a { color: white; text-decoration: none; }
.item a:hover { color: var(--yellow); }
form { display: flex; flex-direction: column; gap: 18px; }
label { font-size: 13px; color: var(--gray); margin-bottom: -10px; }
label span { color: var(--yellow); }
input, textarea { background: #1e2530; border: 1px solid #444; padding: 16px; color: white; font-size: 15px; border-radius: 8px; outline: none; }
input::placeholder, textarea::placeholder { color: #8a9ab0; }
input:focus, textarea:focus { border-color: var(--yellow); }
textarea { height: 180px; resize: none; }
button { padding: 18px; background: var(--yellow); border: none; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(245,180,0,.25); transition: .25s ease; }
button:hover { background: white; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(245,180,0,.35); }
.copy-btn { background: none; border: none; border-radius: 0; box-shadow: none; color: white; cursor: pointer; padding: 0; font-size: inherit; font-family: inherit; transition: .2s; }
.copy-btn:hover { color: var(--yellow); background: none; box-shadow: none; transform: none; }
.copied { color: #4caf50; font-size: 12px; margin-left: 8px; opacity: 0; transition: opacity .3s; }
.copied.show { opacity: 1; }
.login-required-text { color: var(--gray); line-height: 1.7; margin-bottom: 22px; }
.login-required-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.login-required-actions .button { flex: 1; text-align: center; min-width: 140px; }
.map { margin: 80px auto; width: 90%; max-width: 1300px; }
iframe { width: 100%; height: 450px; border: none; border-radius: 14px; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .about { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .contact-container { grid-template-columns: 1fr; }
    h1 { font-size: 60px; }
    .navbar .nav-links a { padding: 8px 10px; font-size: 11px; }
}
@media (max-width: 700px) {
    header { height: 35vh; }
    .gallery { grid-template-columns: 1fr; }
    .cta { padding: 35px; }
    .cta h2 { font-size: 34px; }
    .navbar { padding: 0 16px; }
    .navbar-left { gap: 14px; }
    .nav-toggle { display: flex; }
    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 2px;
        background: #0d1114;
        border-bottom: 1px solid #222;
        padding: 10px 16px 16px;
        box-shadow: 0 15px 30px rgba(0,0,0,.4);
    }
    .navbar.nav-open .nav-links { display: flex; }
    .navbar .nav-links a { padding: 13px 14px; font-size: 13px; }
    .contact-box { padding: 28px; }
    h1 { font-size: 46px; }
    header p { font-size: 16px; }
}

/* AUTH */
.auth-wrap { width: 90%; max-width: 460px; margin: 60px auto 100px; }
.auth-box { margin: 0; }
.auth-tabs { display: flex; gap: 10px; margin-bottom: 30px; }
.auth-tabs a { flex: 1; text-align: center; padding: 12px; text-decoration: none; color: var(--gray); font-weight: 700; font-size: 13px; letter-spacing: .08em; border: 1px solid #444; border-radius: 8px; transition: .2s; }
.auth-tabs a.active { background: var(--yellow); color: #111; border-color: var(--yellow); }

/* BUTTON LINKS (small) */
.button.small, a.button.small, button.small { display: inline-block; width: auto; padding: 10px 18px; font-size: 13px; }

/* DANGER BUTTON */
button.danger, .button.danger { background: #f44336; box-shadow: 0 6px 18px rgba(244,67,54,.25); }
button.danger:hover, .button.danger:hover { background: #ff7a70; box-shadow: 0 12px 26px rgba(244,67,54,.35); }

/* MESSAGE TABLES */
.contact-grid.single { grid-template-columns: minmax(0,1fr); }
.msg-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.msg-table th, .msg-table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid #2e3a47; font-size: 14px; }
.msg-table th { color: var(--gray); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.admin-box-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 10px; flex-wrap: wrap; }
.admin-box-head h2 { margin: 0; }

/* STATUS BADGES */
.status-badge { display: inline-block; padding: 5px 12px; border-radius: 50px; font-size: 12px; font-weight: 700; }
.status-badge.status-new { background: rgba(245,180,0,0.15); color: var(--yellow); border: 1px solid var(--yellow); }
.status-badge.status-answered { background: rgba(76,175,80,0.15); color: #4caf50; border: 1px solid #4caf50; }
.status-badge.status-closed { background: rgba(154,165,175,0.15); color: var(--gray); border: 1px solid var(--gray); }

/* MESSAGE THREAD */
.thread-wrap { width: 90%; max-width: 800px; margin: 60px auto 100px; display: flex; flex-direction: column; gap: 25px; }
.status-form { display: flex; flex-direction: row; gap: 12px; align-items: center; }
.status-form select { background: #1e2530; border: 1px solid #444; color: white; padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.thread { display: flex; flex-direction: column; gap: 16px; }
.bubble { max-width: 80%; padding: 18px 22px; border-radius: 12px; background: var(--card); border: 1px solid #2a3238; }
.bubble-self { align-self: flex-end; background: rgba(245,180,0,0.1); border-color: var(--yellow); }
.bubble-other { align-self: flex-start; }
.bubble-meta { font-size: 12px; color: var(--gray); margin-bottom: 8px; }
.bubble-body { white-space: pre-line; line-height: 1.6; }

@media (max-width: 700px) {
    .msg-table { display: block; overflow-x: auto; }
    .bubble { max-width: 100%; }
}
