: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{
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}

/* ===== ЛОГО: фиксированный горизонтальный фрейм 16:9 без тени ===== */
/* ===== ЛОГО: фиксированный горизонтальный фрейм 16:9 ===== */
.project-logo-wrap {
  width: 420px;              /* фиксированная ширина на десктопе */
  aspect-ratio: 16 / 9;      /* рамка всегда горизонтальная 16:9 */
  /*background: rgba(0,0,0,0.35); подложка, если логотип прозрачный */
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: none; /* убрали тень */
}

/* сам логотип — всегда полностью помещается */
.project-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;   /* вписывание без обрезки */
  object-position: center;
  display: block;

  border-radius: 0;
  box-shadow: none;
}



.project-desc{
  font-size: 1.15rem;
  line-height: 1.6;
}

.project-title{
  margin: 0 0 12px 0;
  font-size: 2rem;
}

/* 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;
}

/* 3) КРЕДИТЫ */
.project-credits{
  margin: 24px 0 36px;
}

.project-credits h2{
  margin: 0 0 12px 0;
  font-size: 1.6rem;
}

.credits-list{
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

.credits-list a{
  color: #fff;
  text-decoration: underline;
}
.credits-list a:hover{
  color: #222;
}

/* опциональная карточная сетка (если нужна структура по ролям)
.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;
}
*/

/* 4) КНОПКА СКАЧАТЬ — в твоём стиле */
.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: 992px) {
  .project-header {
    grid-template-columns: 1fr;
  }
  .project-logo-wrap {
    width: min(90%, 420px); /* сжимается, но держит пропорции */
    margin: 0 auto;
  }
}



@media (max-width: 780px){
  .buttons{
    font-size: 18px; /* чуть компактнее меню на узких окнах */
    line-height: 70px;
  }
  .project-videos{
    grid-template-columns: 1fr; /* видео в столбик */
  }
  .button2{
    width: 100%;
    max-width: 520px;
  }
}







.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;
  }
}
