/* Fonts */
@font-face {
  font-family: "Gotham Pro";
  font-weight: 300;
  font-style: normal;

  font-display: swap;
  src: url("../fonts/GothamPro-Light.woff2") format("woff2"),
  url("../fonts/GothamPro-Light.woff") format("woff");
}

@font-face {
  font-family: "Gotham Pro";
  font-weight: 400;
  font-style: normal;

  font-display: swap;
  src: url("../fonts/GothamPro.woff2") format("woff2"),
  url("../fonts/GothamPro.woff") format("woff");
}

@font-face {
  font-family: "Gotham Pro";
  font-weight: 500;
  font-style: normal;

  font-display: swap;
  src: url("../fonts/GothamPro-Medium.woff2") format("woff2"),
  url("../fonts/GothamPro-Medium.woff") format("woff");
}

@font-face {
  font-family: "Gotham Pro";
  font-weight: 700;
  font-style: normal;

  font-display: swap;
  src: url("../fonts/GothamPro-Bold.woff2") format("woff2"),
  url("../fonts/GothamPro-Bold.woff") format("woff");
}

/* Base */
html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  min-width: 320px;

  font-family: "Gotham Pro", sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #292929;
}

img {
  max-width: 100%;

  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden;

  border: 0 !important;

  clip: rect(1px 1px 1px 1px);
  clip: rect(1px, 1px, 1px, 1px);
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.scroll-off {
  overflow: hidden;
}

/* General */
.logo {
  display: flex;
  width: 232px;
  margin-right: auto;
}

.logo-img {
  width: 38px;
  height: 40px;
  margin-right: 14px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.logo-name {
  display: block;

  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo-title {
  margin: 0;

  font-size: 11px;
  font-weight: 300;
}

.phone-block {
  display: flex;
  flex-direction: column;
}

.phone-number {
  font-size: 18px;
  font-weight: 700;

  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 0 2px;

  transition: background-size 0.3s ease;
}

.phone-number:hover,
.phone-number:focus {
  background-size: 100% 2px;
}

.back-call-btn {
  width: 160px;
  padding: 10px;

  font-weight: 500;
  color: #292929;

  background-color: transparent;
  border: 2px solid #292929;
  cursor: pointer;

  transition: color 0.3s ease, background-color 0.3s ease;
}

.btn {
  display: inline-block;
  padding: 17px 15px;

  font-weight: 500;
  text-align: center;
  color: #0d0d0d;

  background-color: #ffd200;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #ffd726;
}

.products-btn {
  width: 180px;
}

.section-indent {
  padding: 80px 0;

  text-align: center;
}

.gray-section {
  background-color: #f4f4f4;
}

.section-title {
  margin: 0;
  margin-bottom: 60px;

  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Header */
.header {
  padding-top: 30px;
}

.header-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.header-logo-title {
  color: #969696;
}

.header-phone-block {
  margin-right: 30px;
}

.header-phone-number {
  margin-bottom: 5px;

  background-image: linear-gradient(#292929, #292929);
}

.header-phone-number:last-child {
  margin-bottom: 0;
}

.header-btn:hover {
  color: #fff;

  background-color: #292929;
}

.header-nav {
  position: relative;
  z-index: 10;

  width: 100%;
  margin-top: 30px;
  margin-bottom: -30px;

  background-color: #fc0;
}

.header-nav-list {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;

  list-style: none;
}

.header-nav-link {
  display: block;
  padding: 22px 46px;

  font-weight: 500;
  color: #000;

  transition: background-color 0.3s ease, color 0.3s ease;
}

.header-nav-link:hover {
  background-color: #ffd726;
}

/* First */
.first {
  position: relative;

  padding-top: 170px;
  padding-bottom: 140px;

  color: #fff;

  background: #534c48 url("../img/first/first-bg.jpg") center / cover no-repeat;
}

.first::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;

  display: inline-block;
  width: 100%;
  height: 100%;

  background-color: rgba(0, 0, 0, 0.6);
}

.first-title,
.first-btn,
.first-or,
.first-catalog {
  position: relative;
  z-index: 5;
}

.first-title {
  max-width: 45%;
  margin: 0;
  margin-bottom: 60px;

  font-size: 36px;
  text-transform: uppercase;
}

.first-description {
  display: inline-block;
  margin-top: 35px;
  padding-right: 100px;

  font-size: 14px;
  line-height: 22px;
  font-weight: 300;
  text-transform: none;
}

.first-btn {
  width: 200px;
  margin-right: 30px;
}

.first-or,
.first-catalog {
  font-size: 12px;
}

.first-catalog {
  position: relative;

  display: inline-block;
  margin-left: 10px;

  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;

  border-bottom: 1px dashed #fff;
}

.first-catalog:hover {
  border-bottom-style: solid;
}

/* Always */
.always-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0;
  padding: 0;

  list-style: none;
}

.always-item {
  display: flex;
  flex: 0 0 300px;
  flex-direction: column;
  align-items: center;
  padding: 35px 20px;

  border: 2px solid #f6f6f6;
}

.always-img {
  margin-bottom: 30px;
}

.always-item-title {
  margin: 0;
  margin-bottom: 15px;

  font-size: 15px;
  font-weight: 500;
}

.always-item-description {
  min-height: 120px;
  margin: 0;
  margin-bottom: 25px;

  font-size: 13px;
  line-height: 1.5;
  font-weight: 300;
  color: #626262;
}

.always-item-price {
  margin-top: auto;
  margin-bottom: 30px;

  font-size: 16px;
  font-weight: 500;
}

/* Features */
.features-list {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;

  list-style: none;
}

.features-item {
  flex: 0 0 32%;
  padding: 130px 20px 40px;
  padding-top: 130px;

  background-repeat: no-repeat;
  background-position: center 40px;
  background-size: 55px;
  border: 2px solid #fff;

  transition: background-color 0.3s ease;
}

.features-item:hover {
  background-color: #fff;
}

.pig-icon {
  background-image: url("../img/icon/features/pig-bank.svg");
  background-size: 50px;
}

.val-icon {
  background-image: url("../img/icon/features/val.svg");
}

.cart-icon {
  background-image: url("../img/icon/features/cart.svg");
}

.features-item-title {
  margin: 0;
  margin-bottom: 20px;

  font-size: 15px;
  font-weight: 500;
}

.features-item-description {
  margin: 0;

  font-size: 13px;
  line-height: 18px;
  font-weight: 300;
}

/* Products */
.products-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;

  list-style: none;
}

.products-item {
  display: flex;
  flex: 0 0 23%;
  flex-direction: column;
  margin-right: 20px;
  margin-bottom: 20px;
  padding: 18px;

  border: 2px solid #f6f6f6;
}

.products-item:nth-child(4n) {
  margin-right: 0;
}

.products-img {
  margin-bottom: 20px;
}

.products-item-title {
  margin: 0;
  margin-bottom: 22px;

  font-size: 13px;
  font-weight: 500;
}

.products-item-price {
  display: inline-block;
  margin-top: auto;
  margin-bottom: 25px;

  font-size: 16px;
  font-weight: 700;
  vertical-align: top;
}

/* Services */
.services-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: 0;
  padding: 0;

  list-style: none;
}

.services-item {
  flex: 1 0 45%;
  margin-bottom: 20px;
  padding: 50px 25px 40px;

  border: 2px solid #fff;
}

.services-item:nth-child(2n+1) {
  margin-right: 20px;
}

.services-item-img {
  max-width: 250px;
  height: 110px;
  margin-bottom: 35px;
}

.services-item-title {
  margin: 0;
  margin-bottom: 30px;
}

/* Contacts */
.contacts {
  position: relative;
}

.contacts-container {
  position: relative;

  min-height: 450px;
}
.contacts-block {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 20;

  padding: 60px 60px 70px;

  background-color: #fff;
  transform: translateY(-50%);
}

.contacts-title {
  margin: 0;
  margin-bottom: 50px;

  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
}

.contacts-info {
  font-style: normal;
}

.contacts-phone-block,
.contacts-address {
  margin-bottom: 35px;
}

.contacts-item {
  padding-left: 30px;

  font-weight: 400;

  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

.contacts-phone-number {
  display: block;
  margin-bottom: 15px;

  font-weight: 500;
  text-decoration: underline;
}

.contacts-phone-number:last-child {
  margin-bottom: 0;
}

.contacts-phone-icon {
  background-image: url("../img/icon/contacts/phone.svg");
}

.contacts-address-icon {
  background-image: url("../img/icon/contacts/location.svg");
  background-size: 18px;
}

.contacts-email-icon {
  background-image: url("../img/icon/contacts/mail.svg");
}

.contacts-email {
  text-decoration: underline;
}

.contacts-map {
  position: absolute;
  top: 0;
  left: 0;
}


/* Footer */
.footer {
  padding: 50px 0 45px;

  color: #fff;

  background-color: #292929;
}

.footer-top {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.footer-phone-number {
  display: block;
  margin-bottom: 15px;

  background-image: linear-gradient(#fff, #fff);
}

.footer-phone-number:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-copy {
  font-size: 12px;
}

.footer-btn {
  color: #fff;

  border: 2px solid #fff;
}

.footer-btn:hover {
  color: #292929;

  background-color: #fff;
}

/* Modal */
.modal-container {
  position: fixed;
  top: 0;
  z-index: 100;

  display: none;
  width: 100%;
  height: 100%;

  background-color: rgba(0, 0, 0, 0.5);
}

.modal-inner {
  position: relative;

  width: 300px;
  margin: 100px auto;

  background-color: #fff;
}

.modal-close {
  position: absolute;
  top: -20px;
  right: -25px;

  font-size: 20px;
  font-weight: 900;
  color: #fff;

  background-color: transparent;
  border: none;
  cursor: pointer;
}

.modal-form {
  display: flex;
  flex-direction: column;
  padding: 35px 25px;
}

.modal-title {
  margin: 0;
  margin-bottom: 20px;

  font-size: 26px;
}

.modal-description {
  margin: 0;
  margin-bottom: 20px;
}

.modal-input {
  height: 50px;
  margin-bottom: 20px;
  padding: 0 20px;
}

.succes {
  display: none;
  padding: 30px;
  padding-top: 100px;

  background: url(../img/icon/tick.svg) center 20px / 50px no-repeat;
}

.succes-title {
  margin: 0;
  margin-bottom: 20px;

  font-size: 23px;
}

.succes-description {
  margin: 0;

  line-height: 24px;
}

/* Media */
@media (max-width: 992px) {
  .first-title {
    max-width: 60%;
  }

  .always-item {
    flex-basis: 48%;
    margin-bottom: 30px;
  }

  .always-item:last-child {
    margin: 0;
  }

  .products-item {
    flex-basis: 31%;
    align-items: center;
  }

  .products-item:nth-child(3n) {
    margin-right: 0;
  }

  .products-item:nth-child(4n) {
    margin-right: 20px;
  }

  .contacts-block {
    right: 10%;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 425px;
  }

  .header-container {
    flex-direction: column;
  }

  .logo {
    margin-right: 0;
    margin-bottom: 30px;
  }

  .header-phone-block {
    margin-right: 0;
    margin-bottom: 30px;
  }

  .header-phone-number {
    margin-bottom: 15px;
  }

  .header-nav-list {
    flex-wrap: wrap;
  }

  .header-nav-item {
    width: 50%;

    text-align: center;
  }

  .first-title {
    max-width: 100%;

    font-size: 32px;
  }

  .first-description {
    padding-right: 0;
  }

  .first-btn {
    display: block;
    margin-bottom: 20px;
  }

  .always-item {
    flex-grow: 1;
  }

  .features-list {
    flex-wrap: wrap;
  }

  .features-item {
    flex-basis: 100%;
    margin-bottom: 30px;
  }

  .features-item:last-child {
    margin-bottom: 0;
  }

  .products-item {
    flex-grow: 1;
    margin-right: 0;
  }

  .products-item:nth-child(4n) {
    margin-right: 0;
  }

  .products-item:last-child {
    margin-bottom: 0;
  }

  .products-btn {
    margin: 0 auto;
  }

  .services-list {
    flex-wrap: wrap;
  }

  .services-item:nth-child(2n+1) {
    margin-right: 0;
  }

  .services-item:not(:last-child) {
    margin-bottom: 30px;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
  }

  .footer-bottom {
    align-items: center;
  }

  .footer-copy {
    order: 1;
  }

  .footer-btn {
    margin-bottom: 30px;
  }

  .contacts-container {
    min-height: 0;
  }

  .contacts-block {
    position: static;

    transform: translateY(0);
  }

  .contacts-map {
    position: static;
  }
}

@media (max-width: 425px) {
  .header-nav-list {
    flex-direction: column;
  }

  .header-nav-item {
    width: 100%;
  }

  .contacts-block {
    padding-right: 40px;
  }

  .modal-close {
    top: 10px;
    right: 10px;

    color: #000;
  }
}
