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

.radio {
    width: 100%;
    background: #111;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    padding: 0;
    font-family: 'Oswald', sans-serif;
}

/* Заголовок */
.radio .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(90deg, #ff4b5c, #ff9a5b);
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    border-bottom: 1px solid #333;
}

.radio .header h1 {
    margin: 0;
    font-size: 22px;
}

.radio .header .status {
    background: #ff0000;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* Видео-визуал */
.radio .visualizer {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
    overflow: hidden;
    background: #222;
}

.radio .visualizer video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Аудио */
.radio main audio {
    width: 100%;
    margin: 0;
    padding: 12px 20px;
    background: #1a1a1a;
    border-radius: 0 0 0 0;
    outline: none;
}

/* Информация о треке */
.radio .track-info {
    padding: 12px 20px;
    background: #1a1a1a;
    font-size: 16px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Комментарии (заглушка) */
.radio .comments {
    padding: 12px 20px;
    background: #1a1a1a;
    font-size: 14px;
    border-top: 1px solid #333;
}

/* Адаптив */
@media (max-width: 768px) {
    .radio .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 18px;
    }
    .radio .header h1 {
        font-size: 18px;
    }
    .radio main audio {
        padding: 8px 12px;
    }
    .radio .track-info {
        font-size: 14px;
        padding: 8px 12px;
    }
    .radio .comments {
        font-size: 13px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .radio .header h1 {
        font-size: 16px;
    }
    .radio main audio {
        padding: 6px 10px;
    }
}
