:root { --max: 980px; --pad: 18px; --border: #e6e6e6; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, Arial, sans-serif; line-height: 1.55; color: #111; }
header { border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: 0; z-index: 10; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.nav { display: flex; gap: 10px; flex-wrap: wrap; padding: 12px 0; }
.nav a { text-decoration: none; color: #111; padding: 6px 10px; border-radius: 8px; border: 1px solid transparent; }
.nav a:hover { background: #f5f5f5; border-color: #f0f0f0; }
.hero { padding: 26px 0 10px; }
.badge { display: inline-block; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; }
h1 { margin: 10px 0 6px; font-size: 30px; line-height: 1.15; }
h2 { margin-top: 22px; }
.small { color: #444; font-size: 14px; }
.btn {
  display: inline-block; margin-top: 10px; padding: 10px 14px;
  border: 1px solid #111; border-radius: 10px; text-decoration: none; color: #111;
}
.grid { display: grid; gap: 12px; }
@media (min-width: 820px){ .grid.cols-2 { margin-top: 50px; grid-template-columns: 1fr 1fr; } }
.card { border: 1px solid var(--border); border-radius: 14px; padding: 14px; background: #fff; }
ul { padding-left: 18px; }
table { width: 100%; border-collapse: collapse; }
td, th { border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: left; vertical-align: top; }
footer { margin-top: 50px; border-top: 1px solid var(--border); padding: 18px 0; color: #444; font-size: 14px; }
.kv { display: grid; gap: 6px; }
.kv div { display:flex; gap:10px; }
.kv b { min-width: 120px; }

/* ===== TOPBAR (header like reference) ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
}

.topbar-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 16px;

  height: 72px;         /* фиксированная нормальная высота */
  overflow: hidden;     /* защита от «вылазов» */
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #0b1b2b;
  min-width: 260px;
}

.brand-logo{
  width: 260px;          /* реальный размер */
  height: auto;
  max-height: 100px;     /* КЛЮЧ: не даёт лого раздувать меню */
  object-fit: contain;
  display: block;
}

.brand-text{
  line-height: 1.1;
  max-width: 300px;
}
.brand-kicker{ font-size: 11px; letter-spacing: .06em; opacity: .85; }
.brand-title{ font-size: 13px; font-weight: 700; }
.brand-sub{ font-size: 10px; opacity: .85; }

.menu{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  flex: 1;
}

.menu a{
  text-decoration: none;
  color: #0b1b2b;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 16px;
}

.menu a:hover{ background: #f3f6fa; }

.topbar-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn{
  border: 1px solid #d7dde6;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.contact-btn{
  text-decoration: none;
  background: #1f4f8a;
  color: #fff;
  padding: 9px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}

.announcement-btn{
  text-decoration: none;
  background: #f0f2f3f6; 
  border: #111 solid 1px;
  color: #000000;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.65);
  text-align: center;
}
.announcement-btn:hover{
  background: #f0f2f3f6; 
  color: #000000;
  border-color: #1f4f8a;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}

/* ===== HERO BANNER (big picture like reference) ===== */
.hero-banner{
  position: relative;
  min-height: 380px;
  background-image: url("images/hero.jpg");
  background-size: cover;

  background-position: 10% center;  /* КЛЮЧ: двигаем картинку влево */
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-banner{
  width: 100vw;
  margin-left: calc(49% - 50vw); /* растягивает на всю ширину окна */
  border-radius: 0;              /* чтобы не было "карточки" */
}

/* затемнение */
.hero-banner::before{
  content:"";
  position:absolute;
  inset:0;
  /* background: linear-gradient(
    90deg,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.45) 55%,
    rgba(0,0,0,0.70) 100%
  ); */
    background: linear-gradient(
    90deg,
    rgba(0,0,0,0.02) 80%,
    rgba(0,0,0,0.2) 95%,
    rgba(0,0,0,0.1) 100%
  );
  z-index:1;
}

/* контейнер */
.hero-banner-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 16px;
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 1fr 560px;  /* правая зона под текст */
  align-items: center;
  column-gap: 24px;
}

/* ТЕКСТОВАЯ КОЛОНКА */
.hero-banner-text{
  grid-column: 2;
  max-width: 560px;
  color: #fff;

  /* подложка, чтобы текст гарантированно был читабелен */
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(2px);
  padding: 18px 18px;
  border-radius: 16px;
  padding-left: 24px;   /* ← СДВИГ ВПРАВО (регулируется) */
}

.hero-kicker{
  letter-spacing: .08em;
  opacity: .9;
  font-size: 13px;
}

.hero-title{
  margin: 10px 0 12px;
  font-size: 30px;
  line-height: 1.15;
}

.hero-meta{
  font-size: 14px;
  opacity: .95;
}

.hero-cta{
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-btn{
  text-decoration: none;
  background: #ffffff;
  color: #0b1b2b;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.65);
}

.hero-btn.ghost{
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}

/* Узоры по бокам (опционально) */
.ornament{
  position: absolute;
  top: 0;
  bottom: 0;
  width: 190px;
  background-size: cover;
  background-position: center;
  opacity: .95;
  z-index: 1;
}

.ornament.left{ left: 0; background-image: url("images/ornament-left.png"); }
.ornament.right{ right: 0; background-image: url("images/ornament-right.png"); }

/* ===== Countdown ===== */
.countdown-wrap{
  width: 100%;
  margin: 0;
  /* background: #0b1b2b;          темно-синий в стиле сайта */
  background: #04294e;  /*Changed*/
}

.countdown-bar{
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.countdown-left{
  color: #fff;
  min-width: 180px;
}

.countdown-kicker{
  font-size: 12px;
  letter-spacing: .10em;
  opacity: .85;
}

.countdown-date{
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
}

.countdown-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  flex: 1;
}

.cd-item{
  border-left: 1px solid rgba(255,255,255,0.18);
  padding-left: 14px;
  color: #fff;
}

.cd-num{
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}

.cd-label{
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: .12em;
  opacity: .85;
}

/* ===== Conference Sections Cards ===== */
.sections-block{
  margin-top: 48px;
}

.sections-grid{
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.section-card{
  display: block;
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid #e6e9ee;
  background: #ffffff;
  text-decoration: none;
  color: #0b1b2b;
  margin-top: 20px;
  transition: all 0.25s ease;
}

.section-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  border-color: #1f4f8f;
}

.section-title{
  font-size: 16px;
  font-weight: 700;   /* ЖИРНЫЙ заголовок */
  line-height: 1.35;
}

.section-desc{
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;   /* НЕ жирный текст */
  color: #4b5563;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px){
  .sections-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px){
  .sections-grid{
    grid-template-columns: 1fr;
  }
}

html{
  scroll-behavior: smooth;
}

/* чтобы якорь не уезжал под фиксированную шапку */
section[id]{
  scroll-margin-top: 90px; /* подстрой 80–110 если надо */
}


/* Mobile */
@media (max-width: 900px){
  .countdown-bar{
    flex-direction: column;
    align-items: flex-start;
  }
  .countdown-grid{
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
  .cd-num{ font-size: 34px; }
}
 
/* Мобильная адаптация */
@media (max-width: 900px){
  .hero-banner-inner{
    grid-template-columns: 1fr;
  }
  .hero-banner-text{
    grid-column: 1;
    max-width: 100%;
  }
}

.section-card{
  border-radius: 16px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 6px 18px rgba(15,23,42,0.06);
}

/* ===== Committees page ===== */
.page-head .pill{
  display:inline-block;
  padding:8px 14px;
  border:1px solid #e6e9ee;
  border-radius:999px;
  font-size:13px;
  color:#1f2937;
  background:#fff;
  margin-bottom:14px;
}
.page-head .muted{ color:#6b7280; margin-top:10px; }

.chair-hero{
  margin-top: 22px;
  /* padding: 44px 20px; */
  padding: 22px 10px;
  text-align: center;
  border-radius: 22px;
  border: 1px solid #e6e9ee;
  background: #fff;
}
.avatar-xl{
  width: 220px;
  height: 220px;
  border-radius: 999px;
  object-fit: cover;
  display:block;
  margin: 0 auto 18px;
  /* filter: grayscale(100%); */
}
.person-name{
  margin: 0;
  font-size: 34px;
  letter-spacing: 0.5px;
}
.person-role{
  margin-top: 8px;
  font-size: 18px;
  color:#6b7280;
  font-weight: 600;
}
.person-bio{
  max-width: 760px;
  margin: 18px auto 0;
  color:#374151;
  line-height: 1.7;
}

.people-grid{
  margin-top: 26px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.person-card{
  padding: 20px 16px;
  border-radius: 22px;
  border: 1px solid #e6e9ee;
  background: #fff;
  text-align: center;
}
.avatar-lg{
  width: 180px;
  height: 180px;
  border-radius: 999px;
  object-fit: cover;
  display:block;
  margin: 0 auto 16px;
  /* filter: grayscale(100%); */
}
.person-name-sm{
  margin: 0;
  font-size: 26px;
}
.person-role-sm{
  margin-top: 8px;
  color:#6b7280;
  font-weight: 600;
}
.person-bio-sm{
  margin-top: 14px;
  color:#374151;
  line-height: 1.65;
}

.committee-block{
  margin-top: 26px;
  padding: 30px 22px;
  border-radius: 22px;
  border: 1px solid #e6e9ee;
  background: #fff;
}
.section-title2{
  margin: 0 0 18px 0;
  font-size: 26px;
}
.names-2col{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 30px;
}
.name-row{
  padding: 6px 0;
  border-bottom: 1px dashed #edf0f5;
  color:#111827;
  line-height: 1.6;
}
.name-row strong{ font-weight: 800; }

.conference-footer {
  background-color: #0b1f33;
  color: #ffffff;
  padding: 40px 20px;
  font-size: 15px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.footer-column h4 {
  font-size: 16px;
  margin-bottom: 12px;
  border-bottom: 1px solid #2c4b6b;
  padding-bottom: 6px;
}

.footer-column p {
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column a {
  color: #a9c7ff;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-logo {
  margin: 12px 0 16px 0;
}

.footer-logo img {
  max-width: 250px;
  height: auto;
  display: block;
}

.form-grid{
  display:grid;
  gap:12px;
  grid-template-columns: 1fr;
}

@media (min-width: 820px){
  .form-grid{
    grid-template-columns: 1fr 1fr;
  }
}

.form-field label{
  display:block;
  font-weight:600;
  margin-bottom:6px;
}

.form-field input,
.form-field select{
  width:100%;
  padding:10px 10px;
  border:1px solid var(--border);
  border-radius:10px;
  font: inherit;
}

.form-full{
  grid-column: 1 / -1;
}

.form-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.form-actions .btn{
  border:1px solid #111;
  background:#354e7e;
  border-radius:10px;
  padding:15px 15px;
  text-decoration:none;
  font-size: small;
  color:#ffffff;
  margin-top:20px;
}

.form-actions .btn:hover{
  background:#1f4f8a;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  border-color: #29558d;
  cursor: pointer;
}

.hp-field{ display:none; }

@media (max-width: 900px){
  .people-grid{ grid-template-columns: 1fr; }
  .names-2col{ grid-template-columns: 1fr; }
  .avatar-xl{ width: 180px; height: 180px; }
  .avatar-lg{ width: 150px; height: 150px; }
}



/* ===== Admin panel wider layout ===== */
.admin-wide {
  max-width: 1400px;   /* was ~1100px */
}

@media (min-width: 1600px) {
  .admin-wide {
    max-width: 1600px;
  }
}

.organizers-card{
  text-align: center;
}

.organizers-name{
  margin-top: 8px;
  font-size: 12px;
  color:#0b0d0f;
  font-weight: 600;
}

.organizers-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 logos per row */
    gap: 14px;
    margin-top: 40px;
}

.organizers-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
}

@media (max-width: 1200px) {
    .organizers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 800px) {
    .organizers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}