/* ===================== */
/* 🎨 ШРИФТЫ */
/* ===================== */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/montserrat-v31-latin-700.woff2') format('woff2');
}


/* ===================== */
/* 🎨 ПЕРЕМЕННЫЕ */
/* ===================== */

:root {
  --primary-color: #17a2b8;
  --background-color: #e9ecef;
  --text-color: #343a40;
  --accent-color: #138496;
  --dark-background: #6c757d;
}


/* ===================== */
/* 🧱 БАЗА */
/* ===================== */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: 'Montserrat', sans-serif;
}

main {
  flex: 1;
  padding: 2rem 0;
}


/* ===================== */
/* 🌊 ДЕКОР */
/* ===================== */

.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: linear-gradient(135deg, #0d6efd 0%, #20c997 100%);
}

.wave-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

.shape-fill {
  fill: #f8f9fa;
}


/* ===================== */
/* 🧭 НАВБАР */
/* ===================== */

.navbar {
  background-color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(23, 162, 184, 0.3);
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(23, 162, 184, 0.2);
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: white !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.navbar-brand i {
  margin-right: 12px;
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.navbar-brand:hover i {
  transform: rotate(-15deg);
}

.nav-link {
  margin: 0 0.2rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  border-radius: 6px;
  color: white !important;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link:focus {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}


/* ===================== */
/* 📦 КАРТОЧКИ */
/* ===================== */

.card {
  background-color: white;
  border-radius: 12px;
  border: 1px solid rgba(23, 162, 184, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(23, 162, 184, 0.2);
  border-color: var(--accent-color);
}

.card-header {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
}


/* ===================== */
/* 🔘 КНОПКИ */
/* ===================== */

.btn-primary {
  background-color: var(--primary-color);
  border: none;
  border-radius: 50px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(23, 162, 184, 0.3);
}


/* ===================== */
/* 📋 ТАБЛИЦЫ */
/* ===================== */

.table th i {
  opacity: 0.7;
}


/* ===================== */
/* 📦 DROPDOWN */
/* ===================== */

.dropdown-menu {
  background-color: white;
  border: 1px solid rgba(23, 162, 184, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
  color: var(--text-color);
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateX(5px);
}


/* ===================== */
/* 🔔 TOAST */
/* ===================== */

.toast {
  background-color: white;
  border: 1px solid rgba(23, 162, 184, 0.2);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}


/* ===================== */
/* 🧾 ФОРМЫ */
/* ===================== */

.form-control {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(23, 162, 184, 0.5);
  color: var(--text-color);
  transition: all 0.3s ease;
}

.form-control:focus {
  background-color: #fff;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem rgba(23, 162, 184, 0.25);
}


/* ===================== */
/* 📱 АДАПТИВ */
/* ===================== */

@media (max-width: 768px) {
  .card {
    border-radius: 10px;
  }

  .navbar-brand span {
    display: inline;
  }
}

.footer {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    font-size: 0.9rem;
    padding: 12px 0;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}