/* HERO */

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: #acdcd2;
  overflow: hidden;
}

.hero .container {
    height: 100%;
}

.hero-content {
  display: flex;
  width: 100%;
  height: 100%;
}

.hero-left {
  width: 60%;
  display: flex;
  flex-direction: column;
}

.hero-right {
  width: 40%;
  display: flex;
  flex-direction: column;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
  height: calc(100% - 70px);
  justify-content: center;
}

.hero-text h1 {
  font-size: 75px;
  font-weight: 600;
  line-height: 1;
  max-width: 700px;
  color: #010109;
}

.hero-btn {
  font-size: 16px;
  line-height: 1;
  color: #fff;
  padding: 24px 28px;
  background: #010109;
  width: fit-content;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}

.hero-btn:hover {
  opacity: 0.8;
}

.hero-desc {
  background: #0b2923;
  height: 70px;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-desc:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #0b2923;
  pointer-events: none;
  left: -100%;
}

.hero-desc p {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  max-width: 270px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-logo {
  display: flex;
  justify-content: flex-end;
  height: calc(100% - 70px);
  background: #0b2923;
  align-items: flex-end;
  position: relative;
}

.hero-logo svg {
  position: absolute;
  bottom: 32px;
  right: 0;
}

.hero-logo:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #0b2923;
  top: 0;
  right: -100%;
}

.hero-element {
  height: 70px;
}

@media (max-width: 1440px) {
  .hero-logo svg {
    transform-origin: bottom right;
    transform: scale(0.9);
  }
}

@media (max-width: 1320px) {
  .hero-logo svg {
    transform: scale(0.8);
  }
}

@media (max-width: 1240px) {
  .hero-logo svg {
    transform: scale(0.7);
  }
}

@media (max-width: 1024px) {
  .hero {
    height: 60vh;
  }

  .hero-text h1 {
    font-size: 44px;
    max-width: 400px;
  }

  .hero-logo svg {
    position: absolute;
    bottom: 20px;
    right: 0;
    transform: scale(0.6);
  }
}

@media (max-width: 820px) {
  .hero {
    height: 60vh;
  }

  .hero-logo svg {
    transform: scale(0.5);
  }
}

@media (max-width: 768px) {
  .hero {
    height: 70vh;
  }
}

@media (max-width: 767px) {
  .hero {
    height: calc(100vh - 55px);
  }

  .hero-left {
    width: calc(100% - 100px);
  }

  .hero-right {
    width: 100px;
  }

  .hero-text {
    gap: 22px;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .hero-btn {
    font-size: 14px;
    padding: 16px 20px;
  }

  .hero-logo svg {
    position: absolute;
    bottom: 14px;
    right: 0;
    transform: scale(0.17);
    transform-origin: bottom right;
  }
}

@media (max-width: 360px) {
  .hero-text h1 {
    font-size: 32px;
  }

  .hero-btn {
    padding: 16px;
  }
}

/* --- HERO --- */

/* PARTNERS */

.partners {
  padding: 84px 0 94px;
}

.partners-carousel {
  padding-top: 32px;
}

.clients-swiper {
  width: 100%;
  overflow: hidden;
  pointer-events: none;
}

.client-card {
  height: 175px;
  border-radius: 8px;
  background: #f1eff6;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 18px;
  box-sizing: border-box;
  user-select: none;
}

.client-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.clients-swiper .swiper-wrapper {
  align-items: stretch;
  height: fit-content;
  transition-timing-function: linear !important;
}

.clients-swiper .swiper-slide {
  width: 247px;
}

.clients-swiper {
  cursor: grab;
}
.clients-swiper:active {
  cursor: grabbing;
}

@media (max-width: 1024px) {
  .partners {
    padding: 62px 0 64px;
  }

  .partners-carousel {
    padding-top: 24px;
  }

  .client-card {
    height: 150px;
  }
  .clients-swiper .swiper-slide {
    width: 210px;
  }
}

@media (max-width: 767px) {
  .partners {
    padding: 54px 0;
  }

  .partners-carousel {
    padding-top: 22px;
  }

  .client-card {
    height: 80px;
    border-radius: 4px;
  }
  .clients-swiper .swiper-slide {
    width: 110px;
  }
}

/* Make wrapper a single line */
#clientsSwiper .swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
}

/* Slides should not shrink */
#clientsSwiper .swiper-slide {
  flex: 0 0 auto;
}

#clientsSwiper .swiper-slide {
  flex: 0 0 auto;
  margin-right: 8px;
}

@media (min-width: 768px) {
  #clientsSwiper .swiper-slide { margin-right: 18px; }
}

@media (min-width: 1024px) {
  #clientsSwiper .swiper-slide { margin-right: 8px; }
}

/* --- PARTNERS --- */

/* ABOUT */

.about {
  padding: 84px 0 110px;
  background: #acdcd2;
  overflow: hidden;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-subtitle {
  font-size: 87px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  max-width: 1000px;
}

.about-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  max-width: 500px;
}

.about-history {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 40px;
  position: relative;
  overflow: visible;
}

.history-slider {
  width: 100%;
  overflow: visible;
}

.history-slider .swiper-slide {
  width: auto;
}

.history-slider-navigation {
  display: flex;
  gap: 8px;
}

.history-item {
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1 / 1;
  padding: 16px 20px;
}

.history-year {
  font-size: 100px;
  line-height: 1;
  font-weight: 700;
  user-select: none;
}

.history-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  user-select: none;
}

@media (max-width: 1024px) {
  .about {
    padding: 64px 0;
  }

  .about-subtitle {
    font-size: 78px;
  }

  .history-year {
    font-size: 86px;
  }
}

@media (max-width: 767px) {
  .about {
    padding: 54px 0;
  }

  .about-subtitle {
    font-size: 40px;
  }

  .history-year {
    font-size: 54px;
  }

  .history-text {
    font-size: 12px;
  }

  .about-history {
    margin-top: 32px;
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

/* --- ABOUT --- */

/* MAP */

.map {
  padding: 84px 0 80px;
}

.map-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.map-element {
  position: relative;
  overflow: hidden;
}

.map-location-info {
  position: absolute;
  width: 270px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 14px;
  background: #16342d;
  color: #acdcd2;
  padding: 20px;

  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.map-location-info.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.map-location-city {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.map-location-desc {
  font-size: 14px;
  line-height: 1.3;
}

.map-element svg {
  width: 100%;
  height: auto;
}

.map-location {
  cursor: pointer;
}

.map-location path {
  pointer-events: all;
}

.map-location:hover path,
.map-location.is-active path {
  fill: #16342d;
}

.map-location-info {
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition: opacity 0.2s ease, transform 0.35s ease;
  will-change: transform;
  pointer-events: none;
}

.map-location-info.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 1024px) {
  .map {
    padding: 64px 0 48px;
  }

  .map-content {
    gap: 28px;
  }

  .map-location-info {
    top: 0;
    right: 0;
  }
}

@media (max-width: 820px) {
  .map-location-info {
    padding: 14px;
  }
}

@media (max-width: 767px) {
  .map-element {
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
  }

  .map-location-info {
    position: relative !important;
    opacity: 1 !important;
    width: 100%;
    transform: translate3d(0, 0px, 0);
  }

  .map-location-desc {
    font-size: 16px;
  }

  .map-element svg {
    width: 150%;
  }
}
/* --- MAP --- */

/* CASES */

.cases {
  padding-bottom: 84px;
  overflow: hidden;
}

.cases-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cases-title-area {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.cases-filters {
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 6px;
  border-radius: 40px;
  background: #f0f0f0;
  display: flex;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.cases-filters::-webkit-scrollbar {
  display: none;
}

.cases-filters-item {
  border-radius: 44px;
  background-color: #fff;
  color: #0b2923;
  padding: 20px 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, color 0.2s ease-in-out;
  white-space: nowrap;
}

.cases-filters-item.is-active,
.cases-filters-item:hover {
  background-color: #010109;
  color: #fff;
}

.cases-slider-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cases-slider {
  width: 100%;
  overflow: visible;
}

.cases-slider .swiper-slide {
  width: auto;
}

.cases-item {
  display: flex;
  flex-direction: column;
  position: relative;
}

.cases-item-image-area {
  height: 325px;
  position: relative;
  overflow: hidden;
}

.cases-item-image {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.cases-item-title {
  background-color: #dcdcdc;
  padding: 15px;
  text-decoration: none;
  color: #000;
  display: flex;
  gap: 27px;
  flex-direction: column;
  justify-content: space-between;
}

.cases-item-title:hover {
  filter: brightness(0.97);
}

.cases-item-title p {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
  max-width: 80%;
}

.cases-item-title span {
  font-size: 37px;
  font-weight: 500;
  line-height: 1;
  text-align: right;
}

.cases-category {
  padding: 14px 24px;
  width: fit-content;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #0c0f20;
  border-radius: 44px;
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 16px;
  font-weight: 500;
  z-index: 2;
}

@media (max-width: 1024px) {
  .cases {
    padding-bottom: 64px;
  }
}

@media (max-width: 767px) {
  .cases {
    padding-bottom: 64px;
  }

  .cases-content {
    gap: 22px;
  }

  .slider-navigation-btn {
    width: 40px;
    height: 40px;
  }

  .cases-title {
    max-width: 50%;
  }

  .cases-filters {
    font-size: 12px;
    padding: 4px;
  }

  .cases-filters-item {
    padding: 12px 20px;
  }

  .cases-slider-content {
    gap: 22px;
  }

  .cases-category {
    font-size: 12px;
    padding: 12px 20px;
    top: 11px;
    left: 11px;
  }

  .cases-item-title {
    gap: 20px;
  }

  .cases-item-title p {
    font-size: 18px;
  }

  .all-cases-btn {
    font-size: 12px;
    padding: 16px 20px;
  }
}

/* Cases filter fade */
#casesSwiper .swiper-slide {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
  will-change: opacity, transform;
}

#casesSwiper .swiper-slide.is-fading-out {
  opacity: 0;
  transform: translateY(8px);
}

#casesSwiper .swiper-slide.is-hidden {
  display: none;
}

/* --- CASES --- */

/* POPULAR SERVICES */

.popular-services {
  padding-bottom: 84px;
}

.popular-services-content {
  display: flex;
  flex-direction: column;
}

.popular-services-desc {
  margin-top: 15px;
  font-size: 24px;
  font-weight: 400;
  color: #000;
  opacity: 0.4;
}

.popular-services-items {
  margin-top: 40px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.popular-services-item:hover {
  filter: brightness(0.97);
}

/* Card */
.popular-services-item {
  display: flex;
  flex-direction: column; /* важно */
  align-items: flex-start; /* текст слева */
  justify-content: flex-start; /* текст сверху */

  height: 186px;
  padding: 20px;

  background: #acdcd2;
  color: #000;
  text-decoration: none;
}

.popular-services-title {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  max-width: 85%;
}

/* Arrow bottom-right */
.popular-services-arrow {
  margin-top: auto;
  align-self: flex-end;

  font-size: 37px;
  font-weight: 500;
  line-height: 1;
}

/* Big card: правая колонка, 2 ряда */
.popular-services-item--big {
  grid-column: 3;
  grid-row: 1 / span 2;
  height: calc(186px * 2 + 16px);
}

.popular-services .all-services-btn {
  margin-top: 32px;
}

@media (max-width: 1024px) {
  .popular-services {
    padding-bottom: 64px;
  }

  .popular-services-desc {
    margin-top: 12px;
    font-size: 16px;
  }

  .popular-services-items {
    margin-top: 32px;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .popular-services-item--big {
    grid-column: auto;
    grid-row: auto;
    height: 186px;
  }

  .popular-services-item:last-child {
    grid-column: 1 / -1;
  }

  .popular-services-title {
    max-width: 90%;
  }

  .popular-services .all-services-btn {
    margin-top: 24px;
  }
}

@media (max-width: 767px) {
  .popular-services-items {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .popular-services-item {
    width: 100%;
    height: auto;
    padding: 30px 22px;
  }

  .popular-services-title {
    font-size: 16px;
    width: 100%;
  }

  .popular-services-title br {
    display: none;
  }

  .popular-services-arrow {
    display: none;
  }

  .popular-services .all-services-btn {
    margin-top: 21px;
    font-size: 12px;
    padding: 16px 20px !important;
  }
}

/* --- POPULAR SERVICES --- */

/* ACHIEVEMENTS */

.achievements {
  overflow: hidden;
}

.achievements-content {
  display: flex;
}

.achievements-left,
.achievements-right {
  width: 50%;
  position: relative;
}

.achievements-left {
  background: #4b2c5e;
  padding: 70px 0px 180px 0px;
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.achievements-left:before {
  content: "";
  width: 100%;
  height: 100%;
  background: #4b2c5e;
  position: absolute;
  left: -100%;
  top: 0;
}

.achievements-title {
  color: #fff;
  font-weight: 600;
}

.achievements-numbers {
  display: flex;
  flex-direction: column;
  gap: 74px;
}

.ach-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #fff;
}

.value {
  font-size: 120px;
  line-height: 1;
  font-weight: 500;
}

.label {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.1;
}

.achievements-right {
  background: #c9b6f4;
}

.achievements-right:before {
  content: "";
  width: 100%;
  height: 100%;
  background: #c9b6f4;
  position: absolute;
  right: -100%;
  top: 0;
}

.achievements-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 130px;
}

.achievements-right .achievements-numbers {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1%;
  row-gap: 120px;
  padding-left: 55px;
}

.achievements-right .ach-item {
  color: #010206;
  width: calc(50% - 0.5%);
}

.achievements-right .ach-item .value {
  font-size: 72px;
  font-weight: 500;
  line-height: 1;
}

.achievements-elements {
  display: flex;
  flex-wrap: nowrap;
  height: 75px;
  align-items: flex-end;
}

.ach-el-1 {
  width: 95px;
  background: #4b2c5e;
  height: 50%;
}

.ach-el-2 {
  width: 175px;
  background: #4b2c5e;
  height: 50%;
  transform: translateY(-37.5px);
}

.ach-el-3 {
  flex: 1;
  background: #4b2c5e;
  height: 50%;
  position: relative;
}

.ach-el-3:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: #4b2c5e;
  bottom: 0;
  right: -100%;
}

@media (max-width: 1240px) {
  .ach-item .label {
    font-size: 18px;
  }
}

@media (max-width: 1024px) {
  .achievements-content {
    flex-direction: column;
  }

  .achievements-left,
  .achievements-right {
    width: 100%;
  }

  .achievements-left {
    padding: 64px 0 74px;
    gap: 50px;
  }

  .achievements-left:after {
    content: "";
    width: 100%;
    height: 100%;
    background: #4b2c5e;
    position: absolute;
    right: -100%;
    top: 0;
  }

  .ach-item .value {
    font-size: 120px;
  }

  .ach-item .label {
    font-size: 20px;
  }

  .achievements-numbers {
    gap: 64px;
  }

  .achievements-right {
    padding-top: 64px;
  }

  .achievements-right .achievements-numbers {
    row-gap: 64px;
    padding-left: 0;
  }

  .achievements-right .ach-item .value {
    font-size: 85px;
  }

  .achievements-right:after {
    content: "";
    width: 100%;
    height: 100%;
    background: #c9b6f4;
    position: absolute;
    left: -100%;
    top: 0;
  }

  .ach-el-1 {
    position: relative;
  }

  .ach-el-1:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #4b2c5e;
    bottom: 0;
    left: -100%;
    z-index: 1;
  }
}

@media (max-width: 767px) {
  .achievements-left {
    padding: 54px 0;
    gap: 44px;
  }

  .ach-item .value {
    font-size: 74px;
  }

  .achievements-left .ach-item .label {
    font-size: 16px;
  }

  .achievements-numbers {
    gap: 44px;
  }

  .achievements-right {
    padding-top: 54px;
    gap: 54px;
  }

  .achievements-right .achievements-numbers {
    gap: 60px;
    flex-direction: column;
  }

  .achievements-right .ach-item {
    width: 100%;
  }

  .achievements-right .ach-item .value {
    font-size: 74px;
  }

  .achievements-right .ach-item .label {
    max-width: 60%;
    font-size: 16px;
  }

  .ach-el-1 {
    width: 45px;
  }

  .ach-el-2 {
    width: 100px;
  }
}

/* --- ACHIEVEMENTS --- */

/* ALL SERVICES SECTION */

.all-services {
  padding: 84px 0;
}

.all-services-content {
  display: flex;
  flex-direction: column;
  margin-top: 26px;
  gap: 16px;
}

.all-services-filters {
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  border-radius: 40px;
  background: #f0f0f0;
  display: flex;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.all-services-filters-item {
  border-radius: 44px;
  background-color: #fff;
  color: #0b2923;
  padding: 20px 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, color 0.2s ease-in-out;
}

.all-services-filters-item.is-active,
.all-services-filters-item:hover {
  background-color: #010109;
  color: #fff;
}

.all-services-practic .all-services-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 150px;
  gap: 16px;
}

/* Base card */
.all-services-practic .all-services-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  padding: 20px;
  background: #acdcd2;
  color: #000;
  text-decoration: none;
}

/* Title */
.all-services-practic .all-services-title {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  max-width: 85%;
}

/* Arrow */
.all-services-practic .all-services-arrow {
  margin-top: auto;
  align-self: flex-end;
  font-size: 37px;
  font-weight: 500;
  line-height: 1;
}

/* ===== GRID PLACEMENT ===== */

/* Левая колонка — маленькие */
.all-services-practic .all-services-item:nth-child(1),
.all-services-practic .all-services-item:nth-child(2),
.all-services-practic .all-services-item:nth-child(3),
.all-services-practic .all-services-item:nth-child(4) {
  grid-column: 1;
}

/* Центр — большие */
.all-services-practic .all-services-item:nth-child(5) {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.all-services-practic .all-services-item:nth-child(6) {
  grid-column: 2;
  grid-row: 3 / span 2;
}

/* Правая колонка — большие */
.all-services-practic .all-services-item:nth-child(7) {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.all-services-practic .all-services-item:nth-child(8) {
  grid-column: 3;
  grid-row: 3 / span 2;
}

.all-services-item:hover {
  filter: brightness(0.97);
}

/* ================================
   ALL SERVICES — INDUSTRY (STACK)
================================ */

.all-services-industry .all-services-items {
  --H: 150px;
  --gap: 16px;
  --bg: #b7d7f6;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  width: 100%;
}

/* Base card */
.all-services-industry .all-services-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;

  padding: 20px;
  background: var(--bg);
  color: #000;
  text-decoration: none;

  box-sizing: border-box;
  min-width: 0;
}

/* Title */
.all-services-industry .all-services-title {
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
  max-width: 85%;
}

/* Arrow */
.all-services-industry .all-services-arrow {
  margin-top: auto;
  align-self: flex-end;

  font-size: 37px;
  font-weight: 500;
  line-height: 1;
}

/* ===== Layout mapping (строго как макет) ===== */

/* 1–8: две колонки по 4 */
.all-services-industry .all-services-item:nth-child(-n + 8) {
  height: var(--H);
}

.all-services-industry .all-services-item:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}
.all-services-industry .all-services-item:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}
.all-services-industry .all-services-item:nth-child(3) {
  grid-column: 1;
  grid-row: 3;
}
.all-services-industry .all-services-item:nth-child(4) {
  grid-column: 1;
  grid-row: 4;
}

.all-services-industry .all-services-item:nth-child(5) {
  grid-column: 2;
  grid-row: 1;
}
.all-services-industry .all-services-item:nth-child(6) {
  grid-column: 2;
  grid-row: 2;
}
.all-services-industry .all-services-item:nth-child(7) {
  grid-column: 2;
  grid-row: 3;
}
.all-services-industry .all-services-item:nth-child(8) {
  grid-column: 2;
  grid-row: 4;
}

/* 9–10: правая колонка, 2 обычных */
.all-services-industry .all-services-item:nth-child(9) {
  grid-column: 3;
  grid-row: 1;
  height: var(--H);
}
.all-services-industry .all-services-item:nth-child(10) {
  grid-column: 3;
  grid-row: 2;
  height: var(--H);
}

/* Stack container: правая колонка, занимает высоту 2 обычных + gap */
.all-services-industry .all-services-stack {
  grid-column: 3;
  grid-row: 3 / span 2;

  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: var(--gap);

  height: calc(var(--H) * 2 + var(--gap));
  min-height: calc(var(--H) * 2 + var(--gap));
  box-sizing: border-box;
}

/* Внутри stack карточки должны растягиваться по ячейкам */
.all-services-industry .all-services-stack .all-services-item {
  height: auto;
  min-height: 0;
}

.all-services-cat {
  display: none;
}

.all-services-cat.is-active {
  display: block;
}

.all-services-cta {
  padding: 23px 32px;
  background: #0b2923;
  color: #fff;
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.all-services-cta .cta-btn {
  padding: 15px 20px;
  background: #fff;
  color: #0b2923;
  font-size: 16px;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .all-services {
    padding: 64px 0;
  }

  .all-services-content {
    margin-top: 24px;
  }
}

@media (max-width: 820px) {
  .all-services-practic .all-services-items,
  .all-services-industry .all-services-items {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
  }

  .all-services-practic .all-services-item,
  .all-services-industry .all-services-item {
    width: calc(50% - 7px) !important;
    height: auto !important;
  }

  .all-services-industry .all-services-stack {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
    min-height: auto;
  }
}

@media (max-width: 767px) {
  .all-services {
    padding: 54px 0;
  }

  .all-services-practic .all-services-items,
  .all-services-industry .all-services-items,
  .all-services-industry .all-services-stack {
    gap: 5px;
    flex-direction: column;
  }

  .all-services-practic .all-services-item,
  .all-services-industry .all-services-item {
    width: 100% !important;
    padding: 29px 22px;
  }

  .all-services-practic .all-services-title,
  .all-services-industry .all-services-title {
    font-size: 16px;
  }

  .all-services-arrow {
    display: none;
  }

  .all-services-cta {
    padding: 20px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    font-size: 18px;
  }

  .all-services-filters-item {
    font-size: 12px;
    padding: 12px 20px;
  }

  .all-services-filters {
    padding: 4px;
  }
}

/* --- ALL SERVICES SECTION --- */

/* REVIEWS SECTION */

.reviews {
  padding: 84px 0 100px;
  background: #e5d8b5;
  overflow: hidden;
}

.reviews-content {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.reviews-title-area {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.reviews-slider {
  overflow: visible;
}

.reviews-item {
  padding: 22px 46px 22px 22px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 422px;
  user-select: none;
}

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

.reviews-author-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.reviews-author-avatar img {
  position: absolute;
  object-fit: cover;
  pointer-events: none;
}

.reviews-author-name {
  font-size: 16px;
  font-weight: 500;
  color: #242424;
  text-transform: uppercase;
  opacity: 0.5;
}

.reviews-text {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
  color: #000;
}

.reviews-services {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reviews-services-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.reviews-services-item {
  padding: 12px 20px;
  text-decoration: none;
  background: rgba(36, 36, 36, 0.09);
  font-size: 11px;
  color: #242424;
  width: fit-content;
  text-transform: uppercase;
}

.reviews-slider .swiper-slide {
  width: auto;
}

@media (max-width: 1024px) {
  .reviews {
    padding: 54px 0 100px;
  }
}

@media (max-width: 820px) {
  .reviews-item {
    gap: 20px;
    padding: 20px;
  }

  .reviews-author {
    gap: 10px;
  }

  .reviews-author-name {
    font-size: 14px;
  }

  .reviews-text {
    font-size: 20px;
  }

  .reviews-services-title {
    font-size: 12px;
  }
}

@media (max-width: 767px) {
  .reviews {
    padding: 54px 0;
  }

  .reviews-title {
    max-width: 50%;
  }

  .reviews-author-name {
    font-size: 12px;
  }

  .reviews-item {
    padding: 18px;
  }

  .reviews-text {
    font-size: 18px;
  }
}
/* --- REVIEWS SECTION --- */

/* TEAM */

.team {
  background: #fff;
  padding: 82px 0 161px;
}

.team-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 520px;
}

.team-blockquote {
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
  color: #000;
}

.team-author {
  display: flex;
  flex-direction: column;
  gap: 11px;
  color: #000;
  line-height: 1;
  font-weight: 400;
}

.team-autor-name {
  font-size: 27px;
}

.team-author-position {
  font-size: 14px;
  opacity: 0.4;
  width: 200px;
}

.team {
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.team-image {
  position: absolute;
  object-fit: cover;
  width: 50%;
  height: 100%;
  top: 0;
  right: 0;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 1024px) {
  .team {
    padding: 64px 0;
  }

  .team-content {
    max-width: 420px;
    gap: 32px;
  }

  .team-blockquote {
    font-size: 44px;
  }
}

@media (max-width: 820px) {
  .team {
    display: flex;
    flex-direction: column-reverse;
    padding: 0;
  }

  .team-content {
    padding: 64px 0;
    max-width: 640px;
  }

  .team-blockquote {
    font-size: 52px;
  }

  .team-image {
    position: relative;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .team-content {
    padding: 34px 0 54px;
    max-width: 100%;
  }

  .team-blockquote {
    font-size: 30px;
  }

  .team-btn {
    font-size: 12px;
    padding: 16px 20px;
  }
}

/* --- TEAM --- */

/* CTA */

.cta {
  height: 100vh;
  background: #6c2f16;
  position: relative;
}

.inner-cta {
  padding: 92px 0;
}

.inner-cta .cta-content {
  width: 100%;
  background: red;
  position: relative;
  overflow: hidden;
  max-height: 640px;
}

.cta-bg {
  background: #6c2f16;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cta-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-content {
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  position: relative;
}

.cta-slogan {
  color: #fff;
  font-size: 76px;
  line-height: 1;
  max-width: 1000px;
  text-align: center;
  font-weight: 600;
  z-index: 3;
}

.cta-btn {
  background-color: transparent;
  box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.1) inset;
  -webkit-box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 1) inset;
  -moz-box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 1) inset;
  z-index: 3;
}

@media (max-width: 1024px) {
  .cta {
    height: 50vh;
  }

  .cta-slogan {
    font-size: 64px;
  }

  .inner-cta {
    padding: 64px 0;
  }
  
  .cta-content {
      max-height: 50vh;
  }
}

@media (max-width: 820px) {
  .cta-slogan {
    font-size: 54px;
  }

  .inner-cta .cta-content {
    max-height: 480px;
  }
}

@media (max-width: 767px) {
  .cta-slogan {
    font-size: 44px;
  }

  .cta-btn {
    font-size: 12px;
    padding: 20px;
  }

  .inner-cta {
    padding: 44px 0;
  }

  .inner-cta .cta-content {
    max-height: 300px;
  }
  
  .cta-content {
      max-height: 50vh;
  }

  .inner-cta .cta-slogan {
    font-size: 32px;
    max-width: 90%;
  }
}

/* --- CTA --- */

/* NEWS */

.news {
  padding: 84px 0;
  background: #fff;
  overflow-x: hidden;
}

.news-content {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.news-title-area {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.news-filters {
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100%;
  padding: 6px;
  border-radius: 40px;
  background: #f0f0f0;
  display: flex;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.news-filters-item {
  border-radius: 44px;
  background-color: #fff;
  color: #0b2923;
  padding: 20px 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, color 0.2s ease-in-out;
}

.news-filters-item.is-active,
.news-filters-item:hover {
  background-color: #010109;
  color: #fff;
}

.news-slider {
  overflow: visible;
}

.news-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  height: 550px;
  background: #f0f0f0;
}

.news-item-image-area {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.news-item-image {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.news-item-info {
  padding: 20px 20px 25px 20px;
  background: #f0f0f0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-item.has-image .news-item-info {
  height: auto;
  flex: 1;
}

.news-item-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #000;
}

.news-item-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.1;
}

.news-item-exerpt {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

.news-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  opacity: 0.5;
}

.news-item-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 16px;
  line-height: 1;
}

.news-item-category {
  padding: 10px 14px;
  width: fit-content;
  color: #000;
  border-radius: 30px;
  box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 1) inset;
  -webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 1) inset;
  -moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 1) inset;
}

.news-item-date {
  color: #000;
}

@media (max-width: 1024px) {
  .news {
    padding: 54px 0;
  }
}

@media (max-width: 820px) {
  .news-content {
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .news-item {
    height: 465px;
  }

  .news-item-title {
    font-size: 26px;
  }

  .news-item-info {
    padding: 18px;
  }

  .news-filters {
    padding: 4px;
  }

  .news-filters::-webkit-scrollbar {
    display: none;
  }

  .news-filters-item {
    font-size: 12px;
    padding: 12px 20px;
  }

  .news-title {
    max-width: 50%;
  }
}

/* --- NEWS --- */

/* FAQ */

.faq {
  background: #acdcd2;
  padding: 84px 0;
}

.faq-content {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.faq-title-area,
.faq-items {
  width: calc(50% - 5px);
}

.faq-title-area {
  background: #223e38;
  padding: 48px 38px;
  border-radius: 0;
  display: flex;
  align-items: flex-start;
  position: relative;
}

.faq-title-area:before {
  content: "";
  position: absolute;
  background: #223e38;
  width: 100%;
  height: 84px;
  top: -84px;
  left: -100%;
}

.faq-title-area:after {
  content: "";
  position: absolute;
  background: #223e38;
  width: 100%;
  height: 84px;
  bottom: -84px;
  left: -100%;
}

.faq-title {
  color: #fff;
  line-height: 1.05;
}

.faq-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #223e38;
  overflow: hidden;
}

.faq-question {
  position: relative;
  cursor: pointer;
  padding: 22px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  color: #fff;
  font-weight: 600;
  letter-spacing: -0.02em;

  user-select: none;
  outline: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}
.faq-question::marker {
  content: "";
}

.faq-q-text {
  display: inline-block;
  line-height: 1.25;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
}

.faq-q-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: transform 220ms ease, background-color 220ms ease,
    border-color 220ms ease;
}

.faq-q-icon svg {
  display: block;
}

.faq-q-icon .icon-minus {
  display: none;
}

.faq-item[open] .faq-q-icon .icon-plus {
  display: none;
}
.faq-item[open] .faq-q-icon .icon-minus {
  display: block;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;

  opacity: 0;
  transform: translateY(-4px);

  transition: max-height 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 240ms ease, transform 240ms ease;
}

.faq-answer p {
  margin: 0;
  padding: 0 22px 22px;
  color: #fff;
  opacity: 0.5;
  line-height: 1.2;
  font-weight: 400;
  font-size: 16px;
  max-width: 70%;
}

.faq-item.is-open .faq-answer {
  opacity: 1;
  transform: translateY(0);
}

.faq-question:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer,
  .faq-q-icon {
    transition: none !important;
  }
}

@media (max-width: 1024px) {
  .faq {
    padding: 64px 0;
  }

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

  .faq-title-area {
    background: transparent;
    padding: 0;
  }

  .faq-title-area:before,
  .faq-title-area:after {
    display: none;
  }

  .faq-title {
    color: #000;
  }

  .faq-title br {
    display: none;
  }

  .faq-title-area,
  .faq-items {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .faq {
    padding: 54px 0;
  }

  .faq-content {
    gap: 20px;
  }

  .faq-q-text {
    font-size: 16px;
  }

  .faq-answer p {
    font-size: 14px;
    max-width: 90%;
  }
}

/* --- FAQ --- */

/* CONTACT FORM */

.contact-form {
  background: #fff;
  padding: 74px 0 124px;
}

.contact-form-content {
  display: flex;
}

.contact-form-title-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 50%;
}

.contact-form-subtitle {
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: #000;
  opacity: 0.4;
}

.contact-form-form {
  width: 50%;
}

.contact-form-filters {
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  border-radius: 40px;
  background: #f0f0f0;
  display: flex;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.contact-form-filters-item {
  border-radius: 44px;
  background-color: #fff;
  color: #223e38;
  padding: 20px 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out, color 0.2s ease-in-out;
}

.contact-form-filters-item.is-active,
.contact-form-filters-item:hover {
  background-color: #223e38;
  color: #fff;
}

@media (max-width: 1024px) {
  .contact-form {
    padding: 64px 0 100px;
  }

  .contact-form-subtitle {
    font-size: 16px;
  }
}

@media (max-width: 820px) {
  .contact-form-content {
    flex-direction: column;
    gap: 24px;
  }

  .contact-form-title-area,
  .contact-form-form {
    width: 100%;
  }

  .contact-form-filters {
    gap: 4px;
    font-size: 12px;
  }

  .contact-form-filters-item {
    padding: 12px 20px;
  }
}

/* --- CONTACT FORM --- */

/* VCF7 form styles */

.vcf7 { max-width: 600px; margin-top: 40px; }

.vcf7-switch,
.vcf7-request { margin-bottom: 28px; }

.vcf7-request-title{
  margin: 0 0 12px;
  font-weight: 600;
}

.vcf7-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 26px 28px;
  margin-bottom: 28px;
}

.vcf7-field--full{ width: 100%; }
.vcf7-field--half{ width: calc(50% - 14px); }

.vcf7-label{
  display:block;
  margin: 0 0 10px;
  font-size: 16px;
  opacity: .75;
}

.vcf7-input,
.vcf7-textarea{
  width: 100%;
  border: 0;
  border-bottom: 2px solid #111;
  padding: 10px 0 12px;
  background: transparent;
  outline: none;
  font-size: 18px;
}

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

/* Pills */
.vcf7-pill .wpcf7-list-item{ margin: 0; }
.vcf7-pill .wpcf7-list-item-label{ display: inline-flex; }

.vcf7-pill{
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: #f1f1f1;
}

.vcf7-pill input{ position: absolute; opacity: 0; pointer-events: none; }

.vcf7-pill label{
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: #0b0b0b;
  font-weight: 500;
  line-height: 1;
  transition: transform .12s ease, background .18s ease, color .18s ease;
  position: relative;
}

.vcf7-pill input:checked + span,
.vcf7-pill input:checked + .wpcf7-list-item-label,
.vcf7-pill input:checked + .wpcf7-list-item-label span{
  /* CF7 can wrap label text differently; we style via parent below too */
}

.vcf7-pill .wpcf7-list-item-label{
  background: #fff;
  color: #0b0b0b;
  padding: 6px 12px; 
  border-radius: 999px;
  transition: transform .12s ease, background .18s ease, color .18s ease;
  font-size: 14px;
}

.vcf7-pill .wpcf7-list-item input:checked ~ .wpcf7-list-item-label{
  background: #16342d;
  color: #fff;
}

/* Submit */
.vcf7-actions{ margin-top: 28px; }

.vcf7-submit{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 34px;
  border: 1px solid #0b0b0b;
  background: #16342d;
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
}

/* Honeypot: hide visually, keep in DOM */
.vcf7-hp{
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 767px) {
    .vcf7 {
        max-width: 100%;
    }
}

.wpcf7-not-valid-tip {
    font-size: 12px;
    position: absolute;
    right: 0;
    top: 0;
}
