@font-face {
  font-display: swap;
  font-family: Murecho;
  font-style: normal;
  font-weight: 300;
  src: url(../fonts/murecho-v11-cyrillic_latin-300.woff2) format("woff2");
}
@font-face {
  font-display: swap;
  font-family: Murecho;
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/murecho-v11-cyrillic_latin-regular.woff2) format("woff2");
}
@font-face {
  font-display: swap;
  font-family: Murecho;
  font-style: normal;
  font-weight: 600;
  src: url(../fonts/murecho-v11-cyrillic_latin-600.woff2) format("woff2");
}
@font-face {
  font-display: swap;
  font-family: Zen Maru Gothic;
  font-style: normal;
  font-weight: 700;
  src: url(../fonts/zen-maru-gothic-v16-cyrillic_latin-700.woff2) format("woff2");
}

/* Брендовые цвета VK и Telegram */
:root {
  --vk-blue: #0077FF;      
  --telegram-blue: #27a7e7; 
  --dark-bg: #040c19;
  --text-light: #f5f5f5;
  --text-muted: #979ea5;
  --border-color: #293545;
}

*, :after, :before {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--dark-bg);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  font-family: Murecho, sans-serif;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  justify-content: space-between;
  letter-spacing: .32px;
  line-height: 1.6;
  margin: 0;
  min-height: 100vh;
  padding: 0;
}

.container {
  margin: 0 auto;
  max-width: 1240px;
  padding-left: 20px;
  padding-right: 20px;
}

/* Мобильная адаптивность - улучшенные медиа-запросы */
/* Мобильные устройства (портретная ориентация) */
@media (max-width: 576px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Планшеты (альбомная ориентация) и маленькие ноутбуки */
@media (min-width: 577px) and (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Настольные компьютеры и большие экраны */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }
}

.site-footer nav ul, .site-header nav ul {
  align-items: center;
  -moz-column-gap: 15px;
  column-gap: 15px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer nav ul li span, .site-header nav ul li span {
  color: var(--text-light);
}

.site-footer nav ul li a, .site-header nav ul li a {
  color: var(--telegram-blue); /* Используем синий Telegram для ссылок */
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer nav ul li:hover a, .site-header nav ul li:hover a {
  color: var(--vk-blue); /* Используем синий VK при наведении */
  opacity: 1;
}

.btn {
  border-radius: 4px;
  display: inline-block;
  font-family: Murecho, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .28px;
  line-height: 17px;
  padding: 12px 16px;
  position: relative;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: all .3s ease;
  white-space: nowrap;
  width: auto;
  min-width: 146px;
  border: none;
  cursor: pointer;
}

.btn, .btn:visited {
  color: var(--text-light);
}

.btn--blue {
  background: var(--telegram-blue); /* Синий Telegram для основной кнопки */
  box-shadow: inset 2px 2px 8px 0 rgba(255,255,255,0.3);
}

.btn--blue:hover {
  background: var(--vk-blue); /* Синий VK при наведении */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 255, 0.3);
}

.btn--red {
  background: #5e8eed;
  box-shadow: inset 2px 2px 8px 0 rgba(255,255,255,0.3);
}

.btn--red:hover {
  background: #116c99;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 167, 231, 0.3);
}

/* Адаптивность кнопок для мобильных */
@media (max-width: 576px) {
  .btn {
    padding: 10px 12px;
    font-size: 13px;
    min-width: 120px;
    width: 100%;
    margin-bottom: 8px;
  }
  
  .site-header .header-btns {
    flex-direction: column;
    width: 100%;
  }
  
  .site-header .header-btns a {
    margin-right: 0;
    margin-bottom: 8px;
  }
}

.apk_wrap {
  bottom: 2px;
  justify-content: center;
  position: fixed;
  width: 100%;
}

.apk_wrap, .site-header {
  align-items: center;
  display: flex;
}

.site-header {
  justify-content: space-between;
  padding: 20px 0;
  background: var(--dark-bg);
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 576px) {
  .site-header {
    flex-direction: column;
    padding: 15px 0;
    position: relative;
  }
}

@media (max-width: 1199px) {
  .site-header .header_nav_wrap {
    background-color: var(--dark-bg);
    display: none;
    height: 100vh;
    left: 100%;
    padding: 20px;
    position: absolute;
    top: 0;
    width: 100vw;
    z-index: 9999;
    transition: left 0.3s ease;
  }
  
  .site-header .header_nav_menu {
    display: flex;
    flex-direction: column;
    row-gap: 20px;
  }
  
  .site-header .burger {
    display: flex;
    flex-direction: column;
    height: 25px;
    justify-content: space-between;
    width: 25px;
    z-index: 9;
    cursor: pointer;
  }
  
  .site-header .burger .stripe {
    background-color: var(--telegram-blue);
    display: inline-block;
    height: 3px;
    width: 100%;
    transition: all 0.3s ease;
  }
}

@media (max-width: 576px) {
  .site-header .burger {
    position: absolute;
    right: 15px;
    top: 15px;
  }
}

.site-header .header-btns {
  display: flex;
}

.site-header .header-btns a {
  margin-right: 10px;
}

.site-header .header-btns a:last-of-type {
  margin-right: 0;
}

.mobile-menu-active {
  max-height: 100vh;
  max-width: 100vw;
  overflow: hidden;
}

.mobile-menu-active .header_nav_wrap {
  display: block;
  left: 0;
}

.mobile-menu-active .burger {
  z-index: 99999;
}

.mobile-menu-active .burger .stripe_1 {
  transform: rotate(45deg) translate3d(8px, 8px, 0);
  background-color: var(--vk-blue);
}

.mobile-menu-active .burger .stripe_2 {
  display: none;
}

.mobile-menu-active .burger .stripe_3 {
  transform: rotate(-45deg) translate3d(7px, -7px, 0);
  background-color: var(--vk-blue);
}

.logo {
  align-items: center;
  display: flex;
  height: 40px;
  text-decoration: none;
}

@media (max-width: 576px) {
  .logo {
    margin-bottom: 10px;
  }
}

.logo img {
  display: block;
  height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  width: 100%;
}

.logo span {
  color: var(--text-light);
  display: inline-block;
  font-size: 28px;
  font-weight: 600;
}

.logo a, .logo span {
  height: 100%;
}

.banner {
  margin: 0 auto;
  max-width: 1200px;
}

@media (max-width: 576px) {
  .banner {
    height: auto;
    padding: 0 10px;
  }
}

.banner img {
  border-radius: 6px;
  height: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  -o-object-position: center;
  object-position: center;
  width: 100%;
}

@media (max-width: 576px) {
  .banner img {
    height: auto;
    max-width: 100%;
  }
}

.banner-link {
  display: block;
  height: 100%;
  text-align: center;
}

.footer-container {
  border-top: 1px solid var(--border-color);
  padding-bottom: 40px;
  padding-top: 40px;
  background: var(--dark-bg);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 1199px) {
  .footer-bottom {
    align-items: center;
    flex-direction: column;
  }
}

.footer_nav_wrap {
  align-items: center;
  display: flex;
}

@media (max-width: 1199px) {
  .footer_nav_wrap {
    margin-bottom: 40px;
  }
}

@media (max-width: 992px) {
  .footer_nav_menu {
    align-items: center;
    flex-direction: column;
    gap: 15px;
  }
}

.footer-logo span {
  height: auto;
}

@media (max-width: 1199px) {
  .footer-logo {
    margin-bottom: 40px;
  }
}

.copyright {
  align-items: center;
  display: flex;
  max-width: 900px;
  text-align: right;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .copyright {
    text-align: center;
    margin-top: 20px;
  }
}

.payments {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 -10px 60px;
}

.payments img {
  display: block;
  margin: 0 10px 20px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.payments img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.content-404 {
  align-items: center;
  display: flex;
  flex-direction: column;
  margin: 160px auto;
  max-width: 600px;
}

@media (max-width: 576px) {
  .content-404 {
    margin-bottom: 40px;
    margin-top: 40px;
    padding: 0 20px;
  }
}

.h1-404 {
  margin-bottom: 20px;
  margin-top: 0;
  text-align: center;
  color: var(--telegram-blue);
}

.h1-404 br {
  display: none;
}

@media (max-width: 576px) {
  .h1-404 br {
    display: initial;
  }
}

.img-404 {
  display: block;
  height: auto;
  margin-bottom: 20px;
  max-width: 100%;
}

.text-404 {
  margin-bottom: 40px;
  max-width: 460px;
  text-align: center;
}

@media (max-width: 576px) {
  .text-404 br {
    display: none;
  }
}

h1 {
  font-size: 40px;
  letter-spacing: .8px;
  color: var(--telegram-blue);
}

@media (max-width: 576px) {
  h1 {
    font-size: 28px;
    letter-spacing: .56px;
    padding: 0 10px;
  }
}

h2 {
  font-size: 36px;
  letter-spacing: .72px;
  color: var(--telegram-blue);
}

@media (max-width: 576px) {
  h2 {
    font-size: 24px;
    letter-spacing: .48px;
    padding: 0 10px;
  }
}

h3 {
  font-size: 28px;
  letter-spacing: .56px;
  color: var(--telegram-blue);
}

@media (max-width: 576px) {
  h3 {
    font-size: 20px;
    letter-spacing: .4px;
    padding: 0 10px;
  }
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 40px;
  margin-top: 80px;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 576px) {
  .page-title {
    margin-top: 40px;
  }
  
  h1, h2, h3 {
    margin-top: 40px;
    margin-bottom: 30px;
  }
}

.page-content:last-child {
  margin-bottom: 160px;
}

@media (max-width: 576px) {
  .page-content:last-child {
    margin-bottom: 40px;
  }
}

.page-content p {
  margin-bottom: 20px;
  margin-top: 0;
}

.page-content a {
  color: var(--vk-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-content a:visited {
  color: #0044cc;
}

.page-content a:hover {
  color: var(--telegram-blue);
  text-decoration: underline;
}

.page-content img {
  display: block;
  height: auto;
  margin: 20px 0;
  max-width: 100%;
}

.page-content img.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.page-content img.alignright {
  float: right;
  margin-left: 20px;
  margin-top: 0;
}

.page-content img.alignleft {
  float: left;
  margin-right: 20px;
  margin-top: 0;
}

@media (max-width: 992px) {
  .page-content img.aligncenter, .page-content img.alignleft, .page-content img.alignnone, .page-content img.alignright {
    float: none;
    margin: 20px auto;
  }
}

.page-content ol, .page-content ul {
  margin: 20px 0;
}

.page-content ol {
  counter-reset: my-counter;
  list-style: none;
  padding: 0 0 0 40px;
}

@media (max-width: 576px) {
  .page-content ol {
    padding-left: 20px;
  }
}

.page-content ol li {
  counter-increment: my-counter;
  padding-left: 36px;
  position: relative;
}

.page-content ol li:before {
  -webkit-text-fill-color: var(--dark-bg);
  -webkit-text-stroke: 1px var(--telegram-blue);
  content: counter(my-counter) ".";
  font-size: 18px;
  font-weight: 600;
  left: 0;
  letter-spacing: .36px;
  line-height: 24px;
  position: absolute;
  text-align: right;
  top: 0;
  width: 26px;
}

.page-content ul {
  list-style: none;
  padding: 0 0 0 40px;
}

@media (max-width: 576px) {
  .page-content ul {
    padding-left: 20px;
  }
}

.page-content ul li {
  padding-left: 30px;
  position: relative;
}

.page-content ul li:before {
  content: "•";
  color: var(--telegram-blue);
  font-size: 20px;
  left: 0;
  position: absolute;
  top: 0;
}

.page-content table {
  border-collapse: collapse;
  color: var(--text-light);
  font-weight: 300;
  margin: 0 auto;
  text-align: left;
  width: 100%!important;
}

.page-content table tr {
  padding-bottom: 4px;
  position: relative;
  z-index: 0;
}

.page-content table tr:after {
  background: #0c131d;
  border-radius: 4px;
  bottom: 4px;
  box-shadow: inset 1px 1px 1px 0 var(--border-color), inset 0 0 20px 0 #1f2937;
  content: "";
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: -1;
}

.page-content table tr td, .page-content table tr th {
  border: 0!important;
  padding: 20px 40px;
  vertical-align: top;
}

.page-content table thead td, .page-content table thead th {
  font-weight: 600;
}

.page-content table tbody tr:last-child {
  padding-bottom: 0;
}

.page-content table tbody tr:last-child:after {
  bottom: 0;
}

@media (max-width: 576px) {
  .page-content table.double tr {
    display: block;
    height: auto!important;
    padding: 10px 20px 14px;
  }
  
  .page-content table.double tr:last-of-type {
    padding-bottom: 10px;
  }
  
  .page-content table.double td, .page-content table.double th {
    display: block;
    height: auto!important;
    min-width: 0!important;
    padding: 0;
    width: auto!important;
  }
  
  .page-content table.double td:first-of-type, .page-content table.double th:first-of-type {
    margin-bottom: 10px;
  }
}

.page-content table.is-mobile tbody tr {
  display: block;
  height: auto;
  overflow: hidden;
  padding: 10px 20px 4px;
}

.page-content table.is-mobile tbody tr:last-of-type {
  padding-bottom: 0;
}

.page-content table.is-mobile tbody td, .page-content table.is-mobile tbody th {
  display: block;
  height: auto!important;
  min-width: 0!important;
  padding: 0;
  text-align: left;
  width: auto!important;
}

.page-content table.is-mobile tbody td {
  margin-bottom: 10px;
}

.page-content .cover-table {
  margin: 40px 0;
  max-width: 100%;
  overflow: auto;
}

.page-content nav {
  margin: 40px 0 40px 40px;
}

@media (max-width: 576px) {
  .page-content nav {
    margin-left: 0;
    margin-right: 0;
  }
}

.page-content nav ol, .page-content nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-content nav a {
  color: var(--vk-blue);
  display: block;
  font-family: Zen Maru Gothic, sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .4px;
  line-height: 120%;
  padding: 8px 0;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

@media (max-width: 576px) {
  .page-content nav a {
    font-size: 16px;
    padding: 6px 0;
  }
}

.page-content nav a:visited {
  color: var(--vk-blue);
}

.page-content nav a:hover {
  color: var(--telegram-blue);
}

.page-content nav br {
  display: none;
}

/* Дополнительные улучшения для мобильных устройств */
@media (max-width: 576px) {
  body {
    font-size: 14px;
    line-height: 1.5;
  }
  
  .page-content {
    padding: 0 10px;
  }
  
  .footer-container {
    padding-bottom: 20px;
    padding-top: 20px;
  }
  
  .payments {
    margin: 0 -5px 30px;
    justify-content: center;
  }
  
  .payments img {
    margin: 0 5px 10px;
    max-height: 20px;
  }
}