
:root{
  --navy:#273b57;
  --blue:#4f70a3;
  --gold:#f3c85f;
  --ink:#30343b;
  --muted:#747984;
  --line:#e9dfd6;
  --paper:#fffaf3;
  --shadow:0 16px 38px rgba(48,59,77,.14);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;max-width:100%;overflow-x:hidden}
body{
  margin:0;
  max-width:100%;
  overflow-x:hidden;
  font-family:'Mali',Tahoma,sans-serif;
  color:var(--ink);
  background:linear-gradient(180deg,#fffaf4,#f4eee7);
}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%;height:auto}
main{min-width:0}
.site-header{
  position:sticky;top:0;z-index:100;
  min-height:72px;
  padding:8px clamp(12px,2vw,24px);
  display:flex;align-items:center;gap:14px;
  background:rgba(39,59,87,.98);
  color:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.14);
}
.brand{
  min-width:0;
  display:flex;align-items:center;gap:10px;
  font-family:'Itim',sans-serif;
  flex:0 1 auto;
}
.brand-icon{font-size:2rem;flex:0 0 auto}
.brand span:last-child{min-width:0}
.brand b{
  display:block;
  color:#ffe18b;
  font-size:1.08rem;
  line-height:1.25;
  white-space:normal;
  word-break:normal;
  overflow-wrap:normal;
}
.brand small{
  display:block;
  font-weight:700;
  font-size:.76rem;
  line-height:1.3;
  white-space:normal;
}
.top-nav{
  display:flex;
  gap:2px;
  margin-left:auto;
  min-width:0;
  white-space:nowrap;
}
.top-nav a{
  padding:10px 9px;
  border-radius:999px;
  font-weight:800;
  white-space:nowrap;
  word-break:normal;
}
.top-nav a:hover,.top-nav a.active{background:#fff;color:var(--navy)}
.menu-button{
  display:none;
  margin-left:auto;
  flex:0 0 auto;
  border:0;
  border-radius:14px;
  background:#fff;
  color:var(--navy);
  padding:11px 15px;
  font-family:'Itim',sans-serif;
  font-weight:900;
  white-space:nowrap;
}
.hero{
  width:100%;
  background:#f5efe9;
  overflow:hidden;
}
.hero img{
  width:100%;
  height:auto;
  object-fit:contain;
  object-position:center;
  margin:0 auto;
}
.hero-menu{
  width:min(1320px,calc(100% - 24px));
  margin:-14px auto 30px;
  position:relative;z-index:3;
  display:flex;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow);
  scrollbar-width:none;
}
.hero-menu::-webkit-scrollbar{display:none}
.hero-link{
  flex:1 0 165px;
  min-width:165px;
  min-height:104px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:7px;
  padding:12px;
  text-align:center;
  font-weight:800;
  color:var(--navy);
  border-right:1px solid #eee3da;
}
.hero-link:last-child{border-right:0}
.hero-link:hover,.hero-link.active{background:#f4f7fb}
.hero-link span:last-child{
  white-space:nowrap;
  word-break:normal;
}
.hero-icon{font-size:1.7rem}
.container{
  width:min(1240px,100%);
  margin:0 auto;
  padding:42px 20px;
  min-width:0;
}
.page-head{min-width:0}
.page-head h1{
  margin:0 0 10px;
  color:var(--navy);
  font-family:'Itim',sans-serif;
  font-size:clamp(2rem,4vw,3.4rem);
  line-height:1.25;
  white-space:normal;
  word-break:normal;
  overflow-wrap:normal;
}
.page-head p{
  color:var(--muted);
  font-size:1.08rem;
  line-height:1.9;
  white-space:normal;
  word-break:normal;
  overflow-wrap:normal;
}
.section-title{
  color:var(--navy);
  margin:40px 0 18px;
  font-family:'Itim',sans-serif;
  font-size:1.9rem;
  line-height:1.25;
  white-space:normal;
  word-break:normal;
}
.grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
.grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:22px;
}
.grid>*,
.grid-2>*,
.event>*{min-width:0}
.card{
  min-width:0;
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:22px;
  box-shadow:var(--shadow);
  line-height:1.9;
}
.card h2,.card h3{
  margin-top:0;
  color:var(--navy);
  font-family:'Itim',sans-serif;
  line-height:1.3;
  white-space:normal;
  word-break:normal;
  overflow-wrap:normal;
}
.card p{
  white-space:normal;
  word-break:normal;
  overflow-wrap:normal;
}
.photo{
  width:100%;
  border-radius:22px;
  background:#fff;
  box-shadow:var(--shadow);
  cursor:zoom-in;
}
.timeline{display:grid;gap:18px}
.event{
  min-width:0;
  display:grid;
  grid-template-columns:minmax(280px,470px) minmax(0,1fr);
  gap:22px;
  align-items:center;
  background:#fff;
  border-radius:24px;
  padding:18px;
  box-shadow:var(--shadow);
}
.event:nth-child(even){
  grid-template-columns:minmax(0,1fr) minmax(280px,470px);
}
.event:nth-child(even) img{order:2}
.event h3{
  color:var(--navy);
  font-family:'Itim',sans-serif;
  font-size:1.42rem;
  line-height:1.3;
  white-space:normal;
  word-break:normal;
}
.event p{
  line-height:1.95;
  white-space:normal;
  word-break:normal;
}
.note{
  padding:22px;
  border-radius:22px;
  background:var(--navy);
  color:#fff;
  line-height:1.9;
}
.tag{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  background:#e9eef6;
  color:var(--navy);
  font-weight:800;
  white-space:nowrap;
}
.gallery{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
}
.gallery-card{
  min-width:0;
  background:#fff;
  padding:16px;
  border-radius:22px;
  box-shadow:var(--shadow);
}
.gallery-card h3{
  color:var(--navy);
  font-family:'Itim',sans-serif;
  margin:8px 6px 12px;
  line-height:1.3;
  white-space:normal;
  word-break:normal;
}
.gallery-card img{width:100%;border-radius:16px;cursor:zoom-in}
.table-wrap{
  width:100%;
  overflow-x:auto;
  background:#fff;
  border-radius:22px;
  box-shadow:var(--shadow);
}
table{border-collapse:collapse;width:100%;min-width:700px}
th,td{
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  text-align:left;
  vertical-align:top;
  word-break:normal;
}
th{background:#eaf0f7;color:var(--navy);font-family:'Itim',sans-serif;white-space:nowrap}
.quiz-wrap{max-width:960px;margin:auto}
.progress-card{position:sticky;top:82px;z-index:20}
.progress{height:14px;background:#eee7df;border-radius:999px;overflow:hidden;margin-top:10px}
.progress-bar{height:100%;width:0;background:linear-gradient(90deg,var(--blue),var(--gold))}
.qcard{background:#fff;border-radius:22px;padding:22px;margin:18px 0;box-shadow:var(--shadow)}
.level-heading{margin:30px 0 12px;padding:16px 20px;border-radius:18px;background:var(--navy);color:#fff;font-family:'Itim',sans-serif;font-weight:900}
.option{display:grid;grid-template-columns:24px 32px minmax(0,1fr);gap:8px;align-items:start;margin:9px 0;padding:13px;border:2px solid #e2e7ee;border-radius:15px;cursor:pointer}
.option:hover{border-color:var(--blue);background:#f7f9fc}
.btn{min-height:50px;padding:0 24px;border:2px solid var(--navy);border-radius:16px;background:#fff;color:var(--navy);font-family:'Itim',sans-serif;font-weight:900;white-space:nowrap}
.btn.primary{background:var(--blue);color:#fff;border-color:var(--blue)}
.result{display:none;background:#fff;border-radius:24px;padding:24px;margin-top:22px;box-shadow:var(--shadow)}
.result.show{display:block}
.score-display{margin:16px 0;padding:18px;border-radius:20px;background:linear-gradient(135deg,var(--blue),var(--gold));color:#fff;font-family:'Itim',sans-serif;font-size:clamp(2rem,6vw,3.3rem);font-weight:900;text-align:center}
.review{padding:14px;margin:10px 0;border-radius:14px;line-height:1.7}.correct{background:#e8f5ea}.wrong{background:#fde9e5}
.lightbox{display:none;position:fixed;inset:0;z-index:500;align-items:center;justify-content:center;padding:26px;background:rgba(17,27,41,.94)}
.lightbox.show{display:flex}.lightbox img{max-width:94vw;max-height:88vh;object-fit:contain}.lightbox-close{position:absolute;top:18px;right:20px;width:48px;height:48px;border:0;border-radius:50%;font-size:1.8rem}
.footer{margin-top:48px;background:var(--navy);color:#fff;text-align:center;padding:28px 20px;display:grid;gap:6px}

@media(max-width:1080px){
  .menu-button{display:block}
  .top-nav{
    display:none;
    position:absolute;
    top:calc(100% + 8px);
    left:12px;
    right:12px;
    max-height:70vh;
    overflow:auto;
    flex-direction:column;
    background:var(--navy);
    padding:12px;
    border-radius:18px;
  }
  .top-nav.open{display:flex}
  .top-nav a{background:#fff;color:var(--navy);text-align:center}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .grid-2,.event,.event:nth-child(even){grid-template-columns:minmax(0,1fr)}
  .event:nth-child(even) img{order:0}
}

@media(max-width:680px){
  .site-header{min-height:74px;padding:8px 10px}
  .brand{max-width:calc(100% - 110px);gap:8px}
  .brand-icon{font-size:1.7rem}
  .brand b{font-size:.88rem;line-height:1.18}
  .brand small{font-size:.66rem;line-height:1.2}
  .menu-button{padding:10px 13px}
  .hero img{width:100%;height:auto}
  .hero-menu{
    width:calc(100% - 16px);
    margin:8px auto 24px;
    border-radius:20px;
  }
  .hero-link{
    flex:0 0 150px;
    min-width:150px;
    min-height:94px;
    padding:10px 8px;
    font-size:.86rem;
  }
  .container{padding:28px 14px}
  .page-head h1{
    font-size:clamp(1.8rem,9vw,2.4rem);
    line-height:1.2;
  }
  .page-head p{font-size:1rem;line-height:1.8}
  .grid,.gallery{grid-template-columns:minmax(0,1fr)}
  .card{padding:18px}
  .event{padding:14px}
  .event h3{font-size:1.25rem}
  table{min-width:620px}
}

.nowrap-token{white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;}
