/*----------GLOBAL----------*/

html {
  font-size: 62.5%;
}

body {
  font-size: 1.6rem;
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.35;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 100%;
  overflow-x: hidden;
}

:root {
  --primary: #1276cb;
  --dark-primary: #00299e;
  --accent: #c40969;
  --dark-accent: #a40054;
  --font-grey: #5c6b86;
  --light-bg: #eff3f9;
  --lines: #dbe2ef;
  --dark-bg: #24292c;
}

img {
  max-width: 100%;
}

.h2,
h2 {
  position: relative;
  font-size: 3rem;
  font-weight: 700;
  padding-bottom: 1.5rem;
  margin-bottom: 6rem;
  text-align: center;
  text-transform: uppercase;
}

.h2:before,
h2:before {
  content: "";
  width: 6%;
  height: 3px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
}

.h3,
h3 {
  font-size: 1.95rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s;
}

a:hover,
a:focus,
a:active {
  color: var(--accent);
}

p {
  margin: 0 0 1.5rem;
}

section {
  padding: 6rem 0;
}

.wrapper {
  max-width: 140rem;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.9rem;
  border-radius: 30px;
  font-size: 1.3rem;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.btn--empty {
  color: var(--primary);
  border-color: var(--primary);
  background: transparent;
}

.btn--empty:hover,
.btn--empty:focus,
.btn--empty:active {
  background: var(--primary);
  color: #fff;
}

.btn--accent {
  color: #fff;
  background: var(--accent);
}

.btn--accent:hover,
.btn--accent:active,
.btn--accent:focus {
  background: var(--dark-accent);
  border-color: var(--dark-accent);
  color: #fff;
}

.btn--default {
  color: #fff;
  background: var(--primary);
}

.btn--default:hover,
.btn--default:active,
.btn--default:focus {
  background: var(--dark-primary);
  border-color: var(--dark-primary);
  color: #fff;
}

.btn--fullwidth {
  width: 100%;
}

.comment {
  color: var(--font-grey);
}

.grey-bg {
  background: var(--light-bg);
}

.mb0 {
  margin-bottom: 0 !important;
}

/*----------HEADER----------*/

.header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: #fff;
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.5);
}

.top-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}

.header__logo {
  width: 19rem;
}

/*.header__button {
  margin: 0 3rem 0 auto;
}*/

.header i {
  color: var(--primary);
  margin-right: 0.3rem;
}

.header__schedule,
.header__mail {
  font-size: 1.4rem;
}

.header__schedule {
  color: var(--font-grey);
}

.header__contacts {
  text-align: right;
}

.header__phone {
  font-size: 1.9rem;
  font-weight: 700;
  color: #000;
}

.header__phone:hover {
  color: var(--dark-primary);
}

.header__address {
  font-size: 1.2rem;
  color: var(--font-grey);
  margin-bottom: 0;
}

.nav {
  display: block;
  background: var(--light-bg);
  border-top: 2px solid var(--lines);
}

.header__nav {
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.header__nav-list {
  margin-top: -1.5px;
}

.header__nav-link {
  display: block;
  padding: 1.5rem 2rem;
  color: #000;
  font-weight: 500;
  border-top: 2px solid transparent;
}

.header__nav-link:hover {
  border-color: var(--primary);
  color: #000;
}

/*----------SECTION HERO----------*/

.hero {
  padding: 0;
}

.wrapper--slider {
  display: flex;
  align-items: center;
  height: 50rem;
}

.carousel-cell {
  margin-right: 10px;
  counter-increment: carousel-cell;
}

.carousel-cell--hero {
  width: 100%;
}

.hero__slider-bg {
  position: relative;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__slider-bg:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(to right, rgba(0, 47, 94, 0.9), transparent);
}

.hero__slider-bg--video {
  background-image: url("/images/slide-video.png");
}

.hero__slider-bg--ops {
  background-image: url("/images/slide-signal.jpg");
}

.hero__slider-bg--electro {
  background-image: url("/images/slide-electro.jpg");
}

.hero__slider-txt {
  position: relative;
  padding-left: 5rem;
  max-width: 80rem;
  color: #fff;
}

.hero__slider-title {
  font-size: 3.8rem;
  font-weight: 700;
  margin-bottom: 4rem;
}

.hero__slider-adv {
  padding: 0;
  list-style: none;
  margin: 0 0 4rem;
}

.hero__slider-adv-list {
  position: relative;
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 300;
  padding-left: 4rem;
}

.hero__slider-adv-list:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  background: center / contain no-repeat url("/images/icons/hero-list.png");
}

/*----------SECTION SERVICES----------*/

.services__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
}

.services__item {
  background: var(--light-bg);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  padding-bottom: 6rem;
}

.services__img {
  position: relative;
  width: 100%;
  height: 22rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

.services__img img {
  position: absolute;
  width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.services__txt {
  padding: 0 2.5rem 0.5rem;
  text-align: center;
}

.services__desc {
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.services__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1rem;
  position: absolute;
  width: calc(100% - 5rem);
  bottom: 2.5rem;
}

/*----------SECTION ADVANTAGES----------*/

.advantages__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7rem;
}

.advantages__title {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.advantages__icon {
  font-size: 3rem;
  color: var(--accent);
}

.advantages__h3 {
  margin-bottom: 0;
}

.advantages__item {
  position: relative;
  padding: 2.5rem 2.5rem 3rem;
}

.advantages__item:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 70%;
  height: 30%;
  border-top: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
  border-top-left-radius: 10px;
}

.advantages__item:after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 70%;
  height: 30%;
  border-bottom: 2px solid var(--lines);
  border-right: 2px solid var(--lines);
  border-bottom-right-radius: 10px;
}

.advantages__txt {
  margin-bottom: 0;
}

/*----------SECTION ABOUT----------*/

.about__container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 6rem;
}

.about__txt {
  line-height: 1.5;
}

.about-reviews__auth {
  display: flex;
  gap: 2rem;
}

.about-reviews__auth i {
  font-size: 4rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.about-reviews__name {
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 600;
}

.about-reviews__post {
  font-size: 1.2rem;
}

.about-reviews__txt {
  background: var(--light-bg);
  padding: 2.2rem 3rem 2.4rem;
  border-radius: 10px;
  line-height: 1.5;
}

.about-reviews__link {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.about-reviews__link-txt p {
  margin: 0;
  font-size: 1.4rem;
}

/*----------SECTION SERTIFICATES----------*/

.sertificates {
  padding-top: 0;
}

.sertificates__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
}

/*----------SECTION CTA----------*/

.cta__container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 6rem;
}

.cta__title {
  font-size: 3rem;
}

.cta__txt {
  border-left: 4px solid #1276cb;
  padding: 0.8rem 0 1rem 2rem;
}

.cta__txt p {
  margin-bottom: 0;
}

/*----------SECTION PORTFOLIO----------*/

.portfolio__container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.portfolio__item {
  border-radius: 10px;
  overflow: hidden;
  background: var(--light-bg);
}

.portfolio__img {
  position: relative;
  height: 20rem;
  margin-bottom: 2rem;
  overflow: hidden;
}

.portfolio__img img {
  position: absolute;
  object-fit: cover;
  max-width: max-content;
  max-height: 100%;
  top: 50%;
  transform: translateY(-50%);
}

.portfolio__txt {
  text-align: center;
  padding: 0 2rem 2rem;
  font-weight: 600;
}

/*----------SECTION PRICE----------*/

.table-price {
  width: 100%;
  margin: 3rem 0 4rem;
  border-radius: 10px;
  overflow: hidden;
}

.table-price tr:nth-child(2n) {
  background: #fff;
}

.table-price thead tr {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.table-price tr td {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--lines);
}

.table-price tr td:last-child {
  width: 15%;
  text-align: center;
}

/*----------SECTION CATALOG----------*/

.catalog__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.catalog__desc {
  text-align: center;
  max-width: 90rem;
  margin: 0 auto 4rem;
}

.catalog__link {
  display: block;
  margin-top: 2rem;
  text-align: center;
}

.catalog__item {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
  border-radius: 10px;
  background: var(--light-bg);
  padding: 2rem;
}

.catalog__txt {
  font-size: 1.4rem;
}

/*----------SECTION DELIVERY----------*/

.delivery__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.delivery__item {
  background: #fff;
  border-radius: 10px;
  padding: 3rem;
}

.delivery__item p {
  color: var(--font-grey);
}

.delivery__list {
  list-style: none;
  padding: 0;
}

.delivery__list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
}

.delivery__list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 1.2rem;
  height: 0.1rem;
  background: var(--primary);
}

/*----------SECTION CONTACTS----------*/

.contacts {
  padding-bottom: 0;
}

.contacts__container {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
  margin-bottom: 6rem;
}

.contacts__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contacts__item {
  position: relative;
  background: var(--light-bg);
  border-radius: 10px;
  padding: 2rem 2rem 2rem 5rem;
}

.contacts__title {
  font-weight: 600;
  color: var(--font-grey);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.contacts__item p {
  margin-bottom: 0;
}

.contacts__item i {
  position: absolute;
  left: 2rem;
  top: 2rem;
  font-size: 1.8rem;
  color: var(--primary);
}

.contacts__comment h3 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.contacts__comment p {
  line-height: 1.5;
}

/*----------FOOTER----------*/

.footer {
  background: var(--dark-bg);
}

.footer__container {
  display: flex;
  justify-content: space-between;
  padding: 2rem 0;
  font-size: 1.2rem;
  color: #fff;
}

.policy {
  color: #fff;
}

.policy:hover {
  color: var(--primary);
}

/*----------MODAL----------*/

.btn-close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 90;
}

.modal-content {
  padding: 1.5rem;
  border-radius: 10px;
}

.modal__title {
  font-size: 2.6rem;
  font-weight: 600;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--lines);
}

.modal-content label {
  width: 100%;
}

.modal__input,
.modal-content textarea {
  width: 100%;
  border: 1px solid var(--lines);
  background: var(--light-bg);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin: 1rem 0 2rem;
}

.modal__input:focus-visible,
.modal__input:focus {
  border: 1px solid var(--font-grey);
  outline: none;
}

.modal__input::placeholder {
  color: var(--font-grey);
}

.modal-content .btn {
  width: 100%;
}

.modal-content .comment {
  font-size: 1.2rem;
  margin: 1rem 0 0;
}

.mobile-header {
  display: none;
}

input[name="email"] {
  display: none;
}

.modal-dialog--page .modal__title {
  border: none;
  text-align: center;
  font-size: 2.8rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.modal__adv {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.5rem;
  background: var(--light-bg);
  margin-bottom: 2rem;
  border-radius: 10px;
}

.modal__adv-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  border-right: 2px solid var(--lines);
}

.modal__adv-item:last-child {
  border: none;
}

.modal__adv-item i {
  color: var(--primary);
  font-size: 3rem;
}

.modal__adv-item span {
  max-width: 15rem;
  display: inline-block;
  margin: auto;
}

.numbers {
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
}

.numbers .td {
  width: 30%;
  vertical-align: top;
  padding-top: 20px;
}

.numbers .td:last-child {
  margin-right: 0;
}

.numbers .td .block {
  background-color: var(--dark-primary);
  text-align: center;
}

.numbers .td .center_hack:before {
  content: "";
  position: absolute;
  border: 10px solid transparent;
  border-top: 10px solid var(--dark-primary);
  bottom: -18px;
  left: 50%;
  margin-left: -5px;
}

.numbers .td .center_hack {
  margin: 0 auto;
  text-align: left;
  display: table;
  border-spacing: 0;
  width: auto;
  position: relative;
  margin-bottom: 20px;
  padding-top: 5px;
}

.numbers .more4 .td {
  width: 25%;
}

.numbers .td .count {
  font-size: 45px;
  font-weight: bold;
  color: #f6ef31;
  float: left;
  line-height: 51px;
  margin-right: 5px;
}

.numbers .td .who {
  font-size: 20px;
  font-weight: bold;
  color: #f6ef31;
  line-height: 23px;
  padding-top: 1px;
  text-transform: uppercase;
  float: left;
}

.numbers .td .rouble {
  font-size: 30px;
  color: #f6ef31;
}

.numbers .td .number_desc {
  clear: both;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #000;
  text-align: center;
  max-width: 30rem;
  margin: 5px auto 0;
  color: var(--font-grey);
}

.modal-dialog--page .modal-content {
  padding-top: 3rem;
}

@media (min-width: 576px) {
  .modal-dialog--page {
    width: 94%;
    max-width: 120rem;
  }
}

/*----------MOBILE----------*/

@media screen and (max-width: 1440px) {
  .wrapper {
    max-width: 98%;
  }
  .services__container {
    grid-template-columns: repeat(3, 1fr);
  }
  .advantages__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 940px) {
  .services__container {
    grid-template-columns: repeat(2, 1fr);
  }
  .about__container {
    grid-template-columns: 1fr;
  }
  .cta__container {
    justify-content: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
  }
  .portfolio__container {
    grid-template-columns: repeat(2, 1fr);
  }
  .sertificates__container {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog__container,
  .delivery__container,
  .contacts__container {
    grid-template-columns: 1fr;
  }

  .mobile-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 99;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
  }

  .header {
    display: none;
  }

  .mobile-nav-bar {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 4rem;
    padding: 0;
  }

  .mobile-nav-menu {
    position: absolute;
    left: -100%;
    top: 100%;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.95);
    width: 100%;
    list-style: none;
    transition: 750ms;
    padding: 2rem;
    overflow-y: scroll;
    max-height: 100vh;
    min-height: 98vh;
    box-shadow: inset 0px 0px 10px 0px rgba(0, 0, 0, 0.3);
  }

  .mobile-nav-menu.active {
    left: 0;
  }
  .hamburger {
    width: 6rem;
    text-align: center;
    padding: 1.5rem;
    cursor: pointer;
  }

  .bar {
    display: block;
    background-color: #000;
    width: 24px;
    height: 2px;
    margin: 6px auto;
    transition: all 300ms ease-in-out;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .header__nav-link {
    border-top: none;
    border-bottom: 2px solid transparent;
  }
  .header__nav-link:hover {
    border-color: var(--primary);
  }
  .header__logo {
    width: 16rem;
    padding: 0.7rem;
  }
  .header__contacts {
    text-align: left;
  }
  .mobile-contacts {
    margin-top: 4rem;
  }
  .header__phone {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    display: block;
  }
  .header__address,
  .header__schedule,
  .header__mail {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
  }
  .header__address i,
  .header__schedule i,
  .header__mail i,
  .header__phone i {
    font-size: 2rem;
    margin-right: 1rem;
    display: inline-block;
    width: 2rem;
    text-align: center;
    color: var(--primary);
  }
  .header__phone i {
    margin-right: 0.5rem;
  }

  .modal__adv {
    grid-template-columns: repeat(2, 1fr);
  }
  .numbers {
    justify-content: space-around;
    flex-wrap: wrap;
  }
  .numbers .td {
    width: 40%;
  }
  .modal__adv-item:nth-child(2n) {
    border-right: none;
  }
}

@media screen and (max-width: 650px) {
  .services__container,
  .portfolio__container,
  .advantages__container,
  .contacts__info {
    grid-template-columns: 1fr;
  }
  .hero__slider-title {
    font-size: 2.6rem;
  }
  .hero__slider-adv-list {
    font-size: 1.6rem;
  }
  .hero__slider-txt {
    padding-right: 5rem;
    max-width: 100%;
  }
  .wrapper {
    max-width: 96%;
  }
  .numbers .td {
    width: 100%;
  }
}
