/* Сброс отступов и бордер-бокса */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; 
  height: 1px; 
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; 
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Jost", sans-serif;
  margin: 0;
}

.breadcrumbs {
  font-size: 16px;
  color: #e1ff00;
  background: #071739;
  padding: 0;
  border-top: 1px solid #33351d;    /* верхняя серенькая полоска */
  border-bottom: 1px solid #33351d; /* нижняя серенькая полоска */
}

.breadcrumbs a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  display: inline-block; /* важно для ::after */
}

.breadcrumbs a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px; /* расстояние от текста */
  width: 0;
  height: 1px;
  background-color: #e1ff00;
  transition: width 0.3s ease;
}

.breadcrumbs a:hover::after {
  width: 100%;
}

.breadcrumbs .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  margin-left: 22%;
}

.site-header {
  background: #071739;
    color: #fff;
    padding: 20px 0px;
}

.site-header .container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;               /* делаем флекс-контейнер */
  align-items: center;         /* вертикальное выравнивание по центру */
  justify-content: space-between; /* логотип слева, меню справа */
  flex-wrap: wrap;             /* для мобильных */
  gap: 40px;                   /* расстояние между логотипом и навигацией */
}

.site-header nav ul.main-menu {
  display: flex;
  align-items: center;
  gap: 30px; /* расстояние между пунктами меню */
  list-style: none;
  margin: 0;
  padding: 0;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

header img {
  height: 80px;
}

.logo-block {
  text-align: center; /* всё по центру */
  font-family: "Jura";
  line-height: 1.1;
}

.logo-top {
  position: absolute;
  top: 30px;        /* подними выше */
  transform: translateX(-50%);
  font-size: 12px;
  color: #ffffff;
  white-space: nowrap;
}

.logo {
  font-size: 64px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1;
}

.logo span.fix {
  color: #e1ff00; /* например, выделение Fix */
  position: relative;
}

.logo-bottom {
  position: absolute;
  bottom: -8px;     /* отступ вниз */
  left: 50%;
  transform: translateX(-50%);
  display: block;
  font-size: 16px;
  color: #ffffff;
  white-space: nowrap;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo {
  font-family: "Jura";
  font-weight: 400;
  font-size: 40px;
}

.main-menu {
  font-family: "Jura";
  font-weight: 400;
  display: flex;
  gap: 20px;
  list-style: none;
}

.main-menu > li {
  position: relative;
}


nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

nav ul li {
  display: flex;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: white;
  font-size: 32px;
  position: relative;
   border-bottom: 2px solid transparent;
}

nav a:hover {
  border-bottom: 2px solid #e1ff00;
}

/* Телефонный блок */
.phone-block {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.phone-block img {
  width: 35px;
  height: 35px;
}

.phone-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.phone-numbers {
  display: flex;
  flex-direction: column;
}



.phone-wrapper {
  display: flex;
  align-items: stretch;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;         /* чтобы не торчало */
  background: #fff;
  box-sizing: border-box;
}

.phone-wrapper .phone-prefix {
  display: flex;
  align-items: center;    /* центрируем текст по вертикали */
  padding: 0 12px;
  background: #ffffff;      /* фон для префикса */
  font-size: 16px;
  color: #020d3b;
  border-right: 2px solid #020d3b;  /* тонкая разделительная линия */
}

.phone-wrapper input {
  flex: 1;
  border: none;
  padding: 10px;
  font-size: 16px;
  outline: none;
  font-family: "Jost";
}

.main-phone {
  color: white;
  font-weight: 400;
  text-decoration: none;
   font-family: "Jost"; /* тут меняй шрифт */
  font-size: 20px;
   border-bottom: 2px solid transparent;
}

.phone-block:hover .main-phone {
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.contacts-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.social-icons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.social-icons img {
  display: block;
  margin: 0;

}

.social-icons a {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-icons a:hover{
  border: none !important;
}

.social-icons a img {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.social-icons a:hover img {
  transform: scale(1.2);
}


@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .main-menu {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .contacts-group {
    flex-direction: column;
    align-items: center;
  }

  .phone-block {
    flex-direction: row;
    justify-content: center;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
  }
}

/* ДЛЯ ПЛАНШЕТОВ */

@media (min-width: 769px) and (max-width: 1024px) {
  .site-header .container {
    display: flex;
    flex-direction: row; /* горизонтально */
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 100%;       /* ограничиваем ширину контейнера */
    padding: 0 20px;       /* внутренние отступы */
    box-sizing: border-box; /* чтобы паддинги не выталкивали */
  }

  .main-menu {
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;       /* если меню не помещается, переносим */
  }

  .contacts-group {
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex-shrink: 1;        /* позволяет контейнеру ужиматься */
    min-width: 0;          /* чтобы флекс не ломал ширину */
  }

  .social-icons {
    gap: 15px;
  }
}


.hero { 
  padding: 100px 0;
  background: url("img/noutviklsam.png") no-repeat center center / cover;
  position: relative;
  color: #fff;
  justify-content: flex-start; /* контент уходит влево */
  align-items: center;
  padding-left: 5%;
}

.hero .container {
  display: flex;
  justify-content: space-between;
  flex-direction: row; 
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap; /* чтобы на мобилках ломалось */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start; /* все строки по левому краю */
}

.hero-text {
 align-self: flex-start;   /* текст идёт наверх */
  margin-top: -5%;    
  flex: 1;
  min-width: 300px; /* чтобы не слипалось на мобилке */
}

.hero-text h2 {
  font-weight: 400;
  line-height: 1.2;
  color: white;
}

.hero-text .line1 {
  font-family: "Jura";
  font-size: 147px;
  align-self: flex-start;
}

.hero-text .line2 {
  margin-top: -2%;
  font-family: "Jura";
  font-size: 92px;
  align-self: flex-start;
}

.hero-text .line3 {
  font-size: 69px;
  font-family: "Jura";
  align-self: flex-start;
}

.hero-text .line4 {
  font-size: 69px;
  font-family: "Jura";
  align-self: center; /* центр относительно ширины текста выше */
  text-align: left;
}

/* Планшеты */
@media (max-width: 1024px) {
  .hero {
    padding: 60px 20px;
    padding-left: 5%;
  }

  .hero-text .line1 {
    font-size: 120px;
  }

  .hero-text .line2 {
    font-size: 72px;
  }

  .hero-text .line3 {
    font-size: 54px;
  }

  .hero-text .line4 {
    font-size: 50px;
  }

  .callback-btn {
    font-size: 18px;
    padding: 10px 36px;
  }
}

/* Мобильные */
@media (max-width: 768px) {
  .hero {
    padding: 40px 15px;
    padding-left: 5%;
  }

  .hero .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero-text {
    margin-top: 0;
    min-width: auto;
  }

  .hero-text .line1 {
    font-size: 72px;
  }

  .hero-text .line2 {
    font-size: 42px;
  }

  .hero-text .line3 {
    font-size: 32px;
  }

  .hero-text .line4 {
    font-size: 28px;
    align-self: flex-start; /* чтобы не прыгало */
  }

  .callback-btn {
    font-size: 16px;
    padding: 8px 28px;
    margin-top: 20px;
  }
}

/* Очень маленькие телефоны */
@media (max-width: 480px) {
  .hero-text .line1 {
    font-size: 48px;
  }

  .hero-text .line2 {
    font-size: 32px;
  }

  .hero-text .line3 {
    font-size: 24px;
  }

  .hero-text .line4 {
    font-size: 20px;
  }

  .callback-btn {
    width: 100%; /* кнопка на всю ширину */
    text-align: center;
  }
}

/* ОБРАТНАЯ СВЯЗЬ КНОПКА */

.callback-btn {
  background-color: rgba(255, 255, 255, 0.041);
  border: 1px solid #E1FF00;
  color: white;
  padding: 12px 44px;
  font-size: 20px;
  /* border-radius: 12px; */
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Jura";
  margin-top: 5%;
}

.callback-btn:hover {
  background-color: #E1FF00;
  color: black;
}

.callback-form {
  position: fixed; /* или absolute, если нужно внутри wrapper */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(9, 18, 34, 0.685);
  padding: 30px;
  /* border-radius: 12px; */
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(51, 50, 50, 0.089);
}

.callback-form input,
.callback-form button {
  padding: 10px;
  /* border-radius: 8px; */
  border: none;
  font-size: 16px;
}

.callback-form button {
  background-color: #E1FF00;
  font-weight: bold;
  cursor: pointer;
  font-family: "Jura";
}

.hidden{
  display: none;
}

.success-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px 30px;
  border: 2px solid #E1FF00;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 1000;
  font-size: 18px;
  color: black;
  text-align: center;
  display: none;
}

.success-popup.show {
  display: block;
}

@media (max-width: 768px) {
  .callback-btn-wrapper {
    display: flex;
    justify-content: center; /* смещаем по центру */
    width: 100%;
    margin-top: 15px; /* можно добавить отступ сверху */
  }
}

/* КОНЕЦ ОБРАТНОЙ СВЯЗИ КНОПКА */


.callback-block {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 0;

}

.close-form-btn{
  
  background-color: #e94022 !important;

}

.article-section {
  background: #bbdffc; /* светлая заливка на всю ширину */
  width: 100%;
  padding: 60px 20px;
}

.article-container {
  max-width: 1200px;
  margin: 0 auto;
  color: #0c1127;
  font-family: Arial, sans-serif;
}

.article-container h1 {
  font-size: 42px;
  font-family: Jost;
  font-weight: 500;
  color: #37426C;
  margin-bottom: 20px;
  text-align: center;
}

.article-container .intro {
  font-size: 20px;
  line-height: 1.6;
  color: #0c1127;
  margin-bottom: 30px;
  text-align: center;
}

.article-container h2 {
  font-size: 28px;
  color: #071739;
  margin-top: 30px;
  margin-bottom: 10px;
  border-left: 2px solid #E1FF00;
  padding-left: 10px;
}

.article-container p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.article-container ul {
  margin: 15px 0;
  padding-left: 20px;
}

.article-container ul li {
  margin-bottom: 10px;
  font-size: 18px;
}

.article-container a {
  color: #2E496B;
  font-weight: bold;
}

.article-container a:hover {
  color: #000;
  text-decoration-color: #c4df00;
}




/* НИЖНЕЕ ПОЛЕ С ДАННЫМИ И ТЕКСТОМ */

.contacts-container {
  width: 100%;
  background-image: url(/img/footerback1.svg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 25%;
  padding: 20px 0;
  color: black;
  text-align: center;
}

/* Контент ограничен 1200px и центрирован */
.contacts {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  border-radius: 0;
}

/* Навигация */
.contacts nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 20px;
}

.contacts nav a {
  all: unset;
  cursor: pointer;
  color: inherit;
  font-size: 20px;
  text-align: center;
}

.contacts nav a:hover {
  color: #4803c9;
}

/* Текстовые параграфы */
.contacts-text p {
  display: block;
  width: 100%;
  margin: 10px 0;
  font-size: 18px;
  line-height: 1.5;
}

/* --- Адаптив --- */
@media (max-width: 768px) {
  .contacts nav {
    flex-direction: column;
    gap: 12px;
  }

  .contacts nav a {
    font-size: 18px;
  }

  .contacts-text p {
    font-size: 16px;
    margin-bottom: 12px;
    text-align: center; /* можно убрать, если нужен текст слева */
  }
}

.scroll-to-top {
  position: fixed;
  bottom: 40px;
  right: 10%;
  transform: translateX(50%);
  background-color: #e1ff00b7;
  padding: 16px;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top:hover {
  background-color: #E1FF00;
  transform: translateX(50%) scale(1.1);
}

.scroll-to-top img {
  width: 28px;
  height: 28px;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}
