@font-face {
  font-family: 'Wremena';
  font-style: normal;
  font-weight: 300;
  src: url('/fnt/Wremena Light.woff') format('woff');
}
@font-face {
  font-family: 'Wremena';
  font-style: normal;
  font-weight: 400;
  src: url('/fnt/Wremena Regular.woff') format('woff');
}
@font-face {
  font-family: 'Wremena';
  font-style: normal;
  font-weight: 700;
  src: url('/fnt/Wremena Bold.woff') format('woff');
}

.section-nav-layout {
display: flex;
align-items: flex-start;
gap: 40px;
padding: 40px 20px;
max-width: 1200px;
margin: 0 auto;
}

.menu-sidebar {
width: 260px;
font-family: 'Geologica', sans-serif;
}

.menu-list {
list-style: none;
padding: 0;
margin: 0;
}

.menu-item {
margin-bottom: 16px;
}

.menu-toggle {
display: flex;
align-items: center;
gap: 12px;
background: none;
border: none;
font-size: 18px;
font-weight: bold;
color: #2A2055;
cursor: pointer;
width: 100%;
text-align: left;
}

.menu-toggle .icon-arrow {
transition: transform 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .icon-arrow {
transform: rotate(180deg);
}

.submenu {
list-style: none;
margin-top: 8px;
padding-left: 36px;
display: flex;
flex-direction: column;
gap: 6px;
}

.submenu a {
font-size: 15px;
color: #333;
text-decoration: none;
}

.submenu a:hover {
text-decoration: underline;
}


.content {
flex: 1;
}

.svg-block {
margin-bottom: 24px;
}

.text-block {
font-size: 16px;
line-height: 1.5;
}

.menu-sidebar {
width: 200px;
font-family: 'Geologica', sans-serif;
}

.menu-list {
list-style: none;
padding: 0;
margin: 0;
}

.menu-item {
margin-bottom: 16px;
}

.menu-toggle {
display: flex;
align-items: center;
gap: 12px;
background: none;
border: none;
font-size: 18px;
font-weight: bold;
color: #2A2055;
cursor: pointer;
width: 100%;
text-align: left;
}

.menu-toggle .icon-arrow {
transition: transform 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .icon-arrow {
transform: rotate(180deg);
}

.submenu {
list-style: none;
margin-top: 8px;
padding-left: 36px;
display: flex;
flex-direction: column;
gap: 6px;
}

.submenu a {
font-size: 15px;
color: #333;
text-decoration: none;
}

.submenu a:hover {
text-decoration: underline;
}

.hidden {
display: none;
}
.contact-item
{
    margin-bottom: 10px;
}
.cnt-title
{
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.cnt-title-2
{
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}


a
{
    text-decoration: none;
    color:#1B1640;
}
h2 {
font-size: 2rem;
margin-top: 0px;
margin-left: 0px;
margin-bottom: 26px;
text-transform: uppercase !important;
}
h3
{
    margin-bottom: 20px;
}
p{
    font-size: 18px;
    margin-bottom: 16px;
    line-height: 1.4;
}
span
{
    font-weight: bold;
}
img {
object-fit: contain;
width: 100%;
height: 100%;
}

.fancybox__backdrop {
background: linear-gradient(135deg, #EEEAFF 0%, #EEEAFF 100%) !important;
}

.fancybox__caption
{
    color: #2A2055
}

body {
font-family: 'Geologica', sans-serif;
margin: 0;
color: #1B1640;
background: #fff;
}

.header {
background-color: #1A162D;
color: white;
padding: 16px 0;
}

aside
{
    top: 20px;
    position: sticky;
}

.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 16px;
display: flex;
align-items: center;
justify-content: space-between;
}
.header .container
{
margin: unset;
}

.logo svg {
height: 35px;
width: auto;
display: block;
}

.nav {
display: flex;
gap: 32px;
}

.nav a {
color: white;
text-decoration: none;
font-size: 16px;
transition: opacity 0.2s ease;
}

.nav a:hover {
opacity: 0.8;
}

.burger {
display: none;
flex-direction: column;
gap: 4px;
background: none;
border: none;
cursor: pointer;
}

.burger span {
width: 24px;
height: 2px;
background: white;
display: block;
}

.header nav {
position: absolute;
right: 18px;
position: unset;
        right: -18px;
        top: 50.7px;

}
h3 {
    font-size: 1.8rem;
}

/* Mobile styles */
@media (max-width: 768px) {
    h2 {
        font-size: 1.4rem;
    }
    h3 {
        font-size: 1.2rem;
    }
.nav {
position: absolute;
top: 64px;
right: 0;
right: -32px;
top: 50px;
background: #1A162D;
flex-direction: column;
width: 200px;
padding: 16px;
display: none;
}

.nav.active {
display: flex;
}

.burger {
display: flex;
}


button#burger {
position: absolute;
right: 16px;
}

.header nav {
position: absolute;
right: 0px;
right: -32px;
        right: -18px;
        top: 50.7px;

}


aside.menu-sidebar {
display: none;
}



}

.header {
position: relative
}

div.logo {
left: 20px; 
position: absolute;

}


section
{
    margin-top: 18px;
    margin-bottom: 18px;
}


.buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 40px;
  }
  .btn {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80%;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-family: inherit;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform .1s ease-in-out;
  }
  .btn:hover { transform: translateY(-2px); }
  .btn.telegram { background: #32A0EE; }
  .btn.vk       { background: #4C75A3; }
  .btn.mgu      { background: #2A2055; }

  .btn.mgu.mgu__white
  {
   background: #fff; 
   color: #000;
  }
  .btn img {
    width: 20px;
    height: 20px;
    display: block;
  }

    footer {
        position: relative;
        z-index: 20;
    }

  .site-footer {
    background-color: #1A162D;
    color: #ffffff;
    padding: 40px 20px;
  }
  
  .footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
  }
  
  /* Левая часть: вертикально логотипы */
  .footer-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  

  /* Навигация */
  .footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .footer-nav a {
    color: inherit;
    text-decoration: none;
    font-size: 18px;
    line-height: 1.4;
  }
  .footer-nav a:hover {
    text-decoration: underline;
  }
  .footer-buttons

  {
    max-width: 230px;
  }
  
  
  /* Адаптив */
  @media (max-width: 768px) {
    .footer-container {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 30px;
    }
    .footer-nav ul {
      flex-direction: row;
      flex-wrap: wrap;
      gap: 10px 20px;
      justify-content: center;
    }

    .footer-buttons
    {
      max-width: unset;
      justify-content: center;
    }
    .footer-buttons .btn
    {
        max-width: 180px;
    }
  }
  


@media(min-width: 768px)
{
    .footer-container
    {
        display: grid; 
        grid-template-columns: 4fr 1fr 3fr;
    }
    .footer-buttons.buttons {justify-self: end;}
.footer-logo-main {
    transform: translateX(-45px);
}
}

.footer-container {
    max-width: 1140px;
    align-items: center;
}




/* Main layout with sidebar - updated grid layout */
.section-nav-layout {
    display: grid;
    grid-template-columns: 0.2fr 1fr;
    gap: 30px;
    max-width: 1140px; /* 340 + 570 + 30 gap */
    margin: 0 auto;
    padding: 40px 20px;
    align-items: flex-start;
}

/* Sidebar styles - updated to match existing design */
.menu-sidebar {
    width: 280px;
    position: sticky;
    top: 20px;
    font-family: 'Geologica', sans-serif;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.menu-item {
    margin-bottom: 16px;
}

.menu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #2A2055;
    cursor: pointer;
    width: 100%;
    text-align: left;
    padding: 0;
}

.menu-toggle .icon-arrow {
    transition: transform 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .icon-arrow {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    margin-top: 8px;
    padding-left: 36px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.submenu a {
    font-size: 15px;
    color: #333;
    text-decoration: none;
}

.submenu a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

/* Contacts section - updated to match existing design */
.contacts {
    padding: 20px 0;
    margin-top: 0px;
}

.cnt-title-2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-item {
    margin-bottom: 15px;
}

.contact-item a {
    color: #1B1640;
    text-decoration: none;
}
.contact-item a.btn {
  color: #fff;
  max-width: 180px;
  min-width: unset;
}


.contact-item a:hover {
    text-decoration: underline;
}

.buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform .1s ease-in-out;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn svg {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

.telegram {
    background: #32A0EE;
}

.vk {
    background: #4C75A3;
}

.mgu {
    background: #2A2055;
}

/* Content area */
.content {
    max-width: 870px;
}

/* Olympiad card styles */
.olympiad-card {
    display: flex;
    align-items: flex-start;
    padding: 40px 0;
    border-bottom: 1px dashed #D1D1D1;
    gap: 40px;
}

.olympiad-card:last-child {
    border-bottom: none;
}

.olympiad-media {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.olympiad-media img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.olympiad-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.olympiad-title {
    font-size: 28px;
    font-weight: 700;
    color: #1B1640;
    margin: 0 0 24px 0;
    text-transform: uppercase;
}

.olympiad-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 32px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #4A4A4A;
}

.olympiad-meta .meta-label,
.olympiad-meta .meta-classes {
    font-weight: 700;
    color: #2A2055;
}

.olympiad-meta .meta-winner strong,
.olympiad-meta .meta-prize strong {
    font-weight: 700;
    color: #1B1640;
}

.olympiad-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #1B1640;
    margin-bottom: 32px;
    flex-grow: 1;
}

.olympiad-content .button {
    align-self: flex-start;
    background-color: #1A162D;
    color: #FFF;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.olympiad-content .button:hover {
    background-color: #2A2055;
}

/* DVI section styles */
.dvi-section {
    padding: 60px 20px;
}

.dvi-section .section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1B1640;
    margin-bottom: 16px;
}

.dvi-section .section-subtitle {
    font-size: 24px;
    font-weight: 700;
    color: #1B1640;
    margin: 40px 0 16px;
}

.dvi-section .section-text {
    font-size: 16px;
    line-height: 1.6;
    color: #1B1640;
    margin-bottom: 24px;
}

.dvi-section .button {
    display: inline-block;
    background: #1A162D;
    color: #fff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dvi-section .button:hover {
    background: #2A2055;
}


/* Responsive adjustments */
@media (max-width: 900px) {


    .section-nav-layout {
        grid-template-columns: 1fr;
    }
    
    .menu-sidebar {
        width: 100%;
        position: static;
    }
    
    .content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .olympiad-card {
        flex-direction: column;
        padding: 24px 0;
        gap: 24px;
    }
    
    .olympiad-media {
        flex: none;
        width: 100%;
        height: auto;
    }
    
    .olympiad-title {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .olympiad-meta {
        gap: 8px 16px;
        margin-bottom: 16px;
    }
    
    .olympiad-desc {
        margin-bottom: 24px;
    }
    
    .dvi-section {
        padding: 40px 20px;
    }
    
    .dvi-section .section-title {
        font-size: 28px;
    }
    
    .dvi-section .section-subtitle {
        font-size: 20px;
        margin-top: 32px;
    }
    
    .dvi-section .section-text {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .btn {
        min-width: 180px;
    }
}








/* Общие стили для header */
.header {
  background-color: #1A162D;
  color: white;
  padding: 16px 0;
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Обёртка для контента (совпадает с сеткой) */
.wrapper {
  /* width: 100%; */
  max-width: 1140px;
  /* max-width: 940px; */
  margin: 0 auto;
  padding: 0 20px;
}

/* Контейнер внутри header */
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; /* Для мобильного меню */
}


.nav a {
  color: white;
  text-decoration: none;
}


/* Основная сетка контента */
.section-nav-layout {
  width: 100%;
  max-width:1140px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 230px 870px;
  gap: 60px;
}

/* Сайдбар */
.menu-sidebar {
  position: sticky;
  top: 100px; /* Отступ от sticky header */
  align-self: start;
}

/* Мобильная адаптация */
@media (max-width: 980px) {
  .wrapper, .section-nav-layout {
    width: 90%;
  }
  .section-nav-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .menu-sidebar {
    display: none;
    top: 80px;
  }

}



/* Стили для сайдбара */
.menu-sidebar {
  position: sticky;
  top: 100px;
  width: 280px;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-list li {
  margin-bottom: 12px;
}

.menu-list a {
  color: #A4ADC3;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.2;
  transition: color 0.3s ease, background-color 0.3s ease;
  display: block;
  border-radius: 4px;
}

.menu-list a:hover {
  color: #1B1640;
}

.menu-list a.active {
  color: #1B1640;
  font-weight: 700;
}


/* Физический факультет МГУ */

/* .h1

{

}
font-family: 'Geologica';
font-style: normal;
font-weight: 700;
font-size: 65px;
line-height: 100%;
letter-spacing: -0.06em;
background: linear-gradient(90deg, #2A2055 0%, #2A2055 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
text-fill-color: transparent; */



@media (max-width: 1190px) {

  .section-nav-layout {
    display: grid;
    grid-template-columns: 0.2fr 1fr;
    gap: 30px;
    max-width: 860px; /* 340 + 570 + 30 gap */
    margin: 0 auto;
    padding: 40px 20px;
    align-items: flex-start;
}
}

@media (max-width: 980px) {
    .section-nav-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


/* =========================
   404 page
   ========================= */

.error {
  min-height: 400px; 
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.error__content {
  max-width: 760px;
  width: 100%;
  text-align: center;
  padding: 48px 32px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(26, 22, 45, 0.12);
  border: 1px solid rgba(27, 22, 64, 0.08);
}

.error__title {
  font-weight: 700;
  font-size: clamp(64px, 10vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 18px;

  /* градиент как в твоих заголовках/айдентике */
  background: linear-gradient(90deg, #2A2055 0%, #2A2055 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.error__text {
  font-size: 18px;
  line-height: 1.5;
  color: #1B1640;
  margin: 0 0 12px 0;
}

.error__text:last-child {
  margin-bottom: 0;
}

.error__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* padding: 12px 18px; */
  /* border-radius: 10px; */
  margin-left: 6px;
  font-weight: 700;
  /* color: #ffffff; */
  /* background: #1A162D; */
  /* box-shadow: 0 6px 16px rgba(26, 22, 45, 0.18); */
  /* transition: transform .12s ease-in-out, background .12s ease-in-out, box-shadow .12s ease-in-out; */
}


/* Mobile */
@media (max-width: 768px) {
  .error {
    padding: 40px 16px;
  }
  .error__content {
    padding: 34px 18px;
    border-radius: 14px;
  }
  .error__text {
    font-size: 16px;
  }
  .error__link {
    width: 100%;
    margin: 12px 0 0 0;
    padding: 12px 16px;
  }
}


/* Ссылка на раздел частых вопросов (/faq/) со страниц разделов */
.faq-crosslink {
  margin: 20px 0 0;
}

.faq-crosslink a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid #2A2055;
  border-radius: 8px;
  color: #2A2055;
  background: #ffffff6b;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-crosslink a:hover {
  background: #2A2055;
  color: #fff;
  box-shadow: 0 6px 18px rgba(42, 32, 85, 0.22);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .faq-crosslink a {
    transition: none;
  }
  .faq-crosslink a:hover {
    transform: none;
  }
}

@media (max-width: 700px) {
  .faq-crosslink a {
    width: 100%;
    justify-content: space-between;
  }
}
