* {
  box-sizing: border-box;
}

.delivery-page {
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.page-header {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(55, 65, 81, 0.3);
  border-radius: 20px;
  margin: 20px auto 40px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.header-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 0;
}

.header-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #22c55e 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.2s forwards;
  letter-spacing: -0.02em;
}

/* Информация в шапке */
.header-info {
  max-width: 800px;
  margin: 0 auto 32px;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.4s forwards;
}

.info-text {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  color: #60a5fa;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  position: relative;
}

.info-text::before {
  content: "💡";
  position: absolute;
  left: 16px;
  top: 16px;
  font-size: 1.1rem;
}

.info-text {
  padding-left: 48px;
}

/* Навигационные кнопки */
.header-navigation {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s ease-out 0.6s forwards;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.courier-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.courier-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.transport-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.transport-btn:hover {
  background: linear-gradient(135deg, #e08e0b 0%, #c2670a 100%);
}

.pickup-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
}

.pickup-btn:hover {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.nav-icon {
  font-size: 1.1rem;
}

/* Основной контент */
.main-content {
  padding: 0;
}

/* Анимации */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Способы доставки */
.delivery-methods {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
}

.delivery-card {
  background: rgba(42, 42, 42, 0.8);
  border: 1px solid #374151;
  border-radius: 16px;
  padding: 24px;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  opacity: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 100px;
}

.delivery-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  transition: left 0.5s ease;
}

.courier-card {
  animation: slideInUp 0.8s ease-out 0.6s forwards;
  border-left: 3px solid #3b82f6;
}

.courier-card::before {
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.russia-card {
  animation: slideInUp 0.8s ease-out 0.8s forwards;
  border-left: 3px solid #f59e0b;
}

.russia-card::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.pickup-card {
  animation: slideInUp 0.8s ease-out 1s forwards;
  border-left: 3px solid #22c55e;
}

.pickup-card::before {
  background: linear-gradient(90deg, #22c55e, #10b981);
}

.delivery-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: rgba(42, 42, 42, 0.9);
}

.delivery-card:hover::before {
  left: 0;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.delivery-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.card-icon.pickup {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.card-icon.courier {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.card-icon.russia {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.card-icon.terms {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0;
  flex: 1;
}

.card-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-badge.free {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
}

.card-badge.paid {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.card-badge.prepaid {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.card-content {
  color: #cbd5e1;
}

.card-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #e2e8f0;
}

.delivery-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(55, 65, 81, 0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.info-item:hover {
  background: rgba(55, 65, 81, 0.5);
  transform: translateX(5px);
}

.info-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Ссылка на адрес */
.address-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.address-link:hover {
  color: #22c55e;
  text-decoration: underline;
}

/* Города доставки */
.delivery-cities {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(55, 65, 81, 0.5);
}

.cities-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cities-title::before {
  content: "🏙️";
  font-size: 1.2rem;
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.city-group {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  padding: 12px;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.city-group:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.region-name {
  font-weight: 600;
  color: #60a5fa;
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.region-flag {
  font-size: 1rem;
}

.cities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.city-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.8rem;
  color: #cbd5e1;
  transition: all 0.3s ease;
}

.city-item:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Плашка предоплаты в самом низу блока */
.prepaid-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  width: 100%;
  border: none;
  cursor: default;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
  margin-top: auto;
}

/* Мобильные спойлеры */
.mobile-spoiler {
  display: none;
}

.spoiler-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 8px;
  position: relative;
}

.spoiler-header.prepaid::after {
  content: "Предоплата";
  position: absolute;
  top: 6px;
  right: 40px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spoiler-header:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

.spoiler-header.active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom: none;
}

.spoiler-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #60a5fa;
  font-size: 0.9rem;
}

.spoiler-arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: #60a5fa;
}

.spoiler-header.active .spoiler-arrow {
  transform: rotate(180deg);
}

.spoiler-content {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 12px;
  margin-bottom: 8px;
  display: none;
}

.spoiler-content.active {
  display: block;
}

/* Транспортные компании */
.transport-companies {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(55, 65, 81, 0.5);
}

.companies-title {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.companies-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.company-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.company-item:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
}

.company-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* Сроки доставки */
.delivery-terms {
  background: rgba(42, 42, 42, 0.8);
  border: 1px solid #374151;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: slideInUp 0.8s ease-out 1.2s forwards;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.terms-content {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.term-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: rgba(55, 65, 81, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.term-item:hover {
  background: rgba(55, 65, 81, 0.3);
  transform: translateX(5px);
}

.term-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.term-icon.crimea {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.term-icon.russia {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.term-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.term-info p {
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .header-title {
    font-size: 2.2rem;
  }

  .header-navigation {
    gap: 12px;
  }

  .nav-button {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .delivery-card {
    padding: 20px;
    border-radius: 12px;
  }

  .card-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .card-title {
    font-size: 1.2rem;
  }

  /* Показываем мобильные спойлеры */
  .cities-grid {
    display: none;
  }

  .mobile-spoiler {
    display: block;
  }

  .companies-list {
    grid-template-columns: 1fr;
  }

  .term-item {
    flex-direction: column;
    text-align: center;
  }

  .term-icon {
    align-self: center;
  }
}

@media (max-width: 480px) {
  .header-title {
    font-size: 1.8rem;
  }

  .header-navigation {
    gap: 8px;
  }

  .nav-button {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    font-size: 0.8rem;
    justify-content: center;
  }

  .delivery-card {
    padding: 16px;
  }

  .card-header {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
  }

  .card-badge {
    order: 2;
  }

  .card-title {
    order: 3;
    width: 100%;
  }

  .info-text {
    font-size: 0.9rem;
    padding: 14px 14px 14px 44px;
  }
}
