/*
Theme Name: welding
Description: Шаблон для сайта welding
Version: 1.0
Author: Jeremen
*/

@font-face {
    font-family: AvantGardeGothicC-Book;
    src: url(fonts/AvantGardeGothicC-Book.otf);
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font: 14px Verdana, sans-serif;
    color: #2e2e2e;
}

#container {
    min-height: 100%;
}

.wrapper {
    margin: 0 auto;
    width: 1152px;
}

.menu {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.horizontal li {
    float: left;
}

#header {
    height: 155px;
    background: url(images/header-bg.jpg) repeat-x;
}

.primary {
    float: left;
    margin-left: 230px;
    height: 52px;
    overflow: hidden;
    font-size: 12px;
    line-height: 52px;
}

.primary li {
    margin: 0 5px;
}

.primary li a {
    text-transform: uppercase;
    text-decoration: none;
    color: #eeeeee;
}

.search-form {
    height: 52px;
}

.search-form input[type="text"] {
    float: left;
    margin: 10px 0 0 40px;
    padding: 8px 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    background-color: #fff;
    font-size: 12px;
}

.search-form input[type="submit"] {
    float: left;
    margin: 10px 0 0 1px;
    padding: 7px 14px;
    border: none;
    border-radius: 0 5px 5px 0;
    background: #fff url(images/magnifier.png) no-repeat center center;
    font-size: 12px;
    cursor: pointer;
}

.logo {
    display: block;
    float: left;
    margin: -20px 0 0 65px;
    padding: 60px 0 0 140px;
    width: 210px;
    height: 56px;
    background: url(images/logo.png) no-repeat;
    font: bold 14px AvantGardeGothicC-Book, sans-serif;
    text-decoration: none;
    color: #2e2e2e;
}

#header .arrow {
    float: left;
    width: 26px;
    height: 104px;
    background: url(images/arrow.png) no-repeat;
}

#header .contacts {
    float: right;
    margin: 20px 120px 0 0;
    padding:  15px 0 0 140px;
    height: 52px;
    background: url(images/telephone.png) no-repeat;
    font: bold 16px AvantGardeGothicC-Book, sans-serif;
}

#categories {
    overflow: hidden;
    clear: both;
    background-color: #eeeeee;
}

#categories h2 {
    position: relative;
    z-index: 1;
    margin: 10px auto;
    padding-bottom: 8px;
    width: 140px;
    border-bottom: 1px solid #742929;
    text-align: center;
    font-size: 18px;
    color: #2e2e2e;
}

#categories h2:before {
    position: absolute;
    bottom: 0;
    left: 0;
    right:0;
    z-index: -1;
    border-bottom: 1px solid #2e2e2e;
    content: "";
}

#categories ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#categories ul li:first-child {
    margin-left: 0;
}

#categories ul li {
    float: left;
    margin-left: 8px;
    width: 224px;
    height: 300px;
    text-align: center;
}

#categories ul li:nth-child(6n) {
    margin-left: 0;
}

#categories ul li .icon {
    display: block;
    width: 224px;
    height: 225px;
    border-radius: 100%;
}

#categories a {
    font-size: 14px;
    text-decoration: none;
    color: #2e2e2e;
}

#categories ul li.design .icon {
    background: url(images/categories/design.png) no-repeat;
}

#categories ul li.production .icon {
    background: url(images/categories/production.png) no-repeat;
}

#categories ul li.installation .icon {
    background: url(images/categories/installation.png) no-repeat;
}

#categories ul li.welding .icon {
    background: url(images/categories/welding.png) no-repeat;
}

#categories ul li.reconstruction .icon {
    background: url(images/categories/reconstruction.png) no-repeat;
}

#categories ul li.cutting .icon {
    background: url(images/categories/cutting.png) no-repeat;
}

#categories ul li.creating .icon {
    background: url(images/categories/creating.png) no-repeat;
}

#categories ul li.construction .icon {
    background: url(images/categories/construction.png) no-repeat;
}

#categories ul li.painting .icon {
    background: url(images/categories/painting.png) no-repeat;
}

#categories ul li.engineering-systems .icon {
    background: url(images/categories/engineering-systems.png) no-repeat;
}
#categories ul li.lep .icon {
    background: url(images/categories/lep.png) no-repeat;
}
#categories ul li.metaloprokat .icon {
    background: url(images/categories/metaloprokat.png) no-repeat;
}
#categories ul li.gasneft .icon {
    background: url(images/categories/gasneft.png) no-repeat;
}
#categories ul li.peskostryi .icon {
    background: url(images/categories/peskostryi.png) no-repeat;
}
#categories ul li.svarochnik .icon {
    background: url(images/categories/svarochnik.png) no-repeat;
}


#main .wrapper {
    width: 1022px;
    padding: 0 65px;
}

#main.internal {
    background-color: #eeeeee;
}

#content h1 {
    margin: 10px 0;
    font-size: 22px;
}

#content.internal {
    float: left;
    width: 750px;
}

#content a {
    color: #2e2e2e;
}

#content a:hover {
    text-decoration: none;
}

.pagination {
    text-align: center;
}

#sidebar {
    float: left;
    margin-left: 30px;
    width: 230px;
 list-style-type: none;
}

#sidebar h2 {
    margin: 20px 0 0 0;
    padding-left: 50px;
    height: 44px;
    background: url(images/articles.png) no-repeat;
    font-size: 16px;
    line-height: 44px;
}

#sidebar ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#sidebar ul li {
    padding: 10px 0;
    border-bottom: 1px solid #aeaeae;
    overflow: hidden;
}

#sidebar ul li img {
    display: block;
    float: left;
    margin-right: 5px;
}

#sidebar ul li .date-wrapper {
    overflow: hidden;
}

#sidebar ul li .date {
    float: right;
    padding: 1px 3px;
    background-color: #aeaeae;
    font-size: 11px;
    color: #fff;
}

#sidebar ul li a {
    margin-right: 5px;
    font-size: 12px;
    text-decoration: none;
    color: #2e2e2e;
}

.articles h2 {
    padding-left: 50px;
    height: 44px;
    background: url(images/articles.png) no-repeat;
    font-size: 18px;
    line-height: 44px;
}

.articles .item {
    position: relative;
    float: left;
    margin: 5px 0;
    padding-right: 5px;
    width: 250px;
    height: 65px;
    overflow: hidden;
}

.articles .item img {
    display: block;
    float: left;
    margin-right: 10px;
}

.articles .item a {
    float: left;
    width: 170px;
    font-size: 12px;
    color: #2e2e2e;
}

.articles .item a:hover {
    text-decoration: none;
}

.articles .item .date {
    position: absolute;
    left: 75px;
    bottom: 0;
    padding: 1px 3px;
    background-color: #aeaeae;
    font-size: 11px;
    color: #fff;
}

.spacer {
    height: 350px;
    clear: both;
}

#footer {
    margin-top: -300px;
    height: 300px;
    background-color: #2e2e2e;
}

#footer .primary {
    float: none;
    margin: 0;
}

#footer .logo {
    float: left;
    margin: 50px 0 0 0;
    padding: 50px 0 0 145px;
    height: 66px;
    color: #fff;
}

#footer .contacts {
    float: right;
    margin: 80px 0 0 0;
    padding:  15px 0 0 140px;
    height: 52px;
    background: url(images/telephone-footer.png) no-repeat;
    font: bold 16px AvantGardeGothicC-Book, sans-serif;
    color: #fff;
}

.counters {
    float: left;
    margin-right: 20px;
    padding-top: 20px;
}

.copyright {
    display: block;
    padding-top: 15px;
    color: #787878;
}

.clear {
    clear: both;
}

.breadcrumbs {
text-align:left;
}
.sep{
}
.current{
font-weight: 600;
}

div#w span {
  font-family: 'Skranji', 'Trebuchet MS', sans-serif;
  font-weight: bold;
  font-size: 1.75em;
  line-height: 1.7em;
  margin-bottom: 7px;
  color: #5b5463;
  text-transform: uppercase;
  text-align: center;
}

#w { 
  display: block;
  width: 660px;
  margin: 0 auto;
  margin-top: 25px;
  padding: 35px 15px;
  background: #fff;
  -webkit-border-radius: 7px;
  -moz-border-radius: 7px;
  border-radius: 7px;
  -webkit-box-shadow: 2px 3px 4px -2px rgba(0,0,0,0.55);
  -moz-box-shadow: 2px 3px 4px -2px rgba(0,0,0,0.55);
  box-shadow: 2px 3px 4px -2px rgba(0,0,0,0.55);
}



/* form styles */
form .row { 
  display: block;
  padding: 7px 8px;
  margin-bottom: 7px;
}
form .row:hover {
  background: #f1f7fa;
}

form label {
  display: inline-block;
  font-size: 0.9em;
  font-weight: bold;
  width: 120px;
  padding: 6px 0;
  color: #464646;
  vertical-align: top;
}
form .req { color: #ca5354; }

form .note { 
  font-size: 1.2em;
  line-height: 1.33em;
  font-weight: normal;
  padding: 2px 7px;
  margin-bottom: 10px;
}

form input:focus, form textarea:focus { outline: none; }

/* placeholder styles: http://stackoverflow.com/a/2610741/477958 */
::-webkit-input-placeholder { color: #aaafbd; font-style: italic; } /* WebKit */
:-moz-placeholder { color: #aaafbd; font-style: italic; }           /* Mozilla Firefox 4 to 18 */
::-moz-placeholder { color: #aaafbd; font-style: italic; }          /* Mozilla Firefox 19+ */ 
:-ms-input-placeholder { color: #aaafbd; font-style: italic; }      /* Internet Explorer 10+ */

form .txt {
  display: inline-block;
  padding: 8px 9px;
  padding-right: 30px;
  width: 320px;
  font-family: 'Oxygen', sans-serif;
  font-size: 1.35em;
  font-weight: normal;
  color: #898989;
  background-color: #f0f0f0;
  background-image: url('images/checkmark.png');
  background-position: 110% center;
  background-repeat: no-repeat;
  border: 1px solid #ccc;
  text-shadow: 0 1px 0 rgba(255,255,255,0.75);
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  -webkit-box-shadow: 0 1px 2px rgba(25, 25, 25, 0.25) inset, -1px 1px #fff;
  -moz-box-shadow: 0 1px 2px rgba(25, 25, 25, 0.25) inset, -1px 1px #fff;
  box-shadow: 0 1px 2px rgba(25, 25, 25, 0.25) inset, -1px 1px #fff;
  -webkit-transition: all 0.3s linear;
  -moz-transition: all 0.3s linear;
  transition: all 0.3s linear;
}

form .txtarea {
  display: inline-block;
  padding: 8px 11px;
  padding-right: 30px;
  width: 320px;
  height: 120px;
  font-family: 'Oxygen', sans-serif;
  font-size: 1.35em;
  font-weight: normal;
  color: #898989;
  background-color: #f0f0f0;
  background-image: url('images/checkmark.png');
  background-position: 110% 4%;
  background-repeat: no-repeat;
  border: 1px solid #ccc;
  text-shadow: 0 1px 0 rgba(255,255,255,0.75);
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  -webkit-box-shadow: 0 1px 4px -1px #a8a8a8 inset;
  -moz-box-shadow: 0 1px 4px -1px #a8a8a8 inset;
  box-shadow: 0 1px 4px -1px #a8a8a8 inset;
  -webkit-transition: all 0.3s linear;
  -moz-transition: all 0.3s linear;
  transition: all 0.3s linear;
}

form .txt:focus, form .txtarea:focus {
  width: 375px;
  color: #545454;
  background-color: #fff;
  background-position: 110% center;
  background-repeat: no-repeat;
  border-color: #059;
}
form .txtarea:focus { 
  width: 375px; 
  background-position: 110% 4%;
}

form .txt:valid {
  background-color: #deecda;
  background-position: 98% center;
  background-repeat: no-repeat;
  color: #7d996e;
  border: 1px solid #95bc7d;
}
form .txtarea:valid {
  background-color: #deecda;
  background-position: 98% 4%;
  background-repeat: no-repeat;
  color: #7d996e;
  border: 1px solid #95bc7d;
}
form .txt:focus:valid, form .txtarea:focus:valid {

}

form .center {
  margin-top: 25px;
  text-align: center;
}

#submitbtn {
  height: 70px;
  width: 275px;
  padding: 0;
  cursor: pointer;
  font-family: 'Oxygen', Arial, sans-serif;
  font-size: 1.5em;
  color: #fff;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.65); 
  border-width: 1px;
  border-style: solid;
   -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  background-color: darkred;
  -webkit-transition: all 0.3s linear;
  -moz-transition: all 0.3s linear;
  transition: all 0.3s linear; 
}
#submitbtn:hover, #submitbtn:focus {
  -webkit-box-shadow: 0 0 15px rgba(70, 100, 200, 0.9);
  -moz-box-shadow: 0 0 15px rgba(70, 100, 200, 0.9);
  box-shadow: 0 0 15px rgba(70, 100, 200, 0.9);
}

#submitbtn:active {
  -webkit-box-shadow: 0 0 15px rgba(70, 100, 200, 0.9), 0 1px 3px rgba(0,0,0,0.4) inset;
  -moz-box-shadow: 0 0 15px rgba(70, 100, 200, 0.9), 0 1px 3px rgba(0,0,0,0.4) inset;
  box-shadow: 0 0 15px rgba(70, 100, 200, 0.9), 0 1px 3px rgba(0,0,0,0.4) inset;
}

.ngg-custom-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.ngg-custom-gallery img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
