body {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #484848;
}

.flex-row {
    display: flex;
}

.btn-secondary {
    background-color: #f6f6f6;
    border-color: #f6f6f6;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1340px;
    }
}

header {
    z-index: 2;
    position: relative;
}

#header-top .container {
    padding-top: 20px;
    padding-bottom: 20px;
}

header .contact-us {
    margin: -10px 0;
    padding: 10px 40px 10px 20px;
    display: flex;
    flex-flow: column;
    justify-content: center;
}

header .contact-us p,
header .contact-us address {
    margin: 0;
    line-height: 20px;
    font-size: 14px;
}

header .contact-us:not(:last-child) {
    border-right: 1px solid #e7f0f8;
}

header .contact-us .title {
    font-size: 15px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

header .contact-us a {
    color: inherit;
}

#header-nav {
    background-color: #f2f2f2;
}

.nav a {
    padding: 18px;
    text-transform: uppercase;
    font-weight: bold;
    color: #555555;
    text-decoration: none;
    letter-spacing: 1px;
    display: block;
    white-space: nowrap;
}

#header-nav a.lang {
    padding: 3px 15px;
    border: 2px solid white;
    margin: 0 0 0 5px;
    border-radius: 3px;
}

#header-nav li.active a.lang,
#header-nav a.lang:hover {
    background-color: white;
}

#header-nav li.active a.lang {
    pointer-events: none;
}

#header-nav .flex-row {
    align-items: center;
}

#header-nav .active > a,
#header-nav a:hover,
.railroad-point-info h2,
header .contact-us .title,
.btn-secondary,
#header-nav li.active > a.lang,
#header-nav a.lang:hover,
.color-primary {
    color: #0f6cba;
}

#railroad {
    position: relative;
}

.nav li {
    position: relative;
}

.nav li.parent:after {
    position: absolute;
    bottom: -20px;
    left: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent #f2f2f2 transparent;
    content: "";
    margin-left: -10px;
    padding: 0 0 0 0;
    display: none;
}

.nav li.parent > a:after {
    content: "\e996";
    font-family: 'icomoon' !important;
    font-size: 14px;
    margin-left: 4px;
}

.nav li.parent:hover:after,
.nav li.parent:hover > nav {
    display: block;
}

.nav > li > nav {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
}

.nav > li > nav > .nav {
    margin: 20px 0 0 0;
    background-color: #f2f2f2;
}

.nav > li > nav > .nav > li {
    flex: 1;
}

.nav > li > nav > .nav > li a {
    padding-top: 6px;
    padding-bottom: 6px;
    font-weight: normal;
}

.nav > li > nav > .nav > li:first-child a {
    padding-top: 15px;
}

.nav > li > nav > .nav > li:last-child a {
    padding-bottom: 15px;
}

.nav > li > nav > .nav > li > a {
    display: flex;
    flex-flow: row;
    align-items: center;
    text-decoration: underline;
    text-transform: initial;
}

.nav > li > nav > .nav > li > a:before {
    content: "";
    width: 7px;
    min-width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #cecece;
    display: block;
    margin-right: 10px;
}

.nav > li > nav > .nav > li.active > a:before,
.nav > li > nav > .nav > li > a:hover:before {
    background-color: #007bff;
}

.railroad-bg {
    z-index: 0;
}

.railroad-bg img {
    max-width: 100%;
}

.railroad {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    padding-top: 90px;
}

.railroad ul {
    margin: 0;
    padding: 20px 0 0 0;
    list-style-type: none;
    border-top: 4px solid rgba(255, 255, 255, 0.3);
}

.railroad .flex-row {
    justify-content: center;
}

.railroad .btn-secondary {
    text-transform: uppercase;
    font-weight: bold;
    padding: 5px 20px;
}

.railroad-point {
    position: relative;
    padding: 0 20px 0 10px;
    margin: 15px 0 0 40px;
    display: flex;
    flex-flow: column;
    max-width: 310px;
    width: 100%;
    border-left: 4px solid #0f6cba;
}

.railroad-point:before {
    content: "";
    position: absolute;
    top: -44px;
    left: -42px;
    border: 4px solid #0f6cba;
    border-radius: 50%;
    width: 14px;
    height: 14px;
}

.railroad-point:after {
    content: "";
    position: absolute;
    top: -28px;
    left: -16px;
    width: 4px;
    height: 35px;
    background-color: #0f6cba;
    transform: rotate(-45deg);
}

.railroad-point-info {
    background-color: white;
    padding: 30px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: space-between;
    border-radius: 3px;
}

.railroad-point-info h2 {
    font-size: 20px;
    text-transform: uppercase;
    font-weight: bold;
    margin: 0 0 20px 0;
}

.railroad-point-info p {
    font-size: 14px;
    opacity: 0.8;
}

#products-railroad {
    position: relative;
    min-height: 400px;
}

#products-railroad .railroad {
    padding-top: 50px;
}

#products-railroad .railroad-point-info {
    background-color: #f6f6f6;
}

#products-railroad .railroad ul {
    border-color: #f6f6f6;
}

#products-description {
    max-width: 1000px;
    font-size: 18px;
    padding-bottom: 100px;
}

article a {
    text-decoration: underline;
}

.h1, h1 {
    display: block;
    text-align: center;
    margin: 80px 0 40px 0;
    font-size: 2.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.h1:after, h1:after {
    width: 90px;
    height: 8px;
    background-color: #f6f6f6;
    content: "";
    display: block;
    margin: 20px auto 0 auto;
}

.pageheader-bg {
    position: relative;
    background: url('../img/pageheader-bg.jpg') center center / 100% auto no-repeat;
    margin: 0 0 40px 0;
    padding: 45px 20px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pageheader-bg:after {
    opacity: 0.8;
}

.product {
    padding: 0 0 80px 0;
}

.product-nav {
    min-width: 300px;
    width: 300px;
    border: 1px solid #f2f2f2;
    padding: 10px 20px;
    margin-right: 20px;
    align-self: flex-start;
}

.product-nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.product-nav ul a {
    display: flex;
    flex-flow: row;
    align-items: center;
    text-decoration: underline;
    font-size: 18px;
    padding: 10px 10px 10px 0;
    color: inherit;
}

.product-nav ul li.active > a,
.product-nav ul li a:hover {
    color: #0f6cba;
    font-weight: bold;
}

.product-nav ul a:before {
    content: "";
    display: block;
    margin-right: 10px;
    border-radius: 50%;
    width: 6px;
    height: 6px;
    background-color: #dadada;
}

.product-nav ul li.active > a:before,
.product-nav ul li a:hover:before {
    background-color: #0f6cba;
}

.product-nav ul li ul {
    margin-left: 15px;
}

.product-nav ul li ul li {

}

.product-nav ul li ul li a {
    padding: 2px 0;
    font-size: 13px;
}

.product-nav ul li.active ul {
    display: none;
}

.product-nav-n-description,
.product-sub-category {
    margin-bottom: 40px;
}

.product-nav-n-description .product-description {
    flex-grow: 1;
}

.product-nav-n-description > div:last-child {
    flex-grow: 1;
}

.product-sub-category h2 {
    color: #0f6cba;
    display: block;
    margin: 0 0 25px 0;
    text-align: center;
}

.product-sub-category-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.product-image-wrap {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
    width: 100%;
}

.product-image {
    margin-bottom: 30px;
}

.product-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -ms-interpolation-mode: bicubic;
}

.product-image.horizontal img {
    height: 100%;
    width: auto;
}

.product-image.vertical img {
    width: 100%;
    height: auto;
}

.hamer-europe {
    display: block;
}

.hamer-europe img {
    width: 100%;
    margin-top: 40px;
    display: block;
}

#about-us {
    max-width: 1100px;
    margin: 0 auto;
}

main {
    min-height: calc(100vh - 359px);
    overflow: hidden;
    z-index: 1;
}

footer {
    background-color: #0f6cba;
    color: white;
}

footer .flex-row {
    align-items: center;
}

footer .flex-row > div:first-child {
    width: 60px;
    text-align: center;
}

footer .flex-row > div:first-child img {
    max-width: 50px;
}

footer .container {
    padding-top: 50px;
    padding-bottom: 50px;
}

footer h3 {
    text-transform: uppercase;
    font-size: 16px;
    font-weight: bold;
}

footer p {
    opacity: 0.6;
    margin-bottom: 0;
}

footer img {
    margin: 0 15px 0 0;
}

.product-inner-nav {
    margin: 40px -15px 25px -15px;
}

.product-inner-nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    width: 100%;
}

.product-inner-nav a {
    display: block;
    margin: 0 0 10px 0;
    border: 1px solid #0f6cba;
    color: #0f6cba;
    border-bottom-width: 2px;
    padding: 10px;
    text-align: center;
    border-radius: 3px;
}

.product-inner-nav a:hover {
    background-color: #0f6cba;
    color: white;
    text-decoration: none;
}

/* Kolejnice skladem */

.stock-rail .product-nav-n-description > div:last-child {
    min-width: 0;
}

.stock-rail-intro {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
}

.stock-rail-intro > div {
    flex: 1 1 50%;
    min-width: 0;
}

.stock-rail-intro > div:first-child {
    padding-right: 40px;
}

.stock-rail-subtitle {
    color: #0f6cba;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.stock-rail-lead {
    font-size: 18px;
    margin-bottom: 25px;
}

.stock-rail-photo {
    display: block;
}

.stock-rail-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
}

.stock-rail-photo-caption {
    font-size: 14px;
    opacity: 0.7;
    margin: 8px 0 0 0;
}

.stock-rail-facts {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px 25px -5px;
    padding: 0;
    list-style-type: none;
}

.stock-rail-facts li {
    flex: 1 1 calc(50% - 10px);
    margin: 0 5px 10px 5px;
    padding: 12px 10px;
    background-color: #f6f6f6;
    border-bottom: 3px solid #0f6cba;
    border-radius: 3px;
    text-align: center;
}

.stock-rail-facts strong {
    display: block;
    font-size: 20px;
    color: #0f6cba;
    white-space: nowrap;
}

.stock-rail-facts span {
    font-size: 13px;
    text-transform: uppercase;
    opacity: 0.8;
}

.btn-stock {
    display: inline-block;
    background-color: #0f6cba;
    border: 2px solid #0f6cba;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 25px;
    border-radius: 3px;
}

.btn-stock:hover {
    background-color: white;
    color: #0f6cba;
    text-decoration: none;
}

.stock-rail-table {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 15px auto;
    border-collapse: collapse;
}

.stock-rail-table th,
.stock-rail-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #e7e7e7;
}

.stock-rail-table thead th {
    background-color: #0f6cba;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.stock-rail-table tbody tr:nth-child(even) {
    background-color: #f6f6f6;
}

.stock-rail-table td:last-child {
    font-weight: bold;
}

.stock-gallery .product-image-wrap {
    padding-top: 66%;
}

.stock-rail-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    list-style-type: none;
}

.stock-rail-list li {
    position: relative;
    padding: 0 0 12px 25px;
}

.stock-rail-list li:before {
    content: "";
    position: absolute;
    top: 9px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #0f6cba;
}

.stock-rail-list strong {
    color: #333333;
}

.stock-rail-boxes {
    display: flex;
    margin: 0 -15px 40px -15px;
}

.stock-rail-boxes > div {
    flex: 1 1 50%;
    margin: 0 15px;
    padding: 30px;
    background-color: #f6f6f6;
    border-radius: 3px;
}

.stock-rail-boxes h2 {
    color: #0f6cba;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.stock-rail-boxes .stock-rail-list li {
    padding-bottom: 8px;
}

.stock-rail-faq {
    max-width: 900px;
    margin: 0 auto;
}

.stock-rail-faq dt {
    color: #333333;
    padding-top: 15px;
    border-top: 1px solid #e7e7e7;
}

.stock-rail-faq dd {
    margin-bottom: 15px;
}

.stock-contact {
    background-color: #0f6cba;
    color: white;
    text-align: center;
    padding: 40px 30px;
    border-radius: 3px;
    margin-bottom: 40px;
}

.stock-contact h2 {
    color: white !important;
    font-size: 1.8rem;
    margin: 0 0 15px 0;
}

.stock-contact p {
    max-width: 700px;
    margin: 0 auto 25px auto;
    opacity: 0.9;
}

.stock-contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.stock-contact-links a {
    display: flex;
    flex-flow: column;
    margin: 0 10px 10px 10px;
    padding: 12px 30px;
    min-width: 260px;
    border: 2px solid white;
    border-radius: 3px;
    color: white;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
}

.stock-contact-links a span {
    font-size: 13px;
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.stock-contact-links a:hover {
    background-color: white;
    color: #0f6cba;
}

.stock-cards {
    display: flex;
    margin: 0 -15px 40px -15px;
}

.stock-card {
    flex: 1 1 50%;
    display: flex;
    flex-flow: column;
    margin: 0 15px;
    border: 1px solid #e7e7e7;
    border-bottom: 3px solid #0f6cba;
    border-radius: 3px;
    color: inherit;
    overflow: hidden;
}

.stock-card:hover {
    color: inherit;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stock-card img {
    display: block;
    width: 100%;
    height: auto;
}

.stock-card-body {
    flex: 1;
    display: flex;
    flex-flow: column;
    padding: 25px 30px 30px 30px;
}

.stock-card-body h2 {
    color: #0f6cba;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.stock-card-body .stock-rail-subtitle {
    color: inherit;
    opacity: 0.7;
    font-size: 14px;
}

.stock-card-body > p {
    flex: 1;
}

.stock-card-body .btn-stock {
    align-self: flex-start;
}

.stock-card:hover .btn-stock {
    background-color: white;
    color: #0f6cba;
}

.stock-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 18px;
}
