:root {
  --brand: #a65c2a;
  --brand-dark: #23160d;
  --brand-soft: #f8efe8;
  --brand-soft-2: #fff8f1;
  --green: #4f7e46;
  --blue: #286f9f;
  --warning: #d98f2b;
  --danger: #b94141;
  --muted: #6f625a;
  --line: #ead9cc;
  --white: #ffffff;
  --shadow: 0 14px 38px rgba(35, 22, 13, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: linear-gradient(180deg, #fffdfb 0%, #fff8f1 100%);
  color: var(--brand-dark);
  direction: rtl;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
  font-family: inherit;
}
.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}
.section { padding: 56px 0; }
.section-sm { padding: 30px 0; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid rgba(166, 92, 42, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.card.soft { background: linear-gradient(180deg, #fffdfc 0%, #fdf4ee 100%); }
.card.flat { box-shadow: none; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.topbar {
  background: var(--brand-dark);
  color: #f3e6dc;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  padding: 12px 0;
}
.navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 252, 248, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(166, 92, 42, 0.08);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.brand img { width: 48px; height: 48px; }
.brand small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}
.nav-links a.is-active,
.nav-links a:hover {
  color: var(--brand-dark);
  background: rgba(166, 92, 42, 0.08);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 16px;
  font-weight: 700;
  transition: 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-dark { background: var(--brand-dark); color: #fff; }
.btn-light { background: rgba(166, 92, 42, 0.08); color: var(--brand-dark); }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(166, 92, 42, 0.2);
  color: var(--brand-dark);
}
.btn-success { background: var(--green); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-small { padding: 10px 14px; font-size: 13px; border-radius: 12px; }
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 42px;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(166, 92, 42, 0.08);
  filter: blur(10px);
}
.hero::before {
  width: 280px; height: 280px; top: -80px; left: -60px;
}
.hero::after {
  width: 360px; height: 360px; bottom: -160px; right: -120px;
}
.hero-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.2;
}
.hero p.lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.95;
}
.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.pill {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(166, 92, 42, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--brand-dark);
}
.hero-visual {
  position: relative;
}
.hero-visual .card { padding: 16px; }
.hero-media {
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff2e6 0%, #fce7d7 100%);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.kpi {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(166, 92, 42, 0.08);
}
.kpi strong { font-size: 28px; display: block; margin-bottom: 8px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.section-heading h2 {
  margin: 0;
  font-size: 30px;
}
.section-heading p { margin: 0; color: var(--muted); max-width: 660px; line-height: 1.9; }
.product-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 14px;
}
.product-card h3,
.plan-card h3,
.card h3 { margin: 0 0 10px; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.meta {
  background: var(--brand-soft);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.price {
  font-size: 24px;
  font-weight: 700;
}
.price small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.plan-card.featured {
  outline: 2px solid rgba(166, 92, 42, 0.2);
  background: linear-gradient(180deg, #fffdfc 0%, #fff2e7 100%);
}
.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-clean li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(166, 92, 42, 0.12);
}
.list-clean li:last-child { border-bottom: 0; }
.check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(79,126,70,0.12);
  color: var(--green);
  font-weight: 700;
}
.faq-item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(166, 92, 42, 0.1);
}
.faq-item h3 { margin: 0 0 10px; font-size: 18px; }
.faq-item p { margin: 0; color: var(--muted); line-height: 1.9; }
.testimonial {
  position: relative;
  background: linear-gradient(180deg, #fffdfc 0%, #fff4eb 100%);
}
.testimonial::before {
  content: '”';
  position: absolute;
  left: 24px;
  top: 16px;
  font-size: 70px;
  color: rgba(166,92,42,0.12);
  line-height: 1;
}
.alert {
  padding: 14px 18px;
  border-radius: 18px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}
.alert-success { background: rgba(79,126,70,0.12); color: var(--green); border-color: rgba(79,126,70,0.18); }
.alert-error { background: rgba(185,65,65,0.12); color: var(--danger); border-color: rgba(185,65,65,0.18); }
.alert-info { background: rgba(40,111,159,0.12); color: var(--blue); border-color: rgba(40,111,159,0.18); }
.alert-warning { background: rgba(217,143,43,0.12); color: #996300; border-color: rgba(217,143,43,0.18); }
.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: 14px; }
input, select, textarea {
  width: 100%;
  border: 1px solid rgba(166, 92, 42, 0.16);
  background: #fff;
  color: var(--brand-dark);
  border-radius: 14px;
  padding: 14px 15px;
  outline: none;
  transition: 0.2s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(166, 92, 42, 0.5);
  box-shadow: 0 0 0 4px rgba(166, 92, 42, 0.08);
}
textarea { min-height: 120px; resize: vertical; }
.help { color: var(--muted); font-size: 12px; line-height: 1.8; }
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge-success { background: rgba(79,126,70,0.14); color: var(--green); }
.badge-warning { background: rgba(217,143,43,0.18); color: #996300; }
.badge-danger { background: rgba(185,65,65,0.14); color: var(--danger); }
.badge-info { background: rgba(40,111,159,0.14); color: var(--blue); }
.badge-muted { background: rgba(111,98,90,0.12); color: var(--muted); }
.table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(166, 92, 42, 0.1);
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #fff;
}
.table th, .table td {
  padding: 15px 14px;
  border-bottom: 1px solid rgba(166, 92, 42, 0.08);
  text-align: right;
  vertical-align: middle;
}
.table th { background: #fff8f1; color: var(--muted); font-size: 13px; }
.table tr:hover td { background: rgba(166, 92, 42, 0.03); }
.dashboard-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  padding: 26px 0 52px;
}
.sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
}
.sidebar .card { padding: 18px; }
.sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  border-radius: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}
.sidebar a:hover,
.sidebar a.is-active {
  background: rgba(166, 92, 42, 0.08);
  color: var(--brand-dark);
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.summary-card strong {
  font-size: 30px;
  display: block;
  margin: 8px 0 4px;
}
.empty {
  padding: 24px;
  border-radius: 18px;
  background: var(--brand-soft-2);
  border: 1px dashed rgba(166, 92, 42, 0.18);
  color: var(--muted);
}
.footer {
  background: var(--brand-dark);
  color: #f0e1d6;
  padding: 40px 0 22px;
  margin-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 16px;
}
.footer h4 { margin-top: 0; }
.footer a { color: #f0e1d6; opacity: 0.88; }
.footer a:hover { opacity: 1; }
.copybar {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: rgba(240,225,214,0.8);
}
.mobile-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 0;
  background: rgba(166, 92, 42, 0.08);
}
.hidden { display: none !important; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form > * { flex: 1 1 160px; }
.stacked > * + * { margin-top: 14px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: 13px; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand);
  font-weight: 700;
}
.coverage-box {
  background: linear-gradient(180deg, #fffdfc 0%, #fff6ee 100%);
}
.stat-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(166, 92, 42, 0.12);
}
.stat-line:last-child { border-bottom: 0; }
@media (max-width: 1080px) {
  .hero-grid,
  .dashboard-shell,
  .footer-grid,
  .grid-4,
  .summary-grid,
  .kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 780px) {
  .navbar-inner { flex-wrap: wrap; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #fffaf6;
    border: 1px solid rgba(166, 92, 42, 0.08);
    border-radius: 18px;
    padding: 12px;
  }
  .nav-links.open { display: flex; }
  .nav-actions { width: 100%; justify-content: stretch; }
  .nav-actions .btn { flex: 1; }
  .hero-grid,
  .footer-grid,
  .dashboard-shell,
  .summary-grid,
  .kpis,
  .grid-4,
  .grid-3,
  .grid-2,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .section { padding: 40px 0; }
  .hero { padding-top: 32px; }
  .hero p.lead { font-size: 15px; }
  .section-heading { align-items: start; flex-direction: column; }
  .card { padding: 18px; }
}
