/* ==============================================
  ОСНОВНЫЕ СТИЛИ СТРАНИЦЫ
  ============================================== */
:root {
  --color-dark: #202d39;
  --color-light-bg: #f9f9f9;
  --color-accent: #ff4747; /* Предполагаемый акцентный цвет */
  --color-card-bg: #ffffff;
  --color-model-link: #5c6773; /* Цвет ссылок на модели */
  --color-link-hover: #000000;
  --font-golos: "Golos Text", sans-serif;
  --color-blue-main: #0b53ee;
}

.repair-page {
  background-color: var(--color-light-bg);
  padding: 20px 0 80px;
}

.repair-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- ХЛЕБНЫЕ КРОШКИ --- */
.breadcrumbs {
  font-size: 14px;
  color: #888;
  margin-bottom: 30px;
}
.breadcrumbs a {
  color: #888;
  text-decoration: none;
  margin-right: 5px;
}

/* --- ЗАГОЛОВКИ СЕКЦИИ --- */
.section-subtitle {
  font-family: var(--font-golos);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-accent); /* Красный цвет */
  text-transform: uppercase;
  margin-bottom: 8px;
}

.selection-section h1 {
  font-family: var(--font-golos);
  font-weight: 600;
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 50px;
}

/* ==============================================
    СЕТКА УСТРОЙСТВ
    ============================================== */
.device-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

/* --- ССЫЛКА "Смотреть все модели" (теперь это не кнопка) --- */
.view-all-btn-link {
  display: inline-block;
  /* width: 100%; */
  text-align: left;
  padding: 15px 24px;
  border-radius: 60px;
  font-weight: 600;
  background: #e7ecf1;
  color: #2b4570;
  text-decoration: none;
  border-top: 1px solid #e0e0e0;
  transition: color 0.3s;
  font-family: Golos Text;
  font-weight: 500;
  font-style: Medium;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 120%;
  letter-spacing: 0%;
  /* text-align: center; */
}

.view-all-btn-link:hover {
  color: var(--color-blue-main); /* Более яркий ховер */
}

/* -------------------------------------- */
/* ⚡️ ГЛАВНЫЙ КОНТЕЙНЕР ДЛЯ СКРЫТИЯ (Исправлено) */
/* -------------------------------------- */
.hidden-models-wrapper {
  /* Ключ к плавности: скрывает содержимое и дает эффект аккордеона */
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  /* Увеличил время для лучшей видимости анимации */
  transition: max-height 0.6s ease-in-out, opacity 0.4s ease;
}

/* -------------------------------------- */
/* ⚡️ СТИЛИ НОВОЙ КНОПКИ-ПЕРЕКЛЮЧАТЕЛЯ (...) */
/* -------------------------------------- */
.toggle-models-btn {
  display: block;
  padding: 10px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #888;
  transition: color 0.2s, background-color 0.2s;
  /* Добавляем стили для стрелки (если захотите ее добавить в JS) */
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-models-btn:hover {
  color: #333;
  background-color: #f5f5f5; /* Легкий фон при наведении */
}

.device-card {
  background-color: var(--color-card-bg);
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* --- Изображение и Заголовок --- */
.device-info {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.device-image {
  width: 277px;
  height: auto;
  object-fit: contain;
  margin-right: 20px;
}

.device-title {
  font-family: var(--font-golos);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-dark);
}

/* --- Модели устройств --- */
.device-models {
  margin-bottom: 10px;
  flex-grow: 1;
}

.model-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.model-button {
  font-family: var(--font-golos);
  font-size: 15px;
  font-weight: 500;
  border-radius: 30px;
  text-decoration: none;
  padding: 8px 15px;
  border: 1px solid #e0e0e0;
  color: white;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.model-button:hover {
  background-color: rgba(30, 94, 232, 0.6);
  color: var(--color-link-hover);
    color: white;
  border-color: #d0d0d0;
}

.not-found-section {
  /* Добавляем отступы сверху/снизу, чтобы отделить от других блоков */
  padding: 80px 0;
  /* Фоновый цвет, если изображение не загрузится */
  background-color: var(--color-light-bg);
}

.not-found-wrapper {
  max-width: 1280px; /* Ширина вашего изображения */
  margin: 0 auto;
  padding: 0 20px;
  background-image: url("/assets/img/bg.png"); /* ⬅️ ОБНОВИТЕ ПУТЬ */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px; /* Небольшое скругление углов, как на макете */
  overflow: hidden; /* Обрезает изображение, если оно выходит за рамки border-radius */
  min-height: 400px; /* Минимальная высота, чтобы фон был виден */
  display: flex;
  align-items: center; /* Выравнивание контента по центру по вертикали */
}

.not-found-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  /* Внутренние отступы, чтобы контент не прилипал к краям */
  padding: 60px 40px;
  max-width: 587px;
}

/* --- Текст и Заголовок --- */
.not-found-title {
  font-family: Golos Text;
  font-weight: 600;
  font-style: SemiBold;
  font-size: 42px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: -3%;
  color: #282a31;
  margin-bottom: 5px;
}

.not-found-subtitle {
  margin-top: 0px;
  font-family: Golos Text;
  font-weight: 600;
  font-style: SemiBold;
  font-size: 42px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: -3%;
  color: #282a31;
}

.not-found-text {
  font-size: 16px;
  color: var(--color-dark);
  margin-bottom: 30px;
      font-family: Golos Text;
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 140%;
    letter-spacing: -3%;
}

/* --- Форма --- */
.not-found-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
      max-width: 580px;
}

.form-input {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 40px;
  background-color: #1A25450F; /* Светлый фон поля */
  font-size: 16px;
  border: 1px solid #1A25451A;
  color: var(--color-dark);
  transition: box-shadow 0.2s;
      max-width: 560px;
          padding-right: 0px;
}

.form-input::placeholder {
  color: #888;
}

.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-blue-main);
}

.form-submit-btn {
  padding: 18px 20px;
  border: none;
  border-radius: 60px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: #ffffff;
  /* Градиентная заливка, как на макете */
  background: linear-gradient(213.87deg, #2EA8B6 23.58%, #1E5EE8 63.37%);
  transition: opacity 0.3s;
  max-width: 582px;
  margin-top: 9px;
}

.form-submit-btn:hover {
  opacity: 0.9;
}

/* --- Адаптивность --- */
@media (max-width: 992px) {
  .not-found-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px;
  }

  .not-found-image {
    display: none; /* Скрываем изображение на маленьких экранах */
  }

  .not-found-title,
  .not-found-subtitle {
    font-size: 28px;
  }

  .not-found-wrapper {
    min-height: auto;
    /* Убираем изображение, чтобы не мешало контенту, 
           или используем другое, менее широкое, для мобильной версии */
    background-image: url(/assets/img/bg-mobile.png);
    background-color: #ebebeb;
    background-size: cover; /* Растягивает изображение так, чтобы оно покрыло всю область */
    background-position: center; /* Центрирует изображение */
    background-repeat: no-repeat; /* Запрещает повторение */
    align-items: flex-start;
    min-height: 640px;
  }
}
/* ==============================================
    АДАПТИВНОСТЬ (Mobile & Tablet)
    ============================================== */

/* Планшеты (до 768px) */
@media (max-width: 768px) {
  .view-all-btn-link {
    display: none;
  }

  .device-models {
    display: none;
  }

  .model-row {
    display: none;
  }
  .selection-section h1 {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .device-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .device-info {
    flex-direction: column;
    margin-bottom: 0;
  }

  .device-card {
    padding: 20px;
  }

  .device-title {
    font-size: 20px;
    text-align: center;
    padding-top: 32px;
    font-family: Golos Text;
    font-weight: 500;
    font-style: Medium;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: -3%;
    text-align: center;
    vertical-align: middle;
  }

  .device-image {
    width: 168px;
  }

  .model-link {
    font-size: 14px;
    padding: 6px 12px;
  }
}

/* Мобильные (до 575px) */
@media (max-width: 575px) {
  .repair-page {
    padding: 0 0 40px;
  }

  .repair-wrapper {
    padding: 0 16px;
  }

  .breadcrumbs {
    display: none;
  }

  .selection-section {
    padding-top: 20px;
  }
  
  .not-found-section {
      padding-top: 0;
  }
  
  .not-found-content {
      padding: 0;
  }
  
  .not-found-title {
      margin-top: 20px;
  }
  
  .not-found-wrapper {
      border-radius: 32px;
      border: 1px solid #282A311A;
      padding-right: 16px;
      padding-left: 16px;
  }
  
      .not-found-title, .not-found-subtitle {
          font-size: 24px;
      }
      
      .not-found-text-form p {
          padding-bottom: 12px;
      }

.form-input {
    max-width: 320px;
}

  .selection-section h1 {
    font-size: 26px;
    margin-bottom: 20px;
  }
}
