:root {
  --bg: #f6efe3;
  --bg-soft: #fbf8f2;
  --primary: #7a4d2d;
  --primary-dark: #5b341b;
  --accent: #ef5a4f;
  --text: #3b2c24;
  --muted: #7f6d61;
  --line: #e7d8c3;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(88, 54, 28, 0.10);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Tahoma", "Arial", sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff4ef; color: var(--accent); border: 1px solid #ffd0cb;
  padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 700;
}
.title { font-size: clamp(30px, 4vw, 54px); line-height: 1.2; margin: 18px 0; }
.subtitle { color: var(--muted); line-height: 1.9; font-size: 17px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; line-height: 1.8; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; cursor: pointer; border-radius: 999px; padding: 14px 24px;
  font-weight: 700; transition: .25s ease; font-size: 15px;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: rgba(122,77,45,.08); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(.95); }

.topbar {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px); background: rgba(246, 239, 227, .9);
  border-bottom: 1px solid rgba(122, 77, 45, .12);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img {
  width: 58px; height: 58px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(122,77,45,.12);
}
.brand-text strong { display: block; font-size: 22px; }
.brand-text span { color: var(--muted); font-size: 14px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--text); font-weight: 700; font-size: 15px; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); cursor: pointer;
}

.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center;
}
.hero-card {
  background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.7));
  border: 1px solid rgba(122,77,45,.1); border-radius: 34px; padding: 34px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-card::after {
  content: ""; position: absolute; inset: auto -60px -60px auto; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(122,77,45,.10), transparent 70%);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.meta-box {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 18px;
}
.meta-box strong { font-size: 26px; color: var(--primary); display: block; margin-bottom: 6px; }
.meta-box span { color: var(--muted); font-size: 14px; }
.hero-visual {
  display: grid; gap: 16px;
}
.visual-main, .visual-side {
  background: var(--white); border-radius: 30px; padding: 16px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.visual-main img { border-radius: 24px; aspect-ratio: 1 / 1; object-fit: cover; }
.visual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.visual-side img { border-radius: 20px; aspect-ratio: 1 / 1; object-fit: cover; }

.cards-3, .cards-4, .cards-2 {
  display: grid; gap: 20px;
}
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 28px;
  padding: 24px; box-shadow: var(--shadow);
}
.card h3, .card h4 { margin-top: 0; margin-bottom: 10px; }
.card p { margin: 0; line-height: 1.85; color: var(--muted); }
.icon-circle {
  width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: #fff6eb; color: var(--primary); margin-bottom: 16px; border: 1px solid #f1dfc9;
}

.course-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 30px; overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.course-card img { aspect-ratio: 1 / 1; object-fit: cover; }
.course-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 12px; border-radius: 999px; background: #f8f1e7; color: var(--primary);
  font-size: 13px; font-weight: 700; border: 1px solid #ead6be;
}
.meta-list { display: grid; gap: 10px; }
.meta-item { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.price-box {
  background: linear-gradient(135deg, #7a4d2d, #5b341b); color: white;
  border-radius: 28px; padding: 28px; height: 100%;
}
.price-box p { color: rgba(255,255,255,.78); }

.gallery-grid {
  display: grid; grid-template-columns: 1.15fr .85fr .85fr; grid-template-rows: repeat(2, 1fr); gap: 16px;
}
.gallery-grid .big { grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); }

.teacher-card { text-align: center; }
.teacher-card img {
  width: 130px; height: 130px; object-fit: cover; border-radius: 50%;
  margin: 0 auto 18px; border: 4px solid #f3e2d0;
}
.teacher-card h3 { margin-bottom: 6px; }
.teacher-card .role { color: var(--accent); font-weight: 700; margin-bottom: 12px; }

.cta {
  background: linear-gradient(135deg, rgba(122,77,45,.96), rgba(91,52,27,.96));
  color: white; border-radius: 36px; padding: 42px; box-shadow: var(--shadow);
}
.cta p { color: rgba(255,255,255,.82); }

.footer {
  background: #4f301d; color: #fff; margin-top: 50px;
}
.footer .grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 20px; }
.footer .section { padding: 50px 0; }
.footer p, .footer a { color: rgba(255,255,255,.78); line-height: 1.9; }
.footer h4 { margin-top: 0; }
.copy { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center; color: rgba(255,255,255,.65); font-size: 14px; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.input, textarea, select {
  width: 100%; border: 1px solid var(--line); background: #fff; color: var(--text);
  border-radius: 18px; padding: 15px 16px; font-size: 15px; font-family: inherit;
}
textarea { min-height: 140px; resize: vertical; }
.input:focus, textarea:focus, select:focus { outline: 2px solid rgba(239,90,79,.15); border-color: var(--accent); }
.notice {
  background: #fef8ef; border: 1px dashed #e6c79c; border-radius: 22px; padding: 18px; color: var(--primary-dark);
}
.page-hero {
  background: linear-gradient(180deg, rgba(122,77,45,.08), rgba(246,239,227,0));
  padding: 46px 0 20px;
}
.breadcrumbs { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.feature-list { display: grid; gap: 12px; margin-top: 16px; }
.feature-list div { display: flex; align-items: center; gap: 10px; color: var(--muted); }

.table-like {
  display: grid; gap: 12px;
}
.table-row {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 18px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
}

.reveal { opacity: 0; transform: translateY(18px); transition: .55s ease; }
.reveal.show { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-grid, .cards-3, .cards-4, .cards-2, .footer .grid, .form-grid, .gallery-grid, .table-row {
    grid-template-columns: 1fr;
  }
  .gallery-grid .big { grid-row: auto; }
  .section-head { align-items: start; flex-direction: column; }
  .hero-meta { grid-template-columns: 1fr; }
  .nav-links, .nav-actions .desktop-only { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-menu {
    display: none; position: absolute; top: 84px; left: 16px; right: 16px; z-index: 99;
    background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 22px; padding: 16px;
  }
  .mobile-menu.open { display: grid; gap: 10px; }
  .mobile-menu a, .mobile-menu button { padding: 12px 14px; border-radius: 16px; font-weight: 700; }
  .mobile-menu a:hover { background: #f9f3ea; }
}
