/*
 Theme Name:   Latrade
 Theme URI:    https://latrade.by/
 Description:  Дочерняя тема для GeneratePress
 Author:       Javadimus
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 Text Domain:  latrade
*/
@font-face {
  font-family: "Flaticon";
  src: url("./assets/fonts/Flaticon.eot");
  src:
    url("./assets/fonts/Flaticon.eot?#iefix") format("embedded-opentype"),
    url("./assets/fonts/Flaticon.woff") format("woff"),
    url("./assets/fonts/Flaticon.ttf") format("truetype"),
    url("./assets/fonts/Flaticon.svg#Flaticon") format("svg");
  font-weight: normal;
  font-style: normal;
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
  @font-face {
    font-family: "Flaticon";
    src: url("./assets/fonts/Flaticon.svg#Flaticon") format("svg");
  }
}
body {
  background-color: #e7e9e8;
}
[class^="flaticon-"]:before,
[class*=" flaticon-"]:before,
[class^="flaticon-"]:after,
[class*=" flaticon-"]:after {
  font-family: Flaticon;
  font-style: normal;
  color: #238bff;
  font-size: 25px;
  position: absolute;
  top: -10px;
  left: -5px;
}
[class^="flaticon-"] {
  position: relative;
}
.flaticon-angle-arrow-pointing-to-right:before {
  content: "\f100";
}
.flaticon-arrows:before {
  content: "\f101";
}
.flaticon-arrows-1:before {
  content: "\f102";
}
.flaticon-arrows-2:before {
  content: "\f103";
}
.flaticon-close-button:before {
  content: "\f104";
}
.flaticon-dates:before {
  content: "\f105";
}
.flaticon-down-arrow:before {
  content: "\f106";
}
.flaticon-down-arrow-1:before {
  content: "\f107";
}
.flaticon-location-marker:before {
  content: "\f108";
}
.flaticon-search:before {
  content: "\f109";
}
.flaticon-symbol:before {
  content: "\f10a";
}
.flaticon-technology:before {
  content: "\f10b";
}
.flaticon-technology-1:before {
  content: "\f10c";
}
.flaticon-technology-2:before {
  content: "\f10d";
}
.flaticon-web:before {
  content: "\f10e";
}
.flaticon-zoom-in:before {
  content: "\f10f";
}
.flaticon-alert:before {
  content: "\f1000";
}
.top-bar {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 20%, #0f3460 100%);
  box-shadow: 0 4px 25px rgba(35, 139, 255, 0.3);
  border-bottom: 1px solid #238bff;
}
.site-info {
  background: linear-gradient(0deg, #1a1a2e 0%, #16213e 20%, #0f3460 100%);
  box-shadow: 0 4px 25px rgba(35, 139, 255, 0.3);
  border-top: 1px solid #238bff;
  color: #a6b8c8;
}
.top-bar p,
.top-bar .wp-block-columns-is-layout-flex {
  margin-bottom: 0;
}
.top-bar p {
  padding-left: 30px;
}
.inside-top-bar .wp-block-columns .wp-block-column {
  flex-basis: auto;
  align-content: center;
}
.wp-block-button a.wp-block-button__link {
  color: #ffffff;
  background-color: #238bff;
  border: 1px solid #238bff;
  padding: 5px 10px;
  text-transform: uppercase;
}
.wp-block-button a.wp-block-button__link:hover {
  background-color: #112e55;
}
.inside-top-bar .wp-block-columns .wp-block-column {
  position: relative;
}
.inside-top-bar {
  padding: 5px 40px;
}
.top-bar a {
  text-decoration: none;
}
.top-bar a:hover {
  color: #238bff;
}
.footer-widgets a {
  color: #7d8694;
  text-decoration: none;
}
.footer-widgets a:hover {
  color: #238bff;
}
.footer-widget-2 {
  border-left: 1px solid #7d8694;
  border-right: 1px solid #7d8694;
}
.footer-title,
.footer-menu a {
  color: #ffffff;
}
.footer-menu-catalog a {
  color: #a6b8c8;
}
.footer-widgets .flaticon-technology,
.footer-widgets .flaticon-technology-1,
.footer-widgets .flaticon-symbol,
.footer-widgets .flaticon-location-marker {
  padding-left: 20px;
  color: #a6b8c8;
}
.footer-widgets .flaticon-technology:before,
.footer-widgets .flaticon-technology-1:before,
.footer-widgets .flaticon-symbol:before,
.footer-widgets .flaticon-location-marker:before {
  font-size: 20px;
  top: -5px;
}
.footer-contacts p {
  margin-bottom: 10px;
}
.footer-contacts a {
  color: #a6b8c8;
}
.site.grid-container {
  min-height: 500px;
}
.widget-area .widget {
  margin: 20px 0;
  padding: 0;
}
.widget_nav_menu h2,
.is-left-sidebar .wp-block-details summary {
  list-style-type: none;
  font-size: 18px;
  background-color: #33373d;
  color: white;
  padding: 15px;
  margin: 0;
}
.is-left-sidebar .wp-block-details p {
  padding: 0;
}
.is-left-sidebar .wp-block-details p a,
.menu-katalog-container li > a {
  display: inline-block;
  box-sizing: border-box;
  padding: 15px;
  text-decoration: none;
  color: #33373d;
  width: 100%;
}
.is-left-sidebar .wp-block-details p a:hover,
.menu-katalog-container li > a:hover {
  background-color: #a6b8c8;
}
.menu-katalog-container {
  padding: 0;
}
.menu-katalog-container ul li {
  margin-bottom: 0;
}
.menu-katalog-container li.menu-item-has-children > a {
  position: relative;
}
.menu-katalog-container li.menu-item-has-children > a > span {
  position: absolute;
  display: block;
  right: 0;
  top: 0;
  transition: all 0.1s ease-out;
}
.menu-katalog-container li.menu-item-has-children > a > span:before {
  content: "\f102";
  font-family: Flaticon;
  font-style: normal;
  line-height: 50px;
  color: #238bff;
  padding: 20px;
}
.menu-katalog-container li.menu-item-has-children.current-menu-item > a > span {
  transform: rotate(90deg);
}
.menu-katalog-container
  li.menu-item-has-children.current-menu-item
  > a
  > span:before {
  color: #fff;
}

.menu-katalog-container li .sub-menu {
  background: #6d7581;
  margin: 0 10px;
}
.menu-katalog-container li .sub-menu a {
  color: #fff;
}
.menu-katalog-container li.menu-item-has-children.current-menu-item > a {
  background: #238bff;
  color: #ffffff;
  border-bottom-color: #238bff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.site-main {
  padding: 0 15px;
}
.rank-math-breadcrumb {
  color: #6e6e6e;
  font-size: 12px;
}
.rank-math-breadcrumb a {
  color: #6e6e6e;
}
.rank-math-breadcrumb a:hover {
  color: #238bff;
}
.rank-math-breadcrumb p {
  margin-bottom: 10px;
}
.inside-article-text h1,
.inside-products-text h1,
.entry-page-title {
  color: #363b41;
  font-weight: 500;
  font-size: 20px;
  padding: 10px 0;
  border-bottom: 1px solid #b8b8b8;
}
.swiper {
  width: 100%;
  height: 350px;
  margin-bottom: 15px;
}
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swiper-pagination-bullet {
  width: 15px;
  height: 15px;
  background: #fff;
  border: 1px solid #238bff;
}
.main-cat .wp-block-heading,
.catalog-card__title {
  position: relative;
  margin-bottom: 0;
  line-height: normal;
}

.catalog-card__title a:hover,
.main-cat .wp-block-heading a:hover {
  color: #238bff;
}

.catalog-card__title a,
.main-cat .wp-block-heading a {
  font-size: 18px;
  color: #363b41;
  font-weight: 500;
  margin: 12px 0 4px;
  display: inline-block;
  text-transform: uppercase;
  text-decoration: none;
}
.catalog-card__title:hover::after,
.main-cat .wp-block-heading:hover::after {
  right: -10px;
  color: #238bff;
  transition: all 0.3s;
  opacity: 1;
}
.catalog-card__title::after,
.main-cat .wp-block-heading::after {
  content: "\f101";
  font-family: Flaticon;
  font-style: normal;
  position: absolute;
  right: -16px;
  font-size: 15px;
  top: 20px;
  opacity: 0;
  transition: all 0.3s;
}
.main-cat p {
  font-size: 14px;
}
ul {
  list-style-type: none;
  margin-left: 0;
}

article ul.wp-block-list > li:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #238bff;
  margin-right: 17px;
  border-radius: 50%;
  position: relative;
  top: -2px;
}
.main-cat .wp-block-heading {
  margin-bottom: 0;
}
.page-standards .wp-block-column {
  padding: 15px;
}
.page-standards .wp-block-group a:hover {
  color: #238bff;
}
.page-standards .wp-block-heading {
  margin-bottom: 15px;
}
.contact-address {
  padding-left: 35px;
  position: relative;
}
.contact-address span {
  font-size: 14px;
  color: #7d8694;
}
.contact-address a:hover {
  color: #238bff;
}
.contact-address:before {
  top: 0;
}
.contact-address.flaticon-dates:before {
  top: -10px;
}
.widget_nav_menu .current-menu-item > a {
  background-color: #a6b8c8;
}
.widget_nav_menu .menu-item-20 > a,
.widget_nav_menu .menu-item-21 > a,
.widget_nav_menu .menu-item-22 > a {
  text-transform: uppercase;
  border-bottom: 1px solid #e7e9e8;
}
.inside-products-text {
  background-color: #fff;
  padding: 20px;
}
.product-header p {
  margin-bottom: 0;
}
article .wp-block-button__link.wp-element-button {
  margin: 20px 0;
}
.wp-block-table table {
  border: 1px solid #b2d7ff;
  border-spacing: 0 0;
}
.wp-block-table table tr:first-child {
  color: #33373d;
  background: #d7e4f2;
  font-size: 16px;
  font-weight: 500;
  height: 50px;
}
.wp-block-table table td {
  padding: 5px 10px;
  border-bottom: 1px solid #b2d7ff;
}
.wp-block-table table tr:first-child td:nth-child(2n) {
  background: #d7e4f2;
}
.wp-block-table table tr {
  min-height: 50px;
}
.wp-block-table td,
.wp-block-table th {
  border: 0;
}
.wp-block-table table td:nth-child(2n) {
  background: #f0f4f8;
}
.wp-block-button__link.wp-element-button:hover {
  background-color: #238bff;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
  z-index: 1000;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  border-radius: 10px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  position: relative;
  transform: scale(0.7);
  transition: transform 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #999;
  transition: color 0.3s;
  line-height: 1;
}

.modal-close:hover {
  color: #333;
}

/* Заголовок */
.modal-content h2 {
  margin-bottom: 20px;
  color: #333;
  font-size: 24px;
}

/* Форма */
.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
}

.modal-form textarea {
  resize: vertical;
  min-height: 100px;
}

.modal-form button[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.evf-submit {
  margin: 20px auto 0;
  width: 100%;
}
.modal-form button[type="submit"]:hover {
  background-color: #0056b3;
}

.katalog-general .product-grid {
  display: flex;
  flex-wrap: wrap;
  margin-top: 20px;
  gap: 20px;
}

.katalog-general .catalog-card {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
}

.sub-menu {
  display: none;
}

.calc-wrapper {
  position: fixed;
  bottom: 0;
  z-index: 100;
  right: 70px;
  height: 40px;
  font-size: 16px;
  box-shadow: 0 7px 20px rgba(54, 59, 65, 0.7);
  width: 340px;
}
#calc-header {
  height: 40px;
  background: #238bff;
  color: #ffffff;
  padding: 10px 20px;
  width: 340px;
  cursor: pointer;
}
#calc-header:before {
  content: "\f10d";
  font-family: Flaticon;
  margin-right: 12px;
}
#calc-header:after {
  content: "\f107";
  font-family: Flaticon;
  margin-left: 25px;
  font-size: 17px;
  position: absolute;
}
#calc-content {
  background: #ffffff;
  padding: 20px;
  color: #33373d;
}
.results {
  color: #238bff;
}
.calc-submit {
  width: 100%;
  border: none;
  background: #363b41;
  color: #ffffff;
  height: 38px;
  margin-top: 15px;
  cursor: pointer;
}
.calc-select {
  width: 100%;
  height: 34px;
  background: #e2e3e6;
  border: none;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.25);
  border-radius: 3px;
  outline: none;
  margin-bottom: 12px;
  padding: 7px;
}
.dinamic {
  display: none;
}
.dinamic.on_calc {
  display: block;
}
.generate-back-to-top {
  bottom: 90px;
  right: 70px;
}
.nav-links {
  margin: 40px 0;
}
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.3s ease;
}

.nav-links a.page-numbers:hover {
  background: #238bff;
}

.nav-links .page-numbers.current {
  background: #238bff;
}

.nav-links a.next,
.nav-links a.prev {
  padding: 0 16px;
  width: auto;
  border-radius: 0;
}

.nav-links a.next:hover,
.nav-links a.prev:hover {
  background: #238bff;
}
.main-prev-section img {
  object-fit: cover;
}
.sub-menu li {
  border-bottom: 1px solid #ccc;
}
#moove_gdpr_cookie_modal
  .moove-gdpr-modal-content.logo-position-left
  .moove-gdpr-company-logo-holder {
  text-align: center !important;
}
ul.catalog-card__subcategories {
  list-style: disc;
  padding-left: 20px;
}
ul.catalog-card__subcategories li {
  margin-bottom: 10px;
  font-size: 14px;
}
ul.catalog-card__subcategories li a {
  text-decoration: none;
  color: inherit;
}
.entry-title a:hover,
ul.catalog-card__subcategories li a:hover {
  color: #238bff;
}
.entry-link a:hover {
  background-color: #238bff;
}
.entry-title a {
  font-size: 24px;
}

.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.one-container .container,
.separate-containers .paging-navigation,
.inside-page-header {
  background-color: #fff;
  padding: 20px;
}
.post-image img {
  width: 100%;
  object-fit: cover;
}
.entry-link {
  text-align: right;
}
.entry-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.3s ease;
  padding: 20px;
  margin-top: 20px;
}
.menu-katalog-container ul.menu > li > a {text-transform: uppercase;}
.search-results .post-image {
    max-width: 400px;
    margin: 0 auto;
}
@media only screen and (max-width: 992px) {
  .separate-containers .site-main {
    margin: 20px 0;
  }
  .swiper {
    height: 200px;
  }
  .swiper-slide img {
    width: 100%;
    max-height: 200px;
    height: 100%;
  }
  .top-bar .wp-block-columns-is-layout-flex {
    margin-bottom: 0;
  }
  .inside-top-bar {
    padding: 5px 15px;
  }
  .footer-widgets-container {
    padding: 30px 15px;
  }
  .inside-header,
  .inside-site-info {
    padding: 20px 15px;
  }
  .top-bar .inside-top-bar > .widget {
    margin: 10px 0 0 0;
  }
  .main-cat {
    text-align: center;
  }
  .section-benefits,
  .is-left-sidebar.sidebar,
  .is-right-sidebar.sidebar {
    padding: 15px;
  }
  .calc-wrapper {
    right: 0;
  }
  .section-benefits {
    width: inherit !important;
  }
  .generate-back-to-top {
    right: 15px;
  }
  .footer-widget-2 {
    border: 0;
  }
}
@media only screen and (max-width: 768px) {
  .top-bar .mobile-hidden {
    display: none;
  }
  .top-bar .inside-top-bar {
    justify-content: space-between;
  }
}
