/* Подключаем шрифты Futura PT Condensed */
  @font-face {
    font-family: 'FuturaPTCond';
    src: url('../fonts/FuturaPTCondBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
  }

  @font-face {
    font-family: 'FuturaPTCond';
    src: url('../fonts/FuturaPTCondBook.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
  }  
      
      
    :root {
    --font-main: 'FuturaPTCond', Arial, sans-serif; /* ← используем наш шрифт */
    --color-orange: #ec8b2c;
    --container-width: 1600px;
  }
/*
  @font-face {
  font-family: 'SegoeUI-Web';
  src: url('../fonts/segoeui.ttf') format('truetype'); /* Regular 
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'SegoeUI-Web';
  src: url('../fonts/segoeuib.ttf') format('truetype'); /* Bold 
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: 'SegoeUI-Web';
  src: url('../fonts/segoeuisb.ttf') format('truetype'); /* SemiBold 
  font-weight: 600;
  font-style: normal;
}
*/

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

body {
  display: grid;
  grid-template-columns: 22px 1578px;
  grid-template-rows: auto 1fr auto; /* header | main | footer */
  min-height: 100vh;
  font-family: var(--font-main);
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

h1, h2, h3 {
  font-weight: 700; /* это будет FuturaPTCond Bold */
  line-height: 1;
}

/* Боковой бар */
.sidebar {
  background-color: var(--color-orange);
  grid-column: 1;
  grid-row: 1 / span 2; /* от шапки до футера */
}

/* Основной контент */
.main-content {
  grid-column: 2;
  grid-row: 2;
 
  background: white;
}

/* Шапка */
.header {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  background: white;
  align-items: flex-start;
  justify-content: space-between;
}

.logo {
  padding-left: 70px;
  margin-top: 13px;
  width: 376px;
  height: 55px;
}

.nav__list {
  display: flex;
  list-style: none;
  /*padding-right: 375px; в медиа запросе*/
  margin-left: 60px;
  text-transform: uppercase;
  font-size: 24px;
  margin-top: 13px;
}

.nav__item {
  margin-left: 60px; 
}
.nav__item_cont{
    margin-left: 68px;
}

.nav__link {
  text-decoration: none;
  color: var(--color-orange);
  font-weight: 800; 
}


/* Геро-баннер */
.banner {
  background-image: url(../images/banner3.jpg);
  height: 475px;
  max-width: 1564px;
  object-fit: cover;
  margin-left: -1px;
  margin-top: 8px;
}

.banner_h1 {
  font-size: 60px;
  color: white;
  margin-left: 73px;
  margin-top: 30px; 
  display: inline-block;
}

.project-work-grid__text-block_h2 {
 font-size: 60px;
 font-weight: normal;
 line-height: 1.16;  
}


.project-work-grid {
  display: grid;
  grid-template-columns: 90px 356px 351px 708px;
  grid-template-rows: 1fr;
}

.project-work-grid__text-block {
 grid-column: 2 / 4;
 z-index: 1;
 margin-top: 78px;
 
}
.project-work-grid__img1 {
   grid-column: 3 / 5;
   margin-top: -142px;

}
.project-work-grid__img2 {
   grid-column: 1 / 5;
  margin-top: 230px;
}

/* Секция "Ключевые направления" */
.key-directions {
  padding: 50px 0;
}

.key-directions_h2 {
  font-size: 120px;
  font-weight: normal;
  line-height: 1.16;
  color: var(--color-orange);
  margin-top: 107px;
  margin-left: 89px;
}
.card1, .card2, .card3 {
  display: grid;
  grid-template-columns:  minmax(10px, 92px) 5fr 0.9fr 0.5fr 6fr;
  align-items: start;
  margin-top: 181px;
  row-gap: 123px;
}

.card-grid_img_left {
 grid-column: 2 / 4;
 margin-left: 1px;
}

.card-grid_text_right {
  grid-column: 5 / 6;
  margin-left: 1px;
}

.card-grid_text_left {
  grid-column: 2 / 3;
}
.card-grid_img_right {
  grid-column: 4 / 6;
  margin-left: 1px;
}

.cards-grid_h3 {
 font-size: 48px;
 font-weight: normal;
 text-transform: uppercase;
 line-height: 1.146;
}

.cards-grid_h3__mt_c1{
  margin-top: 71px;
}

.cards-grid_p__mt_c1{
  margin-top: 61px;
}

.cards-grid_h3__mt_c2{
  margin-top: 82px;
}

.cards-grid_p__mt_c2{
  margin-top: 61px;
}

.cards-grid_p {
  font-size: 18px;
   font-family: "Segoe UI";
  font-weight: normal;
  letter-spacing: 0.6px;
  max-width: 604px;
  line-height: 1.222;
  color: #383737;
}

.card-grid_img_left_mt_c3 {
  margin-top: 11px;
}

.cards-grid_h3__mt_c3 {
  margin-top: 69px;
  line-height: 1.458;
}

.cards-grid_p__mt_c3 {
  margin-top: 56px;
}

/* Секция "Технологии" */
.technologies_h2 {
  font-size: 120px;
  font-weight: normal;
  line-height: 1.16;
  color: var(--color-orange);
  margin-top: 62px;
  margin-left: 89px;
  padding-bottom: 122px;
}

.tech-banner {
  position: relative;
  background-image: url(../images/Layer_12_f7.jpg);
  max-width: 1562px;
  height: 1042px;
  
}

.tech-banner-text {
  position: absolute;
  color: white;
  font-size: 24px;
  line-height: 1.25;
  width: 512px;
  height: 533px;
  top: 436px;
  right: 53px;
  font-family: "Segoe UI";
  font-weight: normal; 
  letter-spacing: 0.6px;
}

.tech-banner-text_p {
 padding:30px 0;
}

.bold {
    font-weight: 500;
    font-size: 30px;
    line-height: 0
}

/* Футер */

.footer {
  grid-column: 1 / -1;
  grid-row: 3;
  background: #383737;
  color: white;
  padding: 39px;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 30px; /* отступы между строками */
  justify-items: center; /* выравнивание по центру по горизонтали */
  text-align: center;
  max-width: 1600px;
}

.footer a{
  color: white;
    text-decoration: none;
}
/*
.contact-info {
  font-family: 'SegoeUI-Web', Arial, sans-serif;
  font-weight: 600; 
  font-size: 20px;
  line-height: 1.2;
  margin-left: 150px;
}
*/
.contact-info {
  font-family: 'Selawik', Arial, sans-serif;
  font-weight: 400; 
  font-style: normal; 
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.6px;
}

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

/* Стили бургера */
.burger {
  display: none; /* Скрыт на десктопе */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}

.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--color-orange);
  border-radius: 1px;
  transition: all 0.3s ease;
}


/* 2 линии перед О компании*/

.nav__list {
  position: relative; /* Для позиционирования псевдоэлементов */
  padding-left: 20px; /* Отступ для самих линий */
}

.nav__list::before,
.nav__list::after {
  content: ""; 
  position: absolute; /* Позиционируем относительно родительского .nav__list*/
  width: 47px; 
  height: 2px; 
  background-color: var(--color-orange); 
  top: 9px; 
  left: 9px;
}

.nav__list::before {
  left: 9; /* верхняя линия */
}

.nav__list::after {
  top: 19px; /*нижняя линия*/
}

/* Адаптивность — мобильная версия */
@media (min-width: 500px) {
  .nav__list {
    padding-right: 375px;
  }
}

@media (max-width: 1599px) {
 .project-work-grid__img1 img {
    max-width: 100%;
  }

  .project-work-grid__img2 img {
    max-width: 100%;
  }

  .card-grid_img_right img {
    max-width: 100%;
  }

  .card-grid_img_left img {
    max-width: 100%;
  }

}

@media (max-width: 1500px) {
  
  .project-work-grid__img2 {
    margin-top: 30px;
  }
  .project-work-grid__text-block_h2 {
    font-size: 48px;
  }

  .key-directions_h2 {
    font-size: 80px;
    margin-top: 57px;
  }
  .technologies_h2 {
    font-size: 80px;
    padding-bottom: 50px;
 
  }
  .card1, .card2, .card3  {
    margin-top: 80px;
    row-gap: 60px;
  }
  .cards-grid_h3{
    font-size: 38px;
  }
  .tech-banner-text{
    top: 246px;
  }
  .tech-banner {
    max-width: 100%;
    height: 877px;
  }
}

@media (max-width: 1000px) {
  .project-work-grid__text-block_h2 {
  font-size: 28px;
  }
  .key-directions_h2 {
    font-size: 47px;
    margin-top: 26px;
  }
  .technologies_h2 {
    font-size: 47px;
    padding-bottom: 50px;
  }
  .tech-banner-text{
    top: 62px;
  }
  .tech-banner {
    max-width: 100%;
    height: 712px;
  }
}


@media (max-width: 500px) {
    body {
      grid-template-columns: 1fr; /* убираем боковой бар */
    }

    .sidebar {
      display: none; /* скрываем бар */
    }

    .main-content {
      grid-column: 1;
      padding: 10px;
    }

    .logo {
      padding-left: 0px;
      margin-top: 13px;
      max-width: 230px;
    }

    img.logo_h {
      max-width: 230px;
      height: auto;
    }

    /* Скрыть линии перед "О компании" на мобильных */
    .nav__list::before, .nav__list::after {
    display: none;
    }

    .banner {
      display: flex;
      height: 300px; 
      padding-left: 0; 
      justify-content: center; 
      align-items: center; 
    }

    .banner_h1 {
      font-size: 24px;
      text-align: center;
      margin-left: 0px;
      margin-top: 0px;
    }

    .tech-grid {
      flex-direction: column;
    }

    .project-work-grid {
    display: grid;
    grid-template-columns: 10px 1fr 10px 10px;
    grid-template-rows: 1fr;
    max-width: 100%;
  }

    .project-work-grid__img1 {
      grid-column: 1 / 5; 
    }

    .project-work-grid__img1 img {
      margin-top: 200px;
      max-width: 97%;
    }
    .project-work-grid__img2 {
      grid-column: 1 / 4; 
      margin-top: 20px;
    }
  .project-work-grid__img2 img{
    max-width: 100%;
  }
  
  .project-work-grid__text-block_h2 {
    font-size: 22px;
  }

  .cards-grid_p {
    font-size: 15px;
  }

  .key-directions {
      padding: 10px 10px;
  }

  .key-directions_h2 {
    margin-left: 15px;
    font-size: 30px;  
    margin-top: 50px;
  }

  .card1, .card3{
    display: flex;
    flex-direction: column-reverse;
    gap:20px;
    margin-top: 30px;
  }

  .card2 {
    display: flex;
    flex-direction: column;
    gap:20px;
    margin-top: 30px;
  }

  .card-grid_img_right img {
      max-width: 100%;
  }

  .card-grid_img_left img {
    max-width: 100%;
  }

  .cards-grid_h3 {
      padding: 0px;
      margin-top: 10px;
      }

  .cards-grid_p__mt_c1, .cards-grid_p__mt_c2, .cards-grid_p__mt_c3 {
    margin-top: 20px;
  }

  .cards-grid_h3 {
  font-size: 24px;
  }

  .tech-banner-text {
    /*font-size: 28px;*/
    top:340px;
  }
  
  .technologies_h2 {
    font-size: 30px;
    margin-top: 50px;
    margin-left: 15px;
    padding-bottom: 50px;
  }

  .tech-banner {
    height: 572px;
  }
  .tech-banner-text {
    position: absolute;
    color: white;
    font-size: 20px;
    line-height: 1.25;
    max-width: 300px;
    top: 26px;
    left: 0px;
    font-family: "Segoe UI";
    font-weight: normal;
    letter-spacing: 0.6px;
  }
  .tech-banner-text_p {
    padding: 30px 20px;
    background-color: rgb(0 0 0 / 43%);
    font-size: 15px;
  }

  .bold {
    font-size: 16px;
  }

  .contact-info{
    font-size: 14px;
  }
  .logo_foot {
    max-width: 250px;
  }

  .footer-content, .contact-info, .social-icons {
    margin-left: 0px;
    padding-left: 0px;
  }

  /* mob бургер*/
  .burger {
      display: flex;
    }

    .nav {
      position: fixed;
      top: 0;
      right: -100%; 
      /*height: 100vh;*/
      width: 70%; 
      background: white;
      box-shadow: -2px 0 10px rgba(0,0,0,0.1);
      transition: right 0.3s ease;
      z-index: 9;
      padding-top: 40px;
      padding-bottom: 40px;
    }

    .nav.active {
      right: 0; 
    }

    .nav__list {
      flex-direction: column;
      align-items: flex-start;
      font-size: 34px;
    }

    .nav__item {
      margin: 15px 0;
      margin-left: 0 !important; /* Сбросить десктопные отступы */
    }

    /* Скрыть обычное меню в хедере */
    .header {
      justify-content: space-between;
    }

}

