/*

Snapshot Template
http://www.templatemo.com/tm-493-snapshot

*/


/* Body
------------------------------------- */
body {
    background: #ffffff;
    font-family: 'Source Sans Pro', sans-serif;
    font-style: normal;
    font-weight: 300;
    position: relative;
}

html,body {
  width: 100%;
  overflow-x: hidden;
}

html {
  font-size: 100%;
}


/*---------------------------------------
    Typorgraphy
-----------------------------------------*/

h1,h2,h3,h4 {
  font-weight: 300;
}

h1 {
  font-size: 2rem;
  line-height: 3rem;
  letter-spacing: 12px;
  text-transform: uppercase;
  padding-bottom: 8px;
}

h2 {
  color: #169def;
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 4px;
  text-transform: uppercase;
}

h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 4px;
}

p {
  color: #888;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 34px;
}

#home p,
#contact p, footer p {
  color: #f9f9f9;
}

.btn {
  border:none;
  border-radius: 4px;
  transition: all 0.4s ease-in-out;
}

.btn:focus {
  background: #169def;
  border-color: transparent;
}

.btn-success {
  background: #169def;
  font-weight: 300;
  letter-spacing: 2px;
  padding: 14px 32px;
  margin-top: 26px;
}

.btn-success:hover {
  background: #222;
}

a {
  color: #169def;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
  text-decoration: none !important;
}
a:hover, a:active, a:focus {
  color: #169def;
  outline: none;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}



/*---------------------------------------
    All Section style
-----------------------------------------*/

.section-title {
  padding-bottom: 62px;
}

#about .section-title {
  padding-top: 82px;
}

#about .section-title h1 {
  margin-bottom: 0px;
  padding-bottom: 0px;
}

#about,
#gallery,
#contact {
  padding-top: 120px;
  padding-bottom: 120px;
  position: relative;
}

#gallery,
#contact, footer {
  text-align: center;
}

.overlay {
  background: #304352;
  opacity: 0.9;
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  right: 0;
}



/*---------------------------------------
    Pre Loader Style
-----------------------------------------*/

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    background: none repeat scroll 0 0 #fff;
}

.sk-spinner-pulse {
  width: 60px;
  height: 60px;
  background-color: #169def;
  border-radius: 100%;
  margin: 40px auto;
  -webkit-animation: sk-pulseScaleOut 1s infinite ease-in-out;
          animation: sk-pulseScaleOut 1s infinite ease-in-out; }

@-webkit-keyframes sk-pulseScaleOut {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0); }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 0; } }

@keyframes sk-pulseScaleOut {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0); }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 0; } }



/*---------------------------------------
    Main Navigation
-----------------------------------------*/

.navbar-default {
  background: #0d3b66;
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.1);
  border: none;
  margin-bottom: 0px !important;
}

.navbar-default .navbar-brand {
  display: none;
}

.navbar-default .navbar-nav li a {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    padding-right: 22px;
    padding-left: 22px;
}

.navbar-default .navbar-nav li a span {
  position: relative;
  display: block;
  padding-bottom: 2px;
}

.navbar-default .navbar-nav li a span:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ffffff;
  visibility: hidden;
  -webkit-transform: scaleX(0);
  -moz-transform: scaleX(0);
  -ms-transform: scaleX(0);
  -o-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.3s ease-in-out 0s;
  -moz-transition: all 0.3s ease-in-out 0s;
  -ms-transition: all 0.3s ease-in-out 0s;
  -o-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

.navbar-default .navbar-nav li a:hover span:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  -moz-transform: scaleX(1);
  -ms-transform: scaleX(1);
  -o-transform: scaleX(1);
  transform: scaleX(1);
}

.navbar-default .navbar-nav li.active a span:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
  background-color: #ffffff;
}

.navbar-default .navbar-nav > li a:hover {
    color: #ffffff !important;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #ffffff;
    background-color: transparent;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #ffffff;
    background-color: transparent;
}

.navbar-default .navbar-toggle {
     border: none;
     padding-top: 10px;
  }

.navbar-default .navbar-toggle .icon-bar {
    background-color: #ffffff;
  }

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: #0a2f4d;
}

/* Центрирование меню */
.navbar-default .navbar-collapse {
    text-align: center;
}

.navbar-default .navbar-nav {
    display: inline-block;
    float: none;
    vertical-align: top;
}

.navbar-default .navbar-nav > li {
    display: inline-block;
    float: none;
}

@media screen and (max-width: 768px) {

  .navbar-default .navbar-nav li a span:before {
    background: transparent !important;
  }
  .navbar-default .navbar-nav li.active a {
    background: transparent;
    background: none;
    color: #ffffff !important;
  }
  .navbar-default .navbar-nav li.active a span:before {
    visibility: visible;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
  }
}


/*---------------------------------------
    Home Section
-----------------------------------------*/

#home {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
        align-items: center;
  height: 100vh;
  text-align: center;
}

#home h1 {
  color: #ffffff;
}

#home .col-md-8 {
  padding-left: 62px;
}



/*---------------------------------------
    About Section
-----------------------------------------*/

#about {
  background: #f0f0f0;
}

#about .item {
  width: 100%;
  display: block;
}

#about .about-thumb {
  background: #ffffff;
  border-radius: 4px;
  padding: 100px;
  position: relative;
}

#about .about-img img {
  border: 8px solid #ffffff;
  position: absolute;
  left: -120px;
  bottom: -325px;
  padding: 12px;
}

#about .team-thumb {
  width: 100%;
  height: 400px;
  margin: 32px 0;
  text-align: center;
  background: #ffffff;
  border-radius: 4px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

#about .team-thumb .image-holder {
  position: relative;
  top: 40px;
  display: inline-block;
  margin-bottom: 40px;
  padding: 10px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

#about .team-thumb .heading {
  font-weight: bold;
  position: relative;
  top: 10px;
  -webkit-transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#about .team-thumb:hover {
  background: #304352;
}

#about .team-thumb:hover .image-holder {
  top: -40px;
  margin-bottom: 0px;
}

#about .team-thumb:hover .heading {
  top: -10px;
}

#about .team-thumb .description {
  font-size: 18px;
  width: 80%;
  margin: 0 auto;
  opacity: 0;
  -webkit-transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
}

#about .team-thumb:hover .description {
  opacity: 1;
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}

#about .team-thumb:hover p.description {
  color: #ffffff;
}



/*---------------------------------------
    Galllery section
-----------------------------------------*/

#gallery {
  background: #ffffff;
}

#gallery .gallery-thumb {
  background-color: #ffffff;
  box-shadow: 0px 1px 2px 0px rgba(90, 91, 95, 0.15);
  cursor: pointer;
  display: block;
  margin-bottom: 25px;
  position: relative;
  top: 0px;
  transition: all 0.4s ease-in-out;
}

#gallery .gallery-thumb:hover {
  box-shadow: 0px 16px 22px 0px rgba(90, 91, 95, 0.3);
  top: -5px;
}

#gallery .gallery-thumb img {
  border-top-right-radius: 2px;
  border-bottom-left-radius: 2px;
  width: 100%;
}



/*---------------------------------------
    Contact section
-----------------------------------------*/

#contact, footer {
  background: #304352;
  color: #ffffff;
}

#contact .form-control {
  background: transparent;
  box-shadow: none;
  border: 1px solid #f9f9f9;
  color: #ccc;
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 14px;
  transition: all 0.4s ease-in-out;
}

#contact .form-control:focus {
  border-color: #169def;
  color: #ffffff;
}

#contact input {
  height: 55px;
}

#contact input[type="submit"] {
  background: #169def;
  border:none;
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 1px;
}

#contact input[type="submit"]:hover {
  background: #222;
  color: #ffffff;
}



/*---------------------------------------
    Footer section
-----------------------------------------*/

footer {
  padding-bottom: 80px;
}



/*---------------------------------------
    Social icons style
-----------------------------------------*/

.social-icon {
  padding: 0;
  margin: 0;
}

.social-icon li {
  list-style: none;
  display: inline-block;
}

.social-icon li a {
  border-radius: 4px;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 20px;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  margin: 10px 10px 42px 10px;
  padding: 0px;
}

.social-icon li a:hover {
  background: #ffffff;
  color: #169def;
}



/*---------------------------------------
   Back top
-----------------------------------------*/

.go-top {
  background-color: #ffffff;
  box-shadow: 1px 1.732px 12px 0px rgba( 0, 0, 0, .14 ), 1px 1.732px 3px 0px rgba( 0, 0, 0, .12 );
  transition : all 1s ease;
  bottom: 2em;
  right: 2em;
  color: #222;
  font-size: 26px;
  display: none;
  position: fixed;
  text-decoration: none;
  width: 40px;
  height: 40px;
  line-height: 35px;
  text-align: center;
  border-radius: 100%;
}

.go-top:hover {
  background: #169def;
  color: #ffffff;
}



/*---------------------------------------
   Responsive Mobile
-----------------------------------------*/

@media (max-width: 980px) {
  #about .team-thumb {
    margin-top: 32px;
  }
}

@media (max-width: 767px) {

  #home, .overlay {
    height: 100vh;
  }

  #about .about-thumb {
    padding: 32px;
    margin-bottom: 32px;
    text-align: center;
  }

  #about .col-md-3 img {
    position: relative;
    top: 0;
    left: 0;
  }
}

@media (max-width: 650px) {

  h1 {
    font-size: 1.6rem;
  }

  p {
    font-size: 18px;
  }

  img {
    width: 100%;
  }

  #about,
  #gallery,
  #contact {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

.pouring {
    font-size: 40px;
    line-height: 50px;
    font-family: Verdana, sans-serif;
    font-weight: 900;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    text-align: center;
}
.pouring:before {
    content: '';
    position: absolute;
    filter: blur(10px);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    mix-blend-mode: screen;
    background-image: repeating-linear-gradient(-45deg, transparent, transparent 1em, #169def 1em, #6cbced 50%), repeating-linear-gradient(45deg, #6cbced, #6cbced 1em, #f9f9f9 1em, #169def 50%);
    background-size: 3em 3em, 2em 2em;
    animation-name: ani;
    animation-duration: 10s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}
@keyframes ani {
    from { background-position: 0 0; }
    to { background-position: 100% 0; }
}
@media (max-width:690px) {
    .pouring {font-size: 20px;}
}

.particles {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.particles div {
    position: absolute;
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    line-height: 40px;
    color: #FFF;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    animation: neon-1 .1s ease-in-out infinite alternate;
}
@keyframes neon-1 {
    from { text-shadow: 0 0 6px rgba(202, 228, 225, 0.92), 0 0 30px rgba(202, 228, 225, 0.34), 0 0 12px rgba(191, 226, 255, 0.52), 0 0 21px rgba(191, 226, 255, 0.92), 0 0 34px rgba(191, 226, 255, 0.78), 0 0 54px rgba(191, 226, 255, 0.92); }
    to { text-shadow: 0 0 6px rgba(202, 228, 225, 0.98), 0 0 30px rgba(202, 228, 225, 0.42), 0 0 12px rgba(191, 226, 255, 0.58), 0 0 22px rgba(191, 226, 255, 0.84), 0 0 38px rgba(191, 226, 255, 0.88), 0 0 60px #FFF; }
}
.particles canvas {
    width: 100%;
    height: 500px;
    background-image: url('background.jpg');
    background-position: center center;
    background-size: cover;
}

.scale {
    width: 100px;
    transition: 1s;
}
.scale:hover {
    transform: scale(4.2);
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 50px auto;
    padding: 0;
    width: 90%;
    max-width: 550px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    background: #169def;
    color: #fff;
    padding: 20px 25px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.close-modal {
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: #f0f0f0;
    transform: scale(1.1);
}

.close-modal-agro {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 28px;
    color: #fff;
    transition: 0.3s;
}

.close-modal-agro:hover {
    color: #f0f0f0;
    transform: translateY(-50%) scale(1.1);
}

.modal-body {
    padding: 30px 25px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}

.modal-body label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.modal-body input,
.modal-body textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
}

.modal-body input:focus,
.modal-body textarea:focus {
    border-color: #169def;
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 157, 239, 0.1);
}

.modal-body button {
    background: #169def;
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

.modal-body button:hover {
    background: #0d6efd;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 30px auto;
    }
    .modal-header h3 {
        font-size: 20px;
    }
}

/* Центрирование заголовка модального окна */
.modal-header {
    position: relative;
    text-align: center;
    justify-content: center;
    display: flex;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    text-align: center;
    width: 100%;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    transition: 0.3s;
}

.close-modal:hover {
    color: #f0f0f0;
    transform: translateY(-50%) scale(1.1);
}

/* Выравнивание карточек */
#pesok .row {
    display: flex;
    flex-wrap: wrap;
}

#pesok .col-md-4 {
    display: flex;
    flex-direction: column;
}

#pesok .card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

#pesok .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

#pesok .card-text {
    flex: 1;
    margin-bottom: 15px;
}

#pesok .order-btn {
    width: 100%;
    text-align: center;
    white-space: nowrap;
    padding: 10px 15px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    #pesok .card {
        min-height: 520px;
    }
}

@media (max-width: 767px) and (min-width: 576px) {
    #pesok .card {
        min-height: 480px;
    }
}

@media (max-width: 575px) {
    #pesok .card {
        min-height: auto;
    }
    #pesok .order-btn {
        white-space: normal;
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

#delivery-agro .row {
    display: flex;
    flex-wrap: wrap;
}

#delivery-agro .col-md-4 {
    display: flex;
    flex-direction: column;
}

#delivery-agro .card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

#delivery-agro .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

#delivery-agro .card-text {
    flex: 1;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    #delivery-agro {
        padding: 60px 0;
    }
    #delivery-agro .display-4 {
        font-size: 1.8rem;
    }
    #delivery-agro .lead {
        font-size: 1rem;
    }
}

/* Фиксация крестиков */
#orderModal .modal-header,
#orderModalAgro .modal-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
}

#orderModal .close-modal,
#orderModalAgro .close-modal-agro {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px;
    line-height: 1;
}

#orderModal .close-modal:hover,
#orderModalAgro .close-modal-agro:hover {
    transform: translateY(-50%) scale(1.2);
    color: #f0f0f0;
}

/* Мобильная адаптация форм */
@media (max-width: 576px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
        border-radius: 15px;
    }
    .modal-header {
        padding: 15px 20px;
        min-height: 60px;
    }
    .modal-header h3 {
        font-size: 18px !important;
    }
    .modal-body {
        padding: 20px 15px;
    }
    .modal-body input,
    .modal-body select,
    .modal-body textarea {
        padding: 14px 12px;
        font-size: 16px;
    }
    .modal-body button {
        padding: 16px 20px;
        font-size: 18px;
        margin-top: 10px;
    }
    .modal-body .form-group {
        margin-bottom: 18px;
    }
    .close-modal,
    .close-modal-agro {
        font-size: 36px !important;
        padding: 10px !important;
        right: 15px !important;
        top: 50% !important;
    }
}

@media (max-width: 400px) {
    .modal-header h3 {
        font-size: 16px !important;
    }
    .modal-body {
        padding: 15px 12px;
    }
    .modal-body input,
    .modal-body select,
    .modal-body textarea {
        padding: 12px 10px;
        font-size: 15px;
    }
    .modal-body button {
        padding: 14px 16px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .modal-body label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    .modal-body input::placeholder,
    .modal-body textarea::placeholder,
    .modal-body select {
        font-size: 14px;
    }
    .modal {
        -webkit-overflow-scrolling: touch;
    }
}

/* Мобильная версия */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    #home {
        height: auto;
        min-height: 100vh;
        padding: 100px 0;
    }
    #home font[size="20"] {
        font-size: 28px !important;
    }
    #home p {
        font-size: 16px !important;
        line-height: 1.5;
        padding: 0 10px;
    }
    .col-sm-6 {
        width: 100%;
        margin-bottom: 25px;
    }
    .display-4 {
        font-size: 1.8rem !important;
    }
    .lead {
        font-size: 1rem !important;
    }
    .card {
        min-height: auto !important;
    }
    .card-title {
        font-size: 1.3rem !important;
    }
    .card-text {
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
    }
    .order-btn,
    .order-btn-agro {
        width: 100% !important;
        text-align: center;
        white-space: normal !important;
        padding: 12px 10px !important;
        font-size: 0.9rem !important;
    }
    #uslugi, #pesok, #delivery-agro, #contact {
        padding: 50px 0 !important;
    }
    #contact h1 {
        font-size: 1.6rem;
    }
    #contact p {
        font-size: 16px;
        line-height: 1.4;
    }
    #contact font[size="6"] {
        font-size: 20px !important;
    }
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 768px) {
    .vegas-background {
        opacity: 0 !important;
    }
    #home {
        background-color: #304352 !important;
    }
}

/* Убираем анимацию заголовка на мобильных */
@media (max-width: 768px) {
    .pouring {
        animation: none !important;
        background: none !important;
    }
    .pouring:before {
        display: none !important;
    }
    .pouring {
        background: transparent !important;
        background-image: none !important;
    }
}

/* Уменьшаем заголовок на мобильных */
@media (max-width: 768px) {
    #home .pouring {
        font-size: 22px !important;
        white-space: nowrap !important;
        background: transparent !important;
        animation: none !important;
    }
    #home .pouring:before {
        display: none !important;
    }
}

@media (max-width: 480px) {
    #home .pouring {
        font-size: 18px !important;
    }
}

@media (max-width: 380px) {
    #home .pouring {
        font-size: 16px !important;
    }
}

/* Растягиваем описание грузов на мобильных */
@media (max-width: 768px) {
    .justify-goods {
        text-align: justify !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        display: block !important;
    }
}

/* Футер */
#contact p:last-child {
    margin-bottom: 0;
}

footer p {
    margin-top: 20px;
}

footer {
    padding: 20px 0;
    margin: 0;
}

footer .container {
    padding: 0;
    margin: 0;
}

footer p {
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

footer .yandex-metric {
    margin-top: 0;
    line-height: 0;
}

/* Центрирование футера */
footer,
footer .container,
footer .row,
footer .col-md-12,
footer p,
footer .yandex-metric {
    text-align: center !important;
}

footer p {
    margin-bottom: 0 !important;
}

footer .yandex-metric {
    margin-top: 5px !important;
    line-height: 0 !important;
}

footer {
    text-align: center !important;
    width: 100% !important;
}

footer .container {
    text-align: center !important;
    width: 100% !important;
}

footer .row {
    text-align: center !important;
    width: 100% !important;
}

footer .col-md-12 {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
}

footer p {
    text-align: center !important;
    margin: 0 auto !important;
    display: inline-block !important;
    width: auto !important;
}

footer .yandex-metric {
    text-align: center !important;
    margin-top: 5px !important;
    display: block !important;
    width: 100% !important;
}

/* Убираем отступ между самосвалами и копирайтом */
#contact {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

#contact p:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

footer {
    margin-top: 0 !important;
    padding-top: 15px !important;
}

footer p {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Центрирование текста на мобильных */
@media (max-width: 768px) {
    #home .col-md-offset-1.col-md-10.col-sm-12 {
        text-align: center !important;
    }
    #home font[size="5"] {
        display: inline-block !important;
        text-align: center !important;
        width: 100% !important;
    }
    #home p {
        text-align: center !important;
    }
}

/* Эффект увеличения кнопки */
.order-btn,
.order-btn-agro {
    transition: transform 0.3s ease, background 0.3s ease !important;
}

.order-btn:hover,
.order-btn-agro:hover {
    transform: scale(1.05) !important;
    background: #0d6efd !important;
}

@media (max-width: 768px) {
    .order-btn:hover,
    .order-btn-agro:hover {
        transform: scale(1) !important;
    }
}

/* Прокрутка */
html {
    scroll-padding-top: 90px;
}

.nav a.active span:before {
    visibility: visible !important;
    transform: scaleX(1) !important;
    background-color: #ffffff !important;
}

#contact {
    scroll-margin-top: 90px;
}