@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

/* Общее */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-grey: #2e2e2e;
  --white: #f6efe6;
  --grey: #525354;
  --text: #cec8c1;
  --green: #4d5645;
	
  --vh: 1vh;

  background-color: var(--bg-grey);
}

body {
  height: 100vh;               
  height: calc(var(--vh) * 100);
}
/*
 @supports (-webkit-touch-callout: none) {
  body {
    height: -webkit-fill-available;
  }
} 
*/

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
button,
li {
  font-family: "Open Sans", sans-serif;
  color: var(--white);
}

a {
  text-decoration: none;
}

p,
span,
li,
a {
  font-size: 18px;
}

/* .container {
    display: flex;
    flex-direction: column;

    width: 1200px;

    margin: 0 auto;

    background-color: var(--bg-grey);
} */


/* Прелоадер */
.preloader {
  position: absolute;
  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  width: 100%;
  height: 100vh;
	
	min-height: calc(var(--vh) * 100);

  background-color: var(--bg-grey);

  top: 0;
  z-index: 99999;
}

html.preloading, body.preloading {
  overflow: hidden !important;
}

.preloader__box {
  display: inherit;
  flex-direction: column;
  align-items: flex-start;

  width: 300px;
  height: auto;
}

.preloader__line {
  display: block;
  width: 100%;
  height: 3px;

  background-color: var(--white);
}

/* Header */

.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;

  height: 120px;

  background-color: var(--bg-grey);

  border: 1px var(--bg-grey) solid;
  border-bottom: 1px var(--grey) solid;

  z-index: 9;
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 1200px;
}

.header__logo {
	width: 90px;
	height: 90px;
}

.header__nav {
  display: flex;
  align-items: center;
}

.header__menu {
  display: flex;
  align-items: center;

  gap: 40px;
}

.header__menu li {
  list-style: none;
  /* text-transform: lowercase; */
}
.header__menu li.active > a {
  opacity: 1;
  /* Любое оформление */
}

.header__contacts {
  display: flex;
  flex-direction: column;

  gap: 10px;
}

.header__socials {
  display: flex;
  margin-left: auto;
  gap: 10px;
  justify-content: flex-end;
}

.header__socials a {
  width: 40px;
  height: 40px;
}

.header__socials a rect,
.header__socials a:hover span {
  color: var(--white);
  fill: var(--bg-grey);

  transition: color 0.2s ease, fill 0.2s ease;
}
.header__socials a:hover rect,
.header__socials a:hover span {
  color: var(--bg-grey);
  fill: var(--white);
}

.header__link {
  opacity: 0.5;
  transition: opacity 0.3s;
}

.header__link:hover {
  opacity: 1;
}

.header__phone {
  font-size: 24px;
  transition: opacity 0.3s;
}

.header__phone:hover {
  opacity: 0.5;
}

/* Swiper / Slider */

.swiper {
  width: 100%;
/*   height: 100vh; */
	
	height: calc(var(--vh) * 100);
}

.slide__inner {
  display: flex;
  align-items: center;

  width: 1200px;
/*   height: 100vh; */
	
  height: calc(var(--vh) * 100);

  margin: 0 auto;
}

.temp-wrapper {
	display: flex;
	width: 100%;
	gap: 20px;
}

.slide__inner--about {
  display: flex;
  flex-direction: column;

  width: calc(50% - 20px);
}

.slide__inner--about h1 {
  font-size: 96px;

  margin-bottom: 20px; 
}

.slide__inner--about p {
  line-height: 150%;
  color: var(--text);

  margin-bottom: 30px;
}

.first-slide > .slide__inner > .slide__inner--about > h1 {
  margin-bottom: 25px;
}

.slide__inner--about ul {
  display: flex;
  flex-direction: column;

  gap: 20px;

  margin-bottom: 50px;
}

.slide__inner--about > .slide__inner--desktop > ul > li {
  list-style: none;
}

.slide__inner--about > .slide__inner--desktop > ul > li > a {
  font-size: 24px;
  color: var(--text);
}

.slide__button {
  display: flex;
  justify-content: center;
  align-items: center;

  width: fit-content;

  padding: 20px 36px 20px 50px;

  background-color: var(--bg-grey);

  border: 1px solid var(--white);

  cursor: pointer;

  transition: background-color 0.2s ease;
}

.slide__button span {
  margin-right: 15px;

  font-size: 24px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.slide__button:hover {
  background-color: var(--white);
  /* border: 1px solid var(--bg-grey); */
}

.slide__button:hover span {
  color: var(--bg-grey);
  fill: var(--bg-grey);
}

.slide__inner--image {
  display: flex;

  width: 50%;
}

.slide__inner--image-thumbnail {
  width: 100%;
  height: 552px;
	
	object-fit: cover;
	object-position: center center;
}

.inner_swiper {
  width: 500px;
  height: 620px;
  /* Добавим явную высоту и position для корректной работы effect-cards */
  position: relative;
  z-index: 1;
}

.inner_swiper .swiper-slide {
  width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.inner_swiper--img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inner_swiper .swiper-pagination {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.swiper-pagination-bullet {
  width: 15px;
  height: 15px;

  margin: 0 7px;

  background: var(--bg-grey);
  border: 2px solid var(--white);
  border-radius: 0;
  opacity: 1;
}

.swiper-pagination-bullet-active {
  background: var(--white);
  opacity: 1;
}

/* убираем фиксированную позицию у самих кнопок */
.swiper-button-next,
.swiper-button-prev {
  position: static; /* теперь позиционируются контейнером */
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: block;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  display: none;
}
/* назначаем фон-иконки */
.swiper-button-next {
  background: url("../icons/arrow_direct_down.svg") no-repeat center/contain;
}
.swiper-button-prev {
  background: url("../icons/arrow_direct_up.svg") no-repeat center/contain;
}

/* вот этот контейнер и будет фиксированно внизу и по центру */
.swiper-nav-wrapper {
  position: fixed;
  left: 50%;
  bottom: 20px; /* отступ от низа экрана */
  transform: translateX(-50%);
  display: flex;
  flex-direction: column; /* вертикальная раскладка */
  align-items: center;
  gap: 20px; /* вертикальный отступ между стрелками */
  z-index: 20;
}

/* Main */

main {
  display: flex;
  flex-direction: column; /* вертикальная раскладка */
  align-items: center;
}

.main__container {
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  /* justify-content: space-between; */

  width: 1200px;
  min-height: calc(100vh - (120px + 190px));

  padding-top: 50px;
  padding-bottom: 100px;
}

.main__title {
  font-weight: 700;
  font-size: 32px;
}

.main__subtitle {
  font-weight: 400;
  font-size: 24px;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 5px;
}

/* Project */

/* фильтры */
.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 50px;
  margin-bottom: 30px;
    overflow: auto;
    scrollbar-width: none; /* Скрываем скроллбар в Firefox */
}

.filter-btn {
  padding: 15px 20px;

  font-weight: 400;
  font-size: 20px;

  border: none;
  background: var(--text);
  color: var(--green);
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
    white-space: nowrap;
}

.filter-btn.active {
  background: var(--green);
  color: var(--text);
}

.filter-btn:hover {
  background: var(--green);
  color: var(--text);
}

/* сетка проектов */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
/*   margin-top: 50px; */
}

/* карточка проекта */
.project-item {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  text-decoration: none;
  width: calc(50% - 10px);
  height: 650px;
}

.project-item__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* градиент под текст */
.project-item__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.5) 85%,
    rgba(0, 0, 0, 0.6) 100%
  );
}


/* название проекта */
.project-item__title {
  position: absolute;
  bottom: 35px;
  left: 40px;
  z-index: 2;

  color: var(--white);
  font-size: 32px;
  width: calc(100% - 80px);
}

/* Project / Single */
/* 1) Сам контейнер — grid с уплотнением (dense) */
.my-custom-gallery {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 700px; /* базовая высота ячейки */
  gap: 20px; /* отступы между картинками */
}

/* по умолчанию — квадратная ячейка */
.my-gallery-item {
  position: relative;
  overflow: hidden;
}
.my-gallery-item::before {
  content: "";
  display: block;
  padding-top: 100%; /* 1:1 соотношение для маленьких */
}

/* img абсолютно растягиваем на всю ячейку */
.my-gallery-item img {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* каждая 5n+1-я картинка (1,6,11,16) — широкая */
.my-gallery-item:nth-child(5n + 1)::before {
  padding-top: 50%;
}
.my-gallery-item:nth-child(5n + 1) {
  grid-column: 1 / -1;
}

/* каждая 5n+1-я картинка (1,7,12,17) — широкая */
/* .my-gallery-item:nth-child(5n + 2)::before {
  padding-top: 50%; 
} 
.my-gallery-item:nth-child(5n + 2) {
  grid-column: 1 / -1;
}
.my-gallery-item:nth-child(2) {
  grid-column: 1 ;
} */

/* About */

.about-header {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  width: 100%;
  height: 550px;
}

.about-header-item__img {
  display: block;
  position: absolute;

  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Секция “О нас” === */
.about-intro {
  margin: 50px 0;
}

/* две колонки на десктопе, одна на мобилке */
.about-intro__cols {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .about-intro__cols {
    grid-template-columns: 1fr 1fr;
  }
}

/* === Общие заголовки секций === */
.section-title {
  position: relative;
  font-size: 32px;
  color: var(--white);
  margin-bottom: 12px;
}

/* === Примеры работ: чуть больше отступ над сеткой === */
.about-examples {
  margin: 50px 0px;
  /* width: 50%; */
}

.about-examples__more {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  /* width: 50%; */
}

.about-examples-button {
  display: flex;
  justify-content: center;
  align-items: center;

  width: fit-content;

  padding: 15px 25px 15px 40px;
	
  text-transform: uppercase;

  background-color: var(--bg-grey);

  cursor: pointer;
  border: 1px solid var(--white);
  gap: 15px;
  /* margin-bottom: 50px; */
  transition: color 0.2s ease, background-color 0.2s ease;
}
.about-examples-button:hover {
  background-color: var(--white);
  border: 1px solid var(--white);
}

.about-examples-button:hover span {
  color: var(--white);
  fill: var(--bg-grey);

  transition: color 0.2s ease, fill 0.2s ease;
}
.about-examples-button:hover span {
  color: var(--bg-grey);
  fill: var(--white);
}

.about-examples .projects-grid {
  margin-top: 16px;
}

/* === Наша философия: сетка 2×2 + цитата по центру === */
.about-philosophy {
  margin-top: 50px;
}
.philosophy-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  gap: 10px;
}
.philosophy-items {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 10px;
}
.philosophy-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.philosophy-item p {
  color: var(--text);
}

/* Иронируем отступ под цитату */
.about-philosophy__footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  text-align: center;
  margin-top: 48px;
  font-style: italic;
}
.about-philosophy__footer p {
  width: 50%;
  color: var(--text);
}

/* === Аккордеон === */
.accordion {
  margin-top: 30px;
}

/* Отступ между айтемами */
.accordion-item {
  margin-top: 20px;
  background-color: var(--text);
}

.accordion-item:first-child {
	margin-top: 0;
}

.accordion-item hr {
  margin: 0 25px;
  border: 0px var(--bg-grey) solid;
}

/* Заголовок */
.accordion-header {
  width: 100%;
  background: var(--green);
  color: var(--text);
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

/* Иконка */
.accordion-icon {
  width: 24px;
  height: 24px;
  transform: rotate(0deg);
  transition: transform 0.3s;
  /* иконка будет наследовать цвет текста */
  /* color: var(--text); */
}

/* Контент по-умолчанию скрыт */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: var(--text);
  color: var(--bg-grey);
  transition: max-height 0.4s ease, padding 0.4s ease;

  padding: 0 25px 0 25px;
  /* border-top: 1px solid var(--bg-grey); */
}

/* spacing внутри списка */
.accordion-content ul {
  /* margin: 16px 0; */
  color: var(--text);
  list-style-type: "— ";
}
.accordion-content ol {
  display: flex;
  gap: 30px;
  flex-direction: column;
}

.accordion-title {
  font-weight: 700;
}
.accordion-content p {
  /* margin-left: 25px; */
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text);
}
.accordion-content li {
  margin-left: 25px;
  margin-top: 8px;
  color: var(--text);
}
.accordion-content ol li {
  margin-top: 0px;
  font-weight: 700;
}
.accordion-content ul li {
  margin-top: 0px;
  font-weight: 400;
}

li:first-child {
  margin-top: 0px;
}

/* === Состояние “открыто” === */
.accordion-item .accordion-header,
.accordion-item .accordion-header p,
.accordion-item .accordion-content p,
.accordion-item .accordion-content li {
  color: var(--text);
  transition: color 0.3s ease;
  text-align: left;
  gap: 20px;
}

/* === Состояние “открыто” === */
.accordion-item.active .accordion-header {
  background-color: var(--text);
}

.accordion-item.active hr {
  margin: 0 25px;
  border: 1px var(--bg-grey) solid;
}
.accordion-item.active .accordion-header,
.accordion-item.active .accordion-header p,
.accordion-item.active .accordion-content p,
.accordion-item.active .accordion-content li {
  color: var(--bg-grey);
}

/* плюсик превращается в крестик */
.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
  color: var(--bg-grey);
  /* fill: var(--bg-grey); */
}

.accordion-item .accordion-icon path {
  fill: var(--white);
  transition: fill 0.3s ease;
}
.accordion-item.active .accordion-icon path {
  fill: var(--bg-grey);
}

.accordion-item.active .accordion-content {
  padding: 25px;
  max-height: fit-content; /* достаточно большое, чтобы вместить весь текст */
}

/* Contacts */

.contacts-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}

.contact-item__label {
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
  opacity: 0.5;
}
.contact-item {
  width: calc((100% - 60px) / 4);
}

.contact-item__value,
.contact-item__value a,
.contact-item__value p {
  line-height: 1.5;
  color: var(--white);
  text-decoration: none;
}

.contact-item__value a:hover {
  opacity: 0.7;
}

/* =========== Карта =========== */

.contact-map {
  margin: 40px 0;
  width: 100%;
  /* height: 560px; */
  /* iframe внутри займёт всю ширину */
}

.contact-map iframe {
  border: none;
}

/* =========== Примечание =========== */

.contacts-note {
  font-size: 16px;
  width: 50%;
  color: var(--text);
  opacity: 0.5;
  margin-bottom: 60px;
}

.contacts-feedback-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0 20px 30px;
}

.contacts-feedback {
  width: 1200px;
  max-width: 100%;
  margin-top: 0;
  padding: 30px;
  border: 1px solid var(--grey);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  background: rgba(255, 255, 255, 0.02);
}

.contacts-feedback__title {
  font-size: 36px;
  line-height: 1.2;
}

.contacts-feedback__text {
  margin-top: 14px;
  color: var(--text);
  line-height: 1.6;
}

.contacts-feedback__text a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contacts-feedback__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contacts-feedback__label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contacts-feedback__label span {
  font-size: 14px;
  color: var(--text);
}

.contacts-feedback__label input,
.contacts-feedback__label textarea {
  width: 100%;
  border: 1px solid var(--grey);
  background: transparent;
  color: var(--white);
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  padding: 12px;
}

.contacts-feedback__label input {
  height: 44px;
}

.contacts-feedback__label textarea {
  resize: vertical;
  min-height: 110px;
}

.contacts-feedback__policy {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contacts-feedback__policy input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--grey);
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.contacts-feedback__policy input:checked {
  border-color: var(--white);
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%232f2f2f' d='M6.3 11.8 2.7 8.2l1.1-1.1 2.5 2.4 5.9-5.8 1.1 1.1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.contacts-feedback__policy span,
.contacts-feedback__policy a {
  font-size: 14px;
  color: var(--text);
}

.contacts-feedback__policy a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contacts-feedback__submit {
  height: 44px;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contacts-feedback__submit:hover {
  background-color: var(--white);
  color: var(--bg-grey);
}

.contacts-feedback__result {
  min-height: 22px;
  font-size: 14px;
}

.contacts-feedback__result.is-success {
  color: #bfe6b6;
}

.contacts-feedback__result.is-error {
  color: #ff9f9f;
}

/* Footer */

.footer {
  display: flex;
  justify-content: center;
  align-items: center;

  /* height: 190px; */
  background-color: var(--bg-grey);

  z-index: 9;
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 1200px;
  height: auto;
  padding: 35px 0;

  border-top: 1px var(--grey) solid;

  position: relative;
}

.footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;

  gap: 10px;
}
.footer__logo {
  width: 120px;
  height: 120px;
}
.footer__link {
  font-size: 20px;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.footer__link:hover {
  opacity: 1;
}

.footer__link-developer {
  position: absolute;
  bottom: 10px;
  font-size: 14px;
  opacity: 0.5;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer__link-developer:hover {
  opacity: 1;
}

.footer__container {
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer__brand {
  display: flex;
  align-items: stretch;
  gap: 20px;
}

.footer__logo-link {
  display: inline-flex;
}

.footer__description {
  width: min(300px, 100%);
  height: 120px;
  overflow: hidden;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.footer__contacts {
  gap: 12px;
  flex-shrink: 0;
}

.footer__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 30px;
  row-gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--grey);
}

.footer__copyright {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--grey);
  margin: 0;
}

.footer__meta-link {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  color: var(--grey);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.footer__copyright-link {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--grey);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__meta-link:hover {
  opacity: 1;
}

.footer__copyright-link:hover {
  opacity: 0.8;
}

.slide__inner--desktop {
  display: flex;
  flex-direction: column;
}

.slide__inner--mobile {
  display: none;
}

.page-404 {
  position: relative;
  width: 100%;
  min-height: calc(100vh - (120px + 190px)); /* header + footer height */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-grey) url("/path/to/404-bg.jpg") no-repeat center/cover;
  color: var(--white);
  margin-top: 120px; /* compensate fixed header */
  margin-bottom: 190px; /* compensate footer */
}

.page-404__content {
  display: flex;
  width: 60%;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  margin: 0 auto;
  text-align: center;
  gap: 50px;
}

.page-404__inner {
  display: flex;
  position: fixed;
  height: 100vh;
  width: 100%;
  inset: 0;
  left: 0px;
  transition: transform 0.4s ease-in-out;
  /* transition: height 0.5s ease; */
  background: var(--bg-grey);
  /* display: none; */
  z-index: 1000;
  overflow-y: auto;
}

.page-404__label {
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
  opacity: 0.8;
  width: calc(100% - 40px);
}

.page-404__button {
  display: flex;
  justify-content: center;
  align-items: center;

  width: fit-content;

  padding: 20px 36px 20px 50px;

  background-color: var(--bg-grey);

  border: 1px solid var(--white);

  cursor: pointer;

  transition: background-color 0.2s ease;
}

.page-404 i {
  color: var(--text);
  opacity: 0.5;
  font-style: normal;
}

.page-404__button span {
  margin-right: 15px;

  font-size: 24px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.page-404__button:hover {
  background-color: var(--white);
  /* border: 1px solid var(--bg-grey); */
}

.page-404__button:hover span {
  color: var(--bg-grey);
  fill: var(--bg-grey);
}

.svg‐stack {
  position: relative;
  width: calc(100% - 40px);
  max-width: 600px;
  margin: 0 auto;
  /* можно явно задать размеры, если нужно: */
}

/* Все «дочерние» svg будут накладываться друг на друга */
.svg‐stack__layer {
  /* position: absolute; */
  top: 0;
  left: 0;
  width: calc(100% - 40px);
  max-width: 600px;
  margin: 0 auto;
  height: auto; /* сохраним пропорции */
  pointer-events: none;
}
.svg‐stack__layer svg {
  display: block; /* избавляемся от лишних отступов вокруг SVG */
  width: 100%;
  height: auto;
}


/* ========================================================================
   Tablet (481px–1200px)
   делаем контейнер резиновым, но сохраняем 2-колоночную логику
   ======================================================================== */
@media screen and (min-width: 481px) and (max-width: 1200px) {
  p,
  span,
  li,
  a {
    font-size: 18px;
  }
  .slide__inner--about h1 {
    font-size: 72px;
  }
  .slide__button span {
    margin-right: 15px;
    font-size: 20px;
    text-transform: uppercase;
    transition: color 0.2s ease;
  }

  .header {
    width: calc(100% - 39px);
    /* height: 85px; */
  }
  .header__container {
    width: calc(100% - 40px);
    max-width: none;
    margin: 0 auto;
    padding: 10px 0;
  }
  .header__phone {
    font-size: 20px;
  }

  .main__container{
    width: calc(100% - 40px);
    max-width: none;
    padding-top: 140px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
  }
  .footer__container {
    width: calc(100% - 40px);
    max-width: none;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .footer__top {
    align-items: flex-start;
  }

  .footer__bottom {
    grid-template-columns: 1fr;
  }
  .about-header {
    height: 60vh;
  }

  .slide__inner,
  .slide__inner--about,
  .slide__inner--image {
    width: calc(100% - 40px);
    max-width: none;
    padding-top: 20px;
    margin: 0 auto;
    display: flex;
  }

  /* Проекты: две колонки */
  .projects-grid {
    gap: 16px;
  }
  .project-item {
    width: calc(50% - 8px);
  }
}

/* ========================================================================
   Mobile (≤480px)
   одна колонка, резиновая ширина, паддинги 20px
   ======================================================================== */

.js-burger {
  width: 60px;
  height: 60px;
}

@media screen and (max-width: 480px) {
  p,
  span,
  li,
  a {
    font-size: 18px;
  }
	
	.temp-wrapper {
		flex-direction: column;
		gap: 0px;
	}
	
	.about-examples-button, 
	.about-examples__more a {
		width: 100%;
	}
	
	.filter-btn {
		font-size: 18px;
	}


  .header {
    width: 100%;
    height: 85px;

    border-bottom: 0px var(--grey) solid;
  }
  .header__container {
    width: calc(100% - 40px);
    max-width: none;
    margin: 0 auto;
    padding: 10px 0;

    border-bottom: 1px var(--grey) solid;
  }
  .mobile-menu__inner > div > .header__container {
    border-bottom: 0px var(--grey) solid;
  }
  .header__logo {
    width: 60px;
    height: 60px;
  }
  .mobile-menu {
    left: 0px !important;
  }
  .footer__container {
    width: calc(100% - 40px);
    padding: 30px 0;
    padding-bottom: 40px;
    gap: 24px;
  }

  .footer__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer__brand {
    gap: 14px;
  }

  .footer__description {
    height: auto;
    max-height: none;
    width: 100%;
  }

  .footer__contacts {
    align-items: flex-start;
  }

  .footer__bottom {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
  .footer__link-developer {
    /* position: relative; */
  }

  .main__container {
    margin-top: 90px !important;

    width: calc(100% - 40px);
    max-width: none;
    padding-top: 20px;
    margin: 0 auto;
  }

  .swiper-wrapper {
    /* padding-top: 100px; */
  }
  .swiper-nav-wrapper {
    display: none;
  }
  .inner_swiper {
    width: 100%;
    /* padding-top: 100px; */
    height: calc(100%);
  }
  .inner_swiper .swiper-pagination {
    bottom: 5px;
  }

  /* Слайдер: одна колонка */
  .slide__inner {
    flex-direction: column;
    width: calc(100% - 40px);
    margin: 0 auto;
    justify-content: space-between;
  }
	.slide__inner > div {
    width: 100%;
  }
  .slide__inner--image {
    width: 100%;
    padding-top: 0px;
    padding-bottom: 50px;
    flex-direction: column;
  }
  .slide__button span {
    font-size: 24px;
  }
  /* 
  .slide__inner--about a,
  .slide__inner--about p,
  .slide__inner--about ul, li {
    width: calc(100% - 40px);
    position: fixed;
    bottom: 20px;
    left: 0px;
    margin: 0 20px;
  } */

  .slide__inner--about p {
    bottom: 90px;
  }
  .slide__inner--about {
    padding-top: 90px;
  }
  .slide__inner--about h1 {
    font-size: 64px;
  }
	
.about-intro__cols p {
  color: var(--text);
}
  /* Переводим гриды/флексы в столбик */
  .projects-grid,
  .about-examples .projects-grid,
  .about-philosophy .philosophy-items,
  .contacts-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }
  .project-item {
    width: 100%;
	  height: 400px;
  }
  .my-custom-gallery {
    grid-auto-rows: auto;
    gap: 20px;
  }
  /* и она же должна занять обе колонки */
  .my-gallery-item:nth-child(1n) {
    grid-column: 1 / -1;
  }
  .my-gallery-item img {
    width: 100%;
    object-fit: cover;
  }

  .slide__inner--about,
  .slide__inner--image {
    width: 100%;
  }

  .slide__inner--image {
/*     height: calc(var(--vh) * 100 - (120px * 3)); */
	padding-bottom: 0px;
  }
	.slide__inner--image .inner_swiper {
    height: calc(var(--vh) * 100 - (105px * 3));
	padding-bottom: 50px;
  }
	
  .slide__inner--image-thumbnail {
    height: calc(var(--vh) * 100 - (160px * 3));
    padding-bottom: 20px;
    /* height: auto; */
  }
	
  .slide__inner--about button {
    width: 100%;
  }
  .slide__inner--mobile p,
  .slide__inner--mobile li {
    line-height: 150%;
    color: var(--text);
  }
  .slide__inner--mobile > ul > li {
    list-style: none;
    padding-bottom: 30px;
  }
  .slide__inner--mobile > ul > li > a {
    font-size: 24px;
    color: var(--text);
  }
  .slide__inner--mobile button {
    width: 100%;
	  
    padding: 15px 25px 15px 25px;
  }

  /* Вся навигация в столбик */
  .header__nav,
  .header__contacts {
    display: none; /* или свои правила */
  }

  .slide__inner--desktop {
    display: none;
  }

  .slide__inner--mobile {
    display: flex;
    width: 100%;
    margin-bottom: 30px;
    flex-direction: column;
    gap: 20px;
  }

  /* Проекты — одна колонка */
  .projects-filter {
	flex-wrap: nowrap;
    margin-top: 25px;
  }

  .project-item__title {
    bottom: 30px;
    left: 30px;
	width: calc(100% - 60px);
	font-size: 24px;
  }
  .projects-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .project-item {
    width: 100%;
  }
  .my-custom-gallery {
    margin-top: 30px;
  }
	.about-intro__cols {
		margin-top: 20px;
		gap: 20px;
	}
	
  .philosophy-row {
    display: flex;
    flex-direction: column;
    gap: 0px;
  }
  /* Любые гриды → столбик */
  .about-examples .projects-grid,
  .about-philosophy .philosophy-items,
  .contacts-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .about-philosophy__footer p {
    width: 100%;
  }

  .about-intro,
  .about-examples {
    margin: 30px 0 45px 0;
  }
  .about-philosophy {
    padding-top: 55p;
  }

  /* Аккордеон растягиваем */
  .accordion-item {
    width: 100%;
  }

  .about-header {
    height: 320px;
    transform: none;
  }
  .about-header img {
    height: 100%;
    transform: none;
  }

  .contact-item,
  .contacts-note {
    width: calc((100%));
  }

  .contacts-feedback {
    padding: 20px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contacts-feedback__title {
    font-size: 28px;
  }

  .page-404__content {
    display: flex;
    width: calc(100% - 40px);
    flex-direction: column;
    justify-content: center;
    align-items: center;

    margin: 0 auto;
    text-align: center;
    gap: 50px;
  }
	
	.contact-item p,  
	.contact-item a {
		font-size: 18px;
	}
	
	.contact-item h3 {
		font-size: 16px;
	}
}

.burger {
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-menu {
  display: block;
  position: fixed;
/*   height: 100vh; */
	
  height: calc(var(--vh) * 100); 
	
  width: 100%;
  inset: 0;
  left: 0px;
  transform: translateY(-100%);
  transition: transform 0.4s ease-in-out;
  /* transition: height 0.5s ease; */
  background: var(--bg-grey);
  /* display: none; */
  z-index: 1000;
  overflow-y: auto;
}
.mobile-menu.open {
  display: block;
  /* height: 100vh; */
  transform: translateY(0);
}
.menu__background {
  position: absolute;
  bottom: -40%;
  left: -50%;
  width: 200%;
  opacity: 0.04;
  z-index: -1;

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 25%,
    black 100%
  );
  mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 100%);
}
.mobile-menu__inner {
  width: calc(100%);
  
  height: calc(var(--vh) * 100);
	
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  position: relative;
  overflow: hidden;
}
.mobile-menu__close {
  background: none;
  border: none;
  color: var(--white);
  float: right;
  cursor: pointer;
}
.mobile-menu__nav ul {
  list-style: none;

  margin: 0 auto;
  padding: 30px 20px;
}
.mobile-menu__nav li + li {
  margin-top: 10px;
}
.mobile-menu__nav a {
  color: var(--white);
  font-size: 24px;
  text-decoration: none;

  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu__nav a > span {
  width: auto;
  height: auto;
}
.mobile-menu__contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 30px;
  font-size: 18px;
}
.mobile-menu__socials {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 30px;
  height: 40px;

  gap: 20px;
}

.mobile-menu__socials a rect,
.mobile-menu__socials a:hover span {
  color: var(--white);
  fill: var(--bg-grey);

  transition: color 0.2s ease, fill 0.2s ease;
}
.mobile-menu__socials a:hover rect,
.mobile-menu__socials a:hover span {
  color: var(--bg-grey);
  fill: var(--white);
}

@media screen and (max-width: 760px) and (min-width: 481px) {
  .header__nav,
  .header__contacts {
    display: none; /* или свои правила */
  }
  .contact-item {
    width: calc((100% - 60px) / 2);
  }
  .contacts-note {
    font-size: 14px;
    width: 100%;
  }
.temp-wrapper {
    flex-direction: column;
}
  .slide__inner,
  .slide__inner--about,
  .slide__inner--image {
    width: calc(100% - 40px);
    max-width: none;
    padding-top: 60px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    align-items: flex-start;
  }

  .slide__inner--image {
    padding-top: 40px;
  }
  .slide__inner--image-thumbnail {
	height: calc(var(--vh) * 100 - (165px * 3));
	object-fit: cover;
  }
	.inner_swiper {
	height: calc(var(--vh) * 100 - (165px * 3));
	}
	
  .slide__inner--desktop {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }
  .philosophy-row {
    display: flex;
    flex-direction: column;
    gap: 0px;
  }
  .philosophy-items {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 25px;
  }
  .my-custom-gallery {
    gap: 20px;
  }
  .my-gallery-item {
    grid-column: 1 / -1;
  }
  .mobile-menu {
    height: 100vh;
    width: 100vw;
    left: -20px;
  }
}
@media screen and (min-width: 761px) {
  .burger {
    display: none;
  }
  /* Вся навигация в столбик */
  .header__nav,
  .header__contacts {
    display: block; /* или свои правила */
  }
  .slide__inner {
  }
  .slide__inner--about,
  .slide__inner--image {
    width: calc(100% - 40px);
    max-width: none;
    padding-top: 60px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    align-items: flex-start;
  }
  .mobile-menu {
    /* display: none; */
  }
}

.viewer-toolbar > ul > li:before {
  font-size: 18px !important;
}

#projects-loader {
  display: flex;
  margin: 20px 0;
  justify-content: center;
  align-items: center;
  text-align:center;
  width: 100%;
}

#projects-loader .spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 4px solid var(--grey);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  /* optional centering if you want it full-width: */
  margin: 0 auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Header refresh */
:root {
  --header-height-desktop: 146px;
  --header-height-mobile: 84px;
}

.header {
  left: 0;
  transform: none;
  width: 100%;
  max-width: 100%;
  height: var(--header-height-desktop);
  transition: height 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.header__container {
  width: 1200px;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.header__top {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header__logo-link {
  display: inline-flex;
  align-items: center;
}

.header__logo {
  width: 70px;
  height: 70px;
}

.header__descriptor {
  max-width: 210px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--text);
}

.header__nav {
  justify-self: center;
}

.header__menu {
  gap: 26px;
}

.header__link {
  font-size: 16px;
  opacity: 0.7;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: end;
}

.header__socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__social-link {
  width: 44px;
  height: 44px;
  border: 1px solid var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header__social-link span {
  width: 30px;
  height: 30px;
  display: inline-flex;
}

.header__social-link svg {
  width: 100%;
  height: 100%;
}

.header__social-link[aria-label="MAX"] svg {
  width: 50%;
  height: 50%;
  margin: auto;
}

.header__social-link rect {
  display: none;
}

.header__social-link:hover {
  background-color: var(--white);
  color: var(--bg-grey);
}

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.header__phone-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--text);
}

.header__callback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.header__callback:hover {
  background-color: var(--white);
  color: var(--bg-grey);
}

.header__services {
  width: 100%;
  border-top: 1px solid var(--grey);
  padding-top: 8px;
}

.header__services-list {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
}

.header__services-item {
  position: relative;
  padding-bottom: 10px;
}

.header__services-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.header__services-arrow {
  display: inline-flex;
  color: var(--white);
  opacity: 0.9;
}

.header__services-item.active .header__services-link,
.header__services-item:hover .header__services-link {
  color: var(--white);
  opacity: 1;
}

.header__services-submenu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 260px;
  padding: 14px 12px 10px;
  background: #3a3a3a;
  border: 1px solid var(--grey);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 20;
}

.header__services-item:hover .header__services-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__services-submenu li + li {
  margin-top: 8px;
}

.header__services-submenu a {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.header__services-submenu a:hover {
  color: var(--white);
}

.header--compact {
  height: 94px;
}

.header--compact .header__container {
  gap: 8px;
}

.header--compact .header__logo {
  width: 54px;
  height: 54px;
}

.header--compact .header__descriptor,
.header--compact .header__services {
  display: none;
}

.header-callback-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 10001;
}

.header-callback-modal.is-open {
  display: block;
}

.header-callback-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.header-callback-modal__dialog {
  position: relative;
  max-width: 680px;
  margin: 50px auto;
  background: var(--bg-grey);
  border: 1px solid var(--grey);
  max-height: calc(100vh - 100px);
  overflow: auto;
}

.header-callback-modal__content {
  padding: 30px;
}

.callback-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.callback-modal__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.callback-modal__close {
  width: 34px;
  height: 34px;
  border: 1px solid var(--grey);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.callback-modal__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.callback-modal__title {
  font-size: 28px;
  line-height: 1.2;
}

.callback-modal__subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}

.callback-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.callback-modal__label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.callback-modal__label span {
  font-size: 14px;
  color: var(--text);
}

.callback-modal__label input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--grey);
  background: transparent;
  color: var(--white);
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
}

.callback-modal__submit {
  height: 44px;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.callback-modal__submit:hover {
  background-color: var(--white);
  color: var(--bg-grey);
}

.callback-modal__policy {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.callback-modal__policy input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--grey);
  background-color: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.callback-modal__policy input:checked {
  border-color: var(--white);
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%232f2f2f' d='M6.3 11.8 2.7 8.2l1.1-1.1 2.5 2.4 5.9-5.8 1.1 1.1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.callback-modal__policy span {
  font-size: 14px;
  color: var(--text);
  line-height: 1;
}

.callback-modal__policy a {
  font: inherit;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.callback-modal__error {
  font-size: 14px;
  color: #ff9f9f;
}

.main__container {
  margin-top: var(--header-height-desktop);
}

.page-404 {
  margin-top: var(--header-height-desktop);
}

@media screen and (max-width: 1200px) {
  .header {
    width: calc(100% - 40px);
  }

  .header__container {
    width: calc(100% - 32px);
  }

  .header__top {
    grid-template-columns: auto 1fr auto;
    gap: 14px;
  }

  .header__menu {
    gap: 16px;
  }

  .header__actions {
    gap: 8px;
  }

  .header__social-link {
    width: 40px;
    height: 40px;
  }

  .header__callback {
    height: 40px;
  }

  .header__phone {
    font-size: 16px;
    padding: 4px 0;
  }

  .header__callback {
    padding: 10px 14px;
    font-size: 14px;
  }
}

@media screen and (max-width: 760px) {
  .header {
    width: 100%;
    height: var(--header-height-mobile);
  }

  .header__container {
    width: calc(100% - 40px);
    flex-direction: row;
    justify-content: space-between;
    border-bottom: 1px solid var(--grey);
  }

  .header__top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header__descriptor,
  .header__nav,
  .header__actions,
  .header__services {
    display: none;
  }

  .header__top .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .header__top .burger svg {
    display: block;
  }

  .header__logo {
    width: 56px;
    height: 56px;
  }

  .main__container {
    margin-top: 90px !important;
  }

  .page-404 {
    margin-top: 90px;
  }

  .mobile-menu__services {
    padding: 0 20px 20px;
  }

  .mobile-menu__services h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .mobile-menu__services > ul {
    list-style: none;
  }

  .mobile-menu__service-item + .mobile-menu__service-item {
    margin-top: 12px;
  }

  .mobile-menu__service-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .mobile-menu__service-top a {
    font-size: 18px;
    color: var(--white);
  }

  .mobile-menu__service-toggle {
    width: 28px;
    height: 28px;
    border: 1px solid var(--grey);
    background: transparent;
    color: var(--text);
    font-size: 22px;
    line-height: 1;
  }

  .mobile-menu__service-children {
    list-style: none;
    margin-top: 8px;
    padding-left: 14px;
    display: none;
  }

  .mobile-menu__service-item.is-open .mobile-menu__service-children {
    display: block;
  }

  .mobile-menu__service-children li + li {
    margin-top: 8px;
  }

  .mobile-menu__service-children a {
    font-size: 16px;
    color: var(--text);
  }

  .mobile-menu__contacts .header__callback {
    margin-top: 0;
    width: 100%;
    height: 40px;
    padding: 0 14px;
    font-size: 18px;
  }

  .mobile-menu__contacts {
    width: calc(100% - 40px);
    margin: 20px auto 30px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px 10px;
  }

  .mobile-menu__contacts .header__phone {
    justify-self: start;
    font-size: 24px;
    line-height: 1.1;
    gap: 4px;
  }

  .mobile-menu__contacts .header__socials {
    margin-left: 0;
    justify-self: end;
    gap: 10px;
  }

  .mobile-menu__contacts .header__callback {
    grid-column: 1 / -1;
  }

  .header-callback-modal__dialog {
    margin: 12px;
    max-height: calc(100vh - 24px);
  }
}

/* Home modern refresh */
.home-modern {
  margin-top: var(--header-height-desktop);
  background: var(--bg-grey);
}

.home-modern__container {
  width: 1200px;
  margin: 0 auto;
}

.home-modern__section {
  padding: 36px 0;
}

.home-modern__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.home-modern__section-head h2 {
  font-size: 40px;
  line-height: 1.2;
}

.home-modern__link {
  color: var(--text);
  font-size: 16px;
  border-bottom: 1px solid var(--text);
}

.home-modern__btn {
  height: 46px;
  padding: 0 22px;
  border: 1px solid var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.home-modern__btn--light {
  background: var(--white);
  color: var(--bg-grey);
}

.home-modern__btn--outline {
  background: transparent;
  color: var(--white);
}

.home-modern__hero {
  position: relative;
  margin-top: 40px;
  height: 500px;
  max-height: 500px;
  min-height: 0;
  padding: 0;
  background-size: cover;
  background-position: center;
}

.home-modern__hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-modern__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.45) 0%, rgba(28, 28, 28, 0.65) 100%);
}

.home-modern__hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: 40px;
}

.home-modern__hero h1 {
  max-width: 800px;
  font-size: 58px;
  line-height: 1.08;
}

.home-modern__hero p {
  max-width: 760px;
  margin-top: 16px;
  font-size: 22px;
  color: var(--text);
}

.home-modern__hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-advantages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-advantages__item {
  border: 1px solid var(--grey);
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
}

.home-advantages__icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-bottom: 14px;
}

.home-advantages__item h3 {
  font-size: 18px;
  line-height: 1.3;
}

.home-advantages__item p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.home-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.home-services__item {
  position: relative;
  min-height: 180px;
  border: 1px solid var(--grey);
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

.home-services__bg,
.home-services__shade {
  position: absolute;
  inset: 0;
}

.home-services__bg {
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}

.home-services__shade {
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.2) 0%, rgba(30, 30, 30, 0.8) 100%);
}

.home-services__title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  font-size: 20px;
}

.home-services__item:hover .home-services__bg {
  transform: scale(1.05);
}

.home-portfolio {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.home-portfolio__item {
  border: 1px solid var(--grey);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  min-width: 0;
}

.home-portfolio__image {
  display: block;
  aspect-ratio: 5 / 4;
  background-size: cover;
  background-position: center;
}

.home-portfolio__content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.home-portfolio__content h3 {
  font-size: 24px;
  line-height: 1.25;
}

.home-portfolio__content p {
  margin: 10px 0 16px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  flex: 1 1 auto;
}

.home-portfolio__content .home-modern__link {
  margin-top: auto;
}

.home-about {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.home-about__content {
  border: 1px solid var(--grey);
  padding: 26px;
}

.home-about__content h2 {
  font-size: 38px;
  line-height: 1.2;
}

.home-about__content p {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

.home-about__content .home-modern__btn {
  margin-top: 22px;
}

.home-about__image {
  border: 1px solid var(--grey);
  min-height: 420px;
  background-size: cover;
  background-position: center;
}

.home-reviews {
  border: 1px solid var(--grey);
  padding: 24px;
  max-width: 100%;
  overflow: hidden;
}

.home-reviews__viewport {
  overflow: hidden;
  max-width: 100%;
}

.home-reviews__track {
  display: flex;
  gap: 12px;
  transition: transform 0.3s ease;
  min-width: 0;
  max-width: 100%;
}

.home-reviews__item {
  min-width: calc((100% - 24px) / 3);
  border: 1px solid var(--grey);
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.home-reviews__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.home-reviews__meta strong {
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  color: var(--white);
}

.home-reviews__meta span {
  font-size: 14px;
  color: var(--text);
}

.home-reviews__item p {
  margin: 12px 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-reviews__meta strong,
.home-reviews__meta span,
.home-reviews__item a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-reviews__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.home-reviews__arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.home-reviews__dots {
  display: flex;
  gap: 8px;
}

.home-reviews__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--white);
  background: transparent;
  cursor: pointer;
  opacity: 0.6;
}

.home-reviews__dot.is-active {
  opacity: 1;
  background: var(--white);
}

@media screen and (max-width: 1200px) {
  .home-modern__container {
    width: calc(100% - 40px);
  }

  .home-modern__hero h1 {
    font-size: 44px;
  }

  .home-modern__hero p {
    font-size: 18px;
  }

  .home-advantages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-portfolio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-reviews__item {
    min-width: calc((100% - 12px) / 2);
  }
}

@media screen and (max-width: 760px) {
  .home-modern {
    margin-top: var(--header-height-mobile);
  }

  .home-modern__section {
    padding: 22px 0;
  }

  .home-modern__section-head h2,
  .home-about__content h2 {
    font-size: 30px;
  }

  .home-modern__hero {
    margin-top: 24px;
    height: 420px;
    max-height: 420px;
    padding: 0;
  }

  .home-modern__hero-content {
    min-height: 100%;
    padding: 24px;
  }

  .home-modern__hero h1 {
    font-size: 34px;
  }

  .home-modern__hero p {
    font-size: 16px;
  }

  .home-modern__btn {
    width: 100%;
  }

  .home-advantages {
    grid-template-columns: 1fr;
  }

  .home-services {
    grid-template-columns: 1fr;
  }

  .home-services__item {
    min-height: 140px;
  }

  .home-portfolio {
    grid-template-columns: 1fr;
  }

  .home-services,
  .home-portfolio,
  .home-services__item,
  .home-portfolio__item {
    width: 100%;
    max-width: 100%;
  }

  .home-portfolio__content {
    padding: 14px;
  }

  .home-about {
    grid-template-columns: 1fr;
  }

  .home-about__image {
    min-height: 280px;
  }

  .home-reviews {
    padding: 16px;
  }

  .home-reviews__item {
    min-width: 100%;
  }
}

/* Services page */
.services-page {
  margin-top: var(--header-height-desktop);
}

.services-page__container {
  width: 1200px;
  margin: 0 auto;
}

.services-page__hero {
  position: relative;
  margin-top: 40px;
  height: 230px;
  max-height: 230px;
  background-size: cover;
  background-position: center;
}

.services-page__hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-page__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.56);
}

.services-page__hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  height: 100%;
  padding: 24px 40px;
}

.services-page__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.services-page__breadcrumbs a,
.services-page__breadcrumbs span {
  font-size: 14px;
  color: var(--text);
}

.services-page__hero h1 {
  font-size: 42px;
  line-height: 1.15;
}

.services-page__section {
  padding: 36px 0;
}

.services-page__section--seo {
  padding-top: 12px;
}

.services-page__seo-content h2,
.services-page__seo-content h3 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.2;
}

.services-page__seo-content p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}

.services-page__seo-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border: 1px solid var(--grey);
}

@media screen and (max-width: 1200px) {
  .services-page__container {
    width: calc(100% - 40px);
  }
}

@media screen and (max-width: 760px) {
  .services-page {
    margin-top: var(--header-height-mobile);
  }

  .services-page__hero {
    margin-top: 24px;
    height: 190px;
    max-height: 190px;
  }

  .services-page__hero-content {
    padding: 18px 20px;
    gap: 10px;
  }

  .services-page__hero h1 {
    font-size: 30px;
  }

  .services-page__section {
    padding: 22px 0;
  }

  .services-page__seo-content h2,
  .services-page__seo-content h3 {
    font-size: 26px;
  }
}

/* Service page */
.service-page {
  margin-top: var(--header-height-desktop);
}

.service-page__container {
  width: 1200px;
  margin: 0 auto;
}

.service-page__section {
  padding: 36px 0;
}

.service-page__section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.service-page__section-head h2 {
  font-size: 36px;
  line-height: 1.2;
}

.service-page__hero {
  position: relative;
  margin-top: 40px;
  width: 100%;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.service-page .home-services,
.services-page .home-services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
}

.service-page .home-portfolio {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.service-page__hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-page__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.42) 0%, rgba(18, 18, 18, 0.72) 100%);
}

.service-page__hero-content {
  position: relative;
  z-index: 1;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.service-page__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.service-page__breadcrumbs a,
.service-page__breadcrumbs span {
  font-size: 14px;
  color: var(--text);
}

.service-page__hero-content h1 {
  max-width: 900px;
  font-size: 54px;
  line-height: 1.08;
}

.service-page__hero-content p {
  max-width: 840px;
  margin-top: 16px;
  color: var(--text);
  font-size: 18px;
}

.service-page__hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.service-page__intro {
  border-left: 3px solid var(--white);
  padding: 12px 0 12px 20px;
}

.service-page__intro p {
  max-width: 900px;
  font-size: 24px;
  line-height: 1.45;
  color: var(--text);
  font-style: italic;
}

.service-page__table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--grey);
}

.service-page__table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.service-page__prices-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.service-page__prices-content table {
  width: 100%;
  max-width: none;
  border-collapse: collapse;
  min-width: 860px;
}

.service-page__prices-content th,
.service-page__prices-content td {
  padding: 14px 16px;
  text-align: left;
  font-size: 15px;
  font-family: "Open Sans", sans-serif;
}

.service-page__prices-content th {
  background: var(--white);
  color: var(--bg-grey);
  border-bottom: 1px solid var(--grey);
}

.service-page__prices-content tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.08);
}

.service-page__prices-content tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

.service-page__prices-content td {
  color: var(--text);
  border-bottom: 1px solid rgba(82, 83, 84, 0.55);
}

.service-page__prices-content tbody tr:last-child td {
  border-bottom: none;
}

.service-page__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

.service-page__table th,
.service-page__table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 15px;
  font-family: "Open Sans", sans-serif;
}

.service-page__table th {
  background: var(--white);
  color: var(--bg-grey);
  border-bottom: 1px solid var(--grey);
}

.service-page__table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.08);
}

.service-page__table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

.service-page__table td {
  color: var(--text);
  border-bottom: 1px solid rgba(82, 83, 84, 0.55);
}

.service-page__table tbody tr:last-child td {
  border-bottom: none;
}

.service-page__table tbody td:first-child,
.service-page__table tbody td:last-child {
  color: var(--white);
}

.service-page__variants {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.service-page__variant {
  border: 1px solid var(--grey);
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.service-page__variant h3 {
  font-size: 20px;
}

.service-page__variant p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.45;
}

.service-page__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.service-page__step {
  border: 1px solid var(--grey);
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.service-page__step span {
  width: 34px;
  height: 34px;
  border: 1px solid var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.service-page__step h3 {
  margin-top: 12px;
  font-size: 18px;
}

.service-page__step p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}

.service-page__related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-page__related a {
  border: 1px solid var(--grey);
  padding: 10px 14px;
  font-size: 15px;
  color: var(--text);
}

.service-page__section--faq .accordion {
  margin-top: 0;
}

.service-page__section--seo {
  padding-top: 12px;
}

.service-page__seo-content h2,
.service-page__seo-content h3 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.2;
}

.service-page__seo-content p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}

.service-page__seo-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border: 1px solid var(--grey);
}

.service-page__section--faq .accordion-item {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--grey);
}

.service-page__section--faq .accordion-item .accordion-header {
  background: transparent;
  color: var(--white);
}

.service-page__section--faq .accordion-item .accordion-header span {
  color: var(--white);
  font-family: "Open Sans", sans-serif;
}

.service-page__section--faq .accordion-item .accordion-icon path {
  fill: var(--white);
}

.service-page__section--faq .accordion-item.active .accordion-header {
  background: rgba(255, 255, 255, 0.06);
}

.service-page__section--faq .accordion-item.active .accordion-header,
.service-page__section--faq .accordion-item.active .accordion-header span {
  color: var(--white);
}

.service-page__section--faq .accordion-item.active .accordion-icon path {
  fill: var(--white);
}

.service-page__section--faq .accordion-item hr,
.service-page__section--faq .accordion-item.active hr {
  border-color: var(--grey);
}

.service-page__section--faq .accordion-item .accordion-content,
.service-page__section--faq .accordion-item.active .accordion-content {
  background: transparent;
}

.service-page__section--faq .accordion-item .accordion-content p,
.service-page__section--faq .accordion-item .accordion-content li,
.service-page__section--faq .accordion-item.active .accordion-content p,
.service-page__section--faq .accordion-item.active .accordion-content li {
  color: var(--text);
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
}

@media screen and (max-width: 1200px) {
  .service-page__container {
    width: calc(100% - 40px);
  }

  .service-page .home-services,
  .services-page .home-services,
  .service-page .home-portfolio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-page__variants {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-page__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media screen and (max-width: 760px) {
  .service-page {
    margin-top: var(--header-height-mobile);
  }

  .service-page__hero {
    margin-top: 24px;
    width: 100%;
    min-height: 420px;
  }

  .service-page__hero-content {
    min-height: 420px;
    padding: 24px 20px;
  }

  .service-page__hero-content h1 {
    font-size: 34px;
  }

  .service-page__hero-content p {
    font-size: 16px;
  }

  .service-page__hero-actions .home-modern__btn {
    width: 100%;
  }

  .service-page__section {
    padding: 22px 0;
  }

  .service-page__section-head h2 {
    font-size: 30px;
  }

  .service-page__intro p {
    font-size: 20px;
  }

  .service-page__seo-content h2,
  .service-page__seo-content h3 {
    font-size: 26px;
  }

  .service-page__variants {
    grid-template-columns: 1fr;
  }

  .service-page__steps {
    grid-template-columns: 1fr;
  }

  .service-page .home-services,
  .services-page .home-services,
  .service-page .home-portfolio {
    grid-template-columns: 1fr;
  }
}

/* Projects listing page */
.projects-landing {
  margin-top: var(--header-height-desktop);
}

.projects-landing__container {
  width: 1200px;
  margin: 0 auto;
}

.projects-landing__hero {
  position: relative;
  margin-top: 40px;
  height: 230px;
  max-height: 230px;
  background-size: cover;
  background-position: center;
}

.projects-landing__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.58);
}

.projects-landing__hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px 40px;
}

.projects-landing__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.projects-landing__breadcrumbs a,
.projects-landing__breadcrumbs span {
  font-size: 14px;
  color: var(--text);
}

.projects-landing__hero h1 {
  font-size: 42px;
  line-height: 1.15;
}

.projects-landing__section {
  padding: 36px 0;
}

.projects-landing__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.projects-landing__filter {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--grey);
  background: transparent;
  color: var(--text);
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.projects-landing__filter.is-active,
.projects-landing__filter:hover {
  background: var(--white);
  color: var(--bg-grey);
  border-color: var(--white);
}

.projects-landing__section--seo {
  padding-top: 12px;
}

.projects-landing__seo-content h2,
.projects-landing__seo-content h3 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.2;
}

.projects-landing__seo-content p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}

/* Project single landing */
.project-single-landing {
  margin-top: var(--header-height-desktop);
}

.project-single-landing__container {
  width: 1200px;
  margin: 0 auto;
}

.project-single-landing__hero {
  position: relative;
  margin-top: 40px;
  min-height: 500px;
  background-size: cover;
  background-position: center;
}

.project-single-landing__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.4) 0%, rgba(18, 18, 18, 0.72) 100%);
}

.project-single-landing__hero-content {
  position: relative;
  z-index: 1;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
}

.project-single-landing__breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.project-single-landing__breadcrumbs a,
.project-single-landing__breadcrumbs span {
  font-size: 14px;
  color: var(--text);
}

.project-single-landing__hero-content h1 {
  max-width: 900px;
  font-size: 54px;
  line-height: 1.08;
}

.project-single-landing__hero-content p {
  max-width: 760px;
  margin-top: 16px;
  font-size: 18px;
  color: var(--text);
}

.project-single-landing__section {
  padding: 36px 0;
}

.project-single-landing__section-head {
  margin-bottom: 14px;
}

.project-single-landing__section-head h2 {
  font-size: 36px;
  line-height: 1.2;
}

.project-single-landing__intro {
  border-left: 3px solid var(--white);
  padding: 12px 0 12px 20px;
}

.project-single-landing__intro p {
  max-width: 900px;
  font-size: 24px;
  line-height: 1.45;
  color: var(--text);
  font-style: italic;
}

.project-single-landing__section--seo {
  padding-top: 12px;
}

.project-single-landing__seo-content h2,
.project-single-landing__seo-content h3 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.2;
}

.project-single-landing__seo-content p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}

/* About page */
.about-landing {
  margin-top: var(--header-height-desktop);
}

.about-landing__container {
  width: 1200px;
  margin: 0 auto;
}

.about-landing__hero {
  position: relative;
  margin-top: 40px;
  min-height: 360px;
}

.about-landing__hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-landing__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.58);
}

.about-landing__hero-content {
  position: relative;
  z-index: 1;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 34px 40px;
}

.about-landing__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-landing__breadcrumbs a,
.about-landing__breadcrumbs span {
  font-size: 14px;
  color: var(--text);
}

.about-landing__hero h1 {
  font-size: 46px;
  line-height: 1.1;
}

.about-landing__hero p {
  margin: 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
}

.about-landing__section {
  padding: 36px 0;
}

.about-landing__intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-landing__intro p {
  margin: 0;
  padding: 22px;
  border: 1px solid var(--grey);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
}

.about-landing__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-landing__card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--grey);
  padding: 22px;
}

.about-landing__card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.about-landing__card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}

.about-landing__section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 18px;
}

.about-landing__section-head h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.15;
}

.about-landing__section--seo {
  padding-top: 12px;
}

.about-landing__seo-content h2,
.about-landing__seo-content h3 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.2;
}

.about-landing__seo-content p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}

.about-landing__seo-content ul,
.about-landing__seo-content ol {
  margin: 0 0 16px 18px;
  color: var(--text);
}

.about-landing__seo-content li {
  margin-bottom: 6px;
}

/* Universal info page */
.info-landing {
  margin-top: var(--header-height-desktop);
}

.info-landing__container {
  width: 1200px;
  margin: 0 auto;
}

.info-landing__hero {
  position: relative;
  margin-top: 40px;
  height: 230px;
  max-height: 230px;
  background-size: cover;
  background-position: center;
}

.info-landing__overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.58);
}

.info-landing__hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 24px 40px;
}

.info-landing__breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-landing__breadcrumbs a,
.info-landing__breadcrumbs span {
  font-size: 14px;
  color: var(--text);
}

.info-landing__hero h1 {
  font-size: 42px;
  line-height: 1.15;
}

.info-landing__section {
  padding: 36px 0;
}

.info-landing__content h2,
.info-landing__content h3 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.2;
}

.info-landing__content p,
.info-landing__content li,
.info-landing__content td,
.info-landing__content th {
  font-family: "Open Sans", sans-serif;
}

.info-landing__content p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}

.info-landing__content ul {
  margin: 0 0 18px 18px;
  color: var(--text);
}

.info-landing__content li {
  margin-bottom: 8px;
  color: var(--text);
}

.info-landing__content table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--grey);
  margin-top: 14px;
}

.info-landing__content th,
.info-landing__content td {
  border-bottom: 1px solid var(--grey);
  padding: 12px 14px;
  text-align: left;
  font-size: 15px;
}

.info-landing__content th {
  background: var(--white);
  color: var(--bg-grey);
}

.info-landing__content td {
  color: var(--text);
}

.info-landing__figure {
  margin: 14px 0;
}

.info-landing__figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--grey);
}

.info-landing__gallery {
  display: grid;
  gap: 12px;
  margin: 14px 0 20px;
}

.info-landing__gallery--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-landing__gallery--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Sitemap page */
.sitemap-landing__tree {
  columns: 3 320px;
  column-gap: 28px;
}

.sitemap-landing__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sitemap-landing__list--level-0 {
  break-inside: avoid;
  margin-bottom: 18px;
}

.sitemap-landing__list--level-1,
.sitemap-landing__list--level-2,
.sitemap-landing__list--level-3,
.sitemap-landing__list--level-4 {
  margin-top: 8px;
  padding-left: 16px;
}

.sitemap-landing__item {
  break-inside: avoid;
  margin-bottom: 8px;
}

.sitemap-landing__link {
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
}

.sitemap-landing__link:hover {
  color: var(--white);
}

@media screen and (max-width: 1200px) {
  .about-landing__container,
  .projects-landing__container,
  .project-single-landing__container,
  .info-landing__container {
    width: calc(100% - 40px);
  }
}

@media screen and (max-width: 760px) {
  .home-modern,
  .services-page,
  .service-page,
  .projects-landing,
  .project-single-landing,
  .about-landing,
  .info-landing,
  .sitemap-landing {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .home-modern__hero,
  .home-modern__section,
  .services-page__hero,
  .services-page__section,
  .service-page__hero,
  .service-page__section,
  .projects-landing__hero,
  .projects-landing__section,
  .project-single-landing__hero,
  .project-single-landing__section,
  .about-landing__hero,
  .about-landing__section,
  .info-landing__hero,
  .info-landing__section {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .home-modern__container,
  .services-page__container,
  .service-page__container,
  .projects-landing__container,
  .project-single-landing__container,
  .about-landing__container,
  .info-landing__container {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  .home-modern__hero-content,
  .services-page__hero-content,
  .service-page__hero-content,
  .projects-landing__hero-content,
  .project-single-landing__hero-content,
  .about-landing__hero-content,
  .info-landing__hero-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .home-services,
  .home-portfolio,
  .home-reviews,
  .home-reviews__viewport,
  .home-reviews__track,
  .home-services__item,
  .home-portfolio__item {
    min-width: 0;
  }

  .about-landing,
  .projects-landing,
  .project-single-landing,
  .info-landing {
    margin-top: var(--header-height-mobile);
  }

  .about-landing__hero,
  .projects-landing__hero,
  .info-landing__hero {
    margin-top: 24px;
    height: 190px;
    max-height: 190px;
  }

  .about-landing__hero-content,
  .projects-landing__hero-content,
  .info-landing__hero-content {
    padding: 18px 20px;
  }

  .about-landing__hero h1,
  .projects-landing__hero h1,
  .info-landing__hero h1 {
    font-size: 30px;
  }

  .about-landing__hero p {
    font-size: 16px;
  }

  .about-landing__section,
  .projects-landing__section,
  .project-single-landing__section,
  .info-landing__section {
    padding: 22px 0;
  }

  .about-landing__seo-content h2,
  .about-landing__seo-content h3,
  .about-landing__section-head h2,
  .projects-landing__seo-content h2,
  .projects-landing__seo-content h3,
  .project-single-landing__seo-content h2,
  .project-single-landing__seo-content h3,
  .project-single-landing__section-head h2,
  .info-landing__content h2,
  .info-landing__content h3 {
    font-size: 26px;
  }

  .about-landing__intro {
    grid-template-columns: 1fr;
  }

  .about-landing__intro p,
  .about-landing__card {
    padding: 18px;
  }

  .about-landing__cards {
    grid-template-columns: 1fr;
  }

  .about-landing__section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-single-landing__hero {
    margin-top: 24px;
    min-height: 420px;
  }

  .project-single-landing__hero-content {
    min-height: 420px;
    padding: 24px 20px;
  }

  .project-single-landing__hero-content h1 {
    font-size: 34px;
  }

  .project-single-landing__hero-content p {
    font-size: 16px;
  }

  .project-single-landing__intro p {
    font-size: 20px;
  }

  .info-landing__gallery--two,
  .info-landing__gallery--three {
    grid-template-columns: 1fr;
  }

  .sitemap-landing__tree {
    columns: 1;
  }
}

