.ferry-tariffs-page{
  padding-bottom: 28px;
  max-width: 100%;
  overflow-x: clip;
}

.ferry-tariffs-page .ui-page{
  max-width: 100%;
  min-width: 0;
}

.ferry-tariffs-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.ferry-tariffs-sub{
  max-width:760px;
  line-height:1.45;
}

.ferry-tariffs-operator{
  padding:10px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(181,194,222,.35);
  color:#475569;
  font-size:14px;
}

.ferry-tariffs-card{
  overflow:hidden;
}

.ferry-tariffs-table-wrap{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}

.ferry-tariffs-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}

.ferry-tariffs-table th,
.ferry-tariffs-table td{
  padding:12px 14px;
  border-bottom:1px solid rgba(181,194,222,.35);
  vertical-align:top;
  text-align:left;
  word-break:break-word;
}

.ferry-tariffs-table thead th{
  background:#f7f9fe;
  font-size:14px;
  font-weight:700;
  color:#1a2740;
}

.ferry-tariffs-table__price{
  width:170px;
  text-align:right !important;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}

.ferry-tariffs-table__price span{
  display:block;
  margin-top:4px;
  font-size:12px;
  font-weight:500;
  color:#64748b;
}

.ferry-tariffs-table__section td{
  background:#fff4ec;
  color:#b84500;
  font-weight:800;
  font-size:15px;
}

.ferry-tariffs-table__subgroup td{
  background:#f8fafc;
  color:#334155;
  font-weight:700;
  padding-left:22px;
}

.ferry-tariffs-table tbody tr:not(.ferry-tariffs-table__section):not(.ferry-tariffs-table__subgroup) td:first-child{
  padding-left:22px;
}

.ferry-tariffs-notes{
  margin-top:16px;
}

.ferry-tariffs-notes__title{
  margin:0 0 12px;
  font-size:18px;
}

.ferry-tariffs-notes__list{
  margin:0;
  padding-left:20px;
  color:#475569;
  line-height:1.55;
}

.ferry-tariffs-notes__list li + li{
  margin-top:10px;
}

@media (max-width: 768px){
  .ferry-tariffs-head{
    flex-direction:column;
    gap:10px;
  }

  .ferry-tariffs-operator{
    width:100%;
  }

  .ferry-tariffs-card{
    padding:0;
    background:transparent;
    border:none;
    box-shadow:none;
  }

  .ferry-tariffs-table-wrap{
    overflow:visible;
  }

  .ferry-tariffs-table,
  .ferry-tariffs-table thead,
  .ferry-tariffs-table tbody,
  .ferry-tariffs-table tr,
  .ferry-tariffs-table th,
  .ferry-tariffs-table td{
    display:block;
    width:100%;
  }

  .ferry-tariffs-table{
    min-width:0;
  }

  .ferry-tariffs-table thead{
    display:none;
  }

  .ferry-tariffs-table tbody tr{
    border-bottom:1px solid rgba(181,194,222,.35);
  }

  .ferry-tariffs-table__section td{
    padding:12px 14px;
    border-bottom:none;
    border-radius:14px 14px 0 0;
    font-size:16px;
  }

  .ferry-tariffs-table__section + tr .ferry-tariffs-table__subgroup td,
  .ferry-tariffs-table__section + tr:not(.ferry-tariffs-table__subgroup) td{
    border-top:none;
  }

  .ferry-tariffs-table__subgroup td{
    padding:10px 14px 8px;
    padding-left:14px;
    font-size:14px;
    border-bottom:none;
    background:#f1f5f9;
  }

  .ferry-tariffs-table tbody tr:not(.ferry-tariffs-table__section):not(.ferry-tariffs-table__subgroup){
    background:#fff;
    padding:0;
  }

  .ferry-tariffs-table tbody tr:not(.ferry-tariffs-table__section):not(.ferry-tariffs-table__subgroup) td{
    border:none;
    padding:0;
  }

  .ferry-tariffs-table tbody tr:not(.ferry-tariffs-table__section):not(.ferry-tariffs-table__subgroup) td:first-child{
    padding:12px 14px 4px;
    padding-left:14px;
    font-size:14px;
    line-height:1.45;
    color:#1a2740;
  }

  .ferry-tariffs-table tbody tr:not(.ferry-tariffs-table__section):not(.ferry-tariffs-table__subgroup) td.ferry-tariffs-table__price{
    padding:0 14px 12px;
    text-align:left !important;
    white-space:normal;
    font-size:18px;
    font-weight:800;
    color:#b84500;
  }

  .ferry-tariffs-table tbody tr:not(.ferry-tariffs-table__section):not(.ferry-tariffs-table__subgroup) td.ferry-tariffs-table__price::before{
    content:"Тариф: ";
    font-size:13px;
    font-weight:600;
    color:#64748b;
  }

  .ferry-tariffs-table__section td{
    margin-top:12px;
  }

  .ferry-tariffs-table__section:first-child td{
    margin-top:0;
  }

  .ferry-tariffs-notes{
    margin-top:12px;
  }

  .ferry-tariffs-notes__list{
    padding-left:18px;
    font-size:14px;
  }
}

@media (min-width: 769px){
  .ferry-tariffs-table colgroup,
  .ferry-tariffs-table thead th:first-child{
    width:auto;
  }
}
