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

a {
    text-decoration: none;
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

@font-face {
    font-family: 'Exo 2-ExtraLight';
    src: url(../fonts/Exo2-ExtraLight.woff2);
}

@font-face {
    font-family: 'Exo 2-Light';
    src: url(../fonts/Exo2-Light.woff2);
}

@font-face {
    font-family: 'Exo 2-Medium';
    src: url(../fonts/Exo2-Medium.woff2);
}

@font-face {
    font-family: 'Exo 2-Medium';
    src: url(../fonts/Exo2-Medium.woff2);
}

body {
    background-color: #f4f4f4;
    font-family: 'Exo 2-ExtraLight', sans-serif;
    color: #333;
}

:root {
    /* ——————————————————— Цвета ——————————————————— */
    --color-bg: #fff;
}

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

.btn-reset {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

/* HEADER */
.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    /* background-color: var(--color-bg); */
}

.header__block-right {
    display: flex;
    align-items: center;
}

.header__nav {
    margin-right: 150px;
}

.header__social-item {
    cursor: pointer;
}

.nav__list {
    display: flex;
    gap: 50px;
}

.nav__link {
    font-family: 'Exo 2-ExtraLight';
    font-size: 20px;
    font-weight: 100;
    transition: transform 0.3s ease, 0.3s ease;
}

.nav__link:hover {
    color: #bdbcbe;
}

.nav__link:active {
    color: #333;
}

.header__social-list {
    display: flex;
    gap: 20px;
}

.header__title {
    font-family: 'Exo 2-Light';
    font-size: 36px;
    font-weight: 200;
}

/* HERO */
.hero__container {
    height: 96vh;
}

/* SLIDER */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 0%;
}

/* FOOTER */

.footer__container {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer__block-bot {
    align-items: center;
    display: flex;
    flex-direction: column;
}

.footer__pretitle {
    display: block;
    text-align: center;
    font-family: 'Exo 2-Light';
}

.footer__title {
    margin-bottom: 10px;
    font-family: 'Exo 2-Light';
    font-size: 24px;
    font-weight: 200;
}

.footer__text {
    font-family: 'Exo 2-ExtraLight';
    font-weight: 100;
    font-size: 10px;
    text-align: center;
}

/* MODAL */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1500;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    background: #fff;
    max-width: 80%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contacts__container {
    max-height: 90vh;
    display: flex;
}

.contacts__pretitle {
    font-family: 'Exo 2-Light';
}

.contacts__subtitle {
    margin-bottom: 30px;
    font-family: 'Exo 2-Light';
    font-size: 36px;
    font-weight: 200;
}

.contacts-photo__mobile {
    display: none;
}

.contacts-photo {
    margin-right: 125px;
    width: 50%;
}

.contacts-photo img {
    /* max-width: 720px; 
  max-height: 500px; */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contacts__text {
    max-width: 55%;
    font-family: 'Exo 2-ExtraLight';
    margin-bottom: 30px;
}

.contacts__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    padding: 15px 15px 15px 50px;
}

.contacts__socials {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contacts__social-text {
    font-family: 'Exo 2-ExtraLight';
    font-size: 16px;
}

.social-link {
    display: flex;
    align-items: center;
}

.social__link-svg {
    margin-right: 15px;
}

/* SVG inherits color from parent for hover effect */
.social-link svg,
.header__social-link svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    transition: color 0.3s ease;
}

.contacts__social-text {
    transition: color 0.3s ease;
}


.social-link:hover,
.header__social-link:hover {
    color: #bdbcbe;
}

.social-link:active,
.header__social-link:active {
    color: #333;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

/* PORTFOLIO-PAGE */
.portfolio-title {
    padding: 5px 15px;
    font-family: 'Exo 2-Medium';
    /* font-weight: 800; */
}

.portfolio-grid__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.portfolio-item__container-item {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.portfolio-item {
    background-color: #c5c5c5;
    font-size: 24px;
    text-align: center;
    text-decoration: none;
    color: #f4f4f4;
    transition: transform 0.3s ease, 0.3s ease;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.portfolio-item:hover {
    opacity: 0.5;
}

.portfolio-item__link img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* ===== Альбом: Masonry без обрезки ===== */
.album-photos-grid {
    padding: 0 10px;
    /* masonry на мульти-колонках вместо grid */
    column-count: 3;        /* 3 колонки на десктопе */
    column-gap: 10px;        /* расстояние между колонками */
}

/* карточка не должна ломаться между колонками */
.album-photo {
    margin: 0 0 10px;
    break-inside: avoid;
    /* УДАЛЕНО: aspect-ratio: 4 / 3; */
    /* УДАЛЕНО: overflow: hidden; */
}

/* изображение показываем целиком, без обрезки */
.album-photo img {
    width: 100%;
    height: auto;            /* было 100% */
    object-fit: contain;     /* было cover */
    display: block;
}

/* === Loader (универсальный) === */
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  min-height: 120px;
}

.loader__circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(0,0,0,0.2);
  border-top-color: rgba(0,0,0,0.65);
  animation: nm-spin 0.8s linear infinite;
}

/* если у тебя тёмная тема — можно усилить контраст так:
:root.dark .loader__circle {
  border-color: rgba(255,255,255,0.25);
  border-top-color: rgba(255,255,255,0.85);
}
*/

@keyframes nm-spin { to { transform: rotate(360deg); } }

/* когда грузимся — просто держим минимальную высоту сетки, чтобы не прыгала верстка */
.album-photos-grid[data-loading] { min-height: 240px; }

/* Фуллскрин-оверлей для загрузки */
.loader-overlay {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.6); /* полупрозрачный фон */
  z-index: 9999;
}

.loader__circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid rgba(0,0,0,0.2);
  border-top-color: rgba(0,0,0,0.65);
  animation: nm-spin 0.8s linear infinite;
}

/* Пустое состояние альбома */
.album-photos-grid.is-empty {
  /* центрирование текста по вертикали/горизонтали */
  display: grid;
  place-items: center;

  /* чтобы блок был заметно высоким (можно увеличить до 80–90vh) */
  min-height: 70vh;

  /* уберём сеточные колонки, если задано в базовых стилях */
  grid-template-columns: none;
  gap: 0;
  padding: 24px;
  text-align: center;
}

.album-photos-grid.is-empty .empty-album {
  font-size: 16px;
  line-height: 1.6;
  opacity: .7;
}


.header {
    /* display: flex; */
    /* justify-content: center; */
    padding: 20px 15px;
}

.portfolio-header__link {
    font-family: 'Exo 2-Light';
    font-size: 36px;
    font-weight: 200;
}

.portfolio-header__link:hover {
    color: #bdbcbe;
    transition: ease-in-out 0.2s;

}

.album-header__link {
    font-family: 'Exo 2-Light';
    font-size: 36px;
    font-weight: 200;
}

.album-header__link:hover {
       color: #bdbcbe;
    transition: ease-in-out 0.2s;
}