/*
	RzhevskyRobotics 2025
	CyberneticCore Team
	style.css
	Author: Burdin E.A.
*/

* {
    margin: 0;
}

html ,
body {
    position: relative;
    width: 100%;
    height: -webkit-fill-available;
    background: #CFD9E1;
    color: #0F2C3B;
    font-family: 'Roboto';
    overflow-x: hidden;
    scroll-padding-top: 80px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE и Edge */
    
}

html::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

h1 {
    font-family: 'Roboto';
}

footer {
    display: flex;
    align-items:center;
    justify-content: center;
    background: #CFD9E1;
    padding: 40px;
    
}

footer p {
    color: #162E3E;
    font-family: 'Roboto';

}

footer img {
    width: 100px;
    margin-left: 40px;
}

/* ==== Подгружаем шрифты ==== */
@font-face {
    font-family: "Roboto";
    src: url('/fonts/Roboto.ttf');
}

/* ==== Подгружаем шрифты ==== */


/* ========================================================= */
/* HEADER - START                                            */
/* ========================================================= */

/* Сделать картинки резиновыми */
img { max-width: 100%; height: auto; }

/* ==== Контейнер страницы ==== */


/* ==== Контейнер страницы ==== */
.menu-icon {
    display: none;
    cursor: pointer;
}

.menu-icon div {
    width: 60px;
    height: 7px;
    background: white;
    margin: 6px 0;
    transition: 0.4s;
    border-radius: 10px;


}

#nav-menu {
    position: absolute;
    top: 65px;
    right: -200px;
    width: 240px;
    height: auto;
    background-color: rgba(239, 237, 227, 1);
    display: none;
    padding: 20px;
    box-sizing: border-box;
    transition: 0.5s;
    text-align: center;
}

#nav-menu.open {
    right: 0;
}

#nav-menu a {
    display: block;
    margin: 10px 0;
    color: #000000;
    text-decoration: none;
    font-family: 'Cygre';
    font-weight: 400;
    font-size: 1.4em;
    line-height: 1.5;
    cursor: pointer;
}

.main-container {
    margin-top: 70px;
    height: auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

/* ==== Текст сверху ==== */
.main-container header h1 {
    color: white;
    font-size: 1.8em;
    font-weight: 800;
    font-family: 'Roboto';
}

/* ==== Текст сверху ==== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    color: black;
}

.block__content {
    width: auto;
    margin: 0 40px;
    display: flex;
    align-items: center;
}

.block__content p {
    padding: 40px;
    width: 70%;
    font-size: 2em;
    font-family: 'Roboto';
    color: #0F2C3B;
}

.block__content img {
    padding: 40px;
    width: 25%;
}

.block__about {
    width: 100%;
    padding: 40px;
    display: flex;
    /* height: 100vh; */
    background-color: #0F2C3B;
    gap: 20px; /* Отступ между элементами */
    justify-content: space-between; /* Равномерное распределение */
    align-items: center; /* Выравнивание по центру по вертикали */
}

.box__photo {
  position: relative; /* Важно для псевдоэлемента */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px;
  padding: 20px; /* Добавляем отступы */
}

.box__photo::after {
  content: "";
  position: absolute;
  top: 20px; /* Отступ сверху = padding */
  right: 0;
  bottom: 20px; /* Отступ снизу = padding */
  width: 6px;
  background-color: #426E83;
  /* border-radius: 4px; Полностью скругленные концы */
}

.box__photo img {
    padding: 20px;
    width: 60%;
}

.box__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60%;
    max-height: 520px;
    overflow-y: scroll; /* Вертикальный скролл */
    padding: 20px;
    border-radius: 8px;
    margin: 20px;
    
}

.info__block {
    width: 90%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 6px solid #426E83;
    border-bottom: none;
    border-right: none;
    border-left: none;
    margin-right: 40;
}

.info__block:last-child {
    border-bottom: 6px solid #426E83;
}

.info__block img {
    margin: 10px;
    width: 15%;
    flex-shrink: 0;
}

.text__info {
    flex: 1;
    font-family: 'Roboto';
    color: #BFCFDE;

}

.text__info p {
  margin: 0;
  line-height: 1.5;
  font-family: 'Roboto';
  color: #BFCFDE;
  font-size: 1.2em;
}


.text__info p span {
  font-weight: bold;
  color: #BFCFDE;
  font-family: 'Roboto';
  display: block;
  font-size: 1.2em;
}


/* Стили для скроллбара (опционально) */
.box__info::-webkit-scrollbar {
  width: 12px;
}

.box__info::-webkit-scrollbar-track {
  background: #D9D9D9;
  border-radius: 7px;
}

.box__info::-webkit-scrollbar-thumb {
  background: #162740;
  border-radius: 7px;
   border: 3px solid transparent; /* Увеличиваем border */
  background-clip: padding-box; /* Меняем на padding-box */
  margin: 2px; /* Теперь отступы работают */
}

.block__team {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
}

.block__team h2 {
    font-family: 'Roboto';
    font-size: 2.8em !important;
    font-weight: bold;
}

.team__box {
    padding: 20px;
    margin-left: 40px;
    margin-top: 20px;
    display: flex;
    width: 80%;
    align-items: center;
    border-bottom: 6px solid #94BDCD;
}

.team__box img {
    width: 150px;
    margin-right: 40px;
}

.person__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.person__info h3 {
    font-family: 'Roboto';
    font-size: 1.8em !important;
}

.person__info span {
    font-family: 'Roboto';
    font-weight: bold;
}

.person__info p {
    font-family: 'Roboto';
    font-size: 1.4em !important;

}

.block__contacts {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    background-color: #0F2C3B;
    
}

.block__contacts h2 {
    font-family: 'Roboto';
    font-size: 2.8em !important;
    font-weight: bold;
    color: #C4DEEF;
}

.contacts__box {
    width: 100%;
    padding: 40px;
    display: flex;
    gap: 20px; /* Отступ между элементами */
    justify-content: space-between; /* Равномерное распределение */
    align-items: center;
    
}

.info__contacts {
    padding: 0 40px 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 55%;
    border-right: 6px solid #426E83;
}

.info__contacts p {
    width: 70%;
    font-size: 1.4em;
    font-family: 'Roboto';
    color: #C4DEEF;
}


.form__feedback {
    padding: 20px;
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;

}

.form__feedback p {
    font-family: 'Roboto';
    color: #C4DEEF;
    margin-bottom: 40px;
    font-size: 1.4em;
}

.input__block {
    display: flex;
    flex-direction: column;
    
}


.input__block input {
    margin-bottom: 40px;
    padding: 10px 10px;
    width: 240px;
    background-color: #CFD9E1;
    border: none;
    border-radius: 10px;
}


.input__block input::placeholder {
    color: #162E3E;;
    font-family: 'Roboto';
    font-weight: 700;
    font-size: 1.2em;
}

.input__block button {
    padding: 10px 10px;
    width: 160px;
    background-color: #CFD9E1;
    border: none;
    border-radius: 10px;
    transition: transform 0.1s ease-in-out;
    cursor: pointer;
    font-size: 1.2em !important;
}

.input__block button:hover {
    background-color: #bcd1e2;
}

.input__block button:active {
    transform: scale(0.95);
}

/* ====== Планшеты и смартфоны (<= 768px) ====== */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .block__content {
    flex-direction: column;        /* логотип под текстом */
    align-items: flex-start;
    margin: 0 20px;
  }

  .block__content p {
    width: 100%;
    padding: 20px 0;
    font-size: 1.25em;
  }

  .block__content img {
    width: 60%;
    padding: 20px 0;
  }

  .block__about {
    flex-direction: column;        /* фото-секция и список — в колонку */
    padding: 20px;
    gap: 16px;
  }

  .box__photo {
    margin: 0;
    padding: 0;
  }
  .box__photo::after { display: none; } /* убрать декоративную полосу */
  .box__photo img { width: 80%; padding: 10px 0; }

  .box__info {
    width: 100%;
    max-height: none;              /* отключаем фиксированную высоту */
    overflow: visible;             /* убираем внутренний скролл */
    padding: 0;
    margin: 0;
  }

  .info__block {
    width: 100%;
    gap: 12px;
    padding: 12px 0;
  }
  .info__block img { width: 64px; } /* фикс. иконки поменьше */

  .text__info p,
  .text__info p span { font-size: 1em; }

  .block__team {
    padding: 40px 20px;
  }
  .team__box {
    width: 100%;
    margin: 16px 0 0;
    padding: 16px 0;
  }
  .team__box img { width: 96px; margin-right: 20px; }
  .person__info h3 { font-size: 1.25em !important; }
  .person__info p  { font-size: 1.05em !important; }

  .block__contacts {
    padding: 40px 20px;
  }
  .contacts__box {
    flex-direction: column;        /* контакты и форма — друг под другом */
    padding: 20px 0;
    gap: 20px;
    align-items: stretch;
  }
  .info__contacts {
    width: 100%;
    border-right: none;            /* вертикальную линию убираем */
    border-bottom: 6px solid #426E83;
    padding: 0 0 20px 0;
  }
  .info__contacts p {
    width: 100%;
    font-size: 1.1em;
  }

  .form__feedback {
    width: 100%;
    padding: 0;
  }
  .form__feedback p { font-size: 1.1em; }

  .input__block input,
  .input__block button {
    width: 100%;                   /* растянуть на всю ширину */
    box-sizing: border-box;
  }
  .input__block input { padding: 12px; margin-bottom: 16px; }
  .input__block button { padding: 12px; font-size: 1.05em !important; }

  footer {
    padding: 24px 16px;
  }
  footer img { width: 72px; margin-left: 16px; }
}

/* ====== Маленькие смартфоны (<= 480px) ====== */
@media (max-width: 480px) {
  .block__content img { width: 100%; }
  .team__box { flex-direction: column; align-items: flex-start; }
  .team__box img { margin: 0 0 12px 0; }
}