@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;
}

@media (max-width: 768px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}
/* === 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;
}

.media-hub {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  max-width: 1000px;
  padding: 0 15px;
  box-sizing: border-box;
}

.media-card {
  background: #1a1a1a;
  color: #f0f0f0;
  flex: 1 1 280px;
  max-width: 300px;
  text-align: center;
  border-radius: 12px;
  padding: 20px 15px;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.media-card:hover {
  transform: translateY(-5px);
  background: #2e2e2e;
}


.media-card h3 {
  margin: 0 0 10px 0;
  font-size: 1.4rem;
  font-weight: 600;
}

.media-card p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.4;
}

/* Адаптив под телефоны */
@media (max-width: 768px) {
  .media-hub {
    flex-direction: column;
    align-items: center;
  }
  
  .media-card {
    width: 100%;
    max-width: 360px;
    min-height: 250px;
  }

   .media-card.photo .photo-slideshow {
    display: block;
  }

  .photo-slideshow img {
    opacity: 0;
  }

  .photo-slideshow img:first-child {
    opacity: 1;
  }
}

.media-card.video {
  position: relative;
  overflow: hidden;
}

.gif-hover {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  z-index: 1;
}

.media-card.video:hover .gif-hover {
  display: block;
}

.media-card.photo {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 250px;
  border-radius: 12px;
}

.media-card.photo .photo-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1;
}

.media-card.photo:hover .photo-slideshow {
  display: block;
}

.photo-slideshow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease-in-out;
}

.photo-slideshow img.active {
  opacity: 1;
  z-index: 2;
}

.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;
  }
}
