:root {
  --bg: #101317;
  --bg2: #171d23;
  --panel: #202830;
  --panel2: #27313a;
  --text: #f4f1ea;
  --muted: #b7b0a6;
  --line: rgba(255,255,255,.13);
  --orange: #f07b22;
  --gold: #d8a341;
  --blue: #86b7ff;
  --max: 1160px;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(16,19,23,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 22px; font-weight: 900; letter-spacing: 0; color: var(--text); }
.nav nav { display: flex; align-items: center; gap: 20px; color: var(--muted); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.nav nav a:hover { color: var(--orange); }

.hero { min-height: 650px; display: flex; align-items: center; background: linear-gradient(90deg, rgba(16,19,23,.96), rgba(16,19,23,.82), rgba(16,19,23,.38)), url("https://YOUR-DOMAIN.com/uploads/kashiautoexport-hero-trucks.jpg") center right / cover no-repeat; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 90px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 42px; height: 3px; background: var(--orange); }
h1 { margin: 16px 0 20px; font-size: clamp(38px, 6vw, 68px); line-height: 1.02; text-transform: uppercase; }
h2 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 42px); line-height: 1.1; text-transform: uppercase; }
h3 { margin: 0 0 10px; line-height: 1.2; }
.hero p, .section-head p, .lead { color: #d8d1c7; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 4px; font-size: 14px; font-weight: 900; text-transform: uppercase; border: 1px solid transparent; cursor: pointer; }
.btn-orange { background: var(--orange); color: #160e08; }
.btn-dark { background: rgba(255,255,255,.07); color: var(--text); border-color: var(--line); }

.keyword-panel { padding: 24px; border: 1px solid var(--line); background: rgba(32,40,48,.82); border-radius: 8px; }
.keyword-panel h2 { font-size: 22px; }
.keyword-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.keyword-cloud span { padding: 8px 10px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.07); color: #e9dfd4; font-size: 13px; font-weight: 800; border-radius: 999px; }

.section { padding: 78px 0; border-top: 1px solid rgba(255,255,255,.06); }
.alt { background: var(--bg2); }
.ad-section { padding: 28px 0; background: #0d1013; border-top: 1px solid rgba(255,255,255,.06); }
.partner-ad { display: block; width: min(760px, 100%); margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); box-shadow: 0 14px 34px rgba(0,0,0,.22); }
.partner-ad img { display: block; width: 100%; height: 112px; object-fit: cover; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 28px; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.category-card { min-height: 142px; padding: 18px; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; display: grid; align-content: space-between; }
.category-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.category-card b { font-size: 18px; text-transform: uppercase; }
.category-card span { color: var(--muted); font-size: 13px; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card { border: 1px solid var(--line); background: var(--panel); border-radius: 8px; overflow: hidden; }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: #313a44; }
.post-body { padding: 20px; }
.post-category { display: inline-flex; color: var(--gold); font-size: 12px; font-weight: 900; text-transform: uppercase; margin-bottom: 10px; }
.post-body h3 { font-size: 21px; text-transform: uppercase; }
.post-body p { color: var(--muted); }
.post-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 800; }
.post-meta a, .back-link { color: var(--orange); font-weight: 900; text-transform: uppercase; }

.seo-band { background: #0d1013; }
.seo-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.page-hero { padding: 92px 0 58px; background: linear-gradient(90deg, rgba(16,19,23,.96), rgba(16,19,23,.58)), url("https://YOUR-DOMAIN.com/uploads/kashiautoexport-road.jpg") center / cover no-repeat; border-bottom: 1px solid var(--line); }
.article { max-width: 900px; }
.article h1 { font-size: clamp(34px, 5vw, 58px); }
.article-cover { width: 100%; max-height: 460px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; background: #313a44; margin: 20px 0 30px; }
.article-html { font-size: 18px; color: #e7e1d8; }
.article-html h2, .article-html h3 { margin-top: 34px; }
.article-html a { color: var(--blue); text-decoration: underline; }
.article-html table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.article-html th, .article-html td { border: 1px solid var(--line); padding: 10px; }
.article-tags { margin-top: 28px; }
.empty { color: var(--muted); }

.footer { padding: 48px 0; background: #0b0d10; color: var(--muted); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer h3 { color: var(--text); text-transform: uppercase; }
.footer a, .footer p { display: block; color: var(--muted); margin: 0 0 9px; }

.admin-body { background: #11161b; }
.admin-header { min-height: 64px; padding: 0 22px; display: flex; justify-content: space-between; align-items: center; background: #0b0d10; border-bottom: 1px solid var(--line); }
.admin-header a { font-weight: 900; }
.admin-header nav { display: flex; gap: 16px; color: var(--muted); }
.admin-main { width: min(1180px, calc(100% - 32px)); margin: 26px auto 80px; }
.admin-card { padding: 22px; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; margin-bottom: 22px; }
.admin-login { min-height: 100vh; display: grid; place-items: center; }
.admin-login .admin-card { width: min(430px, calc(100% - 32px)); }
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.full { grid-column: 1 / -1; }
label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 900; text-transform: uppercase; }
input, select, textarea { width: 100%; min-height: 46px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 4px; background: #0f1215; color: var(--text); font: inherit; }
textarea[name="body_html"] { font-family: Consolas, Monaco, monospace; line-height: 1.55; }
.admin-btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 0; border-radius: 4px; background: var(--orange); color: #160e08; font-weight: 900; cursor: pointer; }
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.admin-stat { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.admin-stat b { display: block; font-size: 42px; color: var(--gold); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-error { color: #ff9a9a; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; min-height: auto; }

@media (max-width: 900px) {
  .nav nav { display: none; }
  .hero-grid, .post-grid, .footer-grid, .seo-grid, .admin-grid { grid-template-columns: 1fr 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 24px, var(--max)); }
  .hero { min-height: auto; }
  .hero-grid, .post-grid, .footer-grid, .seo-grid, .admin-grid, .admin-form, .category-grid { grid-template-columns: 1fr; }
  .full { grid-column: auto; }
  h1 { font-size: 36px; }
  .partner-ad img { height: 86px; }
}
