@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@300;400;500;700&display=swap');

:root{
  --blue:#c8e0f4;
  --pink:#f5e0e8;
  --ink:#171f26;
  --mute:rgba(23,31,38,.68);
  --line:rgba(23,31,38,.14);
  --bg-a:#e6eef6;
  --bg-b:#f4eaf0;
  --face:linear-gradient(145deg,#dbe9f5,#f8fbfe);
  --face-pink:linear-gradient(145deg,#f3dde7,#fdf8fb);
  --up:-6px -6px 16px rgba(255,255,255,.95);
  --down:6px 6px 18px rgba(23,31,38,.13);
  --r-lg:28px;
  --r-md:16px;
}

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

html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}

body{
  margin:0;
  padding:18px 16px 108px;
  font-family:'Noto Sans Hebrew',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.68;
  color:var(--ink);
  background:linear-gradient(165deg,var(--bg-a) 0%,var(--bg-b) 58%,#e9f1f8 100%);
  background-attachment:fixed;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

main{max-width:1180px;margin:0 auto}

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

a{color:var(--ink);text-decoration:none}
a:focus-visible,button:focus-visible{outline:3px solid #8fb8da;outline-offset:2px}

/* ---------- hero ---------- */

.hero{
  position:relative;
  z-index:0;
  display:grid;
  grid-template-columns:1.02fr .98fr;
  align-items:center;
  gap:22px;
  min-height:45vh;
  padding:26px 26px 30px;
  border-radius:var(--r-lg);
  background:var(--face);
  box-shadow:var(--up),var(--down);
  overflow:visible;
}

.hero::before{
  content:"";
  position:absolute;
  z-index:-1;
  left:-8px;
  right:-8px;
  bottom:-16px;
  height:56px;
  border-radius:36px;
  background:linear-gradient(95deg,var(--blue),var(--pink));
  transform:rotate(-1.6deg);
  opacity:.82;
}

.hero-txt{text-align:center}

h1{
  margin:0;
  font-size:clamp(1.72rem,4.6vw,2.6rem);
  line-height:1.32;
  font-weight:700;
  letter-spacing:.01em;
}

.hero-fig{
  margin:0;
  min-height:182px;
  border-radius:22px;
  overflow:hidden;
  background:var(--face-pink);
  box-shadow:inset 5px 5px 14px rgba(23,31,38,.10),inset -5px -5px 14px rgba(255,255,255,.92);
}

.hero-img{
  width:100%;
  height:100%;
  min-height:182px;
  object-fit:cover;
}

/* ---------- stage ---------- */

.stage{
  display:grid;
  grid-template-columns:minmax(0,1fr) 256px;
  gap:22px;
  align-items:start;
  margin-top:34px;
}

.content{min-width:0}

.content > section{
  margin:0 0 22px;
  padding:24px 22px;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  background:rgba(255,255,255,.56);
  scroll-margin-top:24px;
}

.content > section:last-child{margin-bottom:0}

.content h2,.content h3{margin:0 0 12px;line-height:1.42;font-weight:700}
.content h2{font-size:1.3rem}
.content h3{font-size:1.1rem}

.content h2 > span,.content h3 > span{position:relative;display:inline-block;padding-bottom:9px}
.content h2 > span::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:36px;
  height:4px;
  border-radius:3px;
  background:linear-gradient(90deg,var(--blue),var(--pink));
}

.content p{margin:0 0 14px}
.content p:last-child{margin-bottom:0}
.content ul,.content ol{margin:0 0 14px;padding-left:1.25em}
.content li{margin:0 0 8px}
.content img{border-radius:var(--r-md);margin:6px 0 14px}
.content blockquote{
  margin:0 0 14px;
  padding:14px 16px;
  border-radius:var(--r-md);
  background:var(--face);
  box-shadow:inset 4px 4px 10px rgba(23,31,38,.09),inset -4px -4px 10px rgba(255,255,255,.9);
}
.content blockquote p:last-child{margin-bottom:0}
.content a{text-decoration:underline;text-decoration-color:rgba(23,31,38,.32);text-underline-offset:3px}
.content strong{font-weight:700}

/* ---------- rail ---------- */

.rail{
  position:sticky;
  top:18px;
  padding:18px 16px;
  border-radius:22px;
  background:var(--face);
  box-shadow:var(--up),var(--down);
}

.rail-h{margin:0 0 12px;font-size:.98rem;font-weight:700;letter-spacing:.04em}
.rail-h--sub{margin-top:18px}

.rail-list{list-style:none;margin:0;padding:0}

.rail-list li{margin:0 0 8px}

.rail-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:9px 12px;
  border-radius:12px;
  font-size:.94rem;
  line-height:1.35;
  background:linear-gradient(145deg,#dcebf7,#f9fcff);
  box-shadow:-3px -3px 8px rgba(255,255,255,.9),3px 3px 9px rgba(23,31,38,.11);
  transition:transform .15s ease,box-shadow .15s ease;
}

.rail-list a:active{transform:scale(.975);box-shadow:inset 3px 3px 8px rgba(23,31,38,.13),inset -3px -3px 8px rgba(255,255,255,.9)}

.rail-top{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  border-radius:12px;
  font-size:.94rem;
  background:linear-gradient(145deg,#f3dde7,#fdf9fb);
  box-shadow:-3px -3px 8px rgba(255,255,255,.9),3px 3px 9px rgba(23,31,38,.11);
}

.rail-top:active{transform:scale(.975)}

/* ---------- footer ---------- */

.foot{
  max-width:1180px;
  margin:36px auto 0;
  padding:22px 6px 8px;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px 20px;
  border-top:1px solid var(--line);
}

.foot-nav ol{list-style:none;display:flex;flex-wrap:wrap;gap:2px 14px;margin:0;padding:0}
.foot-nav a{display:inline-flex;align-items:center;min-height:40px;padding:8px 2px;font-size:.9rem}
.foot-nav a:hover{text-decoration:underline;text-underline-offset:3px}

.foot-copy{margin:0;font-size:.84rem;color:var(--mute)}

.mark{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border-radius:14px;
  font-size:1.05rem;
  font-weight:700;
  background:var(--face);
  box-shadow:-3px -3px 8px rgba(255,255,255,.95),3px 3px 9px rgba(23,31,38,.13);
}
.mark img{width:24px;height:24px;border-radius:8px}

/* ---------- bar ---------- */

.bar{
  position:fixed;
  z-index:70;
  left:0;
  right:0;
  bottom:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 16px calc(10px + env(safe-area-inset-bottom));
  background:rgba(237,244,250,.94);
  backdrop-filter:blur(9px);
  box-shadow:0 -5px 18px rgba(23,31,38,.09);
}

.bar-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:11px 22px;
  border-radius:14px;
  font-size:.95rem;
  font-weight:500;
  background:linear-gradient(145deg,var(--blue),#e6f1fa);
  box-shadow:-3px -3px 9px rgba(255,255,255,.95),3px 3px 10px rgba(23,31,38,.14);
}

.bar-cta:active{transform:scale(.97)}

.bar-burger{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  width:48px;
  height:46px;
  padding:0;
  border:0;
  border-radius:15px;
  background:var(--face);
  box-shadow:-3px -3px 9px rgba(255,255,255,.95),3px 3px 10px rgba(23,31,38,.14);
  cursor:pointer;
}

.bar-burger span{display:block;width:19px;height:2px;border-radius:2px;background:var(--ink);transition:transform .18s ease,opacity .18s ease}

body.nav-open .bar-burger span:nth-child(1){transform:translateY(6px) rotate(45deg)}
body.nav-open .bar-burger span:nth-child(2){opacity:0}
body.nav-open .bar-burger span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* ---------- drawer ---------- */

.drawer{
  position:fixed;
  z-index:60;
  inset:0;
  padding:22px 18px 130px;
  overflow-y:auto;
  background:linear-gradient(165deg,rgba(232,240,247,.97),rgba(246,235,241,.97));
  backdrop-filter:blur(10px);
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:opacity .2s ease,transform .2s ease,visibility .2s;
}

body.nav-open .drawer{opacity:1;visibility:visible;transform:none}

.dnav ol{list-style:none;margin:0;padding:6px 0 0;display:grid;gap:12px}

.dnav a{
  display:flex;
  align-items:center;
  min-height:56px;
  padding:14px 20px;
  border-radius:18px;
  font-size:1.06rem;
  font-weight:500;
  background:var(--face);
  box-shadow:-5px -5px 14px rgba(255,255,255,.95),5px 5px 15px rgba(23,31,38,.13);
}

.dnav a:active{transform:scale(.985);box-shadow:inset 4px 4px 10px rgba(23,31,38,.13),inset -4px -4px 10px rgba(255,255,255,.9)}

/* ---------- reveal ---------- */

.rv{opacity:0;transform:translateY(14px);transition:opacity .5s ease,transform .5s ease}
.rv.in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .rv{opacity:1;transform:none;transition:none}
  .bar-burger span,.drawer{transition:none}
}

/* ---------- responsive ---------- */

@media (max-width:900px){
  .stage{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;order:2}
}

@media (max-width:720px){
  body{font-size:16.5px;padding:14px 14px 104px}
  .hero{grid-template-columns:1fr;min-height:0;padding:22px 18px 24px;gap:16px}
  .hero-txt{text-align:left}
  .hero-fig{min-height:150px}
  .hero-img{min-height:150px}
  h1{font-size:clamp(1.55rem,7vw,2.05rem)}
  .content > section{padding:20px 17px}
  .foot{justify-content:center;text-align:center}
  .foot-nav ol{justify-content:center}
  .bar-cta{padding:11px 16px}
}

@media (max-width:400px){
  .bar{gap:8px;padding-left:12px;padding-right:12px}
  .bar-cta{font-size:.9rem;padding:11px 13px}
}

button[aria-expanded]{min-width:44px;min-height:44px}
