/* ===================================================
   СТИЛИ ДЛЯ КАТЕГОРИИ "ТРАНСФЕР ВОКЗАЛ" - TAXI755
   Адаптированы из стилей аэропорта с железнодорожной темой
   =================================================== */

.transfer-station-category {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #ffffff;
}

/* БЛОК ВВЕДЕНИЯ - ЖЕЛЕЗНОДОРОЖНАЯ ТЕМА */
.transfer-intro {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 25px;
  padding: 50px 40px;
  margin-bottom: 50px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  position: relative;
  overflow: hidden;
}

/* Верхняя полоска с эффектом движения поезда */
.transfer-intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    #ffd700 0%,
    #ff6b35 25%,
    #28a745 50%,
    #ffd700 75%,
    #ff6b35 100%
  );
  background-size: 400% 100%;
  animation: trainMovement 4s ease-in-out infinite;
}

@keyframes trainMovement {
  0%,
  100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 200% 50%;
  }
  75% {
    background-position: 300% 50%;
  }
}

.transfer-intro-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 50px;
  align-items: center;
}

.transfer-intro-text p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 25px;
  text-align: justify;
}

.transfer-intro-text p:first-child {
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
}

.transfer-intro-text strong {
  color: #ff6b35;
  font-weight: 700;
}

.transfer-intro-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.transfer-intro-image:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 60px rgba(255, 107, 53, 0.25);
}

.transfer-intro-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

/* КАРТОЧКИ ТРАНСФЕРОВ - ВОКЗАЛЬНАЯ ТЕМА */
.transfer-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.transfer-card {
  background: #ffffff;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  transform: translateY(0);
}

.transfer-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 60px rgba(255, 107, 53, 0.25);
  border-color: #ff6b35;
}

.card-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 25px 25px 20px 25px;
  border-bottom: 3px solid #ff6b35;
  position: relative;
}

/* Железнодорожные рельсы в заголовке */
.card-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #ff6b35 0%,
    #ffd700 25%,
    #28a745 50%,
    #ff6b35 75%,
    #ffd700 100%
  );
  background-size: 200% 100%;
  animation: railsMovement 3s ease-in-out infinite;
}

@keyframes railsMovement {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.card-title h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-subtitle {
  font-size: 0.9rem;
  color: #666;
  background: rgba(255, 107, 53, 0.1);
  padding: 4px 12px;
  border-radius: 15px;
  display: inline-block;
  font-weight: 500;
}

.card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.card-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 107, 53, 0.1) 0%,
    transparent 50%,
    rgba(40, 167, 69, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.transfer-card:hover .card-image::before {
  opacity: 1;
}

.card-description {
  padding: 25px;
  background: #ffffff;
}

.card-description p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 0;
  text-align: justify;
}

.card-footer {
  padding: 20px 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: center;
}

.toggle-button {
  background: linear-gradient(135deg, #ff6b35 0%, #ffa500 100%);
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
  min-width: 140px;
  text-decoration: none;
}

.toggle-button:hover {
  background: linear-gradient(135deg, #e55a2b 0%, #ff8c00 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
  color: white;
  text-decoration: none;
}

.toggle-button.active {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.toggle-button i {
  transition: transform 0.3s ease;
}

.toggle-button.active i {
  transform: rotate(180deg);
}

.card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.card-content.expanded {
  max-height: 800px;
}

.content-inner {
  padding: 30px 25px;
}

.content-inner p {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
}

.content-inner strong {
  color: #ff6b35;
  font-weight: 600;
}

/* ЦВЕТОВЫЕ СХЕМЫ КАРТОЧЕК - ЖЕЛЕЗНОДОРОЖНАЯ ТЕМА */
.transfer-card.to-station .toggle-button {
  background: linear-gradient(135deg, #ff6b35 0%, #ffa500 100%);
  color: white;
}

.transfer-card.to-station:hover {
  box-shadow: 0 25px 60px rgba(255, 107, 53, 0.25);
  border-color: #ff6b35;
}

.transfer-card.airport-to-station .toggle-button {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.transfer-card.airport-to-station:hover {
  box-shadow: 0 25px 60px rgba(40, 167, 69, 0.25);
  border-color: #28a745;
}

.transfer-card.station-to-airport .toggle-button {
  background: linear-gradient(135deg, #007bff 0%, #17a2b8 100%);
  color: white;
}

.transfer-card.station-to-airport:hover {
  box-shadow: 0 25px 60px rgba(0, 123, 255, 0.25);
  border-color: #007bff;
}

.transfer-card.minivan-to-station .toggle-button {
  background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
  color: white;
}

.transfer-card.minivan-to-station:hover {
  box-shadow: 0 25px 60px rgba(111, 66, 193, 0.25);
  border-color: #6f42c1;
}

/* КОНТЕНТНЫЕ БЛОКИ - ЖЕЛЕЗНОДОРОЖНАЯ СТИЛИСТИКА */
.content-section {
  margin: 60px 0;
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #ff6b35;
}

.content-section h2 {
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
  padding-bottom: 20px;
  font-weight: 600;
}

.content-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #ff6b35, #ffa500);
  border-radius: 2px;
}

.content-section p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 20px;
  text-align: justify;
}

.content-section p strong {
  color: #ff6b35;
  font-weight: 600;
}

.content-section ul {
  margin: 25px 0;
  padding-left: 0;
}

.content-section li {
  list-style: none;
  padding: 8px 0 8px 30px;
  position: relative;
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 10px;
}

/* Иконка поезда вместо галочки */
.content-section li::before {
  content: "🚂";
  position: absolute;
  left: 0;
  font-size: 1.1rem;
}

.content-section li strong {
  color: #ff6b35;
  font-weight: 600;
}

/* CTA СЕКЦИЯ - ЖЕЛЕЗНОДОРОЖНАЯ ТЕМА */
.cta-section {
  background: linear-gradient(135deg, #ff6b35 0%, #ffa500 100%);
  color: white;
  padding: 50px 40px;
  border-radius: 25px;
  text-align: center;
  margin: 50px 0;
  position: relative;
  overflow: hidden;
}

/* Эффект движения поезда */
.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: trainShimmer 4s infinite;
}

@keyframes trainShimmer {
  0% {
    transform: rotate(45deg) translate(-100%, -100%);
  }
  100% {
    transform: rotate(45deg) translate(100%, 100%);
  }
}

.cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.95;
  position: relative;
  z-index: 2;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.btn-cta {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 15px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: white;
  text-decoration: none;
}

/* ЛОГОТИП */
.logo-section {
  text-align: center;
  margin: 50px 0;
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 20px;
}

.logo-section img:hover {
  transform: scale(1.05);
}

/* СПЕЦИАЛЬНЫЕ ЭФФЕКТЫ ДЛЯ ЖЕЛЕЗНОДОРОЖНОЙ ТЕМЫ */
.railway-line {
  height: 4px;
  background: linear-gradient(
    90deg,
    #8b4513 0%,
    #8b4513 10%,
    #a0522d 10%,
    #a0522d 90%,
    #8b4513 90%,
    #8b4513 100%
  );
  background-size: 20px 4px;
  margin: 20px 0;
  border-radius: 2px;
  position: relative;
}

.railway-line::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: #333;
  transform: translateY(-50%);
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
  .transfer-intro {
    padding: 30px 25px;
    margin-bottom: 30px;
  }

  .transfer-intro-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .transfer-intro-text {
    order: 2;
  }

  .transfer-intro-image {
    order: 1;
  }

  .transfer-cards-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .content-section {
    padding: 30px 25px;
    margin: 40px 0;
  }

  .content-section h2 {
    font-size: 1.8rem;
  }

  .cta-section {
    padding: 40px 25px;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-cta {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .transfer-station-category {
    padding: 15px;
  }

  .transfer-intro {
    padding: 25px 20px;
    border-radius: 20px;
  }

  .card-footer {
    padding: 18px 20px;
  }

  .toggle-button {
    padding: 10px 25px;
    font-size: 0.9rem;
    min-width: 130px;
  }

  .content-section li::before {
    font-size: 1rem;
  }
}

/* ДОПОЛНИТЕЛЬНЫЕ АНИМАЦИИ ДЛЯ ЖЕЛЕЗНОДОРОЖНОЙ ТЕМЫ */
@keyframes trainArrival {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.transfer-card {
  animation: trainArrival 0.6s ease-out;
}

.transfer-card:nth-child(1) {
  animation-delay: 0.1s;
}

.transfer-card:nth-child(2) {
  animation-delay: 0.2s;
}

.transfer-card:nth-child(3) {
  animation-delay: 0.3s;
}

.transfer-card:nth-child(4) {
  animation-delay: 0.4s;
}

.station-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.station-card {
  background: #ffffff;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  transform: translateY(0);
}

.station-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 60px rgba(255, 215, 0, 0.25);
  border-color: #ffd700;
}

.station-card .card-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 25px 25px 20px 25px;
  border-bottom: 3px solid #ffd700;
  position: relative;
}

/* Анимированные авиалинии в заголовке */
.station-card .card-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    #ffd700 0%,
    #007bff 25%,
    #28a745 50%,
    #ffd700 75%,
    #ffa500 100%
  );
  background-size: 300% 100%;
  animation: airlineMovement 3s ease-in-out infinite;
}

@keyframes airlineMovement {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.station-card .card-title h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.3;
}

.station-card .card-subtitle {
  font-size: 0.9rem;
  color: #666;
  background: rgba(255, 215, 0, 0.1);
  padding: 4px 12px;
  border-radius: 15px;
  display: inline-block;
  font-weight: 500;
}

.station-card .card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.station-card .card-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 215, 0, 0.1) 0%,
    transparent 50%,
    rgba(255, 165, 0, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.station-card:hover .card-image::before {
  opacity: 1;
}

.station-card .card-description {
  padding: 25px;
  background: #ffffff;
}

.station-card .card-description p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 0;
  text-align: justify;
}

.station-card .card-footer {
  padding: 20px 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: center;
}

.station-card .order-button {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.25);
  min-width: 140px;
  text-decoration: none;
}

.station-card .order-button:hover {
  background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.35);
  color: #333;
  text-decoration: none;
}

/* ЦВЕТОВЫЕ СХЕМЫ ДЛЯ РАЗНЫХ ТИПОВ КАРТОЧЕК */
.station-card.economy .order-button {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.station-card.economy:hover {
  box-shadow: 0 25px 60px rgba(40, 167, 69, 0.25);
  border-color: #28a745;
}

.station-card.comfort .order-button {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  color: #333;
}

.station-card.comfort:hover {
  box-shadow: 0 25px 60px rgba(255, 215, 0, 0.25);
  border-color: #ffd700;
}

.station-card.minivan .order-button {
  background: linear-gradient(135deg, #007bff 0%, #17a2b8 100%);
  color: white;
}

.station-card.minivan:hover {
  box-shadow: 0 25px 60px rgba(0, 123, 255, 0.25);
  border-color: #007bff;
}

.station-card.universal .order-button {
  background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
  color: white;
}

.station-card.universal:hover {
  box-shadow: 0 25px 60px rgba(23, 162, 184, 0.25);
  border-color: #17a2b8;
}

.station-card.business .order-button {
  background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
  color: white;
}

.station-card.business:hover {
  box-shadow: 0 25px 60px rgba(111, 66, 193, 0.25);
  border-color: #6f42c1;
}

.station-card.transfer .order-button {
  background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
  color: #333;
}

.station-card.transfer:hover {
  box-shadow: 0 25px 60px rgba(253, 126, 20, 0.25);
  border-color: #fd7e14;
}

/* АНИМАЦИЯ ПОЯВЛЕНИЯ КАРТОЧЕК */
@keyframes flightArrival {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.station-card {
  animation: flightArrival 0.6s ease-out;
}

.station-card:nth-child(1) {
  animation-delay: 0.1s;
}
.station-card:nth-child(2) {
  animation-delay: 0.2s;
}
.station-card:nth-child(3) {
  animation-delay: 0.3s;
}
.station-card:nth-child(4) {
  animation-delay: 0.4s;
}
.station-card:nth-child(5) {
  animation-delay: 0.5s;
}
.station-card:nth-child(6) {
  animation-delay: 0.6s;
}
.station-card:nth-child(7) {
  animation-delay: 0.7s;
}
.station-card:nth-child(8) {
  animation-delay: 0.8s;
}
.station-card:nth-child(9) {
  animation-delay: 0.9s;
}

/* АДАПТИВНОСТЬ */
@media (max-width: 768px) {
  .station-cards-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .station-card .card-header {
    padding: 20px 20px 15px 20px;
  }

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

  .station-card .card-description {
    padding: 20px;
  }

  .station-card .card-footer {
    padding: 18px 20px;
  }

  .station-card .order-button {
    padding: 10px 25px;
    font-size: 0.9rem;
    min-width: 130px;
  }
}

@media (max-width: 480px) {
  .station-cards-container {
    margin: 30px 0;
  }

  .station-card {
    border-radius: 20px;
  }

  .station-card .card-header {
    padding: 18px 15px;
    border-radius: 20px 20px 0 0;
  }

  .station-card .card-title h3 {
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .station-card .card-description {
    padding: 18px 15px;
  }

  .station-card .card-description p {
    font-size: 1rem;
  }
}
