/* Сброс отступов и бордер-бокса */
* {
  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/remontpcimg.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: 177px;
  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;

}

/* КЛИКАБЕЛЬНЫЕ РЕМОНТ НОУТБУКОВ И ПЛАНШЕТОВ */
.mini-links {
  display: grid;
  grid-template-columns: 1fr 1fr; /* две колонки */
  gap: 20px;
  margin-bottom: 30px;
  max-width: 1200px;   /* чтобы не растягивались слишком сильно */
  margin-left: auto;  /* выравнивание по центру */
  margin-right: auto; /* выравнивание по центру */
}

.mini-btn {
  display: block;
  text-align: center;
  padding: 14px;
  border: 1px solid #E1FF00;
  color: #fff;
  font-family: "Jura", sans-serif;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.mini-btn:hover {
  background-color: #E1FF00;
  color: #000;
}

/* адаптив */
@media (max-width: 768px) {
  .mini-links {
    grid-template-columns: 1fr; /* одна колонка на мобилках */
    max-width: 300px;
  }
}

/* ЦЕНЫ НА РЕМОНТ КОМПЬЮТЕРОВ */
.cenynaremont {
  background: #2E496B;
  padding: 40px 20px;
  color: #fff;
}

.cenynaremont-title {
  font-size: 47px;
  font-family: "Jost";
  text-align: center;
  font-weight: 300;
  margin-bottom: 50px;
  color: #fff;
}

.cenynaremont-table {
  border: 1px solid #E1FF00;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.cenynaremont-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.05);
  padding: 16px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s ease;
}

.cenynaremont-line:not(:last-child) {
  border-bottom: 1px solid rgba(225,255,0,0.3);
}

.cenynaremont-line:hover {
  background: rgba(225,255,0,0.1);
}

.cenynaremont-texts {
  display: flex;
  flex-direction: column;
}

.cenynaremont-name {
  font-size: 47px;
  font-weight: 400;
  font-family: "Jura", sans-serif;
}

.cenynaremont-desc {
  font-size: 24px;
  font-weight: 400;
  font-family: "Jura";
  opacity: 0.9;
  margin-top: 2px;
}

.cenynaremont-price {
  font-size: 47px;
  font-weight: 400;
  color: #fff;
  margin-left: 20px;
  font-family: "Jura";
}

.no-click {
  pointer-events: none;  /* Ссылка не кликабельна */
  cursor: default;       /* Курсор не как ссылка */
  color: inherit;        /* Цвет текста не меняется */
  text-decoration: none; /* Убираем подчёркивание, если нужно */
}

/* --- Планшеты (до 768px) --- */
@media (max-width: 768px) {

  html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* убираем горизонтальный скролл */
}
  .cenynaremont-title {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .cenynaremont-line {
    padding: 12px 15px;
  }

  .cenynaremont-name {
    font-size: 18px;
  }

  .cenynaremont-desc {
    font-size: 14px;
  }

  .cenynaremont-price {
    font-size: 16px;
  }
}

/* --- Мобильные телефоны (до 480px) --- */
@media (max-width: 480px) {
  .cenynaremont-title {
    font-size: 26px;
  }

  .cenynaremont-table {
    border-width: 1px; /* тоньше рамка */
  }

  .cenynaremont-line {
    flex-direction: column;   /* переносим цену вниз */
    align-items: flex-start;
    gap: 6px;
    padding: 10px 12px;
  }

  .cenynaremont-name {
    font-size: 16px;
  }

  .cenynaremont-desc {
    font-size: 13px;
  }

  .cenynaremont-price {
    font-size: 14px;
    align-self: flex-end; /* цена выравнена вправо */
  }
}

/* БЛОК С ТЕКСТОМ И FAQ */

/* Базовые фиксы */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden; /* предотвращаем унос сайта влево/вправо */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Контейнер ограниченной ширины */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* ---------- Info-text (SEO-текст) ---------- */
.info-text {
  width: 100%;
  background: #bbdffc;
  color: #071739;
  padding: 60px 0;
}

.info-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 28px;
  color: #071739;
  font-family: "Jura", sans-serif;
}

.qa-block {
  margin-bottom: 24px;
}

.qa-block h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: #071739;
}

.qa-block p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  color: #071739;
}

/* ---------- FAQ (аккордеон) ---------- */
.faq {
  width: 100%;
  background: #63a4da;
  color: #fff;
  padding: 60px 0;
}

.faq-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 24px;
  color: #E1FF00;
  font-family: "Jura", sans-serif;
}

/* отдельные вопросы */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0;
  margin: 0;
}

/* кнопка-вопрос */
.faq-question {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 18px 0;
  font-size: 22px;
  color: #E1FF00;
  cursor: pointer;
  font-weight: 600;
  font-family: "Jura", sans-serif;
}

/* подсветка при открытии */
.faq-question[aria-expanded="true"] {
  color: #ffffff;
}

/* ответ - плавное раскрытие через max-height */
.faq-answer {
  max-height: 0;           /* скрыт по умолчанию */
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* Когда раскрыт */
.faq-item.active .faq-answer {
  max-height: 1000px;      /* достаточно большое значение, чтобы вместить весь текст */
}

.faq-answer div[itemprop="text"] {
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

/* мобильная подсказка (стрелка справа) */
.faq-question::after {
  content: "+";
  float: right;
  font-size: 20px;
  transition: transform 0.25s ease;
}

.faq-question[aria-expanded="true"]::after {
  content: "−";
  transform: rotate(0deg);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .info-title, .faq-title { font-size: 28px; }
  .qa-block h3 { font-size: 18px; }
}

@media (max-width: 768px) {
  .info-text { padding: 40px 0; }
  .faq { padding: 40px 0; }
  .info-title, .faq-title { font-size: 24px; }
  .qa-block p, .faq-answer div { font-size: 15px; }
  .faq-question { font-size: 16px; padding: 14px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .info-title, .faq-title { font-size: 20px; }
  .qa-block h3 { font-size: 16px; }
  .qa-block p { font-size: 14px; }
  .faq-question { font-size: 15px; }
  .faq-answer div { font-size: 14px; }
}


/* НИЖНЕЕ ПОЛЕ С ДАННЫМИ И ТЕКСТОМ */

.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;
}
