* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
	user-select: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: #333333;
  background-color: #ffffff;
  line-height: 1.5;
}

/* ШАПКА (Header) */
header {
  background-color: #1e3a8a;
  color: #ffffff;
  padding: 20px 0 15px 0;
  border-bottom: 3px solid #1d4ed8;
}
.header-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}
.site-title {
  font-size: 24px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.site-subtitle {
  font-size: 14px;
  margin-top: 5px;
  opacity: 0.9;
}

/* НАВИГАЦИЯ (Navbar) */
nav {
  background-color: #2563eb;
  border-bottom: 1px solid #1d4ed8;
}
.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}
.nav-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-menu li a {
  display: block;
  padding: 12px 18px;
  color: #ffffff;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  transition: background 0.2s;
}
.nav-menu li a:hover,
.nav-menu li a.active {
  background-color: #1d4ed8;
}

/* ОСНОВНОЙ КОНТЕНТ */
main {
  max-width: 1140px;
  margin: 30px auto;
  padding: 0 15px;
  min-height: 60vh;
}
.page-title {
  font-size: 22px;
  font-weight: bold;
  color: #1e3a8a;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #2563eb;
}
.welcome-text {
  background-color: #f8fafc;
  border-left: 4px solid #2563eb;
  padding: 15px 20px;
  margin-bottom: 25px;
  border-radius: 0 4px 4px 0;
}
.welcome-text p {
  margin-bottom: 8px;
}
.welcome-text p:last-child {
  margin-bottom: 0;
}

/* ПРОПОРЦИИ КОЛОНОК (40% и 60%) */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}
.left-column {
  flex: 0 0 calc(40% - 15px);
  max-width: calc(40% - 15px);
}
.right-column {
  flex: 0 0 calc(60% - 15px);
  max-width: calc(60% - 15px);
}

.menu-title {
  font-size: 20px;
  font-weight: bold;
  color: #1e3a8a;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 3px solid #2563eb;
}

/* УВЕЛИЧЕННЫЙ ШРИФТ И СТИЛИ СПИСКА ДОКУМЕНТОВ */
.doc-list {
  list-style: none;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.doc-list li {
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  transition: all 0.2s ease-in-out;
}
.doc-list li:last-child {
  border-bottom: none;
}

.doc-list li a {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  color: #1e293b;
  text-decoration: none;
  font-size: 16px; /* КРУПНЫЙ УДОБНЫЙ ШРИФТ */
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  gap: 12px;
}

.doc-list li a:hover {
  background-color: #eff6ff;
  color: #1d4ed8;
  padding-left: 24px;
}

/* Цвета и размеры векторных иконок */
.doc-list li a i {
  font-size: 18px;
  width: 22px;
  text-align: center;
  transition: transform 0.2s ease;
}
.doc-list li a:hover i {
  transform: scale(1.15);
}

.icon-pdf {
  color: #dc2626;
} /* Красный PDF */
.icon-word {
  color: #2563eb;
} /* Синий Word */
.icon-excel {
  color: #16a34a;
} /* Зеленый Excel */
.icon-image {
  color: #9333ea;
} /* Фиолетовый Image */
.icon-folder {
  color: #0284c7;
} /* Голубая Папка */

/* СЕТКА ВИДЕОРОЛИКОВ И ПЛЕЕР */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.video-card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}
.video-player {
  background: #000000;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.video-player video {
  width: 100%;
  height: 100%;
  display: block;
}
.video-info {
  padding: 12px 15px;
  background: #ffffff;
}
.video-name {
  font-size: 14px;
  font-weight: bold;
  color: #334155;
  margin-bottom: 5px;
  word-break: break-all;
}
.video-size {
  font-size: 12px;
  color: #64748b;
}
.video-box {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
  background: #000000;
}
.video-box video {
  width: 100%;
  display: block;
  border-radius: 4px;
}

footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 40px 0 20px 0;
  margin-top: 50px;
}
.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col {
  flex: 1 1 250px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #ffffff;
  font-weight: bold;
}
.footer-logo img {
  width: 60px;
  height: auto;
}
.footer-heading {
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 12px;
}
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  background: #ffffff;
  border-left: 4px solid #2563eb;
  padding: 15px 20px;
  margin-bottom: 25px;
  border-radius: 0 4px 4px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.page-title {
  font-size: 20px;
  font-weight: bold;
  color: #1e3a8a;
}

.btn-primary {
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}
.btn-primary:hover {
  background-color: #1d4ed8;
}

.upload-box {
  display: none;
  background: #ffffff;
  border: 2px dashed #93c5fd;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: center;
}
.upload-box.active {
  display: block;
}
.upload-box input[type="file"] {
  display: none;
}

.file-label {
  display: inline-block;
  padding: 12px 24px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}
.file-label:hover {
  background: #dbeafe;
}
.status-msg {
  margin-top: 12px;
  font-size: 14px;
  font-weight: bold;
  color: #1e3a8a;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}
.photo-card {
  background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px;
  overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.05); position: relative;
}
.photo-link { display: block; height: 180px; background: #e2e8f0; }
.photo-link img { width: 100%; height: 100%; object-fit: cover; }

.del-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(220, 38, 38, 0.9);
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
}
.del-btn:hover {
  background: #dc2626;
}
 .contact-grid-top {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      margin-bottom: 25px;
    }

    .contact-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 25px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .contact-card-title {
      font-size: 18px;
      font-weight: bold;
      color: #1e3a8a;
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      gap: 10px;
      border-bottom: 2px solid #eff6ff;
      padding-bottom: 8px;
    }

    .contact-item {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 16px;
      color: #334155;
    }

    .contact-item:not(:last-child) {
      margin-bottom: 12px;
    }

    .contact-item i {
      font-size: 18px;
      width: 24px;
      text-align: center;
      color: #2563eb;
    }

    .contact-item a {
      color: #334155;
      text-decoration: none;
      transition: color 0.2s;
    }

    .contact-item a:hover {
      color: #2563eb;
    }

    /* Карточка с картой на всю ширину */
    .map-card {
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 20px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .map-container {
      width: 100%;
      height: 400px;
      border-radius: 6px;
      overflow: hidden;
    }

    .map-container iframe {
      width: 100%;
      height: 100%;
      border: 0;
    }
.full-page-iframe-container {
      width: 100%;
      /* Мәзір мен подвалдан асып кетпеуі үшін биіктікті есептеу */
      height: calc(100vh - 280px); 
      min-height: 500px;
      margin: 0;
      padding: 10px;
      overflow: hidden;
      border: 0px solid #e2e8f0;
      box-shadow: 0 0px 0px rgba(0, 0, 0, 0.05);
    }

    .full-page-iframe-container iframe {
      width: 100%;
      height: 100%;
      border: none;
      display: block;
    }

    /* main тегінің ішкі отступтарын осы бетке арнайы оңтайландыру */
    main.iframe-main {
      max-width: 100%;
      padding: 0 15px;
      margin: 20px auto;
    }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

   .team-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  
  /* Карточканың өзі 3х4 пропорциясын ұстанады */
  aspect-ratio: 3 / 4; 
  transition: transform 0.2s, box-shadow 0.2s;
}

    .team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

    /* Фото блогы (Пропорционалды сурет) */
   .team-photo {
  width: 100%;
  flex-grow: 1; /* Созылып, бос орынды толтырады */
  background-color: #f1f5f9;
  overflow: hidden;
  position: relative;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* Бет-әлпет жоғарыда жақсы көрінуі үшін */
}

    /* Ақпарат блогы (Аты мен қызметі) */
   .team-info {
  padding: 10px 12px;
  text-align: center;
  background: #ffffff;
  flex-shrink: 0; /* Биіктігі аты-жөніне қарай бекітіледі */
}

.team-name {
  font-size: 15px;
  font-weight: bold;
  color: #1e3a8a;
  line-height: 1.2;
}

.team-role {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  margin-top: 3px;
}

    /* Форма стилі (Қызметкер қосу блогы) */
    .add-staff-form {
      max-width: 500px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .add-staff-form input[type="text"] {
      width: 100%;
      padding: 10px 14px;
      border: 1px solid #cbd5e1;
      border-radius: 6px;
      font-size: 14px;
    }

/* Жою батырмасы карточканың оң жақ жоғарғы бұрышында тұрады */
.team-del-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(220, 38, 38, 0.9); /* Қызыл түс */
  color: #ffffff !important;           /* Иконка түсі ақ */
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex !important;            /* Көрінуін мәжбүрлеу */
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 10 !important;              /* Басқа элементтердің үстінде тұруы үшін */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, transform 0.2s;
}

.team-del-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

.team-del-btn i {
  color: #ffffff !important;
  font-size: 14px;
}

.gallery-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
  }
  .gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 16px;
  }
  .gallery-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
  }
  .gallery-actions {
    display: flex;
    gap: 8px;
  }
  .btn-action {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
  }
  .btn-add { background: #eff6ff; color: #2563eb; }
  .btn-add:hover { background: #dbeafe; }
  .btn-delete { background: #fef2f2; color: #ef4444; }
  .btn-delete:hover { background: #fee2e2; }

  .photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
  }
  .photo-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f8fafc;
  }
  .photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
  }
  .photo-card:hover img { transform: scale(1.05); }
  .del-photo-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .upload-box {
    display: none;
    background: #fff;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
  }
  .upload-box.active { display: block; }
  .form-group { margin-bottom: 12px; }
  .form-group input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
  }



@media (max-width: 992px) {
      .team-grid { grid-template-columns: repeat(2, 1fr); }
    }

@media only screen and (max-width: 990px) {
    .footer-logo {
        margin-right: 0;
        width: 100%;
        align-items: center;
        margin-bottom: 25px;
    }
	
	.footer-heading {
        margin-right: 0;
        width: 100%;
        align-items: center;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
  .photo-link {
    height: 130px;
  }
  .nav-menu {
    flex-direction: column;
  }
  .nav-menu li a {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .content-grid {
    flex-direction: column;
  }
  .left-column,
  .right-column {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
	.contact-grid-top {
        grid-template-columns: 1fr;
      }
      .map-container {
        height: 300px;
      }
	.full-page-iframe-container {
        height: calc(100vh - 350px);
        min-height: 400px;
      }    
}
@media (max-width: 576px) 
		{
      .team-grid { grid-template-columns: 1fr; }
      .team-photo { height: 280px; }
			    .footer-logo {
        flex-direction: column;
        text-align: center;
    }
			
			.footer-heading {
        flex-direction: column;
        text-align: center;
    }
			.footer-col p {
        flex-direction: column;
        text-align: center;
    }
			
    }
