/*General*/

h1, h2, h3, h4, h5, h6 {
    color: #666699;
}

blockquote {
    margin: 8px 0px;
}

a {
    color: #666699;
}

a:hover {
    color: #FC722B;
    text-decoration: none;
}

ul {
    color: #FC722B;
    margin: 0px;
}

ul > ul {
    margin-left: 12px;
}

.cat-section {
    min-height: 210px;
    background-color: #f2f2f2;
    padding: 10px 10px;
    margin: 10px 0px;
}

figure {
    background-color: #f2f2f2;
    text-align: center;
    padding: 10px;
}

figcaption {
    font-size: 16px;
    color: #666699;
    font-weight: bold;
}

.thumbnail {
    background-color: #e5e5e5;
    text-align: center;
    width: 280px;
    padding: 10px;
    margin: 10px;
}

.thumbnail figcaption {
    font-size: 13px;
    font-weight: normal;
}



.float-left {
    float: left;
}

.float-right {
    float: right;
}

.data {
    /*background-image: url("/images/Image-TDK-05-bus.png");
    background-size: auto auto;*/
    background-color: #666699;
    text-align: justify;
    padding: 10px;
    margin: 10px 0px;
    color: #ffffff;
    font-size: 14px;
}

.data a {
    color: #ffffff;
}

/*---------*/

.container {
    margin: 0 auto; 
    width: 1320px;
}

.clear {
    clear: both;
    visibility: hidden;
}

header {
	background-color: #90adbb;
	background-image: url("/images/tdk-wide-header.jpg");
	background-position: center center;
	height: 180px;
}

.map, .icons {
    display: inline;
    float: left;
    margin-left: 5px;
    margin-right: 5px;
    width: 650px;
    height: 30px;
    padding: 3px 0px;
}

.icons {
    text-align: right;
}



.facebook, .insta, .youtube {
    display: inline-block;
    width: 30px;
    height: 30px;
    transition: background-image 0.3s ease-in-out;
}
.facebook {
    background-image: url("/images/facebook_icon.png");
}
.insta {
    background-image: url("/images/insta_icon.png");
}
.youtube {
    background-image: url("/images/youtube_icon.png");
}

.facebook:hover {
    background-image: url("/images/facebook_icon_orange.png");
}
.insta:hover {
    background-image: url("/images/insta_icon_orange.png");
}
.youtube:hover {
    background-image: url("/images/youtube_icon_orange.png");
}



.icons a {
	margin: 0px 6px;
}
    
img, video, iframe {
    max-width: 100%; /* Картинка не вылезет за границы родителя */
    height: auto; /* Пропорции сохраняются при уменьшении */
}

/* Map button */
.map a {
	display: block;
	height: 24px;
	width: 120px;
	text-align: center;
	margin-left: 12px;
    padding: 3px 0px;
	background-color: #666699;
    border-radius: 5px;
    font-size: 16px;
	box-shadow: 1px 1px 5px #ffffff;
	color: #ffffff;
	text-decoration: none;
}

.map a:hover {
	color: #ffffff;
	background-color: #FC722B;
	box-shadow: 1px 1px 5px #ffffff;
    transition: background-color 0.3s ease-in-out;
    /*
    color: #666699;
	background-color: #ffffff;
	box-shadow: 1px 1px 5px #666699;
    */
}

.map span {
    display: block;
	height: 24px;
	width: 120px;
	text-align: center;
    margin-left: 12px;
	padding: 3px 0px;
	border-radius: 5px;
    font-size: 16px;
    color: #ffffff;
	background-color: #FC722B;
	box-shadow: 1px 1px 5px #ffffff;
    /*
    background-color: #ffffff;
	box-shadow: 1px 1px 5px #666699;
    color: #666699;
    */
}



/* --------- */

/* Medium navigation */
nav {
	background-color: #54547D;
	min-height: 40px;
}

nav a {
    display: block;
    float: left;
    text-align: center;
    height: 30px;
	width: 210px;
    margin-top: 2px;
    margin-left: 5px;
    margin-right: 5px;
	padding-top: 6px;
    color: #ffffff;
    background-color: #666699;
	text-decoration: none;
    font-size: 16px;
}

nav a:hover {
	color: #ffffff;
	background-color: #FC722B;
    /*
    color: #7986CB;
	background-color: #ffffff;
    */
	text-decoration: none;
    transition: background-color 0.3s ease-in-out;
}

nav span {
    display: block;
    float: left;
    text-align: center;
    height: 30px;
	width: 210px;
    margin-top: 2px;
    margin-left: 5px;
    margin-right: 5px;
	padding-top: 6px;
    color: #ffffff;
	background-color: #FC722B;
    /*
    color: #7986CB;
	background-color: #ffffff;
	*/
    text-decoration: none;
    font-size: 16px;
}

/* --------- */

/* Main */

main, aside {
    display: inline;
    float: right;
    margin: 0px 10px;
}

aside {
    width: 310px;
}

aside h5 {
    margin-bottom: 0px;
    font-size: 17px;
}

main {
    padding-top: 10px;
    width: 970px;
}

.breadcrumbs {
    font-size: 13px;
    color: #FC722B;
}

.breadcrumbs a {
    color: #FC722B;
}

.breadcrumbs a:hover {
    text-decoration: none;
}

.popular {
	height: 24px;
	text-align: center;
	background-image: url("/images/div_icon.gif");
	background-position: 6px 2px;
	background-repeat: no-repeat;
	margin-top: 10px;
	padding-bottom: 2px;
	padding-left: 9px;
	border-bottom: 2px groove #FC722B;
    color: #666699;
	font-size: 17px;
}

.popular + section {
    border-bottom: 2px groove #FC722B;
}

/* --------- */

/* Footer */

footer {
	background-color: #54547D;
	height: 26px;
    padding: 24px 0px;
	font-size: 16px;
	color: #ffffff;
}

footer div {
    text-align: center;
}

footer a {
	color: #ffffff;
	text-decoration: none;
}

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

/* --------- */

@media (min-width: 420px) and (max-width: 719px) {
    .container {
        width: 420px;
    }
    .map, .icons {
        width: 200px;
    }
    nav a, nav span {
        width: 200px;
        margin: 0px 5px;
    }
    main{
        width: 400px;
    }
    aside {
        width: 400px;
    }
    .float-right {
    float: none;
    }
    .float-left {
    float: none;
    }
    
}

@media (min-width: 720px) and (max-width: 959px){
    .container {
        width: 720px;
    }
    .map, .icons {
        width: 350px;
    }
    nav a, nav span {
        width: 230px;
        margin: 0px 5px;
    }
    main{
        width: 700px;
    }
    aside {
        width: 700px;
    }
    
}

@media (min-width: 960px) and (max-width: 1199px){
    .container {
        width: 960px;
    }
    .map, .icons {
        width: 470px;
    }
    nav a, nav span {
        width: 310px;
        margin: 0px 5px;
    }
    main{
        width: 700px;
    }
    aside {
        width: 220px;
    }
}

@media (min-width: 1200px) and (max-width: 1319px){
    .container {
        width: 1200px;
    }
    .map, .icons {
        width: 590px;
    }
    nav {padding-top: 3px;}
    nav a, nav span {
        width: 190px;
        margin: 0px 5px;
    }
    main{
        width: 880px;
    }
    aside {
        width: 280px;
    }
}