:root {
  --color-main: #0D9FCE;
  --color-accent: #00B0E0;
  --color-light: #F5F7FA;
  --color-dark: #222;
  --font-family: 'Inter', 'Nunito Sans';
}

html {
  scroll-behavior: smooth;
}

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);
  /* Выравнивание всех частей по высоте */
  display: flex;
  flex-direction: column;
}
.device-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin-bottom: 10px;
}
.device-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.device-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 12px;
}
.device-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  text-align: left;
  flex-grow: 1; /* занимает оставшееся место, прижимая кнопку вниз */
}
.device-specs li {
  font-size: 13px;
  color: #555;
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}
.device-specs li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-main);
  font-weight: 700;
}

/* Coverage */
.coverage {
  padding: 20px 0;
  background: white;
}
.coverage-map {
  background: #F5F7FA;
  border: 2px dashed #D5DEE3;
  border-radius: 24px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px;
}
.coverage-placeholder-icon {
  width: 48px;
  height: 48px;
  color: var(--color-main);
}
.coverage-placeholder {
  color: #667085;
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  margin: 0;
}

/* News page */
.news-page {
  padding: 160px 0 60px;
  background-color: #F9FAFB;
  text-align: center;
  min-height: 50vh;
}

.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;
  align-self: center; /* кнопка по центру */
  margin-top: auto;   /* всегда у нижнего края */
}

.device-card .btn.btn-primary:hover {
  background: linear-gradient(92.59deg, #075068 0.93%, #0D9FCE 99.57%);
  transform: scale(1.05);
}

/* 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;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 30px 0;
}

.form-alt-contact {
  flex-basis: 100%;
  margin: 0;
  font-size: 14px;
  color: #555;
}

.form-alt-contact a {
  color: var(--color-main);
  font-weight: 500;
  text-decoration: none;
}

.form-alt-contact a:hover {
  text-decoration: underline;
}

.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: #075068;
  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: 64px;
  margin-bottom: 15px;
}

.footer-label {
  font-size: 14px;
  color: #9FC1CC;
  margin-bottom: 4px;
}

.footer-info {
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
}
.footer-note {
  font-size: 13px;
  color: #B8D4DE;
}
.footer-consult .footer-label {
  margin-bottom: 12px;
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-icon {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 4px;
}
.footer-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.2s, color 0.2s;
}
.footer-link:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.footer-social-icons {
  display: flex;
  gap: 16px;
}
.footer-social-link {
  display: inline-flex;
  color: inherit;
  transition: color 0.2s;
}
.footer-social-link .footer-icon {
  width: 26px;
  height: 26px;
  margin-top: 0;
}
.footer-social-link:hover {
  color: var(--color-accent);
}


/* ✅ Адаптивность для средних экранов */
@media (max-width: 1250px) {
  .footer-logo {
    height: 56px;
  }
}


/* --- Хедер: кнопки действий --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-header-btn {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 30px;
  text-decoration: none;
}

.btn-danger {
  background: #dc3545;
  color: white;
  display: inline-block;
}

.btn-danger:hover {
  background: #c82333;
  color: white;
}

/* --- Админ панель --- */

.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;
}

/* ================== Кнопка "Наверх" ================== */
#scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(92.59deg, #0D9FCE 0.93%, #075068 99.57%);
  color: white;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.2s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
#scroll-top.visible {
  opacity: 1;
  visibility: visible;
}
#scroll-top:hover {
  transform: translateY(-3px);
}

/* ================== Анимация появления секций ================== */
.js-animations section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js-animations .hero {
  /* Hero всегда виден */
  opacity: 1;
  transform: none;
}
.js-animations section.visible {
  opacity: 1;
  transform: 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;
}
}