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

html {
  block-size: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: #f7f7f7;
  font-family: "Manrope", sans-serif;
  overflow-x: hidden;
}

.header__container,
.cover__text,
.about,
.gallery__container,
.services__titles,
.advantages__container,
.faq,
.foter__container {
  width: calc(100% - 14px * 2);
  margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #232323;
}

.h1 {
  font-size: 68px;
  line-height: 68px;
  margin-bottom: 20px;
}

.h2 {
  font-size: 48px;
  margin-block-end: 60px;
}

.h3 {
  font-size: 26px;
  line-height: 30px;
}

p {
  line-height: 23px;
  margin-block-end: 16px;
  font-size: 17px;
  color: #757575;
}

.light {
  color: #f5f5f5;
}

.white {
  color: #f7f7f7;
}

.link-white {
    color:#fff;
    text-decoration: underline;
}

.section-title {
  color: #bababa;
  font-size: 17px;
  font-weight: 400;
  text-transform: uppercase;
  margin-block-end: 40px;
}

.dark {
  color: #b5b5b5;
}

.order-white {
  background: #f7f7f7;
  color: #232323;
}

.order-white::after,
input[type="submit"]::after {
  content: "";
  background: url("/assets/template/img/arrow.svg") no-repeat bottom;
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-left: 12px;
}

.order-black {
  text-align: center;
  background: #232323;
  color: #f7f7f7;
}

.order-black::after {
  content: "";
  background: url("/assets/template/img/arrow-white.svg") no-repeat bottom;
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-left: 12px;
}

/* HEADER*/

.header {
  width: 100%;
  border-bottom: 1px solid #d9d9d9;
}

.header__container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 410px 1fr;
  align-items: center;
  padding: 15px 12px;
}

.header__container::before,
.header__container::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 460px;
  background: linear-gradient(180deg, #d9d9d9, #d9d9d933);
  top: 0;
}

.header__container::before {
  left: 0;
}

.header__container::after {
  right: 0;
}

.header__middle {
  display: flex;
  gap: 24px;
  font-size: 17px;
}

.header__right {
  display: flex;
  justify-content: flex-end;
}

.logo {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logotype {
  max-width: 57px;
}

.sitename {
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
}

.whatsapp,
.telegram {
  width: 21px;
  height: 21px;
  display: inline-block;
  background-repeat: no-repeat;
}

.whatsapp {
  background-image: url(/assets/template/img/iconwa.svg);
  margin-inline-end: 18px;
}

.telegram {
  background-image: url(/assets/template/img/icontg.svg);
}

.button {
  display: block;
  padding: 16px 30px;
  border: 1px solid #232323;
  width: 300px;
  text-align: center;
}

/**/

/* COVER */
.cover-slogan {
  color: #757575;
  font-size: 26px;
  line-height: 30px;
  margin-block-end: 60px;
}
.cover__text {
  display: flex;
  justify-content: space-between;
  padding: 85px 12px 100px;
}

.cover__img {
  background-image: url(/assets/template/img/cover.png);
  background-size: cover;
  width: 100%;
  height: 360px;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
}

.polosa {
  position: absolute;
  bottom: 230px;
  left: 50%;
  width: 1px;
  height: 400px;
  background: linear-gradient(
    180deg,
    rgba(217, 217, 217, 0.2),
    rgb(217, 217, 217) 100%
  );
}

.skobki {
  width: 256px;
  padding: 0 30px;
  position: relative;
  align-self: end;
}

.skobki::before,
.skobki::after {
  content: "";
  background-image: url(/assets/template/img/skobka.svg);
  width: 9px;
  height: 52px;
  position: absolute;
}

.skobki::before {
  left: 0;
}

.skobki::after {
  right: 0;
  transform: rotate(180deg);
  top: 0;
}

/**/

/*ABOUT*/
.about {
  padding: 120px 0;
}

.h2-about {
  grid-column: 1 / 3;
}

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

.facts {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.facts__item {
  background: #232323;
  color: #f5f5f5;
  flex: 1;
  padding: 40px 30px 30px;
  display: flex;
  flex-direction: column;
}

.fact-title {
  font-size: 48px;
  margin-block-end: 16px;
}

.fact-icon {
  margin-block-end: 36px;
  max-width: 100%;
}

.for-banda {
  position: relative;
  margin-block-end: 28px;
}

.for-banda::before {
  content: "";
  position: absolute;
  width: 1px;
  height: 460px;
  transform: rotate(180deg) translateY(177px) translateX(15px);
  background: linear-gradient(
    180deg,
    rgba(217, 217, 217, 0.2),
    rgb(217, 217, 217) 100%
  );
}

/**/

/*GALLERY*/
.gallery,
.advantages {
  background: #232323;
  padding: 120px 0;
}

.gallery-items {
  display: grid;
  gap: 30px;
  grid-template: repeat(5, 1fr) / repeat(4, 1fr);
}

.gallery-items img {
  width: 100%;
}

.cell1 {
  grid-row: 1 / 3;
  grid-column: 1;
}

.cell2 {
  grid-row: 1 / 3;
  grid-column: 2 / 4;
}

.cell3 {
  grid-row: 1 / 3;
  grid-column: 4;
}

.cell4 {
  grid-row: 3;
  grid-column: 1;
}

.cell5 {
  grid-row: 3;
  grid-column: 2;
}

.cell6 {
  grid-row: 3;
  grid-column: 3;
}

.cell7 {
  grid-row: 3;
  grid-column: 4;
}

.cell8 {
  grid-row: 4 / 6;
  grid-column: 1 / 3;
}

.cell9 {
  grid-row: 4 / 6;
  grid-column: 3 / 5;
}

#carousel {
  overflow: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.pic {
  position: relative;
}

#content {
  display: grid;
  grid-gap: 40px;
  grid-auto-flow: column;
  margin: auto;
  box-sizing: border-box;
  width: 1360px;
}

.strelka {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid #f5f5f5;
}

#prev {
  opacity: 0.6;
}

.flex {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.pic img {
  height: 347px;
}

.arrow-prev {
  transform: rotate(-135deg);
}

.arrow-next {
  transform: rotate(45deg);
}

/**/

/*SERVICES*/
.services,
.faq {
  padding: 120px 0;
}

.serv-title {
  width: 60%;
}

.services__container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 60px 0 0;
}

.services-img {
  position: relative;
  overflow: hidden;
  height: 680px;
}

.responsive-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 100%;
}

.services-text {
  max-width: 630px;
  color: rgb(117, 117, 117);
  gap: 40px;
  display: grid;
}

.num {
  color: rgb(186, 186, 186);
  text-transform: uppercase;
  font-size: 26px;
}

.service-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-block-end: 40px;
  border-bottom: 1px solid #bababa;
}

.service-item:last-child {
  margin-block-end: 20px;
}

.item-text {
  margin: 0;
}

.services .order-black {
  margin-block-start: 20px;
}

/**/

/*ADVANTAGES*/
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 колонки */
  grid-template-rows: repeat(2, 1fr); /* 2 строки */
  gap: 30px; /* расстояние между ячейками */
  min-height: 670px;
}
.adv-item {
  padding: 30px;
}

.adv-item .h3 {
  margin-block-end: 20px;
}

.adv0 {
  grid-column: 1 / 2; /* занимает первую колонку */
  grid-row: 1 / 3; /* занимает 2 строки */
  background: #f7f7f7 url(/assets/template/img/advant1.png) no-repeat bottom;
}

.adv2 {
  grid-column: 2 / 3; /* занимает вторую колонку */
  grid-row: 1 / 2; /* занимает первую строку */
  background: #f7f7f7 url(/assets/template/img/advant2.png) no-repeat bottom;
}

.adv3 {
  grid-column: 3 / 4; /* занимает третью колонку */
  grid-row: 1 / 2; /* занимает первую строку */
  background: #f7f7f7 url(/assets/template/img/advant3.png) no-repeat bottom;
}

.adv4 {
  grid-column: 2 / 4; /* занимает вторую и третью колонки */
  grid-row: 2 / 3; /* занимает вторую строку */
  background: #f7f7f7 url(/assets/template/img/advant4.svg) no-repeat right;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
/**/

/*FAQ*/
.accordion {
  width: 100%;

  margin: 0 auto;

  border-radius: 5px;
}

.accordion-item {
  border-bottom: 1px solid #ddd;
  position: relative;
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 32px 28px;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
  position: relative;
  background-color: initial;
}

.accordion-header::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 19px;
  height: 19px;
  background-image: url(/assets/template/img/arrow.svg); /* Путь к изображению стрелки вниз */
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
}

.accordion-header.active::after {
  transform: translateY(-50%) rotate(90deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;

  transition: max-height 0.4s ease, padding 0.6s ease;
}

.accordion-content p {
  margin: 15px 0;
}

.accordion-content.active {
  max-height: 500px; /* Увеличьте это значение, если контент длиннее */
  padding: 0 32px 28px 32px;
}
/**/

/*FORM*/
.form {
  background: #232323;
  display: grid;
  grid-template-columns: 50% 50%;
  color: #f7f7f7;
}
.form__container {
  max-width: 660px;
  justify-self: end;
  padding: 120px 15px 130px;
  position: relative;
}

.form__container::before {
  content: "";
}

.form__container::before,
.form__container::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 186px;
  background: linear-gradient(
    180deg,
    rgba(90, 90, 90, 0.2),
    rgb(90, 90, 90) 100%
  );
}

.form__container::before {
  left: 0;
  top: 0;
  transform: rotate(180deg);
}

.form__container::after {
  right: 0;
  bottom: 0;
}

.form__image {
  background: url("/assets/template/img/form.png") right no-repeat;
  width: 100%;
  height: 782px;
  transform: translateX(24%);
}

.form-control {
  background-color: #232323;
  border-bottom: 1px solid #757575;
  color: white;
  border-right: none;
}

.checkbox-custom {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  vertical-align: middle;
  border: 0.74px solid rgb(144, 144, 144);
}

input[type="checkbox"]:checked + span {
  background-image: url(/assets/template/img/check.svg);
  background-repeat: no-repeat;
  background-position: 2px 4px;
}

input::placeholder {
  color: rgb(117, 117, 117);
  font-family: Manrope;
  font-size: 17px;
  text-transform: uppercase;
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

label {
  color: #909090;
}
label.error {
    color: #EA1527;
}

input[type="submit"] {
  font: inherit;
  cursor: pointer;
  outline: none;
}

.agreement {
  padding: 30px 0 60px;
}

/**/

/*FOOTER*/
.footer {
  background: #131313;
  padding: 120px 0 30px;
  color: #757575;
}

.logo-footer {
  padding-bottom: 38px;
}

.logo-footer .sitename {
  color: #f7f7f7;
  font-size: 20px;
}

.footer a {
  color: #f7f7f7;
}

.footer-contact .whatsapp,
.footer-contact .telegram {
  width: 31px;
  height: 31px;
}

.footer-contact .whatsapp {
  background-image: url("/assets/template/img/iconwa-white.svg");
}

.footer-contact .telegram {
  background-image: url("/assets/template/img/icontg-white.svg");
}

.footer-blocks {
  padding-bottom: 123px;
}

.footer-blocks,
.footer-bottom {
  display: flex;
  justify-content: space-between;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}

.footer-tel {
  font-size: 32px;
}

/**/

@media (min-width: 1400px) {
  .header__container,
  .cover__text,
  .about,
  .gallery__container,
  .services__titles,
  .advantages__container,
  .faq,
  .foter__container {
    width: 1290px;
  }
}

@media (1160px < width < 1400px) {
  .header__container,
  .cover__text,
  .about,
  .gallery__container,
  .services__titles,
  .advantages__container,
  .faq,
  .foter__container {
    width: 1040px;
  }
}

@media (max-width: 1160px) {
  .advantages-grid {
    display: flex;
    min-height: auto;
    flex-wrap: wrap;
    gap: 24px;
  }

  .adv-item {
    padding: 20px;
    flex-basis: 48%;
    min-height: 320px;
  }

  .adv0 {
    background-position: 0px 150px;
    background-size: 66%;
  }

  .adv2 {
    background-position-x: right;
  }

  .adv3 {
    background-position-x: 198px;
  }

  .adv4 {
    justify-content: flex-start;
  }
}

@media (781px < width < 1160px) {
  .header__container,
  .cover__text,
  .about,
  .gallery__container,
  .services__titles,
  .advantages__container,
  .faq,
  .foter__container {
    width: calc(100% - 66px * 2);
  }
}

@media (min-width: 781px) {
  .gallery__mob {
    display: none;
  }
}

@media (max-width: 780px) {
  .gallery__container {
    display: none;
  }

  .form {
    display: block;
  }

  .form-control {
    padding: 0;
  }

  .form__container {
    padding: 60px 40px 40px;
    max-width: 100%;
  }

  .footer-tel {
    font-size: 28px;
  }

  .form__container::after {
    display: none;
  }

  .footer-tel {
    font-size: 28px;
  }
}

@media (501px < width < 780px) {
  .header__container,
  .cover__text,
  .about,
  .gallery__container,
  .services__titles,
  .advantages__container,
  .faq,
  .foter__container,
  .gallery__mob {
    width: calc(100% - 40px * 2);
    margin: 0 auto;
  }

  p {
    font-size: 15px;
  }

  .button {
    width: 332px;
  }

  .order-header {
    background-image: url("/assets/template/img/phone.svg");
    width: 54px;
    height: 54px;
    border: initial;
    padding: 0;
    color: transparent;
  }

  .order-white::after {
    display: none;
  }

  .header__container {
    padding: 5px 9px;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
  }

  .cover__text {
    padding: 80px 9px 100px 9px;
  }

  .h1 {
    font-size: 35px;
  }

  .cover-slogan {
    font-size: 22px;
  }

  .skobki {
    font-size: 15px;
  }

  .header__middle {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    row-gap: 8px;
    justify-content: center;
    column-gap: 24px;
    font-weight: 500;
    font-size: 15px;
  }

  .social {
    grid-row: 1 / 3;
    align-self: center;
  }

  .section-title {
    font-size: 15px;
  }

  .h2 {
    font-size: 28px;
    margin-block-end: 28px;
  }

  .h3 {
    font-size: 22px;
  }

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

  .h2-about {
    grid-column: initial;
    margin-block-end: 28px;
  }

  .facts {
    gap: 24px;
    display: grid;
    grid-template-columns: auto auto;
  }

  .about,
  .gallery,
  .advantages,
  .services,
  .faq {
    padding: 60px 0;
  }

  .serv-title {
    width: 100%;
  }

  .services__container {
    padding: 0;
  }

  .services-text {
    padding-inline-end: 40px;
  }

  .form__image {
    height: 460px;
    background-position: center bottom;
    background-size: cover;
    transform: initial;
  }

  .footer-blocks {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
  }

  .footer-contact {
    grid-row: 1 / 3;
    grid-column: 2 / 3;
  }

  .footer-bottom {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    row-gap: 14px;
  }

  .footer-blocks {
    padding-bottom: 60px;
  }

  .footer {
    padding: 60px 0 30px;
  }
}

@media (max-width: 500px) {
  .order-header {
    display: none;
  }

  .header__container {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .logo img {
    height: 31px;
  }

  .sitename {
    font-size: 13px;
  }

  .header__middle {
    flex-direction: column;
    align-items: end;
    gap: 8px;
  }

  .header__right {
    display: none;
  }

  .h1 {
    font-size: 35px;
    line-height: 39px;
  }
  .cover-slogan {
    font-size: 22px;
    line-height: 26px;
  }

  .skobki {
    font-size: 15px;
    line-height: 21px;
  }

  .cover__text {
    flex-direction: column;
    gap: 40px;
    padding: 54px 12px 30px;
  }

  .cover__img {
    background-position-x: -466px;
  }

  .polosa {
    display: none;
  }

  .about,
  .advantages,
  .gallery {
    padding: 60px 24px;
  }

  .for-banda::before {
    display: none;
  }

  .about__text {
    display: block;
  }

  .section-title {
    margin-block-end: 24px;
  }

  .about__text {
    display: block;
  }

  .h2-about {
    font-size: 28px;
    margin-block-end: 24px;
  }

  .facts__item {
    padding: 30px 20px 20px;
  }

  p,
  .for-banda {
    font-size: 15px;
  }

  .fact-title {
    font-size: 28px;
  }

  .fact-icon {
    margin-block-end: 24px;
  }

  .facts {
    gap: 24px;
    flex-direction: column;
  }

  .header__container,
  .cover__text,
  .about,
  .gallery__container,
  .services__titles,
  .advantages__container,
  .faq,
  .foter__container,
  .gallery__mob {
    width: 100%;
  }

  .faq {
    padding: 60px 24px;
  }

  .services__titles {
    padding: 60px 24px 0 24px;
  }

  .section-title {
    font-size: 15px;
  }

  .h2 {
    font-size: 28px;
  }

  .h3,
  .num {
    font-size: 22px;
  }
  .h3 {
    padding-inline-end: 33px;
  }

  .services {
    padding: 0;
  }

  .serv-title {
    width: 100%;
    margin-block-end: 28px;
  }

  .services__container {
    padding: 0;
    grid-template-rows: auto auto;
    grid-template-columns: auto;
  }

  .services-img {
    order: 2;
    height: 500px;
  }

  .responsive-image {
    width: 119%;
    height: auto;
    transform: translateX(29px);
    top: 0;
  }

  .services-text {
    padding: 0 24px;
  }

  .advantages-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .adv-item {
    height: 320px;
  }

  .adv0 {
    background-position: 0px 177px;
    background-size: contain;
  }

  .adv2 {
    background-position-x: right;
  }

  .adv3 {
    background-position-x: 240px;
  }

  .adv4 {
    justify-content: flex-start;
  }

  .accordion-header {
    padding: 24px 20px 24px 0;
  }

  .footer {
    padding: 60px 0 28px 0;
  }

  .logo-footer {
    margin: auto;
  }

  .footer-blocks,
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-blocks {
    padding-bottom: 66px;
  }

  .footer-bottom {
    gap: 14px;
  }

  .footer-contact {
    order: 1;
    padding-block-end: 24px;
  }

  .rekvizity {
    order: 2;
  }

  .address {
    order: 3;
  }
}
