/* ==========================================================================
   Университет Мемов «ISHAK» — Основная таблица стилей
   Версия: 0.0.1
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. СБРОС И БАЗОВЫЕ НАСТРОЙКИ
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', 'Arial', 'Helvetica', sans-serif;
  color: #1a1a1a;
  background-color: #ffffff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #1a5ba8;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0d3a7a;
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* --------------------------------------------------------------------------
   2. ТИПОГРАФИКА
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: #0a1f3d;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   3. КОНТЕЙНЕР
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   4. ШАПКА (HEADER)
   -------------------------------------------------------------------------- */
.site-header {
  background-color: #0a1f3d;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
  color: #ffffff;
}

.logo-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  padding: 0 12px 0 0;
}

.logo-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.7rem;
  color: #8ab4e8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   5. НАВИГАЦИЯ
   -------------------------------------------------------------------------- */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #d0dce8;
  border-radius: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
}

.nav-link.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Бургер-меню */
.burger-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
}

.burger-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger-toggle.active span:nth-child(2) {
  opacity: 0;
}

.burger-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --------------------------------------------------------------------------
   6. HERO-СЕКЦИЯ
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, #0a1f3d 0%, #1a3a6b 100%);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.hero.hero--index {
  background-image: linear-gradient(135deg, rgba(10, 31, 61, 0.1) 0%, rgba(26, 58, 107, 0.72) 100%),
    url("../img/background.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.2rem;
  color: #c0d0e8;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   7. КНОПКИ
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: #1a5ba8;
  color: #ffffff;
  border-color: #1a5ba8;
}

.btn-primary:hover {
  background-color: #0d3a7a;
  border-color: #0d3a7a;
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-outline-dark {
  background-color: transparent;
  color: #1a5ba8;
  border-color: #1a5ba8;
}

.btn-outline-dark:hover {
  background-color: #1a5ba8;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   8. СЕКЦИИ
   -------------------------------------------------------------------------- */
.section {
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #1a5ba8;
  border-radius: 2px;
}

.section-subtitle {
  color: #666;
  font-size: 1.05rem;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   9. КАРТОЧКИ
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background-color: #f5f7fa;
  border-radius: 12px;
  padding: 32px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e8ecf0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: #1a5ba8;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.card p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-link:hover {
  text-decoration: none;
  color: inherit;
}

/* --------------------------------------------------------------------------
   10. ПОДВАЛ (FOOTER)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #0a1f3d;
  color: #c0d0e8;
  padding: 48px 20px 24px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col a {
  color: #8ab4e8;
  display: block;
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-version {
  color: #6a8ab0;
}

/* --------------------------------------------------------------------------
   11. СТРАНИЦЫ-ЗАГЛУШКИ (UNDER CONSTRUCTION)
   -------------------------------------------------------------------------- */
.page-header {
  background: linear-gradient(135deg, #0a1f3d 0%, #1a3a6b 100%);
  color: #ffffff;
  padding: 48px 20px;
  text-align: center;
}

.page-header h1 {
  color: #ffffff;
  margin-bottom: 8px;
}

.page-header p {
  color: #c0d0e8;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  padding: 60px 20px;
  flex: 1;
}

.under-construction {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 24px;
  background-color: #f5f7fa;
  border-radius: 12px;
  border: 1px solid #e8ecf0;
}

.under-construction-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  color: #1a5ba8;
  opacity: 0.5;
}

.under-construction h3 {
  color: #0a1f3d;
  margin-bottom: 12px;
}

.under-construction p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   12. СТРАНИЦА 404
   -------------------------------------------------------------------------- */
.page-404 {
  text-align: center;
  padding: 100px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-404 h1 {
  font-size: 6rem;
  color: #0a1f3d;
  line-height: 1;
  margin-bottom: 8px;
}

.page-404 h2 {
  font-size: 1.5rem;
  color: #444;
  margin-bottom: 16px;
}

.page-404 p {
  color: #666;
  margin-bottom: 32px;
  max-width: 400px;
}

/* --------------------------------------------------------------------------
   13. ФОРМА ПРОВЕРКИ ДИПЛОМА
   -------------------------------------------------------------------------- */
.diploma-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 32px;
  background-color: #f5f7fa;
  border-radius: 12px;
  border: 1px solid #e8ecf0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  color: #0a1f3d;
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #ffffff;
  transition: border-color 0.2s ease;
  font-family: inherit;
}

.form-input:focus {
  outline: none;
  border-color: #1a5ba8;
  box-shadow: 0 0 0 3px rgba(26, 91, 168, 0.15);
}

/* --------------------------------------------------------------------------
   14. АДАПТИВНОСТЬ (MEDIA QUERIES)
   -------------------------------------------------------------------------- */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
  .nav-list {
    gap: 2px;
  }

  .nav-link {
    padding: 8px 10px;
    font-size: 0.85rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }
}

/* Мобильные (до 768px) */
@media (max-width: 768px) {
  .burger-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #0a1f3d;
    padding: 8px 16px 16px;
    gap: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-list.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
    width: 100%;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 320px;
  }

  .section {
    padding: 40px 20px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .page-header {
    padding: 36px 20px;
  }

  .page-404 h1 {
    font-size: 4rem;
  }
}

/* Малые мобильные (до 480px) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .logo-title {
    font-size: 0.95rem;
  }

  .logo-subtitle {
    font-size: 0.6rem;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .card {
    padding: 24px 20px;
  }

  .container {
    padding: 0 16px;
  }
}

/* --------------------------------------------------------------------------
   15. ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ
   -------------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* --------------------------------------------------------------------------
   16. АНИМАЦИИ
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

/* --------------------------------------------------------------------------
   17. СТИЛИ ДЛЯ СТРАНИЦЫ ВХОДА (АДМИНКА / ЛИЧНЫЙ КАБИНЕТ)
   -------------------------------------------------------------------------- */
.auth-container {
  max-width: 420px;
  margin: 40px auto;
  padding: 32px;
  background-color: #f5f7fa;
  border-radius: 12px;
  border: 1px solid #e8ecf0;
}

.auth-container h2 {
  text-align: center;
  margin-bottom: 24px;
}
