@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@600;700;800&display=swap');

:root {
    --ink: #101827;
    --paper: #f4f3ef;
    --accent: #d85b2b;
    --accent-dark: #ad431a;
    --muted: #617083;
    --line: #e8e3db;
    --surface: #ffffff;
    --shadow: 0 18px 45px rgba(16, 24, 39, 0.08);
    --shadow-strong: 0 24px 60px rgba(16, 24, 39, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #f8f7f2 0%, var(--paper) 100%);
    line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar { background: linear-gradient(90deg, #111827, #1f2937); color: #f8fafc; font-size: 0.9rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; gap: 10px; }
.site-header { position: static !important; top: auto !important; z-index: 1; background: rgba(248, 247, 242, 0.94); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(16,24,39,0.06); }
.topbar { position: static !important; }
.nav-bar { position: static !important; display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 16px; }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; font-weight: 800; font-size: 1.1rem; font-family: 'Manrope', Arial, sans-serif; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--accent), #f59e0b); color: white; font-size: 1.2rem; box-shadow: var(--shadow); }
.brand small { display: block; color: var(--muted); font-size: 0.68rem; letter-spacing: 0.2em; font-weight: 700; text-transform: uppercase; }
.brand-light .brand-mark { background: #fff; color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--accent); }
.menu-toggle { display: none; border: 0; background: none; font-size: 1.5rem; }
.button { display: inline-block; padding: 13px 20px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), #ef8a3b); color: white !important; text-decoration: none; font-weight: 700; border: 0; cursor: pointer; box-shadow: 0 10px 25px rgba(216,91,43,0.2); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.button:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(216,91,43,0.24); }
.button.small { padding: 10px 14px; font-size: 0.9rem; }
.button.ghost { background: transparent; color: var(--ink) !important; border: 1px solid var(--line); box-shadow: none; }
.button.ghost:hover { background: #fff; }
.hero { padding: 82px 0 58px; position: relative; background: radial-gradient(circle at top left, rgba(245,158,11,0.16), transparent 28%), linear-gradient(135deg, #0f172a 0%, #111827 45%, #1f2937 100%); color: #f8fafc; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(255,255,255,0.05), transparent 45%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.2rem, 4vw, 3.6rem); margin: 0 0 16px; line-height: 1.08; font-family: 'Manrope', Arial, sans-serif; }
.hero p { color: #e2e8f0; max-width: 680px; font-size: 1.03rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-card { background: rgba(255,255,255,0.13); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.16); border-radius: 26px; padding: 24px; box-shadow: var(--shadow-strong); }
.hero-card h3 { margin: 0 0 10px; font-family: 'Manrope', Arial, sans-serif; }
.hero-card ul { margin: 0; padding-left: 18px; color: #e2e8f0; }
.section { padding: 74px 0; }
.section-header { margin-bottom: 28px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 10px; font-family: 'Manrope', Arial, sans-serif; }
.eyebrow { display: inline-block; color: var(--accent); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 800; margin-bottom: 10px; }
.cards { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .product-card, .admin-card, .stat-card, .download-card, .contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.product-card { display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-strong); }
.product-card img { aspect-ratio: 4/3; object-fit: cover; background: #f3f4f6; }
.card-body { padding: 20px; }
.tag { display: inline-block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.stats { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; }
.stat-card { padding: 20px; border: 1px solid rgba(216,91,43,0.12); }
.stat-card b { display: block; font-size: 1.35rem; color: var(--accent); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.page-hero { padding: 70px 0 44px; background: linear-gradient(90deg, #f8fafc 0%, #eef2ff 100%); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 3vw, 2.8rem); margin: 0 0 10px; font-family: 'Manrope', Arial, sans-serif; }
.form, .admin-form { display: grid; gap: 18px; }
.admin-form .form-cards { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.admin-form .form-card { background: #f8fafc; border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: 0 18px 35px rgba(16, 24, 39, 0.06); }
.admin-form .form-card h3 { margin-top: 0; margin-bottom: 18px; font-size: 1.05rem; letter-spacing: 0.01em; }
.admin-form .form-card .form-grid { display: grid; gap: 18px; }
label { display: grid; gap: 6px; font-weight: 600; }
input, textarea, select, button { font: inherit; }
input, textarea, select { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
textarea { min-height: 110px; resize: vertical; }
.notice, .error { border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; }
.notice { background: #ecfdf3; color: #166534; }
.error { background: #fef2f2; color: #b91c1c; }
.contact-grid { display: grid; gap: 24px; grid-template-columns: 1.15fr 0.85fr; }
.contact-card { padding: 24px; }
.contact-card p { margin: 0 0 12px; }
.download-card { padding: 20px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.download-card a { text-decoration: none; font-weight: 700; }
.site-footer { background: linear-gradient(180deg, #0f172a 0%, #111827 100%); color: #e2e8f0; padding: 60px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 0.9fr; gap: 24px; }
.site-footer a { color: #f8fafc; text-decoration: none; display: block; margin-bottom: 8px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding-top: 28px; margin-top: 28px; border-top: 1px solid rgba(255,255,255,0.14); color: #94a3b8; }
.float-wa { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #25D366; color: white; font-size: 1.6rem; box-shadow: var(--shadow-strong); text-decoration: none; }
.thumb { width: 120px; height: 90px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.admin-page { padding: 30px 0 60px; }
.admin-shell { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.admin-sidebar { background: linear-gradient(180deg, #0f172a 0%, #111827 100%); color: white; border-radius: 28px; padding: 28px; min-height: 80vh; box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18); position: sticky; top: 24px; align-self: start; }
.admin-sidebar-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.sidebar-logo { width: 56px; height: 56px; border-radius: 18px; object-fit: contain; background: #fff; padding: 10px; }
.sidebar-logo.placeholder { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: #1f2937; color: white; font-weight: 700; }
.admin-sidebar-brand strong { display: block; font-size: 1.05rem; letter-spacing: 0.02em; }
.admin-sidebar-brand small { display: block; color: #94a3b8; font-size: 0.8rem; }
.admin-sidebar a { display: block; margin-bottom: 12px; padding: 16px 18px; border-radius: 18px; text-decoration: none; color: white; transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease; font-weight: 600; }
.admin-sidebar a:hover { transform: translateX(2px); background: rgba(255,255,255,0.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.admin-sidebar a.active { background: rgba(255,255,255,0.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.09); }
.logout-link { display: inline-block; margin-top: 24px; color: #f8fafc; opacity: 0.85; font-weight: 600; }
.logout-link:hover { opacity: 1; }
.admin-card { padding: 32px; margin-bottom: 18px; border-radius: 30px; box-shadow: 0 22px 40px rgba(15, 23, 42, 0.08); }
.admin-page main { display: flex; flex-direction: column; gap: 24px; }
.admin-page h1, .admin-page h2 { color: #111827; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.small { font-size: 0.9rem; color: var(--muted); }
.center { text-align: center; }
..brand-logo-wrap {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 18px;
    padding: 8px;
    margin-right: 12px;
    overflow: hidden;
}
.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.sidebar-logo,
.logo-preview {
    max-width: 100%;
    display: block;
    object-fit: contain;
}
.admin-form .form-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.admin-form label { font-weight: 600; }
.admin-form textarea, .admin-form input { min-height: 44px; }
.logo-preview { width: 180px; max-width: 100%; max-height: 180px; border-radius: 18px; margin-top: 14px; border: 1px solid var(--line); box-shadow: 0 12px 24px rgba(16, 24, 39, 0.08); background: #fff; padding: 10px; }
.button { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.button:hover { transform: translateY(-1px); }
@media (max-width: 920px) {
    .cards, .stats, .contact-grid, .split, .footer-grid, .hero-grid { grid-template-columns: 1fr; }
    .admin-form .form-grid { grid-template-columns: 1fr; }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { width: 100%; }
}
@media (max-width: 760px) {
    .menu-toggle { display: inline-block; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; right: 16px; background: white; padding: 16px; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
    .nav-links.open { display: flex; }
    .topbar-inner, .footer-bottom { flex-direction: column; align-items: flex-start; }
    .admin-shell { grid-template-columns: 1fr; }
}
