:root {
  --yellow: #fdb913; --yellow-d: #e0a100; --ink: #1d1d1b; --muted: #5f5f5a; --line: #e7e4da;
  --bg: #fafaf7; --card: #fff; --max: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; }
a { color: #8a5d00; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* header */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-t { display: flex; flex-direction: column; line-height: 1.1; }
.brand-t b { letter-spacing: 3px; font-size: 12px; }
.brand-t small { color: var(--muted); font-size: 12px; }
.mark { display: inline-flex; align-items: flex-end; font-weight: 900; font-size: 38px; line-height: .8; letter-spacing: -1px; color: var(--ink); }
.mark .i { position: relative; width: 14px; height: 29px; margin: 0 2px; }
.mark .i::before { content: ""; position: absolute; left: 1px; top: -11px; width: 12px; height: 9px; border-radius: 50%; background: var(--yellow); }
.mark .i::after { content: ""; position: absolute; left: 3px; bottom: 0; width: 8px; height: 27px; border-radius: 2px 2px 0 0; background: var(--yellow); }
.mark.sm { font-size: 22px; } .mark.sm .i { width: 9px; height: 17px; } .mark.sm .i::before { width: 8px; height: 6px; top: -7px; left: .5px; } .mark.sm .i::after { width: 5px; height: 16px; left: 2px; }

nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
nav > ul > li { position: relative; }
nav > ul > li > a, nav .dd { display: block; padding: 10px 12px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); background: none; border: 0; cursor: pointer; text-decoration: none; border-radius: 6px; }
nav .dd::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
nav > ul > li.active > a, nav > ul > li.active > .dd { box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
nav > ul > li > a:hover, nav .dd:hover { background: #f4f2ea; }
nav li ul { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 270px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.08); display: none; }
nav li:hover > ul, nav li:focus-within > ul, nav li.open > ul { display: block; }
nav li ul a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; font-size: 15px; border-radius: 6px; }
nav li ul a:hover, nav li ul a[aria-current] { background: #fff6dc; }
.lang { font-size: 14px; font-weight: 600; border: 1px solid var(--line); padding: 6px 12px; border-radius: 20px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.lang:hover { border-color: var(--yellow); }
.burger { display: none; margin-left: auto; font: inherit; font-weight: 600; background: var(--yellow); border: 0; padding: 8px 14px; border-radius: 6px; cursor: pointer; }

.notice { background: var(--ink); color: #f3f1ea; font-size: 14px; padding: 8px 0; }

/* hero */
.hero { background: #333 url('/images/panorama/bg1.jpg') center/cover no-repeat; position: relative; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(29,29,27,.85), rgba(29,29,27,.45)); }
.hero .wrap { position: relative; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { margin: 0; font-size: clamp(28px, 4.5vw, 44px); line-height: 1.15; max-width: 820px; }
.hero h1::after { content: ""; display: block; width: 70px; height: 5px; background: var(--yellow); margin-top: 18px; border-radius: 3px; }

/* content */
.content { padding-top: 40px; padding-bottom: 64px; }
.content h2 { font-size: 28px; line-height: 1.25; margin: 36px 0 14px; }
.content h3 { font-size: 22px; margin: 28px 0 10px; }
.content h4, .content h5 { font-size: 18px; margin: 22px 0 8px; }
.content > :first-child { margin-top: 0; }
.content p, .content div { margin: 0 0 10px; }
.content ul, .content ol { padding-left: 22px; margin: 0 0 16px; }
.content li { margin: 4px 0; }
.content img { border-radius: 8px; margin: 10px 10px 10px 0; vertical-align: middle; }
.content table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.content td, .content th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; }
.content tr:nth-child(even) td { background: #f6f4ee; }
.content .btn a { display: inline-block; background: var(--yellow); color: var(--ink); padding: 10px 18px; border-radius: 6px; font-weight: 700; text-decoration: none; }

/* home */
.home-banner img { width: 100%; border-radius: 12px; margin: 0; display: block; }
.lead { font-size: 21px; line-height: 1.5; max-width: 820px; margin: 28px 0 !important; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 34px; }
.tile { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--yellow); border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 700; }
.tile:hover { border-color: var(--yellow); transform: translateY(-1px); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px 28px; }
.dates h2 { margin-top: 0; font-size: 22px; }
.logos { margin-top: 34px; text-align: center; color: var(--muted); font-size: 14px; }
.logos div { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px; }
.logos img { max-height: 90px; width: auto; margin: 0; }

/* speakers */
.speakers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.speaker { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; text-align: center; color: var(--ink); text-decoration: none; }
a.speaker:hover { border-color: var(--yellow); box-shadow: 0 8px 22px rgba(0,0,0,.06); }
.speaker img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; margin: 0 auto 12px; display: block; }
.speaker h3 { margin: 0 0 2px; font-size: 19px; }
.country { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 10px !important; }
.speaker .lecture { font-size: 15px; }
.bio { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: start; }
.bio-photo { width: 220px; height: 220px; object-fit: cover; border-radius: 50% !important; margin: 0 !important; }
.back { font-weight: 600; }

/* gallery */
.gal-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 20px; }
.gal-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; }
.gal-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin: 0; border-radius: 0; }
.gal-card span { padding: 14px 16px 2px; font-weight: 700; }
.gal-card small { padding: 0 16px 14px; color: var(--muted); }
.gal-card:hover { border-color: var(--yellow); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.grid img { width: 100%; aspect-ratio: 1; object-fit: cover; margin: 0; border-radius: 6px; display: block; }
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; z-index: 50; }
.lb img { max-width: 94vw; max-height: 88vh; border-radius: 4px; }
.lb button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 28px; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.lb .x { top: 16px; right: 16px; } .lb .p { left: 16px; } .lb .n { right: 16px; }

/* footer */
.foot { background: #fff; border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot b { color: var(--ink); }

@media (max-width: 980px) {
  .burger { display: block; }
  nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 20px 18px; }
  nav.open { display: flex; }
  nav > ul { flex-direction: column; }
  nav li ul { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 6px 12px; min-width: 0; }
  nav li:hover > ul, nav li:focus-within > ul { display: none; }
  nav li.open > ul { display: block; }
  .lang { align-self: flex-start; margin-top: 8px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .bio { grid-template-columns: 1fr; }
  .bio-photo { width: 160px; height: 160px; }
}
@media (max-width: 520px) { body { font-size: 16px; } .tiles { grid-template-columns: 1fr; } .card { padding: 18px; } .brand-t { display: none; } }
