* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', Times, serif;
    color: black;
    background: #fff;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    height: 70px;
    box-sizing: border-box;
    overflow-x: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: black;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    background-color: #21ADFC;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.2s;
    white-space: nowrap;
    line-height: 1.2;
    display: inline-block;
}

.nav-links a:hover {
    background-color: #0e7bc2;
}



/* первый экран с фоном */
.hero {
    height: 100vh;
    background-image: url('images/back.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem 3rem;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
}

.hero-card h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: black;
}

.hero-card p {
    font-size: 1.3rem;
    color: black;
}

/* Блоки с информацией о проекте (чередование) */
.info-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.info-text {
    flex: 1;
    min-width: 250px;
}

.info-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-text p {
    font-size: 1.1rem;
    line-height: 1.5;
}

.info-image img {
    width: 530px;
    height: 310px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-image img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.info-block.reverse {
    flex-direction: row-reverse;
    gap: 5.3rem;
}

/* Отступы */
.spacer {
    height: 2rem;
}

/* Общий контент для остальных страниц (не hero) */
.content-page {
    max-width: 1100px;
    margin: 100px auto 40px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0);
}

.content-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: black;
}

.content-page p, .content-page li {
    font-size: 1.1rem;
    line-height: 1.5;
}

.journal-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.post-card {
    background: #f4f4f4;
    border-radius: 12px;
    padding: 1.5rem;
    width: 300px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-date {
    font-weight: bold;
    color: #21ADFC;
    margin-bottom: 0.5rem;
}

/* Участники */
.participants-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.participant-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    width: 260px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.participant-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.participant-role {
    color: #21ADFC;
    margin-bottom: 1rem;
}

.resources-list {
    list-style: none;
    padding-left: 0;
}

.resources-list li {
    margin-bottom: 0.8rem;
}

.resources-list a {
    color: #21ADFC;
    text-decoration: none;
    border-bottom: 1px solid #21ADFC;
}

.resources-list a:hover {
    color: #0e7bc2;
}

footer {
    text-align: center;
    padding: 3rem;
    background: #f0f0f0;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: black;
}

/* Специальный блок для журнала текст - видео - изображение */
.journal-media-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.journal-media-block .info-text {
    flex: 1;
    min-width: 200px;
}

.journal-media-block .info-video {
    flex: 0 0 200px;
    text-align: center;
}

.journal-media-block .info-image {
    flex: 0 0 auto;
    text-align: center;
}

/* Единый стиль для видео и изображения внутри журнального блока */
.journal-media-block .info-video video,
.journal-media-block .info-image img {
    height: 200px;
    width: auto;
    max-width: 300px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.journal-media-block .info-video video:hover,
.journal-media-block .info-image img:hover {
    transform: scale(1.50);      /* увеличивается на 5% */
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    z-index: 10;                 /* чтобы перекрывало соседние блоки */
}