:root{
  --tg-brown: #9C824B;
  --tg-text: #FFFFFF;
  --tg-shadow: 0 12px 16px rgba(0,0,0,0.24), 0 17px 50px rgba(0,0,0,0.19);
}

html, body { height: 100%; }

body {
  margin: 0;
  font-family: Bahnschrift, sans-serif;
  color: var(--tg-text);
  background: url(resources/pesok-volnami-melkiy-priroda2.png) no-repeat center center fixed;
  background-size: cover;
}



/* 1) ЛОГОТИП СВЕРХУ ПО ЦЕНТРУ */
.project-header-center{
  text-align: center;
  margin-bottom: 16px;
}
.project-logo-center{
  width: min(420px, 70%);
  height: auto;
  border-radius: 16px;
  box-shadow: none; /* убрали тень */
}

/* 2) ОПИСАНИЕ */
.project-description-center{
  text-align: center;
  max-width: 900px;
  margin: 0 auto 28px;
  font-size: 1.15rem;
  line-height: 1.65;
}
.project-title{
  margin: 8px 0 10px;
  font-size: 2rem;
}

/* 3) ГАЛЕРЕЯ СКРИНОВ (16:9) */
.project-gallery{
  display: grid;
  gap: 16px;
  /* по умолчанию — 3 в ряд, но карточки не растягиваем до безумия */
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  justify-content: center; /* центрируем, если скринов мало */
  margin-bottom: 32px;
}
.shot{
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--tg-shadow);
}
.shot img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 4) КРЕДИТЫ */
.project-credits{
  margin: 24px 0 36px;
}
.project-credits h2{
  margin: 0 0 12px 0;
  font-size: 1.6rem;
  text-align: center;
}
.credits-list{
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  font-size: 1.05rem;
  line-height: 1.6;
}
.credits-list a{ color: #fff; text-decoration: underline; }
.credits-list a:hover{ color: #222; }

/* 5) КНОПКА — в твоём стиле */
.project-download{
  text-align: center;
  margin-top: 24px;
}
.button{
  background: #E9CA87;
  border-radius: 100px;
  background-color: #BEA56E;
  border: none;
  color: white;
  text-align: center;
  display: inline-block;
  cursor: pointer;
}
.button2{
  padding: 18px 36px;
  font-size: 24px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
.button2:hover{
  box-shadow: var(--tg-shadow);
  transition-duration: 0.3s;
}

/* ====== АДАПТИВ ====== */
@media (max-width: 1100px){
  .project-gallery{
    grid-template-columns: repeat(2, minmax(260px, 1fr)); /* 2 в ряд */
  }
}
@media (max-width: 620px){
  .buttons{
    font-size: 18px;
    line-height: 70px;
  }
  .project-title{ font-size: 1.8rem; }
  .project-gallery{
    grid-template-columns: 1fr; /* 1 в ряд на очень узких */
  }
  .button2{
    width: 100%;
    max-width: 520px;
  }
}


.credits-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.credits-card{
  background: rgba(0,0,0,0.35);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}
.credits-card h3{
  margin: 0 0 6px 0;
  font-size: 1.1rem;
}

/* 2) ДВА ВИДЕО (адаптивно, с 16:9) */
.project-videos{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.video{
  position: relative;
  width: 100%;
  /* современный способ: */
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--tg-shadow);
}

/* фоллбек для старых браузеров без aspect-ratio */
.video::before{
  content: '';
  display: block;
  padding-top: 56.25%;
}
.video iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* === ЛОГОТИП В РАМКЕ 16:9, БЕЗ ОБРЕЗКИ === */
.project-header-center{
  /* сама рамка */
  width: 420px;             /* фикс. ширина на десктопе */
  aspect-ratio: 16 / 9;     /* горизонтальная рамка 16:9 */
  border-radius: 16px;
  overflow: hidden;

  /* центровка рамки и содержимого */
  margin: 0 auto 16px;
  display: grid;
  place-items: center;

  /* без тени */
  box-shadow: none;
  text-align: center; /* можно оставить, но уже не критично */
}

.project-logo-center{
  /* логотип вписывается внутрь рамки без обрезки */
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;

  /* на всякий: без скругления и тени у самого изображения */
  border-radius: 0;
  box-shadow: none;
}

/* Адаптив: на узких экранах рамка сужается, пропорции сохраняются */
@media (max-width: 992px) {
  .project-logo-center { /* ничего не растягиваем принудительно */ }
  .project-header-center{
    width: min(90%, 420px);
    margin: 0 auto 16px;
  }
}


/* === ЛОГОТИП В РАМКЕ 16:9, БЕЗ ОБРЕЗКИ === */
.project-header-center {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.project-logo-frame {
  width: 420px;              /* фикс. ширина на десктопе */
  aspect-ratio: 16 / 9;      /* сама рамка */
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

.project-logo-center {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;   /* вписывание внутрь рамки */
  object-position: center;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

/* Адаптив */
@media (max-width: 992px) {
  .project-logo-frame {
    width: min(90%, 420px);
  }
}





.project-page {
  max-width: 1200px;
  margin: 40px auto 0;   /* вместо 110px */
  padding: 0 16px 80px;  /* снизу оставляем воздух */
}
/* Навбар */
.navbar {
  position: sticky;
  top: 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  background: rgba(156, 130, 75, 0.95);
  box-shadow: 0 4px 6px rgba(0,0,0,0.25);
  z-index: 1000;
}

.logo img {
  height: 70px;
  transition: transform 0.3s ease;
}
.logo img:hover {
  transform: scale(1.3);
}

.menu a {
  margin-left: 2rem;
  font-weight: 600;
  font-size: 22px;
  text-decoration: none;
  color: white;
  line-height: 80px;
}
.menu a:hover {
  color: #222;
}

/* Анимация подчеркивания */
.hover-underline-animation {
  position: relative;
}
.hover-underline-animation::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: #000;
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}
.hover-underline-animation:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Увеличим текст в меню */
.menu a {
  font-size: 42px;   /* было calc(3vw), поставим фиксированный размер */
  line-height: 80px; /* выровняем по высоте хедера */
}

.parts p {
  font-size: clamp(16px, 2.5vw, 28px); /* минимально 16px, растёт с шириной, но не больше 28px */
  line-height: 1.4;
}

/* Хедер фиксированный */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 2rem;
  background: rgba(156, 130, 75, 0.95);
  box-shadow: 0 4px 6px rgba(0,0,0,0.25);
  z-index: 1000;
}

/* Отступ под хедер (однострочный) */
.project-page {
  padding-top: 90px;
}

/* Если экран узкий → меню переносится в 2 строки → даём больше места */
@media (max-width: 960px) {
  .project-page {
    padding-top: 190px;
  }
}
