:root {
  --header-container-template: 96px 1fr;
}

* {
  box-sizing: border-box;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

html {
  background-color: #f6f6f6;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  min-height: 100dvh;
}

.main {
  flex: 1;
}

picture {
  display: block;
}

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

img {
  max-width: 100%;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.container {
  max-width: 1240px;
  width: 100%;
  padding-inline: 20px;
  margin-inline: auto;
}

/* HEADER */
.header {
  padding-block: 8px;
}

.header__container {
  display: grid;
  align-items: center;
  grid-template-columns: var(--header-container-template);
  gap: 20px;
}

.header__navigation {
  display: flex;
  justify-content: center;
}

.header__navigation-list {
  display: flex;
  gap: 40px;
  align-items: start;
}

.header__navigation-item {
  display: flex;
  align-items: start;
}

.header__navigation-link {
  display: flex;
  align-items: start;
}

/****************/

/* MAIN  */

.hero-section-tech {
  padding-block: 34px 0;
}

.hero-section-tech__image img {
  width: 100%;
}

.hero-section-tech__container {
  display: grid;
  gap: 24px;
}

.hero-section-tech__buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  max-width: 290px;
  width: 100%;
  margin-inline: auto;
  gap: 10px;
}

.faq-section-tech {
  background-color: #012b7f;
  padding: 40px 0 30px;
}

.faq-section-tech__title {
  margin-bottom: 10px;
}

.faq-section-tech__container {
  display: grid;
  gap: 26px;
}

.faq-section-tech__image img {
  width: 100%;
}

.advantage-section-tech {
  padding-block: 34px 0;
}

.advantage-section-tech__title {
  margin-bottom: 10px;
}

.advantage-section-tech__text {
  margin-bottom: 12px;
}

.advantage-list {
  overflow: overlay;
  cursor: grab;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.advantage-list__item {
  position: relative;
  cursor: pointer;
}

.advantage-list__item img {
  width: 100%;
}

.services-section-tech {
  padding-block-start: 36px;
  overflow: hidden;
}
.services-section-tech .carousel-dots {
  margin-block: 10px 6px;
}

.services-section-tech__title {
  margin-block-end: 8px;
}

.services-section-tech__text {
  margin-block-end: 14px;
}

.services__row {
  display: grid;
  gap: 16px;
}

.services__item {
  margin-right: -44px;
}

.services__item img {
  width: 100%;
}

.accordion-items {
  display: grid;
  gap: 16px;
}

.accordion-item {
  border: 2px solid #f6f6f6;
  padding: 24px 20px 18px;
  border-radius: 20px;
  width: 100%;
  cursor: pointer;
  position: relative;
}

.accordion-item.active {
  padding: 24px 20px 16px;
}

.accordion-item.active .accordion-item__icon {
  transform: scaleY(1);
}

.accordion-item__icon {
  position: absolute;
  top: 35px;
  right: 20px;
  width: 28px;
  height: 28px;
  transform: scaleY(-1);
}

.accordion-item.active .accordion-item__text {
  display: block;
}

.accordion-item.active .accordion-item__title {
  margin-bottom: 20px;
}

.accordion-item .accordion-item__text {
  display: none;
}

.contacts-section-tech {
  padding-block: 34px 35px;
}

.contacts-section-tech__container {
  display: grid;
  gap: 10px;
}

.contacts-section-tech__title img {
  width: 272px;
}

.contacts__list {
  display: grid;
  gap: 15px;
}

.contacts__item {
  background-color: #012b7f;
  border-radius: 15px;
  padding: 15px;
  display: grid;
  gap: 4px;
}

.contacts__item picture:nth-child(1) img {
  width: 156px;
}

.contacts__item picture:nth-child(2) img {
  width: 145px;
}

.contacts__item picture:nth-child(3) img {
  width: 306px;
}

.contacts-section-tech__image img {
  width: 100%;
}

.about-section-tech {
  padding-block: 22px;
}

.about-section-tech img {
  width: 100%;
}

.map {
  max-height: 444px;
  height: 75vw;
}

.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.carousel {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  flex: 0 0 calc(100% / 1);
  width: 335px;
  max-width: 100%;
}

.carousel-slide img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.carousel-slide img:hover {
  transform: scale(1.005);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.carousel-prev,
.carousel-next {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: #3498db;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: #2980b9;
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  background-color: transparent;
  border: 2px solid #1a1d22;
}

.carousel-dot.active {
  background-color: #012b7f;
  border-color: #012b7f;
}

.carousel-slide {
  animation: fadeIn 0.5s ease;
}

.modal-btn {
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(48, 48, 48, 0.8);
  backdrop-filter: blur(9px);
}

.modal-menu .modal-content {
  display: grid;
  gap: 20px;
}

.modal-navigation {
  display: grid;
  justify-content: center;
  gap: 10px;
}

.modal-navigation__link {
  display: flex;
  gap: 40px;
}

.link-pointer {
  cursor: pointer;
}

#modal2 {
  z-index: 777;
}

.modal-content {
  position: relative;

  background-color: #f6f6f6;
  margin: 5% auto;
  padding: 35px 25px 50px;
  border-radius: 30px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0px 4px 10.3px 0px #00000012 inset;
  animation: modalopen 0.4s;
}

.modal-close-button {
  position: absolute;
  inset-block-start: 30px;
  inset-inline-end: 30px;
  transition: opacity 0.3s linear;
  cursor: pointer;
}

.modal-close-button:hover {
  opacity: 0.7;
}

form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

input,
textarea,
#submitBtn {
  border: 1px solid #012b7f;
  color: #8e99ab;
  font-size: 18px;
  font-family: 'Inter';
  border-radius: 30px;
  line-height: 50px;
  height: 50px;
  max-width: 100%;
  padding-left: 20px;
  letter-spacing: 0.01em;
  background: transparent;
  font-family: 'Sansation', sans-serif;
}

#submitBtn {
  background: #012b7f;
  border: none;
  font-size: 16px;
  color: #f6f6f6;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
}

textarea {
  min-height: 150px;
}

.offer-section-tech {
  padding-block: 32px 20px;
}

.offer-section-tech__title {
  margin-bottom: 10px;
}

.offer-list {
  display: grid;
  gap: 15px;
}

.offer-list__item img {
  width: 100%;
}

.review-section-tech {
  padding-block: 38px 0;
}

.review-section-tech__title {
  margin-bottom: 18px;
}

.review-list {
  display: grid;
  gap: 14px;
}

.review-list__title img {
  width: 100%;
}

/* FOOTER */

.footer {
  padding-block: 60px;
  background-color: #012b7f;
}

.social-list {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.services-section-tech {
  overflow: hidden;
}

.services-list__item {
  display: block;
  cursor: pointer;
}

/****************/

/* MEDIA QUERIES */

@media screen and (max-width: 767px) {
  .mobile-hide {
    display: none;
  }
}

@media screen and (min-width: 480px) {
  .hero-section-tech__content img {
    width: 69.8vw;
  }

  .services-section-tech__title img {
    width: 67.5vw;
  }

  .services-section-tech__text img {
    width: 63.2vw;
  }

  .offer-section-tech__title img {
    width: 33vw;
  }

  .faq-section-tech__title img {
    width: 60vw;
  }

  .review-section-tech__title img {
    width: 37vw;
  }

  .advantage-section-tech__title img {
    width: 35vw;
  }

  .advantage-section-tech__text img {
    width: 67.2vw;
  }

  .contacts-section-tech__title img {
    width: 56.3vw;
  }
}

@media screen and (min-width: 768px) {
  .services-list {
    margin-bottom: 0;
  }

  .desktop-hide {
    display: none;
  }

  .hero-section-tech {
    padding-block: 60px 30px;
  }

  .hero-section-tech__container {
    gap: 28px;
  }

  .hero-section-tech__content img {
    width: auto;
  }

  .hero-section-tech__buttons {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    gap: 30px;
    margin-bottom: 34px;
  }

  .services-section-tech {
    padding-block-start: 40px;
    overflow: hidden;
  }

  .services-section-tech__title {
    margin-block-end: 16px;
  }

  .services-section-tech__text {
    margin-block-end: 36px;
  }

  .services-section-tech__title img,
  .services-section-tech__text img {
    width: auto;
  }

  .services-list__item {
    margin-right: 0;
  }

  .services-list__item img {
    width: 100%;
  }

  .about-section-tech {
    padding-block: 22px;
  }

  .faq-section-tech {
    padding: 74px 0 62px;
  }

  .faq-section-tech__container {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .faq-section-tech__title {
    margin-bottom: 24px;
  }

  .faq-section-tech__title img {
    width: auto;
  }

  .cta-section-tech__inner {
    padding: 30px 20px;
  }

  .services__row {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .contacts-section-tech {
    padding-block: 30px 60px;
  }

  .contacts-section-tech__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts-section-tech__title {
    margin-block-end: 18px;
  }

  .contacts-section-tech__title img {
    width: auto;
  }

  .contacts__item {
    padding-inline: 30px;
    border-radius: 15px;
  }

  .contacts__item picture:nth-child(1) img,
  .contacts__item picture:nth-child(2) img {
    width: 130px;
  }

  .contacts__item picture:nth-child(3) img {
    width: 282px;
  }

  .contacts-section-tech__content {
    padding-block-start: 16px;
  }

  .contacts__list {
    gap: 20px;
  }

  .offer-section-tech {
    padding-block: 70px 54px;
  }

  .offer-section-tech__title {
    margin-bottom: 28px;
  }

  .offer-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .offer-section-tech__title img {
    width: auto;
  }

  .review-section-tech {
    padding-block: 74px 24px;
  }

  .review-section-tech__title {
    margin-bottom: 34px;
  }

  .review-section-tech__title img {
    width: auto;
  }

  .review-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .advantage-section-tech {
    padding-block: 42px 24px;
  }

  .advantage-section-tech__title {
    margin-bottom: 20px;
  }

  .advantage-section-tech__text {
    margin-bottom: 26px;
  }

  .advantage-section-tech__title img {
    width: auto;
  }

  .advantage-section-tech__text img {
    width: auto;
  }

  .advantage-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }

  .accordion-item__icon {
    top: 20px;
    right: 18px;
    width: 24px;
    height: 24px;
  }

  .carousel-track {
    gap: 30px;
  }
  .carousel-slide {
    flex: 0 0 calc(100% / 3 - 20px);
  }
  .carousel-slide:nth-child(4),
  .carousel-slide:nth-child(7) {
    margin-left: -30px;
  }

  .carousel-dots {
    display: none;
  }
}

@media screen and (max-width: 1023px) {
  .header-small-screen-hide {
    display: none;
  }
}

@media screen and (min-width: 1024px) {
  .header {
    --header-container-template: 180px 1fr 190px;

    padding-block: 18px;
  }

  .header-large-screen-hide {
    display: none;
  }

  .contacts-section-tech__container {
    gap: 30px;
  }
}

@media screen and (min-width: 1280px) {
  .contacts__item picture:nth-child(1) img,
  .contacts__item picture:nth-child(2) img {
    width: auto;
  }

  .contacts__item picture:nth-child(3) img {
    width: auto;
  }

  .carousel-slide {
    /* flex: 0 0 100%; */
  }

  .carousel-controls {
    flex-direction: column;
    gap: 15px;
  }

  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
  }

  .wrap {
    max-width: 90%;
  }
  .modal-content {
    margin: 5% auto;
  }
  section.h1 div img {
    max-width: 48%;
  }
  section.h1 div img:nth-child(2) {
    transform: scale(0.85);
  }
}
