:root {
  --bg: #f7f1e8;
  --paper: #fffaf3;
  --ink: #2f2a25;
  --muted: #6d6258;
  --accent: #8a6f4d;
  --accent-dark: #5d4931;
  --soft: #eee2d3;
  --line: #e2d2c1;
  --green: #66745c;
  --shadow: 0 18px 48px rgba(63, 47, 32, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 241, 232, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:hover { color: var(--accent-dark); }

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 1.1rem;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 78px 20px 56px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

h1, h2, h3 { line-height: 1.1; }

h1 {
  margin: 0 0 24px;
  max-width: 780px;
  font-size: clamp(2.4rem, 6vw, 5rem);
  letter-spacing: -0.055em;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  letter-spacing: -0.04em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.lead {
  max-width: 650px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions, .socials, .contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button, .contact-button, .whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 750;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover, .contact-button:hover, .whatsapp:hover { transform: translateY(-2px); }

.primary {
  background: var(--accent-dark);
  color: white;
  box-shadow: 0 10px 24px rgba(93, 73, 49, 0.18);
}

.secondary {
  background: var(--paper);
  color: var(--accent-dark);
  border: 1px solid var(--line);
}

.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.hero-photo {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  margin-bottom: 20px;
}

.profile-stack {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.profile-stack.small {
  margin-top: -48px;
  margin-bottom: 16px;
}

.profile-stack img {
  width: 124px;
  height: 124px;
  border-radius: 999px;
  border: 6px solid var(--paper);
  object-fit: cover;
  margin-left: -22px;
  box-shadow: 0 10px 24px rgba(63, 47, 32, 0.14);
}

.profile-stack.small img {
  width: 78px;
  height: 78px;
  border-width: 4px;
  margin-left: -14px;
}

.profile-stack img:first-child { margin-left: 0; }

.hero-card p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}

.hero-card span { color: var(--muted); }

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 74px 20px;
}

.section.soft {
  max-width: none;
  background: var(--soft);
}

.section.soft > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading { margin-bottom: 32px; }

.section-intro {
  color: var(--muted);
  max-width: 780px;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  color: var(--muted);
  font-size: 1.05rem;
}

.cards, .teacher-grid, .news-grid {
  display: grid;
  gap: 18px;
}

.cards { grid-template-columns: repeat(4, 1fr); }

.card, .teacher, .news-card, .video-card, .practical-info {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(63, 47, 32, 0.07);
}

.card p, .teacher p, .news-card p, .video-card p, .moshe-text p {
  color: var(--muted);
}

.moshe {
  border-top: 1px solid var(--line);
}

.moshe-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.moshe-text {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(63, 47, 32, 0.07);
}

.moshe-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.moshe-gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--line);
}

.moshe-gallery img:first-child {
  grid-column: 1 / -1;
  height: 250px;
}

.teacher-grid { grid-template-columns: repeat(3, 1fr); }

.teacher img {
  width: 140px;
  height: 140px;
  margin-bottom: 18px;
  object-fit: cover;
  border-radius: 999px;
}

.zone {
  color: var(--accent-dark) !important;
  font-weight: 750;
}

.whatsapp {
  margin-top: 8px;
  background: var(--green);
  color: #fff;
}

.news-grid { grid-template-columns: repeat(3, 1fr); }

.news-card .date {
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.9rem;
}

.news-card a {
  color: var(--accent-dark);
  font-weight: 800;
}

.edit-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.video-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.video-card {
  display: grid;
  gap: 18px;
}

.video-card video {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #111;
}

.video-card.text-only {
  align-content: center;
}

.contact { text-align: center; }

.contact .section-heading {
  display: grid;
  justify-items: center;
}

.practical-info {
  max-width: 820px;
  margin: 0 auto 24px;
  text-align: left;
}

.practical-info p {
  margin: 8px 0;
  color: var(--muted);
}

.contact-grid, .socials { justify-content: center; }

.contact-button {
  background: var(--accent-dark);
  color: #fff;
}

.socials { margin-top: 28px; }

.socials a {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 750;
}

.footer {
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer p {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .menu-button { display: inline-flex; }

  .nav { align-items: center; }

  .nav-links {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 70px;
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .nav-links.open { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }

  .two-columns,
  .cards,
  .teacher-grid,
  .news-grid,
  .moshe-layout,
  .video-grid,
  .method-modes {
    grid-template-columns: 1fr;
  }

  .moshe-gallery img,
  .moshe-gallery img:first-child {
    height: auto;
  }

  .profile-stack img {
    width: 98px;
    height: 98px;
  }

  .profile-stack.small img {
    width: 72px;
    height: 72px;
  }
}


.method-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 34px;
}

.mode-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(63, 47, 32, 0.07);
}

.mode-label {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.mode-card h3 span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 650;
}

.mode-card p {
  color: var(--muted);
}


.news-card.featured-news {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  align-items: center;
  border: 2px solid var(--accent-dark);
}

.news-image {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 20px;
  background: #f8f4ee;
  border: 1px solid var(--line);
}

.news-content {
  display: grid;
  gap: 8px;
}

.news-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .news-card.featured-news {
    grid-template-columns: 1fr;
  }

  .news-image {
    max-height: none;
  }
}
