#top {max-width: 900px;
      height: 90px;
      margin: 0 auto;}
#top img {float: left;}
#top img:hover {opacity: 0.7;}
#caption {height: 90px;
          padding-left: 219;}
#caption h1 {text-align: center;
             color: rgb(0,0,0);}


html {
    height: 100%;
    margin: 0;
}

body { width: 960px;
       margin:0 auto;
       height: 100%;
}

.counter {
    text-align: right;
    color: rgba(0,0,0,0.5);
}


.wrapper {
    min-height: 100%;
    /* Равно высоте подвала, */
    /* но с учётом margin-bottom у последнего дочернего элемента */
    margin-bottom: -50px;
}

.footer {
    right: 0;
    bottom: 0;
    width: 99%;
    font-size: 14px;
    font-weight: bold;
    color: rgba(0,0,0,0.5);
    height: 50px;
}

.push {
    height: 50px;
}


.container {
    justify-content: center;
    align-items: center;
    display: grid;
    grid-gap: 5px;
    grid-template-columns: repeat(auto-fit, 480px);
    grid-template-rows: repeat(2, 270px);
    margin: auto;
    width: 90%;
}

.box {
  min-height: 100%;
  min-width: 1024px;
  width: 100%;
  height: auto;
  position;
  top: 0;
  left: 0;
}


.center { 
    text-align: center; 
}


table,
        th,
        td {
            border: 1px solid black;
        }
         
        table.center {
            margin-left: auto;
            margin-right: auto;
        }
         
        table.center1 {
            margin: auto;
        }
    

.slider{
    max-width: 100%;
    position: relative;
 
    height: 419px;
    margin-bottom: 130px;
    margin: auto;
    }
    /* Картинка мастабируется по отношению к родительскому элементу */
    .slider .item img {
    object-fit: cover;
    width: 100%;
    height: 419px;
    }
 
    /* Кнопки вперед и назад */
    .slider .prev, .slider .next {
    cursor: pointer;
    position: absolute;
    top: 0;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    }
 
 
    .slider .next {
    right: 0;
    border-radius: 3px 0 0 3px;
    }
 
 
    /* При наведении на кнопки добавляем фон кнопок */
 
    .slider .prev:hover,
    .slider .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
    }
 
 
    /* Заголовок слайда */
    .slideText {
    position: absolute;
    color: #fff;
    font-size: 35px;
    /* Выравнивание текста по горизонтали и по вертикали*/
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    /* Тень*/
    text-shadow: 1px 1px 1px #000, 0 0 1em #000;
    }
 
 
    /* Кружочки */
 
    .slider-dots {
    text-align: center;
 
    }
    .slider-dots_item{
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 2px;
    background-color: #ddd;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
    }
 
    .active,
    .slider-dots_item:hover {
    background-color: #aaa;
    }
 
 
    /* Анимация слайдов */
 
    .slider .item {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
    }
 
    @-webkit-keyframes fade {
    from {
    opacity: .4
    }
    to {
    opacity: 1
    }
    }
 
    @keyframes fade {
    from {
    opacity: .4
    }
    to {
    opacity: 1
    }
    }





/* задаем цвет фона для контейнера nav. */
nav {
    margin: 0 auto;
                            background-color: #FFFFFF;
}

/* убираем отступы и поля, а также list-style для "ul", 
 * и добавляем "position:relative" */
nav ul {
    padding: 0;
                            margin: 0 auto;
    list-style: none;
    position: relative;                          
    }

/* применяем inline-block позиционирование к элементам навигации */
nav ul li {
    margin: 0 auto;
    display:inline-block;
    background-color: #FFFFFF;
                        }

/* стилизуем ссылки */
nav a {
    display:block;
    padding:0 10px;
    color:#000080;
    font-size:20px;
    line-height: 60px;
    text-decoration:none;
    opacity: 1;
}

/* изменяем цвет фона при наведении курсора */
nav a:hover {
    background-color: #B0C4DE;
    opacity: 0.2;
}

                        nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
                            z-index: 10;
}

/* отображаем выпадающий список при наведении */
nav ul li:hover > ul {
    display:inherit;
}

/* первый уровень выпадающего списка */
nav ul ul li {
    min-width:170px;
    float:none;
    display:list-item;
    position: relative;
}



.imgconf p{
 text-align: center;
}
.imgconf {
max-width: 200px;
}



