:root {
  --main-font: 'Raleway', sans-serif;
  --second-font: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 360px;
  background: #fff;
  color: #333;
  font-family: var(--main-font);
}

main {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin-top: 0;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
}

a:focus {
  outline: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
textarea,
button,
select,
label {
  font-family: var(--main-font);
  border: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

html {
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: 1320px;
  padding: 0 15px;
  margin: 0 auto;
}



.cap {
  padding: 43px 0 18px;
  background: url(../img/cap-bg.jpg) no-repeat center / cover;
}

.cap-header {
  margin-bottom: 156px;
}

.cap-header__block {
  background: #1093a5;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 7px 31px 6px 54px;
}

.cap-header__phone {
  font-family: var(--second-font);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

.cap-main {
  margin-bottom: 201px;
}

.cap-main__title {
  font-weight: 800;
  font-size: 36px;
  line-height: 135%;
  text-transform: uppercase;
  color: #10335c;
  max-width: 550px;
  margin-bottom: 26px;
}

.cap-main__list {
  margin-bottom: 39px;
}

.cap-main__point+.cap-main__point {
  margin-top: 27px;
}

.cap-main__point {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
  font-size: 16px;
  color: #333;
}

.cap-main__links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.cap-main__link {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  padding: 12.5px 29.5px;
  background: #1093a5;
  border-radius: 4px;
  max-width: 190px;
  text-align: center;
  width: 100%;
}

.cap-bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.cap-bottom__item {
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.2);
  background: #fff;
  border-radius: 20px;
  padding: 28px 22px 20px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.cap-bottom__top {
  font-family: var(--second-font);
  font-weight: 700;
  font-size: 16px;
  color: #333;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 15px;
}

.cap-bottom__text {
  font-family: var(--second-font);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  color: #333;
  margin-bottom: 0;
}

.cap-bottom__span {
  padding-bottom: 11px;
}

.cap-bottom__item:nth-child(2) {
  padding: 31px 16px 20px 15px;
}

.cap-bottom__item:nth-child(2) .cap-bottom__span {
  padding-bottom: 8px;
}

.cap-bottom__item:nth-child(2) .cap-bottom__top {
  margin-bottom: 18px;
  padding-left: 12px;
}

.cap-bottom__item:nth-child(3) {
  padding: 18px 20px 20px;
}

.cap-bottom__item:nth-child(3) .cap-bottom__span {
  padding-bottom: 14px;
}

.cap-bottom__item:nth-child(3) .cap-bottom__top {
  margin-bottom: 12px;
  gap: 7px;
  padding-left: 2px;
}

.cap-bottom__item:nth-child(4) {
  padding: 20px 7px 20px;
}

.cap-bottom__item:nth-child(4) .cap-bottom__span {
  padding-bottom: 11px;
}

.cap-bottom__item:nth-child(4) .cap-bottom__top {
  margin-bottom: 15px;
  gap: 0;
  padding-left: 15px;
}

.widgets__tel {
    position: fixed;
    right: 20px;
    bottom: 100px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    text-align: center;
    z-index: 9999;
}

.widgets__tel::after, .widgets__tel::before {
    content: "";
    display: block;
    position: absolute;
    border: 50%;
    border: 1px solid #333333;
    left: -20px;
    right: -20px;
    top: -20px;
    bottom: -20px;
    border-radius: 50%;
    animation: animate 1.5s 
linear infinite;
    opacity: 0;
    backface-visibility: hidden;
}

.widgets__tel:after {
    animation-delay: 0.5s;
}

.widgets__whatsapp {
    position: fixed;
    right: 10px;
    bottom: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    text-align: center;
    z-index: 9999;
}

.widgets__whatsapp::after, .widgets__whatsapp::before {
    content: "";
    display: block;
    position: absolute;
    border: 50%;
    border: 1px solid #25D366;
    left: -20px;
    right: -20px;
    top: -20px;
    bottom: -20px;
    border-radius: 50%;
    animation: animate 1.5s 
linear infinite;
    opacity: 0;
    backface-visibility: hidden;
}

.widgets__whatsapp:after {
    animation-delay: 0.5s;
}

@keyframes animate {
  0% {
    transform: scale(0.5);
    opacity: 0;
}
50% {
    opacity: 1;
}
100% {
    transform: scale(1.2);
    opacity: 0;
}
}

@media (max-width: 1320px) {
  .cap-bottom {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (max-width: 1000px) {
  .cap-bottom {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
}

@media (max-width: 800px) {
  
  .cap-main__links {
    flex-direction: column;
    align-items: flex-start;
  }

  .cap-bottom {
    grid-template-columns: 1fr;
  }

  .cap-bottom__top {
    align-items: center;
  }

  .cap-bottom__span {
    padding: 0 !important;
  }

  .cap-bottom__span br {
    display: none;
  }
}

@media (max-width: 600px) {

  .cap-header__block {
    padding: 10px 15px;
  }

  .cap-header__logo {
    width: 100px;
  }

  .cap-header__phone {
    font-size: 14px;
  }

  .cap {
    padding-top: 20px;
  }

  .cap-header {
    margin-bottom: 35px;
  }

  .cap-main__title {
    font-size: 25px;
    margin-bottom: 20px;
  }

  .cap-main__point+.cap-main__point {
    margin-top: 15px;
  }

  .cap-main__point {
    font-size: 14px;
    gap: 10px;
  }

  .cap-main__icon {
    width: 20px;
  }

  .cap-main__list {
    margin-bottom: 25px;
  }

  .cap-main__links {
    gap: 15px;
  }

  .cap-main__link {
    width: 100%;
    max-width: 100%;
  }

  .cap-main {
    margin-bottom: 50px;
  }
  
  .cap-bottom__icon {
    width: 50px;
  }

  .cap-bottom__top {
    gap: 15px !important;
  }
}