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

.card {
  width: 100%;
  max-width: 100%;
  margin-bottom: 32px;
  background: #fff;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.block {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 32px;
  align-items: start;
}

.cards {
  display: flex;
  flex-direction: column;
}

.news {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  position: sticky;
  top: 20px;
}

.news-title {
  font-size: 18px;
  margin-bottom: 16px;
}

.item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.item a{
  color: #1db954;
  margin: 0 6px;
  text-decoration: none;
  transition: color 0.3s;
}

.tem:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 12px;
  color: #888;
  display: block;
  margin-bottom: 4px;
}

.card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card:hover .card-image img {
    transform: scale(1.02);
}

.card-image:hover .card-overlay {
  opacity: 1;
}

.card-meta {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  pointer-events: none;
}

.card-author,
.card-date {
  font-size: 12px;
  padding: 4px 8px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 6px;
  letter-spacing: 0.4px;
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75),
    rgba(0,0,0,0.35),
    transparent
  );
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;

  text-shadow:
    0 1px 2px rgba(0,0,0,0.85),
    0 0 6px rgba(0,0,0,0.6);

  opacity: 0;
  transition: opacity 0.25s ease;
}

.card-title {
  font-size: 22px;
  font-weight: 700;
  margin: 16px;
}

.card-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 16px;
}

.card-link {
  font-size: 14px;
  text-decoration: none;
  color: #444;
  transition: color 0.2s;
}

.card-link:hover {
  color: red;
}

.card-link.primary {
  font-weight: 600;
}

/* Адаптивность */
@media (max-width: 768px) {
  .card {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 24px auto;
    border-radius: 12px;
  }

  .block {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cards {
    align-items: center;
  }

  .card-image {
    aspect-ratio: 16 / 9;
    height: auto;
  }
  .card-title {
    font-size: 18px;
    margin: 12px;
  }

  .card-overlay {
    opacity: 1;
    font-size: 14px;
  }
  .card-buttons {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .news{
    display: none;
  }
}

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

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

/* АКТИВНОЕ СОСТОЯНИЕ */
.modal.open {
  display: flex !important;
}

/* КОНТЕНТ МОДАЛКИ */
.modal-content {
  background: #fff;
  width: 100%;
  max-width: 420px;
  padding: 24px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  position: relative;
  animation: modalFade 0.25s ease-out;
}

/* АНИМАЦИЯ */
@keyframes modalFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* КНОПКА ЗАКРЫТИЯ */
.modal-content .close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  cursor: pointer;
  color: #333;
}

.modal-content .close:hover {
  color: red;
}

/* ФОРМА */
#registerForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#registerForm label {
  font-size: 14px;
  color: #222;
}

#registerForm input {
  padding: 8px 10px;
  font-size: 14px;
  border: 1px solid #aaa;
  border-radius: 4px;
}

#registerForm button {
  margin-top: 10px;
  padding: 10px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
}

#registerForm button:hover {
  background: #333;
}

#regMsg {
  font-size: 13px;
  min-height: 16px;
}

.menu-main li .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  background-color: #000;
  color: #fff;
  text-decoration: none;
  border: 3px solid transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  transition: all 0.25s ease;
  cursor: pointer;
  margin: 0;
}


.menu-main li .btn:hover {
  background-color: #222;
  border-color: #b99d61;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}


@media (max-width: 1024px) {
  .menu-main li .btn {
    width: 100%;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    margin: 0 auto;
  }
}

.post {
  width: 100%;
  max-width: none;
  margin: 0 0 40px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.post-text a {
  color: #1db954;
  text-decoration: none;
  font-weight: 500;
}

.post-meta-top {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 14px;
  pointer-events: none;
}

.post-author,
.post-date {
  font-size: 12px;
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* КАРТИНКА */
.post-image {
  position: relative;
  width: 100%;
  max-height: 420px;
  overflow: hidden;
}

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

.post-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.35),
    rgba(0,0,0,0)
  );
}

.post-title {
  max-width: 900px;
  margin: 24px auto 12px;
  padding: 0 20px;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
}

.post-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 17px;
  line-height: 1.65;
  color: #222;
}

.post-content p {
  margin-bottom: 16px;
}

.post-resources {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.resources-title {
  font-size: 1.1rem;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #aaa;
}

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

.resources-list li {
  margin-bottom: 12px;
  line-height: 1.5;
}

.resources-list a {
  color: #1db954;
  text-decoration: none;
  font-weight: 500;
}

.resources-list a:hover {
  text-decoration: underline;
}

.resources-list span {
  color: #aaa;
  font-size: 0.9em;
  margin-left: 4px;
}

.post-content p {
  margin-bottom: 16px;
}

.post-divider {
  max-width: 820px;
  margin: 28px auto;
  height: 1px;
  background: #ddd;
  border: none;
}

.post-actions {
  max-width: 820px;
  margin: 0 auto 24px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* КОММЕНТАРИИ */
.comment-link {
  font-size: 14px;
  color: #444;
  text-decoration: none;
  transition: color 0.2s ease;
}

.comment-link:hover {
  color: red;
}

/* ЛАЙК */
.like-btn {
  font-size: 16px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease;
}

.like-btn:hover {
  transform: scale(1.1);
}

.like-count {
  font-size: 14px;
  color: #555;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 600px) {

  .post {
    border-radius: 0;
  }

  .post-title {
    font-size: 20px;
    margin: 14px 12px;
  }

  .post-image {
    max-height: 240px;
  }

  .post-content {
    font-size: 15px;
    padding: 0 12px;
  }

  .post-divider {
    max-width: 90%;
  }

  .post-actions {
    padding: 0 12px;
  }

  .post-author,
  .post-date {
    font-size: 11px;
    padding: 3px 6px;
  }
}

.chat-guide {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 16px 64px;
  line-height: 1.6;
}

.chat-guide-header {
  text-align: center;
  margin-bottom: 40px;
}

.chat-guide-header h1 {
  font-size: 2rem;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.chat-guide-intro {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1rem;
  color: #555;
}

.chat-guide-platforms {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.platform {
  background: #1b1b1b;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.platform summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  font-size: 1.05rem;
  color: #fff;
  background: #1b1b1b;
}

.platform summary::-webkit-details-marker {
  display: none;
}

.platform[open] summary {
  background: rgba(255,255,255,0.04);
}

.platform-content {
  padding: 18px 22px 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.platform-content a {
  color: #1db954;
  text-decoration: none;
  border-bottom: 1px solid rgba(29,185,84,0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.platform-content a:hover {
  color: #25e06d;
  border-bottom-color: rgba(37,224,109,0.8);
}

.guide-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.guide-steps li {
  counter-increment: step;
  margin-bottom: 26px;
}

.guide-steps li::before {
  content: counter(step) ".";
  display: inline-block;
  width: 2ch;
  margin-right: 8px;
  color: #1db954;
  font-weight: 600;
}

.guide-steps p {
  display: inline;
  color: #e6e6e6;
}

.guide-steps img {
  display: block;
  max-width: 100%;
  margin-top: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

/* ===== Адаптив ===== */
@media (max-width: 600px) {
  .chat-guide {
    padding: 24px 12px 48px;
  }

  .chat-guide-header h1 {
    font-size: 1.6rem;
  }

  .chat-guide-intro {
    font-size: 0.95rem;
  }

  .platform summary {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .platform-content {
    padding: 14px 16px 18px;
  }

  .guide-steps li {
    margin-bottom: 22px;
  }
}

.coming-soon {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 32px 16px;
}

.coming-visual img {
  width: 140px;
  max-width: 40vw;
  opacity: 0.85;
  filter: grayscale(100%);
}

.coming-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1db954;
  letter-spacing: 0.04em;

  text-shadow:
    0 1px 2px rgba(0,0,0,0.9),
    0 0 1px rgba(0,0,0,0.9);
}

.coming-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #black;
  max-width: 420px;

  text-shadow:
    0 1px 2px rgba(0,0,0,0.85);
}

.coming-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.action-btn {
  padding: 10px 16px;
  border-radius: 999px;

  background: rgba(255,255,255,0.06);
  color: #1db954;
  text-decoration: none;

  font-size: 0.95rem;
  font-weight: 500;

  backdrop-filter: blur(6px);

  text-shadow:
    0 1px 1px rgba(0,0,0,0.85);

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08);

  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
}

.action-btn:hover {
  background: rgba(255,255,255,0.1);
  color: black;

  box-shadow:
    inset 0 0 0 1px rgba(29,185,84,0.6),
    0 4px 14px rgba(29,185,84,0.15);

  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .coming-title {
    font-size: 1.35rem;
  }

  .action-btn {
    font-size: 0.9rem;
    padding: 9px 14px;
  }
}
