
      
/* CSS Переменные */
:root {
  /* Цвета - Старые (для совместимости) */
  --primary-color: #007bff;
  --accent-color: #fa6600;
  --background-color: #e8ecf1;
  --text-color: #323232;

  /* Цвета - Header/Footer */
  --header-footer-bg: #003d7a;
  --header-footer-text: #ffffff;
  --header-footer-accent: #ff6600;
  --header-footer-accent-text: #ffffff;

  /* Цвета - Hero */
  --hero-bg: #0052a3;
  --hero-text: #ffffff;
  --hero-accent: #ff6600;
  --hero-accent-text: #ffffff;

  /* Цвета - Content */
  --content-bg: #e8f0f8;
  --content-text: #1a1a1a;
  --content-accent: #ff6600;
  --content-accent-text: #ffffff;

  /* Шрифты */
  --primary-font: Roboto, sans-serif;
  --secondary-font: Georgia, serif;

  /* Контейнеры */
  --container-max-width: 1200px;
  --container-fluid-max-width: 1400px;
  --container-narrow-max-width: 800px;
  --container-padding-x: 20px;
  --container-padding-y: 80px;

  /* Брейкпоинты */
  --breakpoint-desktop: 1200px;
  --breakpoint-laptop: 1024px;
  --breakpoint-tablet: 768px;
  --breakpoint-mobile: 480px;
}


/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--primary-font), sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive Container */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
}

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

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Table Responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 600px;
    width: 100%;
}

@media (max-width: 768px) {
    .table-responsive {
        border: 1px solid #ddd;
        border-radius: 4px;
    }
}

      /* Unique class mappings */
      

      /* Template Section Styles (Organized by Breakpoint) */
      
    


/* ==========================================
   БАЗОВЫЕ СТИЛИ (Desktop)
   ========================================== */

/* header */
header {
  background: var(--header-footer-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.header_conteiner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.header_logo {
  flex: 0 0 auto;
}

.logo-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo {
  height: 50px;
  width: auto;
  display: block;
}

.header_button {
  display: flex;
  gap: 15px;
  align-items: center;
}

.btn {
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.button_1 {
  background: var(--header-footer-accent);
  color: var(--header-footer-accent-text);
}

.button_1:hover {
  filter: brightness(1.15);
  color: var(--header-footer-accent-text);
}

.button_2 {
  background: transparent;
  color: var(--header-footer-text);
  border-color: var(--header-footer-text);
}

.button_2:hover {
  transform: translateY(-2px);
}


.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.navigation {
  background: var(--header-footer-bg);
  padding: 0.7em 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav_conteiner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0 20px;
}

.nav-link {
  padding: 15px 25px;
  color: var(--header-footer-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #003c14, #00ff66);
  transform: translateX(-50%);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--header-footer-accent-text);
  background: var(--header-footer-accent);
}

.nav-link:hover::before {
  width: 80%;
}

.nav-link.active {
  color: #00ff66;
  background: rgba(0, 60, 20, 0.3);
  border-bottom-color: #00ff66;
}

.nav-link.active::before {
  width: 80%;
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none;
  }
}

/* footer */
.site-footer {
  background: var(--header-footer-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2em 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
  margin-bottom: 40px;
}

.support,
.legal {
  display: flex;
  flex-direction: column;
}

.support h3,
.legal h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--header-footer-text);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.article-ul li {
  margin-bottom: 12px;
}

.article-ul li:last-child {
  margin-bottom: 0;
}

.article-ul a {
  font-size: 15px;
  color: var(--header-footer-text) ;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-left: 15px;
}

.article-ul a::before {
  content: '→';
  position: absolute;
  left: 0;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: var(--header-footer-accent);
}

.article-ul a:hover {
  color: var(--header-footer-accent);
  padding-left: 15px;
}

.article-ul a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.article-ul a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 15px;
  width: 0;
  height: 1px;
  background: var(--header-footer-accent);
  transition: width 0.3s ease;
}

.article-ul a:hover::after {
  width: calc(100% - 15px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.3px;
}

.site-footer ::selection {
  background: var(--header-footer-bg);
  color: var(--header-footer-text);
}

/* text */
.pagecontent {
  margin: 3em 0;
}
.pagecontent img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 3em auto;
}

/* ==========================================
   МОБИЛЬНЫЕ (max-width: 767px)
   ========================================== */
@media (max-width: 767px) {
  /* header */
  .header_conteiner {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .header_button {
    width: 100%;
    justify-content: center;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .logo {
    height: 40px;
  }

  .nav_conteiner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }

  .nav-link {
    padding: 12px 15px;
    font-size: 13px;
  }

  /* footer */
  .site-footer {
    padding: 40px 0 25px;
    margin-top: 60px;
  }

  .footer-content {
    gap: 40px;
    margin-bottom: 30px;
  }

  .support h3,
  .legal h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .article-ul a {
    font-size: 14px;
  }

  .footer-bottom {
    padding-top: 25px;
  }

  .footer-bottom p {
    font-size: 13px;
  }
}


/* ==========================================
   МАЛЫЕ ЭКРАНЫ (max-width: 479px)
   ========================================== */
@media (max-width: 479px) {
  /* header */
    .header_conteiner {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .header_button {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }

  .nav_conteiner {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .nav-link {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

    .hide-mobile {
    display: none;
  }

  /* footer */
.site-footer {
    padding: 30px 0 20px;
    margin-top: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 25px;
  }

  .support h3,
  .legal h3 {
    font-size: 17px;
    margin-bottom: 12px;
  }

  .article-ul li {
    margin-bottom: 10px;
  }

  .article-ul a {
    font-size: 14px;
  }

  .footer-bottom {
    padding-top: 20px;
  }

  .footer-bottom p {
    font-size: 12px;
    line-height: 1.6;
  }
}
