@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/oswald-v57-cyrillic_latin-regular.woff2') format('woff2'),
       url('fonts/oswald-v57-cyrillic_latin-regular.woff2') format('woff');
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/oswald-v57-cyrillic_latin-700.woff2') format('woff2'),
       url('fonts/oswald-v57-cyrillic_latin-700.woff2') format('woff');
}

* {
  font-family: 'Oswald', sans-serif;
  box-sizing: border-box;
}

/* === ОБЩИЕ НАСТРОЙКИ === */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Oswald', sans-serif;
}

body {
  background-color: white;
  min-height: 100vh;
  padding-left: 15px;   
  padding-right: 15px;
  margin: 0;
  overflow-x: hidden;  
  font-family: 'Oswald', sans-serif;
}

/* Адаптив  */
@media (max-width: 768px) {
  body {
    padding-left: 0;
    padding-right: 0;
    }
}

/* === КОНТЕЙНЕР === */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  padding-left: 16px;
  padding-right: 16px;
}

/* === HEADER === */
.header img {
  align-items: center;
  background-color: white;
  width: 733px;
  height: 293px;
  margin: 0 auto;
  display: flex;
}

/* Адаптация*/
@media (max-width: 480px) {
  .header img {
    width: 100%;
    max-width: 375px;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}

/* === ГЛАВНОЕ МЕНЮ === */
.menu {
  width: 100%;
  background-color: #000;
}

.menu-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  list-style: none;
  margin: 0;
}

.menu-main li a {
  display: block;
  padding: 12px 20px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s;
}

.menu-main li a:hover,
.menu-main li a.current {
  background: white;
  color: red;
}

/* === ОБЛАСТЬ СЕРВИСОВ === */
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-left: 0;
  padding-right: 0;         
  max-width: 1440px;     
  margin: 0 auto;  
  box-sizing: border-box;
  overflow-x: hidden;  
}

/* === SIDENAV === */
.sidenav {
  flex: 0 0 210px;
  background: white;
  padding: 24px 12px 24px 0;
}

.sidenav-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #222;
  line-height: 1.4;
  font-size: 15px;
  padding-left: 15px;
  margin-bottom: 22px;
  border-left: 2px solid #b99d61;
}

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

.sidenav-list a {
  position: relative;
  display: inline-block; 
  padding-left: 20px; 
  text-decoration: none;
  color: #000;
}

.sidenav-list a:hover::before {
  content: "";
  margin-right: 0;
}


.sidenav-list li {
  margin-bottom: 14px;
}

.sidenav-list li a {
  display: inline-block;
  padding: 6px 0;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.8px;
  font-weight: 400;
  color: #444;
  text-decoration: none;
  transition: color 0.25s ease;
}

.sidenav-list li a:hover {
  text-decoration: underline;
  color: red;
}

/* === ОСНОВНОЙ КОНТЕНТ === */
.proj {
  flex: 1 1 0;
  background: whitesmoke;
  padding: 28px 32px;
  margin: 0;
  min-width: 0;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
  padding-bottom: 250px;
}

/* === АДАПТИВ === */
@media (max-width: 768px) {
  .sidenav {
    display: none;
  }

  .services {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .proj {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 0;
  }

  .menu-main {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-main li a {
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #222;
  }
}

.footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;

  background: #000;
  color: #fff;
  padding: 20px;

  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;

  pointer-events: none;
  z-index: 1000;
}

.footer-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.footer-bar a {
  color: #ccc;
  margin: 0 6px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bar a:hover {
  color: #fff;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-left {
  white-space: nowrap;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: #444;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-left {
    order: 3;
    font-size: 12px;
    opacity: 0.7;
  }

  .footer-links {
    order: 1;
  }

  .footer-social {
    order: 2;
  }
}


#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

#scrollTopBtn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

.back-container {
  margin-bottom: 15px;
  padding: 10px 0;
}

.back-button {
  background: rgba(29,185,84,0.15);
  color: #1db954;
  border-radius: 10px;
  font-weight: 600;
}

.back-button:hover {
  background: rgba(29,185,84,0.35);
}

.back-button:active {
  transform: translateY(1px);
}

@media (max-width: 600px) {
  .back-button {
    font-size: 0.9em;
    padding: 6px 14px;
  }
}


/* Галлерея */
.gallery-wrapper {
  width: 100%;
  padding: 32px 0;
}

.gallery-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 28px;
  color: #111;
  letter-spacing: 0.06em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.gallery-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Модальное окно */
.gallery-modal,
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.gallery-modal.active,
.modal.active {
  display: flex;
}

.modal-image,
#modal-image {
  max-width: 90%;
  max-height: 85%;
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(0,0,0,0.6);
}

.modal-close,
.modal-prev,
.modal-next {
  position: absolute;
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 8px;
  font-size: 1.4rem;
  padding: 8px 12px;
  cursor: pointer;
}

.modal-close {
  top: 16px;
  right: 16px;
}

.modal-prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.modal-next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.modal-close:hover {
  color: white;
}

.gallery-link {
  text-decoration: none;
  color: inherit;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #111;
  aspect-ratio: 4 / 3;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center,
      rgba(255,255,255,0.05),
      rgba(0,0,0,0.4)
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  font-size: 1rem;
  color: #f5f5f5;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0)
  );
  letter-spacing: 0.04em;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter:
    sepia(0.35)
    contrast(1.05)
    brightness(0.95)
    saturate(0.9)
    blur(0.2px);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.06);
  filter:
    sepia(0.15)
    contrast(1.1)
    brightness(1)
    saturate(1);
}

@media (max-width: 600px) {
     .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .gallery-caption {
    font-size: 0.9rem;
    padding: 10px 12px;
  }
}

.photo-archive {
  width: 100%;
  padding: 24px 0;
}

.photo-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: #111;
  letter-spacing: 0.06em;
}

.photo-grid {
  column-count: 4;
  column-gap: 10px;
}

.photo-grid img {
  width: 100%;
  margin-bottom: 10px;
  display: block;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .photo-grid { column-count: 3; }
}

@media (max-width: 600px) {
  .photo-grid { column-count: 2; }
}

  .photo-title {
    font-size: 1.4rem;
  }
}

/* Видео */
.video-wrapper {
  width: 100%;
  padding: 24px 0;
}

.video-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 28px;
  letter-spacing: 0.08em;
  color: #111;
}

/* === СЕТКА === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

/* === КАРТОЧКА === */
.video-card {
  text-decoration: none;
  color: inherit;
  background: #1b1b1b;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

/* === ПРЕВЬЮ === */
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.05);
}

/* === PLAY === */
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  color: rgba(255,255,255,0.85);
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.15)
  );
  transition: color 0.25s ease;
}

.video-card:hover .video-play {
  color: #1db954;
}

/* === ПОДПИСЬ === */
.video-caption {
  display: block;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.4;
  color: #e6e6e6;
  text-align: center;
}

/* Адаптив */
@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .video-caption {
    font-size: 0.85rem;
    padding: 10px;
  }
}

.modal-video {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-video[hidden] {
  display: none;
}

.modal-video .modal-content {
  width: min(92vw, 900px);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.modal-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* CLOSE */
.modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  z-index: 2;
}

.video-archive-page {
  width: 100%;
  padding: 24px 0;
}

/* GRID */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* CARD */
.video-card {
  background: #1b1b1b;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

.video-card:hover,
.video-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.6);
}

/* THUMB */
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* PLAY ICON */
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.video-card:hover .video-play {
  opacity: 1;
}

/* META */
.video-meta {
  padding: 12px 14px;
}

.video-title {
  font-size: 1rem;
  font-weight: 500;
  color: #eee;
  line-height: 1.4;
}

.video_title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: #111;
  letter-spacing: 0.06em;
}

/* MOBILE */
@media (max-width: 600px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .video-title {
    font-size: 1.4rem;
  }

  .video-play {
    font-size: 36px;
  }
}

