@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300;14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #eef2f5;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  padding-left: 20px;
  padding-right: 20px;
}

.header {
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  border-radius: 60px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  height: auto;
  width: 180px;
  display: block;
}

.enter-btn {
  background-color: #d4dee5;
  color: #1e2a3a;
  text-decoration: none;
  padding: 8px 26px;
  border-radius: 40px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.enter-btn:hover {
  background-color: #b9c4ce;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logout-btn {
  background-color: #e03a3a;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 60px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.logout-btn:hover {
  background-color: #b02a2a;
}

.services {
  margin: 60px auto 0;
  max-width: 1200px;
  padding: 0 20px;
}

.services-title {
  font-size: 32px;
  font-weight: 700;
  color: #1e2a3a;
  text-align: center;
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.service-card {
  background: white;
  border-radius: 28px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1e2a3a;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.5;
  color: #5f6c72;
}

.delivery-types {
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 0 20px;
}

.delivery-title {
  font-size: 28px;
  font-weight: 600;
  color: #1e2a3a;
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: -0.3px;
}

/* НА КОМПЬЮТЕРЕ — 3 КОЛОНКИ ОДИНАКОВОЙ ВЫСОТЫ */
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* СТОЛБЕЦ С ДВУМЯ БЛОКАМИ (Что привезти + Рабочие) */
.delivery-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

.delivery-stack .delivery-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.delivery-stack .delivery-card ul {
  flex: 1;
}

/* НА ПЛАНШЕТАХ И ТЕЛЕФОНАХ — 1 КОЛОНКА */
@media (max-width: 1024px) {
  .delivery-grid {
    grid-template-columns: 1fr;
  }
  
  .delivery-stack {
    gap: 0;
  }
  
  .delivery-stack .delivery-card:first-child {
    margin-bottom: 24px;
  }
  
  .delivery-stack .delivery-card {
    flex: none;
  }
}

.delivery-card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.delivery-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.delivery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.delivery-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #ea580c;
  margin-bottom: 16px;
}

.delivery-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.delivery-card li {
  font-size: 15px;
  font-weight: 500;
  color: #253235;
  margin-bottom: 12px;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.delivery-card li::before {
  content: "•";
  color: #ea580c;
  font-weight: 700;
  font-size: 18px;
  position: absolute;
  left: 0;
  top: 0;
}

.advantages {
  margin-top: 60px;
}

.advantages-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.advantages-title {
  font-size: 32px;
  font-weight: 700;
  color: #1e2a3a;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.3px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}

.advantage-card {
  background: #1e2a3a;
  border-radius: 32px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.advantage-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.advantage-card:hover {
  transform: translateY(-8px);
  background: #2c3e42;
  border-color: #ea580c;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.advantage-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: inline-block;
}

.advantage-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #ea580c;
  margin-bottom: 12px;
}

.advantage-card p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.geography {
  margin-top: 80px;
  margin-bottom: 60px;
}

.geography-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.geography-title {
  font-size: 32px;
  font-weight: 700;
  color: #1e2a3a;
  margin-bottom: 12px;
}

.geography-subtitle {
  font-size: 18px;
  color: #5f6c72;
  margin-bottom: 48px;
}

.geography-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.geo-card {
  background: white;
  border-radius: 32px;
  padding: 32px 24px;
  flex: 1;
  min-width: 260px;
  max-width: 320px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.geo-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.geo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15);
  border-bottom: 3px solid #ea580c;
}

.geo-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.geo-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1e2a3a;
  margin-bottom: 12px;
}

.geo-card p {
  font-size: 14px;
  line-height: 1.5;
  color: #5f6c72;
}

.footer {
  background-color: #1e2a3a;
  border-radius: 42px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin: 60px auto 0;
  padding: 32px 32px 24px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-contacts p {
  margin: 6px 0;
  font-size: 14px;
  color: #e0e0e0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #cccccc;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ea580c;
}

.footer-copyright {
  text-align: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #334155;
  font-size: 12px;
  color: #8a9aaa;
}

.footer-map-attribution {
  font-size: 9px;
  margin-top: 8px;
  text-align: center;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.footer-map-attribution:hover {
  opacity: 1;
}

.footer-map-attribution a {
  color: #8a9aaa;
  text-decoration: none;
}

.footer-map-attribution a:hover {
  color: #ea580c;
  text-decoration: underline;
}

.page-title {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 20px;
  text-align: left;
}

.page-title h1 {
  font-size: 28px;
  color: #1e2a3a;
  font-weight: 600;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #1e2a3a;
  margin: 40px 0 24px;
  text-align: center;
}

.announcements-grid, 
.requests-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .announcements-grid,
  .requests-grid {
    grid-template-columns: 1fr;
  }
}

.announcement-card {
  background: white;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 1px solid rgba(234, 88, 12, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.announcement-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.announcement-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ea580c;
  margin-bottom: 16px;
  border-left: 4px solid #ea580c;
  padding-left: 12px;
}

.announcement-content {
  flex: 1;
}

.announcement-details p {
  font-size: 15px;
  color: #2c3e42;
  margin-bottom: 10px;
  line-height: 1.5;
  word-wrap: break-word;
}

.announcement-details p strong {
  color: #1e2a3a;
  font-weight: 600;
  font-size: 15px;
}

.executor-info {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eef2f5;
}

.executor-info p {
  font-size: 14px;
  color: #475569;
  margin-bottom: 6px;
  word-wrap: break-word;
}

.executor-info p strong {
  color: #1e293b;
  font-weight: 600;
  font-size: 14px;
}

.empty-requests {
  text-align: center;
  color: #8a9aaa;
  padding: 40px;
  background: #f9fafb;
  border-radius: 24px;
  grid-column: 1 / -1;
}

.constructor-wrapper {
  margin-bottom: 0;
}

.category-card {
  background: white;
  border-radius: 32px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  cursor: pointer;
  font-weight: 600;
  font-size: 20px;
  background: white;
}

.category-header:hover {
  background: #fcf7f0;
}

.category-icon {
  font-size: 28px;
  margin-right: 12px;
}

.category-title {
  flex: 1;
}

.arrow {
  font-size: 22px;
  transition: transform 0.2s;
  color: #ea580c;
}

.category-content {
  display: none;
  padding: 20px 28px 28px;
  background: #fefbf8;
  border-top: 1px solid #f0e7dd;
}

.category-content.open {
  display: block;
}

.subcategory {
  margin-bottom: 24px;
}

.subcategory h4 {
  font-weight: 600;
  margin-bottom: 12px;
  color: #2c3e42;
}

.options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.options-grid button {
  background: #eef2f5;
  border: none;
  padding: 8px 18px;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  white-space: nowrap;
}

.options-grid button.selected {
  background: #ea580c;
  color: white;
}

.drill-diameter-section h4,
.drill-length-section h4 {
  font-weight: 600;
  margin-bottom: 12px;
  color: #2c3e42;
  font-size: 15px;
}

.drill-diameter-section .options-grid,
.drill-length-section .options-grid {
  margin-top: 0;
}

.category-card[data-category="extra"] .subcategory h4,
.category-card[data-category="workers"] .subcategory h4 {
  font-weight: 600;
  margin-bottom: 12px;
  color: #2c3e42;
  font-size: 15px;
}

.request-address-wrapper {
  margin: 32px 0;
}

.address-card {
  background: white;
  border-radius: 32px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

#map {
  height: 280px;
  width: 100%;
  border-radius: 24px;
  z-index: 1;
  transition: all 0.3s ease;
}

#map.custom-mode {
  opacity: 0.5;
  filter: grayscale(0.3);
  pointer-events: none;
}

.custom-address-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 15px;
  background: #fefbf8;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.2s;
}

.custom-address-checkbox:hover {
  background: #fcf0e6;
}

.custom-address-checkbox input {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #ea580c;
}

.custom-address-checkbox label {
  font-size: 14px;
  font-weight: 500;
  color: #1e2a3a;
  cursor: pointer;
  flex: 1;
}

.custom-address-checkbox .hint {
  font-size: 12px;
  color: #8a9aaa;
}

.search-hint {
  font-size: 11px;
  color: #8a9aaa;
  margin-top: 8px;
  text-align: center;
}

.coord-status {
  font-size: 11px;
  color: #10b981;
  margin-top: 6px;
  text-align: center;
  display: none;
}

.coord-status.active {
  display: block;
}

.address-input label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #2c3e42;
}

.address-input input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #d4dee5;
  border-radius: 60px;
  font-size: 16px;
  outline: none;
  transition: 0.2s;
}

.address-input input:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

.address-input input.error {
  border-color: #e03a3a;
  background-color: #ffe5e5;
}

.error-message {
  color: #e03a3a;
  font-size: 12px;
  margin-top: 6px;
  margin-left: 16px;
}

.form-message {
  text-align: center;
  margin: 20px 0;
  font-weight: 500;
}

.submit-request-btn {
  background-color: #ea580c;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 60px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  display: block;
  margin: 20px auto;
  width: 100%;
  max-width: 300px;
}

.submit-request-btn:hover {
  background-color: #c2410c;
}

.profile-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #1e2a3a;
  transition: 0.2s;
}

.profile-btn:hover {
  color: #ea580c;
}

.profile-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.profile-card {
  background: white;
  border-radius: 32px;
  width: 340px;
  max-width: 90%;
  overflow: hidden;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.2);
}

.profile-header {
  background: linear-gradient(135deg, #1e2a3a 0%, #2c3e42 100%);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  color: white;
}

.close-profile {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 24px;
  cursor: pointer;
  color: white;
  opacity: 0.7;
  transition: 0.2s;
}

.close-profile:hover {
  opacity: 1;
}

.profile-avatar {
  font-size: 56px;
  background: rgba(255, 255, 255, 0.2);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.profile-header h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.profile-body {
  padding: 24px;
}

.profile-field {
  padding: 10px 0;
  border-bottom: 1px solid #eef2f5;
  font-size: 14px;
  color: #1e2a3a;
}

.profile-field strong {
  color: #ea580c;
  width: 70px;
  display: inline-block;
}

.profile-error {
  text-align: center;
  color: #e03a3a;
  padding: 20px;
}

.profile-loader {
  text-align: center;
  padding: 30px;
  color: #8a9aaa;
}

.take-order-btn, .complete-order-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.take-order-btn:hover, .complete-order-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.delete-announcement-btn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.delete-announcement-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.delete-request-btn {
  background: none;
  border: 1px solid #fecaca;
  color: #e03a3a;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 40px;
  transition: all 0.2s ease;
  width: 100%;
}

.delete-request-btn:hover {
  background: #ffe5e5;
  border-color: #e03a3a;
}

.confirm-complete-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.confirm-complete-btn:hover {
  background: #059669;
}

.request-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eef2f5;
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.status-active {
  background: #10b981;
  color: white;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.status-taken {
  background: #f59e0b;
  color: white;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.status-pending {
  background: #8b5cf6;
  color: white;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.status-completed {
  background: #6b7280;
  color: white;
  padding: 4px 12px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

/* АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНОВ */
@media (max-width: 768px) {
  body {
    padding-left: 12px;
    padding-right: 12px;
  }

  .header {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 40px;
  }

  .logo {
    width: 130px;
  }

  .enter-btn {
    padding: 6px 20px;
    font-size: 14px;
  }

  .services-grid,
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .services-title,
  .delivery-title,
  .advantages-title,
  .geography-title {
    font-size: 24px;
    margin: 30px 0 20px;
  }

  .geography-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .geography-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .geo-card {
    min-width: auto;
    max-width: 100%;
    width: 100%;
  }

  .page-title {
    text-align: center;
  }

  .page-title h1 {
    font-size: 22px;
  }

  .container {
    padding: 0 12px;
    width: 100%;
  }

  .section-title {
    font-size: 22px;
    margin: 30px 0 20px;
  }

  .category-header {
    padding: 14px 18px;
    font-size: 18px;
  }

  .category-icon {
    font-size: 24px;
  }

  .category-content {
    padding: 12px 16px 18px;
  }

  .subcategory h4 {
    font-size: 15px;
  }

  .options-grid {
    gap: 10px;
  }

  .options-grid button {
    padding: 10px 14px;
    font-size: 13px;
  }

  .address-card {
    padding: 15px;
  }

  #map {
    height: 500px;
  }

  .custom-address-checkbox {
    padding: 8px 12px;
    margin: 8px 0;
  }

  .custom-address-checkbox label {
    font-size: 14px;
  }

  .search-hint {
    font-size: 10px;
  }

  .address-input input {
    padding: 12px 16px;
    font-size: 16px;
    width: 100%;
  }

  .submit-request-btn {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100%;
    width: 100%;
  }

  .profile-card {
    width: 95%;
  }

  .profile-avatar {
    width: 70px;
    height: 70px;
    font-size: 48px;
  }

  .profile-header h3 {
    font-size: 18px;
  }

  .profile-field {
    font-size: 13px;
  }

  .profile-field strong {
    width: 60px;
  }

  .footer {
    padding: 24px 20px 20px;
    border-radius: 32px;
    margin-top: 40px;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }

  .footer-contacts p {
    justify-content: center;
    font-size: 13px;
  }

  .footer-copyright {
    font-size: 11px;
    margin-top: 20px;
  }
}

@media (max-width: 480px) {
  body {
    padding-left: 10px;
    padding-right: 10px;
  }

  .header {
    padding: 10px 16px;
  }

  .logo {
    width: 110px;
  }

  .enter-btn {
    padding: 5px 16px;
    font-size: 13px;
  }
  
  .logout-btn {
    padding: 6px 14px;
    font-size: 12px;
  }
  
  .profile-btn {
    font-size: 24px;
  }
  
  .category-header {
    padding: 12px 14px;
    font-size: 16px;
  }
  
  .options-grid button {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .submit-request-btn {
    padding: 10px 16px;
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  #map {
    height: 460px;
  }
  
  .options-grid button {
    padding: 6px 10px;
    font-size: 11px;
  }
}

.drill-diameter-section, .drill-length-section {
  margin-top: 16px;
}

.category-card[data-category="extra"] .category-header,
.category-card[data-category="workers"] .category-header {
  background: #fefbf8;
}

.category-card[data-category="extra"] .category-header:hover,
.category-card[data-category="workers"] .category-header:hover {
  background: #fcf7f0;
}

.filter-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.filter-select {
  padding: 8px 16px;
  border: 1px solid #d4dee5;
  border-radius: 40px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}

.filter-select:hover {
  border-color: #ea580c;
}

.filter-select:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.1);
}

@media (max-width: 768px) {
  .filter-bar {
    justify-content: stretch;
  }
  .filter-select {
    width: 100%;
  }
}
/* ===== КНОПКА ВЫЙТИ ИЗ ВСЕХ УСТРОЙСТВ ===== */
.logout-all-field {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eef2f5;
}

.logout-all-btn {
    background: #e03a3a;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.logout-all-btn:hover {
    background: #b02a2a;
}
/* ===== УВЕДОМЛЕНИЕ О НОВОМ УСТРОЙСТВЕ ===== */
.security-alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}
.security-alert-content {
    background: white;
    border-radius: 28px;
    max-width: 380px;
    width: 90%;
    overflow: hidden;
    border-top: 4px solid #f59e0b;
}
.security-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #fef3c7;
}
.security-alert-title {
    font-weight: 700;
    font-size: 18px;
    color: #b45309;
}
.security-alert-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #b45309;
}
.security-alert-body {
    padding: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #1e2a3a;
}
.security-alert-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #f9fafb;
}
.security-alert-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}
.security-alert-btn.change-pwd {
    background: #e03a3a;
    color: white;
    border: none;
}
.security-alert-btn.change-pwd:hover {
    background: #b02a2a;
}
.security-alert-btn.ok {
    background: #eef2f5;
    color: #1e2a3a;
    border: none;
}
.security-alert-btn.ok:hover {
    background: #d4dee5;
}