@font-face
{
	font-family: "HeliosCond";
	src: url("../fonts/HeliosCondRegular/HeliosCondRegular.eot");
	src: url("../fonts/HeliosCondRegular/HeliosCondRegular.eot?#iefix") format("embedded-opentype"),
	url("../fonts/HeliosCondRegular/HeliosCondRegular.woff") format("woff"),
	url("../fonts/HeliosCondRegular/HeliosCondRegular.ttf") format("truetype");
	font-style: normal;
	font-weight: normal;
}

@font-face
{
	font-family: "HeliosCond";
	src: url("../fonts/HeliosCondItalic/HeliosCondItalic.eot");
	src: url("../fonts/HeliosCondItalic/HeliosCondItalic.eot?#iefix") format("embedded-opentype"),
	url("../fonts/HeliosCondItalic/HeliosCondItalic.woff") format("woff"),
	url("../fonts/HeliosCondItalic/HeliosCondItalic.ttf") format("truetype");
	font-style: italic;
	font-weight: normal;
}

@font-face
{
	font-family: "HeliosCond";
	src: url("../fonts/HeliosCondBold/HeliosCondBold.eot");
	src: url("../fonts/HeliosCondBold/HeliosCondBold.eot?#iefix") format("embedded-opentype"),
	url("../fonts/HeliosCondBold/HeliosCondBold.woff") format("woff"),
	url("../fonts/HeliosCondBold/HeliosCondBold.ttf") format("truetype");
	font-style: normal;
	font-weight: bold;
}

@font-face
{
	font-family: "HeliosCond";
	src: url("../fonts/HeliosCondBoldItalic/HeliosCondBoldItalic.eot");
	src: url("../fonts/HeliosCondBoldItalic/HeliosCondBoldItalic.eot?#iefix") format("embedded-opentype"),
	url("../fonts/HeliosCondBoldItalic/HeliosCondBoldItalic.woff") format("woff"),
	url("../fonts/HeliosCondBoldItalic/HeliosCondBoldItalic.ttf") format("truetype");
	font-style: italic;
	font-weight: bold;
}

* {
  box-sizing: border-box;
}

html, body
{
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  font-family: HeliosCond, Verdana, Arial;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#content_container
{
  margin: 0 auto;
  width: 100%;
  max-width: 1491px;
  flex: 1;
  padding: 0 10vw;
}

/* Центральная колонка */
#content_container div#center_column
{
  margin: 0;
  padding-bottom: 55px;
  width: 100%;
}

#content_container div#content
{
  overflow: visible;
  width: 100%;
  color: #525252;
  font-size: 1rem;
}

/* Заголовки разделов */
#content_container div#center_column h1
{
  margin-top: 40px;
  margin-bottom: 20px;
  margin-left: -30px;
  font-size: 28px;
  font-weight: normal;
  text-transform: uppercase;
  color: #6daa58;
  text-decoration: underline #f0c722;

}

#content_container div#center_column h2
{
  font-size: 24px;
  font-weight: normal;
  margin: 25px 0 15px;
}

#content_container div#center_column h3
{
  font-size: 20px;
  font-weight: normal;
  color: #6daa58;
  margin: 20px 0 15px;
  margin-left: -20px;
}

#content_container div#center_column div#content > p,
#content_container div#center_column div#content > ul
{
  margin: 15px 0;
  color: #525252;
  text-align: justify;
  font-size: 1rem;
  line-height: 1.1;
  /* font-weight: 400; */
}

div#footer
{
  display: block;
  width: 100%;
  height: 50px;
  background-color: #f0c722;
  color: #ffffff;
  font-size: 14px;
  padding: 0 15px;
}

div#footer a
{
  color: #ffffff;
}

div#footer div.footer_left
{
  float: left;
  line-height: 50px;
}

div#footer div.footer_right
{
  float: right;
  line-height: 50px;
}

/*Общие*/
ul.second_level_menu_list li
{
  list-style-type: none;
  text-indent: -1.2em;
  padding-top: 10px;
  font-size: 1rem;
  line-height: 1.1;
}

ul.second_level_menu_list li:before {
 color: #f0c722;
 content: url(../img/marker.png);
 padding-right: 7px;
}

/*добавляем значок pdf перед названием файла*/
a[href$=".pdf"] {
  background: url(../img/pdf.gif) no-repeat 0 -1px;
  padding-left: 20px;
  font-size: 1rem;
}

/*добавляем значок doc перед названием файла*/
a[href*=".doc"] {
  background: url(../img/doc.gif) no-repeat 0 -1px;
  padding-left: 20px;
  font-size: 1rem;
}

p {
    
    font-size: 1rem;
}

.year-break {
    margin: 40px 0;
    /* border-top: 1px solid #e0e0e0; */
    /* padding-top: 10px; */
}

a#docs_pdf, li a
{
  color: #525252;
  text-decoration: underline;
  font-size: 1rem;
}

a#docs_pdf:hover, li a:hover
{
  text-decoration: underline;
}

table.content
{
  border-collapse: collapse;
  width: 100%;
  font-size: 1rem;
}

table.content th,
table.content td
{
  /* border: 1px solid #525252; */
  /* padding: 12px 15px; */
  text-align: left;
  vertical-align: top;
}

table.content td p
{
  margin: 5px 0;
  font-size: 16px;
}

/* Адаптивная таблица */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  /* margin: 20px 0; */

}

@media (max-width: 768px) {
  .table-responsive table.content {
    display: block;
  }

  .table-responsive table.content tbody,
  .table-responsive table.content tr,
  .table-responsive table.content td {
    display: block;
    border: none;
  }

  .table-responsive table.content tr {
    margin-bottom: 10px;
    /* border: 1px solid #525252; */

    background-color: #fff;
  }

  .table-responsive table.content td {
    /* padding: 4px 5px; */
  }

  .table-responsive table.content td:first-child {
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
  }

  .table-responsive table.content td:last-child {
    color: #525252;
  }
}

/* New header styles */
body {
    margin: 0;
    font-family: HeliosCond, Arial, sans-serif;
    overflow-x: hidden;
}

header {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: none;
    position: relative;
}

/* --- ВЕРХНЯЯ ЧАСТЬ --- */
.header-top {
    position: relative;
    height: 100px;
    width: 100%;
    max-width: 1400px;
    margin: 20px auto 30px;
    overflow: visible;
}

/* --- НОВЫЙ ПУСТОЙ БЛОК --- */
.empty-block {
    position: absolute;
    bottom: -10px;
    right: calc(100% - 39px);
    width: 50vw;
    height: 95px;
    transform: skewX(-18deg);
    background-color: #a8dd95;
    z-index: 1;
}

/* --- 1 БЛОК (ЛОГОТИП) --- */
.logo {
    background-color: #2c6d38;
    color: white;
    width: calc(100% - 50px);
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    position: relative;
    padding-left: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 2;
    transform: skewX(-18deg) translateX(-18px);
    margin-left: 70px;
}

/* Текст внутри Логотипа: ОБРАТНЫЙ НАКЛОН */
.logo-text {
    transform: skewX(18deg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0px;
    font-size: 10px;
    letter-spacing: 1px;
    padding: 10px 0;

}

.slogan, .organization {
    bottom: -10px;
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: none;
    margin-right: 0;
    z-index: 3;

}



/* --- 2 БЛОК (СЛОГАН) --- */
.slogan {
    background-color: #a8dd95;
    color: #2c6d38;
    max-width: 30vw;
    position: relative;
    overflow: hidden;
    left: 4vw;
    top:10px;
    border-left: 15px solid #f0c722;
    letter-spacing: -0.02em;
    font-size: 15pt;
    line-height: 17pt;
    font-weight: 700pt;
}





/* --- 3 БЛОК (ОРГАНИЗАЦИЯ) --- */
.organization {
    background-color: #ffffff;
    color: #333333;
    z-index: 1;
    margin-top: 20px;
    margin-left: auto;
    flex-grow: 1;
    margin-right: -1px;
}

.organization > * {
    transform: skewX(18deg) ;
    
}

.content-wrapper {
    transform: skewX(18deg);
    margin-left: 30px;
    margin-right: 30px;
}

.osu-logo-txt {
    width: auto;
    height: 30px;
    margin-right: 15px;
    flex-shrink: 0;
}

/* --- LOGO EMPTY RIGHT --- */
.logo-empty-right {
    position: relative;
    top: -100px;
    left: 50vw;
    width: 50vw;
    height: 13px;
    background-color: #2c6d38;
    z-index: 1;
}

/* --- НАВИГАЦИЯ --- */
.main-nav {
    background-color: #69ac52;
    width: 100%;
    height: 35px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: block;
}

.main-nav ul {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
}

.main-nav li {
    flex: 1;
    min-width: 150px;
    text-align: center;
}

.main-nav a {
    display: block;
    height: 35px;
    line-height: 35px;
    padding: 0 20px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: background 0.3s, color 0.3s;
    white-space: nowrap;
    text-transform: uppercase;
}

.main-nav li:last-child a {
    padding-right: 0;
}

.main-nav a:hover,
.main-nav li.active a {
    background-color: #f0c722;
    color: #333;
}

/* Submenu styles */
.main-nav ul.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 37.5%;
  transform: translateX(-50%);
  background-color: #69ac52;
  min-width: 250px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 0;
  margin: 0;
}

.main-nav li:hover ul.submenu {
  display: block;
}

.main-nav ul.submenu li {
  display: block;
  width: 100%;
  margin: 0;
}

.main-nav ul.submenu a {
  display: block;
  height: 40px;
  line-height: 40px;
  padding: 0 20px;
  white-space: nowrap;
  font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.main-nav ul.submenu a:hover,
.main-nav ul.submenu li.active a {
  background-color: #f0c722;
  color: #333;
}

/* --- ГАМБУРГЕР --- */
.hamburger {
    display: none;
    position: fixed;
    top: 18px;
    right: 25px;
    background: #fff;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    z-index: 10000;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    width: 50px;
    height: 50px;
    transition: opacity 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
}

.hamburger:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.6);
}

.hamburger.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #2c6d38;
    margin: 5px auto;
    transition: 0.4s;
    border-radius: 2px;
}

/* --- МОБИЛЬНОЕ МЕНЮ --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 9000;
}

.mobile-menu-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background-color: #2c6d38;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 9500;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    background-color: rgba(0,0,0,0.1);
}

.menu-title {
    color: white;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.close-btn-inner {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0 5px;
    transition: color 0.3s;
}

.close-btn-inner:hover {
    color: #ffcccc;
}

.mobile-menu-links {
    flex: 1;
    overflow-y: auto;
    padding-left: 0;
}

.mobile-menu-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mobile-menu-links a {
    display: block;
    padding: 18px 25px 18px 20px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.3s;
    text-transform: uppercase;
}

.mobile-menu-links li {
    list-style: none;
}

.mobile-menu-links a:hover,
.mobile-menu-links li.active a {
    background-color: rgba(255,255,255,0.2);
}

/* Submenu in mobile menu */

.mobile-menu-links li.submenu {
  display: none;
  margin-left: 0;
}

.mobile-menu-links li.submenu a {
  padding-left: 40px;
  font-size: 16px;
}

/* --- АКТИВНОЕ СОСТОЯНИЕ --- */
.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-overlay.open .mobile-menu-content {
    transform: translateX(0);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: #d9534f;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: #d9534f;
}

.logo-img {
    width: 50px;
    height: auto;
    margin-right: 15px;
    flex-shrink: 0;
    transform: skewX(18deg);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.5));
}

.university-img {
    width: 25px;
    height: auto;
    flex-shrink: 0;
    margin-right: 5px;
}

.endowment-title {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.0;
    text-align: left;
    margin: 0;
    white-space: nowrap;
    letter-spacing: -0.5px;
    
}

.university-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.3;
    text-align: left;
    margin: 0;
    white-space: normal;
    padding-top: 0px;

}

  .arrow {
    width: 53px;
    height: auto;
  }

  .hiw-item img.arrow {
    margin-top: clamp(4px, 3vw, 30px);
    max-width: 5vw;
  }

/* --- АДАПТИВНОСТЬ (Планшеты 769px - 1100px) --- */
@media (max-width: 1100px) {
        .slogan {
        display: none;
    }
    .header-top {
        height: 90px;
    }
    .logo-text {
        width: 220px;
    }
    .logo {
        padding-left: 15px;
    }
    .logo-empty-right{
      top: -90px;  
    }
    .content-wrapper {
        font-size: 14px;
        padding: 0 20px;
    }

    .endowment-title {
        font-size: 18px;
    }

    .university-subtitle {
        font-size: 11px;
        width: 250px;
    }
    .organization{
        margin-top: 30px;
        margin-right: -1px;
        max-width: 40vw;
    }
    .main-nav a {
       
        font-size: 16px;
    }

    #content_container div#center_column h1 {
        font-size: 26px;
    }

    #content_container div#center_column h2 {
        font-size: 22px;
    }

    #content_container div#center_column h3 {
        font-size: 20px;
    }

    #content_container div#center_column div#content > p,
    #content_container div#center_column div#content > ul {
        font-size: 1rem;
    }
}

/* --- АДАПТИВНОСТЬ (Мобильные 481px - 768px) --- */
@media (max-width: 768px) {
    .header-top {
        height: auto;
        min-height: 100px;
        margin-top: 0;
        margin-bottom: 0px;
        left: 0;
    }
    .slogan {
        display: none;
    }

    /* Мобильная версия контактов - одноколоночная таблица */
    .contacts-container {
        width: 100%;
    }

    .contacts-table {
        width: 100%;
        border-collapse: collapse;
    }

    .contacts-table .contact-row {
        display: block;
        margin-bottom: 2px;
    }

    .contacts-table .contact-row:nth-child(odd) .contact-cell {
        font-weight: bold;
        padding: 10px 0 !important;
    }

    .contacts-table .contact-row:nth-child(even) .contact-cell {
        padding: 0px 0 !important;
    }

    .contacts-table .contact-cell {
        display: block;
        width: 100%;
        border: none;
    }
    #content_container div#center_column h1 {
        margin-left: 0;
    }
    #content_container div#center_column h3 {
        margin-left: 0px;
    }
    ul.second_level_menu_list {
        margin-left: 0;
        padding-left: 0;
    }
    ul.second_level_menu_list li {
        text-indent: 0;
        margin-left: 10px;
    }
    .empty-block {
        display: none;
    }

    .logo {

        margin-left: 0;
        width: 100%;
        padding-left: 15px;
        height: 80px;
        flex-wrap: nowrap;
        transform: none;
    }

    .logo-text {
        transform: none;
        gap: 3px;
    }

    .endowment-title {
        font-size: 16px;
    }

    .university-img{
        margin-bottom: 52px;
        
    margin-right: 94px;

    }

    .slogan {
        display: none;

    }

    .content-wrapper {
        transform: skewX(18deg);
        font-size: 12px;
        padding: 0 15px;
        text-align: center;

    }

    .organization {
        position: absolute;
        right: 10px;
        top: 22px;
        width: auto;
        height: auto;
        background-color: transparent;
    }

    .organization > * {
        transform: none;
    }

    .university-img {
        filter: brightness(0) invert(1);
    }
    .logo-empty-right{
      top: -90px;  
    }
    .osu-logo-txt {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .main-nav {
        display: none;
    }

    .logo-empty-right {
        display: none;
    }

    #content_container {
        padding: 0 10px;
    }

    #content_container div#center_column h1 {
        font-size: 24px;
        margin-top: 30px;
    }

    #content_container div#center_column h2 {
        font-size: 20px;
    }

    #content_container div#center_column h3 {
        font-size: 18px;
    }

    #content_container div#center_column div#content > p,
    #content_container div#center_column div#content > ul {
        font-size: 1rem;
        line-height: 1.1;
    }

    ul.second_level_menu_list li {
        font-size: 16px;

    }

    table.content th,
    table.content td {
        /* padding: 8px 10px; */
        font-size: 1rem;
    }

    .logo-img {
        width: 40px;
        margin-right: 10px;
        transform: none;
    }

    .content-wrapper {
        transform: none;
    }
}

/* --- АДАПТИВНОСТЬ (Мобильные до 480px) --- */
@media (max-width: 480px) {
    .header-top {
        min-height: 80px;
    }

    #content_container div#center_column h3 {

    margin-left: 0px;
    }

    .logo {
        height: 70px;
        padding-left: 15px;

    }

    .endowment-title {
        font-size: 14px;
    }

    .university-img{
        display: none;

    }

    .logo-img {
        width: 35px;
        margin-right: 8px;
    }

    .slogan {
        display: none;
    }

    .content-wrapper {
        font-size: 11px;
        padding: 0 10px;
    }

    #content_container div#center_column h1 {
        font-size: 22px;
        margin-top: 50px;
    }

    #content_container div#center_column h2 {
        font-size: 18px;
    }

    #content_container div#center_column h3 {
        font-size: 16px;
    }

    #content_container div#center_column div#content > p,
    #content_container div#center_column div#content > ul {
        font-size: 15px;
    }

    ul.second_level_menu_list li {
        font-size: 15px;
    }

    .hamburger {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }

    .mobile-menu-content {
        width: 85%;
        max-width: 300px;
    }

    .mobile-menu-header {
        padding: 20px 15px;
    }

    .menu-title {
        font-size: 18px;
    }

    .mobile-menu-links a {
        padding: 16px 20px;
        font-size: 16px;
    }

    div#footer {
        height: 40px;
        font-size: 12px;
    }

    div#footer div.footer_left,
    div#footer div.footer_right {
        line-height: 40px;
    }
}
/* --- АДАПТИВНОСТЬ (Мобильные до 320px) --- */
@media (max-width: 320px) {
    .university-img{
        display: none;
    }
}
/* Фикс для изображений */
img {
    max-width: 100%;
    height: auto;
}

/* Стиль для текста в блоке slogan - прямой шрифт */
.content-wrapper {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-style: normal;
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* How it works schema */
.how-it-works {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  margin: 20px 0;
}

.hiw-item {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr;
  justify-items: center;
  align-items: center;
  max-width: 100px;
  fill: #69ac52;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hiw-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.hiw-item img {
  grid-row: 1;
  max-width: clamp(20px, 36vw, 100px);
  height: auto;

}

.hiw-caption {
  grid-row: 2;
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: #69ac52;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .how-it-works {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-left: 10vw;
  }

  .hiw-item {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 0.2fr 1fr;
    align-items: center;
    justify-items: start;
    max-width: none;
    width: 100%;
    gap: 10px;
  }

  .hiw-item img {
    grid-row: 1;
    grid-column: 1;
    height: auto;
    flex-shrink: 0;
    width: clamp(20px, 36vw, 80px);
    justify-self: center;
  }

  .hiw-item img.arrow {
    transform: rotate(90deg);
    justify-self: center;
    margin-top: 0;
  }

  .hiw-caption {
    grid-row: 1;
    grid-column: 2;
    margin-top: 0;
    text-align: left;
    font-size: 16px;
  }
}
