:root{
  --brand:#f59e0b;
  --brand-dark:#d97706;
  --brand-soft:#fff4db;
  --brand-soft-2:#fffbf2;

  --bg:#fffdf8;
  --bg-alt:#fffaf0;
  --card:#ffffff;
  --card-soft:#fffaf0;

  --text:#1f2937;
  --ink:#111827;
  --muted:#6b7280;
  --line:#f1e7d0;

  --success-bg:#ecfdf3;
  --success-text:#166534;
  --success-line:#bbf7d0;

  --danger-bg:#fef2f2;
  --danger-text:#991b1b;
  --danger-line:#fecaca;

  --info-bg:#eff6ff;
  --info-text:#1d4ed8;
  --info-line:#bfdbfe;

  --warning-bg:#fff7ed;
  --warning-text:#c2410c;
  --warning-line:#fed7aa;

  --shadow-sm:0 8px 24px rgba(17,24,39,.05);
  --shadow-md:0 16px 40px rgba(17,24,39,.08);
  --shadow-lg:0 24px 70px rgba(17,24,39,.10);

  --radius-sm:12px;
  --radius:18px;
  --radius-lg:26px;

  --max:1180px;
  --trans:.22s ease;
}

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, #fff8e8 0%, transparent 30%),
    linear-gradient(180deg, #fffdf8 0%, #fffaf2 100%);
  color:var(--text);
  line-height:1.65;
}

img{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

.container{
  width:min(var(--max), calc(100% - 32px));
  margin:0 auto;
}

.section{
  padding:72px 0;
}

.section-sm{
  padding:48px 0;
}

h1,h2,h3,h4,h5,h6{
  margin:0 0 14px;
  color:var(--ink);
  line-height:1.15;
}

h1{
  font-size:clamp(2.25rem, 5vw, 4.2rem);
  letter-spacing:-0.03em;
}

h2{
  font-size:clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing:-0.025em;
}

h3{
  font-size:1.2rem;
}

p{
  margin:0 0 14px;
}

.lead{
  font-size:1.08rem;
  color:var(--muted);
  max-width:760px;
}

.kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.9);
  box-shadow:var(--shadow-sm);
  color:var(--brand-dark);
  font-size:.82rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:48px;
  padding:0 20px;
  border:1px solid transparent;
  border-radius:14px;
  font-weight:800;
  font-size:.96rem;
  cursor:pointer;
  transition:var(--trans);
  text-decoration:none;
  white-space:nowrap;
}

.btn:hover{
  transform:translateY(-2px);
}

.btn-primary{
  background:linear-gradient(135deg, #f59e0b, #fb923c);
  color:#fff;
  box-shadow:0 12px 30px rgba(245,158,11,.28);
}

.btn-primary:hover{
  opacity:.98;
}

.btn-secondary{
  background:#fff;
  color:var(--ink);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}

.btn-secondary:hover{
  background:var(--brand-soft-2);
}

.btn-outline{
  background:#fff;
  color:var(--ink);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}

.btn-outline:hover{
  background:var(--brand-soft-2);
}

.actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:20px;
}

.card{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(241,231,208,.9);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  padding:26px;
  backdrop-filter:blur(8px);
}

.card.soft{
  background:linear-gradient(180deg, #fffdf9 0%, #fff8ec 100%);
}

.grid-2{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:22px;
}

.grid-3{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:22px;
}

.grid-4{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:18px;
}

/* HERO */
.hero{
  padding:28px 0 24px;
}

.hero-card{
  position:relative;
  overflow:hidden;
  min-height:580px;
  border-radius:30px;
  border:1px solid rgba(255,255,255,.8);
  box-shadow:var(--shadow-lg);
  background:#f8fafc;
}

.hero-card > img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(17,24,39,.76) 0%, rgba(17,24,39,.52) 38%, rgba(17,24,39,.18) 70%, rgba(17,24,39,.10) 100%);
}

.hero-copy{
  position:relative;
  z-index:2;
  max-width:700px;
  padding:72px 58px;
  color:#fff;
}

.hero-copy h1{
  color:#fff;
  margin-bottom:18px;
}

.hero-copy p{
  font-size:1.08rem;
  color:rgba(255,255,255,.9);
  max-width:620px;
}

.meta-strip{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}

.meta-strip span{
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  font-weight:700;
  font-size:.9rem;
  backdrop-filter:blur(10px);
}

/* PAGE HERO */
.page-hero{
  padding:26px 0 18px;
}

.page-hero-wrap{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:28px;
  align-items:center;
  padding:32px;
  background:linear-gradient(135deg, #fff8e7 0%, #fffdf8 40%, #ffffff 100%);
  border:1px solid var(--line);
  border-radius:28px;
  box-shadow:var(--shadow-md);
}

.page-hero-copy h1{
  margin-bottom:14px;
}

.page-hero-copy p{
  color:var(--muted);
  font-size:1.06rem;
  max-width:620px;
}

.page-photo{
  position:relative;
  overflow:hidden;
  min-height:360px;
  border-radius:24px;
  background:#f8fafc;
  box-shadow:var(--shadow-sm);
}

.page-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}

/* HOME INLINE */
.hero-inline{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  align-items:start;
}

.quote-box{
  background:linear-gradient(180deg, #fffdf8 0%, #fff7e8 100%);
  border:1px solid var(--line);
  border-radius:24px;
  padding:28px;
  box-shadow:var(--shadow-sm);
}

/* CTA BAND */
.cta-band{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:28px 30px;
  border-radius:24px;
  background:linear-gradient(135deg, #fff6e3 0%, #fffdf8 100%);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}

/* LISTS */
.info-list{
  padding:0;
  margin:18px 0 0;
  list-style:none;
  display:grid;
  gap:12px;
}

.info-list li{
  position:relative;
  padding:14px 16px 14px 44px;
  border-radius:14px;
  background:rgba(255,255,255,.74);
  border:1px solid var(--line);
}

.info-list li::before{
  content:"✓";
  position:absolute;
  left:16px;
  top:13px;
  width:18px;
  height:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  color:var(--brand-dark);
}

/* FORMS */
.form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:18px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.field.full,
.full{
  grid-column:1 / -1;
}

label{
  font-size:.93rem;
  font-weight:700;
  color:var(--ink);
}

input,
select,
textarea{
  width:100%;
  min-height:50px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  padding:14px 15px;
  font:inherit;
  color:var(--text);
  outline:none;
  transition:var(--trans);
}

textarea{
  min-height:140px;
  resize:vertical;
}

input:focus,
select:focus,
textarea:focus{
  border-color:#fbbf24;
  box-shadow:0 0 0 4px rgba(245,158,11,.12);
}

/* ALERTS */
.alert{
  margin-bottom:18px;
  padding:14px 16px;
  border-radius:14px;
  font-weight:600;
}

.alert-success{
  background:var(--success-bg);
  color:var(--success-text);
  border:1px solid var(--success-line);
}

.alert-error{
  background:var(--danger-bg);
  color:var(--danger-text);
  border:1px solid var(--danger-line);
}

/* FLASH */
.flash{
  margin-bottom:18px;
  padding:14px 16px;
  border-radius:14px;
  font-weight:600;
}

.flash-success{
  background:var(--success-bg);
  color:var(--success-text);
  border:1px solid var(--success-line);
}

.flash-error{
  background:var(--danger-bg);
  color:var(--danger-text);
  border:1px solid var(--danger-line);
}

/* TABLES */
.table-wrap{
  overflow:auto;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow-sm);
}

table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
}

th,
td{
  padding:14px 16px;
  text-align:left;
  border-bottom:1px solid #f7ead1;
  vertical-align:top;
}

th{
  background:#fff9ee;
  color:var(--ink);
  font-size:.92rem;
}

tr:hover td{
  background:#fffdf8;
}

/* BADGES */
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:#fff7e8;
  border:1px solid var(--line);
  font-size:.84rem;
  font-weight:800;
  color:var(--brand-dark);
}

.badge-green{
  background:#ecfdf3;
  border-color:#bbf7d0;
  color:#166534;
}

.badge-red{
  background:#fef2f2;
  border-color:#fecaca;
  color:#991b1b;
}

.badge-blue,
.badge-info{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1d4ed8;
}

.badge-warning{
  background:#fff7ed;
  border-color:#fed7aa;
  color:#c2410c;
}

/* STATS */
.stat-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:18px;
}

.stat{
  padding:24px;
  border-radius:22px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}

.stat .label{
  color:var(--muted);
  font-size:.9rem;
  font-weight:700;
  margin-bottom:8px;
}

.stat .value{
  font-size:2rem;
  font-weight:900;
  color:var(--ink);
}

.kpis{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:18px;
}

.kpi{
  padding:24px;
  border-radius:22px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}

.kpi .num{
  font-size:2rem;
  font-weight:900;
  color:var(--ink);
  margin-top:8px;
}

/* BLOG */
.post-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:22px;
}

.post-card{
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow-sm);
  transition:var(--trans);
}

.post-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-md);
}

.post-thumb{
  aspect-ratio:16/10;
  background:#f6f7fb;
}

.post-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.post-body{
  padding:22px;
}

.post-body p{
  color:var(--muted);
}

/* SIMPLE PRICING */
.price-card{
  padding:28px;
  border-radius:24px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}

.price{
  font-size:2rem;
  font-weight:900;
  color:var(--brand-dark);
  margin:12px 0 14px;
}

/* ADMIN */
.admin-shell{
  display:grid;
  grid-template-columns:280px 1fr;
  min-height:100vh;
}

.admin-sidebar{
  background:#fff;
  border-right:1px solid var(--line);
  padding:26px 20px;
}

.admin-content{
  padding:28px;
  background:linear-gradient(180deg, #fffdf8 0%, #fff9ef 100%);
}

.admin-nav{
  display:grid;
  gap:8px;
  margin-top:18px;
}

.admin-nav a{
  padding:12px 14px;
  border-radius:12px;
  font-weight:700;
  color:var(--muted);
}

.admin-nav a:hover,
.admin-nav a.active{
  background:var(--brand-soft);
  color:var(--brand-dark);
}

/* FOOTER LINKS */
.footer-links{
  display:grid;
  gap:10px;
}

.footer-links a{
  color:var(--muted);
}

.footer-links a:hover{
  color:var(--brand-dark);
}

/* UTILITY */
.text-muted{
  color:var(--muted);
}

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

.empty{
  text-align:center;
  color:var(--muted);
  padding:24px 16px;
}

code{
  background:#fff7e8;
  border:1px solid var(--line);
  padding:2px 6px;
  border-radius:8px;
  font-size:.9em;
}

.mt-0{ margin-top:0; }
.mt-1{ margin-top:8px; }
.mt-2{ margin-top:16px; }
.mt-3{ margin-top:24px; }
.mt-4{ margin-top:32px; }

.mb-0{ margin-bottom:0; }
.mb-1{ margin-bottom:8px; }
.mb-2{ margin-bottom:16px; }
.mb-3{ margin-bottom:24px; }
.mb-4{ margin-bottom:32px; }

/* RESPONSIVE */
@media (max-width: 1100px){
  .grid-4,
  .stat-grid,
  .kpis{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }

  .post-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 900px){
  .grid-3,
  .grid-2,
  .hero-inline,
  .page-hero-wrap,
  .form-grid,
  .post-grid{
    grid-template-columns:1fr;
  }

  .hero-card{
    min-height:auto;
  }

  .hero-copy{
    padding:38px 24px 42px;
  }

  .page-hero-wrap{
    padding:20px;
  }

  .page-photo{
    min-height:240px;
  }

  .cta-band{
    flex-direction:column;
    align-items:flex-start;
  }

  .admin-shell{
    grid-template-columns:1fr;
  }

  .admin-sidebar{
    border-right:none;
    border-bottom:1px solid var(--line);
  }
}

@media (max-width: 640px){
  .container{
    width:min(var(--max), calc(100% - 22px));
  }

  .section{
    padding:56px 0;
  }

  .hero{
    padding:18px 0 10px;
  }

  .hero-card{
    border-radius:22px;
  }

  .hero-copy{
    padding:28px 18px 32px;
  }

  .page-hero{
    padding:18px 0 10px;
  }

  .page-hero-wrap{
    border-radius:22px;
  }

  .card,
  .quote-box,
  .price-card,
  .stat,
  .kpi{
    padding:20px;
  }

  .btn{
    width:100%;
  }

  .actions{
    flex-direction:column;
    align-items:stretch;
  }

  .meta-strip{
    gap:8px;
  }

  .meta-strip span{
    font-size:.82rem;
    padding:8px 12px;
  }

  .kpis,
  .stat-grid,
  .grid-4{
    grid-template-columns:1fr;
  }
}