@import url('https://fonts.cdnfonts.com/css/sansation');
/* ════════════════════════════════════════════
   ОБЩИЕ СТИЛИ (используются на всех страницах)
   ════════════════════════════════════════════ */

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

:root {
  --orange: #ff7d01;
  --dark:   #111111;
  --dark2:  #222222;
  --dark3:  #171717;
  --gray:   #f4f4f4;
  --gray2:  #666666;
  --white:  #ffffff;
}

html { scroll-behavior: smooth; }

html {
  background: #f4f4f4;
}

body {
  max-width: 1920px;
  margin: 0 auto;
  color: var(--dark);
  background: #F4F4F4;
  font-family: 'Sansation', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ══════════════════════════════════════════
   HEADER / NAVBAR
   ══════════════════════════════════════════ */

.site-header {
  padding: 30px 30px 0 30px;
  z-index: 200;
  position: sticky;
  top: 0;
}

.nav-wrap {
  max-width: 1860px;
  margin: 0 auto;
}

.nav {
  background: var(--dark);
  border-radius: 12px;
  height: 108px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 0;
}

/* Логотип */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  padding: 14px 0;
  align-self: stretch;
}
.nav-logo__img {
  width: 106px;
  height: 80px;
  object-fit: cover;
  object-position: bottom;
  border-radius: 20px;
  flex-shrink: 0;
}
.nav-logo__text {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  line-height: 1;
}

/* Ссылки */
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin-left: 75px;
}
.nav-link {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
  position: relative;
}
.nav-link:hover { color: var(--orange); }
.nav-link--active { color: var(--orange); }
.nav-link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--orange);
  border-radius: 1px;
}

/* Mega-trigger item */
.nav-item--mega { position: static; }

.nav-link--mega {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-link__chevron {
  flex-shrink: 0;
  transition: transform .25s ease;
}

.nav-item--mega.is-open > .nav-link--mega { color: var(--orange); }
.nav-item--mega.is-open .nav-link__chevron { transform: rotate(180deg); }

/* ══════════════════════════════════════════
   MEGA MENU
   ══════════════════════════════════════════ */

.mega-menu {
  position: absolute;
  /* 30px header padding + 108px nav height */
  top: 138px;
  left: 30px;
  right: 30px;
  background: #fff;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease;
}

.mega-menu.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-menu__inner {
  display: flex;
  align-items: flex-start;
  padding: 40px 60px 44px 130px;
  gap: 0;
}

/* Left: tab nav */
.mega-menu__tabs {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-menu__tab {
  background: none;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  font-size: 18px;
  font-weight: 400;
  color: #666;
  text-align: left;
  padding: 10px 16px;
  border-radius: 0 8px 8px 0;
  font-family: 'Sansation', Arial, sans-serif;
  line-height: 1.35;
  transition: color .18s, border-color .18s, background .18s;
}

.mega-menu__tab:hover {
  color: var(--orange);
  border-left-color: var(--orange);
  background: rgba(255,125,1,.05);
}

.mega-menu__tab--active {
  color: var(--orange);
  border-left-color: var(--orange);
  background: rgba(255,125,1,.05);
}

/* Right: content panels */
.mega-menu__panels {
  flex: 1;
}

.mega-menu__panel[hidden] { display: none; }

/* Photo */
.mega-menu__col--img {
  flex: 0 0 500px;
}

.mega-menu__col--img img {
  width: 100%;
  height: 296px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}

/* Vertical divider */
.mega-menu__divider {
  width: 1px;
  align-self: stretch;
  background: #e0e0e0;
  margin: 0 40px;
  flex-shrink: 0;
}

/* Service items */
.mega-menu__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mega-menu__list a {
  font-size: 18px;
  color: #666;
  text-decoration: none;
  line-height: 1.3;
  display: block;
  font-family: 'Sansation', Arial, sans-serif;
  transition: color .18s;
}

.mega-menu__list a:hover { color: var(--orange); }

/* Hide on mobile */
@media (max-width: 1200px) {
  .mega-menu { display: none; }
  .nav-link__chevron { display: none; }
}

/* Правая группа */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}
.nav-icons {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
  flex-shrink: 0;
}
.nav-icon-btn:hover { background: rgba(255,255,255,.1); }
.nav-icon-btn img {
  width: 24px;
  height: 24px;
  display: block;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 12px;
  padding: 18px 24px;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity .2s;
  margin-left: 4px;
}
.nav-cta:hover { opacity: .85; }

/* Wrapper */
.nav-lang {
  position: relative;
  display: inline-flex;
  margin-left: 4px;
  flex-shrink: 0;
}

/* Toggle button */
.nav-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #222;
  color: var(--white);
  font-family: 'Sansation', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 0 20px;
  height: 56px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.nav-lang__btn:hover { background: #333; }
.nav-lang__btn[aria-expanded="true"] { background: #333; }

/* Chevron */
.nav-lang__arrow {
  width: 24px;
  height: 24px;
  transition: transform .25s ease;
}
.nav-lang__btn[aria-expanded="true"] .nav-lang__arrow { transform: rotate(180deg); }

/* Dropdown panel */
.nav-lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 100%;
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  z-index: 300;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  display: none;
}

.nav-lang__menu.active {
  display: block;
}

/* Option buttons */
.nav-lang__option {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: transparent;
  border: none;
  color: #aaa;
  font-family: 'Sansation', Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background .15s, color .15s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-lang__option:hover { background: #333; color: var(--white); }
.nav-lang__option--active { color: var(--orange); }

/* Бургер (мобайл) */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  border-radius: 8px;
  transition: background .2s;
}
.nav-burger:hover { background: rgba(255,255,255,.1); }
.nav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  max-width: 1860px;
  margin: 8px auto 0;
  background: var(--dark);
  border-radius: 12px;
  overflow: hidden;
  max-height: 0;
  transition: max-height .4s ease, padding .3s ease;
}
.mobile-menu.open {
  max-height: 600px;
  padding: 20px 0;
}
.mobile-menu__links {
  list-style: none;
  padding: 0 24px;
}
.mobile-link {
  display: block;
  padding: 14px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid #222;
  transition: color .2s;
}
.mobile-link:last-child { border-bottom: none; }
.mobile-link:hover      { color: var(--orange); }
.mobile-link--active    { color: var(--orange); }
.mobile-menu__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 0;
  flex-wrap: wrap;
}
.mobile-menu__icons {
  display: flex;
  gap: 4px;
}

/* Language switcher inside mobile menu */
.mobile-menu__lang {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.mobile-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 40px;
  background: #333;
  border: none;
  border-radius: 8px;
  color: #aaa;
  font-family: 'Sansation', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.mobile-lang-btn:hover { background: #444; color: var(--white); }
.mobile-lang-btn--active {
  background: var(--dark2);
  color: var(--orange);
}

/* ── Compact nav (adaptive) ── */
.nav--compact .nav-link      { font-size: 15px; }
.nav--compact .nav-cta       { font-size: 15px; padding: 12px 14px; }
.nav--compact .nav-lang__btn { font-size: 15px; height: 44px; padding: 0 10px; }

.nav-burger { display: none; }

/* ≤ 960px — smaller lang button */
@media (max-width: 960px) {
  .nav-lang__btn {
    font-size: 16px;
    height: 48px;
    padding: 0 14px;
    gap: 6px;
  }
  .nav-lang__arrow { width: 20px; height: 20px; }
}

/* ≤ 700px — hide desktop lang, show burger */
@media (max-width: 700px) {
  .nav-links, .nav-cta, .nav-lang, .nav-icons { display: none !important; }
  .nav-burger { display: flex !important; }
}

@media (max-width: 600px) {
  .site-header { padding: 12px 12px 0 12px; }
  .nav { height: 76px; padding: 0 10px; border-radius: 10px; }
  .nav-logo__img  { width: 70px; height: 52px; border-radius: 12px; }
  .nav-logo__text { font-size: 24px; }
  .mobile-menu    { border-radius: 10px; margin-top: 6px; }
  .mobile-menu__footer { gap: 10px; padding: 16px 16px 0; }
  .mobile-lang-btn { width: 46px; height: 36px; font-size: 15px; }
}

/* ══════════════════════════════════════════
   ТИПОГРАФИКА: заголовок секции
   ══════════════════════════════════════════ */
.section-title {
  font-size: 48px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 40px;
}
@media (max-width: 600px) {
  .section-title { font-size: 32px; margin-bottom: 28px; }
}

/* ══════════════════════════════════════════
   ХЛЕБНЫЕ КРОШКИ (sub-pages)
   ══════════════════════════════════════════ */
.sp-breadcrumb {
  padding: 50px 0 50px 50px;
  font-size: 18px;
  color: #999;
}
.sp-breadcrumb a {
  color: #999;
  text-decoration: none;
  transition: color .2s;
}
.sp-breadcrumb a:hover { color: var(--orange); }

@media (max-width: 900px) {
  .sp-breadcrumb { padding: 30px 0 24px 24px; }
}
@media (max-width: 600px) {
  .sp-breadcrumb { padding: 24px 0 16px 16px; font-size: 15px; }
}

/* ══════════════════════════════════════════
   КАРТОЧКА УСЛУГИ (общая база — index + services)
   ══════════════════════════════════════════ */
.service-card {
  flex: 0 0 440px;
  min-height: 530px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  padding: 40px;
  cursor: pointer;
  transition: transform .35s ease, background .35s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-decoration: none;
}
.service-card.light { background: var(--white); }

/* Враппер контента — прижат к низу через margin-top: auto */
.card-content {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Hover: подпрыгнуть + почернеть */
.service-card:hover { transform: translateY(-12px); }
.service-card.light:hover { background: var(--dark); }
.service-card.light:hover .card-title { color: var(--white); }
.service-card.light:hover .card-tag   { background: #2a2a2a; color: var(--white); }
.service-card.light:hover .card-arrow.bg-dark { background: var(--orange); }
.service-card.light:hover .card-icon.bg-dark  { background: #fff; }
.service-card.light:hover .card-icon.bg-dark img  { filter: brightness(0) }

/* Иконка */
.card-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-dark {
  background: var(--dark2);
}
.card-icon.bg-gray   { background: var(--gray); }
.card-icon.bg-orange { background: var(--orange); }
.card-icon img { width: 32px; height: 32px; filter: brightness(0) invert(1); }
.card-icon.bg-gray img { filter: none; }

/* Стрелка */
.card-arrow {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-90deg);
}
.card-arrow.bg-dark   { background: var(--dark2); }
.card-arrow.bg-orange { background: var(--orange); }
.card-arrow.bg-white  { background: var(--white); }
.card-arrow.bg-white img { filter: brightness(0); }
.card-arrow img { width: 16px; height: 16px; }

.contact-wrapper {
  padding: 100px 50px;
}

@media (max-width: 1400px) {
  .contact-wrapper {
    padding: 80px 30px;
  }
}

@media (max-width: 900px) {
  .contact-wrapper {
    padding: 60px 24px;
  }
}

@media (max-width: 600px) {
  .contact-wrapper {
    padding: 50px 16px;
  }
}


/* Заголовок */
.card-title {
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--dark);
}

/* Абсолютные блоки контента (используется на главной в карусели) */
.card-body-abs {
  position: absolute;
  left: 40px;
  right: 40px;
}

/* Теги */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.card-tags--col {
  flex-direction: column;
}
.card-tag {
  background: var(--gray);
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.3;
  text-decoration: none;
}
.card-tag--full { width: 100%; text-align: center; }

/* ══════════════════════════════════════════
   PROJECTS MAP + ACCORDION (index + projects)
   ══════════════════════════════════════════ */
.pmap {
  background: var(--white);
  padding: 50px;
}

.pmap__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
}

.pmap__map-scroll {
  width: 100%;
  margin-bottom: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pmap__map {
  position: relative;
  width: 100%;
  aspect-ratio: 1430 / 817;
}
.pmap__map-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.mpin {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--orange);
  color: var(--white);
  font-size: clamp(9px, 1vw, 14px);
  font-weight: 700;
  padding: .35em .75em;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

.pmap__bottom {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* Аккордеон */
.accordion {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.acc-item {
  border-radius: 20px;
  background: var(--gray);
  overflow: hidden;
  transition: background .25s;
}
.acc-item.open { background: var(--dark); }

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  gap: 16px;
}
.acc-title {
  font-family: var(--font);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  color: var(--dark);
  text-align: left;
  transition: color .25s;
}
.acc-item.open .acc-title { color: var(--white); }

.acc-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 300;
  color: var(--dark);
  transition: background .25s, color .25s, transform .3s;
  line-height: 1;
}
.acc-icon::before { content: '+'; }
.acc-item.open .acc-icon {
  background: var(--orange);
  color: var(--white);
  transform: rotate(45deg);
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 28px;
}
.acc-item.open .acc-body {
  max-height: 300px;
  padding: 0 28px 28px;
}
.acc-body p {
  font-size: clamp(14px, 1.3vw, 20px);
  line-height: 1.6;
  color: var(--white);
}

/* Фото завода */
.pmap__photo {
  flex: 1;
  border-radius: 20px;
  overflow: hidden;
  height: 500px;
}
.pmap__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1100px) {
  .pmap { padding: 60px 30px; }
  .pmap__bottom { flex-direction: column; }
  .accordion { flex: 1 1 auto; width: 100%; }
  .pmap__photo { width: 100%; height: 340px; }
}
@media (max-width: 600px) {
  .pmap { padding: 50px 16px; }
  .pmap__head { flex-wrap: wrap; gap: 16px; }
  .pmap__map { min-width: 480px; }
  .acc-head { padding: 18px 20px; }
  .acc-icon { width: 38px; height: 38px; font-size: 20px; }
  .pmap__photo { height: 220px; }
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.site-footer {
  background: var(--dark);
  border-radius: 20px 20px 0 0;
  padding: 50px;
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 0;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}
.footer-logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  opacity: .5;
}
.footer-brand-name {
  font-size: 32px;
  font-weight: 700;
  color: #838383;
}

.footer-socials-new {
  display: flex;
  gap: 32px;
}
.footer-social-new {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  text-decoration: none;
  transition: opacity .2s;
}
.footer-social-new:hover { opacity: .6; }
.footer-social-new img { width: 100%; height: 100%; }

.footer-nav-new {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-nav-link {
  font-size: 20px;
  font-weight: 700;
  color: #999;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.footer-nav-link:hover    { color: var(--white); }
.footer-nav-link--active  { color: var(--orange); }

.footer-info {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-info-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-info-col--right {
  margin-left: auto;
  text-align: right;
}
.footer-info-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}
.footer-info-value {
  font-size: 18px;
  color: #a5acba;
  line-height: 1.5;
}
.footer-sep { color: #444; margin: 0 4px; }
.footer-credit { font-size: 14px; color: #999; }
.footer-copy   { font-size: 16px; color: #999; }



/* ══════════════════════════════════════════
   ФОРМА ОБРАТНОЙ СВЯЗИ (общие стили)
   ══════════════════════════════════════════ */

/* Секция-обёртка (по умолчанию — белый фон) */
.contact-section {
  background: var(--white);
  padding: 60px 50px 100px;
}

/* Карточка (по умолчанию — серый фон, белые инпуты) */
.contact-card {
  background: var(--gray);
  border-radius: 32px;
  padding: 56px;
  display: flex;
  gap: 32px;
  align-items: stretch;
}

/* Модификатор: белая карточка + серые инпуты */
.contact-card--white {
  background: var(--white);
}
.contact-card--white .cf-input {
  background: var(--gray);
}

.contact-form-wrap { flex: 1; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cf-label {
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
}

/* Базовый инпут (цвет фона задаётся модификатором карточки) */
.cf-input {
  display: flex;
  align-items: center;
  background: var(--white);
  border: none;
  border-radius: 16px;
  height: 60px;
  padding: 0 20px;
  font-family: var(--font);
  font-size: 20px;
  color: var(--dark);
  outline: none;
  width: 100%;
  transition: box-shadow .2s;
}
.cf-input:focus,
.cf-input:focus-within { box-shadow: 0 0 0 2px var(--orange); }
.cf-input::placeholder  { color: #999; }

/* Телефон */
.cf-input--phone {
  gap: 10px;
  cursor: text;
  height: 60px;
}
.cf-input--phone input {
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 20px;
  color: #999;
  outline: none;
  flex: 1;
  min-width: 0;
}
.cf-input--phone input::placeholder { color: #999; }
.cf-phone-prefix { font-size: 20px; font-weight: 600; color: var(--dark); flex-shrink: 0; }

/* Textarea */
.cf-textarea {
  height: auto;
  min-height: 140px;
  padding: 16px 20px;
  resize: vertical;
  align-items: flex-start;
  line-height: 1.5;
}

/* Загрузка файла */
.cf-input--file {
  justify-content: space-between;
  cursor: pointer;
}
.cf-file-placeholder { color: #999; }
.cf-file-icon { width: 28px; height: 28px; flex-shrink: 0; }

/* Согласие */
.cf-consent {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.cf-checkbox-custom {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #647dd7;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
}
.cf-checkbox-custom::after { content: '✓'; }
.cf-consent-text { font-size: 18px; color: var(--dark); }
.cf-consent-link { color: var(--orange); text-decoration: none; }
.cf-consent-link:hover { text-decoration: underline; }

/* Кнопка отправки */
.cf-submit {
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 16px;
  padding: 20px 40px;
  font-family: var(--font);
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: auto;
  transition: opacity .2s;
}
.cf-submit:hover { opacity: .85; }
.cf-submit.sent  { background: #3a9e5f; }

/* Фото справа */
.contact-photo {
  flex: 1;
  position: relative;      /* якорь для абсолютного img */
  border-radius: 32px;
  overflow: hidden;
  min-height: 400px;       /* минимум, остальное задаёт align-items: stretch */
}
.contact-photo img {
  position: absolute;      /* отрывает img от потока — height: 100% работает надёжно */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Адаптив формы */
@media (max-width: 1000px) {
  .contact-section { padding: 50px 30px 50px; }
  .contact-card { flex-direction: column; padding: 40px; }
  .contact-photo { min-height: 320px; }
}
@media (max-width: 600px) {
  .contact-section { padding: 40px 16px 40px; }
  .contact-card { padding: 28px 20px; border-radius: 24px; gap: 24px; }
  .cf-label { font-size: 16px; }
  .cf-input { font-size: 16px; height: 52px; }
  .cf-input--phone input { font-size: 16px; }
  .cf-submit { font-size: 18px; padding: 16px; }
  .contact-photo { min-height: 220px; }
}

/* ══════════════════════════════════════════
   SCROLL FADE-IN
   ══════════════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.team {
  padding: 60px 50px 0;
}

.team__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.team__nav {
  display: flex;
  gap: 10px;
}

.team__btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.team__btn:hover { opacity: 0.8; }
.team__btn--prev { background: #222; }
.team__btn--next { background: #ff7d01; }
.team__btn.is-disabled { opacity: 0.3; cursor: default; }

.team__slider {
  overflow: hidden;
}

.team__cards {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
  will-change: transform;
}

.team-card {
  flex: 0 0 calc((100% - 80px) / 5);
  border-radius: 20px;
  overflow: hidden;
  height: 488px;
  position: relative;
  background: #ddd;
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.team-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.team-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.team-card__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.team-card__name {
  font-size: 20px;
  font-weight: 700;
  color: #19191b;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-card__role {
  font-size: 14px;
  font-weight: 700;
  color: #ff7d01;
  text-transform: uppercase;
  line-height: 18px;
}

.team-card__bio {
  font-size: 14px;
  color: #787a82;
  line-height: 20px;
  margin-top: 42px;
}

.team-card__btn {
  width: 40px;
  height: 40px;
  border-radius: 30px;
  background: #ff7d01;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.team-card__btn:hover { opacity: 0.8; }

.accent {
  color: var(--orange);
}

.dir-card {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  cursor: pointer;
  height: 500px;
}
.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 .dir-card__desc { 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; }
  .dir-card { aspect-ratio: 4 / 3; }
}
@media (max-width: 600px) {
  .directions { padding: 50px 16px; }
  .directions-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .dir-card { aspect-ratio: auto; min-height: 460px; border-radius: 28px; }
  .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;
  }
}

/* ─── PARTNERS ─── */
.partners {
  background: var(--white);
  padding: 80px 50px;
  text-align: center;
}
.partners__title {
  font-size: clamp(28px, 3vw, 48px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 60px;
}
.partners__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(32px, 7vw, 120px);
}
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity .3s ease, filter .3s ease;
}

.partner-logo img {
  height: 80px;
  width: auto;
  display: block;
}

@media (max-width: 900px) {
  .partners { padding: 60px 30px; }
  .partner-logo img { height: 52px; }
}
@media (max-width: 600px) {
  .partners { padding: 50px 16px; }
  .partners__logos { gap: 28px 40px; }
  .partner-logo img { height: 40px; }
}

@media (max-width: 1440px) {
 .team-card {
    flex-basis: calc((100% - 40px) / 3);
  }
}

@media (max-width: 1200px) {
  .footer-info { gap: 36px; }
  .footer-nav-link { font-size: 17px; }
  
}
@media (max-width: 900px) {
  .site-footer { padding: 40px 30px; gap: 36px; }
  .footer-info { gap: 24px; }
  .footer-info-label, .footer-info-value { font-size: 16px; }
  .footer-info-col--right { margin-left: 0; text-align: left; width: 100%; }

  .team-card {
    flex-basis: calc((100% - 40px) / 3);
  }
  .team { padding: 60px 32px 0; }
}
@media (max-width: 640px) {
  .site-footer { padding: 32px 16px; border-radius: 16px 16px 0 0; gap: 28px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-nav-new { justify-content: flex-start; gap: 8px 16px; }
  .footer-nav-link { font-size: 15px; }
  .footer-info-col { width: 100%; }
  .footer-brand-name { font-size: 24px; }
  .team { padding: 48px 20px 0; }

  .team-card {
    flex-basis: calc((100% - 20px) * 2 / 3);
    height: 400px;
  }
  .team-card {
    flex-basis: calc((100% - 20px) * 2 / 3);
    height: 400px;
  }

  .team-card__info {
    padding: 20px;
  }

  .team-card__text {
    gap: 6px;
  }

  .team-card__bio {
    margin-top: 20px;
    font-size: 13px;
    line-height: 18px;
  }
}