:root {
  --color-main: #0D9FCE;
  --color-accent: #00B0E0;
  --color-light: #F5F7FA;
  --color-dark: #222;
  --font-family: 'Inter', 'Nunito Sans';
}

body {
  margin: 0;
  font-family: var(--font-family);
  /*background-color: #FFFFFF;
  color: #FFFFFF;*/
  font-family:  'Inter';
  margin: 0;
  padding: 0;
  color: #000;
}
.container {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 10px;
}
.nowrap {
  white-space: nowrap;
}

/* Header */
.header {
  position: fixed; /* 📌 Закрепляем */
  top: 0;          /* Прилепляем к верху */
  left: 0;
  width: 100%;     /* На всю ширину */
  z-index: 1000;   /* Чтобы всегда был поверх всего */
  background-color: white; /* Фон обязателен, иначе сквозь него будет видно контент */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Красивый небольшой тень */
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  height: 96px;
  margin-right: auto;
  margin-bottom: 10px;
  margin-top: 10px;
}
.nav a {
  margin: 0 16px;
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 500;
  font-size: 24px;
  margin-left: auto;
}
.nav a:hover {
  color: var(--color-main);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 24px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn:hover {
  background: linear-gradient(to right, #007C92, #00B0E0);
  transform: translateY(-1px);
}
.btn-primary {
  background-color: var(--color-accent);
  color: white;
   background: linear-gradient(92.59deg, #0D9FCE 0.93%, #075068 99.57%);
}
.btn-primary:hover {
  background-color: #008cbd;
}
.btn-accent {
  color: white;
  background: linear-gradient(92.59deg, #0D9FCE 0.93%, #075068 99.57%);
border-width: 1px 5px;
border-style: none;
border-color: rgba(255, 255, 255, 0.4);
border-radius: 30px;
}
.btn-accent:hover {
  background-color: #004f39;
}

/* Hero */
.hero {
   position: relative;
  background-image: url('../img/hero-bg.png');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding: 60px 40px;
  padding-top: 120px;
  
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.hero-text {
  color: #000;
  max-width: 100%;
  z-index: 2;
}
.hero-text h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.2;
  color: var(--color-main);
  margin-bottom: 20px;
}
.hero-text p {
  font-size: clamp(16px, 2.5vw, 20px);
  color: #666;
  margin-bottom: 30px;
}
.hero-image {
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  height: auto;
}
@media (max-width: 1200px) {
.hero-text h1 {
  font-size: clamp(18px, 5vw, 36px);
  line-height: 1.2;
  color: var(--color-main);
  margin-bottom: 20px;
}
.hero-text p {
  font-size: clamp(14px, 2.5vw, 16px);
  color: #666;
  margin-bottom: 20px;
}	
}

/* How it works */
.how-it-works {
  background-color: #F9FAFB;
}
.section-subtext {
  color: #666;
  margin-bottom: 40px;
  text-align: center;
  font-size: clamp(16px, 2.5vw, 20px);

}
.how-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.how-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  width: 100%;
  max-width: 100%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  flex: 1 1 280px; /* ширина в зависимости от экрана */
  transition: transform 0.3s;
}
.how-card img:hover {
  transform: scale(1.05);
}
@media (max-width: 992px) {
  .how-card {
    flex: 1 1 100%;
  }

  .how-card img {
    max-width: 80px;
  }
}
.how-card img {
  width: 100%;
  height: auto;
  max-width: 425px; /* ограничиваем размер внутри карточки */
  margin: 0 auto 12px;
  object-fit: contain;
  display: block;
}
.how-card img:hover {
  transform: scale(1.05);
}

.how-card p {
  font-weight: 500;
  color: #222;
}

/* Equipment */

.device-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.device-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 16px;
  width: 360px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.device-card img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}
.device-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;

}
.device-card p {
  margin-bottom: 12px;
  font-weight: 500;
}

/* Docs */
.docs {
  padding: 20px 0;
  background: white;

}
.device-card .btn.btn-primary {
  display: inline-block;
  font-size: 20px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 30px;
  background: linear-gradient(92.59deg, #0D9FCE 0.93%, #075068 99.57%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, transform 0.2s ease;
}

.device-card .btn.btn-primary:hover {
  background: linear-gradient(92.59deg, #075068 0.93%, #0D9FCE 99.57%);
  transform: scale(1.05);
}

.docs-wrapper {
  background: radial-gradient(circle at center, #0B85AD 0%, #075068 100%);
  border-radius: 70px;
  padding: 60px;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 90%;

}

.docs-content {
  color: white;
  max-width: 50%;
}
.docs-content h2 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
  color: white;
}
.docs-content p {
  font-size: 22px;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 20px;
  margin-left: 60px;
  color: #EAF6F9;
}
.btn-doc {
  display: inline-block;
  padding: 20px 22px;
  margin-top: 20px;
  margin-left: 60px;
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 500;
  border-radius: 25px;
  background: linear-gradient(to right, #00B0E0, #007C92);
  color: #fff;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 1;
}
.btn-doc:hover {
  background: linear-gradient(to right, #007C92, #00B0E0);
  transform: translateY(-1px);
}
.docs-image img {
  max-width: 100%;
   width: 1000px;
  height: auto;
}


/* Contact */
.contact {
  padding: 60px 0;
  background-color: #FFFFFF;
  max-width: 100%;
}

.contact .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--color-main);
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.form-group input {
  width: 95%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-group input:focus {
  border-color: var(--color-main);
  outline: none;
}

.form-actions {
  display: flex;
  gap: 20px;
  margin: 30px 0;
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn-secondary:hover {
  background: #e0e0e0;
}

.form-check {
  margin-top: 20px;
}

.form-check label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
}

.form-check input[type="checkbox"] {
  width: auto;
}

.success-message {
  color: #28a745;
  text-align: center;
  margin-top: 20px;
  font-weight: 500;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  user-select: none;
  margin-top: 20px;
  max-width: 600px;
}

.custom-checkbox input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.custom-checkbox .checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid #007BFF;
  border-radius: 6px;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease-in-out;
}

.custom-checkbox input:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 1px;
  width: 6px;
  height: 12px;
  border: solid #007BFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox .label-text {
  color: #333;
}

/* Flash messages */
.flash-messages {
  margin: 20px 0;
}

.alert {
  font-family: 'Inter', sans-serif;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 14px;
  max-width: 600px;
  margin: 0 auto 15px;
  box-sizing: border-box;
}

.alert-error {
  background-color: #ffe6e6;
  color: #b30000;
  border: 1px solid #b30000;
}

.alert-success {
  background-color: #e6f7e6;
  color: #2e7d32;
  border: 1px solid #2e7d32;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
}
.flash {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  text-align: center;
}

.flash.error {
  background-color: #f8d7da;
  color: #721c24;
}

.flash.success {
  background-color: #d4edda;
  color: #155724;
}

/* Footer */
.footer {
  background-color: #000;
  color: white;
  padding: 40px 0;
  font-family: 'Inter', sans-serif;
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  min-width: 250px;
  margin: 10px;
}

.footer-subtext {
  color: #6C6C6C;
  font-size: 14px;
  margin: 20px 0;
}

.footer-logo {
  height: 100px;
  margin-bottom: 15px;
}

.footer-label {
  font-size: 22px;
  color: #888;
  margin-bottom: 4px;
}

.footer-info {
  font-size: 32px;
  color: #fff;
  margin-bottom: 16px;
}


/* ✅ Адаптивность для средних экранов */
@media (max-width: 1250px) {
  .footer-label {
    font-size: 20px;
  }

  .footer-info {
    font-size: 24px;
  }

  .footer-logo {
    height: 80px;
  }
}


/* --- Админ панель --- */

.admin-link {
  color: #aaa;
  font-size: 14px;
  text-decoration: none;
}

.admin-link:hover {
  text-decoration: underline;
  color: #fff;
}
.request-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.request-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--color-main);
}

.request-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.request-id {
  font-weight: 600;
  color: var(--color-main);
}

.request-date {
  color: #666;
  font-size: 14px;
}

.request-body p {
  margin: 8px 0;
}

.no-requests {
  text-align: center;
  color: #666;
  margin: 50px 0;
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.pagination a,
.pagination strong {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #fff;
  color: #007bff;
  font-weight: 500;
  text-decoration: none;
}

.pagination strong {
  background: var(--color-main);
  color: white;
  border: none;
}

.filter-sort-panel {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  margin: 20px auto;
  max-width: 1000px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  flex: 1 1 200px;
  min-width: 180px;
}

.filter-group label {
  font-size: 0.9rem;
  color: #444;
}

.filter-group input[type="text"],
.filter-group input[type="date"],
.filter-group select {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  width: 100%;
}

.filter-actions {
  display: flex;
  gap: 10px;
}

.filter-actions .btn {
  padding: 10px 16px;
  font-size: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background-color: #0078d4;
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background-color: #005fa3;
}

.btn-secondary {
  background-color: #e0e0e0;
  color: #333;
  text-decoration: none;
  border: none;
  display: inline-block;
  text-align: center;
  padding: 10px 16px;
}

.btn-secondary:hover {
  background-color: #ccc;
}

@media (max-width: 992px) {
  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-group,
  .filter-actions {
    width: 100%;
  }

  .filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-actions .btn {
    width: 100%;
    margin-bottom: 10px;
  }
}
.request-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.request-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.requests-title {
  text-align: center;
  margin-bottom: 30px;
  color: var(--color-main);
  font-size: 36px;
}

/* --- Общие секции --- */
section {
  max-width: 100%;
  background: url("../img/hero-bg.jpg") no-repeat center center fixed;
  background-size: cover;
  margin: 10px auto;
  padding: 10px 32px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

section h2 {
  font-size: 42px;
  color: #0D9FCE;
  margin-bottom: 24px;
  text-align: center;
}


.message-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.message-card {
  background-color: #ffffff;
  border: 1px solid #E0E0E0;
  border-left: 5px solid #00764B;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
}

.message-card:hover {
  transform: translateY(-3px);
}

.message-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
  color: #004B32;
}

.msg-body {
  color: #333;
  font-size: 16px;
  line-height: 1.5;
}

.no-messages {
  text-align: center;
  font-size: 18px;
  color: #999;
}

.burger {
  display: none; /* скрыть бургер на ПК */
}

/* Скрыть мобильное меню на ПК */
.nav-mobile {
  display: none;
}

@media (max-width: 1200px) {
.nav a {	
font-size: 18px;
	}
.btn {
font-size: 18px;
	}
.btn-primary {
	font-size: 18px;
	}

section h2 {
  font-size: 36px;
  color: #0D9FCE;
  margin-bottom: 24px;
  text-align: center;
}
}