*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

section,
[id] {
  scroll-margin-top: 80px;
}

ul {
  list-style: none;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

/* CSS Reset END */

:root {
  --white-dark: #f6f8fa;
  --orange: #fa8232;
}

body {
  font-family: Inter, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header START */

header {
  background-color: #f4f8f9;
  position: sticky;
  top: 0;
  border: 1px rgba(0, 0, 0, 0.1) solid;
  z-index: 1000;
}

.header {
  display: flex;
  height: 100px;
  align-items: center;
  padding-left: 20px;
  padding-right: 20px;
}

.header-left {
  width: clamp(200px, 100%, 550px);
}

.header-left p {
  color: rgb(122, 122, 122);
  font-weight: 400;
}

.logo {
  color: #15657e;
  font-weight: 600;
  font-size: 1.8rem;
}

.header-right {
  margin-left: auto;
}

.header-right ul {
  display: flex;
  gap: 18px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  align-items: center;
}

.link-ease {
  position: relative;
  padding-top: 5px;
  padding-bottom: 5px;
}

.link-ease::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(120deg, #246d94, #157caf);
  transition: width 0.4s ease;
}

.link-ease:hover::after {
  width: 100%;
}

.header-btn {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  color: rgb(255, 255, 255);
  padding: 10px;
  background: linear-gradient(120deg, #246d94, #157caf);
  border-radius: 15px;
  box-shadow: 0px 0px 8px 0px #4d96c9;
}

.header-btn img {
  display: block;
}
.section-top {
  padding-top: 50px;
  padding-bottom: 50px;
}
/* Header END */

/* Article START */
article {
  background: radial-gradient(circle at 10% 20%, #125a70 10%, #2b93b3 90%);
  padding-top: 90px;
  padding-bottom: 90px;
}

.article-container {
  display: flex;
  flex-direction: column;
  color: white;
  text-align: center;
  gap: 20px;
  padding-left: 20px;
  padding-right: 20px;
}

.article-container h1 {
  max-width: 800px;
  width: 100%;
  font-weight: 700;
  font-size: 3.5rem;
  margin: 0 auto;
  line-height: 110%;
}

.article-container h2 {
  max-width: 700px;
  width: 100%;
  font-weight: 500;
  margin: 0 auto;
}

.article-banner {
  background-color: white;
  max-width: 900px;
  width: 100%;
  color: black;
  margin: 20px auto;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
}

.article-banner img {
  width: 100%;
  border-radius: 15px 15px 0 0;
}

.article-banner p {
  padding-top: 15px;
  padding-bottom: 15px;
  font-style: italic;
}
/* Article END */

/* Service List START */
.white-dark {
  background-color: var(--white-dark);
}

.services-container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
  color: #125576;
}

.section-title h2 {
  font-size: 2.8rem;
}

.section-title hr {
  width: 120px;
  height: 3px;
  background: radial-gradient(circle at 10% 20%, #317ea5 20%, #129adf 80%);
}

.section-title p {
  margin-top: 5px;
  color: black;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 1200px;
  gap: 40px 20px;
  margin: 0 auto;
  margin-top: 40px;
  justify-items: center;
}

.service-top {
  background: radial-gradient(circle at 10% 20%, #125576 20%, #0f4c6b 80%);
  border-radius: 10px 10px 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
}

.service-top img {
  width: 70px;
  height: 70px;
}

.service-top img.img-mouse {
  width: 52px;
  height: 52px;
}

.service-top img.img-microbe {
  width: 43px;
  height: 43px;
}

.service-top img.img-spider {
  width: 50px;
  height: 50px;
}

.service-top img.img-breeze {
  width: 60px;
  height: 60px;
}

.service {
  background-color: white;
  width: 100%;
  max-width: 380px;
  border-radius: 10px;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
  border: 0.5px solid rgb(228, 228, 228);
}

.service-description {
  display: flex;
  flex-direction: column;
  width: 90%;
  margin: 0 auto;
  padding: 15px;
  padding-bottom: 30px;
  gap: 9px;
}

.service-description h3 {
  color: #125d74;
  font-size: 1.5rem;
}

.service-description p {
  color: #0a313d;
  line-height: 160%;
  font-weight: 400;
}

/* Service List END */

/* Stages START */
.stages-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 18px;
  margin: 60px auto;
  margin-bottom: 0;
  align-items: center;
  justify-content: center;
}

.stage {
  position: relative;
  text-align: center;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  place-items: center;
  width: 100%;
  max-width: 300px;
  max-height: 320px;
  gap: 10px 20px;
  background-color: white;
  padding: 40px;
  border: 1px rgba(0, 0, 0, 0.1) solid;
  border-radius: 15px;
  box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.1);
  line-height: 140%;
}

.stage h3 {
  color: #125576;
  font-size: 1.1rem;
}

.img-block {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
}

.stage-num {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(120deg, #4d96c9, #54ddcd);
  color: white;
  font-weight: bold;
  border-radius: 50%;
  font-size: 1.3rem;
  box-shadow: 0px 0px 8px 0px #4d96c9;
}
/* Stages END */

/* Reviews START */
.reviews-container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-left: 20px;
  padding-right: 20px;
  justify-items: center;
}

.review {
  background-color: var(--white-dark);
  border-radius: 15px;
  width: 100%;
  max-width: 370px;
  border: 0.5px solid rgb(228, 228, 228);
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
}

.review-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  line-height: 150%;
}

.review-wrapper p {
  color: #0a313d;
}

.review-wrapper hr {
  color: rgba(128, 128, 128, 0.205);
}

.review-top {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.review-top span {
  font-size: 1.1rem;
  font-weight: 600;
  color: #126088;
}

.review-top p {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(128, 128, 128, 0.877);
  margin-left: auto;
}

/* Reviews END */

/* Contacts START */

.contacts-container {
  display: flex;
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  margin-top: 60px;
  padding-left: 20px;
  padding-right: 20px;
  gap: 30px;
}

.contacts-title {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contacts-title h2 {
  color: #125b72;
  font-size: 1.8rem;
}

.contacts-title p {
  line-height: 150%;
}

.contacts-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.links-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.link {
  display: flex;
  gap: 15px;
  width: 100%;
  max-width: 540px;
  background-color: white;
  padding: 18px;
  border-radius: 15px;
  border: 0.5px solid rgb(228, 228, 228);
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);
}

.link-text {
  display: flex;
  gap: 7px;
  flex-direction: column;
}

.link-text span {
  font-size: 1.1rem;
  font-weight: 700;
  color: #15657e;
}

.link-text a {
  color: var(--orange);
  word-break: break-all;
}

.circle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #4d96c9, #248b7f);
  width: 50px;
  height: 50px;
  border-radius: 30px;
  flex-shrink: 0;
}

.circle img {
  display: block;
}

.mirrored {
  transform: rotate(270deg);
}

.max-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: linear-gradient(120deg, #2977a1, #198ec9);
  color: white;
  border-radius: 20px;
  padding: 11px;
  padding-left: 16px;
  padding-right: 16px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  width: fit-content;
}

.max-link p {
  color: white;
}

.max-link img {
  display: block;
}

.contacts-banner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #175a7e 20%, #165e82 80%);
  color: white;
  padding: 42px;
  padding-top: 60px;
  padding-bottom: 60px;
  border-radius: 15px;
  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.2);
}

.contacts-banner h3 {
  font-size: 1.5rem;
}
/* Contacts END */

/* Footer START */
footer {
  background: linear-gradient(120deg, #164964, #155677);
}

.footer {
  padding-top: 40px;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
  color: white;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  width: 100%;
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.footer-title {
  max-width: 380px;
  line-height: 150%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-title p {
  color: rgba(255, 255, 255, 0.877);
  font-weight: 500;
}

.footer-ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  padding-left: 12px;
  color: #fd9051;
  line-height: 130%;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  text-align: center;
}

.footer-bottom hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.1); /* Firefox */
  background-color: rgba(255, 255, 255, 0.1); /* Chromium */
  width: 100%;
}

.white {
  color: white;
}

.black {
  color: black;
}
/* Footer END */

/* ==================== */
/* МЕДИА ЗАПРОСЫ */
/* ==================== */

/* Планшеты (ширина до 992px) */
@media screen and (max-width: 992px) {
  /* Общие контейнеры */
  .container,
  .services-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Header */
  .header {
    height: auto;
    min-height: 80px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-left p {
    font-size: 0.9rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .header-right ul {
    gap: 12px;
    font-size: 1rem;
  }

  /* Article */
  article {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .article-container h1 {
    font-size: 2.8rem;
  }

  .article-container h2 {
    font-size: 1.2rem;
  }

  /* Service List */
  .service-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  /* Stages */
  .stages-container {
    gap: 50px 18px;
  }

  /* Reviews */
  .reviews-container {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contacts */
  .contacts-container {
    flex-direction: column;
  }

  .contacts-banner {
    width: 100%;
  }

  .link {
    max-width: 100%;
  }

  /* Footer */
  .footer-top {
    gap: 40px;
  }

  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Мобильные устройства (ширина до 768px) */
@media screen and (max-width: 768px) {
  section,
  [id] {
    scroll-margin-top: 160px;
  }

  /* Header */
  .header {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .header-left {
    text-align: center;
  }

  .header-right {
    margin-left: 0;
    width: 100%;
  }

  .header-right ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  .header-btn {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  /* Article */
  article {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .article-container h1 {
    font-size: 2rem;
  }

  .article-container h2 {
    font-size: 1rem;
  }

  /* Service List */
  .service-list {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service {
    max-width: 100%;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .section-title p {
    font-size: 0.9rem;
  }

  /* Stages */
  .stages-container {
    flex-direction: column;
    gap: 45px;
  }

  .stage {
    max-width: 100%;
  }

  /* Reviews */
  .reviews-container {
    grid-template-columns: 1fr;
  }

  .review {
    max-width: 100%;
  }

  .review-top {
    justify-content: space-between;
  }

  .review-top p {
    margin-left: 0;
  }

  /* Contacts */
  .contacts-container {
    margin-top: 40px;
  }

  .contacts-title h2 {
    font-size: 1.5rem;
  }

  .link {
    padding: 15px;
  }

  .link-text {
    font-size: 0.9rem;
  }

  .contacts-banner {
    padding: 30px 20px;
  }

  .contacts-banner h3 {
    font-size: 1.3rem;
  }

  .contacts-banner p {
    font-size: 1rem;
  }

  /* Footer */
  .footer {
    gap: 30px;
  }

  .footer-top {
    gap: 30px;
    justify-content: flex-start;
  }

  .footer-title {
    max-width: 100%;
  }
}

/* Маленькие мобильные устройства (ширина до 480px) */
@media screen and (max-width: 480px) {
  /* Общие отступы */
  .section-top {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  /* Header */
  .logo {
    font-size: 1.3rem;
  }

  .header-left p {
    font-size: 0.8rem;
  }

  .header-right ul {
    gap: 10px;
    font-size: 0.9rem;
  }

  .header-btn span {
    display: none;
  }

  .header-btn {
    padding: 8px;
  }

  /* Article */
  .article-container h1 {
    font-size: 1.6rem;
  }

  .article-container h2 {
    font-size: 0.9rem;
  }

  .article-banner p {
    font-size: 0.85rem;
    padding: 10px;
  }

  /* Service List */
  .service-description h3 {
    font-size: 1.3rem;
  }

  .service-description p {
    font-size: 0.9rem;
  }

  /* Stages */
  .stage {
    padding: 30px 20px;
  }

  .stage p {
    font-size: 0.9rem;
  }

  /* Reviews */
  .review-wrapper {
    padding: 20px;
  }

  .review-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .review-top p {
    margin-left: 0;
  }

  /* Contacts */
  .link {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .circle {
    align-self: flex-start;
  }

  .max-link {
    width: 100%;
    justify-content: center;
  }

  .contacts-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .contacts-img img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  /* Footer */
  .footer {
    padding-top: 30px;
    padding-bottom: 20px;
  }

  .footer-title h3 {
    font-size: 1.2rem;
  }

  .footer-title p {
    font-size: 0.9rem;
  }

  .footer-ul {
    font-size: 0.9rem;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }
}
