@font-face{font-family:'DinCyrRg';src:url('fonts/DinCyRg.eot') format('embedded-opentype'), url('fonts/DinCyRg.woff') format('woff');}
@font-face{font-family:'DinCyrBld';src:url('fonts/DinProBld.eot') format('embedded-opentype'), url('fonts/DinProBld.woff') format('woff');}
@font-face{font-family:'DinCyrDemi';src:url('fonts/DinProDemi.eot') format('embedded-opentype'), url('fonts/DinProDemi.woff') format('woff');}

* {
    box-sizing: border-box;
}

body {
    margin:0;
    font-family: DinCyrRg;
    -webkit-font-smoothing: antialiased;
    background-color: #ececea;
}

a {
    text-decoration: none;
    color:inherit;
}

h1 {
    font-size:22px;
    margin-bottom:0;
}

h2 {
    font-size:18px;
}

h3 {
    font-size: 14px;
}

h1 + h3 {
    margin-top:3px;
}

h1 + *:not(h3){
    margin-top:12px !important;
}

#topline {
    height:32px;
    background-color: #000;
    position: fixed;
    width:100%;
    z-index: 100;
}

#topmenu {
    
}

#topmenu::before {
    content:"";
    float:left;
    height:32px;
    width:96px;
    background-color: #fff;
    vertical-align: top;
}

#topmenu nav {
    float:left;
    vertical-align: top;
    margin-left: 96px;
}

#topmenu a {
    line-height: 32px;
    color:#7e7e7e;
    padding: 0 10px;
    text-transform: uppercase;
    font-size: 12px;
    font-family: 'DinCyrDemi';
    font-weight: 400;
}

#topmenu li.current-menu-item a {
    color:#fff;
}

#submenuline {
    position: fixed;
    top:32px;
    width:100%;
    height:96px;
    background-color: rgba(255,255,255,.95);
    z-index: 100;
}

#submenuline > div > div {
    vertical-align: top;
}

#logo {
    float:left;
    width:96px;
    height:96px;
}

#logo img {
    height:96px;
}

#logo_title {
    float:left;
    width:96px;
    height:96px;
    text-transform: uppercase;
    font-family: DinCyrBld;
    font-size:13px;
    padding:22px 0 0 10px;
}

#digital_logo {
    float:left;
    width:96px;
    height:96px;
}

#digital_logo img {
    width:96px;
}

#submenu {
    float: left;
    width:840px;
    height:96px;
}

#submenu ul {
    position: relative;
    height:96px;
}

#submenu li {
    width:32%;
    position: absolute;
    line-height: 32px;
    padding: 0 10px;
    border-bottom: 1px #7e7e7e dotted;
    margin-right:1%;
}

#submenu a {
    text-transform: uppercase;
    color:#7e7e7e;
    font-size:12px;
    white-space: nowrap;
}

#submenu li:nth-child(3n+1){
    top:0;
}

#submenu li:nth-child(3n+2){
    top:34%;
}

#submenu li:nth-child(3n){
    top:68%;
    border-bottom: none;
}

#submenu li:nth-child(1),
#submenu li:nth-child(2),
#submenu li:nth-child(3){
    left:0;
}

#submenu li:nth-child(4),
#submenu li:nth-child(5),
#submenu li:nth-child(6){
    left:33%;
}

#submenu li:nth-child(7),
#submenu li:nth-child(8),
#submenu li:nth-child(9){
    left:66%;
}

#submenu li.current-menu-item a {
    color:#000;
    font-weight: 600;
}

main {
    padding-top:132px;
}


nav ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

nav ul li {
    display: inline-block;
}

.content {
    width:1032px;
    margin: auto;
}

section {
    width:840px;
    float:right;
    padding: 32px 10px;
}

.square {
    float:left;
    width:150px;
    height:175px;
    margin-right:17.5px;
    margin-bottom: 30px;
    color:#000;
    text-align: center;
}

.clearfix {
    clear:both;
}

.square:hover {
    opacity: .6;
}

.square:nth-child(5n){
    margin-right: 0;
}

.square img {
    width:150px;
    height:150px;
    background-color:#fff;
}

p.subject {
    margin:5px 0;
}

p.subject a {
    text-decoration: underline;
}