﻿/* Базовые стили — по умолчанию на любых экранах */
#wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  color: #333;
}

/* Большие экраны (десктопы, ноутбуки) — от 1200px и выше */
@media (min-width: 1200px) {
  #wrapper {
    max-width: 1200px;
  
  }
}

/* Средние экраны (планшеты и маленькие ноутбуки) — от 992px до 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
  #wrapper {
    max-width: 960px;
  
  }
}

/* Маленькие экраны (горизонтальные телефоны, небольшие планшеты) — от 768px до 991px */
@media (min-width: 768px) and (max-width: 991px) {
  #wrapper {
    max-width: 720px;
  
  }
}

/* Очень маленькие экраны (телефоны в портретной ориентации) — до 767px */
@media (max-width: 767px) {
  #wrapper {
    max-width: 100%;
  
  }
}

/* Ультра широкие экраны (например, 1440px+, 4K-мониторы) */
@media (min-width: 1440px) {
  #wrapper {
    max-width: 1400px;
  }
}












/* Сброс и базовая настройка */
html, body {
  margin: 0;
  padding: 0;
  background: #f1f1f1;
  font-family: Arial, sans-serif;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Общий контейнер для контента */
#content {
  padding: 10px;
  box-sizing: border-box;
}

/* hfeed — микроформат: оставим базовый стиль на случай использования */
.hfeed {
  display: block;
  overflow: hidden;
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin: 1.5em 0 0.5em 0;
  color: #222;
  line-height: 1.3;
}

/* Параграфы */
p {
  margin: 0 0 1em 0;
  line-height: 1.6;
  word-break: break-word;
}

/* Ссылки */
a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  text-decoration: underline;
  color: #004999;
}






/* Обёртка меню */
#cssmenu {
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: #333;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  border-bottom: 2px solid #222;
}

/* Элементы меню */
#cssmenu li {
  display: flex;
}

/* Ссылки меню */
#cssmenu li a {
  display: block;
  padding: 12px 18px;
  color: #FFA200;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  border-right: 1px solid #444;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Наведение */
#cssmenu li a:hover,
#cssmenu li a:focus {
  background-color: #555;
  color: #fff;
}

/* Убираем последний бордер */
#cssmenu li:last-child a {
  border-right: none;
}

/* 🔄 Адаптивность */
@media (max-width: 768px) {
  #cssmenu {
    flex-direction: column;
    align-items: stretch;
  }

  #cssmenu li a {
    text-align: center;
    border-right: none;
    border-bottom: 1px solid #444;
  }

  #cssmenu li:last-child a {
    border-bottom: none;
  }
}








/* Обёртка подменю */
.subnav {
  background-image: url('/pics/background-repeat.png');
  background-repeat: repeat-x;
  background-position: left top;
  padding: 10px 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #444;
}

/* Внутренний контейнер */
.subnav-inner {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* Ссылки подменю */
.subnav a {
  color: #111;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.subnav a:hover,
.subnav a:focus {
  text-decoration: underline;
  color: #0066cc;
}

/* Заголовок подменю */
.subnav-title a {
  color: gray;
  margin-right: 10px;
  font-weight: normal;
}

/* 🔄 Адаптивность */
@media (max-width: 768px) {
  .subnav-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .subnav-title a {
    margin-bottom: 5px;
  }
}






#footer {
  background-color: #003366;
  color: grey;
  padding: 40px 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

#footer a {
  color: grey;
  text-decoration: none;
  display: block;
  margin-bottom: 5px;
}

#footer a:hover {
  text-decoration: underline;
}

#footer h4 {
  color: white;
  margin-bottom: 10px;
  font-size: 16px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

.footer-col {
  flex: 1 1 160px;
  min-width: 150px;
}

.footer-col-wide {
  flex: 2 1 350px;
}

.footer-social .social-block {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
}

.footer-social img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
}

.footer-bottom {
  border-top: 1px solid #555;
  margin-top: 30px;
  padding-top: 20px;
  font-size: 13px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom a {
  display: inline-block;
  margin-right: 15px;
  color: grey;
}

.footer-bottom p {
  margin: 5px 0;
  color: grey;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    padding: 0 15px;
  }

  .footer-col,
  .footer-col-wide,
  .footer-social {
    flex: 1 1 100%;
  }

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





.mainpage_ver2_block {
  margin: 30px 10px;
  border-left: 1px solid #ccc;
  padding-left: 15px;
}


/* Блок Смотрите также под статьями */
.ver2_block_2 {
  margin: 30px 10px;
}

.ver2_block_3 {
  margin: 30px 10px;
  border-top: 1px solid #ccc;
  padding-top: 15px;
}




.mainpage_ver2__title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  color: #111;
  margin: 0 0 12px 0;

  /* аккуратное ограничение длинных заголовков */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}



.mainpage_ver2__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mainpage_ver2__content br {
  display: none;
}

.mainpage_ver2__content a {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.2;
  color: #1a1a1a;
  text-decoration: none;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mainpage_ver2__content a::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0),
    #fff
  );
}

.mainpage_ver2__content a:hover {
  text-decoration: underline;
}







.mainpage_ver4_block {
  margin: 30px 10px;
  border-left: 1px solid #ccc;
  padding-left: 15px;
}


/* Блок Смотрите также под статьями */
.ver2_block_4 {
  margin: 30px 10px;
}

.ver2_block_5 {
  margin: 30px 10px;
  border-top: 1px solid #ccc;
  padding-top: 15px;
}










.feedback-form {
  margin: 0 0 50px 0;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.feedback-form input,
.feedback-form textarea {
  width: 100%;
  max-width: 700px;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
}
.feedback-form button {
  background: #444;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
}
.feedback-form button:hover {
  background: #666;
}





.main-menu2 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  font-size: 14px;
  align-items: center;
  margin: 20px auto; /* заменяем 20px 0 → 20px auto */
  max-width: 1200px;
}

.main-menu2 a {
  font-family: inherit;
  font-size: 1rem;
  text-decoration: none;
  color: #333;
  padding: 0.3rem 0.5rem;
  transition: color 0.2s ease, border-bottom 0.2s ease;
}

.main-menu2 a:hover {
  color: #0066cc;
  text-decoration: none;
}

/* адаптивность */
@media (max-width: 600px) {
  .main-menu2 {
    gap: 1rem;
    font-size: 0.95rem;
  }
}







.footer-lang-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  font-size: 14px;
  align-items: center;
  margin: 20px auto; /* заменяем 20px 0 → 20px auto */
  max-width: 1000px;
}


.footer-lang-title {
  
  margin-right: 10px;
  white-space: nowrap;
}

.footer-lang-links a,
.footer-lang-links a:visited {
	color: #0645ad;
	font-family: sans-serif;
	text-decoration: none;
	font-size: 13px;
	font-weight: normal;
	letter-spacing: 0.2px;
}


.footer-lang-links a:hover {
 text-decoration: underline;
}

.footer-lang-links img {
  width: 16px;
  height: 11px;
  border-radius: 2px;
  padding:0 5px 0 0;
}



.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
  padding: 10px 0;
}

.footer-logo img {
  max-width: 100px; /* можно изменить под размер логотипа */
  height: auto;
}










/* Сбросим стандартные отступы и включим понятное поведение box-sizing */
.otpad_2 {
  display: block;          /* гарантируем блочное поведение */
  box-sizing: border-box;  /* padding входит в ширину */
  margin: 0;               /* убираем внешние отступы браузера */
  padding: 20px;           /* вот желаемый внутренний отступ */
  background: #fafafa;     /* временный фон — чтобы было видно padding */
  border: 1px solid #e0e0e0; /* временная рамка — для диагностики */
  column-count: 3;         /* три колонки */
  column-gap: 30px;        /* расстояние между колонками */
  list-style-position: inside;
}

/* Элементы списка — интервал между ними и запрет разрыва */
.otpad_2 li {
  margin: 0 0 10px 0;      /* нижний отступ между пунктами */
  break-inside: avoid;     /* чтобы элементы не ломались по колонке */
  padding-right: 8px;      /* небольшой отступ справа, чтобы текст не прилегал */
}

/* Если где-то в проекте есть более специфичный селектор, можно временно усилить правило */
.otpad_2.your-test-class {
  padding: 20px !important;
}





/* Глобальное упрощение расчёта ширины */
.survey_block,
.survey_block * {
    box-sizing: border-box;
}

/* Корневой контейнер */
.survey_block {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fafafa;
    font-family: sans-serif;
}

/* Заголовок */
.survey_title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 12px;
}

/* Описание */
.survey_description {
    margin-bottom: 18px;
    font-size: 1rem;
}

/* Картинка */
.survey_image {
    display: block;
    max-width: 100%;
    margin: 18px 0;
    border-radius: 8px;
}

/* Поля формы */
.survey_form textarea,
.survey_form input[type="email"] {
    width: 100%;
    padding: 10px;
    margin: 14px 0;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical;
    font-size: 1rem;
}

/* Только увеличение высоты textarea */
.survey_form textarea {
    height: 220px; /* можно менять под нужный размер */
}

/* Кнопка */
.survey_button {
    width: 100%;
    padding: 12px 0;
    border-radius: 6px;
    border: none;
    background: #2975d1;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
}

.survey_button:hover {
    background: #1e5fa7;
}

/* Узкие экраны */
@media (max-width: 360px) {
    .survey_block {
        padding: 12px;
    }
}

/* Тёмная тема */
@media (prefers-color-scheme: dark) {
    .survey_block {
        background: #2c2c2c;
        border-color: #444;
        color: #eee;
    }

    .survey_form textarea,
    .survey_form input[type="email"] {
        background: #3a3a3a;
        border-color: #555;
        color: #f0f0f0;
    }

    .survey_button {
        background: #3b82f6;
    }

    .survey_button:hover {
        background: #2563eb;
    }
}





/* Карточки */

.sig_card {
  
  margin: 2px auto;
  padding: 2px;
  border-radius: 10px;
  background: #ffffff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.sig_header {
  
  margin-bottom: 1px;
  padding-bottom: 1px;
}

.sig_title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.sig_registry {
	display: none;
  margin-top: 6px;
  color: #666;
  font-size: 14px;
}

.sig_file {
  margin: 12px 0;
}

.sig_file a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  background: #2d6cdf;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.sig_file a:hover {
  background: #1f55b5;
}

.sig_content {
  font-size: 17px;
  font-weight: 600;
  padding: 20px 0 23px 0;
  line-height: 1.6;
  color: #222;
  border-bottom: 1px solid #ddd;
}

.sig_footer {
  font-family: "Inter", "Roboto", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1e3a8a;           /* насыщенный синий */
  background-color: #f9fafb; /* мягкий светлый фон */
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;             /* чтобы span шли в ряд */
  flex-wrap: wrap;           /* если текст слишком длинный — перенос */
}

.sig_footer span {
  margin-right: 26px;       /* горизонтальный отступ между частями */
}



.articlebody .sig_meta_group {
  margin: 16px 0;
}


.articlebody .sig_meta {
  display: grid;
  grid-template-columns: 170px 1fr;
  column-gap: 12px;
  margin: 6px 0;
}

.articlebody .sig_meta_key {
  font-weight: 600;
  color: #2a2a2a;
  font-family: "Inter", sans-serif;
  font-size: 15px !important;
  line-height: 2.2;
}

.articlebody .sig_meta_value {
  font-weight: 400;
  color: #111;
  font-family: "Inter", sans-serif;
  font-size: 15px !important;
  line-height: 2.2;
  word-break: break-word;
}









.sig_request-form {
  display: flex;
  flex-direction: row; /* горизонтально */
  gap: 8px; /* расстояние между input и кнопкой */
  max-width: 600px;
  align-items: center; /* выравнивание по вертикали */
}

.sig_request-form input[type="email"] {
  padding: 10px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  flex: 1; /* input занимает всё доступное место */
  box-sizing: border-box;
}

.sig_request-btn {
  padding: 12px 18px; /* можно немного увеличить ширину кнопки */
  font-size: 15px;
  font-weight: 400;
  color: #000;
  background-color: #ffa41c;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap; /* текст не переносится */
}

.sig_request-message {
	clear:both;
	margin:100px 0 0 0;
  font-size: 16px;
  color: #fff;
  background-color: #1AA800;
  border: 1px solid #e2e8f0;  /* очень мягкая рамка */
  padding: 10px 12px;
  border-radius: 6px;
  margin-top: 8px;
  display: none;
}






.legal-note {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #8a8f98; /* нейтральный серый */
}

.legal-note p {
  margin: 0 0 6px 0;
}

.legal-note p:last-child {
  margin-bottom: 0;
}









/* Контейнер related */
.sig_related {
  display: flex;
  flex-direction: column; /* все карточки в одну колонку */
  gap: 10px;              /* вертикальные отступы между карточками */
  margin: 40px 0 20px 0;
}

/* Отдельная карточка related */
.sig_related_card {
		font-family: Helvetica Neue, Helvetica, Arial, Utkal, sans-serif !important;
  background: #fcfcfd;
  border-radius: 3px;
  border-top: 1px solid #ddd;
  padding: 30px 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  transition: transform 0.15s, box-shadow 0.15s;
  margin: 10px 0;
}


/* Заголовок карточки */
.sig_related_header {
  margin-bottom: 6px;
  font-size: 20px;        /* меньше, чем у основного товара */
  font-weight: 600;
}

.sig_related_header a {
  color: #2d6cdf;
  text-decoration: none;
}

.sig_related_header a:hover {
  text-decoration: underline;
  color: #1f55b5;
}

/* Метаданные карточки */
.sig_related_meta_group {
  margin-top: 4px;
}

.sig_related_meta {
  display: flex;          /* одна строка: ключ + значение */
  margin: 2px 0;
}

.articlebody .sig_related span.sig_related_meta_key {
  font-weight: 600;
  font-size: 13px !important;        /* уменьшенный шрифт */
  color: #555;
  width: 190px;            /* фиксированная ширина ключа */
}

.articlebody .sig_related span.sig_related_meta_value {
  font-weight: 400;
  font-size: 13px !important;        /* уменьшенный шрифт */
  color: #222;
  word-break: break-word;
}





.crypto-help {
  
  padding: 18px 20px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fafafa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  
}

.crypto-help h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
}

.crypto-help-sub {
  
  color: #555;
  font-size: 14px;
}

.crypto-steps {
  margin: 0 0 14px 18px;
  padding: 0;
  font-size: 14px;
}

.crypto-steps li {
  margin-bottom: 6px;
}

.crypto-steps .apps {
  color: #666;
}

.crypto-confirm {
  margin: 12px 0 6px 0;
  font-size: 14px;
}

.crypto-support {
  margin: 0;
  font-size: 14px;
}

.crypto-support a {
  color: #2563eb;
  text-decoration: none;
}

.crypto-support a:hover {
  text-decoration: underline;
}





.file_pandia_org_lang_nav {
    padding: 12px 20px;
	display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.file_pandia_org_lang_nav a {
    padding: 6px 10px;
    border-radius: 4px;
    background: #f0f0f0;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    transition: 0.2s;
}

.file_pandia_org_lang_nav a:hover {
    background: #dcdcdc;
}









.file_search-wrapper_main {
    width: 100%;
    background: #fff;
    padding: 10px 0 30px 0;
    float: left;
}

.file_search-form_main {
    display: flex;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    gap: 10px;
    padding: 0 15px;
}

#file_story_main {
    flex: 1;
    min-width: 0;   /* С‡С‚РѕР±С‹ РЅРµ СЂР°СЃС‚СЏРіРёРІР°Р»РѕСЃСЊ РЅР° РјР°Р»РµРЅСЊРєРёС… СЌРєСЂР°РЅР°С… */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

#file_search-button_main {
    flex: 0 0 auto;
    padding: 10px 28px;
    border: none;
    border-radius: 4px;
    background: #318ba2;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}





.searchform_bottom_wrapper {
    background: linear-gradient(135deg, #0b1d33, #102a44);
    padding: 80px 100px 100px 100px;
    border-radius: 14px;
    max-width: 620px;
    margin: 0 auto;
}



@media (max-width: 900px) {
    .searchform_bottom_wrapper {
        padding: 60px 50px 70px 50px;
        max-width: 100%;
    }
}


@media (max-width: 600px) {
    .searchform_bottom_wrapper {
        padding: 40px 20px 45px 20px;
        border-radius: 0;
    }

    .searchform_bottom_title {
        font-size: 16px;
        margin-bottom: 16px;
        line-height: 1.3;
    }

    .searchform_bottom_form {
        flex-direction: column;
        gap: 10px;
    }

    .searchform_bottom_input {
        font-size: 16px;
        padding: 14px;
    }

    .searchform_bottom_button {
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }
}




.searchform_bottom_form {
    display: flex;
    gap: 12px;
}



.searchform_bottom_input {
    flex: 1;
    padding: 14px 16px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    background: #ffffff;
    color: #1a1a1a;
    outline: none;
}

.searchform_bottom_input::placeholder {
    color: #8a8a8a;
}

.searchform_bottom_input:focus {
    box-shadow: 0 0 0 3px rgba(47, 128, 237, 0.25);
}



.searchform_bottom_button {
    padding: 14px 22px;
    border-radius: 10px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    background: #2f80ed;
    color: #ffffff;
    transition: background 0.2s ease, transform 0.1s ease;
}

.searchform_bottom_button:hover {
    background: #256fd0;
}

.searchform_bottom_button:active {
    transform: translateY(1px);
}


.searchform_bottom_title {
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 600;
    color: #cfe2ff;
    text-align: center;
}


@media (max-width: 360px) {
    .searchform_bottom_title {
        font-size: 15px;
    }

    .searchform_bottom_input {
        padding: 12px;
    }

    .searchform_bottom_button {
        padding: 12px;
    }
}











.pay-block {
    margin: 30px 0;
}

.pay-title {
    font-size: 20px;
    margin-bottom: 18px;
}

.pay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.pay-form {
    margin: 0;
}

.pay-button {
    width: 100%;
    padding: 12px 18px;
    border-radius: 14px;
    border: none;
    cursor: pointer;

    
    color: black;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;

    box-shadow: 0 10px 25px rgba(45,126,247,.35);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.pay-button small {
    font-size: 12px;
    font-weight: 500;
    opacity: .85;
}

.pay-button:hover {
    
    box-shadow: 0 14px 32px rgba(45,126,247,.45);
    
}

.pay-button:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(45,126,247,.35);
}

@media (max-width: 480px) {
    .pay-title {
        font-size: 18px;
    }

    .pay-button {
        padding: 13px 14px;
        border-radius: 12px;
    }
}



