/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */

/* body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
} */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Шапка сайта */
.site-header {
    background: linear-gradient(135deg, #1a3a5f 0%, #2c5282 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    /*text-transform: uppercase;*/
}

.logo::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4fd1c5;
    margin-left: 8px;
    border-radius: 50%;
}

/* Стили для бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Основное меню */
.main-nav {
    display: flex;
    margin-top: 15px;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    color: #4fd1c5;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4fd1c5;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Основной контент */
.hero {
    background: linear-gradient(rgba(26, 58, 95, 0.8), rgba(44, 82, 130, 0.8)), url('static/img/promo/1.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.hero h1 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background: #4fd1c5;
    /*color: #1a3a5f;*/
	color: #303030;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #38b2ac;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 209, 197, 0.4);
}

.info {
    padding: 30px 0;
    text-align: center;
}

.info h2 {
    font-size: 1.5rem;
    /*margin-bottom: 1.5rem;*/
    color: #1a3a5f;
}

.info p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.7;
}

.conferences {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
}

.news {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
    display: block;
	text-align: left;
}

.news_item {
    width: 100%;
	padding: 10px 5px 10px 5px;
	margin-bottom: 20px;
	border-radius: 15px;
}

.news_item a {
    color: ivory;
    text-decoration: underline;
}

.news_item a:hover {
    color: crimson;
}

.directions {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 5px;
    display: block;
	text-align: left;
}

.seminars {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    display: block;
	text-align: left;
}

.seminars a {
    color: black;
}

.seminars a:hover {
    color: darkblue;
}

.seminars p {
    font-size: 1rem;
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.seminars h3 {
	font-size: 1.2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
	margin-bottom: 1.5rem;
}

.seminar {
	width: 100%;
	padding: 20px 5px 10px 5px;
	margin-bottom: 20px;
	border-radius: 15px;
}

.seminar:hover {
	transform: scale(1.05) translateX(0);
    z-index: 3;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
	cursor: pointer;
}

.card {
    position: relative;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    transform-origin: center;
}

.card:hover {
    transform: scale(1.05) translateX(0);
    z-index: 3;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.3));
    z-index: 1;
    transition: all 0.3s;
}

.card:hover::before {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.4));
}

.card * {
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.card.visible {
    transform: translateX(0);
    opacity: 1;
}

.card h2 {
    margin: 0 0 20px 0;
    color: white;
    font-size: 22px;
    transition: transform 0.3s;
}

.card:hover h2 {
    transform: translateY(-5px);
}

.card p {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    transition: transform 0.3s;
}

.card:hover p {
    transform: translateY(5px);
}

/* Подвал */
.site-footer {
    background: #1a3a5f;
    color: white;
    text-align: center;
    padding: 2rem 0;
	text-align: left;
    line-height: 1.1;
}

.site-footer a {
	color: white;
}

.bm_photo {
  margin: 0 auto;
  width: 90%;
  max-width: 300px;
  /*margin-top: 30px;*/
}

/* Адаптивность — мобильная версия */
@media (max-width: 768px) {
    /* Показываем бургер-меню и скрываем обычное меню */
    .burger-menu {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 60px; /* Высота шапки */
        right: -100%; /* Изначально скрыто справа */
        width: 70%;
        height: calc(100vh - 79px);
        background: rgba(26, 58, 95, 0.95);
		alpha: 
        transition: right 0.3s ease;
        padding: 2rem 0;
        z-index: 999;
    }
    
    /* Активное состояние меню — показываем */
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        text-align: left;
		width: 100%;
    }
    
    .main-nav li {
        margin: 1rem 0;
    }
    
    /* Стили для пунктов меню в мобильной версии */
    .main-nav a {
        font-size: 1.3rem;
        padding: 0.5rem 2rem;
        border-radius: 4px;
        display: inline-block;
        width: fit-content;
    }
    
    .main-nav a:hover {
        background: rgba(79, 209, 197, 0.2);
    }
    
    /* Корректировки для контента */
    .hero h1 {
        margin-top: 10px;
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .about h2 {
        font-size: 2rem;
    }
    
    .site-header .container {
        flex-direction: row;
        justify-content: space-between;
    }

    .conferences {
        padding: 35px 0px;
        gap: 20px;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .seminars {
        padding: 20px 20px;
    }

    .seminar:hover {
    	transform: scale(1.05) translateX(0);
        z-index: 3;
        box-shadow: 16px 0px rgba(0, 0, 0, 0.4);
    	cursor: pointer;
    }
}
