.icon {
  width: 20px;       /* размер иконки */
  height: 20px;
  vertical-align: middle;
  margin-right: 8px; /* отступ от текста */
}
.contact-info {
  font-size: 18px;
  line-height: 1.8;
}
.contact-info a, .contact-list a 
  color: #0066cc;
  text-decoration: underline;
}
.contact-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  background-color: #f5f5f5;
  border-radius: 12px;
}

.contact-logo img {
  max-width: 180px;
  margin-bottom: 20px;
}

.contact-heading {
  font-size: 24px;
  margin-bottom: 30px;
  color: #f5f5f5;
}

.contact-list {
  text-align: left;
  font-size: 18px;
  line-height: 1.8;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

.header-top {
  background-color: #999999;
  color: white;
  padding: 30px 20px;
  text-align: center;
}
.header-top p {
  text-align: center;
  margin-top: 10px;
  font-size: 1.1em;
  color: white;
}

nav {
  background-color: #666666;
  padding: 15px 10px;
  width: 100%;
  box-sizing: border-box;
}
.toc-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.toc-flex a {
  background-color: #b0b0b0;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 12px 20px;
  border-radius: 6px;
  text-align: center;
  transition: background-color 0.3s ease;
  flex: 1 1 280px;
  max-width: 300px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

nav a {
  background-color: #b0b0b0;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 6px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: #888888;
}

nav a.active {
  background-color: #444444;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

section {
  background-color: #e0e0e0;
  padding: 40px;
  border-radius: 10px;
  margin: 20px auto;
  max-width: 900px;
}

h1, h2 {
  color: #000000;
}
.page-title {
  text-align: center;
  color: #444444;
  font-size: 2em;
  margin: 40px 0 20px;
}

button, a.cta {
  background-color: #b0b0b0;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  margin-top: 20px;
}

/* Анимация появления */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
details {
  overflow: hidden;
  transition: background-color 0.3s ease, max-height 0.5s ease;
  max-height: 60px;
}

details[open] {
  max-height: 1000px;
  background-color: #666666; /* или #5a5a5a, #707070 */
  color: white;
  border-color: #666666;
}

.test-icons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
  align-items: center;
}

.test-icon {
  background-color: #b0b0b0;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 14px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 600px;
  transition: background-color 0.3s ease;
}

.test-icon:hover {
  background-color: #888888;
}

.test-icon span {
  flex-grow: 1;
  text-align: left;
}
p {
  text-align: justify;
}
.language-switcher {
  text-align: right;
  padding: 10px 20px;
  background-color: #f0f0f0;
}

.lang-btn {
  background-color: #b0b0b0;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
  margin-left: 8px;
  transition: background-color 0.3s ease;
}

.lang-btn:hover {
  background-color: #888888;
}
a:focus, button:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}
.visually-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  background-color: #666666;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

@media screen and (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
  }
 h1, h2 {
    font-size: 1.5em;
  }
 

  button, a.cta {
    width: 100%;
    text-align: center;
  }
 nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 0;
    background-color: #b0b0b0;
    border-radius: 0;
  }
}
.language-switcher {
  text-align: right;
  padding: 10px 20px;
  background-color: #f0f0f0;
}

.lang-btn {
  background-color: #b0b0b0;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
  margin-left: 8px;
  transition: background-color 0.3s ease;
}

.lang-btn:hover {
  background-color: #888888;
}
a {
  color: #0066cc;
  text-decoration: underline;
}
/* Гамбургер-иконка */
.menu-icon {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  margin: 10px 20px;
  z-index: 1001;
}

.menu-icon span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  margin: 5px 0;
  transition: 0.4s;
}

/* Скрытый чекбокс */
#menu-toggle {
  display: none;
}

/* Навигация по умолчанию */
.main-nav {
  display: flex;
  justify-content: center;
  background-color: #666666;
  padding: 15px 10px;
}

.main-nav ul {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  background-color: #b0b0b0;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.main-nav a:hover {
  background-color: #888888;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    background-color: #e0e0e0;
    padding: 20px;
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  #menu-toggle:checked ~ .main-nav {
    display: flex;
    flex-direction: column;
    max-height: 500px;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .main-nav a {
    color: #0066cc;
    background-color: transparent;
    padding: 12px 0;
    width: 100%;
    text-align: center;
    border-radius: 0;
  }
}
.cta-button {
  display: inline-block;
  background-color: #0066cc;
  color: #ffffff;
  padding: 12px 24px;
  margin: 20px 0;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #004999;
  text-decoration: none;
}
