:root {
  --font-family: "Open Sans", sans-serif;
  --second-family: "Arial", sans-serif;
  --text-1: #131a28;
  --text-2: #5c5c65;
  --dark-main: #345182;
  --main: #4c699b;
  --accent: #fa6700;
  --light: #f7f6f6;
  --white: #fff;
}

html {
  scroll-behavior: smooth;
}

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

#main-page {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--dark-main);
  background: var(--white);
}

ul,
ol {
  padding: 0;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

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

a {
  text-decoration: none;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

article > * + * {
  margin-top: 1em;
}

input,
button,
textarea,
select {
  font: inherit;
}

button {
  border: none;
  background: inherit;
  cursor: pointer;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

#main-page #dialog-review {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(102, 100, 100, 0.6);
  border: none;
  z-index: 99999;
}

#main-page .modal-content {
	max-height: 600px;
  position: relative;
  padding: 40px;
  border-radius: 6px;
}

#main-page #dialog-img {
  max-width: 100%;
  width: 400px;
  max-height:600px;

}

#main-page .section {
  max-width: 1024px;
  margin: 0 auto;
}

#main-page .container {
  max-width: 1302px;
  margin: 0 auto;
}

#main-page .hero {
  background-image: url(https://agnistroy.by/wp-content/themes/agmi/assets/img/hero-background.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

#main-page .hero__wrapper {
  max-width: 780px;
  padding: 80px 0 60px;
}

#main-page .hero__title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.05;
}

#main-page .hero__title--descr {
  color: var(--accent);
}

#main-page .hero__made {
  margin: 10px 0 40px;
  display: block;
  font-size: 32px;
  color: var(--text-1);
}

#main-page .hero__descr {
  max-width: 664px;
  font-size: 20px;
  color: var(--text-1);
}

#main-page .hero__descr--payment {
  font-weight: 800;
}

#main-page .btn {
  padding: 14px 28px;
  font-family: var(--second-family);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  background: var(--accent);
  border-radius: 6px;
}

#main-page .btn__payment {
  margin-top: 30px;
}

#main-page .btn:hover,
#main-page .btn:focus {
  background: #ff9213;
}

#main-page .btn:active {
  background: #ff0000;
}

#main-page .btn:disabled {
  background: #b8b3b3;
}

#main-page .hero__list {
  margin: 0 auto;
  display: flex;
  gap: 30px;
  justify-content: center;
}

#main-page .hero__list > li {
  width: 240px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--dark-main);
  border-radius: 6px;
  opacity: 0.8;
}

#main-page .hero__list > li > img {
  width: 48px;
  height: 48px;
}

#main-page .hero__text {
  margin-top: 6px;
  text-align: center;
  font-size: 16px;
  color: var(--white);
}

#main-page .title {
  margin-bottom: 60px;
  text-align: center;
  font-size: 48px;
  font-weight: 800;
}

#main-page .services {
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#main-page .services__list {
  margin: 0 0 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

#main-page .services__list > li {
  position: relative;
  overflow: hidden;
}

#main-page .services__name {
  width: 100%;
  height: 55px;
  padding: 10px;
  position: absolute;
  bottom: 0;
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--dark-main);
  background: var(--white);
  opacity: 0.8;
}

#main-page .services__list > li :hover .services__name,
#main-page .services__list > li :focus .services__name {
  text-decoration: underline;
}

#main-page .order {
  background-image: url(https://agnistroy.by/wp-content/themes/agmi/assets/img/blue-background.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#main-page .order__list {
  display: grid;
  gap: 0 30px;
  grid-template-areas:
    "a a b b"
    "c c e e"
    "d d . .";
}

#main-page .order__item--first {
  grid-area: a;
}
#main-page .order__item--second {
  grid-area: c;
}
#main-page .order__item--theerd {
  grid-area: d;
}
.order__item--four {
  grid-area: b;
}
#main-page .order__item--five {
  grid-area: e;
}

#main-page .order__list label,
#main-page .form__item-label {
  margin-bottom: 4px;
  display: block;
  font-size: 16px;
  color: var(--text-1);
}

#main-page .order__list input,
#main-page .form__item-input {
  padding: 20px;
  background: var(--light);
  border: 1px solid var(--main);
  border-radius: 6px;
}

#main-page .order__list .order__input {
  padding: 20px 20px 45px;
}

#main-page .order__list label,
#main-page .order__list input,
#main-page .form__item-label {
  width: 100%;
}

#main-page .order__wrapper {
  padding: 100px 0;
}

#main-page .order__title {
  margin-bottom: 0;
}

#main-page .order__form {
  padding: 60px;
  background: var(--white);
  border-radius: 6px;
}

#main-page .order__text {
  margin: 10px 0 30px;
  text-align: center;
  font-size: 24px;
  color: var(--text-1);
}

#main-page .order__box {
  display: flex;
  align-items: center;
}

#main-page .order__terms {
  margin-left: 20px;
}

#main-page .order__terms,
#main-page .order__descr {
  font-size: 16px;
  color: var(--text-1);
}

#main-page .order__btn {
  width: 100%;
  margin-top: 25px;
  padding: 15px 120px;
}

#main-page .order__list .order__labelTerms {
  width: 24px;
  height: 24px;
  position: relative;
  display: block;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#main-page .order__labelTerms input {
  height: 0;
  width: 0;
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

#main-page .checkmark {
  width: 24px;
  height: 24px;
  position: absolute;
  top: 0;
  left: 0;
  border: 1px solid var(--main);
  border-radius: 4px;
}

#main-page .order__labelTerms:hover input ~ .checkmark,
#main-page .order__labelTerms input:checked ~ .checkmark {
  background-color: inherit;
}

#main-page .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

#main-page .order__labelTerms input:checked ~ .checkmark:after {
  display: block;
}

#main-page .order__labelTerms .checkmark:after {
  width: 100%;
  height: 100%;
  top: 6px;
  left: 4px;
  background-image: url(https://agnistroy.by/wp-content/themes/agmi/assets/svg/union.svg);
  background-repeat: no-repeat;
}

#main-page .about__box {
  padding: 100px 0;
  background-image: url(https://agnistroy.by/wp-content/themes/agmi/assets/img/belarus-map.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#main-page .about__title {
  margin: 60px 0 40px;
  text-align: center;
  font-size: 32px;
  font-weight: 700;
}

#main-page .about__text {
  margin: 20px 0 14px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

#main-page .about__descr {
  font-size: 20px;
  text-align: center;
  color: var(--text-1);
}

#main-page .about__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

#main-page .about__list > li {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#main-page .about__list--second > li {
  padding-bottom: 26px;
}
#main-page .about__list > li img {
  width: 62px;
  height: 62px;
}

#main-page .about__title--second {
  margin-top: 80px;
}

#main-page .sertificate__title {
  margin-bottom: 60px;
}

#main-page .sertificate__text {
  margin: 60px 0 20px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
}

#main-page .sertificate__decr {
  max-width: 1104px;
  margin: 0 auto;
  text-align: center;
  font-size: 20px;
  color: var(--text-1);
}

#main-page .mySwiper {
  max-width: 1218px;
  margin: 0 auto;
  padding: 0 96px;
  transition: transform 0.3s, opacity 0.3s;
}

#main-page .mySwiper .swiper-slide img {
  max-height: 510px;
  max-width: 368px;
  width: 100%;
  display: block;
  transform: scale(0.8);
  transition: transform 0.3s;
}

#main-page .mySwiper .swiper-slide-active img {
  transform: scale(1.05);
}

#main-page .swiper-wrapper {
  display: flex;
  align-items: center;
}

#main-page .swiper-button-prev,
#main-page .swiper-button-next {
  height: 100%;
  width: 48px;
  top: 2%;
  z-index: 100;
  background: var(--white);
}

#main-page .swiper-button-prev::after,
#main-page .swiper-button-next::after,
#main-page .swiper-button-prev-works::after,
#main-page .swiper-button-next-works::after,
#main-page .swiper-button-prev-works--vertical::after,
#main-page .swiper-button-next-works--vertical::after,
#main-page .swiper-button-next-reviews::after,
#main-page .swiper-button-prev-reviews::after {
  content: url(https://agnistroy.by/wp-content/themes/agmi/assets/svg/arrow-slider-1.svg);
}

#main-page .swiper-button-prev-works::after,
#main-page .swiper-button-next-works::after {
  position: absolute;
  top: 22%;
  left: 40%;
  z-index: 100;
}

#main-page .swiper-button-prev-works--vertical::after,
#main-page .swiper-button-next-works--vertical::after {
  position: absolute;
  top: 36%;
  left: 40%;
}

#main-page .swiper-button-next-works--vertical::after {
  top: 46%;
}

#main-page .swiper-button-prev-works,
#main-page .swiper-button-next-works,
#main-page .swiper-button-prev-works--vertical,
#main-page .swiper-button-next-works--vertical,
#main-page .swiper-button-next-reviews,
#main-page .swiper-button-prev-reviews {
  width: 48px;
  height: 48px;
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 24px;
  z-index: 100;
  cursor: pointer;
}

#main-page .swiper-button-prev-works,
#main-page .swiper-button-next-works,
#main-page .swiper-pagination--works {
  position: relative;
}

#main-page .swiper-button-prev-works--vertical,
#main-page .swiper-button-next-works--vertical {
  height: 158px;
  left: 55px;
  background-color: var(--white);
  border-radius: 0;
}

#main-page .swiper-button-prev-works--vertical {
  top: -66px;
  transform: rotate(270deg);
}
#main-page .swiper-button-next-works--vertical {
  top: 83%;
  transform: rotate(90deg);
}

#main-page .swiper-button-prev-works {
  left: 0;
  right: auto;
  bottom: 0;
  top: auto;
  transform: rotate(180deg);
}

#main-page .swiper-pagination--works {
  padding-top: 10px;
  width: 95px;
  display: flex;
  justify-content: center;
  font-size: 32px;
  font-weight: 400;
  line-height: 41.6px;
  z-index: 100;
}

#main-page .slider__wrapper {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
}
#main-page .slider__box {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
}

#main-page .swiper-button-prev::after {
  transform: rotate(180deg);
}

#main-page .swiper-button-prev {
  left: 0;
}
#main-page .swiper-button-next {
  right: 0;
}
#main-page .faq {
  padding: 100px 0;
}

#main-page .accordion {
  margin-top: 60px;
  border-top: 1px solid rgba(76, 105, 155, 0.4);
}

#main-page .accordion__header {
  position: relative;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-main);
  cursor: pointer;
  transition: all 0.2s ease-out;
}

#main-page .accordion__item {
  border-bottom: 1px solid rgba(76, 105, 155, 0.4);
}

#main-page .accordion__header--ligth {
  color: var(--dark-main);
}

#main-page .accordion__header::after {
  width: 48px;
  height: 48px;
  margin-left: 20px;
  content: "";
  flex-shrink: 0;
  background-image: url(https://agnistroy.by/wp-content/themes/agmi/assets/svg/plus.svg);
  background-repeat: no-repeat;
  background-size: 48px;
  transition: none;
}

#main-page .accordion__item_show .accordion__header::after {
  background-image: url(https://agnistroy.by/wp-content/themes/agmi/assets/svg/minus.svg);
  transition: none;
}

#main-page .accordion__content {
  padding: 6px 20px 25px;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  color: var(--text-2);
}

#main-page .accordion__text {
  margin-bottom: 6px;
}

#main-page .accordion__item:not(.accordion__item_show) .accordion__body {
  display: none;
}

#main-page .accordion__header p,
#main-page .accordion__content p {
    width: 100%;
  max-width: 918px;
}

#main-page .done {
  padding-bottom: 100px;
}

#main-page .done__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

#main-page .done__list img {
  width: 100%;
  height: 100%;
}

#main-page .swiper-wrapper-works .swiper-slide,
#main-page.mySwiper3 {
  max-height: 530px;
}
#main-page .test,
#main-page .swiper-slide.works__slide {
  display: flex;
}
#main-page .works {
  padding-bottom: 100px;
}

#main-page .mySwiper2 {
  max-width: 680px;
  height: 100%;
  margin: 0 30px;
}

#main-page .mySwiper3 {
  height: 100%;
  width: 158px;
  padding: 35px 0;
  grid-area: a;
}

#main-page .mySwiper3 .swiper-slide,
#main-page .mySwiper2 .swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
}

#main-page .mySwiper2 .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

#main-page .mySwiper3 .swiper-slide img {
  height: 100%;
  width: 158px;
  border-radius: 6px;
}

#main-page .works__container {
  min-height: 100%;
  padding-top: 78px;
  grid-area: c;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-content: stretch;
}

#main-page .works__title--second {
  font-size: 32px;
  font-weight: 700;
}

#main-page .works__name {
  margin: 24px 0;
  font-size: 20px;
  color: var(--text-2);
}

#main-page .works__descr {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-2);
}

#main-page .works__numbers {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-1);
}

#main-page .works__wrapper {
  max-width: 322px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#main-page .swiper__works--vertical {
  max-height: 562px;
  width: 158px;
  padding: 35px 0;
  margin: auto 30px auto 0;
}

#main-page .works__btn {
  width: 220px;
}

#main-page .swiper-pagination-current {
  margin-right: 8px;
}

#main-page .swiper-pagination-total {
  margin-left: 8px;
  font-size: 24px;
  color: var(--text-2);
}

#main-page .swiper-button-prev-works--vertical.swiper-button-disabled,
#main-page .swiper-button-next-works--vertical.swiper-button-disabled,
#main-page .swiper-button-prev-works.swiper-button-disabled,
#main-page .swiper-button-next-works.swiper-button-disabled {
  opacity: 0.35;
  cursor: auto;
  pointer-events: none;
}

#main-page .reviews {
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#main-page .swiper__reviews {
  max-width: 1216px;
}

#main-page .swiper__slide {
  padding: 0 96px;
  display: grid;
  grid-template-areas:
    "a  b"
    "a  c";
}

#main-page .reviews__img {
	max-width:300px;
	width:auto;
  margin-right: 60px;
  grid-area: a;
}
#main-page .reviews__wrap {
  grid-area: c;
}

#main-page .reviews__box {
  grid-area: b;
}

#main-page .reviews__box {
  min-height: 100%;
  color: var(--text-1);
}

#main-page .reviews__name {
  font-size: 24px;
  font-weight: 700;
}

#main-page .reviews__post {
  margin: 10px 0 20px;
  display: block;
  font-size: 20px;
  color: var(--text-2);
}

#main-page .reviews__company {
  font-size: 20px;
  font-weight: 600;
}

#main-page .reviews__descr {
  margin: 30px 0 0;
  font-size: 16px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}

#main-page .reviews__wrap {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

#main-page .reviews__btnRead,
#main-page .reviews__btnLook {
  max-height: 54px;
  margin-top: auto;
  padding: 12px 52px;
  font-family: var(--second-family);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-main);
  border: 1px solid var(--accent);
  border-radius: 6px;
}

#main-page .reviews__btnLook {
  border: 1px solid var(--main);
}

#main-page .swiper-button-prev-reviews,
#main-page .swiper-button-next-reviews {
  top: 50%;
  transform: translate(-50%);
}
#main-page .swiper-button-prev-reviews::after,
#main-page .swiper-button-next-reviews::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
#main-page .swiper-button-prev-reviews {
  left: -20px;
  rotate: 180deg;
}

#main-page .reviews__btn {
  margin: 40px 0 0;
}

#main-page .works__wrapper--second {
  margin-top: 14px;
}

#main-page .services__btn {
  padding-left: 55px;
  padding-right: 55px;
}

#main-page .done__btn {
  display: none;
}

#main-page .services__list li.visible {
  display: list-item;
}

#main-page .reviews__descr.full {
  -webkit-line-clamp: unset;
}
#main-page .form__title {
  margin-bottom: 30px;
  color: var(--dark-main);
}
#main-page .form__wrap {
	margin-bottom:0;
	align-items: self-start;
    flex-direction: column;
  gap: 20px;
}
#main-page .form__box {
  position: relative;
}
#main-page .form__terms {
  margin-left: 40px;
  padding-top: 2px;
}
#main-page .form__item-label {
max-width:100%;
  display: flex;
  flex-direction: column;
}
#main-page .footer__form {
    padding-bottom: 0;
    border-bottom:none;
}
#main-page .form__item-btn {
  width: 100%;
  margin-top: 10px;
}
#main-page .dialog {
  padding: 0;
  margin: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--light);
  border: none;
  border-radius: 6px;
}

#main-page dialog:-internal-dialog-in-top-layer::backdrop {
  backdrop-filter: blur(10px);
}

#main-page .modal {
  padding: 60px 80px;
  position: relative;
  display: flex;
  flex-direction: column;
}

#main-page .modal__btn {
  width: 18px;
  height: 18px;
  position: absolute;
  top: 20px;
  right: 20px;
  background-image: url(https://agnistroy.by/wp-content/themes/agmi/assets/svg/cross.svg);
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 18px;
}

#main-page #successMessage,
#main-page #errorMessage {
	  margin: 70px 100px;
  display: none;
  text-align: center;
}

#main-page #successMessage p,
#main-page #errorMessage p {
  font-size: 16px;
}

#main-page .order__box--comment{
margin-bottom:20px;}

@media (width<1400px) {
  #main-page .container {
    padding-left: 30px;
    padding-right: 30px;
  }
  #main-page .hero__list {
    flex-wrap: wrap;
  }
}
@media (width>1199px) {#main-page .order__box--comment {
    margin-top: 20px;
}}
@media (width<1200px) {
  #main-page .container,
  #main-page .section,
  #main-page .sertificate {
    padding-left: 20px;
    padding-right: 20px;
  }

  #main-page .modal {
    padding: 30px 40px;
  }

  #main-page .hero__list {
    gap: 20px;
  }

  #main-page .hero__wrapper {
    padding: 40px 0 60px;
  }

  #main-page .hero__title {
    font-size: 48px;
  }

  #main-page .hero__made {
    margin: 10px 0 20px;
    font-size: 25px;
  }
  #main-page .hero__descr {
    max-width: 420px;
    font-size: 20px;
  }
  #main-page .btn__payment {
    margin-top: 20px;
  }

  #main-page .services {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  #main-page .title {
    margin-bottom: 40px;
    font-size: 40px;
    line-height: 1.2;
  }
  #main-page .services__list {
    max-height: 668px;
    margin-bottom: 40px;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    overflow: hidden;
  }

  #main-page .order__wrapper {
    padding: 80px 0;
  }

  #main-page .order__form {
    width: calc(100% - 170px);
    margin: 0 auto;
    padding: 40px 60px;
  }

  #main-page .order__title {
    margin-bottom: 0;
  }

  #main-page .order__text {
    margin: 14px 0 30px;
    font-size: 20px;
  }

  #main-page .order__list {
    gap: 20px;
    grid-template-areas:
      "a  "
      "c "
      "b "
      "d   "
      " e  ";
  }


  #main-page .order__btn {
    margin-top: 20px;
    padding: 15px 0;
  }
  #main-page .about__box {
    padding: 80px 0;
  }
  #main-page .about__title {
    margin: 20px 0 40px;
    font-size: 28px;
  }
  #main-page .about__list > li {
    padding-bottom: 8px;
  }
  #main-page .about__list--second > li {
    padding-bottom: 26px;
  }

  #main-page .about__text {
    max-width: 182px;
    margin: 10px 0 6px;
    font-size: 20px;
    line-height: 1.3;
  }

  #main-page .about__descr {
    max-width: 230px;
    font-size: 16px;
  }

  #main-page .about__list--second .about__text {
    margin: 10px 0 20px;
  }

  #main-page .mySwiper {
    max-width: 728px;
    padding: 0 58px;
  }

  #main-page .swiper-button-prev {
    left: 0;
  }
  #main-page .sertificate__text {
    margin: 40px auto 12px;
    font-size: 24px;
  }
  #main-page .sertificate__decr {
    font-size: 16px;
  }
  #main-page .accordion__header {
    padding: 20px;
  }
  #main-page .done__list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  #main-page .done,
  #main-page .works {
    padding-bottom: 80px;
  }

  #main-page .works__title--second {
    font-size: 24px;
  }

  #main-page .works__name {
    margin: 14px 0;
  }

  #main-page .works__wrapper--second {
    margin-top: 10px;
  }

  #main-page .swiper__slide {
    padding: 0 78px;
    grid-template-areas:
      "a  b"
      "c c";
  }

  #main-page .swiper__reviews {
    max-width: 100%;
    height: auto;
  }
  #main-page .reviews__img {
    max-height: 280px;
    width: 200px;
    margin-right: 20px;
  }
  #main-page .reviews__post {
    margin: 8px 0 10px;
  }
  #main-page .reviews__descr {
    margin: 20px 0 0;
  }

  #main-page .reviews__wrap {
    margin-top: 22px;
  }

  #main-page .swiper-button-prev-reviews,
  #main-page .swiper-button-next-reviews {
    top: 34%;
  }
  #main-page .faq {
    padding: 80px 0;
  }
  #main-page .about__list > li img {
    width: 48px;
    height: 48px;
  }
  #main-page .form__terms {
    padding-top: 0;
  }
  #main-page .mySwiper2 {
    max-width: 550px;
  }

  #main-page .swiper-wrapper-works .swiper-slide,
  #main-page .mySwiper3 {
    max-height: 450px;
  }
  #main-page .swiper-button-next-works--vertical {
    top: 80%;
  }
}

@media (width<1100px) {
  #main-page .mySwiper2 {
    max-width: 500px;
  }
}
@media (width<1000px) {
  #main-page .swiper__works {
    margin: 0 auto;
  }

  #main-page .swiper-slide.works__slide {
    flex-direction: column;
  }

  #main-page .works__btn {
    position: absolute;
    bottom: 0;
    right: 0;
  }
  #main-page .works__container {
    width: 100%;
    margin-left: 0;
    padding-top: 20px;
    position: relative;
  }
  #main-page .mySwiper2 {
    max-width: calc(100% - 160px);
    height: 440px;
    margin: 0 0 0 20px;
    grid-area: b;
  }
  #main-page .swiper-wrapper-works .swiper-slide,
  #main-page .mySwiper3 {
    max-height: 610px;
  }

  #main-page .mySwiper3 {
    width: 140px;
    height: 440px;
  }

  #main-page .mySwiper3 .swiper-wrapper .swiper-slide {
    height: 90px;
  }

  #main-page .swiper-button-next-works--vertical {
    top: 80%;
  }
  #main-page .swiper-button-next-works--vertical::after {
    left: 34%;
  }
  #main-page .slider__wrapper {
    top: auto;
    bottom: 14%;
  }
}
@media (width<768px) {
	  #main-page #successMessage,
  #main-page #errorMessage {
    margin: 20px 25px;
  }
	#main-page .order__box--comment{
margin-bottom:10px;}
  #main-page .container,
  #main-page .section {
    padding-left: 10px;
    padding-right: 10px;
  }

  #main-page .hero__wrapper {
    padding: 40px 0;
  }

  #main-page .hero__title {
    font-size: 44px;
    line-height: 1;
  }

  #main-page .hero__made {
    align-self: baseline;
    font-size: 20px;
  }
  #main-page .hero__descr {
    font-size: 16px;
  }
  #main-page .btn__payment {
    width: 300px;
    padding: 10px 0;
  }
  #main-page .hero__list {
    gap: 10px;
  }

  #main-page .hero__list > li {
    max-width: 145px;
    padding: 10px 5px;
  }

  #main-page .hero__list > li > img {
    width: 36px;
    height: 36px;
  }

  #main-page .hero__text {
    margin-top: 4px;
    font-size: 13px;
  }

  #main-page .services {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  #main-page .title {
    margin-bottom: 20px;
    font-size: 28px;
    line-height: 1.1;
  }
  #main-page .services__list {
    max-height: 572px;
    width: 280px;
    margin-bottom: 20px;
    grid-template-columns: repeat(1, 1fr);
    gap: 12px;
  }

  #main-page .order__wrapper,
  #main-page .faq {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  #main-page .accordion {
    margin-top: 20px;
  }

  #main-page .accordion__header {
    padding: 6px 10px;
    font-size: 14px;
  }

  #main-page .accordion__header::after {
    width: 36px;
    height: 36px;
    background-size: 36px;
  }

  #main-page .accordion__content {
    padding: 0 40px 6px 10px;
    font-size: 13px;
  }
  #main-page .accordion__text {
    margin-bottom: 2px;
  }
  #main-page .order__form {
    max-width: 500px;
    width: calc(100% - 40px);
    margin: 0 auto;
  }

  #main-page .order__title {
    margin-bottom: 0;
  }

  #main-page .order__text {
    margin: 14px 0 20px;
    font-size: 16px;
  }

  #main-page .order__list {
    gap: 10px;
  }

  #main-page .order__list label {
    font-size: 14px;
  }

  #main-page .order__list input {
    padding: 20px 10px;
  }
  #main-page .order__list .order__input {
    padding: 20px 10px 45px;
  }
  #main-page .order__terms {
    margin-left: 10px;
    font-size: 12px;
  }
  #main-page .order__descr {
    font-size: 12px;
  }

  #main-page .order__btn {
    width: 100%;
  }

  #main-page .order__box {
    margin: 0 0 10px;
  }
  #main-page .btn {
    margin-top: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    font-size: 16px;
  }
  #main-page .services__btn {
    max-width: 300px;
    width: 100%;
  }
  #main-page .about__box {
    padding: 40px 0;
    background-image: url(https://agnistroy.by/wp-content/themes/agmi/assets/img/belarus-map-768.jpg);
    background-size: contain;
    background-position: top;
  }
  #main-page .about__title {
    margin: 20px 0 14px;
    font-size: 20px;
  }

  #main-page .about__list > li,
  #main-page .about__list--second > li {
    padding-bottom: 10px;
  }

  #main-page .about__text {
    max-width: 100%;
    margin: 10px 0 8px;
    font-size: 16px;
  }

  #main-page .about__descr {
    max-width: 100%;
    font-size: 12px;
  }

  #main-page .about__list--second .about__text {
    margin: 10px 0 8px;
  }
  #main-page .sertificate {
    padding-left: 0;
    padding-right: 0;
  }
  #main-page .mySwiper {
    padding: 0 0 46px;
  }

  #main-page .swiper-button-prev,
  #main-page .swiper-button-next {
    width: 36px;
    height: 36px;
    top: 98%;
    right: 35%;
  }

  #main-page .swiper-button-prev {
    left: 35%;
  }
  #main-page .sertificate__text {
    width: calc(100% - 40px);
    margin: 20px auto 10px;
    font-size: 21px;
  }
  #main-page .sertificate__decr {
    width: calc(100% - 40px);
    font-size: 13px;
  }

  #main-page .done,
  #main-page .works {
    padding-bottom: 80px;
  }
  #main-page .done__btn {
    max-width: 300px;
    width: 100%;
    margin: 20px auto 0;
    display: block;
  }

  #main-page .test {
    flex-direction: column-reverse;
  }

  #main-page .mySwiper3 .swiper-slide img {
    width: 100%;
  }

  #main-page .mySwiper2 {
    max-width: 100%;
    max-height: 440px;
    height: auto;
    margin: 0;
  }
  #main-page .swiper-wrapper-works .swiper-slide {
    max-height: 780px;
  }

  #main-page .mySwiper3 {
    width: 100%;
    height: auto;
    padding: 10px 0 20px;
  }

  #main-page .swiper-button-prev-works--vertical,
  #main-page .swiper-button-next-works--vertical {
    width: 36px;
    height: 36px;
    top: 26%;
    background: inherit;
  }
  #main-page .swiper-button-prev-works--vertical {
    top: 28%;
    left: 0;
    rotate: -90deg;
  }

  #main-page .swiper-button-next-works--vertical {
    left: auto;
    right: 0px;
    rotate: 270deg;
  }

  #main-page .swiper-button-prev-works--vertical::after {
    top: 14%;
    left: 26%;
  }

  #main-page .swiper-button-next-works--vertical::after {
    top: 14%;
    left: 20%;
  }

  #main-page .swiper-button-prev-works,
  #main-page .swiper-button-next-works {
    width: 36px;
    height: 36px;
  }
  #main-page .swiper-pagination--works {
    padding-top: 5px;
  }
  #main-page .slider__wrapper {
    top: auto;
    bottom: 52px;
    right: 50%;
    transform: translate(50%);
  }

  #main-page .swiper-button-prev-works::after,
  #main-page .swiper-button-next-works::after {
    top: 12%;
  }

  #main-page .works__img {
    min-height: auto;
    width: 100%;
  }
  #main-page .works__container {
    width: 100%;
    padding-top: 0;
    text-align: center;
  }

  #main-page .works__title--second {
    font-size: 20px;
  }

  #main-page .works__descr,
  #main-page .works__numbers {
    font-size: 14px;
    line-height: 1.1;
  }

  #main-page .works__wrapper {
    max-width: 230px;
    margin: 0 auto;
  }

  #main-page .works__name {
    margin: 4px 0 10px;
    font-size: 14px;
  }

  #main-page .works__wrapper--second {
    margin-top: 6px;
  }

  #main-page .works__btn {
    width: 300px;
    margin: 76px auto 0;
    position: relative;
  }

  #main-page .swiper__slide {
    padding: 0;
    grid-template-areas:
      "a  "
      "  b"
      "c ";
  }

  #main-page .reviews {
    padding-left: 10px;
    padding-right: 10px;
  }

  #main-page .swiper__reviews {
    max-width: 100%;
    height: auto;
  }
  #main-page .reviews__img {
    max-height: 422px;
    max-width: 300px;
    width: 100%;
    margin: 0 auto;
  }

  #main-page .reviews__name {
    margin-top: 10px;
    font-size: 20px;
  }
  #main-page .reviews__post {
    margin: 6px 0 4px;
    font-size: 14px;
  }
  #main-page .reviews__company {
    font-size: 14px;
  }
  #main-page .reviews__descr {
    margin: 10px 0 0;
    font-size: 12px;
  }

  #main-page .reviews__wrap {
    margin-top: 20px;
    flex-direction: column;
    align-items: center;
  }

  #main-page .swiper-button-prev-reviews,
  #main-page .swiper-button-next-reviews {
    display: none;
  }

  #main-page .reviews__btnRead,
  #main-page .reviews__btnLook {
    max-width: 300px;
    width: 100%;
    padding: 10px 52px;
    font-size: 16px;
  }

  #main-page .reviews__btnRead {
    margin-bottom: 10px;
  }

  #main-page .reviews__btn {
    max-width: 300px;
    width: 100%;
    margin-top: 20px;
  }

  #main-page .swiper.mySwiper {
    width: 100%;
  }

  #main-page .mySwiper .swiper-slide {
    background-position: center;
    background-size: cover;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  #main-page .done__list li {
    display: none;
  }

  #main-page .done__list li.visible {
    display: list-item;
  }

  #main-page .services__name {
    height: auto;
    padding: 12px 10px;
    font-size: 20px;
  }
  #main-page .swiper-button-prev::after {
    position: absolute;
    top: 0px;
  }

  #main-page .modal {
    padding: 20px 30px;
  }

  #main-page .form__title {
    margin-bottom: 10px;
  }

  #main-page .form__terms {
    margin-left: 30px;
  }

  #main-page .modal__btn {
    top: 10px;
    right: 10px;
  }

  #main-page .form__item-input {
    padding: 10px;
  }
  #main-page .swiper-button-next-works--vertical::after,
  #main-page .swiper-button-prev-works--vertical::after {
    content: url(https://agnistroy.by/wp-content/themes/agmi/assets/svg/arrow-slider-white.svg);
  }
}

@media (width<650px) {
  #main-page .mySwiper3 .swiper-wrapper .swiper-slide {
    height: 75px;
  }
}

@media (width<550px) {
  #main-page .swiper-button-prev,
  #main-page .swiper-button-next {
    top: 96.5%;
  }

  #main-page .swiper-button-next-works--vertical,
  #main-page .swiper-button-prev-works--vertical {
    top: 18%;
  }
		#main-page .dialog{
		width:280px;
	}
	#main-page .form__wrap{
		display:flex;
		gap:10px;
	}
}

@media (width<450px) {
  #main-page .order__form {
    padding: 40px 20px;
  }
  #main-page .hero {
    background-image: url(https://agnistroy.by/wp-content/themes/agmi/assets/img/hero-320.jpg);
    background-position: top -220px center;
  }
  #main-page .hero__title {
    font-size: 32px;
  }
  #main-page .hero__wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #main-page .hero__made {
    margin: 8px 0 30px;
  }
  #main-page .done__list {
    grid-template-columns: repeat(1, 1fr);
    gap: 10px;
  }
  #main-page .about__list {
    grid-template-columns: repeat(1, 1fr);
  }
  #main-page .swiper-button-prev,
  #main-page .swiper-button-next {
    top: 95.5%;
  }

  #main-page .swiper-button-prev {
    top: 96%;
  }
  #main-page .swiper-button-prev::after {
    top: -2px;
  }
  #main-page .mySwiper3 .swiper-wrapper .swiper-slide {
    height: 55px;
  }
}

@media (width<400px) {
  #main-page .hero {
    background-position: top -120px center;
  }
}

@media (width<350px) {
  #main-page .hero {
    background-position: top -20px center;
  }
  #main-page .mySwiper3 .swiper-wrapper .swiper-slide {
    height: 45px;
  }
}



/* Меняем цвет один раз — остальное подстроится */
:root {
    --nav-highlight: #fa6700; /* можно заменить на любой цвет */
}

.header__nav_create_color {
    position: relative;
}

.header__nav_create_color > a {
    display: block;
    color: var(--nav-highlight);
}
.header__nav_create_color {
  color: var(--nav-highlight) !important;
  text-transform: uppercase;  /* все буквы большими */
    font-weight: 700 !important;           /* пожирнее, но не тяжёлый bold */
}

/* Убираем стандартное подчёркивание ссылки из темы */
.header__nav_create_color > a::after {
    color: var(--nav-highlight);
}

