/*
Theme Name: IELA Leonidas
Author: Codex
Version: 1.0.0
*/
:root {
  --navy: #163a68;
  --blue: #1f67a9;
  --gold: #f1b92d;
  --green: #2f8f5b;
  --ink: #172033;
  --muted: #5d6b7d;
  --soft: #f4f7fb;
  --line: #dce4ef;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  background: #fff;
  line-height: 1.55;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar {
  background: var(--navy);
  color: #fff;
  font-size: 14px;
}
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.page-main > .wrap { width: min(1240px, calc(100% - 32px)); }
.topbar .wrap, .site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.topbar .wrap { padding: 8px 0; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.site-header .wrap { min-height: 74px; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0;
}
.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(22,58,104,.16);
  box-shadow: 0 5px 16px rgba(18, 40, 72, .12);
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand small { display: block; color: var(--muted); font-weight: 600; }
.menu { display: flex; align-items: center; gap: 4px; padding: 0; margin: 0; list-style: none; }
.menu a {
  display: block;
  padding: 10px 11px;
  color: var(--ink);
  font-weight: 650;
  border-radius: 6px;
}
.menu a:hover { background: var(--soft); text-decoration: none; color: var(--navy); }
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}
.menu-toggle span:nth-child(1) { transform: translateY(-7px); }
.menu-toggle span:nth-child(3) { transform: translateY(7px); }
.menu-toggle strong {
  width: 1px;
  height: 1px;
  overflow: hidden;
  position: absolute;
  clip: rect(0 0 0 0);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }
.hero {
  min-height: 560px;
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(13,38,72,.92) 0%, rgba(13,38,72,.72) 44%, rgba(13,38,72,.28) 100%),
    var(--hero-image, linear-gradient(135deg, var(--navy), var(--green)));
  background-size: cover;
  background-position: center;
}
.hero .wrap { padding: 96px 0 76px; }
.hero h1 { max-width: 790px; margin: 0 0 14px; font-size: clamp(38px, 6vw, 72px); line-height: 1.02; }
.hero p { max-width: 680px; margin: 0 0 26px; font-size: 20px; color: #eef5ff; }
.hero .hero-slogan {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 24px;
  font-weight: 850;
}
.hero-crest {
  width: 136px;
  height: 136px;
  object-fit: contain;
  display: block;
  margin: 0 0 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  padding: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,.24);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: var(--gold);
  color: #161a22;
  font-weight: 800;
}
.button.alt { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.button:hover { text-decoration: none; filter: brightness(.98); }
.band { padding: 58px 0; }
.band.soft { background: var(--soft); }
.section-title { margin: 0 0 24px; color: var(--navy); font-size: 31px; }
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(18, 40, 72, .06);
}
.card h3 { margin: 0 0 8px; color: var(--navy); }
.card p { color: var(--muted); margin: 0 0 14px; }
.doc-list { display: grid; gap: 12px; }
.doc-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 700;
}
.doc-link span { color: var(--muted); font-weight: 600; }
.fact-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0;
  list-style: none;
}
.fact-list li {
  padding: 12px 14px;
  border-left: 4px solid var(--gold);
  background: var(--soft);
}
.sede-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 22px 0;
}
.sede-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 40, 72, .06);
}
.sede-card h3 { margin-top: 0; }
.sede-card p { margin: 8px 0; color: var(--muted); }
.map-embed {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 18px 0 28px;
  background: var(--soft);
}
.map-embed iframe {
  display: block;
  width: 100%;
  min-height: 380px;
  border: 0;
}
.facebook-feed {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(18, 40, 72, .06);
  width: 100%;
}
.facebook-feed iframe {
  display: block;
  width: 100%;
  min-height: 900px;
  border: 0;
}
.page-main { padding: 54px 0; min-height: 54vh; }
.page-main h1 { color: var(--navy); font-size: 42px; line-height: 1.1; }
.page-main h2, .page-main h3 { color: var(--navy); }
.site-footer { padding: 34px 0; background: #102b4e; color: #e9f1fb; }
.site-footer a { color: #fff; }
@media (max-width: 860px) {
  .site-header .wrap {
    min-height: 68px;
    align-items: center;
    padding: 10px 0;
    flex-direction: row;
    position: relative;
  }
  .site-header nav { width: auto; }
  .brand-mark { width: 52px; height: 52px; }
  .brand { max-width: calc(100% - 62px); }
  .brand span:last-child { font-size: 15px; line-height: 1.15; }
  .brand small { font-size: 12px; margin-top: 2px; }
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    flex: 0 0 auto;
  }
  .menu {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    z-index: 20;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 18px 36px rgba(18, 40, 72, .16);
  }
  .menu.is-open { display: flex; }
  .menu a {
    padding: 13px 12px;
    border-radius: 6px;
  }
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .sede-grid { grid-template-columns: 1fr; }
  .hero { min-height: 520px; }
  .hero-crest { width: 112px; height: 112px; }
}
