/* ════════════════════════════════════════════
   ГЛАВНАЯ СТРАНИЦА
   ════════════════════════════════════════════ */

/* ══════════════════════════════════════════
   HERO  (дизайн-база: 1920 × 1080 px)
   ══════════════════════════════════════════ */
.hero {
  position: relative;
  background: var(--white);
  height: calc(100dvh - 146px);
  overflow: hidden;
}

.hero__img {
  position: absolute;
  left: 28.23%;
  top: 0;
  width: 110.52vw;
  height: min(1146px, 59.69vw);
  transform: scaleX(-1);
  pointer-events: none;
  z-index: 0;
}
.hero__img img {
  display: block;
  width: 113.61%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.hero__title {
  position: absolute;
  left: 60px;
  top: 200px;
  width: min(964px, 30%);
  font-size: clamp(44px, 5.21vw, 70px);
  font-weight: 700;
  line-height: 1.04;
  color: var(--dark);
  z-index: 1;
}
.hero__letter { color: var(--orange); }

.hero__right {
  position: absolute;
  left: 65.57%;
  top: 40px;
  width: 28.91%;
  z-index: 1;
}
.hero__desc {
  font-size: clamp(15px, 1.25vw, 24px);
  font-weight: 400;
  line-height: 1.45;
  color: var(--gray2);
  margin-bottom: clamp(20px, 2.29vw, 44px);
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(200px, 16.67vw, 320px);
  padding: clamp(16px, 1.56vw, 30px) clamp(20px, 2.08vw, 40px);
  border: 1px solid var(--dark);
  border-radius: 16px;
  font-family: var(--font);
  font-size: clamp(15px, 1.25vw, 24px);
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.hero__btn:hover { background: var(--dark); color: var(--white); }

.hero__btn--products {
  position: absolute;
  left: 60px;
  top: 520px;
  z-index: 1;

}

/* HERO — адаптив */
@media (max-width: 1400px) {
  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding: 40px 40px 60px;
  }
  .hero__title,
  .hero__right,
  .hero__btn--products {
    position: static;
    width: auto;
  }
  .hero__img {
    left: auto;
    right: -5%;
    top: 100px;
    width: 65%;
    height: 90%;
    transform: scaleX(-1);
  }
  .hero__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
  }
  .hero__title {
    flex: 0 1 480px;
    font-size: clamp(40px, 4.5vw, 72px);
    line-height: 1.05;
  }
  .hero__right {
    flex: 0 1 360px;
    padding-top: 8px;
  }
  .hero__btn {
    width: auto;
    min-width: 220px;
    padding: 20px 32px;
    font-size: 18px;
  }
  .hero__btn--products {
    margin-top: 40px;
    align-self: flex-start;
  }
}
@media (max-width: 1024px) {
  .hero { padding: 60px 32px 60px; }
  .hero__title { font-size: clamp(36px, 4vw, 60px); flex-basis: 100%; }
  .hero__right { flex-basis: 100%; }
  .hero__img {
    right: -10%;
    top: 80px;
    width: 75%;
    opacity: 0.55;
  }
}
@media (max-width: 767px) {
  .hero { padding: 30px 20px 50px; }
  .hero__title { font-size: clamp(32px, 8.5vw, 52px); }
  .hero__img {
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.12;
    transform: none;
  }
  .hero__desc { font-size: 16px; }
  .hero__btn,
  .hero__btn--products {
    width: 100%;
    max-width: 320px;
    font-size: 18px;
    padding: 18px 24px;
  }
  .hero__btn--products { margin-top: 24px; }
}

/* ─── SERVICES (карусель на главной) ─── */
.services {
  background: var(--gray);
  padding: 80px 50px;
  position: relative;
  min-height: 740px;
}

.services-nav {
  position: absolute;
  right: 50px;
  top: 82px;
  display: flex;
  gap: 10px;
}
.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .2s;
}
.nav-btn:hover { opacity: .8; }
.nav-btn img { width: 24px; height: 24px; }
.nav-btn-dark   { background: #222; transform: rotate(90deg); }
.nav-btn-orange { background: var(--orange); transform: rotate(-90deg); }

.services-track-wrap {
  overflow: hidden;
  padding-top: 16px;
  margin-top: -16px;
}
.services-track {
  display: flex;
  gap: 20px;
  transition: transform .4s ease;
}

@media (max-width: 1200px) {
  .service-card { flex: 0 0 360px; }
}
@media (max-width: 900px) {
  .services { padding: 60px 24px; min-height: auto; }
  .services-nav { right: 24px; top: 62px; }
  .service-card { flex: 0 0 320px; height: 520px; padding: 24px; }
  .card-title { font-size: 22px; }
  .card-tag  { font-size: 15px; padding: 12px 16px; }
}
@media (max-width: 600px) {
  .services { padding: 50px 16px; }
  .services-nav { right: 16px; top: 52px; }
  .service-card { flex: 0 0 280px; height: 510px; }
  .card-title { font-size: 19px; }
}

/* ─── INDUSTRIES ─── */
.industries {
  background: var(--white);
  padding: 80px 50px;
}
.industries-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

/* Кнопка «Смотреть все» */
.industries-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 40px;
  border: 1px solid var(--dark);
  border-radius: 16px;
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s, color .2s;
}


.button:hover { background: var(--orange); color: var(--white); border-color: var(--orange); }

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

.ind-card {
  display: block;
  text-decoration: none;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 440px;
  background: #e7e7e7;
  cursor: pointer;
}
.ind-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.ind-card__img--flip { transform: scaleX(-1); }
.ind-card:hover .ind-card__img       { transform: scale(1.06); }
.ind-card:hover .ind-card__img--flip { transform: scaleX(-1) scale(1.06); }

.ind-card__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(23, 23, 23, .85);
  color: var(--white);
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  padding: 18px 32px;
  border-radius: 16px;
  max-width: calc(100% - 40px);
}
.ind-card:hover .ind-card__badge { background: var(--orange); }

@media (max-width: 1200px) {
  .industries { padding: 60px 30px; }
  .industries-grid { gap: 14px; }
  .ind-card { height: 360px; }
  .ind-card__badge { font-size: 16px; padding: 14px 22px; border-radius: 12px; }
}
@media (max-width: 900px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-card { height: 300px; }
  .ind-card__badge { font-size: 14px; padding: 12px 18px; white-space: normal; }
}
@media (max-width: 600px) {
  .industries { padding: 50px 16px; }
  .industries-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .industries-grid { grid-template-columns: 1fr; gap: 12px; }
  .ind-card { height: 260px; }
}

/* ─── DIRECTIONS ─── */
.directions {
  background: var(--gray);
  padding: 80px 50px;
}
.directions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.directions-header h2 {
  margin-bottom: 0;
}

.directions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.dir-card {
  display: flex;
  width: 100%;
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  cursor: pointer;
}


.dir-card:hover {
  background: #171717;
}

.dir-card:hover .dir-card__icon {
  background: #F4F4F4;
}

.dir-card:hover .dir-card__arrow {
  background: #FF7D01;
}

.dir-card:hover .dir-card__name {
  color: #fff;
}

.dir-card:hover .dir-card__body p {
  color: #fff;
}

.dir-card--light { background: var(--white); }
.dir-card--dark  { background: var(--dark3); }

.dir-card__icon {
  position: absolute;
  top: 60px;
  left: 60px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  flex-shrink: 0;
}
.dir-card__icon--dark  { background: var(--dark2); }
.dir-card__icon--light { background: var(--gray); }
.dir-card__icon img {
  width: 40px;
  height: 40px;
  display: block;
}
.dir-card__icon--dark img { filter: brightness(0) invert(1); }

.dir-card__arrow {
  position: absolute;
  top: 60px;
  right: 60px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transform: rotate(-90deg);
  transition: opacity .2s;
}
.dir-card__arrow:hover { opacity: .8; }
.dir-card__arrow--dark   { background: var(--dark2); }
.dir-card__arrow--orange { background: var(--orange); }
.dir-card__arrow img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  display: block;
}

.dir-card__robot {
  position: absolute;
  top: 15%;
  left: 75%;
  transform: translateX(-38%) rotate(16.57deg);
  width: 82%;
  z-index: 1;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.dir-card__shape {
  position: absolute;
  top: 50px;
  right: 0;
  width: 56%;
  height: 74%;
  z-index: 1;
}
.dir-card__shape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dir-card__shape-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(23,23,23,0) 0%, #171717 83%);
}

.dir-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 60px 60px;
  z-index: 3;
}
.dir-card__name {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 16px;
}
.dir-card--light .dir-card__name { color: var(--dark); }
.dir-card--dark  .dir-card__name { color: var(--white); }

.dir-card__desc {
  font-size: clamp(14px, 1.35vw, 24px);
  font-weight: 400;
  line-height: 1.5;
}
.dir-card--light p { color: var(--gray2); }
.dir-card--dark  .dir-card__desc { color: rgba(255,255,255,.85); }

@media (max-width: 1400px) {
  .dir-card__icon { width: 110px; height: 110px; top: 48px; left: 48px; }
  .dir-card__icon img { width: 52px; height: 52px; }
  .dir-card__arrow { top: 48px; right: 48px; }
  .dir-card__body { padding: 0 48px 48px; }
}
@media (max-width: 1100px) {
  .directions { padding: 60px 24px; }
  .directions-grid { gap: 20px; }
  .dir-card__icon { width: 90px; height: 90px; top: 36px; left: 36px; }
  .dir-card__icon img { width: 40px; height: 40px; }
  .dir-card__arrow { top: 36px; right: 36px; width: 50px; height: 50px; }
  .dir-card__body { padding: 0 36px 36px; }
}
@media (max-width: 860px) {
  .directions-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .directions { padding: 50px 16px; }
  .directions-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .dir-card { min-height: 460px; border-radius: 28px; height: auto; }
  .dir-card__icon { width: 76px; height: 76px; top: 28px; left: 28px; }
  .dir-card__icon img { width: 34px; height: 34px; }
  .dir-card__arrow { top: 28px; right: 28px; width: 44px; height: 44px; }
  .dir-card__body { padding: 0 28px 32px; }
  .dir-card__name { margin-bottom: 10px; }
}

/* ─── PMAP-специфика для главной (кнопка "Все проекты") ─── */
@media (max-width: 600px) {
  .pmap .industries-all-btn {
    height: 44px;
    font-size: 15px;
    padding: 0 20px;
    border-radius: 12px;
  }
}

/* ─── ADVANTAGES ─── */
.advantages {
  background: var(--gray);
  padding: 80px 50px;
}
.advantages__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}
.advantages__body {
  display: flex;
  gap: 20px;
  align-items: stretch;
}
.adv-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.adv-card {
  border-radius: 40px;
  padding: 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  cursor: pointer;
  transition: background .3s ease;
  background: white;
}

.adv-card:hover {
  background: var(--dark);

}

.adv-card:hover .adv-card__desc {
  color: white;
}

.adv-card:hover .adv-card__num {
  color: var(--orange);
}


.adv-card__desc {
  font-size: clamp(14px, 1.3vw, 22px);
  line-height: 1.5;
  color: var(--gray2);
  max-width: 420px;
  transition: color .3s;
}
.adv-card--dark .adv-card__desc { color: var(--white); }
.adv-card__num {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  margin-top: 20px;
  transition: color .3s;
}
.adv-card--dark .adv-card__num { color: var(--orange); }

.adv-photo {
  flex: 0 0 38%;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  background: var(--dark3);
}
.adv-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.adv-photo__overlay {
  mix-blend-mode: multiply;
  opacity: .55;
}
.adv-photo:hover img { transform: scale(1.04); }

@media (max-width: 1100px) {
  .advantages { padding: 60px 30px; }
  .advantages__body { flex-direction: column; }
  .adv-photo { flex: none; height: 360px; }
}
@media (max-width: 700px) {
  .adv-grid { grid-template-columns: 1fr; }
  .adv-card { min-height: 200px; border-radius: 28px; padding: 32px; }
  .adv-photo { height: 260px; border-radius: 28px; }
}
@media (max-width: 600px) {
  .advantages { padding: 50px 16px; }
  .advantages__head { flex-wrap: wrap; gap: 16px; }
  .advantages .industries-all-btn { height: 44px; font-size: 15px; padding: 0 20px; border-radius: 12px; }
}



/* Стили формы обратной связи перенесены в style.css (общие) */

.acc-body {
    max-height: 0;
    overflow: hidden;
    transition: .3s;
}

.acc-item.open .acc-body {
    max-height: 1000px;
}

.mpin.selected {
    z-index: 10;
}

.mpin--active {
    cursor: pointer;
}

.acc-body {
    display: none;
}
.acc-item.open .acc-body {
    display: block;
}
.pmap__map-img {
    pointer-events: none;
}

.mpin {
    position: absolute;
    z-index: 10;
}