:root{
  --bg:#f7f8fa; --card:#fff; --chip:#f1f3f6; --chip-text:#556;
  --accent:#2b6cb0; --accent-dark:#000; --icon:#3d8fc4;
  --header:#879a9f; --footer:#2e2e2e; --line:#e3e7ec;
}
*{box-sizing:border-box;margin:0;padding:0}
body{background:var(--bg);font-family:'Segoe UI',system-ui,-apple-system,Arial,sans-serif;color:#2a3540}

/* ===== Header ===== */
.site-header{background:var(--header);position:sticky;top:0;z-index:50;height:105px;}
.header-wrap{max-width:1140px;margin:0 auto;padding:10px 20px;display:flex;align-items:center;gap:20px}
.logo img{height:84px;width:auto;display:block}
nav.main-nav{margin-left:auto;flex-wrap:nowrap}
nav.main-nav ul{list-style:none;display:flex;flex-wrap:nowrap;gap:6px}
nav.main-nav a{display:inline-block;padding:7px 12px;border-radius:999px;font-size:13px;
  color:#fff;text-decoration:none;background:rgba(255,255,255,.14);white-space:nowrap;transition:all .15s}
nav.main-nav a:hover{background:rgba(255,255,255,.3);transform:translateY(-1px)}
nav.main-nav a.active{background:#fff;color:var(--accent);font-weight:600}
.burger{display:none;margin-left:auto;background:rgba(255,255,255,.18);border:0;color:#fff;
  width:44px;height:40px;border-radius:10px;cursor:pointer;flex-direction:column;gap:5px;
  align-items:center;justify-content:center}
.burger span{display:block;width:20px;height:2.4px;background:#fff;border-radius:2px}

/* ===== Nav panel (mobile) ===== */
.nav-panel{display:none;position:absolute;top:100%;left:0;right:0;background:var(--header);
  box-shadow:0 10px 24px rgba(0,0,0,.18);padding:10px 20px 16px;z-index:40;}
.nav-panel.open{display:flex;flex-direction:column;align-items:center}
.nav-panel a{display:block;padding:11px 16px;border-radius:999px;color:#fff;text-decoration:none;
  font-size:15px;background:rgba(255,255,255,.14);margin-bottom:8px;text-align:center}
.nav-panel a.active{background:#fff;color:var(--accent);font-weight:600}

/* ===== Breadcrumbs ===== */

.crumbs{position:sticky;top:105px;z-index:49;background:var(--card);border-bottom:1px solid var(--line)}
.crumbs .wrap{max-width:1140px;margin:0 auto;padding:10px 20px;font-size:13px;color:#7a8694;}
.crumbs a{color:var(--accent);text-decoration:none}
.crumbs a:hover{text-decoration:underline}
.crumbs .sep{margin:0 6px}
.crumbs .cur{color:#4a5560}

/* ===== Physbot block ===== */
.bot{display:flex;align-items:center;gap:16px;background:#eaf2fb;border:1px solid #d3e2f4;
  border-radius:14px;padding:12px 20px;margin:22px 0}
.bot .bot-ic{flex:0 0 auto}
.bot .bot-ic svg{width:40px;height:40px;display:block}
.bot h2{margin:0 0 3px;font-size:17px;color:var(--accent-dark)}
.bot p{margin:0;font-size:13.5px;color:#445;line-height:1.45}
.bot .btn{margin-left:auto;flex:0 0 auto;display:inline-block;background:var(--accent);color:#fff;
  text-decoration:none;padding:9px 18px;border-radius:999px;font-size:14px;font-weight:600;
  white-space:nowrap;transition:all .15s}
.bot .btn:hover{background:var(--accent-dark);transform:translateY(-1px)}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ===== Tiles ===== */
.wrap{max-width:1140px;margin:0 auto;padding:0 20px}
.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;padding-bottom:34px}
.tile{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:24px 18px;
  text-align:center;text-decoration:none;display:block;transition:transform .15s,box-shadow .15s}
.tile:hover{transform:translateY(-4px);box-shadow:0 10px 24px rgba(30,78,130,.12)}
.tile .icon{width:78px;height:78px;margin:0 auto 14px;background:var(--card);border:2px solid var(--line);
  border-radius:20px;display:flex;align-items:center;justify-content:center}
.tile .icon svg{width:46px;height:46px}
.tile h2{font-size:20px;color:var(--accent-dark);margin-bottom:8px}
.tile p{font-size:14px;color:#5a6472;line-height:1.5}
.tile.wide{grid-column:span 2;display:flex;align-items:center;text-align:left;gap:20px}
.tile.wide .icon{margin:0;flex:0 0 auto}

/* ===== Socials ===== */
.social-sec{padding:8px 0 30px;text-align:center}
.social-sec h2{font-size:20px;color:var(--accent-dark);margin-bottom:14px}
.social{display:flex;justify-content:center;gap:12px}
.social a{width:46px;height:46px;border-radius:50%;background:var(--card);border:2px solid #a8d4ec;
  display:flex;align-items:center;justify-content:center;transition:all .15s}
.social a svg{width:22px;height:22px}
.social a:hover{background:var(--icon);border-color:var(--icon);transform:translateY(-2px)}
.social a:hover svg{stroke:#fff}

/* ===== Quote strip ===== */
.quote{background:#5b686b;color:#fff;padding:4px 0}
.quote .wrap{overflow:hidden;text-align:center}
.quote .line{font-size:18px;line-height:1.5;font-weight:400}

/* ===== Footer ===== */
footer{background:var(--footer);color:#c8ccd2;padding:26px 0}
footer .wrap{display:flex;flex-wrap:wrap;gap:30px;justify-content:space-between}
footer h2{color:#fff;margin-bottom:8px;font-size:15px}
footer a{color:#9ec3e6;text-decoration:none}
footer .copy{width:100%;border-top:1px solid #444;margin-top:16px;padding-top:14px;
  font-size:13px;color:#8b929a}

/* ===== Заголовок-плейсхолдер на пустых страницах ===== */
main h1{font-size:26px;margin:22px 0 10px;color:var(--accent-dark)}

/* ===== Media ===== */
@media (max-width:1220px){
  .logo img{height:64px}
  nav.main-nav a{font-size:12px;padding:6px 9px}
  .quote{background:#5b686b;color:#fff;padding:0px 0}
  .quote .line{transform-origin:50% 50%;font-size:14px; font-weight:500;}
  .site-header{height: 86px;}
  .crumbs{top:86px;}
}
@media (max-width:920px){
  nav.main-nav{display:none}
  .burger{display:flex}
  .quote{background:#5b686b;color:#fff;padding:0px 0}
  .quote .line{transform-origin:50% 50%;font-size:14px; font-weight:500;}
    .site-header{height: 86px;}
      .crumbs{top:86px;}
}
@media (max-width:700px){
  .tiles{grid-template-columns:1fr 1fr}
  .tile.wide{grid-column:span 2}
  .bot{flex-direction:column;align-items:flex-start}
  .bot .btn{margin-left:0}
  .quote{background:#5b686b;color:#fff;padding:0px 0}
  .quote .line{transform-origin:50% 50%;font-size:14px; font-weight:500;}
    .site-header{height: 86px;}
      .crumbs{top:86px;}
}
@media (max-width:560px){
  .logo img{height:62px}
  .tiles{grid-template-columns:1fr}
  .tile.wide{grid-column:span 1;flex-direction:column;text-align:center}
  .tile.wide .icon{margin:0 auto 14px}
  .tile .icon{width:124px;height:124px}
  .tile .icon svg{width:104px;height:104px}
  .tile h2{font-size:21px}
  .quote{background:#5b686b;color:#fff;padding:0px 0}
  .quote .line{transform-origin:50% 50%;font-size:14px; font-weight:500;}
  .site-header{height: 86px;}
  .crumbs{top:86px;}
}


body{display:flex;flex-direction:column;min-height:100vh}
body>main{flex:1 0 auto}
body>footer{margin-top:auto}

/* ===== Карточка «Событие из прошлого» ===== */
.hist{padding-bottom:34px}
.hist-card{background:var(--card);border:1px solid var(--line);border-radius:14px;
  padding:20px 24px;transition:box-shadow .2s,transform .2s}
.hist-card:hover{box-shadow:0 8px 22px rgba(30,78,130,.10);transform:translateY(-2px)}
.hist-label{font-size:12px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;
  color:var(--accent);margin-bottom:4px}
.hist-date{font-size:17px;font-weight:700;color:var(--accent-dark);margin-bottom:12px}
.hist-list{margin:0;padding:0;list-style:none}
.hist-list li{padding:7px 0;border-bottom:1px dashed var(--line);font-size:14.5px;
  color:#3a4552;line-height:1.5}
.hist-list li:last-child{border-bottom:none}
.hist-list .hist-year{font-weight:700;color:var(--accent-dark);margin-right:6px;white-space:nowrap}
.hist-list .hist-tag{font-weight:600;color:var(--accent-dark)}

/* ===== Верхний ряд: Физбот + Событие из прошлого ===== */
.top-row{display:flex;align-items:stretch;gap:20px;margin:12px 0}
.top-row .bot{margin:0;flex:1 1 0;padding:8px 18px;}
.top-row .bot p{font-size:12.5px}
.top-row .hist-card{flex:1 1 0;display:flex;flex-direction:column;justify-content:center}
.top-row .hist-card[hidden]{display:none}
.top-row .bot p,
.top-row .hist-list{margin:0}
.top-row .bot{padding-bottom:4px}
.top-row .hist-card{padding-bottom:4px; padding-top:8px;}

@media (max-width:760px){
  .top-row .bot .btn{margin-left:0}
  .top-row{flex-direction:column;height:auto}
  .top-row .bot{display:block;padding:12px 18px}
  .top-row .bot .bot-ic{float:right;margin:0 0 8px 14px}
  .top-row .bot .bot-ic svg{width:44px;height:44px}
  .top-row .bot h2{font-size:16px}
  .top-row .bot p{font-size:13px}
  .top-row .bot .btn{display:inline-block;margin-top:6px;padding:8px 16px;font-size:13.5px}
  .top-row .hist-list{flex:none;max-height:112px}
}


