/* HEADER */

.header {
  width: 100%;
  background-color: transparent;
  padding-top: 0;
  z-index: 100;
}

.header:has(.header__search-panel.__active) {
  background-color: white;
}

.header:not(.header--home)::before {
  content: unset;
  background-color: transparent;
}

body.header-white .header {
  background-color: white;
  transition: all 0.3s ease;
}

.header__wrapper {
  background-color: transparent;
  max-width: 1920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header__logo-container {
  background: white;
  padding: 25px;
  width: fit-content;
}

.header .logo {
  position: relative;
  left: auto;
  top: auto;
  max-width: unset;
  margin-left: 27px;
  margin-bottom: 34px;
  width: 58px;
  height: 64px;
}

.header .logo::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 98px;
  top: 0;
  left: -27px;
  background: var(--Red);
}

.header .btn {
  color: white;
}

.header .btn:hover {
  color: var(--Red);
}

.header .btn.btn--head_red:hover {
  color: #fff;
}

.header__search-btn__big {
  color: white;
  transition: all 0.3s ease;
}

.header__search-btn__big:hover {
  color: var(--Red);
}

.header__search-btn {
  color: var(--Red);
}

.header__search-btn:hover {
  color: var(--dark-red);
}

.hamburger__text {
  color: white;
  font-family: var(--sec-font);
  text-transform: none;
}

.hamburger__box .line {
  background: white;
}

.hamburger:hover .hamburger__box .line {
  background: var(--Red);
}

.hamburger:hover .hamburger__text {
  color: var(--Red);
}

.header__col--menu {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-grow: 1;
}

.header:has(.hamburger--active),
body.header-white .header,
.page:not(.page--home) {
  .hamburger__box .line {
    background: var(--Red);
  }
  .hamburger__text {
    color: var(--Red);
  }
  .btn {
    color: var(--Red);
  }
  .btn:hover {
    color: var(--Black);
  }
  .header__search-btn__big {
    color: var(--Red);
  }
  .header__search-btn__big:hover {
    color: var(--Black);
  }
  .border-white {
    border-color: var(--Red) !important;
  }
  .btn--head_red {
    background-color: unset;
    border: 1px solid var(--Red);
  }
  .border-white:hover {
    border-color: var(--Black) !important;
  }
  .hamburger:hover .hamburger__box .line {
    background: var(--Black);
  }
  .hamburger:hover .hamburger__text {
    color: var(--Black);
  }
}

.page:not(.page--home) .header {
  background-color: white;
}

.header .header__col--rightbar {
  margin: 0;
}

.nav {
  z-index: 11;
}

.subnav__item:nth-child(n + 2) {
  margin-top: 20px;
}

.header__rightbar .header__materials,
.header .header__feedback {
  margin-right: 0;
}

.header__rightbar .btn--arrow_none {
  padding-left: 0;
  padding-right: 0;
}

.header__col--search,
.header__search {
  width: auto;
}

.header__search-form {
  padding-left: 350px;
}

@media screen and (max-width: 1599px) {
  .header .header__rightbar {
    gap: 20px;
  }
}

@media screen and (max-width: 1279px) {
  .header__rightbar .header__materials:nth-child(1),
  .header__rightbar .header__materials:nth-child(2) {
    display: none;
  }
  .header__col--rightbar {
    order: 2;
  }
  .header__wrapper {
    padding: 16px 40px;
  }
  .header .header__col--rightbar {
    display: flex;
  }
  .header .header__col--rightbar .btn {
    font-size: 16px;
    line-height: 1.2;
  }
  .hamburger__box-w {
    width: 30px;
  }
  .header__search-form {
    padding-left: 250px;
  }
}

@media screen and (max-width: 1023px) {
  .hamburger__text {
    display: none;
  }
  .header__logo-container {
    padding: 8px;
  }
  .header .logo {
    width: 36px;
    height: 40px;
    margin-bottom: 20px;
    margin-left: 16px;
  }
  .header .logo::before {
    width: 13px;
    height: 60px;
    left: -16px;
  }
  .header__col--menu {
    flex-grow: unset;
    order: 3;
  }
  .header__wrapper {
    gap: 20px;
  }
  .header__search-btn__big svg {
    width: 24px;
    height: 24px;
  }
  .header__search-form {
    padding-left: 160px;
  }
}

@media screen and (max-width: 767px) {
  .header__feedback {
    display: none;
  }
  .header__wrapper {
    padding: 16px;
  }
  .header__materials .btn {
    padding: 8px 0;
  }
}

/* MAIN */

.main {
  margin-top: var(--header_height);
}

.page:has(.top-slider) .main {
  margin-top: 0;
}

.main > section:nth-child(1) {
  margin-top: 0;
  padding-top: 0;
}

.main > .page-head {
  margin-top: 0;
  padding-top: 0;
}

/* TOP SLIDER */

.top-slider {
  background: var(--dark-gray);
  padding: 0;
}

.top-slider picture::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 2;
  pointer-events: none;
}

.top-slider picture,
.top-slider picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1920/868;
  max-height: unset;
}

.top-slider__text {
  position: absolute;
  top: 33.18%;
  left: 144px;
  max-width: 1000px;
  color: white;
  font-family: var(--sec-font);
  font-weight: 700;
  font-size: 48px;
  line-height: 60px;
  letter-spacing: 0.03em;
  z-index: 10;
}

.top-slider__title {
  font-family: var(--sec-font);
  font-weight: 700;
  font-size: clamp(40px, 4.6875vw, 90px);
  line-height: 0.8;
  letter-spacing: 0.03em;
  text-transform: none;
  width: 64.896vw;
}

.top-slider__desc {
  margin-top: 25px;
  font-family: var(--sec-font);
  font-weight: 700;
  font-size: clamp(24px, 1.875vw, 36px);
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: none;
}

.top-slider__btn {
  margin-top: 130px;
}

.top-slider__btn-mobile {
  display: none;
}

.top-slider__btn:hover {
  background: var(--Red);
  color: white;
  border-color: var(--Red) !important;
}

.top-slider__video {
  display: flex;
  gap: 20px;
  padding: 60px;
  background: white;
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: 600px;
  max-width: 778px;
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.03em;
  z-index: 10;
}

.top-slider__video p + p {
  margin-top: 10px;
}

.top-slider__video-title {
  color: var(--gray);
}

.top-slider__video-desc {
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: 0.03em;
}

.top-slider__video .video-preview {
  flex-shrink: 0;
}

.top-slider__slider-counter {
  position: absolute;
  top: 36.87%;
  right: clamp(20px, 15.21vw, 292px);
  color: white;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  gap: 23px;
  font-family: var(--sec-font);
}

.top-slider__total-slides {
  color: white;
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.top-slider__time-bar {
  width: 5px;
  height: 99px;
  position: relative;
  background: white;
}

.top-slider__time-bar-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 0;
  background-color: var(--Red);
  transform-origin: bottom;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
  animation-duration: 5s;
}

.top-slider__time-bar.animate .top-slider__time-bar-bg {
  animation-name: timeBarAnimation;
}

@keyframes timeBarAnimation {
  from {
    height: 0;
  }
  to {
    height: 100%;
  }
}

.top-slider__pagination {
  position: absolute;
  top: 33.18%;
  left: 108px;
  flex-direction: column;
  z-index: 10;
  margin-top: 10px;
}

@media screen and (max-width: 1599px) {
  .top-slider__video {
    padding: 40px;
  }
  .top-slider__slider-counter {
    right: 60px;
  }
}

@media screen and (max-width: 1279px) {
  .top-slider__slider-counter {
    top: auto;
    right: 40px;
    bottom: 265px;
  }
  .top-slider picture,
  .top-slider picture img {
    height: 824px;
    aspect-ratio: unset;
  }
  .top-slider__pagination {
    left: 40px;
  }
  .top-slider__text {
    left: 76px;
  }
  .top-slider__btn {
    display: none;
  }
  .top-slider__btn-mobile {
    display: block;
    position: absolute;
    left: 76px;
    bottom: 265px;
  }
  .top-slider__desc {
    margin-top: 16px;
  }
  .top-slider__video {
    height: 225px;
  }
  .top-slider__video-title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }
  .top-slider__video-desc {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
  }
  .top-slider__total-slides {
    font-size: 32px;
  }
}

@media screen and (max-width: 1023px) {
  .top-slider__video {
    left: 0;
    max-width: unset;
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .top-slider__pagination {
    left: 16px;
    top: 138px;
  }
  .top-slider__text {
    top: 138px;
    left: 54px;
  }
  .top-slider__video {
    padding: 16px;
    flex-direction: column;
    gap: 20px;
    height: auto;
  }
  .top-slider__video-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.03em;
  }
  .top-slider__video-desc {
    -webkit-line-clamp: 3;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.03em;
    margin-top: 8px;
  }
  .top-slider__slider-counter {
    right: 16px;
    bottom: 304px;
  }
  .top-slider picture,
  .top-slider picture img {
    height: 668px;
    aspect-ratio: unset;
  }
  .top-slider__btn-mobile {
    display: block;
    position: absolute;
    left: 54px;
    bottom: 304px;
  }
  .top-slider__time-bar {
    height: 46px;
  }
  .top-slider__total-slides {
    font-size: 18px;
  }
  .top-slider__slider-counter {
    gap: 16px;
  }
  .top-slider__video .video-preview {
    width: 100%;
    height: 145px;
  }
  .top-slider__title {
    font-size: 32px;
  }
  .top-slider__desc {
    font-size: 24px;
  }
}

/* COUNTER */

.counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--sec-font);
  font-weight: 700;
  font-size: 80px;
  line-height: 96px;
  height: 96px;
  overflow: hidden;
  position: relative;
}

.counter__number {
  transition: unset;
}

.counter.animate .counter__number {
  transform: translateY(-100%);
  transition: transform 0.5s ease;
}

@media screen and (max-width: 1279px) {
  .counter {
    font-size: 48px;
    line-height: 58px;
    height: 58px;
    align-self: center;
  }
}

@media screen and (max-width: 1279px) {
  .counter {
    font-size: 32px;
    line-height: 1.2;
    height: 38px;
    align-self: center;
  }
}

/* VIDEO PREVIEW */

.video-preview {
  position: relative;
  width: 228px;
  height: 145px;
}

.video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-preview__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: all 0.3s ease;
}

.video-preview:hover .video-preview__btn {
  transform: translate(-50%, -50%) scale(1.2);
}

.video-preview__btn::before {
  content: "";
  width: 16px;
  height: 16px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: all 0.3s ease;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 16V1L16 8.28571L4 16Z' fill='%23EF4836'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* ACCORDION */

.accordion {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 1026px;
}

.accordion__item,
.accordion__item:first-child {
  border: none;
}

.accordion__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  padding: 0;
}

.accordion__title {
  font-family: var(--sec-font);
  font-weight: 700;
  font-size: 36px;
  line-height: 48px;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 40px;
}

.accordion__item-point {
  width: 12px;
  height: 12px;
  background-color: var(--Red);
  border-radius: 50%;
  margin: 0 8px;
  flex-shrink: 0;
}

.accordion__head * {
  pointer-events: none;
}

.accordion__icon {
  width: 18px;
  height: 27px;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='27' viewBox='0 0 18 27' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_668_9841)'%3E%3Cpath d='M9 26L9 3M9 3L2 13.5M9 3L16 13.5' stroke='%23231F20' stroke-width='2'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_668_9841'%3E%3Crect width='27' height='18' fill='white' transform='translate(0 27) rotate(-90)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: rotate(180deg);
  flex-shrink: 0;
}

.accordion__item.active .accordion__icon {
  transform: rotate(0);
}

.accordion__title {
  font-family: var(--sec-font);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.accordion__content {
  padding: 0 38px 0 0;
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.accordion__item:has(.accordion__item-point) .accordion__content {
  padding-left: 68px;
}

.accordion__item.active .accordion__content {
  padding: 20px 38px 0 0;
  height: auto;
}

.accordion__item:has(.accordion__item-point).active .accordion__content {
  padding: 20px 38px 0 68px;
}

.accordion__button {
  padding: 15px;
  border: 1px solid var(--Red);
}

.accordion__button:hover {
  color: var(--black);
  border-color: var(--Black);
}

.accordion__item.active .accordion__button {
  margin-top: 60px;
}

@media screen and (max-width: 1279px) {
  .accordion__title {
    font-size: 24px;
    gap: 16px;
  }
  .accordion__content {
    font-size: 16px;
  }
  .accordion__item.active .accordion__button {
    margin-top: 40px;
  }
  .accordion__item:has(.accordion__item-point) .accordion__content {
    padding-left: 44px;
  }
}

@media screen and (max-width: 767px) {
  .accordion__title {
    font-size: 18px;
  }
  .accordion__item.active .accordion__button {
    margin-top: 20px;
  }
}

/* SECTION */

section {
  margin-top: 140px;
}

.section__wrapper {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.section__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 120px;
  align-items: flex-start;
  position: relative;
}

.section__grid .accordion,
.section__form {
  margin-top: 60px;
}

.reveal {
  transition: all 0.3s ease;
}

.section__grid .reveal {
  position: sticky;
  top: 0;
}

.section__title {
  font-family: var(--sec-font);
  font-weight: 700;
  font-size: 60px;
  line-height: 76px;
  letter-spacing: 0.03em;
  text-transform: none;
  max-width: 916px;
}

@media screen and (max-width: 1279px) {
  section {
    margin-top: 80px;
  }
  .section__wrapper {
    padding: 0 40px;
    gap: 40px;
  }
  .section__title {
    font-size: 40px;
    line-height: 1.2;
  }
  .section__grid {
    gap: 60px;
  }
  .section__grid .accordion,
  .section__form {
    margin-top: 40px;
  }
  .section .slider__col {
    margin: 0;
  }
}

@media screen and (max-width: 1023px) {
  section {
    margin-top: 64px;
  }
  .section__grid {
    gap: 30px;
    grid-template-columns: 1fr;
  }
  .section__grid .accordion,
  .section__form {
    margin-top: 0;
  }
  .section__grid .reveal {
    position: relative;
    top: auto;
  }
}

@media screen and (max-width: 767px) {
  .section__wrapper {
    padding: 0 16px;
    gap: 16px;
  }
  .section__title {
    font-size: 24px;
  }
}

/* SWIPER */

.swiper-basement__arrows {
  gap: 60px;
}

.swiper-basement__arrows:has(.swiper-basement__pagination) {
  gap: 30px;
}

.swiper-basement__pagination {
  white-space: nowrap;
}

.swiper-basement__arrow--next {
  margin: 0 !important;
}

.swiper-basement__title {
  font-family: var(--sec-font);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: none;
}

@media screen and (max-width: 1023px) {
  .swiper-basement__arrows {
    gap: 40px;
  }
  .swiper-basement__title {
    font-size: 24px;
  }
  .swiper-basement__arrows {
    position: relative;
    top: auto;
    left: auto;
  }
}

@media screen and (max-width: 767px) {
  .main-projects-slider .swiper-basement,
  .new-swiper .swiper-basement {
    flex-direction: column-reverse;
    gap: 32px;
    margin-top: 40px;
  }
}

/* NEWS */

.card-news__text {
  font-family: var(--sec-font);
  font-weight: 700;
  font-size: 36px;
  line-height: 48px;
  letter-spacing: 0.03em;
  text-transform: none;
}

@media screen and (max-width: 1279px) {
  .card-news__text {
    font-size: 24px;
    line-height: 1.2;
  }
}

@media screen and (max-width: 767px) {
  .card-news__text {
    font-size: 18px;
    line-height: 1.2;
  }
}

/* ADVANTAGES */

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

.advantages__block {
  display: flex;
  gap: 40px;
}

.advantages__picture {
  height: 330px;
  width: 100%;
  flex-grow: 1;
  object-fit: cover;
  object-position: center;
}

.advantages__content {
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.03em;
  border: 2px solid var(--gray);
  background: white;
  padding: 60px;
  display: flex;
  align-items: center;
  max-width: 470px;
}

.advantages__content_title {
  font-family: var(--sec-font);
  font-weight: 700;
  font-size: 36px;
  line-height: 48px;
  letter-spacing: 0.03em;
  padding: 40px;
  color: white;
  border: none;
  background: var(--Red);
}

.advantages__picture_house {
  object-position: top -280px left 0;
}

.advantages__picture_mobile {
  display: none;
}

@media screen and (max-width: 1599px) {
  .advantages__content {
    padding: 40px;
  }
  .advantages__block:has(.advantages__content) .advantages__picture {
    max-width: 33%;
  }
}

@media screen and (max-width: 1279px) {
  .advantages {
    gap: 20px;
  }
  .advantages__picture_mobile {
    display: block;
  }
  .advantages__picture_desktop {
    display: none;
  }
  .advantages__block {
    flex-direction: column;
    gap: 8px;
  }
  .advantages__picture {
    order: 1;
    width: 100%;
    height: auto;
    height: 457px;
  }
  .advantages__content {
    order: 3;
    max-width: unset;
    padding: 24px;
    font-size: 16px;
    line-height: 1.2;
  }
  .advantages__content_title {
    order: 2;
    font-size: 18px;
    line-height: 1.2;
    padding-right: 252px;
  }
  .advantages__block:has(.advantages__content) .advantages__picture {
    max-width: unset;
  }
  .advantages__block:not(:has(.advantages__content)) {
    display: none;
  }
}

@media screen and (max-width: 1023px) {
  .advantages__content {
    padding: 20px;
  }
  .advantages__block:has(.advantages__content) .advantages__picture {
    max-width: unset;
  }
}

/* СLIENTS */

.clients-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}

.clients-swiper__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 60px;
  min-height: 160px;
  background: white;
  border: 1px solid var(--light-grey);
  width: auto;
}

.clients-swiper__slide img {
  max-height: 100px;
  width: auto;
  height: 100%;
  object-fit: contain;
  object-position: center;
  user-select: none;
}

@media screen and (max-width: 1023px) {
  .clients-swiper__slide {
    padding: 0 50px;
  }
  .clients-swiper__slide img {
    max-height: 60px;
  }
}

@media screen and (max-width: 767px) {
  .clients-swiper__slide {
    padding: 0 40px;
  }
  .clients-swiper__slide img {
    max-height: 50px;
  }
}

/* FOOTER */

.footer__wrapper {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 60px;
}

.footer-subscribe__title {
  font-family: var(--sec-font);
  font-size: 36px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: 0.03em;
  text-transform: none;
}

.footer-nav__item:first-child .footer-nav__link,
.footer-nav__col:last-child .footer-nav__link {
  font-family: var(--sec-font);
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.03em;
  text-transform: none;
}

@media screen and (max-width: 1279px) {
  .footer__wrapper {
    padding: 0 40px;
  }
  .footer-subscribe__title {
    font-size: 24px;
    line-height: 1.2;
  }
  .footer-main__col--right {
    width: auto;
    flex: unset;
  }
  .footer-main__col--right .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 32px;
  }
  .footer-main__col--right .footer-nav__col:nth-child(3) {
    grid-column: span 2;
  }
  .footer-secondary {
    padding-left: 0;
    padding-top: 24px;
  }
}

@media screen and (max-width: 767px) {
  .footer__wrapper {
    padding: 0 16px;
  }
}

/* PANEL */

.panel {
  z-index: 110;
}

/* CERTIFICATES */

.certificate__image {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: white;
  border: 1px solid var(--light-grey);
  aspect-ratio: 1/1;
}

.certificate__title {
  color: var(--Black);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  letter-spacing: 0.03em;
  margin-top: 20px;
}

.certificate__slide {
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}

.certificate .swiper-basement {
  margin-top: 0;
}

@media screen and (max-width: 1023px) {
  .certificate__title {
    font-size: 16px;
    line-height: 1.2;
  }
}

@media screen and (max-width: 767px) {
  .certificate__title {
    font-size: 12px;
  }
}

/* FORM */

.form__title {
  font-family: var(--sec-font);
  font-size: 36px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: 0.03em;
}

.form-section__reveal img {
  height: 820px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

.section__form .form__title {
  margin: 0;
}

.section__form .form__description {
  margin: 20px 0 0;
}

.form__privacy {
  position: relative;
}

.form__privacy:has(.input-validation-error) span {
  color: #f50000;
}

@media screen and (max-width: 1279px) {
  .form-section__reveal img {
    height: 600px;
  }
  .form__title {
    font-size: 24px;
    line-height: 1.2;
  }
}

@media screen and (max-width: 1023px) {
  .form-section__reveal img {
    height: 376px;
    order: 2;
  }
  .form-section .reveal {
    order: 2;
  }
}

@media screen and (max-width: 767px) {
  .form__title {
    font-size: 18px;
  }
}

/* OTHER */

.main-projects-slide,
.new-swiper {
  .swiper-slide {
    height: auto;
  }
  .swiper-slide img {
    height: 100%;
  }
}

/* SOCIALS */

.social {
  display: flex;
  align-items: center;
  gap: 5px;
}

.social__link-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* BREADCRUMBS */

.breadcrumbs {
  margin: 0 0 0 64px;
}

@media screen and (max-width: 1279px) {
  .breadcrumbs {
    margin: 0;
  }
}

/* TEXT */

.text {
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0.03em;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 40px;
  h1 {
    display: none;
  }
  h2,
  h3,
  h4 {
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0.03em;
  }
  p {
    margin: 0;
  }
  ul,
  ol {
    padding: 0;
    margin: 0;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  ul li,
  ol li {
    position: relative;
    padding-left: 40px;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  ul li::before,
  ol li::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--Red);
    border-radius: 50%;
  }
}

@media screen and (max-width: 1279px) {
  .text {
    font-size: 16px;
    line-height: 1.2;
  }
}

@media screen and (max-width: 767px) {
  .text {
    font-size: 12px;
  }
}

/* TAB */

.tab {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.tab .text {
  margin-top: 0;
}

.tab__content-wrapper {
  margin-left: 25%;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.tab__content-wrapper:has(.tab__item_img) {
  margin-left: 0;
}

.tab__head {
  display: flex;
  align-items: center;
  gap: 16px 60px;
  flex-wrap: wrap;
}

.tab__button {
  font-family: var(--sec-font);
  font-weight: 700;
  font-size: 36px;
  line-height: 48px;
  letter-spacing: 0.03em;
  background: transparent;
  color: var(--gray);
  padding: 0;
  border: none;
  cursor: pointer;
}

.tab__button.active,
.tab__button:hover {
  color: var(--Black);
}

.tab__content {
  display: none;
  margin-top: 60px;
}

.tab__content.active {
  display: block;
}

.tab__item {
  display: grid;
  grid-template-columns: minmax(250px, 500px) 1fr;
  gap: 180px;
}

.tab__content-wrapper:has(.tab__item_img) .tab__item {
  grid-template-columns: 1fr 1fr;
}

.tab__image {
  width: 100%;
}

.tab__title {
  font-family: var(--sec-font);
  font-weight: 700;
  font-size: 36px;
  line-height: 48px;
  letter-spacing: 0.03em;
}

.tab__title_text {
  position: relative;
  padding-left: 58px;
  font-size: 36px;
  line-height: 48px;
}

.tab__title_text::before {
  content: "";
  width: 18px;
  height: 18px;
  background-color: var(--Red);
  position: absolute;
  left: 0;
  top: 0;
}

.tab__title:not(.tab__title_text) + .tab__text {
  margin-top: 60px;
}

.tab__content-wrapper:has(.tab__item_img) .tab__title {
  margin-top: 60px;
}

.tab__note {
  padding: 60px;
  width: 100%;
  border: 2px solid var(--Black);
  border-left: 18px solid var(--Black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab__note > span {
  max-width: 80%;
}

.tab__desc-title {
  font-family: var(--sec-font);
  font-weight: 700;
  font-size: 36px;
  line-height: 48px;
  letter-spacing: 0.03em;
  padding-bottom: 40px;
}

.tab-button {
  margin-left: 25%;
  display: grid;
  grid-template-columns: minmax(250px, 500px) 1fr;
  gap: 180px;
}

.tab-button .btn {
  width: fit-content;
}

.section:has(.tab__content.active[data-tab-id="tab-1"]) .tab-button span {
  display: none;
}

@media screen and (max-width: 1599px) {
  .tab__item {
    gap: 60px;
  }
  .tab-button {
    gap: 60px;
  }
}

@media screen and (max-width: 1439px) {
  .tab__content-wrapper {
    margin-left: 0;
  }
  .tab__item {
    gap: 30px;
    grid-template-columns: 1fr 1fr;
  }
  .tab-button {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-left: 0;
  }
}

@media screen and (max-width: 1259px) {
  .tab {
    gap: 32px;
  }
  .tab__content {
    margin-top: 40px;
  }
  .tab__content-wrapper {
    margin-left: 0;
    gap: 32px;
  }
  .tab__title,
  .tab__title_text {
    font-size: 24px;
    line-height: 1.2;
  }
  .tab__image {
    order: 2;
  }
  .tab__content-wrapper:has(.tab__item_img) .tab__item,
  .tab__item {
    grid-template-columns: 1fr;
  }
  .tab-button {
    grid-template-columns: 1fr;
  }
  .tab-button span {
    display: none;
  }
  .tab__content-wrapper:has(.tab__item_img) .tab__title {
    margin-top: 0;
  }
  .tab__title:not(.tab__title_text) + .tab__text {
    margin-top: 32px;
  }
  .tab__button {
    font-size: 24px;
    line-height: 1.2;
  }
  .tab__head {
    gap: 16px 24px;
  }
  .tab__title_text {
    padding-left: 44px;
  }
  .tab__title_text::before {
    width: 12px;
    height: 12px;
  }
}

@media screen and (max-width: 767px) {
  .tab__content {
    margin-top: 20px;
  }
  .tab__item {
    gap: 24px;
  }
  .tab__button {
    font-size: 18px;
  }
  .tab__head {
    gap: 16px 40px;
  }
  .tab__title,
  .tab__title_text {
    font-size: 18px;
  }
  .tab__title_text {
    padding-left: 26px;
  }
  .tab__title_text::before {
    width: 10px;
    height: 10px;
  }
  .tab__title:not(.tab__title_text) + .tab__text {
    margin-top: 24px;
  }
  .tab-button {
    display: flex;
    justify-content: center;
  }
}

/* FEEDBACK */

.section.feedback {
  position: relative;
  width: 100%;
  padding: 0;
  margin-top: 140px;
}

.panel.feedback {
  padding: 0;
  margin: 0;
  max-height: 100vh;
  max-height: 100svh;
}

.feedback__bg {
  position: absolute;
  height: 100%;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image: url(./assets/img/feedback_bg.jpg);
  z-index: 1;
}

.panel .feedback__bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(35, 31, 32, 0.7);
}

.feedback__left-side {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px;
  color: white;
}

.feedback__form {
  background: rgba(255, 255, 255, 0.8);
  padding: 140px 128px;
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.panel .feedback__form {
  background: transparent;
  padding: 120px;
  max-height: 100vh;
  max-height: 100svh;
  height: 100%;
}

main:has(.section.feedback) + footer {
  margin-top: 0;
}

.feedback__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
}

.popup {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 0;
}

.popup.active {
  opacity: 1;
  visibility: visible;
}

.popup__wrapper {
  max-width: 580px;
  width: 100%;
  background: white;
  position: relative;
  padding: 60px 40px 40px;
  height: 100%;
  max-height: 95vh;
  max-height: 95svh;
}

.popup .panel__close {
  top: 20px;
  right: 20px;
  color: white;
  background-color: var(--Red);
  padding: 5px;
}

.popup .panel__close i {
  font-size: 22px;
}

.feedback-popup .form__title {
  margin-bottom: 20px;
}

.feedback-popup .feedback__form {
  padding: 0;
  overflow-y: auto;
  height: 100%;
}

@media screen and (max-width: 1900px) {
  .feedback__form,
  .panel .feedback__form,
  .feedback__left-side {
    padding: 80px;
  }
}

@media screen and (max-width: 1279px) {
  .feedback__form,
  .panel .feedback__form,
  .feedback__left-side {
    padding: 60px;
  }
}

@media screen and (max-width: 1023px) {
  .feedback__grid {
    grid-template-columns: 1fr;
  }
  .feedback__left-side {
    display: none;
  }
  .panel .feedback__left-side {
    display: block;
    padding: 40px;
  }
  .feedback__form,
  .panel .feedback__form {
    padding: 40px;
  }
  .feedback-popup .feedback__form {
    padding: 0;
  }
  body:has(.popup.active) {
    overflow: hidden;
  }
  .popup__wrapper {
    padding: 30px 20px 20px;
    height: 100vh;
    height: 100svh;
    max-height: 100vh;
    max-height: 100svh;
  }
}
