/* ========================== Бронь билетов ========================== */
.ticket-contacts {
  margin: 1.5rem 0;
  text-align: center; /* можно center - left, если надо */
}

.ticket-contacts p {
  margin: 0.3rem 0;
}

.ticket-contacts .phones a {
  color: #5a4633;       /* в тон твоему сайту */
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.ticket-contacts .phones a:hover {
  color: #a7734e;       /* мягкий ховер */
}

.week {
  line-height: 2.25; /* контролирует расстояние между строками внутри элемента */
  margin: 5px 0px 0px 0px;         /* убираем браузерные дефолты */
  margin-top: 1em; /* или любое значение */
  padding: 0;
  font-size: 1rem;
    color: var(--cherry);       /* мягкий ховер */
}

.title-big {
  font-size: 1.3em;   /* увеличь под себя */
  display: block;     /* чтобы строка шла отдельно */
  margin-bottom: .2em;
  color: var(--chocolate-brown); /* тёмно-коричнево-бордовый оттенок */
}
/* ========================== ferry-table ========================== */

.ferry-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 1000px;
  margin: 1.5rem auto;
  font-size: 0.95rem;
}


.ferry-table th,
.ferry-table td {
  border: 1px solid #ddd;
  padding: 12px 10px;
  text-align: center;
}

.ferry-table th:nth-child(2),
.ferry-table td:nth-child(2) {
  width: 10%;
  white-space: nowrap;
}

.ferry-table caption {
  font-weight: bold;
  margin-bottom: .5rem;
  color: #5a4633;
  text-align: left;
}


/* Зебра */
.ferry-table tbody tr:nth-child(odd) { background: #fff; }
.ferry-table tbody tr:nth-child(even) { background: #f5f1e6; }

.divider {
  border: none;
  height: 1px;
  background: #e0c187;
  margin: 2.5rem auto;
  max-width: 700px;
  position: relative;
}

.divider::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: #e0c187;
  border-radius: 2px;
}

.ferry-table tr td:first-child {
  font-weight: 600;
}
.ferry-table tr td[data-label="День недели"]:contains("Сб"),
.ferry-table tr td[data-label="День недели"]:contains("Вс") {
  color: #a7734e;
}

/*-- Для МОБИЛЬНИКА Расписание судна Agia Anna ==================================== */
.ferry-schedule-mobile {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ferry-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.ferry-card h4 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  color: #5a4633;
}

.ferry-card p {
  margin: .2rem 0;
  font-size: .95rem;
}


/* ========================== Мобильная адаптация — всегда внизу ========================== */
@media (max-width: 768px) {
  .ferry-table,
  .ferry-table thead,
  .ferry-table tbody,
  .ferry-table th,
  .ferry-table tr,
  .ferry-table td {
    display: block;
    width: 100%;
  }

  .ferry-table thead,
  .ferry-table caption {
    display: none; /* убираем шапку и caption */
  }

  .ferry-table tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;  /* учитывает padding внутри ширины */
    padding: .5rem 1rem;
  }

  .ferry-table td {
    border: none;
    border-bottom: 1px solid #eee;
    padding: .4rem 0;
    text-align: left;
  }
  .ferry-table td:last-child {
    border-bottom: none;
  }

  .ferry-table td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: .25rem;
    color: #5a4633;
  }
}

/* Мобилка — по типу */
@media (max-width: 768px) {
  .ferry-table tbody tr.ferry-fast  { background: #fff; }
  .ferry-table tbody tr.ferry-ship { background: #f5f1e6; }
}

@media (max-width: 768px) {
  .ticket-contacts {
    text-align: left;
  }
}
