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

:root{
  --ink:#1f1f1f;
  --ink-soft:#5c5c5c;
  --paper:#ffffff;
  --mist:#f5f5f5;
  --line:rgba(31,31,31,.14);
  --line-soft:rgba(31,31,31,.08);
  --r:28px;
  --r-sm:16px;
}

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

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

body{
  margin:0;
  background:var(--mist);
  color:var(--ink);
  font-family:'Noto Sans Hebrew','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,'PingFang SC','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.7;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{max-width:100%;display:block}
a{color:var(--ink)}
a:focus-visible,
button:focus-visible{outline:2px solid var(--ink);outline-offset:3px}

/* ---------- 页头：品牌行 / 菜单行 ---------- */
.masthead{
  position:sticky;
  top:0;
  z-index:30;
  background:var(--paper);
  border-bottom:1px solid var(--line);
}
.masthead-in{
  max-width:1180px;
  margin:0 auto;
  padding:12px 20px 14px;
}
.brand-row{
  display:flex;
  align-items:center;
  padding-bottom:10px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  text-decoration:none;
  color:var(--ink);
  font-weight:700;
  font-size:19px;
  letter-spacing:.01em;
}
.brand-mark{
  width:38px;
  height:38px;
  border-radius:12px;
  background:var(--ink);
  color:var(--paper);
  display:grid;
  place-items:center;
  font-size:16px;
  font-weight:700;
}
.brand-logo{
  width:38px;
  height:38px;
  border-radius:12px;
  object-fit:cover;
}
.brand-name{white-space:nowrap}

.menu-row{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
.pillbar{
  flex:1 1 auto;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.pillbar::-webkit-scrollbar{display:none}
.pillbar ol{
  display:flex;
  gap:8px;
  margin:0;
  padding:0 2px 2px;
  list-style:none;
  width:max-content;
}
.pillbar .pill{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 16px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--mist);
  color:var(--ink);
  font-size:16px;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
  transition:background .2s ease,color .2s ease,border-color .2s ease;
}
.pillbar .pill:hover{
  background:var(--ink);
  border-color:var(--ink);
  color:var(--paper);
}
.contact{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 18px;
  border-radius:999px;
  background:var(--ink);
  color:var(--paper);
  font-size:16px;
  line-height:1;
  text-decoration:none;
  transition:opacity .2s ease;
}
.contact:hover{opacity:.82}

/* ---------- 大图 ---------- */
.hero{
  position:relative;
  height:70vh;
  min-height:380px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:var(--ink);
  color:var(--paper);
  text-align:center;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.22),rgba(0,0,0,.66));
}
.hero-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.hero-copy{
  position:relative;
  z-index:1;
  max-width:900px;
  padding:0 24px;
}
.hero h1{
  margin:0;
  font-size:clamp(28px,5vw,52px);
  line-height:1.24;
  font-weight:700;
  letter-spacing:-.01em;
  text-shadow:0 2px 24px rgba(0,0,0,.35);
}

/* ---------- 主体：错落卡片 + 右侧栏 ---------- */
.shell{
  max-width:1180px;
  margin:0 auto;
  padding:24px 20px 72px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 280px;
  gap:20px;
  align-items:start;
}

.bento{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.bento > div{
  min-width:0;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:26px;
  scroll-margin-top:150px;
  transition:border-color .22s ease;
}
.bento > div:nth-child(3n+1){grid-column:1 / -1}
.bento > div:hover{border-color:rgba(31,31,31,.34)}

.bento > div h2{
  margin:0 0 10px;
  font-size:23px;
  line-height:1.35;
  letter-spacing:-.01em;
}
.bento > div h3{
  margin:22px 0 8px;
  font-size:18px;
  line-height:1.45;
}
.bento > div p{margin:0 0 14px}
.bento > div p:last-child{margin-bottom:0}
.bento > div ul,
.bento > div ol{margin:0 0 14px;padding-left:22px}
.bento > div li{margin:0 0 6px}
.bento > div a{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.bento > div a:hover{text-decoration-thickness:2px}
.bento > div img{border-radius:var(--r-sm);margin:6px 0 14px}
.bento > div strong{font-weight:700}
.bento > div blockquote{
  margin:0 0 14px;
  padding:2px 0 2px 16px;
  border-left:3px solid var(--ink);
  color:var(--ink-soft);
}

hr{
  border:0;
  border-top:1px solid var(--line-soft);
  margin:12px 0 16px;
}
.bento > div h2 + hr{margin:0 0 16px}

/* ---------- 右侧栏 ---------- */
.rail{
  position:sticky;
  top:130px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--r);
  padding:20px 22px 24px;
}
.rail h2{
  margin:0;
  font-size:17px;
  font-weight:500;
  letter-spacing:.06em;
}
.rail hr{margin:8px 0 8px}
.rail-list{
  list-style:none;
  margin:0;
  padding:0;
}
.rail-list li + li{border-top:1px solid var(--line-soft)}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:42px;
  padding:6px 2px;
  color:var(--ink-soft);
  font-size:16px;
  text-decoration:none;
  transition:color .18s ease,transform .18s ease;
}
.rail-list a:hover{
  color:var(--ink);
  transform:translateX(3px);
}

/* ---------- 页脚 ---------- */
.site-foot{
  background:var(--paper);
  border-top:1px solid var(--line);
  padding:32px 20px 40px;
}
.site-foot > div{
  max-width:1180px;
  margin:0 auto;
}
.foot-cta{
  display:grid;
  justify-items:center;
  gap:18px;
  text-align:center;
  padding:46px 24px;
  border-radius:32px;
  background:var(--ink);
  color:var(--paper);
}
.foot-cta strong{
  font-size:clamp(22px,4vw,34px);
  line-height:1.3;
  font-weight:700;
}
.foot-cta a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 22px;
  border-radius:999px;
  background:var(--paper);
  color:var(--ink);
  font-size:16px;
  text-decoration:none;
  transition:transform .2s ease;
}
.foot-cta a:hover{transform:translateY(-2px)}

.foot-cols{
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:26px;
  padding:32px 0 22px;
  border-bottom:1px solid var(--line);
}
.foot-name{
  margin:0;
  font-size:19px;
  font-weight:700;
}
.foot-key{
  margin:6px 0 0;
  color:var(--ink-soft);
  font-size:16px;
}
.foot-links ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:2px 20px;
}
.foot-links a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  color:var(--ink-soft);
  font-size:16px;
  text-decoration:none;
}
.foot-links a:hover{color:var(--ink)}

.foot-legal{
  padding-top:20px;
  text-align:center;
}
.foot-legal p{
  margin:0;
  color:var(--ink-soft);
  font-size:16px;
}

/* ---------- 进入动画 ---------- */
@media (prefers-reduced-motion:no-preference){
  html.js .bento > div{
    opacity:0;
    transform:translateY(16px);
    transition:opacity .5s ease,transform .5s ease,border-color .22s ease;
  }
  html.js .bento > div.in{
    opacity:1;
    transform:none;
  }
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .rail-list a:hover,
  .foot-cta a:hover{transform:none}
}

/* ---------- 断点 ---------- */
@media (max-width:980px){
  .shell{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;order:2;top:auto}
  .bento{grid-template-columns:minmax(0,1fr)}
  .bento > div:nth-child(3n+1){grid-column:auto}
  .foot-cols{grid-template-columns:minmax(0,1fr);gap:16px}
}

@media (max-width:640px){
  body{font-size:16px}
  .hero{height:62vh;min-height:320px}
  .hero h1{font-size:clamp(24px,7vw,34px)}
  .shell{padding:18px 14px 56px;gap:16px}
  .bento > div{padding:20px;border-radius:22px;scroll-margin-top:132px}
  .bento > div h2{font-size:20px}
  .masthead-in{padding:10px 14px 12px}
  .site-foot{padding:24px 14px 32px}
  .foot-cta{padding:34px 20px;border-radius:26px}
  .rail{padding:18px}
}

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