﻿.pack-time-section {
  padding: 24px 0 8px;
  background-image: url(../img/bacgroundfooter.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.container-pack-time {
  width: 100%;
  text-align: center;
  padding: 0 10px;
}

.name-pack-time {
  text-align: center;
  margin-bottom: 16px;
}

.big-tabs {
  margin-bottom: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.big-tab-button {
  background: #273555;
  border: none;
  border-radius: 5px;
  padding: 10px 16px;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  transition: background 0.25s ease;
}

.big-tab-button:hover {
  background: #2e4a6d;
}

.big-tab-button.active {
  background: #148eff;
}

.big-tab-content {
  display: none;
}

.big-tab-content.active {
  display: block;
}

.time-remaining {
  text-align: center;
  margin-bottom: 10px;
  font-weight: 700;
  color: #fff;
  font-size: 15px;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
  gap: 6px;
  flex-wrap: wrap;
}

.tab-button {
  background: #1b2e47;
  border: none;
  border-radius: 5px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.25s ease;
  color: #fff;
  font-size: 14px;
}

.tab-button:hover {
  background: #2e4a6d;
}

.tab-button.active {
  background: #148eff;
}

.slider-wrapper {
  position: relative;
  width: min(100%, 980px);
  margin: 0 auto;
  overflow: hidden;
  padding: 14px 0 10px;
}

.slider-track {
  display: flex;
  transition: transform 0.45s ease;
  touch-action: pan-y;
}

.slide {
  width: 100%;
  flex-shrink: 0;
  padding: 0 44px;
}

.slide h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.25;
  text-align: center;
}

.card-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.card {
  border-radius: 5px;
  padding: 0;
}

.card h4 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 17px;
}

.card-list {
  min-height: 172px;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 6px;
  padding: 12px;
  background: #161a24;
  border-radius: 5px;
  list-style: none;
  text-align: center;
}

.card-list li {
  font-size: 14px;
  line-height: 1.32;
  word-break: break-word;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #15171e;
  border: 1px solid #85868a;
  color: #fff;
  width: 40px;
  height: 100px;
  cursor: pointer;
  text-align: center;
  border-radius: 5px;
  user-select: none;
  transition: background 0.25s ease;
  z-index: 10;
}

.slider-btn:hover {
  background: #3c5f95;
}

.prev-btn {
  left: 0;
}

.next-btn {
  right: 0;
}

@media (max-width: 900px) {
  .container-pack-time {
    padding: 0 8px;
  }

  .slide {
    padding: 0 36px;
  }

  .slide h3 {
    font-size: 20px;
  }

  .card-wrap {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .card-list {
    min-height: 96px;
  }

  .slider-btn {
    width: 32px;
    height: 72px;
  }
}

@media (max-width: 640px) {
  .pack-time-section {
    padding: 18px 0 6px;
  }

  .big-tabs {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 0 2px 4px;
  }

  .big-tab-button {
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: 13px;
  }

  .time-remaining {
    font-size: 14px;
  }

  .tabs {
    justify-content: center;
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 0 2px 6px;
  }

  .tab-button {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 8px 11px;
  }

  .slider-wrapper {
    padding: 8px 0 6px;
  }

  .slide {
    padding: 0 2px;
  }

  .slide h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .card h4 {
    font-size: 15px;
    margin-bottom: 6px;
  }

  .card-list {
    padding: 10px;
    gap: 5px;
  }

  .card-list li {
    font-size: 13px;
  }

  .slider-btn {
    display: none;
  }
}

@media (max-width: 420px) {
  .name-pack-time {
    margin-bottom: 10px;
  }

  .slide h3 {
    font-size: 16px;
  }

  .card h4 {
    font-size: 14px;
  }

  .card-list li {
    font-size: 12.5px;
  }
}
