/* Правила для экранной версии представления данных. */

  /* ================== Общие установки для страницы =================== */
  html, body, img, #support, #header {
    margin: 0;
    padding: 0;
    border: 0;
  }
  body {
    color: #000;
    background: #dcf0f7 url(/_css/images/bgbody.gif) top repeat-x;
    font-family: "Times New Roman", Times, serif;
    text-align: center;
  }

  /* "Носитель" всей страницы */
  #support {
  /* (первые две строки создают "Адаптивный дизайн" - ширина 980px задается для компьютеров) */
    width: 100%;
    max-width: 980px;
    background: #fff url(/_css/images/bgsupport.gif) bottom repeat-x;
    text-align: left;
    margin: 0 auto;
    border: solid 1px #3a76ae;
    border-top: 0;
  }

  /* Шрифт для "шапки", меню навигации, заголовков в основном тексте, "подвала": */
  #menu, #hmenu, #text h1, #text h2, #text .ph2, #text h3, #footer {
    font-family: Tahoma, Verdana, Arial, Helvetica, sans-serif;
  }

  /*============================= "Шапка" ================================*/
  /* Представление "шапки": */
  #header {
    width: 980px;
    height: 130px;
    background: #2f6ff1 url(/_css/images/bgheader.jpg) top left no-repeat scroll;
    text-align: left;
    vertical-align: top;
  }

  /* Представление логотипа: */
  #header img.logo {
    /* все параметры, которые были здесь, задаются теперь в #hbanner */
  }

  /* Блок для логотипа и баннера 400*100 (440*120 max) в шапке: */
  #hbanner {
    padding: 15px 0 5px 20px;   /* было 23px - первое значение для старого лого */
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
  }

  /*========================= Вертикальное меню ==========================*/
  /* "Носитель" вертикального меню: */
  #menusupport {
    width: 200px;
    font-size: 14px;
    float: left;
  }

  /* Вертикальное меню: */
  #menu {
    font-weight: bold;
    text-align: left;
    margin: 22px 20px 20px 20px;
  }
  #menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
  }
  #menu ul li {
    white-space: nowrap;
    padding: 3px 0;
    margin: 0;
  }
  #menu ul li a, #menu ul li span {
    display: block;
  }
  #menu ul li.name {
    color: #fff;
    background-color: #4285f4;   /* было: #09c */
    padding: 5px 0 5px 10px;
    margin: 15px 0 10px 0;
  }
  #menu .actions {
    color: #f00;
  }
  /* Представление рисунков меню и рисунка "корзины" (интернет-магазин): */
  img.imgmenu, img#basket {
    vertical-align: middle;
  }

  /*======================== Горизонтальное меню =========================*/
  #hmenu {
    font-size: 14px;
    color: #ff5757;
    text-align: right;
    font-weight: bold;
    background-color: #dff7ff;   /* было: #f5dd99 */
    padding: 15px 5px;   /* padding-right д.б. согласован с margin 15px в следующем параметре (сумма д.б. 20px) */
    margin-left: 20px;   /* чтобы меню было в один уровень с текстом */
    border-bottom: dotted 1px #3a76ae;
  }
  #hmenu a, #hmenu span {
    white-space: nowrap;
    margin: 0 15px 0 0;
  }

  /* Общие правила оформления ссылок в горизонтальном и вертикальном меню: */
  #hmenu a, #menu a {
    color: #3f80c9;
    text-decoration: none;
  }
  #hmenu span, #menu span {
    color: #a9a9a9;
  }
  #hmenu a.current:link, #hmenu a.current:visited, #menu a.current:link, #menu a.current:visited {
    color: #8736c6;
  }
  #hmenu a:hover, #hmenu a.current:hover, #menu a:hover, #menu a.current:hover {
    color: #ff5757;
  }

  /*========================== Основной текст =============================*/
  #textsupport {
    margin-left: 200px;
  }
  #text {
    min-height: 500px;
    padding: 20px;
  }
  #text h1 {
    color: #0b55d2;   /* было: #ff5757 */
    font-size: 100%;
    font-weight: bold;
    margin: 0 0 20px 0;   /* значение верхнего отступа обязательно должно быть задано 0px! */
  }
  #text h2, #text .ph2 {
    color: #09c;
    font-size: 100%;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  /* Представление списков в основном тексте: */
  #text ul, #text ol {
    margin-top: 0;
    margin-bottom: 0;
  }

  /* Оформление ссылок в основном тексте: */
  #text a {
    text-decoration: none;
  }
  #text a:link {
    color: #03f;
  }
  #text a:visited
  {
    color: #03f;  /* #808080 */
  }
  #text a:hover {
    text-decoration: underline;
  }
  #text a:active {
    color: #f00;
  }
  #text a.prices {
    color: #217346;
  }

  /* Оформление блоков текста: */
  .cline {
    text-align: center;
  }
  .textbd {
    font-weight: bold;
  }
  .ital {
    font-style: italic;
  }
  .upp {
    text-transform: uppercase;
  }
  .now {
    white-space: nowrap;
  }
  .red_bold {
    color: #f00;
    font-weight: bold;
  }

  /* Представление рисунков на каждой странице (вверху справа): */
  .imgrt {
    float: right;
    text-align: right;
    margin: 0 0 20px 20px;
  }

  /* Представление стихотворения - НЕ ИСПОЛЬЗУЕТСЯ: */
  #poem {
    float: right;
    color: #0b55d2;
    font-size: 60%;
    font-weight: bold;
    width: 50%;
    margin: 0 0 20px 20px;
  }

  /*================= Оформление страницы с расписанием ==================*/
  #text table {
    border-collapse: collapse;
    width: 100%;
    border: solid 2px #f2d262;
  }
  #text td, #text th {
    padding: 5px 10px;
    border: solid 1px #f2d262;
  }
  #text th {
    background: #f6f2b9;
  }
  #text td {
    font-size: 85%;
    background: #e5ffe5;
  }
  #text td.center {
    text-align: center;
  }
  #text td.double {
    border-top: solid 2px #e5ffe5;
  }
  .timesred {
    color: #f00;
    font-style: italic;
  }

  /*=============== Оформление полей ввода текста и кнопок ===============*/
  input.ttext, textarea {
    background: #f0f0f0;
    border: solid 1px #ccc;
    font-family: "Lucida Console", monospace;
  }
  input.button-red {
    background-color: #fc5c5c;
  }
  fieldset {
    border: solid 1px #ccc;
    padding: 20px;
  }
  legend {
    font-weight: bold;
    color: #c00;
  }

  /* Кнопка перехода в интернет-магазин: */
  input.button-shop {
    color: #00f;
    background: #fff100;
    font-weight: bold;
    border: solid 2px #06f;
    vertical-align: middle;
    margin: 20px 0;
    padding: 10px;
  }

  /*============================= "Подвал" ===============================*/
  #footer {
    font-size: 60%;
    color: #777;
    text-align: right;
    padding: 0 20px 10px 20px;
    clear: both;
  }

  /* Оформление счетчиков: */
  #counter {
    text-align: center;
    margin: 10px 0;
  }

  /* Оформление ссылок в "подвале": */
  #footer a:link, #footer a:visited, #footer a:hover, #footer a:active {
    color: #777;
    text-decoration: none;
  }
  #footer a:hover {
    text-decoration: underline;
  }

  /*======================== Адаптивная верстка ==========================*/
  /* Правила для узких экранов: 800px и меньше */
@media (max-width: 800px) {
  body {
    font-size: 16px;
  }
  img, #text table {
    max-width: 100%;
  }
  #header {
    background-image: none;
    width: 100%;
    height: 100%;
  }
  #header img.logo {
    width: 150px;
    margin: -5px 0 -30px 0;  /* было: 0 0 -25px 0 - так полоса с лого была чуть шире */
  }
  #menusupport {
    width: 100%;
    font-size: 15px;
    text-align: center;
    background-color: #fff6de;
  }
  #textsupport {
    margin-left: 0;
    clear: both;
  }
  #menu {
    text-align: center;
    margin: 10px 3px;  /* 3px согласовываем с 7px, который ниже */
    line-height: 1.4;  /* увеличиваем межстрочное расстояние, чтобы пункты меню не "слипались" */
  }
  #menu ul li {
    display: inline;
    padding: 0px 7px;  /* первый параметр 0px в мобильной версии не работает! (второй 7px работает!) */
  }
  #menu ul li a, #menu ul li span {
    display: inline;
  }
  #hmenu {
    font-size: 15px;
    text-align: center;
    background-color: #fff6de;
    padding: 5px 0 5px 15px;
    margin-left: 0;   /* обнуляем левый отступ меню */
    border-top: dotted 2px #3a76ae;
    border-bottom: dotted 2px #3a76ae;
  }
  /* Скрываем не требующиеся элементы: */
  #menu ul li.name {
    display: none;
  }
  .no {
    display: none;
  }
}