/* Цвета */
:root {
--primary-color: #DCDCD0;
--secondary-color: #DCDCD0;
--background-color: #ecf0f1;
--text-color: #2B2B2B;
--meta-color: #bfbfb2;

}

/* =========================== Сброс и базовые стили */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Unbounded', sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--background-color);
font-weight: 400;
font-size: 16px;
}




/* =========================== Типографика для мобилы */
h1 {
font-size: 4rem;
font-weight: 900;
margin-bottom: 1rem;
color: white;
Text-transform: uppercase;
}

h2 {
font-size: 2.5rem;
font-weight: 900;
margin-bottom: 1rem;
}

h3 {
font-size: 2rem;
font-weight: 900;
margin-bottom: 1rem;
}

p {
margin-bottom: 1rem;
line-height: 1.7;
}

a {
color: var(--secondary-color);
text-decoration: none;
}

.meta {
font-size: 0.85rem;
color: var(--meta-color);
margin-top: 0.5rem;
}




/*=========================== */



/*=========================== Хедер и футер */

header {
Height: 400px;
background-color: var(--primary-color);
text-align: center;

}

footer {
Height: 200px;
text-align: center;
background-color: var(--primary-color);
font-size: 1.5rem;
color: var(--meta-color);

}



/* =========================== Контейнер */
.container {
max-width: 1000px;
margin: 0 auto;
padding: 0rem;
}




/* =========================== Секции */
.section {
border-bottom: 1px solid var(--meta-color);
padding-top: 4rem;
padding-bottom: 4rem;
}


/* Флекс-сетка: 2 колонки на десктопе, 1 на мобиле */
.flex-row {
display: flex;
flex-wrap: wrap;
gap: 0rem;
align-items: center;
Height: 100%;
}

.flex-col {
flex: 1 1 100%;
min-width: calc(50% - 0.75rem);
Padding: 1rem;
}

/* Скрытие пустой галереи */
.flex-col.empty-gallery {
height: 0;
padding: 0;
margin: 0;
overflow: hidden;
}


/* =========================== Изображения проектов */
.project-image {
width: 100%;
height: auto;
display: block;
margin-bottom: 1rem;
}

.images-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}


.image-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: transparent;
    overflow: hidden;
    position: relative;
}

.image-wrapper.loading {
    background-color: white;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



/*=========================== Десктоп: 2 колонки */
@media (min-width: 768px) {
.flex-col {
flex: 1 1 45%;
}

.images-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1rem;
}

h1 {
font-size: 8rem;
line-height: 1.2;
}

}


/*=========================== Анимации */

.fade-in {
  opacity: 0;
  transform: translateY(40px);
}

.visible {
  animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

