body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f4f4f4;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}
.header-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.page-container {
    
    max-width: 1200px; 
    margin: 100px auto;
    padding: 2rem 2.5rem;
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    
}









.page-container-content {
margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    font-size: 1rem;
    color: #1f2937;
    background-color: #ffffff;
    border: 4px solid #e5e7eb75;
    border-radius: 14px;
}

/* Заголовки */
.page-container-content h2,
.page-container-content h3 {
    color: #111827;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.page-container-content h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.3rem;
}

.page-container-content h3 {
    font-size: 1.25rem;
}

/* Параграфы */
.page-container-content p {
    margin-bottom: 1rem;
}

/* Списки */
.page-container-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.page-container-content ul li {
    margin-bottom: 0.5rem;
    list-style: disc;
}

/* Ссылки */
.page-container-content a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-container-content a:hover {
    color: #2563eb;
}

/* Адаптивность */
@media (max-width: 640px) {
    .page-container-content {
        padding: 1.5rem 1rem;
        font-size: 0.95rem;
    }

    .page-container-content h2 {
        font-size: 1.3rem;
    }

    .page-container-content h3 {
        font-size: 1.1rem;
    }
}









.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ======== Шапка ======== */
.header {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    margin-bottom: 60px;
/*    position: sticky;
    z-index: 1000;  */
    top: 0;
    transition: background 0.3s;
}

.logo {
    margin: 25px 0;
    display: flex;
    justify-content: space-around;
}

.logo img {
    width: 250px;
}

.main-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

/* ======== Основное меню ======== */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.nav-list li {
    text-align: center;
    padding: 15px 0;
    border-bottom: 4px solid #f1f1f1;
}

.nav-list a {
    display: block;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 18px;
    padding: 10px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-list a:hover {
    background-color: #ff0a0a7a;
    color: white;
    border-radius: 4px;
}

/* Отключаем переходы для состояния active, чтобы избежать мерцания */
.nav-list a:active {
    transition: none;
    background-color: #ff0a0a7a;
    color: white;
}

/* ======== Бургер-кнопка ======== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.3s, color 0.3s;
    width: 100%;
    z-index: 1100;
    padding: 10px;
    border-radius: 5px;
}

.menu-toggle.closed::before {
    content: "\2630"; /* ☰ */
}

.menu-toggle.open::before {
    content: "\2715"; /* ✖ */
}

.menu-toggle:hover {
    color: #ff0a0a9c;
}

/* ======== Мобильное меню ======== */
@media (max-width: 768px) {
  /* Стили для меню */
  .nav-list {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    flex-direction: column;
    position: absolute;
    background: #fff;
    width: 100%;
    left: 0;
    margin-top: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    gap: 0;
  }
  
  


  .nav-list li {
    padding: 0;
  }
  
  /* Стили для бургер-кнопки */
  .menu-toggle {
    display: block;
    background: #ff0a0a9c;
    color: #fff;
    border-radius: 5px;
    padding: 5px;
    font-size: 24px;
    text-align: center;
  }
  
  .menu-toggle:hover {
    color: #fff;
    background-color: #ff0a0a9c;
  }
  
  /* Активное состояние мобильного меню */
  .nav-list.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  /* Поворот бургер-кнопки */
  .menu-toggle.active {
    transform: rotate(90deg);
  }
}

/* ======== Стандартное меню для больших экранов ======== */
@media (min-width: 769px) {
  .nav-list {
    flex-direction: row;
    position: static;
    box-shadow: none;
    padding: 0;
  }
  
  .menu-toggle {
    display: none;
  }
}

/* ======== Контент ======== */
.main-content {
    text-align: center;
    padding: 50px 20px;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.card p {
    font-size: 14px;
    color: #666;
}

/* ======== Кнопки ======== */
.btn {
    display: inline-block;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease-in-out;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #ff0a0a9c;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: scale(1.05);
}

/* ======== Переключатель темы ======== */
.theme-switcher {
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
    transition: transform 0.3s;
}

/* ======== Футер ======== */
.footer {
    background-image: linear-gradient(180deg, #000002, #0c0a29ed);
    color: #fff;
    padding: 40px 0;
    margin-top: 70px;
    text-align: center;
    transition: background 0.3s;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

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

.footer-section ul li {
    margin: 5px 0;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #ff0a0a9c;
}

/* ======== Темная тема ======== */
.dark-mode {
    background: #1a1a1a;
    color: white;
}

.dark-mode .header,
.dark-mode .nav-list,
.dark-mode .card,
.dark-mode .footer {
    background: #222;
    color: white;
}

.dark-mode .nav-list a {
    color: #ccc;
}

.dark-mode .btn-primary {
    background: #ff9800;
}

.dark-mode .btn-primary:hover {
    background: #e68900;
}






.language-select {
  position: relative;
  width: 100%;
  font-family: sans-serif;
  user-select: none;
  color: white;
}


.language-select .selected {
  background-color: #2a2f3b;
  padding: 8px 12px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.language-select .language-icon {
  margin-right: 8px;
  font-size: 18px;
}

.language-select .arrow {
  height: 12px;
  width: 20px;
  fill: white;
  transition: transform 0.3s;
}


.language-select .options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #2a2f3b;
  border-radius: 5px;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1;
}


.language-select input[type="checkbox"]:checked ~ .options {
  opacity: 1;
  transform: scaleY(1);
  pointer-events: auto;
}


.language-select input[type="checkbox"]:checked ~ label .arrow {
  transform: rotate(180deg);
}

.language-select .option {
  display: block;
  padding: 10px 12px;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
}

.language-select .option:hover {
  background-color: #323741;
}












/* ======== Adaptive ======== */

/* On screens that are 600px or less */
@media screen and (max-width: 600px) {
    
  .page-container {
      padding: 1rem 1.5rem;
     }
     
    .logo img {
    width: 150px;
 
}
  
}




@media screen and (max-width: 300px) {
  .page-container {
      
      padding: 10px 10px;
 
  }
  
  
  .language-select {
     display: flex;
    justify-content: space-around;
  }
  
  
  
}
